.khs-app{--black:#101114;--graphite:#3d3f44;--silver:#d8d9dc;--line:#e7e8ea;--soft:#f7f7f8;--white:#fff;color:var(--black);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;max-width:1480px;margin:0 auto}.khs-app *{box-sizing:border-box}.khs-hero{min-height:430px;border:1px solid #d6d7da;position:relative;overflow:hidden;display:flex;align-items:center;padding:64px 7%;background-color:#f5f5f6;background-image:var(--hero);background-size:cover;background-position:center}.khs-hero:before{content:"";position:absolute;left:0;top:0;bottom:0;width:58%;background:rgba(255,255,255,.94);border-right:1px solid rgba(215,216,219,.72)}.khs-hero.preset-noir{background-color:#1b1c1f;background-image:var(--hero)}.khs-hero.preset-chrome{background-color:#d2d3d6;background-image:var(--hero)}.khs-hero.preset-glass{background-color:#eceef0;background-image:var(--hero)}.khs-hero-copy{position:relative;z-index:2;max-width:650px}.khs-hero-copy>span,.khs-create-head>span,.khs-section-head span{font-size:10px;letter-spacing:2.7px;font-weight:800;color:#77797e}.khs-hero-copy h2{font:400 clamp(42px,5.2vw,74px)/.98 Georgia,"Times New Roman",serif;letter-spacing:-2.7px;margin:15px 0 20px;max-width:620px}.khs-hero-copy p{font-size:14px;line-height:1.75;color:#65676c;max-width:560px;margin:0 0 29px}.khs-primary,.khs-generate{border:1px solid #111;background:#111;color:#fff;border-radius:0;min-height:50px;padding:0 22px;display:inline-flex;align-items:center;gap:35px;font-weight:750;font-size:12px;cursor:pointer;transition:.2s}.khs-primary:hover,.khs-generate:hover{background:#2a2b2e}.khs-primary i,.khs-generate i{font-style:normal;font-size:17px}.khs-hero-mark{position:absolute;z-index:1;right:7%;top:50%;transform:translateY(-50%);width:260px;height:260px;border:1px solid rgba(80,82,87,.2);border-radius:50%;display:flex;align-items:center;justify-content:center}.khs-hero-mark:before,.khs-hero-mark:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.65);border-radius:50%;inset:-28px}.khs-hero-mark:after{inset:28px;border-color:rgba(70,72,77,.12)}.khs-hero-mark b{font:400 36px Georgia,serif;letter-spacing:8px;color:rgba(31,32,35,.55)}.khs-toolbar{height:74px;background:#fff;border:1px solid #dedfe2;border-top:0;display:flex;align-items:center;justify-content:space-between;padding:0 22px 0 30px;position:relative;z-index:1}.khs-toolbar .khs-panel-tabs{height:100%;display:flex;gap:3px}.khs-toolbar .khs-panel-tabs .khs-panel-nav{height:100%;border:0;border-bottom:2px solid transparent;background:transparent;padding:0 18px;font-size:12px;font-weight:700;color:#797b80;cursor:pointer}.khs-toolbar .khs-panel-tabs .khs-panel-nav.active{color:#101114;border-bottom-color:#101114}.khs-toolbar .khs-panel-tabs em{font-style:normal;font-size:9px;color:#a1a2a5;margin-left:4px}.khs-balance{display:flex;flex-direction:column;align-items:flex-end}.khs-balance span{font-size:8px;letter-spacing:1.6px;color:#98999c}.khs-balance b{font:400 19px Georgia,serif;margin-top:3px}.khs-tab{display:none;background:#fff;border:1px solid #dedfe2;border-top:0;padding:52px 5%;min-height:580px}.khs-tab.active{display:block}.khs-create-head{margin-bottom:34px}.khs-create-head h3,.khs-section-head h3{font:400 34px Georgia,serif;letter-spacing:-.8px;margin:8px 0 8px}.khs-create-head p,.khs-section-head p{font-size:12px;color:#85868b;margin:0}.khs-create-form{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.7fr);gap:54px}.khs-form-main{display:flex;flex-direction:column;gap:25px}.khs-input{display:flex;flex-direction:column;gap:9px}.khs-input>span,.khs-label{font-size:12px;font-weight:750}.khs-input input,.khs-input textarea,.khs-input select,.khs-picker select{border:1px solid #d6d7da!important;border-radius:0!important;background:#fff!important;color:#151619!important;padding:12px 13px!important;width:100%;box-shadow:none!important;font-size:13px}.khs-input input,.khs-input select,.khs-picker select{min-height:46px}.khs-input textarea{resize:vertical;min-height:155px;line-height:1.7}.khs-input input:focus,.khs-input textarea:focus,.khs-input select:focus,.khs-picker select:focus{border-color:#77797e!important;box-shadow:0 0 0 1px #77797e!important;outline:0}.khs-input small{color:#999a9e;font-size:10px}.khs-choice-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.khs-choice-row>div{display:flex;flex-direction:column;gap:9px}.khs-segment{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #d6d7da}.khs-segment label{cursor:pointer}.khs-segment input{display:none}.khs-segment b{display:flex;height:45px;align-items:center;justify-content:center;font-size:11px;border-right:1px solid #e4e5e7;font-weight:650;color:#77797d}.khs-segment label:last-child b{border-right:0}.khs-segment input:checked+b{background:#111;color:#fff}.khs-form-side{border-left:1px solid #e0e1e3;padding-left:34px;display:flex;flex-direction:column;gap:21px}.khs-picker{display:flex;flex-direction:column;gap:10px}.khs-picker-head{display:flex;justify-content:space-between;gap:15px;align-items:center}.khs-picker-head>div{display:flex;flex-direction:column;gap:4px}.khs-picker-head span{font-size:12px;font-weight:750}.khs-picker-head small{font-size:9px;color:#9b9ca0}.khs-mini-upload{background:none;border:0;padding:4px 0;color:#3d3f44;text-decoration:underline;text-underline-offset:3px;font-size:10px;cursor:pointer}.khs-picker-preview{height:72px;border:1px dashed #d8d9dc;background:#fafafa;display:flex;align-items:center;gap:10px;padding:0 14px}.khs-picker-preview i{font-style:normal;width:25px;height:25px;border:1px solid #d2d3d6;display:flex;align-items:center;justify-content:center;color:#999}.khs-picker-preview span{font-size:10px;color:#999}.khs-picker-preview span.selected{color:#27282b;font-weight:700}.khs-input.compact input{height:43px}.khs-help{font-style:normal;display:inline-flex;width:16px;height:16px;border:1px solid #cacbce;border-radius:50%;align-items:center;justify-content:center;font-size:9px;color:#777;cursor:help;margin-left:4px}.khs-estimate{border-top:1px solid #dfe0e2;border-bottom:1px solid #dfe0e2;padding:19px 0;display:flex;flex-direction:column}.khs-estimate>span{font-size:10px;color:#85868a}.khs-estimate>strong{font:400 31px Georgia,serif;margin:5px 0 8px}.khs-est-cost{display:flex;gap:12px;margin-bottom:7px}.khs-est-cost b{font-size:10px;color:#666}.khs-estimate small{font-size:9px;color:#9b9ca0}.khs-generate{width:100%;justify-content:space-between;min-height:56px}.khs-generate.working{opacity:.6}.khs-section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:26px}.khs-secondary{border:1px solid #cfd0d3;background:#fff;color:#111;padding:10px 15px;border-radius:0;font-weight:700;font-size:11px;cursor:pointer}.khs-secondary:hover{border-color:#111}.khs-project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.khs-project-card{border:1px solid #dedfe2;background:#fff;cursor:pointer;transition:.2s;overflow:hidden}.khs-project-card:hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(0,0,0,.06)}.khs-project-thumb{aspect-ratio:16/9;background:#ededee center/contain no-repeat;position:relative;display:flex;align-items:center;justify-content:center}.khs-project-thumb>i{font:400 28px Georgia,serif;letter-spacing:5px;color:#a7a8ab}.khs-state{position:absolute;top:12px;left:12px;background:rgba(255,255,255,.92);border:1px solid rgba(0,0,0,.08);padding:5px 7px;font-size:8px;font-weight:800;letter-spacing:.5px}.khs-state.completed{background:#111;color:#fff}.khs-state.failed{color:#9a3030;border-color:#d7bcbc}.khs-project-info{padding:16px 17px}.khs-project-info h4{font-size:13px;margin:0 0 5px}.khs-project-info p{font-size:9px;color:#999;margin:0 0 14px}.khs-project-info>div{display:flex;align-items:center;gap:9px}.khs-project-info>div span{font-size:9px;color:#888;width:28px}.khs-project-info>div b{height:2px;background:#e6e7e9;flex:1}.khs-project-info>div i{display:block;height:100%;background:#202124}.khs-asset-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.khs-asset-card{border:1px solid #dedfe2;background:#fff}.khs-asset-card-media{display:block;width:100%;border:0;background:#f2f2f3;padding:0;cursor:pointer;aspect-ratio:1;overflow:hidden}.khs-asset-card-media img{width:100%;height:100%;object-fit:contain;background:#f7f7f8;display:block;transition:transform .18s ease}.khs-asset-card-media:hover img{transform:scale(1.01)}.khs-asset-card footer{display:flex;align-items:center;justify-content:space-between;padding:11px 12px}.khs-asset-card b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.khs-delete-asset{border:0;background:none;color:#999;font-size:9px;cursor:pointer}.khs-empty{grid-column:1/-1;min-height:260px;border:1px dashed #d8d9dc;background:#fafafa;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.khs-empty b{font:400 22px Georgia,serif}.khs-empty span{font-size:10px;color:#999}.khs-modal{position:fixed;inset:0;z-index:999999;background:rgba(14,15,17,.44);backdrop-filter:blur(5px);display:none;align-items:center;justify-content:center;padding:25px}.khs-modal.open{display:flex}.khs-modal-card{width:min(780px,96vw);max-height:90vh;overflow:auto;background:#fff;border:1px solid #cfd0d3;box-shadow:0 30px 80px rgba(0,0,0,.22);position:relative}.khs-modal-close{position:absolute;right:17px;top:14px;z-index:2;border:0;background:none;font-size:28px;font-weight:200;cursor:pointer}.khs-modal-head{padding:36px 38px 27px;border-bottom:1px solid #e4e5e7}.khs-modal-head>span{font-size:8px;letter-spacing:2px;color:#999}.khs-modal-head h3{font:400 28px Georgia,serif;margin:7px 0 17px}.khs-modal-progress{display:flex;align-items:center;gap:11px}.khs-modal-progress>b{height:3px;background:#e5e6e8;flex:1}.khs-modal-progress i{height:100%;display:block;background:#111}.khs-modal-progress strong{font-size:10px}.khs-modal-head p{font-size:10px;color:#888;margin:7px 0 0}.khs-scene-list{padding:12px 38px 28px}.khs-scene{display:grid;grid-template-columns:56px 1fr auto;gap:13px;align-items:center;border-bottom:1px solid #ececee;padding:11px 0}.khs-scene>span{width:56px;height:42px;background:#f1f1f2;display:flex;align-items:center;justify-content:center;overflow:hidden}.khs-scene img{width:100%;height:100%;object-fit:cover}.khs-scene>span i{font:400 15px Georgia,serif;color:#999}.khs-scene div{display:flex;flex-direction:column;gap:3px}.khs-scene div b{font-size:10px}.khs-scene div small{font-size:8px;color:#999}.khs-scene em{font-style:normal;font-size:8px;letter-spacing:.5px;color:#898a8e}.khs-scene em.completed{color:#111;font-weight:800}.khs-scene em.failed{color:#9b3030}.khs-complete,.khs-failed{margin:0 38px 35px;padding:19px;border:1px solid #d8d9dc;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.khs-complete>b,.khs-failed>b{font-size:12px}.khs-complete a{background:#111;color:#fff!important;text-decoration:none;padding:10px 15px;font-size:10px;font-weight:700}.khs-complete small{grid-column:1/-1;font-size:9px;color:#777;line-height:1.6}.khs-failed{border-color:#dfc7c7}.khs-failed span{grid-column:1/-1;color:#8d4242;font-size:10px}.khs-failed small{grid-column:1/-1;font-size:9px;color:#999}.khs-loading{height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.khs-loading i{width:28px;height:28px;border:1px solid #ddd;border-top-color:#111;border-radius:50%;animation:khsspin .8s linear infinite}.khs-loading b{font-size:10px;letter-spacing:1px}.khs-error{padding:60px;text-align:center;color:#8e3c3c}.khs-login-required{border:1px solid #dedfe2;background:#fff;padding:55px;display:flex;flex-direction:column;align-items:center;gap:8px}.khs-login-required b{font:400 28px Georgia,serif}.khs-login-required span{font-size:11px;color:#888}@keyframes khsspin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.khs-create-form{grid-template-columns:1fr}.khs-form-side{border-left:0;border-top:1px solid #e0e1e3;padding:30px 0 0}.khs-project-grid{grid-template-columns:repeat(2,1fr)}.khs-asset-grid{grid-template-columns:repeat(3,1fr)}.khs-hero-mark{opacity:.45}}
@media(max-width:720px){.khs-hero{min-height:360px;padding:45px 25px}.khs-hero-copy h2{font-size:43px;letter-spacing:-1.8px}.khs-hero-mark{display:none}.khs-toolbar{height:auto;padding:0;display:block;position:relative}.khs-toolbar .khs-panel-tabs{overflow:auto;height:58px}.khs-toolbar .khs-panel-tabs .khs-panel-nav{white-space:nowrap;padding:0 13px}.khs-balance{position:absolute;right:12px;top:-49px;background:rgba(255,255,255,.9);padding:7px 9px}.khs-tab{padding:34px 20px}.khs-choice-row{grid-template-columns:1fr}.khs-project-grid,.khs-asset-grid{grid-template-columns:1fr 1fr}.khs-section-head{align-items:flex-start;gap:15px}.khs-create-head h3,.khs-section-head h3{font-size:29px}.khs-modal{padding:10px}.khs-modal-head,.khs-scene-list{padding-left:20px;padding-right:20px}.khs-complete,.khs-failed{margin-left:20px;margin-right:20px}}

.khs-rights{display:flex;align-items:center;gap:9px;cursor:pointer}.khs-rights input{position:absolute;opacity:0}.khs-rights i{width:17px;height:17px;border:1px solid #bfc0c3;position:relative;flex:0 0 17px}.khs-rights input:checked+i{background:#111;border-color:#111}.khs-rights input:checked+i:after{content:"";position:absolute;left:4px;top:3px;width:7px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg)}.khs-rights span{font-size:9px;color:#777}

/* AI model creator — compact flagship panel */
.khs-ai-model{margin:0 0 24px;border:1px solid #d7d8db;background:#fff;padding:20px;display:grid;grid-template-columns:minmax(170px,.75fr) minmax(150px,.55fr) minmax(300px,1.7fr) auto;gap:14px;align-items:end;position:relative;overflow:hidden}.khs-ai-model:after{content:"";position:absolute;width:180px;height:180px;right:-70px;top:-105px;border:1px solid rgba(20,20,20,.09);border-radius:50%;box-shadow:0 0 0 28px rgba(255,255,255,.35),0 0 0 55px rgba(0,0,0,.018);pointer-events:none}.khs-ai-model-title{align-self:center;position:relative;z-index:1}.khs-ai-model-title>span{display:block;font-size:8px;letter-spacing:2px;color:#939499;margin-bottom:5px}.khs-ai-model-title h4{margin:0 0 4px;font:400 18px Georgia,serif;color:#17181a}.khs-ai-model-title small{display:block;font-size:8px;line-height:1.5;color:#96979b}.khs-ai-model label{display:flex;flex-direction:column;gap:6px;position:relative;z-index:1}.khs-ai-model label>span{font-size:9px;font-weight:750;color:#55575b}.khs-ai-model input{height:43px;border:1px solid #d4d5d8;background:#fff;padding:0 12px;outline:0;font-size:11px;color:#17181a;border-radius:0;box-shadow:none}.khs-ai-model input:focus{border-color:#77797d}.khs-ai-model-btn{height:43px;min-width:145px;border:1px solid #111;background:#111;color:#fff;padding:0 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;position:relative;z-index:1}.khs-ai-model-btn span{font-size:10px;font-weight:750}.khs-ai-model-btn b{font-size:8px;font-weight:600;color:#cfd0d2}.khs-ai-model-btn.working{opacity:.55;cursor:wait}.khs-ai-model-btn.working b{display:none}#khs-model-msg{grid-column:2/-1;min-height:12px;font-size:9px;color:#85868a;position:relative;z-index:1}#khs-model-msg.ok{color:#242629;font-weight:700}#khs-model-msg.error{color:#9b3c3c}
@media(max-width:1100px){.khs-ai-model{grid-template-columns:1fr 1fr}.khs-ai-model-title{grid-column:1/-1}.khs-ai-model label.wide{grid-column:1/-1}#khs-model-msg{grid-column:1/-1}}
@media(max-width:720px){.khs-ai-model{grid-template-columns:1fr;padding:17px}.khs-ai-model-title,.khs-ai-model label.wide,#khs-model-msg{grid-column:auto}.khs-ai-model-btn{width:100%}}

.khs-flow-help{display:flex;align-items:center;gap:10px;margin-top:16px;font-size:10px;color:#85868b}.khs-flow-help b{font-weight:750;color:#4b4d52}.khs-flow-help i{font-style:normal;color:#b6b7ba}.khs-advanced{border-top:1px solid #e6e7e9;border-bottom:1px solid #e6e7e9;padding:3px 0}.khs-advanced summary{list-style:none;cursor:pointer;font-size:10px;font-weight:800;letter-spacing:.6px;color:#77797e;padding:11px 0}.khs-advanced summary::-webkit-details-marker{display:none}.khs-advanced summary:after{content:"+";float:right;font-size:14px;font-weight:400;color:#8e9094}.khs-advanced[open] summary:after{content:"−"}.khs-advanced .khs-input{padding:3px 0 14px}.khs-complete a{cursor:pointer}

/* v1.01 — square Analytics-inspired flagship workspace */
.khs-workspace[hidden]{display:none!important}.khs-app.studio-open .khs-hero{display:none}.khs-workspace{width:100%}.khs-studio-head{height:78px;background:#fff;border:1px solid #dedfe2;display:flex;align-items:center;justify-content:space-between;padding:0 20px;margin-bottom:10px}.khs-studio-brand{display:flex;align-items:center;gap:12px}.khs-studio-brand>span{width:32px;height:32px;background:#111;color:#fff;display:flex;align-items:center;justify-content:center;font:700 13px Georgia,serif}.khs-studio-brand>div{display:flex;flex-direction:column;gap:3px}.khs-studio-brand b{font-size:12px;letter-spacing:2.1px}.khs-studio-brand small{font-size:7px;letter-spacing:1.4px;color:#9a9ba0}.khs-studio-actions{display:flex;align-items:center;gap:22px}.khs-home{border:1px solid #d9dade;background:#fff;color:#5f6166;height:34px;padding:0 12px;font-size:10px;font-weight:700;cursor:pointer}.khs-home:hover{border-color:#111;color:#111}.khs-toolbar{height:58px;border:1px solid #dedfe2!important;background:#fff;padding:0 18px!important;margin-bottom:10px;position:relative;top:auto;overflow-x:auto;overflow-y:hidden}.khs-toolbar .khs-panel-tabs{height:100%;display:flex;gap:0}.khs-toolbar .khs-panel-tabs .khs-panel-nav{padding:0 20px;border-right:1px solid transparent}.khs-tab{border:1px solid #dedfe2!important;padding:46px 4.5%;min-height:580px}.khs-hero{margin:0;min-height:470px}.khs-estimate{background:#fafafa;border:1px solid #e2e3e5;padding:17px 18px}.khs-front-help{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #dedfe2;border-left:1px solid #dedfe2}.khs-front-help article{min-height:210px;padding:28px 25px;background:#fff;border-right:1px solid #dedfe2;border-bottom:1px solid #dedfe2;display:flex;flex-direction:column}.khs-front-help em{font:400 23px Georgia,serif;color:#aaabb0;margin-bottom:35px}.khs-front-help b{font-size:13px;margin-bottom:9px}.khs-front-help span{font-size:10px;line-height:1.7;color:#818287;max-width:220px}
.khs-hero,.khs-studio-head,.khs-toolbar,.khs-tab,.khs-primary,.khs-generate,.khs-secondary,.khs-home,.khs-ai-model-btn,.khs-input input,.khs-input textarea,.khs-input select,.khs-picker select,.khs-ai-model input,.khs-project-card,.khs-asset-card,.khs-ai-model,.khs-picker-preview,.khs-empty,.khs-modal-card,.khs-complete,.khs-failed,.khs-complete a,.khs-estimate,.khs-state{border-radius:0!important}.khs-project-card,.khs-asset-card,.khs-ai-model{box-shadow:none}.khs-project-card:hover{transform:none;border-color:#bfc1c5;box-shadow:0 8px 24px rgba(16,17,20,.045)}.khs-help{border-radius:50%!important}
@media(max-width:900px){.khs-front-help{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.khs-studio-head{height:68px;padding:0 12px}.khs-studio-brand small{display:none}.khs-studio-actions{gap:10px}.khs-studio-head .khs-balance{position:static!important;right:auto!important;top:auto!important;background:transparent!important;padding:0!important}.khs-home{height:32px;padding:0 9px}.khs-toolbar{height:54px!important;display:block!important;padding:0!important;position:relative!important}.khs-toolbar .khs-panel-tabs{height:54px!important;overflow:auto}.khs-toolbar .khs-panel-tabs .khs-panel-nav{padding:0 13px!important}.khs-tab{padding:32px 18px}.khs-front-help{grid-template-columns:1fr}.khs-front-help article{min-height:150px}.khs-front-help em{margin-bottom:20px}.khs-hero{min-height:390px}}

.khs-voice-picker{display:flex;flex-direction:column;gap:10px}.khs-voice-current{width:100%;min-height:68px;border:1px solid #d6d7da!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;outline:0!important;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:18px;text-align:left;cursor:pointer}.khs-voice-current:hover,.khs-voice-current:focus,.khs-voice-current:focus-visible{border-color:#7f8185!important;box-shadow:none!important;outline:0!important}.khs-voice-current span{display:flex;flex-direction:column;gap:4px;min-width:0}.khs-voice-current b{font-size:12px;color:#161719}.khs-voice-current small{font-size:9px;color:#8c8e92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.khs-voice-current em{font-style:normal;font-size:9px;font-weight:800;color:#3b3d41;border-left:1px solid #e1e2e4;padding-left:14px;white-space:nowrap}.khs-voice-modal-card{width:min(1100px,96vw);padding:0}.khs-voice-modal-head{padding:34px 38px 25px;border-bottom:1px solid #e2e3e5}.khs-voice-modal-head>span{font-size:8px;letter-spacing:2.2px;font-weight:800;color:#8d8f93}.khs-voice-modal-head h3{font:400 30px Georgia,"Times New Roman",serif;letter-spacing:-.8px;margin:8px 0 7px}.khs-voice-modal-head p{margin:0;font-size:10px;color:#8d8f93}.khs-voice-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.khs-voice-filters button{height:32px;border:1px solid #d5d6d9!important;border-radius:0!important;background:#fff!important;color:#222326!important;padding:0 14px;font-size:9px;font-weight:800;cursor:pointer;box-shadow:none!important;outline:0!important}.khs-voice-filters button:hover,.khs-voice-filters button:focus,.khs-voice-filters button:focus-visible{border-color:#7b7d81!important;box-shadow:none!important;outline:0!important}.khs-voice-filters button.active{background:#111!important;border-color:#111!important;color:#fff!important}.khs-voice-modal-close{position:absolute;right:18px;top:15px;z-index:3;width:34px;height:34px;border:0;background:transparent;font-size:27px;font-weight:200;line-height:1;cursor:pointer}.khs-voice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:12px 38px 34px}.khs-voice-card{min-height:118px;border:1px solid #e0e1e3;margin:-1px 0 0 -1px;padding:17px 17px 13px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:10px 16px;background:#fff;position:relative}.khs-voice-card.selected{border-color:#17181a;z-index:1}.khs-voice-card-copy{display:flex;flex-direction:column;min-width:0}.khs-voice-card-copy span{font-size:8px;letter-spacing:1.4px;color:#a0a1a5;font-weight:800}.khs-voice-card-copy b{font:400 20px Georgia,"Times New Roman",serif;margin:4px 0 3px;color:#151619}.khs-voice-card-copy small{font-size:9px;color:#8e9094}.khs-voice-card-actions{display:flex;align-items:center;gap:6px}.khs-voice-card-actions button{height:34px;border:1px solid #d5d6d9!important;border-radius:0!important;background:#fff!important;color:#222326!important;padding:0 11px;font-size:9px;font-weight:800;cursor:pointer;box-shadow:none!important;outline:0!important}.khs-voice-card-actions button:hover,.khs-voice-card-actions button:focus,.khs-voice-card-actions button:focus-visible{border-color:#7b7d81!important;box-shadow:none!important;outline:0!important}.khs-voice-card-actions .khs-voice-select{background:#111!important;border-color:#111!important;color:#fff!important}.khs-voice-card.selected .khs-voice-select,.khs-voice-card-legacy .khs-voice-select{background:#167b4c!important;border-color:#167b4c!important;color:#fff!important}.khs-voice-card-legacy{background:#fbfcfd}.khs-voice-card-actions .khs-voice-sample.playing{background:#f4f4f5!important}.khs-voice-card-result{grid-column:1/-1;min-height:13px;border-top:1px solid #f0f0f1;padding-top:7px;font-size:8px;color:#9b9ca0}.khs-voice-card-result.ok{color:#167b4c}.khs-voice-card-result.err{color:#a33a3a}.khs-voice-card.selected:before{content:"SELECTED";position:absolute;right:12px;top:9px;font-size:7px;letter-spacing:1px;font-weight:800;color:#77797d}
@media(max-width:1100px){.khs-voice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.khs-voice-grid{grid-template-columns:1fr;padding:10px 20px 24px}.khs-voice-modal-head{padding:28px 20px 20px}.khs-voice-card{margin:-1px 0 0}.khs-voice-card-actions{align-items:flex-start;flex-direction:column}.khs-voice-card-actions button{width:88px}.khs-voice-filters{gap:6px}.khs-voice-filters button{padding:0 11px}}

.khs-voice-language{display:block;margin-top:8px;font-size:9px;letter-spacing:.6px;color:#67696d;font-weight:700}

/* v1.11 — Hedra talking pipeline + master-script architecture; v1.10 UI polish retained */
.khs-app button,
.khs-app input[type="button"],
.khs-app input[type="submit"]{-webkit-appearance:none!important;appearance:none!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important;font-family:inherit!important}
.khs-app a,.khs-app button,.khs-app select,.khs-app input,.khs-app textarea{outline:none}
.khs-app button:focus-visible,.khs-app select:focus-visible,.khs-app input:focus-visible,.khs-app textarea:focus-visible{outline:none!important;box-shadow:0 0 0 1px #111 inset!important}

.khs-toolbar{padding:0 0!important;overflow:auto;border:1px solid #d9dadd!important;background:#fff!important}
.khs-toolbar .khs-panel-tabs{display:flex;min-width:max-content;width:100%}
.khs-toolbar .khs-panel-tabs .khs-panel-nav{appearance:none!important;-webkit-appearance:none!important;height:58px!important;min-width:138px!important;padding:0 18px!important;border:0!important;border-right:1px solid #ececef!important;border-bottom:0!important;border-radius:0!important;background:#fff!important;color:#7a7c81!important;font-size:12px!important;font-weight:800!important;letter-spacing:-.15px!important;cursor:pointer!important;box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;white-space:nowrap!important;position:relative!important;line-height:1!important;margin:0!important;transform:none!important}
.khs-toolbar .khs-panel-tabs .khs-panel-nav:last-child{border-right:0!important}
.khs-toolbar .khs-panel-tabs .khs-panel-nav:hover{background:#fafafb!important;color:#151619!important}
.khs-toolbar .khs-panel-tabs .khs-panel-nav.active{background:#fff!important;color:#111!important}
.khs-toolbar .khs-panel-tabs .khs-panel-nav.active:after{content:"";position:absolute;left:18px;right:18px;bottom:0;height:2px;background:#111}
.khs-toolbar .khs-panel-tabs em{font-size:10px!important;color:#a1a3a7!important;margin-left:2px!important}

.khs-primary,.khs-secondary,.khs-generate,.khs-home,.khs-ai-model-btn,.khs-voice-card-actions .khs-voice-select{appearance:none!important;-webkit-appearance:none!important;border-radius:0!important;background:#111!important;color:#fff!important;border:1px solid #111!important;box-shadow:none!important}
.khs-primary:hover,.khs-secondary:hover,.khs-generate:hover,.khs-home:hover,.khs-ai-model-btn:hover,.khs-voice-card-actions .khs-voice-select:hover{background:#2a2c30!important;border-color:#2a2c30!important;color:#fff!important}
.khs-secondary,.khs-home{background:#fff!important;color:#151619!important;border-color:#d3d5d9!important}
.khs-secondary:hover,.khs-home:hover{background:#fff!important;color:#111!important;border-color:#111!important}
.khs-mini-upload{appearance:none!important;-webkit-appearance:none!important;height:34px!important;padding:0 14px!important;border:1px solid #d3d5d9!important;background:#fff!important;color:#151619!important;text-decoration:none!important;text-underline-offset:0!important;font-size:10px!important;font-weight:800!important;letter-spacing:-.1px!important;cursor:pointer!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:0!important;box-shadow:none!important;line-height:1!important}
.khs-mini-upload:hover{border-color:#111!important;color:#111!important;background:#fff!important}

.khs-create-head{margin-bottom:26px}
.khs-step-guides{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 30px}
.khs-step-guide{border:1px solid #dedfe2;background:#fff;display:flex;flex-direction:column;min-height:288px;overflow:hidden}
.khs-step-media{aspect-ratio:4/3;background:#f1f2f4 center top/cover no-repeat;border-bottom:1px solid #e2e3e5}
.khs-step-copy{padding:16px 16px 18px;display:flex;flex-direction:column;gap:7px}
.khs-step-copy em{font-style:normal;font-size:9px;letter-spacing:1.8px;color:#9a9ca0;font-weight:800}
.khs-step-copy b{font-size:14px;line-height:1.3;color:#151619}
.khs-step-copy p{margin:0;font-size:11px;line-height:1.65;color:#72747a}

.khs-prompt-examples{display:flex;flex-direction:column;gap:10px;border-top:1px solid #e5e6e8;padding-top:4px}
.khs-example-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.khs-example-grid article{border:1px solid #dedfe2;background:#fbfbfc;padding:14px 15px 15px;min-height:126px}
.khs-example-grid b{display:block;margin-bottom:8px;font-size:12px;line-height:1.35;color:#151619}
.khs-example-grid p{margin:0;font-size:10px;line-height:1.7;color:#72747a}

.khs-picker-head{align-items:flex-start}
.khs-picker-head>div{gap:5px}
.khs-picker-head small{line-height:1.6}
.khs-form-side{gap:18px}
.khs-picker-preview{height:78px;background:#fafafb;border:1px dashed #d5d7da!important}
.khs-estimate{background:#fafafb;border:1px solid #e1e2e4;padding:17px 18px}

.khs-front-help.rich{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-top:1px solid #dedfe2;border-left:1px solid #dedfe2}
.khs-front-help.rich article{min-height:420px;padding:0;background:#fff;border-right:1px solid #dedfe2;border-bottom:1px solid #dedfe2;display:flex;flex-direction:column}
.khs-help-media{height:260px;background:#f3f4f6 center top/cover no-repeat;border-bottom:1px solid #e1e2e4}
.khs-front-help.rich em{font:400 26px Georgia,serif;color:#b0b2b7;margin:22px 26px 8px}
.khs-front-help.rich b{font-size:16px;line-height:1.3;color:#151619;margin:0 26px 8px}
.khs-front-help.rich span{display:block;max-width:none;font-size:11px;line-height:1.8;color:#72747a;margin:0 26px 12px}
.khs-front-help.rich code{display:block;margin:0 26px 26px;padding:14px 15px;border:1px solid #e3e4e6;background:#fafafb;font-family:inherit;font-size:10px;line-height:1.8;color:#44464b;white-space:normal}

@media(max-width:1180px){
  .khs-step-guides{grid-template-columns:repeat(2,minmax(0,1fr))}
  .khs-example-grid{grid-template-columns:1fr}
}
@media(max-width:900px){
  .khs-toolbar .khs-panel-tabs .khs-panel-nav{min-width:122px!important}
  .khs-front-help.rich{grid-template-columns:1fr}
}
@media(max-width:720px){
  .khs-toolbar .khs-panel-tabs .khs-panel-nav{height:54px!important;min-width:110px!important;padding:0 14px!important;font-size:11px!important}
  .khs-step-guides{grid-template-columns:1fr}
  .khs-step-guide{min-height:auto}
  .khs-help-media{height:220px}
}

/* v1.12 — poster-first home, collapsible guides, theme-proof final layout */
.khs-app{overflow:visible!important}
.khs-hero-poster-wrap{width:100%;margin:0;background:#fff;border:1px solid #dedfe2;overflow:hidden}
.khs-hero-poster{display:block!important;width:100%!important;height:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;outline:0!important;cursor:pointer!important;line-height:0!important;text-align:left!important;overflow:hidden!important}
.khs-hero-poster img{display:block;width:100%;height:auto;aspect-ratio:1672/941;object-fit:contain;background:#fff}
.khs-hero-poster:hover img{filter:brightness(.995)}
.khs-hero-poster:focus,.khs-hero-poster:focus-visible{outline:0!important;box-shadow:0 0 0 1px #111 inset!important}
.khs-app.studio-open .khs-hero-poster-wrap{display:none!important}
.khs-app .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.khs-studio-head{width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:24px!important;overflow:visible!important;min-width:0!important}
.khs-studio-brand{min-width:0!important}
.khs-studio-actions{margin-left:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:22px!important;min-width:max-content!important}
.khs-home{height:40px!important;min-width:118px!important;padding:0 14px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;border:1px solid #d3d5d9!important;border-radius:0!important;background:#fff!important;color:#151619!important;box-shadow:none!important;font-size:10px!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important;cursor:pointer!important}
.khs-home svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;flex:0 0 auto}
.khs-home:hover{border-color:#111!important;background:#fff!important;color:#111!important}
.khs-balance{min-width:126px!important}

.khs-guide-toggle,.khs-prompt-help{border:1px solid #dedfe2;background:#fff;margin:0 0 28px;border-radius:0!important;overflow:hidden}
.khs-guide-toggle summary,.khs-prompt-help summary{list-style:none;cursor:pointer;min-height:60px;padding:0 18px;display:grid;grid-template-columns:auto minmax(0,1fr) 20px;align-items:center;gap:16px;background:#fafafb;border-radius:0!important}
.khs-guide-toggle summary::-webkit-details-marker,.khs-prompt-help summary::-webkit-details-marker{display:none}
.khs-guide-toggle summary span,.khs-prompt-help summary span{font-size:11px;font-weight:850;color:#161719;white-space:nowrap}
.khs-guide-toggle summary small,.khs-prompt-help summary small{font-size:10px;color:#888a8f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.khs-guide-toggle summary i,.khs-prompt-help summary i{position:relative;width:16px;height:16px}
.khs-guide-toggle summary i:before,.khs-guide-toggle summary i:after,.khs-prompt-help summary i:before,.khs-prompt-help summary i:after{content:"";position:absolute;background:#6f7176;left:3px;right:3px;top:7px;height:1px}
.khs-guide-toggle summary i:after,.khs-prompt-help summary i:after{top:3px;bottom:3px;left:7px;width:1px;height:auto;right:auto}
.khs-guide-toggle[open] summary,.khs-prompt-help[open] summary{border-bottom:1px solid #dedfe2;background:#fff}
.khs-guide-toggle[open] summary i:after,.khs-prompt-help[open] summary i:after{display:none}
.khs-step-thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px}
.khs-step-thumb{appearance:none!important;-webkit-appearance:none!important;border:1px solid #dedfe2!important;border-radius:0!important;background:#fff!important;padding:0!important;margin:0!important;box-shadow:none!important;outline:0!important;cursor:zoom-in!important;overflow:hidden!important;text-align:left!important}
.khs-step-thumb:hover,.khs-step-thumb:focus,.khs-step-thumb:focus-visible{border-color:#111!important;box-shadow:none!important;outline:0!important}
.khs-step-thumb img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:4/3!important;object-fit:contain!important;object-position:center center!important;background:#f7f8fa!important;border-bottom:1px solid #e4e5e7!important}
.khs-step-thumb span{display:flex;flex-direction:column;gap:4px;padding:10px 11px 11px}
.khs-step-thumb em{font-style:normal;font-size:8px;letter-spacing:1.5px;color:#9a9ca1;font-weight:800}
.khs-step-thumb b{font-size:11px;color:#161719;line-height:1.3}

.khs-prompt-help{margin-top:-4px;margin-bottom:0}
.khs-prompt-help .khs-example-grid{padding:14px;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.khs-prompt-help .khs-example-grid article{min-height:118px}

.khs-guide-modal{position:fixed;inset:0;z-index:1000000;background:rgba(12,13,15,.78);display:none;align-items:center;justify-content:center;padding:28px;backdrop-filter:blur(5px)}
.khs-guide-modal.open{display:flex}
.khs-guide-modal-card{position:relative;width:min(1180px,96vw);max-height:92vh;background:#fff;border:1px solid #cfd1d4;border-radius:0!important;box-shadow:0 28px 80px rgba(0,0,0,.28);overflow:auto}
.khs-guide-modal-card img{display:block;width:100%;height:auto;max-height:88vh;object-fit:contain;background:#fff}
.khs-guide-modal-close{position:absolute!important;z-index:3!important;right:10px!important;top:10px!important;width:40px!important;height:40px!important;border:1px solid rgba(0,0,0,.18)!important;border-radius:0!important;background:rgba(255,255,255,.94)!important;color:#111!important;font-size:26px!important;line-height:1!important;padding:0!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important;cursor:pointer!important}

@media(max-width:1000px){
  .khs-step-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .khs-prompt-help .khs-example-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
  .khs-studio-head{grid-template-columns:1fr!important;gap:12px!important;height:auto!important;padding:13px!important}
  .khs-studio-actions{width:100%!important;margin:0!important;justify-content:space-between!important;min-width:0!important}
  .khs-home{min-width:110px!important}
  .khs-guide-toggle summary,.khs-prompt-help summary{grid-template-columns:1fr 20px;padding:12px 14px;gap:3px 10px}
  .khs-guide-toggle summary span,.khs-prompt-help summary span{grid-column:1}
  .khs-guide-toggle summary small,.khs-prompt-help summary small{grid-column:1;grid-row:2;white-space:normal;line-height:1.5}
  .khs-guide-toggle summary i,.khs-prompt-help summary i{grid-column:2;grid-row:1/3}
  .khs-step-thumbs{grid-template-columns:1fr 1fr;padding:10px;gap:8px}
  .khs-guide-modal{padding:10px}
}
.khs-toolbar{scrollbar-width:none!important;-ms-overflow-style:none!important}
.khs-toolbar::-webkit-scrollbar,.khs-toolbar .khs-panel-tabs::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.khs-front-help.rich .khs-help-media{appearance:none!important;-webkit-appearance:none!important;display:block!important;width:100%!important;padding:0!important;margin:0!important;border:0!important;border-bottom:1px solid #e1e2e4!important;border-radius:0!important;box-shadow:none!important;outline:0!important;cursor:zoom-in!important;background-position:center top!important;background-size:cover!important;background-repeat:no-repeat!important}
.khs-front-help.rich .khs-help-media:hover,.khs-front-help.rich .khs-help-media:focus,.khs-front-help.rich .khs-help-media:focus-visible{outline:0!important;box-shadow:0 0 0 1px #111 inset!important}

/* v1.13 — commercial finish: compact landing, premium guide modal, stable close buttons, premium progress board */
.khs-app.studio-open .khs-landing{display:none!important}
.khs-landing{background:#fff;border:1px solid #dedfe2;padding:24px}
.khs-landing-shell{display:grid;grid-template-columns:minmax(340px,1.05fr) minmax(420px,.95fr);gap:26px;align-items:stretch;border:1px solid #dedfe2;background:#fff;min-height:460px}
.khs-landing-copy{padding:36px 42px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.khs-landing-eyebrow{display:inline-block;font-size:11px;letter-spacing:4px;font-weight:850;color:#72757b;margin-bottom:18px}
.khs-landing-copy h2{font:400 clamp(38px,4.6vw,74px)/.98 Georgia,"Times New Roman",serif;letter-spacing:-2.2px;color:#121316;margin:0 0 18px}
.khs-landing-copy p{font-size:14px;line-height:1.9;color:#6d7077;max-width:620px;margin:0 0 24px}
.khs-landing-feature-list{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:28px}
.khs-landing-feature-list article{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid #e3e4e7;background:#fafafb}
.khs-landing-feature-list i{width:28px;height:28px;flex:0 0 28px;display:flex;align-items:center;justify-content:center;border:1px solid #d5d7dc;background:#fff;font-style:normal;font-size:11px;color:#1a1b1f}
.khs-landing-feature-list span{display:flex;flex-direction:column;gap:3px;min-width:0}
.khs-landing-feature-list b{font-size:12px;line-height:1.3;color:#141519}
.khs-landing-feature-list small{font-size:10px;line-height:1.7;color:#7a7d84}
.khs-landing-actions{display:flex;flex-wrap:wrap;gap:10px}
.khs-landing-actions .khs-primary,.khs-landing-actions .khs-secondary{min-width:170px;justify-content:center}
.khs-landing-poster{appearance:none!important;-webkit-appearance:none!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:24px!important;margin:0!important;border:0!important;border-left:1px solid #dedfe2!important;background:#f8f8f9!important;box-shadow:none!important;outline:0!important;cursor:pointer!important}
.khs-landing-poster img{display:block;width:100%;max-width:760px;height:auto;max-height:410px;object-fit:contain;background:#fff}
.khs-landing-poster:hover,.khs-landing-poster:focus,.khs-landing-poster:focus-visible{box-shadow:none!important;outline:0!important;background:#f6f6f7!important}

.khs-guide-modal{padding:22px!important;background:rgba(14,15,17,.58)!important}
.khs-guide-modal-card{width:min(940px,88vw)!important;max-height:88vh!important;border:1px solid #d0d2d6!important;box-shadow:0 24px 64px rgba(0,0,0,.18)!important;overflow:hidden!important}
.khs-guide-modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border-bottom:1px solid #e3e4e7;background:#fff}
.khs-guide-modal-head>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.khs-guide-modal-head span{font-size:9px;letter-spacing:2px;font-weight:800;color:#93959a}
.khs-guide-modal-head b{font-size:14px;line-height:1.35;color:#141519;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.khs-guide-modal-body{padding:14px;background:#fafafb}
.khs-guide-modal-body img{display:block;width:100%;max-height:68vh;object-fit:contain;border:1px solid #e1e2e5;background:#fff}
.khs-guide-modal-close,.khs-modal-close,.khs-voice-modal-close{appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:38px!important;height:38px!important;padding:0!important;margin:0!important;border:1px solid #d3d5da!important;border-radius:0!important;background:#fff!important;color:#121316!important;font-size:23px!important;font-weight:300!important;line-height:1!important;cursor:pointer!important;box-shadow:none!important;outline:0!important}
.khs-guide-modal-close:hover,.khs-modal-close:hover,.khs-voice-modal-close:hover,.khs-guide-modal-close:focus,.khs-modal-close:focus,.khs-voice-modal-close:focus{border-color:#111!important;background:#111!important;color:#fff!important;box-shadow:none!important;outline:0!important}
.khs-guide-modal-close{position:static!important}
.khs-modal-close{right:16px!important;top:16px!important;z-index:5!important}
.khs-voice-modal-close{right:18px!important;top:18px!important;z-index:5!important}

.khs-project-modal-card{width:min(1180px,96vw)!important;max-height:92vh!important;padding:0!important}
.khs-modal-head-premium{padding:30px 34px 24px!important;background:linear-gradient(180deg,#ffffff 0%,#fbfbfc 100%);border-bottom:1px solid #e5e6e9!important}
.khs-modal-head-premium h3{margin-bottom:14px!important}
.khs-stage-rail{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin-top:18px}
.khs-stage-rail article{border:1px solid #e2e4e8;background:#fff;min-height:76px;padding:10px 10px 12px;display:flex;flex-direction:column;gap:7px;justify-content:center;align-items:flex-start}
.khs-stage-rail article i{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border:1px solid #d6d8dd;background:#f7f8f9;font-style:normal;font-size:10px;font-weight:800;color:#767981}
.khs-stage-rail article span{font-size:10px;line-height:1.45;color:#7b7e84;font-weight:750}
.khs-stage-rail article.done{border-color:#111;background:#111}
.khs-stage-rail article.done i{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.12);color:#fff}
.khs-stage-rail article.done span{color:#fff}
.khs-stage-rail article.active{border-color:#111;background:#fff;box-shadow:0 0 0 1px #111 inset}
.khs-stage-rail article.active i{border-color:#111;background:#111;color:#fff}
.khs-stage-rail article.active span{color:#151619}
.khs-stage-rail article.failed{box-shadow:0 0 0 1px #9c3939 inset;border-color:#ddb7b7}
.khs-project-live-shell{display:grid;grid-template-columns:minmax(0,1.2fr) 280px;gap:16px;padding:18px 34px 10px;background:#fff}
.khs-live-preview{border:1px solid #e1e3e6;background:#fafafb;padding:14px;display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:center;min-height:236px}
.khs-live-preview-media{height:180px;border:1px solid #e1e2e5;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.khs-live-preview-media img{display:block;width:100%;height:100%;object-fit:cover}
.khs-live-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:radial-gradient(circle at center,#ffffff 0%,#f2f3f5 100%)}
.khs-live-placeholder i{font:400 42px Georgia,serif;color:#9fa2a8}
.khs-live-placeholder span{font-size:10px;color:#7c7f85;font-weight:750;letter-spacing:.3px}
.khs-live-preview-copy{display:flex;flex-direction:column;gap:8px;min-width:0}
.khs-live-preview-copy span{font-size:10px;letter-spacing:1.8px;color:#8d9096;font-weight:850}
.khs-live-preview-copy b{font:400 30px/1.08 Georgia,"Times New Roman",serif;letter-spacing:-.8px;color:#16171a}
.khs-live-preview-copy small{font-size:11px;line-height:1.8;color:#72757b}
.khs-project-facts{display:grid;grid-template-columns:1fr;gap:12px}
.khs-project-facts article{border:1px solid #e1e3e6;background:#fff;min-height:64px;padding:14px 15px;display:flex;flex-direction:column;justify-content:center;gap:4px}
.khs-project-facts span{font-size:9px;letter-spacing:1.6px;color:#8f9196;font-weight:800}
.khs-project-facts b{font-size:16px;color:#141519;line-height:1.35}
.khs-scene-board{padding:8px 34px 28px;background:#fff}
.khs-scene-board-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;border-top:1px solid #ebecf0;padding-top:16px;margin-bottom:10px}
.khs-scene-board-head b{font-size:13px;color:#151619}
.khs-scene-board-head small{font-size:10px;color:#8a8d93}
.khs-scene-list{padding:0!important;border:1px solid #e4e5e8;background:#fff}
.khs-scene{padding:12px 14px!important;border-bottom:1px solid #eceef1!important;transition:.18s ease}
.khs-scene:last-child{border-bottom:0!important}
.khs-scene.active{background:#fafafb;box-shadow:inset 2px 0 0 #111}
.khs-scene>span{width:68px!important;height:52px!important;border:1px solid #e1e2e5;background:#f3f4f5}
.khs-scene div b{font-size:12px!important;color:#151619}
.khs-scene div small{font-size:10px!important;color:#8b8d92}
.khs-scene em{font-size:9px!important;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#8a8d92}
.khs-loading-premium{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#fff}
.khs-loading-premium i{width:42px;height:42px;border:2px solid #d7d9dd;border-top-color:#111;border-radius:50%;animation:khsSpin 1s linear infinite}
.khs-loading-premium b{font-size:14px;color:#16171a}
.khs-loading-premium small{font-size:10px;color:#888b91}
@keyframes khsSpin{to{transform:rotate(360deg)}}

.khs-toolbar .khs-panel-tabs .khs-panel-nav,.khs-home,.khs-secondary,.khs-primary,.khs-generate,.khs-mini-upload,.khs-voice-current,.khs-voice-filters button,.khs-voice-card-actions button{transform:none!important}
.khs-home span{display:inline-block!important;line-height:1!important}

@media(max-width:1180px){
  .khs-landing-shell{grid-template-columns:1fr}
  .khs-landing-poster{border-left:0!important;border-top:1px solid #dedfe2!important}
  .khs-project-live-shell{grid-template-columns:1fr}
  .khs-project-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
  .khs-stage-rail{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:860px){
  .khs-landing{padding:14px}
  .khs-landing-copy{padding:22px 20px}
  .khs-landing-copy h2{font-size:clamp(30px,8vw,48px)}
  .khs-project-facts{grid-template-columns:1fr}
  .khs-live-preview{grid-template-columns:1fr;min-height:auto}
  .khs-live-preview-media{height:220px}
  .khs-step-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:640px){
  .khs-landing-actions{flex-direction:column}
  .khs-landing-actions .khs-primary,.khs-landing-actions .khs-secondary{width:100%}
  .khs-stage-rail{grid-template-columns:repeat(2,minmax(0,1fr))}
  .khs-modal-head-premium,.khs-project-live-shell,.khs-scene-board{padding-left:18px!important;padding-right:18px!important}
  .khs-guide-modal-card{width:min(94vw,94vw)!important}
  .khs-live-preview-copy b{font-size:24px}
}

/* v1.14 — AI model progress + compact delete action */
.khs-ai-model{overflow:visible!important}
.khs-model-progress{grid-column:2/-1;border:1px solid #dedfe2;background:#fafafb;padding:15px 16px 14px;position:relative;z-index:1}
.khs-model-progress[hidden]{display:none!important}
.khs-model-progress-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:11px}
.khs-model-progress-head>div{display:flex;align-items:center;gap:10px;min-width:0}
.khs-model-progress-head span{font-size:10px;font-weight:800;color:#36383d}
.khs-model-progress-head b{font:400 18px Georgia,"Times New Roman",serif;color:#111}
.khs-model-progress-head small{font-size:9px;color:#8c8f95;white-space:nowrap}
.khs-model-progress-head small strong{color:#22252a;font-weight:800}
.khs-model-progress-bar{height:4px;background:#e5e6e9;overflow:hidden;margin-bottom:12px}
.khs-model-progress-bar i{display:block;height:100%;width:0;background:#111;transition:width .7s ease;position:relative}
.khs-model-progress-bar i:after{content:"";position:absolute;top:0;bottom:0;width:70px;right:-70px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);animation:khsModelSweep 1.4s linear infinite}
.khs-model-progress-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.khs-model-progress-steps span{min-height:34px;border:1px solid #e1e2e5;background:#fff;padding:0 9px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:8px;line-height:1.35;font-weight:750;color:#9a9ca1}
.khs-model-progress-steps span.active{border-color:#111;color:#111;box-shadow:0 0 0 1px #111 inset}
.khs-model-progress-steps span.done{background:#111;border-color:#111;color:#fff}
@keyframes khsModelSweep{to{transform:translateX(180px)}}

.khs-asset-card footer{min-height:50px!important;padding:9px 10px!important;gap:10px!important}
.khs-asset-card footer>b{flex:1;min-width:0!important;margin:0!important;font-size:11px!important;line-height:1.35!important;color:#17181b!important}
.khs-delete-asset{appearance:none!important;-webkit-appearance:none!important;width:auto!important;min-width:48px!important;height:30px!important;min-height:30px!important;max-height:30px!important;padding:0 10px!important;margin:0!important;border:1px solid #d3d5d9!important;border-radius:0!important;background:#fff!important;color:#7b7e84!important;font-family:inherit!important;font-size:9px!important;font-weight:800!important;line-height:28px!important;text-align:center!important;text-decoration:none!important;box-shadow:none!important;text-shadow:none!important;cursor:pointer!important;transform:none!important;flex:0 0 auto!important}
.khs-delete-asset:hover,.khs-delete-asset:focus,.khs-delete-asset:focus-visible{border-color:#111!important;background:#111!important;color:#fff!important;outline:0!important;box-shadow:none!important}

@media(max-width:1100px){.khs-model-progress{grid-column:1/-1}}
@media(max-width:720px){.khs-model-progress{grid-column:auto;padding:13px}.khs-model-progress-head{flex-direction:column;gap:5px}.khs-model-progress-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v1.15 — approved bright luxury studio tone */
.khs-app{--khs-accent:#3156a3;--khs-accent-soft:#eef3ff;--khs-navy:#101a34;--khs-line:#dde1e8;--khs-soft:#f8f9fb}
.khs-landing{padding:18px!important;background:#fff!important;border:1px solid var(--khs-line)!important}
.khs-landing-shell{grid-template-columns:minmax(420px,.86fr) minmax(560px,1.14fr)!important;gap:0!important;min-height:500px!important;border:1px solid var(--khs-line)!important;background:#fff!important;overflow:hidden}
.khs-landing-copy{padding:42px 44px 38px!important;justify-content:center!important;background:linear-gradient(90deg,#fff 0%,#fff 83%,#fbfbfc 100%)!important}
.khs-landing-eyebrow{font-size:10px!important;letter-spacing:4.1px!important;color:#343a48!important;margin-bottom:16px!important}
.khs-landing-copy h2{font:400 clamp(38px,3.6vw,58px)/1.04 Georgia,"Times New Roman",serif!important;letter-spacing:-1.8px!important;margin:0 0 17px!important;max-width:650px!important;color:#11141b!important}
.khs-landing-copy p{max-width:650px!important;margin:0 0 24px!important;font-size:13px!important;line-height:1.82!important;color:#69707d!important}
.khs-landing-feature-list{gap:10px!important;margin-bottom:25px!important;max-width:600px!important}
.khs-landing-feature-list article{min-height:54px!important;padding:10px 12px!important;border-color:#e4e7ed!important;background:#fff!important}
.khs-landing-feature-list i{width:34px!important;height:34px!important;flex-basis:34px!important;border-color:#dfe6f6!important;background:var(--khs-accent-soft)!important;color:#2457c6!important;font-size:15px!important}
.khs-landing-feature-list b{font-size:11px!important;color:#171a20!important}
.khs-landing-feature-list small{font-size:9px!important;color:#858b96!important}
.khs-landing-actions{gap:9px!important}
.khs-landing-actions .khs-primary,.khs-landing-actions .khs-secondary{min-width:158px!important;min-height:46px!important;height:46px!important;font-size:11px!important}
.khs-landing-actions .khs-primary{background:#101114!important;border-color:#101114!important}
.khs-landing-actions .khs-secondary{background:#fff!important;border-color:#d6dae2!important;color:#20242c!important}
.khs-landing-visual{position:relative;min-width:0;background:#f7f7f8;overflow:hidden}
.khs-landing-poster{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;padding:0!important;border:0!important;border-left:1px solid var(--khs-line)!important;background:#f6f6f7!important;overflow:hidden!important}
.khs-landing-poster img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center center!important}
.khs-landing-stats{position:absolute;left:22px;right:22px;bottom:20px;z-index:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:rgba(255,255,255,.91);border:1px solid rgba(205,210,219,.9);backdrop-filter:blur(9px)}
.khs-landing-stats article{min-height:72px;padding:12px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-right:1px solid #e0e3e8;text-align:center}
.khs-landing-stats article:last-child{border-right:0}
.khs-landing-stats span{font-size:8px;letter-spacing:.6px;color:#7f8590;font-weight:750}
.khs-landing-stats b{font:400 17px Georgia,"Times New Roman",serif;color:#151820;white-space:nowrap}

.khs-landing-guide{margin-top:14px;border:1px solid var(--khs-line);background:#fff;padding:22px 24px 24px}
.khs-landing-guide-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:17px}
.khs-landing-guide-head>div{display:flex;flex-direction:column;gap:4px}
.khs-landing-guide-head span{font-size:8px;letter-spacing:2.2px;font-weight:850;color:#3156a3}
.khs-landing-guide-head b{font:400 23px Georgia,"Times New Roman",serif;color:#181b22}
.khs-landing-guide-head small{font-size:9px;line-height:1.6;color:#8b9099}
.khs-landing-guide-head>button{appearance:none!important;-webkit-appearance:none!important;border:0!important;background:transparent!important;color:#3156a3!important;padding:5px 0!important;font-size:9px!important;font-weight:800!important;cursor:pointer!important;box-shadow:none!important}
.khs-landing-guide-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #e1e4e9;border-left:1px solid #e1e4e9}
.khs-landing-guide-grid>button{appearance:none!important;-webkit-appearance:none!important;min-height:108px!important;padding:16px 15px!important;margin:0!important;border:0!important;border-right:1px solid #e1e4e9!important;border-bottom:1px solid #e1e4e9!important;border-radius:0!important;background:#fff!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) 18px!important;align-items:center!important;gap:12px!important;text-align:left!important;color:#17191e!important;box-shadow:none!important;cursor:pointer!important;transform:none!important}
.khs-landing-guide-grid>button:hover,.khs-landing-guide-grid>button:focus,.khs-landing-guide-grid>button:focus-visible{background:#fafbfe!important;box-shadow:inset 0 0 0 1px #3156a3!important;outline:0!important}
.khs-landing-guide-grid>button>i{width:42px;height:42px;display:flex;align-items:center;justify-content:center;background:#eef3ff;color:#315ed1;font-style:normal;font-size:17px}
.khs-landing-guide-grid>button>span{display:flex;flex-direction:column;gap:4px;min-width:0}
.khs-landing-guide-grid em{font-style:normal;font:400 13px Georgia,serif;color:#9da2ab}
.khs-landing-guide-grid b{font-size:11px;line-height:1.35;color:#181a20}
.khs-landing-guide-grid small{font-size:9px;line-height:1.55;color:#858b95}
.khs-landing-guide-grid strong{font-size:16px;font-weight:400;color:#333944;text-align:right}

/* compact full help panel — no giant duplicated model images */
.khs-help-panel{padding-top:40px!important}
.khs-help-panel .khs-section-head{margin-bottom:20px!important}
.khs-help-panel .khs-front-help.rich{grid-template-columns:repeat(4,minmax(0,1fr))!important;border-color:#dfe3e9!important}
.khs-help-panel .khs-front-help.rich article{min-height:330px!important;border-color:#dfe3e9!important}
.khs-help-panel .khs-help-media{height:150px!important;background-position:center center!important;background-size:cover!important}
.khs-help-panel .khs-front-help.rich em{font:400 18px Georgia,serif!important;margin:16px 18px 5px!important;color:#a0a5ad!important}
.khs-help-panel .khs-front-help.rich b{font-size:13px!important;margin:0 18px 7px!important}
.khs-help-panel .khs-front-help.rich span{font-size:9px!important;line-height:1.65!important;margin:0 18px 9px!important;color:#7f858e!important}
.khs-help-panel .khs-front-help.rich code{margin:0 18px 18px!important;padding:10px 11px!important;font-size:8px!important;line-height:1.6!important;background:#fafbfc!important;border-color:#e3e6ea!important}

/* subtle blue accent across studio while keeping black CTA */
.khs-toolbar .khs-panel-tabs .khs-panel-nav.active:after{background:#3156a3!important;height:1px!important}
.khs-segment input:checked+b{background:#172038!important;color:#fff!important}
.khs-stage-rail article.active{box-shadow:0 0 0 1px #3156a3 inset!important;border-color:#3156a3!important}
.khs-stage-rail article.active i{background:#3156a3!important;border-color:#3156a3!important}
.khs-modal-progress i,.khs-model-progress-bar i{background:#3156a3!important}
.khs-scene.active{box-shadow:inset 2px 0 0 #3156a3!important}

/* guide modal: deliberately compact */
.khs-guide-modal-card{width:min(800px,82vw)!important;max-height:84vh!important}
.khs-guide-modal-body{padding:12px!important}
.khs-guide-modal-body img{max-height:64vh!important}

@media(max-width:1180px){
  .khs-landing-shell{grid-template-columns:1fr!important}
  .khs-landing-visual{min-height:420px!important}
  .khs-landing-poster{border-left:0!important;border-top:1px solid var(--khs-line)!important}
  .khs-landing-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .khs-help-panel .khs-front-help.rich{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  .khs-landing{padding:10px!important}
  .khs-landing-copy{padding:27px 22px!important}
  .khs-landing-copy h2{font-size:35px!important}
  .khs-landing-visual{min-height:340px!important}
  .khs-landing-stats{left:10px;right:10px;bottom:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .khs-landing-stats article:nth-child(2){border-right:0}
  .khs-landing-stats article:nth-child(-n+2){border-bottom:1px solid #e0e3e8}
  .khs-landing-guide{padding:18px 15px}
  .khs-landing-guide-head{align-items:flex-start;flex-direction:column}
  .khs-landing-guide-grid{grid-template-columns:1fr!important}
  .khs-help-panel .khs-front-help.rich{grid-template-columns:1fr!important}
  .khs-guide-modal-card{width:94vw!important}
}

/* v1.15 help cards — small, premium, correct guide previews */
.khs-help-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:6px}
.khs-help-guide{appearance:none!important;-webkit-appearance:none!important;display:flex!important;flex-direction:column!important;padding:0!important;margin:0!important;border:1px solid #dfe3e9!important;border-radius:0!important;background:#fff!important;color:#17191e!important;text-align:left!important;box-shadow:none!important;outline:0!important;overflow:hidden!important;cursor:zoom-in!important;min-width:0!important;transform:none!important}
.khs-help-guide:hover,.khs-help-guide:focus,.khs-help-guide:focus-visible{border-color:#3156a3!important;box-shadow:0 0 0 1px #3156a3 inset!important;outline:0!important}
.khs-help-guide>img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:4/3!important;object-fit:contain!important;object-position:center center!important;background:#f7f8fa!important;border:0!important;border-bottom:1px solid #e2e5ea!important;margin:0!important;padding:0!important}
.khs-help-guide>span{display:flex!important;flex-direction:column!important;gap:5px!important;padding:14px 15px 16px!important;min-width:0!important}
.khs-help-guide em{font-style:normal!important;font:400 14px Georgia,"Times New Roman",serif!important;color:#9ea3ac!important}
.khs-help-guide b{font-size:12px!important;line-height:1.35!important;color:#17191e!important}
.khs-help-guide small{font-size:9px!important;line-height:1.6!important;color:#848a94!important}
.khs-help-note-bar{margin-top:14px;border:1px solid #e1e4e9;background:#fafbfc;padding:11px 13px;display:flex;align-items:center;gap:10px}
.khs-help-note-bar i{font-style:normal;font-size:8px;letter-spacing:1px;font-weight:850;color:#3156a3;border-right:1px solid #dfe3e9;padding-right:10px}
.khs-help-note-bar span{font-size:9px;line-height:1.6;color:#7c828c}
@media(max-width:1080px){.khs-help-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.khs-help-quick-grid{grid-template-columns:1fr}.khs-help-guide>img{height:auto!important;aspect-ratio:4/3!important}}

/* v1.17 — compact premium landing + exact guide previews */
.khs-app{
  width:min(1440px,calc(100vw - 40px))!important;
  max-width:none!important;
  position:relative!important;
  left:50%!important;
  transform:none!important;
  margin-left:max(-720px,calc(-50vw + 20px))!important;
  margin-right:0!important;
}
.khs-landing{
  width:100%!important;
  padding:13px!important;
  margin:0!important;
  border:1px solid #dde1e8!important;
  background:#fff!important;
}
.khs-landing-shell{
  width:100%!important;
  grid-template-columns:minmax(500px,44%) minmax(0,56%)!important;
  min-height:455px!important;
  gap:0!important;
  border:1px solid #dde1e8!important;
  overflow:hidden!important;
}
.khs-landing-copy{
  padding:30px 38px 28px 42px!important;
  background:linear-gradient(90deg,#fff 0%,#fff 88%,#fbfbfc 100%)!important;
}
.khs-landing-eyebrow{
  margin-bottom:11px!important;
  font-size:8px!important;
  letter-spacing:4px!important;
}
.khs-landing-copy h2{
  margin:0 0 14px!important;
  max-width:none!important;
  font:400 clamp(36px,2.55vw,43px)/1.07 Georgia,"Times New Roman",serif!important;
  letter-spacing:-1.8px!important;
  word-break:keep-all!important;
}
.khs-landing-copy h2>span{
  display:block!important;
  white-space:nowrap!important;
}
.khs-landing-copy p{
  max-width:590px!important;
  margin:0 0 17px!important;
  font-size:11px!important;
  line-height:1.8!important;
}
.khs-landing-feature-list{
  max-width:590px!important;
  gap:7px!important;
  margin-bottom:17px!important;
}
.khs-landing-feature-list article{
  min-height:45px!important;
  padding:7px 10px!important;
}
.khs-landing-feature-list i{
  width:29px!important;
  height:29px!important;
  flex-basis:29px!important;
}
.khs-landing-actions .khs-primary,.khs-landing-actions .khs-secondary{
  min-width:145px!important;
  height:41px!important;
  min-height:41px!important;
}
.khs-landing-visual{
  min-height:455px!important;
  border-left:1px solid #dde1e8!important;
  background:#f8f8f9!important;
}
.khs-landing-poster{
  border-left:0!important;
}
.khs-landing-poster img{
  object-fit:cover!important;
  object-position:center center!important;
}
.khs-landing-stats{
  left:26px!important;
  right:26px!important;
  bottom:18px!important;
}
.khs-landing-stats article{
  min-height:58px!important;
}
.khs-landing-guide{
  margin-top:11px!important;
  padding:17px 20px 19px!important;
}
.khs-landing-guide-head{
  margin-bottom:12px!important;
}
.khs-landing-guide-grid>button{
  min-height:88px!important;
}

/* prevent theme typography/button rules from changing the approved landing */
.khs-landing h2,.khs-landing p,.khs-landing span,.khs-landing small,.khs-landing b,.khs-landing em,.khs-landing strong,.khs-landing button{
  text-transform:none!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
.khs-landing button{
  border-radius:0!important;
}

@media(max-width:1280px){
  .khs-app{width:calc(100vw - 28px)!important;margin-left:calc(-50vw + 14px)!important}
  .khs-landing-shell{grid-template-columns:minmax(430px,44%) minmax(0,56%)!important;min-height:440px!important}
  .khs-landing-copy{padding:27px 30px 25px 33px!important}
  .khs-landing-copy h2{font-size:40px!important}
  .khs-landing-visual{min-height:440px!important}
  .khs-landing-stats{left:18px!important;right:18px!important;bottom:16px!important}
}
@media(max-width:1040px){
  .khs-app{width:calc(100vw - 20px)!important;margin-left:calc(-50vw + 10px)!important}
  .khs-landing-shell{grid-template-columns:1fr!important}
  .khs-landing-copy{padding:32px 34px!important}
  .khs-landing-copy h2{font-size:40px!important}
  .khs-landing-copy h2>span{white-space:normal!important}
  .khs-landing-visual{min-height:430px!important;border-left:0!important;border-top:1px solid #dde1e8!important}
  .khs-landing-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:640px){
  .khs-app{width:calc(100vw - 12px)!important;margin-left:calc(-50vw + 6px)!important}
  .khs-landing{padding:6px!important}
  .khs-landing-copy{padding:24px 20px!important}
  .khs-landing-copy h2{font-size:34px!important;letter-spacing:-1px!important}
  .khs-landing-visual{min-height:330px!important}
  .khs-landing-stats{left:8px!important;right:8px!important;bottom:8px!important}
  .khs-landing-guide{padding:16px 12px!important}
  .khs-landing-guide-grid{grid-template-columns:1fr!important}
}

/* v1.17 — guide images always open as the exact full 4:3 artwork */
.khs-guide-modal{padding:24px!important;background:rgba(9,12,19,.62)!important;backdrop-filter:blur(8px)!important}
.khs-guide-modal-card{width:min(760px,78vw)!important;max-height:82vh!important;overflow:hidden!important;background:#fff!important;border:1px solid #d9dde5!important;box-shadow:0 30px 90px rgba(5,10,22,.30)!important}
.khs-guide-modal-head{min-height:58px!important;padding:12px 14px 12px 16px!important;background:#fff!important;border-bottom:1px solid #e3e6eb!important}
.khs-guide-modal-head span{font-size:8px!important;letter-spacing:2.2px!important;color:#9aa0aa!important}
.khs-guide-modal-head b{font-size:12px!important;color:#171a20!important}
.khs-guide-modal-close{width:34px!important;height:34px!important;font-size:20px!important;border-color:#d8dce3!important}
.khs-guide-modal-body{padding:16px!important;background:#f7f8fa!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:auto!important}
.khs-guide-modal-body img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:calc(82vh - 92px)!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center center!important;margin:0 auto!important;border:1px solid #e0e4ea!important;background:#fff!important;box-shadow:0 10px 34px rgba(17,24,39,.08)!important}
@media(max-width:720px){
  .khs-guide-modal{padding:10px!important}
  .khs-guide-modal-card{width:94vw!important;max-height:88vh!important}
  .khs-guide-modal-body{padding:9px!important}
  .khs-guide-modal-body img{max-height:calc(88vh - 78px)!important}
}


/* v1.19 — commercial production monitor */
.khs-progress-top{display:flex;align-items:flex-end;justify-content:space-between;gap:28px}.khs-progress-top>div:first-child>span{font-size:9px;letter-spacing:2px;color:#8c8f95;font-weight:850}.khs-progress-numbers{display:flex;align-items:flex-end;gap:22px}.khs-progress-numbers>strong{font:400 46px/1 Georgia,"Times New Roman",serif;letter-spacing:-2px;color:#111}.khs-progress-numbers small{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.khs-progress-numbers small i{font-style:normal;font-size:8px;letter-spacing:1.4px;color:#95979c;font-weight:800}.khs-progress-numbers small b{font-size:15px;color:#17181b}.khs-modal-progress{display:block!important;margin:16px 0 8px!important}.khs-modal-progress>b{display:block!important;width:100%!important;height:8px!important;background:#eceef1!important;overflow:hidden!important;border:0!important}.khs-modal-progress>b>i{display:block!important;height:100%!important;background:#111!important;transition:width .55s ease!important}.khs-modal-progress>strong{display:none!important}
.khs-stage-rail article{position:relative;overflow:hidden}.khs-stage-rail article i{width:30px!important;height:30px!important}.khs-stage-rail article i svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.khs-stage-rail article em{position:absolute;left:0;right:0;bottom:0;height:2px;background:transparent}.khs-stage-rail article.active em:after{content:"";position:absolute;width:35%;height:100%;left:-35%;top:0;background:#111;animation:khsStageSweep 1.15s ease-in-out infinite}.khs-stage-rail article.active i{animation:khsStagePulse 1.35s ease-in-out infinite}.khs-stage-rail article.done i{animation:none!important}.khs-stage-rail article.failed i{animation:none!important}
@keyframes khsStageSweep{0%{left:-35%}100%{left:100%}}@keyframes khsStagePulse{0%,100%{transform:scale(1)}50%{transform:scale(1.09)}}
.khs-live-preview-media{position:relative}.khs-live-preview-media video{display:block;width:100%;height:100%;object-fit:cover;background:#111}.khs-live-overlay{position:absolute;left:10px;bottom:10px;display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.94);border:1px solid rgba(17,17,17,.14);padding:7px 9px}.khs-live-overlay svg{width:15px;height:15px;fill:none;stroke:#111;stroke-width:1.6;animation:khsStagePulse 1.35s ease-in-out infinite}.khs-live-overlay b{font-size:9px;color:#111}.khs-live-placeholder.active-stage svg{width:42px;height:42px;fill:none;stroke:#111;stroke-width:1.25;animation:khsStagePulse 1.35s ease-in-out infinite}.khs-live-placeholder.active-stage b{font:400 22px Georgia,"Times New Roman",serif;color:#17181b}.khs-live-placeholder.active-stage span{font-size:10px;letter-spacing:1px;color:#8b8e94}.khs-project-facts article:nth-child(2) b{font:400 26px Georgia,"Times New Roman",serif}.khs-project-facts article:nth-child(3) b{font-size:18px}
@media(max-width:700px){.khs-progress-top{align-items:flex-start;flex-direction:column}.khs-progress-numbers{width:100%;justify-content:space-between}.khs-progress-numbers>strong{font-size:38px}.khs-progress-numbers small{align-items:flex-start}}

/* v1.22 — commercial-safe production monitor and project controls */
.khs-help-entry{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;white-space:nowrap!important;line-height:1!important;vertical-align:middle!important}
.khs-help-entry svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;flex:0 0 16px}
.khs-help-entry span{display:block!important;line-height:1!important;margin:0!important;padding:0!important}
.khs-project-info footer{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-top:14px;padding-top:12px;border-top:1px solid #eceef1}
.khs-project-info footer button{min-height:30px;border:1px solid #d8dadd;background:#fff;padding:0 10px;font-size:9px;font-weight:800;cursor:pointer;color:#474a50}
.khs-project-info footer .khs-project-open{background:#111;color:#fff;border-color:#111}.khs-project-info footer .khs-project-delete{color:#8e4141}
.khs-state.cancelled{color:#6d6f74;border-color:#cfd1d5;background:#f6f6f7}
.khs-project-identity{display:grid;grid-template-columns:1.45fr repeat(3,minmax(110px,.8fr)) minmax(125px,.75fr);border-top:1px solid #e3e5e8;border-left:1px solid #e3e5e8;margin-top:18px}
.khs-project-identity article{min-height:62px;border-right:1px solid #e3e5e8;border-bottom:1px solid #e3e5e8;padding:10px 12px;display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;background:#fff}
.khs-project-identity span{font-size:8px!important;letter-spacing:1.15px!important;color:#989ba1!important;font-weight:800!important}.khs-project-identity b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#1b1d20}
.khs-live-preview{grid-template-columns:minmax(170px,240px) minmax(0,1fr)!important;gap:24px!important;padding:18px!important}.khs-live-preview-media{height:auto!important;max-height:280px;background:#f1f2f4!important}.khs-live-preview.ratio-16-9 .khs-live-preview-media{aspect-ratio:16/9}.khs-live-preview.ratio-9-16 .khs-live-preview-media{aspect-ratio:9/16;max-height:270px;justify-self:center;width:min(100%,152px)}.khs-live-preview.ratio-1-1 .khs-live-preview-media{aspect-ratio:1/1;max-height:230px;width:min(100%,230px)}
.khs-live-preview-media img,.khs-live-preview-media video{width:100%!important;height:100%!important;object-fit:contain!important;background:#111!important}.khs-live-preview-copy{gap:13px!important;padding:8px 6px}.khs-live-preview-copy b{line-height:1.2!important}.khs-live-preview-copy small{line-height:1.8!important}
.khs-scene{grid-template-columns:84px minmax(0,1fr) auto!important;gap:18px!important;padding:14px 16px!important}.khs-scene>span{width:84px!important;height:auto!important;aspect-ratio:16/9!important;background:#f2f3f5!important}.khs-scene img{object-fit:contain!important;background:#111}.khs-scene-board.ratio-9-16 .khs-scene>span{width:44px!important;aspect-ratio:9/16!important}.khs-scene-board.ratio-1-1 .khs-scene>span{width:58px!important;aspect-ratio:1/1!important}
.khs-project-actions{margin:0 34px 24px;border:1px solid #dedfe2;background:#fafafb;padding:14px 16px;display:flex;align-items:center;gap:14px}.khs-project-actions .khs-stop-generation{border:1px solid #8f3232;background:#fff;color:#8f3232;min-height:38px;padding:0 14px;font-size:10px;font-weight:850;cursor:pointer;white-space:nowrap}.khs-project-actions small{font-size:9px;line-height:1.55;color:#85888e}
.khs-complete{display:grid!important;grid-template-columns:minmax(260px,1.2fr) minmax(210px,.8fr)!important;gap:24px!important;align-items:center!important;padding:20px!important}.khs-complete-video{background:#111;display:flex;align-items:center;justify-content:center;max-height:430px}.khs-complete-video.ratio-16-9{aspect-ratio:16/9}.khs-complete-video.ratio-9-16{aspect-ratio:9/16;max-width:230px;justify-self:center;width:100%}.khs-complete-video.ratio-1-1{aspect-ratio:1/1}.khs-complete-video video{display:block;width:100%;height:100%;object-fit:contain;background:#111}.khs-complete-copy{display:flex;flex-direction:column;gap:16px;min-width:0}.khs-complete-copy>b{font:400 24px/1.2 Georgia,"Times New Roman",serif}.khs-complete-copy>div{display:flex;flex-wrap:wrap;gap:8px}.khs-complete-copy a,.khs-complete-copy button{min-height:39px;padding:0 14px;border:1px solid #111;font-size:10px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.khs-complete-copy a{background:#111;color:#fff!important;text-decoration:none}.khs-complete-copy button{background:#fff;color:#555}.khs-complete-copy small{font-size:10px;color:#777}
.khs-project-delete-zone{margin:0 34px 34px;padding-top:14px;border-top:1px solid #eceef1;display:flex;justify-content:flex-end}.khs-project-delete-zone button{border:0;background:none;color:#9a5050;text-decoration:underline;text-underline-offset:3px;font-size:9px;cursor:pointer}.khs-cancelled{border-color:#d7d8db!important}.khs-cancelled span{color:#777!important}
@media(max-width:900px){.khs-project-identity{grid-template-columns:repeat(2,minmax(0,1fr))}.khs-live-preview{grid-template-columns:1fr!important}.khs-live-preview-media{justify-self:center;width:min(100%,420px)}.khs-complete{grid-template-columns:1fr!important}.khs-complete-video{width:100%;max-width:620px;justify-self:center}.khs-project-actions{align-items:flex-start;flex-direction:column}}
@media(max-width:640px){.khs-project-identity{grid-template-columns:1fr}.khs-project-actions,.khs-project-delete-zone{margin-left:18px;margin-right:18px}.khs-scene{grid-template-columns:58px minmax(0,1fr)!important}.khs-scene>em{grid-column:2}.khs-complete{margin-left:18px!important;margin-right:18px!important}}



/* v1.27 · Premium production workbench — compact, aligned, no duplicate status */
.khs-project-modal-card{width:min(1180px,calc(100vw - 28px))!important;max-height:94vh!important;overflow:auto!important;border:1px solid #d9dee7!important;border-radius:0!important;background:#fff!important;box-shadow:0 34px 100px rgba(10,18,35,.22)!important}
.khs-modal-head-premium{padding:17px 22px 12px!important;background:#fff!important;border-bottom:1px solid #e4e8ee!important}
.khs-progress-top{align-items:center!important;gap:24px!important}
.khs-progress-top>div:first-child{min-width:0!important}
.khs-progress-top>div:first-child>span{display:block!important;margin-bottom:3px!important;font-size:9px!important;letter-spacing:1.35px!important;color:#8c94a2!important}
.khs-progress-top h3{margin:0!important;font:600 19px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-.35px!important;color:#151923!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.khs-progress-numbers{align-items:center!important;gap:18px!important;flex:0 0 auto!important}
.khs-progress-numbers>strong{font:500 34px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-1.5px!important;color:#17213a!important}
.khs-progress-numbers small{align-items:flex-end!important;gap:2px!important}
.khs-progress-numbers small i{font-size:9px!important;letter-spacing:.6px!important;color:#9aa1ad!important}
.khs-progress-numbers small b{font-size:12px!important;color:#343b48!important}
.khs-modal-progress{margin:10px 0 8px!important}
.khs-modal-progress>b{height:3px!important;background:#e8ebf1!important;overflow:visible!important;position:relative!important}
.khs-modal-progress>b>i{height:3px!important;background:#3156a3!important;position:relative!important;box-shadow:0 0 12px rgba(49,86,163,.18)!important}
.khs-modal-progress>b>i:after{content:"";position:absolute;right:-1px;top:50%;width:5px;height:5px;transform:translateY(-50%);background:#3156a3;box-shadow:0 0 0 3px rgba(49,86,163,.09)}

.khs-stage-rail{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:0!important;margin:9px 0 0!important;border-top:1px solid #edf0f4!important;border-bottom:1px solid #edf0f4!important;background:#fafbfd!important}
.khs-stage-rail article{min-height:47px!important;padding:7px 5px!important;border:0!important;border-right:1px solid #edf0f4!important;background:transparent!important;box-shadow:none!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:6px!important;position:relative!important;overflow:hidden!important}
.khs-stage-rail article:last-child{border-right:0!important}
.khs-stage-rail article i{width:23px!important;height:23px!important;flex:0 0 23px!important;border:0!important;background:#eef1f5!important;color:#8a929f!important;display:grid!important;place-items:center!important;padding:4px!important;animation:none!important}
.khs-stage-rail article i svg{width:14px!important;height:14px!important;stroke-width:1.6!important}
.khs-stage-rail article span{font-size:10px!important;line-height:1.2!important;font-weight:750!important;color:#8a919d!important;white-space:nowrap!important}
.khs-stage-rail article em{position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:2px!important;background:transparent!important}
.khs-stage-rail article.done{background:#f7f8fa!important}
.khs-stage-rail article.done i{background:#202633!important;color:#fff!important}
.khs-stage-rail article.done span{color:#343b47!important}
.khs-stage-rail article.active{background:#fff!important;box-shadow:none!important}
.khs-stage-rail article.active i{background:#3156a3!important;color:#fff!important;animation:none!important}
.khs-stage-rail article.active span{color:#1f315c!important}
.khs-stage-rail article.active em{background:#3156a3!important}
.khs-stage-rail article.active em:after{display:none!important}
.khs-stage-rail article.failed em{background:#9b4b4b!important}

.khs-project-identity{display:grid!important;grid-template-columns:1.35fr repeat(3,minmax(0,.9fr)) minmax(0,.8fr)!important;margin:8px 0 0!important;border:1px solid #e5e8ed!important;background:#fff!important}
.khs-project-identity article{min-height:43px!important;padding:7px 10px!important;border:0!important;border-right:1px solid #e8ebef!important;background:#fff!important;gap:2px!important}
.khs-project-identity article:last-child{border-right:0!important}
.khs-project-identity span{font-size:9px!important;letter-spacing:.55px!important;color:#8e97a4!important}
.khs-project-identity b{font-size:11px!important;font-weight:700!important;color:#2b3039!important}

.khs-project-live-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 210px!important;gap:10px!important;padding:10px 22px 8px!important;background:#fff!important;align-items:stretch!important}
.khs-live-preview{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:minmax(280px,auto) auto!important;gap:0!important;min-height:0!important;max-height:none!important;padding:0!important;border:1px solid #dfe4eb!important;background:#fff!important;overflow:hidden!important}
.khs-live-preview-media{position:relative!important;width:100%!important;min-height:300px!important;max-height:460px!important;aspect-ratio:16/9!important;border:0!important;background:#0b0f16!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
.khs-live-preview.ratio-9-16 .khs-live-preview-media,.khs-live-preview.ratio-1-1 .khs-live-preview-media,.khs-live-preview.ratio-16-9 .khs-live-preview-media{width:100%!important;max-height:460px!important;aspect-ratio:16/9!important;justify-self:stretch!important}
.khs-live-preview-media img,.khs-live-preview-media video{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;background:#0b0f16!important}
.khs-preview-open{appearance:none!important;-webkit-appearance:none!important;display:block!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important;border:0!important;background:#0b0f16!important;cursor:zoom-in!important;box-shadow:none!important;outline:0!important}
.khs-preview-open:hover,.khs-preview-open:focus,.khs-preview-open:focus-visible{outline:0!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)!important}
.khs-live-overlay{display:none!important}
.khs-live-preview-copy{min-height:52px!important;padding:9px 12px!important;border-top:1px solid #e4e8ee!important;background:#fff!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:18px!important}
.khs-live-preview-copy>div{min-width:0!important;display:flex!important;align-items:baseline!important;gap:10px!important}
.khs-live-preview-copy span{font-size:9px!important;letter-spacing:.9px!important;color:#7f8997!important;font-weight:850!important;white-space:nowrap!important}
.khs-live-preview-copy b{font:700 13px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-.2px!important;color:#1a1f28!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.khs-live-preview-copy small{font-size:10px!important;line-height:1.4!important;color:#6f7885!important;white-space:nowrap!important}
.khs-live-placeholder{width:100%!important;height:100%!important;min-height:300px!important;background:linear-gradient(145deg,#111722 0%,#0b0f16 100%)!important;color:#fff!important}
.khs-live-placeholder.active-stage svg{width:34px!important;height:34px!important;stroke:#93a3c4!important;animation:none!important}
.khs-live-placeholder.active-stage b{font:600 14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;color:#f5f7fb!important}
.khs-live-placeholder.active-stage span{font-size:10px!important;letter-spacing:.1px!important;color:#98a1ae!important}

.khs-project-facts{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:1.2fr .9fr .9fr!important;gap:7px!important}
.khs-project-facts article{min-height:0!important;padding:10px 12px!important;border:1px solid #e1e5eb!important;background:#fafbfd!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:4px!important}
.khs-project-facts span{font-size:9px!important;letter-spacing:.7px!important;color:#838d9b!important;font-weight:850!important}
.khs-project-facts b{font:700 17px/1.15 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-.3px!important;color:#202634!important}
.khs-project-facts small{font-size:10px!important;line-height:1.35!important;color:#707987!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.khs-project-facts article:nth-child(2) b,.khs-project-facts article:nth-child(3) b{font-size:14px!important}

.khs-scene-board{padding:6px 22px 14px!important;background:#fff!important}
.khs-scene-board-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:14px!important;padding:7px 0 8px!important;margin:0!important;border-top:1px solid #edf0f4!important}
.khs-scene-board-head>div{display:flex!important;align-items:baseline!important;gap:10px!important;min-width:0!important}
.khs-scene-board-head b{font-size:12px!important;color:#242a33!important}
.khs-scene-board-head small{font-size:10px!important;color:#7f8895!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.khs-scene-board-head>span{font-size:10px!important;color:#7f8895!important;white-space:nowrap!important}
.khs-scene-list{display:block!important;padding:0!important;margin:0!important;border:1px solid #e3e7ed!important;background:#fff!important}
.khs-scene{min-height:58px!important;padding:6px 9px!important;display:grid!important;grid-template-columns:66px minmax(0,1fr) 160px!important;gap:10px!important;align-items:center!important;border:0!important;border-bottom:1px solid #edf0f3!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;transform:none!important;transition:background .15s ease,border-color .15s ease!important}
.khs-scene:last-child{border-bottom:0!important}
.khs-scene:hover{background:#fbfcfe!important}
.khs-scene.active{background:#f7f9fd!important;box-shadow:inset 2px 0 0 #3156a3!important;transform:none!important}
.khs-scene.working{border-color:#edf0f3!important;box-shadow:none!important}
.khs-scene-media{appearance:none!important;-webkit-appearance:none!important;position:relative!important;width:66px!important;height:42px!important;aspect-ratio:auto!important;padding:0!important;margin:0!important;border:1px solid #dfe4ea!important;border-radius:0!important;background:#0d1118!important;overflow:hidden!important;cursor:pointer!important;box-shadow:none!important;outline:0!important}
.khs-scene-media:hover,.khs-scene-media:focus,.khs-scene-media:focus-visible{border-color:#3156a3!important;outline:0!important;box-shadow:0 0 0 1px #3156a3!important}
.khs-scene-media img,.khs-scene-media video{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important;background:#0d1118!important}
.khs-scene-number{font-style:normal!important;font:600 13px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;color:#9da5b1!important}
.khs-scene-play{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:22px!important;height:22px!important;border-radius:50%!important;background:rgba(8,12,18,.66)!important;color:#fff!important;font-style:normal!important;font-size:9px!important;display:grid!important;place-items:center!important;pointer-events:none!important}
.khs-scene-copy{min-width:0!important}
.khs-scene-copy>b{display:block!important;font-size:11px!important;font-weight:750!important;color:#222832!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.khs-scene-copy>small{display:block!important;margin-top:2px!important;font-size:10px!important;color:#7e8794!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.khs-scene-progress{height:2px!important;background:#e7eaf0!important;margin-top:6px!important;overflow:hidden!important;border-radius:0!important}
.khs-scene-progress>i{display:block!important;height:100%!important;background:#3156a3!important;border-radius:0!important;transition:width .45s ease!important;position:relative!important;overflow:hidden!important}
.khs-scene.working .khs-scene-progress>i:after{content:"";position:absolute;inset:0 auto 0 -28%;width:28%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.72),transparent);animation:khsProgressSheen 1.15s linear infinite}
@keyframes khsProgressSheen{to{left:110%}}
.khs-scene>em{display:grid!important;grid-template-columns:minmax(0,1fr) 38px!important;align-items:center!important;justify-content:stretch!important;gap:5px!important;font-style:normal!important;font-weight:750!important;font-size:10px!important;color:#596271!important;white-space:nowrap!important;text-align:left!important}
.khs-scene.working>em{grid-template-columns:14px minmax(0,1fr) 38px!important}
.khs-scene>em span{overflow:hidden!important;text-overflow:ellipsis!important}
.khs-scene>em strong{min-width:0!important;text-align:right!important;font-size:10px!important;color:#707987!important;font-variant-numeric:tabular-nums!important}
.khs-mini-spinner{width:11px!important;height:11px!important;border:1.5px solid rgba(49,86,163,.18)!important;border-top-color:#3156a3!important;border-radius:50%!important;animation:khsMiniSpin .75s linear infinite!important}
@keyframes khsMiniSpin{to{transform:rotate(360deg)}}

.khs-project-actions{margin:0 22px 14px!important;padding:10px 12px!important;border:1px solid #e2e6ec!important;background:#fafbfd!important;gap:12px!important}
.khs-project-actions .khs-stop-generation{min-height:34px!important;height:34px!important;padding:0 11px!important;font-size:10px!important}
.khs-project-actions small{font-size:9px!important;color:#858d98!important}
.khs-project-delete-zone{margin:0 22px 18px!important;padding-top:9px!important}

/* Full-size scene viewer */
.khs-scene-viewer{position:fixed;inset:0;z-index:1000000;display:none;align-items:center;justify-content:center;background:rgba(5,8,13,.93);backdrop-filter:blur(8px);padding:52px 74px}
.khs-scene-viewer.open{display:flex}
.khs-scene-viewer-stage{display:flex;align-items:center;justify-content:center;width:100%;height:100%;max-width:calc(100vw - 150px);max-height:calc(100vh - 110px)}
.khs-scene-viewer-stage img,.khs-scene-viewer-stage video{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;background:#05080d;box-shadow:0 24px 80px rgba(0,0,0,.4)}
.khs-scene-viewer-close,.khs-scene-viewer-nav{appearance:none;-webkit-appearance:none;position:absolute;z-index:2;border:1px solid rgba(255,255,255,.22);background:rgba(12,17,25,.74);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:none}
.khs-scene-viewer-close{right:22px;top:20px;width:38px;height:38px;font-size:24px;font-weight:300}
.khs-scene-viewer-nav{top:50%;transform:translateY(-50%);width:42px;height:64px;font-size:34px;font-weight:200}
.khs-scene-viewer-nav.prev{left:20px}.khs-scene-viewer-nav.next{right:20px}
.khs-scene-viewer-caption{position:absolute;left:50%;bottom:17px;transform:translateX(-50%);max-width:70vw;color:#cbd2dc;font-size:10px;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

@media(max-width:940px){
  .khs-stage-rail{grid-template-columns:repeat(4,minmax(0,1fr))!important}.khs-stage-rail article:nth-child(4){border-right:0!important}.khs-stage-rail article:nth-child(-n+4){border-bottom:1px solid #edf0f4!important}
  .khs-project-live-shell{grid-template-columns:1fr!important}.khs-project-facts{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:1fr!important}.khs-project-facts article{min-height:58px!important}
  .khs-project-identity{grid-template-columns:repeat(3,minmax(0,1fr))!important}.khs-project-identity article:nth-child(3){border-right:0!important}.khs-project-identity article:nth-child(-n+3){border-bottom:1px solid #e8ebef!important}
}
@media(max-width:680px){
  .khs-project-modal-card{width:calc(100vw - 12px)!important}.khs-modal-head-premium,.khs-project-live-shell,.khs-scene-board{padding-left:12px!important;padding-right:12px!important}.khs-progress-top{align-items:flex-start!important;flex-direction:column!important;gap:9px!important}.khs-progress-numbers{width:100%!important;justify-content:space-between!important}.khs-progress-numbers small{align-items:flex-start!important}.khs-progress-numbers>strong{font-size:30px!important}
  .khs-stage-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important}.khs-stage-rail article:nth-child(odd){border-right:1px solid #edf0f4!important}.khs-stage-rail article:nth-child(even){border-right:0!important}.khs-stage-rail article:nth-child(-n+6){border-bottom:1px solid #edf0f4!important}
  .khs-project-identity{grid-template-columns:1fr 1fr!important}.khs-project-identity article{border-bottom:1px solid #e8ebef!important}.khs-project-identity article:nth-child(odd){border-right:1px solid #e8ebef!important}.khs-project-identity article:nth-child(even){border-right:0!important}.khs-project-identity article:last-child{grid-column:1/-1!important;border-bottom:0!important}
  .khs-live-preview-media{min-height:220px!important}.khs-live-placeholder{min-height:220px!important}.khs-live-preview-copy{align-items:flex-start!important;flex-direction:column!important;gap:3px!important}.khs-live-preview-copy>div{width:100%!important}.khs-project-facts{grid-template-columns:1fr 1fr 1fr!important}.khs-project-facts article{padding:8px!important}.khs-project-facts b{font-size:13px!important}.khs-project-facts small{display:none!important}
  .khs-scene{grid-template-columns:58px minmax(0,1fr)!important;gap:8px!important}.khs-scene-media{width:58px!important;height:38px!important}.khs-scene>em{grid-column:2!important;grid-row:2!important;margin-top:-2px!important}.khs-scene-copy{align-self:end!important}.khs-scene-board-head small{display:none!important}.khs-project-actions,.khs-project-delete-zone{margin-left:12px!important;margin-right:12px!important}
  .khs-scene-viewer{padding:54px 10px 44px}.khs-scene-viewer-stage{max-width:100%;max-height:calc(100vh - 100px)}.khs-scene-viewer-nav{width:34px;height:52px;background:rgba(8,12,18,.58)}.khs-scene-viewer-nav.prev{left:8px}.khs-scene-viewer-nav.next{right:8px}.khs-scene-viewer-close{right:10px;top:10px}
}


/* v1.28 — final-stage progress + collision-safe premium project header */
.khs-project-modal-card .khs-modal-head-premium{
  padding:26px 92px 22px 30px!important;
}
.khs-project-modal-card>.khs-modal-close,
#khs-project-modal .khs-modal-close{
  position:absolute!important;
  top:16px!important;
  right:18px!important;
  width:42px!important;
  height:42px!important;
  z-index:20!important;
  background:#fff!important;
}
.khs-progress-top{min-width:0!important;gap:22px!important}
.khs-progress-top>div:first-child{min-width:0!important;flex:1 1 auto!important}
.khs-progress-top>div:first-child h3{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;padding-right:6px!important}
.khs-progress-numbers{flex:0 0 auto!important;padding-right:0!important}
.khs-stage-rail article{position:relative!important;overflow:hidden!important;padding-bottom:15px!important}
.khs-stage-rail article em{
  position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:3px!important;
  background:#eef0f3!important;overflow:hidden!important;
}
.khs-stage-rail article em:after{display:none!important;content:none!important}
.khs-stage-rail article em>b{
  display:block!important;height:100%!important;width:0;background:#111!important;
  transition:width .55s cubic-bezier(.22,.61,.36,1)!important;
}
.khs-stage-rail article.done em{background:rgba(255,255,255,.18)!important}
.khs-stage-rail article.done em>b{background:#fff!important}
.khs-stage-rail article.active i{animation:none!important}
.khs-stage-pct{
  position:absolute;right:9px;top:11px;margin:0!important;font:800 9px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  letter-spacing:.2px!important;color:#1b1d21!important;
}
.khs-stage-rail article.failed .khs-stage-pct{color:#9c3939!important}
@media(max-width:700px){
  .khs-project-modal-card .khs-modal-head-premium{padding:22px 68px 18px 18px!important}
  .khs-project-modal-card>.khs-modal-close,#khs-project-modal .khs-modal-close{top:12px!important;right:12px!important;width:40px!important;height:40px!important}
  .khs-progress-numbers{gap:14px!important}
}

/* v1.43 — authoritative wide production monitor. */
#khs-project-modal{padding:12px!important}
#khs-project-modal .khs-project-modal-card,
#khs-project-modal .khs-project-modal-card.khs-modal-ratio-16-9,
#khs-project-modal .khs-project-modal-card.khs-modal-ratio-9-16,
#khs-project-modal .khs-project-modal-card.khs-modal-ratio-1-1{position:relative!important;width:min(1560px,calc(100vw - 24px))!important;max-height:calc(100vh - 24px)!important;height:auto!important;overflow:auto!important;border:1px solid #ccd3dd!important;border-radius:0!important;background:#fff!important;box-shadow:0 28px 90px rgba(10,18,32,.28)!important}
#khs-project-modal .khs-project-modal-card>.khs-modal-close{position:absolute!important;top:12px!important;right:14px!important;width:34px!important;height:34px!important;display:grid!important;place-items:center!important;margin:0!important;padding:0!important;border:1px solid #d7dde5!important;border-radius:0!important;background:#fff!important;color:#172236!important;font:300 23px/1 Arial,sans-serif!important;cursor:pointer!important;z-index:50!important}
#khs-project-modal .khs-project-modal-card>.khs-modal-close:hover{background:#f2f5f8!important;border-color:#aeb8c6!important}
#khs-project-modal .khs-modal-head-premium{padding:10px 62px 7px 18px!important;border-bottom:1px solid #e2e6ec!important;background:#fff!important}
#khs-project-modal .khs-progress-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important}
#khs-project-modal .khs-progress-top>div:first-child{min-width:0!important}
#khs-project-modal .khs-progress-top>div:first-child>span{display:block!important;margin-bottom:2px!important;font-size:8px!important;line-height:1!important;letter-spacing:1.35px!important;color:#8a94a2!important;font-weight:850!important}
#khs-project-modal .khs-progress-top h3{margin:0!important;font:700 19px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-.45px!important;color:#172033!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#khs-project-modal .khs-progress-numbers{display:flex!important;align-items:center!important;gap:18px!important;flex:0 0 auto!important}
#khs-project-modal .khs-progress-numbers>strong{font:800 31px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-1.2px!important;color:#17233b!important;font-variant-numeric:tabular-nums!important}
#khs-project-modal .khs-progress-numbers small{display:grid!important;grid-template-columns:auto auto!important;align-items:center!important;gap:6px!important;font-size:9px!important;color:#929aa6!important}
#khs-project-modal .khs-progress-numbers small i{font-style:normal!important}
#khs-project-modal .khs-progress-numbers small b{font-size:11px!important;color:#344052!important;font-variant-numeric:tabular-nums!important}
#khs-project-modal .khs-modal-progress{display:block!important;margin:7px 0 6px!important;height:3px!important;background:#e7eaf0!important;overflow:hidden!important}
#khs-project-modal .khs-modal-progress>b{display:block!important;width:100%!important;height:100%!important;background:transparent!important}
#khs-project-modal .khs-modal-progress b i{display:block!important;height:100%!important;background:#1e3f82!important;transition:width .35s linear!important}

#khs-project-modal .khs-stage-rail{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;border:1px solid #dfe4eb!important;background:#fff!important}
#khs-project-modal .khs-stage-rail article{position:relative!important;height:36px!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;padding:0 6px!important;border:0!important;border-right:1px solid #e7ebf0!important;background:#fff!important;border-radius:0!important}
#khs-project-modal .khs-stage-rail article:last-child{border-right:0!important}
#khs-project-modal .khs-stage-rail article>i{flex:0 0 18px!important;width:18px!important;height:18px!important;display:grid!important;place-items:center!important;border:1px solid #cfd6df!important;border-radius:0!important;background:#fff!important;color:#7f8a98!important}
#khs-project-modal .khs-stage-rail article>i svg{width:11px!important;height:11px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.65!important}
#khs-project-modal .khs-stage-rail article>span{min-width:0!important;font-size:8.5px!important;font-weight:800!important;color:#7e8895!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#khs-project-modal .khs-stage-rail article.done>i{background:#25334a!important;border-color:#25334a!important;color:#fff!important}
#khs-project-modal .khs-stage-rail article.done>span{color:#3a4657!important}
#khs-project-modal .khs-stage-rail article.active>i{background:#1e3f82!important;border-color:#1e3f82!important;color:#fff!important}
#khs-project-modal .khs-stage-rail article.active>span{color:#183c7c!important}
#khs-project-modal .khs-stage-rail article>em{position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:2px!important;background:transparent!important}
#khs-project-modal .khs-stage-rail article.active>em{background:#1e3f82!important}
#khs-project-modal .khs-stage-rail article>em>b{display:none!important}
#khs-project-modal .khs-stage-audio{width:18px!important;height:18px!important;flex:0 0 18px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#1e3f82!important;font-size:9px!important;cursor:pointer!important}

#khs-project-modal .khs-project-live-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 340px!important;gap:18px!important;align-items:center!important;padding:10px 20px 8px!important;background:#fff!important}
#khs-project-modal .khs-live-preview{display:grid!important;grid-template-rows:minmax(0,1fr) 36px!important;gap:0!important;min-height:0!important;padding:0!important;border:1px solid #d9dfe7!important;border-radius:0!important;background:#fff!important;overflow:hidden!important;justify-self:center!important}
#khs-project-modal .khs-live-preview.ratio-16-9{width:min(760px,100%)!important;aspect-ratio:auto!important}
#khs-project-modal .khs-live-preview.ratio-16-9 .khs-live-preview-media{width:100%!important;aspect-ratio:16/9!important;max-height:360px!important}
#khs-project-modal .khs-live-preview.ratio-9-16{width:220px!important}
#khs-project-modal .khs-live-preview.ratio-9-16 .khs-live-preview-media{width:220px!important;aspect-ratio:9/16!important;max-height:391px!important}
#khs-project-modal .khs-live-preview.ratio-1-1{width:380px!important}
#khs-project-modal .khs-live-preview.ratio-1-1 .khs-live-preview-media{width:380px!important;aspect-ratio:1/1!important;max-height:380px!important}
#khs-project-modal .khs-live-preview-media{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:0!important;overflow:hidden!important;background:#f4f6f8!important}
#khs-project-modal .khs-live-preview-media img,#khs-project-modal .khs-live-preview-media video{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;background:transparent!important}
#khs-project-modal .khs-preview-open{display:block!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;cursor:zoom-in!important}
#khs-project-modal .khs-live-preview-copy{height:36px!important;padding:0 10px!important;border-top:1px solid #e1e5ea!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
#khs-project-modal .khs-live-preview-copy>div{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
#khs-project-modal .khs-live-preview-copy span{font-size:7.5px!important;letter-spacing:.7px!important;color:#919aa7!important;font-weight:850!important;white-space:nowrap!important}
#khs-project-modal .khs-live-preview-copy b{min-width:0!important;font-size:10px!important;color:#202a39!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#khs-project-modal .khs-live-preview-copy small{font-size:8.5px!important;color:#7e8794!important;white-space:nowrap!important}

#khs-project-modal .khs-live-side{align-self:stretch!important;display:flex!important;flex-direction:column!important;border-left:1px solid #dfe4ea!important;padding-left:16px!important;background:#fff!important}
#khs-project-modal .khs-live-side span{display:block!important;margin:0 0 4px!important;font-size:7.5px!important;line-height:1.2!important;letter-spacing:.55px!important;color:#9099a6!important;font-weight:850!important}
#khs-project-modal .khs-side-summary{display:grid!important;grid-template-columns:1fr 1fr!important;border-bottom:1px solid #e7ebf0!important}
#khs-project-modal .khs-side-summary>section{min-width:0!important;padding:7px 10px 8px 0!important;border:0!important;background:transparent!important}
#khs-project-modal .khs-side-summary>section+section{padding-left:12px!important;border-left:1px solid #e7ebf0!important}
#khs-project-modal .khs-side-summary strong{display:flex!important;align-items:baseline!important;gap:5px!important}
#khs-project-modal .khs-side-summary strong b{font-size:25px!important;line-height:1!important;color:#17233b!important}
#khs-project-modal .khs-side-summary strong i{font-style:normal!important;font-size:10px!important;color:#8f98a4!important}
#khs-project-modal .khs-side-summary>section>b{display:block!important;font-size:10.5px!important;color:#273245!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#khs-project-modal .khs-live-side-grid{display:grid!important;grid-template-columns:1fr 1fr!important;border-bottom:1px solid #e7ebf0!important}
#khs-project-modal .khs-live-side-grid>div{min-width:0!important;padding:7px 10px 8px 0!important}
#khs-project-modal .khs-live-side-grid>div+div{padding-left:12px!important;border-left:1px solid #e7ebf0!important}
#khs-project-modal .khs-live-side-grid b{display:block!important;font-size:10px!important;color:#273245!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#khs-project-modal .khs-project-identity-grid{display:grid!important;grid-template-columns:1fr 1fr!important;margin:0!important;border:0!important;border-bottom:1px solid #e7ebf0!important;background:transparent!important}
#khs-project-modal .khs-project-identity-grid article{min-width:0!important;height:auto!important;padding:7px 10px 8px 0!important;display:block!important;border:0!important;border-bottom:1px solid #eef1f4!important;background:transparent!important}
#khs-project-modal .khs-project-identity-grid article:nth-child(even){padding-left:12px!important;border-left:1px solid #e7ebf0!important}
#khs-project-modal .khs-project-identity-grid article:nth-child(n+3){border-bottom:0!important}
#khs-project-modal .khs-project-identity-grid span{font-size:7.5px!important;color:#919aa7!important;letter-spacing:.4px!important}
#khs-project-modal .khs-project-identity-grid b{display:block!important;margin-top:3px!important;font-size:9.5px!important;color:#1f2938!important;text-align:left!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

#khs-project-modal .khs-render-control{margin-top:auto!important;padding:8px 0 0!important;border:0!important;background:transparent!important}
#khs-project-modal .khs-render-control-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:6px!important}
#khs-project-modal .khs-render-control-head span{margin:0!important}
#khs-project-modal .khs-render-control-head b{font-size:9px!important;color:#344052!important}
#khs-project-modal .khs-render-retry{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:32px!important;margin:0 0 7px!important;padding:0 12px!important;border:1px solid #17243a!important;border-radius:0!important;background:#17243a!important;color:#fff!important;font-size:9px!important;font-weight:850!important;cursor:pointer!important;transition:background .15s,border-color .15s!important}
#khs-project-modal .khs-render-retry:hover{background:#244b8f!important;border-color:#244b8f!important;cursor:pointer!important}
#khs-project-modal .khs-render-retry:disabled,#khs-project-modal .khs-render-retry.working{cursor:wait!important;opacity:.72!important}
#khs-project-modal .khs-render-runtime{margin:0!important;padding:7px 0 0!important;border:0!important;border-top:1px solid #e7ebf0!important;background:transparent!important}
#khs-project-modal .khs-render-runtime-main{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:8px!important}
#khs-project-modal .khs-render-runtime-main>span{min-width:0!important;display:flex!important;align-items:center!important;gap:6px!important}
#khs-project-modal .khs-runtime-dot{flex:0 0 6px!important;width:6px!important;height:6px!important;border-radius:50%!important;background:#244b8f!important}
#khs-project-modal .khs-render-runtime-main>span b{font-size:9px!important;color:#1c2738!important;white-space:nowrap!important}
#khs-project-modal .khs-render-runtime-main>span small{min-width:0!important;font-size:7.5px!important;color:#7f8996!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#khs-project-modal .khs-render-runtime-percent{font-size:13px!important;color:#17233b!important;font-variant-numeric:tabular-nums!important}
#khs-project-modal .khs-render-runtime-main>em{font-style:normal!important;font-size:8px!important;color:#707b8b!important;font-variant-numeric:tabular-nums!important}
#khs-project-modal .khs-render-runtime-track{height:3px!important;margin-top:6px!important;background:#e4e8ee!important;overflow:hidden!important}
#khs-project-modal .khs-render-runtime-track>i{display:block!important;height:100%!important;background:#244b8f!important;transition:width .35s linear!important}
#khs-project-modal .khs-render-runtime-steps{display:flex!important;justify-content:flex-end!important;gap:13px!important;margin-top:4px!important}
#khs-project-modal .khs-render-runtime-steps span{font-size:7px!important;color:#a0a8b3!important}
#khs-project-modal .khs-render-runtime-steps span.on{color:#244b8f!important;font-weight:850!important}
#khs-project-modal .khs-render-runtime-steps span.done{color:#586474!important}

#khs-project-modal .khs-scene-board{margin:0 20px 7px!important;padding:0!important;background:#fff!important}
#khs-project-modal .khs-scene-board-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;height:25px!important;padding:0!important;border-top:1px solid #e7ebf0!important}
#khs-project-modal .khs-scene-board-head>div{display:flex!important;align-items:baseline!important;gap:8px!important;min-width:0!important}
#khs-project-modal .khs-scene-board-head b{font-size:9.5px!important;color:#263143!important}
#khs-project-modal .khs-scene-board-head small{font-size:7.5px!important;color:#8c95a2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#khs-project-modal .khs-scene-board-head>span{font-size:8px!important;color:#929aa6!important}
#khs-project-modal .khs-scene-list{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(250px,1fr)!important;gap:7px!important;margin:0!important;padding:0!important;border:0!important;background:#fff!important;overflow-x:auto!important;overflow-y:hidden!important;max-height:none!important;scrollbar-width:thin!important;scroll-snap-type:x proximity!important;overscroll-behavior-x:contain!important;overscroll-behavior-y:none!important}
#khs-project-modal .khs-scene{position:relative!important;display:grid!important;grid-template-columns:76px minmax(0,1fr)!important;grid-template-rows:1fr auto!important;gap:2px 8px!important;min-height:72px!important;padding:5px 7px!important;border:1px solid #e0e5eb!important;border-radius:0!important;background:#fff!important;scroll-snap-align:start!important}
#khs-project-modal .khs-scene.active{border-color:#7c92b7!important;box-shadow:inset 0 0 0 1px #7c92b7!important}
#khs-project-modal .khs-scene-clip-no{position:absolute!important;right:4px!important;top:7px!important;display:block!important;padding:0!important;border:0!important;background:none!important;color:#738095!important;font-size:10px!important;font-weight:800!important;letter-spacing:0!important;line-height:1!important;text-align:right!important;font-variant-numeric:tabular-nums!important;z-index:3!important;pointer-events:none!important;box-shadow:none!important}
#khs-project-modal .khs-scene.active .khs-scene-clip-no{color:#244b8f!important}
#khs-project-modal .khs-scene-media{grid-row:1/3!important;width:76px!important;height:60px!important;padding:0!important;border:0!important;border-radius:0!important;background:#eef1f4!important;overflow:hidden!important;cursor:pointer!important}
#khs-project-modal .khs-scene-media img,#khs-project-modal .khs-scene-media video{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;background:transparent!important}
#khs-project-modal .khs-scene-board.ratio-9-16 .khs-scene{grid-template-columns:40px minmax(0,1fr)!important}
#khs-project-modal .khs-scene-board.ratio-9-16 .khs-scene-media{width:40px!important;height:62px!important}
#khs-project-modal .khs-scene-board.ratio-1-1 .khs-scene-media{width:60px!important;height:60px!important}
#khs-project-modal .khs-scene-copy{min-width:0!important;align-self:center!important}
#khs-project-modal .khs-scene-copy>b{display:block!important;font-size:9.5px!important;color:#263143!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#khs-project-modal .khs-scene-copy>small{display:block!important;margin-top:2px!important;font-size:7.5px!important;color:#8a94a1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#khs-project-modal .khs-scene-progress{width:58px!important;height:2px!important;margin-top:5px!important;background:#e6e9ed!important;overflow:hidden!important}
#khs-project-modal .khs-scene-progress>i{display:block!important;height:100%!important;background:#244b8f!important}
#khs-project-modal .khs-scene>em{display:flex!important;align-items:center!important;gap:5px!important;align-self:end!important;font-style:normal!important;font-size:7.5px!important;color:#7a8594!important}
#khs-project-modal .khs-scene>em strong{font-size:7.5px!important;color:#344052!important}
#khs-project-modal .khs-project-actions,#khs-project-modal .khs-complete,#khs-project-modal .khs-failed{margin:4px 20px 6px!important;border-radius:0!important}
#khs-project-modal .khs-project-delete-zone{margin:0 20px 6px!important}
#khs-project-modal button,#khs-project-modal a{border-radius:0!important}

@media(max-width:1100px){
 #khs-project-modal{padding:4px!important}
 #khs-project-modal .khs-project-modal-card,#khs-project-modal .khs-project-modal-card.khs-modal-ratio-16-9,#khs-project-modal .khs-project-modal-card.khs-modal-ratio-9-16,#khs-project-modal .khs-project-modal-card.khs-modal-ratio-1-1{width:calc(100vw - 8px)!important;max-height:calc(100vh - 8px)!important}
 #khs-project-modal .khs-modal-head-premium{padding:10px 48px 7px 10px!important}
 #khs-project-modal .khs-progress-top{align-items:flex-start!important}
 #khs-project-modal .khs-progress-top h3{font-size:16px!important}
 #khs-project-modal .khs-progress-numbers>strong{font-size:25px!important}
 #khs-project-modal .khs-stage-rail{grid-template-columns:repeat(4,1fr)!important}
 #khs-project-modal .khs-stage-rail article:nth-child(4){border-right:0!important}
 #khs-project-modal .khs-stage-rail article:nth-child(-n+4){border-bottom:1px solid #e7ebf0!important}
 #khs-project-modal .khs-project-live-shell{grid-template-columns:1fr!important;padding:8px 10px!important}
 #khs-project-modal .khs-live-preview.ratio-16-9{width:min(720px,100%)!important}
 #khs-project-modal .khs-live-preview.ratio-9-16{width:min(220px,70vw)!important}
 #khs-project-modal .khs-live-preview.ratio-1-1{width:min(380px,88vw)!important}
 #khs-project-modal .khs-live-side{border-left:0!important;border-top:1px solid #dfe4ea!important;padding:8px 0 0!important}
 #khs-project-modal .khs-scene-board{margin:0 10px 7px!important}
 #khs-project-modal .khs-scene-list{grid-auto-columns:minmax(220px,72vw)!important}
}

@media(max-width:620px){
 #khs-project-modal .khs-progress-numbers{gap:10px!important}
 #khs-project-modal .khs-progress-numbers small{display:none!important}
 #khs-project-modal .khs-stage-rail article>span{font-size:7.5px!important}
 #khs-project-modal .khs-live-preview.ratio-16-9{width:100%!important}
 #khs-project-modal .khs-project-identity-grid{grid-template-columns:1fr 1fr!important}
 #khs-project-modal .khs-scene-board-head small{display:none!important}
}

/* v1.46 navigation + completed-video gallery */
.khs-toolbar .khs-panel-tabs .khs-panel-nav>*{pointer-events:none!important}
.khs-finished-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.khs-finished-card{border:1px solid #dedfe2;background:#fff;min-width:0}
.khs-finished-video-frame{background:#111;display:flex;align-items:center;justify-content:center;overflow:hidden}
.khs-finished-video-frame.ratio-16-9{aspect-ratio:16/9}
.khs-finished-video-frame.ratio-1-1{aspect-ratio:1/1}
.khs-finished-video-frame.ratio-9-16{aspect-ratio:9/16;width:min(100%,240px);margin:0 auto}
.khs-finished-video-frame video{display:block;width:100%;height:100%;object-fit:contain;background:#111}
.khs-finished-info{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 16px;border-top:1px solid #e5e6e8}
.khs-finished-info>div:first-child{min-width:0}
.khs-finished-info h4{margin:0 0 5px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.khs-finished-info p{margin:0;font-size:9px;color:#929499}
.khs-finished-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.khs-finished-actions a,.khs-finished-actions button{height:34px;padding:0 11px;border:1px solid #cfd1d5;border-radius:0;background:#fff;color:#1b1c1f!important;text-decoration:none!important;font-size:10px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.khs-finished-actions a{background:#111;color:#fff!important;border-color:#111}
@media(max-width:1050px){.khs-finished-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.khs-finished-grid{grid-template-columns:1fr}.khs-finished-info{align-items:flex-start;flex-direction:column}.khs-finished-video-frame.ratio-9-16{width:min(100%,210px)}}


/* v1.48: toolbar navigation is pure button UI; no anchors/href/overlay hit areas. */
.khs-toolbar .khs-panel-tabs button.khs-panel-nav{font-family:inherit!important;text-decoration:none!important;cursor:pointer!important}
.khs-toolbar .khs-panel-tabs button.khs-panel-nav>*{pointer-events:none!important}


.khs-output-card{margin-top:18px;padding:18px 18px 16px;border:1px solid rgba(16,24,40,.08);background:linear-gradient(180deg,#fff,rgba(247,249,252,.82));display:grid;gap:14px}
.khs-output-card-head{display:grid;gap:4px}.khs-output-card-head span{font-size:11px;letter-spacing:.18em;color:#8a93a5}.khs-output-card-head b{font-size:16px;color:#101828}.khs-output-card-head small{color:#667085;line-height:1.6}
.khs-output-switches{display:flex;flex-wrap:wrap;gap:12px}
.khs-inline-check{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid rgba(16,24,40,.08);background:#fff;cursor:pointer}.khs-inline-check input{display:none}.khs-inline-check i{width:18px;height:18px;border:1px solid rgba(16,24,40,.22);background:#fff;display:inline-block;position:relative}.khs-inline-check input:checked + i::after{content:'';position:absolute;inset:3px;background:#101828}.khs-inline-check span{font-size:13px;color:#344054}
.khs-ending-logo-box{display:grid;grid-template-columns:88px 1fr auto;align-items:center;gap:14px;padding:14px;border:1px solid rgba(16,24,40,.08);background:#fff}
.khs-ending-logo-preview{width:88px;height:60px;border:1px dashed rgba(16,24,40,.14);display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#f8fafc,#f2f4f7);overflow:hidden}.khs-ending-logo-preview img{max-width:76px;max-height:44px;display:none}.khs-ending-logo-preview.has-image img{display:block}
.khs-ending-logo-copy{display:grid;gap:3px}.khs-ending-logo-copy b{font-size:14px;color:#101828}.khs-ending-logo-copy small{font-size:12px;color:#667085;line-height:1.6}
.khs-ending-logo-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
@media (max-width: 860px){.khs-ending-logo-box{grid-template-columns:1fr}.khs-ending-logo-preview{width:100%;height:72px}.khs-ending-logo-actions{justify-content:flex-start}}

/* v1.50 luxury production */
.khs-luxury-mode{margin-top:16px;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:13px;padding:15px 16px;border:1px solid rgba(16,24,40,.09);background:linear-gradient(135deg,#fff 0%,#f8f8f9 60%,#f0f1f3 100%);cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;position:relative;overflow:hidden}
.khs-luxury-mode::after{content:'';position:absolute;top:-40%;left:-22%;width:22%;height:180%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.9),transparent);transform:skewX(-18deg);opacity:0;pointer-events:none}
.khs-luxury-mode:hover{border-color:rgba(16,24,40,.18);box-shadow:0 12px 28px rgba(16,24,40,.06)}
.khs-luxury-mode:hover::after{opacity:.8;animation:khsLuxurySweep 1.05s ease}
.khs-luxury-mode>input{position:absolute;opacity:0;pointer-events:none}
.khs-luxury-mark{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(16,24,40,.12);background:#fff;color:#101828;font-size:13px}
.khs-luxury-copy{display:grid;gap:3px}.khs-luxury-copy b{font-size:14px;color:#101828;font-weight:650}.khs-luxury-copy small{font-size:12px;line-height:1.55;color:#667085}
.khs-luxury-mode>em{font-style:normal;font-size:10px;letter-spacing:.16em;color:#667085;border-left:1px solid rgba(16,24,40,.08);padding-left:14px}
.khs-luxury-mode:has(input:checked){border-color:#101828;background:linear-gradient(135deg,#0d1117,#171c24);box-shadow:0 16px 34px rgba(16,24,40,.14)}
.khs-luxury-mode:has(input:checked) .khs-luxury-mark{border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.08);color:#fff}
.khs-luxury-mode:has(input:checked) .khs-luxury-copy b{color:#fff}.khs-luxury-mode:has(input:checked) .khs-luxury-copy small{color:rgba(255,255,255,.7)}.khs-luxury-mode:has(input:checked)>em{color:rgba(255,255,255,.72);border-left-color:rgba(255,255,255,.14)}
@keyframes khsLuxurySweep{0%{left:-22%}100%{left:112%}}
@media(max-width:680px){.khs-luxury-mode{grid-template-columns:34px 1fr}.khs-luxury-mode>em{grid-column:2;border-left:0;padding-left:0}}


/* v1.54 ending logo uploader */
.khs-ending-logo-box{display:grid;gap:12px;padding:0;border:0;background:transparent}
.khs-ending-logo-drop{position:relative;min-height:118px;display:grid;grid-template-columns:104px 1fr auto;align-items:center;gap:16px;padding:16px 18px;border:1px dashed rgba(16,24,40,.22);background:#fff;cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;overflow:hidden}
.khs-ending-logo-drop:hover,.khs-ending-logo-drop:focus,.khs-ending-logo-drop.is-dragover{outline:0;border-color:#122bc0;background:#f8faff;box-shadow:0 0 0 3px rgba(18,43,192,.06)}
.khs-ending-logo-drop.is-dragover{border-style:solid}
.khs-ending-logo-preview{width:104px;height:78px;border:1px solid rgba(16,24,40,.08);display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fbfcfe,#f3f5f8);overflow:hidden}
.khs-ending-logo-preview img{max-width:88px;max-height:60px;object-fit:contain;display:none}.khs-ending-logo-preview i{font-style:normal;font-size:26px;font-weight:300;color:#98a2b3}.khs-ending-logo-preview.has-image img{display:block}.khs-ending-logo-preview.has-image i{display:none}
.khs-ending-logo-copy{display:grid;gap:4px;min-width:0}.khs-ending-logo-copy b{font-size:15px;color:#101828}.khs-ending-logo-copy small{font-size:12px;color:#667085;line-height:1.6}.khs-ending-logo-copy em{font-size:11px;color:#98a2b3;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.khs-ending-logo-dropmark{display:grid;place-items:center;gap:2px;color:#98a2b3}.khs-ending-logo-dropmark span{font-size:9px;letter-spacing:.18em}.khs-ending-logo-dropmark strong{font-size:22px;font-weight:300}.khs-ending-logo-drop.is-dragover .khs-ending-logo-dropmark{color:#122bc0}
.khs-ending-logo-progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:transparent}.khs-ending-logo-progress i{display:block;width:0;height:100%;background:#122bc0;transition:width .18s linear}
.khs-ending-logo-drop.uploading{pointer-events:none;opacity:.84}.khs-ending-logo-drop.has-error{border-color:#d92d20}
.khs-ending-logo-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.khs-ending-logo-actions .khs-secondary{min-height:38px;padding:0 14px}
@media (max-width:860px){.khs-ending-logo-drop{grid-template-columns:82px 1fr;padding:14px}.khs-ending-logo-preview{width:82px;height:68px}.khs-ending-logo-dropmark{display:none}.khs-ending-logo-actions{justify-content:flex-start}}


/* v1.55 complete brand ending panel */
.khs-ending-panel{display:grid;gap:16px;width:100%;min-width:0}
.khs-ending-logo-box{display:block!important;width:100%;min-width:0;grid-template-columns:none!important;align-items:initial!important;gap:0!important;padding:0!important;border:0!important;background:transparent!important}
.khs-ending-logo-drop{width:100%;min-width:0;min-height:112px;box-sizing:border-box;grid-template-columns:96px minmax(0,1fr) 58px!important;padding:16px 18px!important}
.khs-ending-logo-preview{width:96px!important;height:72px!important}
.khs-ending-logo-preview img{max-width:82px!important;max-height:56px!important}
.khs-ending-logo-actions{margin-top:10px}
.khs-ending-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding-top:2px}
.khs-ending-fields .khs-input{margin:0}.khs-ending-fields textarea{min-height:76px;resize:vertical}
.khs-ending-preview-note{display:flex;align-items:center;gap:9px;padding:11px 12px;border-top:1px solid rgba(16,24,40,.07);color:#667085;font-size:12px;line-height:1.55}
.khs-ending-preview-note i{width:6px;height:6px;background:#101828;transform:rotate(45deg);flex:0 0 auto}
.khs-output-card.ending-off .khs-ending-panel{opacity:.38;pointer-events:none;filter:grayscale(.15)}
@media(max-width:860px){.khs-ending-fields{grid-template-columns:1fr}.khs-ending-logo-drop{grid-template-columns:78px minmax(0,1fr)!important}.khs-ending-logo-dropmark{display:none}.khs-ending-logo-preview{width:78px!important;height:62px!important}}

/* v1.56 product/model picker: visual selection + drag & drop */
.khs-picker .khs-picker-preview.khs-asset-dropzone{width:100%;min-height:124px;height:auto!important;margin:0;padding:12px!important;border:1px dashed #cfd3d8!important;background:#fbfcfd!important;display:grid!important;grid-template-columns:92px minmax(0,1fr) auto;align-items:center;gap:14px;text-align:left;color:#101828;cursor:pointer;appearance:none;-webkit-appearance:none;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.khs-picker .khs-picker-preview.khs-asset-dropzone:hover,.khs-picker .khs-picker-preview.khs-asset-dropzone.is-dragover{border-color:#64748b!important;background:#f6f8fb!important;box-shadow:inset 0 0 0 1px rgba(100,116,139,.08)}
.khs-picker .khs-picker-preview.khs-asset-dropzone.uploading{opacity:.68;pointer-events:none}.khs-picker .khs-picker-preview.khs-asset-dropzone.has-error{border-color:#c98b8b!important;background:#fffafa!important}
.khs-picker-image{width:92px;height:92px;border:1px solid #e1e4e8;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;flex:0 0 auto}
.khs-picker-image img{display:none;width:100%;height:100%;object-fit:contain;background:#fff}.khs-asset-dropzone.has-image .khs-picker-image img{display:block}
.khs-picker-image i{font-style:normal;width:30px!important;height:30px!important;border:1px solid #d4d7dc!important;display:flex!important;align-items:center;justify-content:center;color:#8a9099;background:rgba(255,255,255,.92);position:absolute;right:7px;bottom:7px;z-index:2}
.khs-asset-dropzone.has-image .khs-picker-image i{font-size:13px;opacity:.92}
.khs-picker-copy{min-width:0;display:flex!important;flex-direction:column;gap:5px!important}.khs-picker-copy b{font-size:12px;font-weight:750;color:#22252a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.khs-picker-copy small{font-size:10px!important;line-height:1.55;color:#8a9099!important}
.khs-asset-dropzone>em{font-style:normal;font-size:8px;letter-spacing:.06em;color:#a0a5ad;align-self:end;white-space:nowrap}
.khs-picker select+ .khs-asset-dropzone{margin-top:1px}
@media(max-width:640px){.khs-picker .khs-picker-preview.khs-asset-dropzone{grid-template-columns:76px minmax(0,1fr);min-height:108px}.khs-picker-image{width:76px;height:76px}.khs-asset-dropzone>em{display:none}}

/* v1.58 — mobile production monitor: readable, non-overlapping, touch-friendly. */
@media(max-width:720px){
  #khs-project-modal{padding:0!important;align-items:stretch!important;background:rgba(10,14,20,.5)!important}
  #khs-project-modal .khs-project-modal-card,
  #khs-project-modal .khs-project-modal-card.khs-modal-ratio-16-9,
  #khs-project-modal .khs-project-modal-card.khs-modal-ratio-9-16,
  #khs-project-modal .khs-project-modal-card.khs-modal-ratio-1-1{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;border:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important}
  #khs-project-modal .khs-project-modal-card>.khs-modal-close{position:fixed!important;top:8px!important;right:8px!important;width:38px!important;height:38px!important;background:#fff!important;z-index:80!important}
  #khs-project-modal .khs-modal-head-premium{padding:12px 52px 10px 12px!important}
  #khs-project-modal .khs-progress-top{display:block!important}
  #khs-project-modal .khs-progress-top h3{font-size:17px!important;white-space:normal!important;line-height:1.35!important;margin-right:6px!important}
  #khs-project-modal .khs-progress-numbers{margin-top:8px!important;justify-content:space-between!important}
  #khs-project-modal .khs-progress-numbers>strong{font-size:27px!important}
  #khs-project-modal .khs-progress-numbers small{display:grid!important;font-size:10px!important}
  #khs-project-modal .khs-stage-rail{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #khs-project-modal .khs-stage-rail article{height:42px!important;justify-content:flex-start!important;padding:0 10px!important;border-bottom:1px solid #e7ebf0!important}
  #khs-project-modal .khs-stage-rail article:nth-child(odd){border-right:1px solid #e7ebf0!important}
  #khs-project-modal .khs-stage-rail article:nth-child(even){border-right:0!important}
  #khs-project-modal .khs-stage-rail article:nth-last-child(-n+2){border-bottom:0!important}
  #khs-project-modal .khs-stage-rail article>span{font-size:10px!important;overflow:visible!important;text-overflow:clip!important}
  #khs-project-modal .khs-stage-rail article>i{width:20px!important;height:20px!important;flex-basis:20px!important}
  #khs-project-modal .khs-project-live-shell{display:block!important;padding:10px 12px 8px!important}
  #khs-project-modal .khs-live-preview,
  #khs-project-modal .khs-live-preview.ratio-16-9,
  #khs-project-modal .khs-live-preview.ratio-9-16,
  #khs-project-modal .khs-live-preview.ratio-1-1{width:100%!important;max-width:100%!important;display:flex!important;flex-direction:column!important;overflow:visible!important;border:1px solid #d9dfe7!important}
  #khs-project-modal .khs-live-preview.ratio-16-9 .khs-live-preview-media{width:100%!important;aspect-ratio:16/9!important;max-height:none!important}
  #khs-project-modal .khs-live-preview.ratio-9-16 .khs-live-preview-media{width:min(58vw,230px)!important;aspect-ratio:9/16!important;max-height:none!important;align-self:center!important}
  #khs-project-modal .khs-live-preview.ratio-1-1 .khs-live-preview-media{width:min(82vw,330px)!important;aspect-ratio:1/1!important;max-height:none!important;align-self:center!important}
  #khs-project-modal .khs-live-preview-copy{height:auto!important;min-height:54px!important;padding:9px 11px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:3px!important;overflow:visible!important}
  #khs-project-modal .khs-live-preview-copy>div{display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:6px!important;width:100%!important}
  #khs-project-modal .khs-live-preview-copy span{font-size:9px!important}
  #khs-project-modal .khs-live-preview-copy b{font-size:12px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.35!important}
  #khs-project-modal .khs-live-preview-copy small{font-size:10px!important;white-space:normal!important;line-height:1.4!important}
  #khs-project-modal .khs-live-side{margin-top:10px!important;padding:0!important;border:1px solid #e0e5eb!important;border-left:1px solid #e0e5eb!important;background:#fff!important}
  #khs-project-modal .khs-live-side span{font-size:9px!important;letter-spacing:.3px!important}
  #khs-project-modal .khs-side-summary>section,#khs-project-modal .khs-live-side-grid>div,#khs-project-modal .khs-project-identity-grid article{padding:10px!important}
  #khs-project-modal .khs-side-summary>section+section,#khs-project-modal .khs-live-side-grid>div+div,#khs-project-modal .khs-project-identity-grid article:nth-child(even){padding-left:10px!important}
  #khs-project-modal .khs-side-summary strong b{font-size:25px!important}
  #khs-project-modal .khs-side-summary>section>b,#khs-project-modal .khs-live-side-grid b{font-size:12px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:break-word!important}
  #khs-project-modal .khs-project-identity-grid{grid-template-columns:1fr!important}
  #khs-project-modal .khs-project-identity-grid article,#khs-project-modal .khs-project-identity-grid article:nth-child(even),#khs-project-modal .khs-project-identity-grid article:nth-child(n+3){border-left:0!important;border-bottom:1px solid #eef1f4!important;padding:10px!important}
  #khs-project-modal .khs-project-identity-grid article:last-child{border-bottom:0!important}
  #khs-project-modal .khs-project-identity-grid span{font-size:9px!important}
  #khs-project-modal .khs-project-identity-grid b{font-size:11px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:break-word!important;line-height:1.4!important}
  #khs-project-modal .khs-render-control{padding:10px!important;border-top:1px solid #e7ebf0!important}
  #khs-project-modal .khs-render-control-head b,#khs-project-modal .khs-render-runtime-main>span b{font-size:10px!important}
  #khs-project-modal .khs-render-runtime-main>span small{font-size:9px!important}
  #khs-project-modal .khs-scene-board{margin:4px 12px 8px!important}
  #khs-project-modal .khs-scene-board-head{height:34px!important}
  #khs-project-modal .khs-scene-board-head b{font-size:11px!important}
  #khs-project-modal .khs-scene-board-head>span{font-size:10px!important}
  #khs-project-modal .khs-scene-list{grid-auto-columns:minmax(190px,72vw)!important;gap:8px!important}
  #khs-project-modal .khs-scene{min-height:84px!important;grid-template-columns:58px minmax(0,1fr)!important;padding:7px!important}
  #khs-project-modal .khs-scene-media{width:58px!important;height:68px!important}
  #khs-project-modal .khs-scene-board.ratio-9-16 .khs-scene{grid-template-columns:44px minmax(0,1fr)!important}
  #khs-project-modal .khs-scene-board.ratio-9-16 .khs-scene-media{width:44px!important;height:72px!important}
  #khs-project-modal .khs-scene-copy>b{font-size:11px!important;white-space:normal!important;line-height:1.3!important}
  #khs-project-modal .khs-scene-clip-no{right:4px!important;top:6px!important;font-size:9px!important;text-align:right!important}
  #khs-project-modal .khs-scene-copy>small,#khs-project-modal .khs-scene>em,#khs-project-modal .khs-scene>em strong{font-size:9px!important}
  #khs-project-modal .khs-project-actions,#khs-project-modal .khs-complete,#khs-project-modal .khs-failed{margin:8px 12px!important;padding:14px!important}
  #khs-project-modal .khs-failed b,#khs-project-modal .khs-complete b{font-size:14px!important}
  #khs-project-modal .khs-failed p,#khs-project-modal .khs-failed span,#khs-project-modal .khs-complete p,#khs-project-modal .khs-complete span{font-size:11px!important;line-height:1.6!important;word-break:break-word!important}
  #khs-project-modal .khs-project-delete-zone{margin:0 12px 12px!important}
}


/* v1.61 compact model wardrobe policy */
.khs-model-style-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:-2px;padding:9px 10px;border-top:1px solid #eceef1;color:#667085;font-size:10px}
.khs-model-style-row>span{font-weight:700;color:#475467;white-space:nowrap}
.khs-model-style-row select{width:auto;min-width:148px;height:34px;min-height:34px;padding:0 28px 0 10px;border:1px solid #d8dadd;background:#fff;color:#344054;font-size:10px;box-shadow:none;border-radius:0}
@media(max-width:720px){.khs-model-style-row{font-size:11px}.khs-model-style-row select{font-size:11px;min-width:155px}}

.khs-asset-modal-card{width:min(900px,96vw);padding:22px;background:#fff}.khs-asset-modal-body{display:flex;flex-direction:column;gap:14px}.khs-asset-modal-body img{width:100%;max-height:78vh;object-fit:contain;background:#f7f7f8;border:1px solid #e5e7ea}.khs-asset-modal-caption{font-size:12px;font-weight:700;color:#17181b}.khs-asset-modal-close{position:absolute;right:16px;top:10px;border:0;background:none;font-size:28px;cursor:pointer}

.khs-output-style-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 180px;gap:14px}
.khs-output-style-grid .khs-input{margin:0}
.khs-output-style-grid input[type="color"]{width:100%;min-height:44px;padding:4px 6px;background:#fff;border:1px solid rgba(16,24,40,.12)}
.khs-overlay-panel{display:grid;gap:16px;padding-top:2px;border-top:1px solid rgba(16,24,40,.06)}
.khs-overlay-logo-box{display:block!important;width:100%;min-width:0}
.khs-overlay-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.khs-overlay-fields .khs-input{margin:0}
.khs-overlay-fields textarea{min-height:86px;resize:vertical}
.khs-output-switches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media(max-width:980px){.khs-output-style-grid{grid-template-columns:1fr 1fr}.khs-output-style-grid .khs-input:last-child{grid-column:1 / -1}.khs-output-switches{grid-template-columns:1fr 1fr}}
@media(max-width:860px){.khs-output-style-grid,.khs-output-switches{grid-template-columns:1fr}}

/* v1.77 model-style selector: use the available sidebar width without clipping long labels. */
.khs-model-style-row{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;align-items:center!important;gap:10px!important;padding:10px!important}
.khs-model-style-row>span{min-width:max-content!important}
.khs-model-style-row select{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:38px!important;min-height:38px!important;padding:0 34px 0 11px!important;font-size:11px!important;line-height:36px!important;box-sizing:border-box!important;text-overflow:ellipsis!important}
@media(max-width:720px){.khs-model-style-row{grid-template-columns:1fr!important}.khs-model-style-row select{width:100%!important}}

/* v1.85 canonical studio tabs: normal-flow tablist, no sticky/capture/z-index hacks. */
.khs-workspace{position:relative!important;isolation:auto!important;z-index:auto!important}
.khs-toolbar{position:relative!important;top:auto!important;z-index:1!important;isolation:auto!important;pointer-events:auto!important}
.khs-toolbar .khs-panel-tabs{position:relative!important;z-index:auto!important}
.khs-toolbar .khs-panel-tabs .khs-panel-nav{position:relative!important;z-index:auto!important;pointer-events:auto!important;touch-action:manipulation!important}

/* v1.85 guest premium preview + video visibility */
.khs-login-cta{text-decoration:none!important}.khs-guest-note{font-size:10px;color:#87898e;align-self:center}.khs-guest-poster{cursor:default}.khs-guest-stats article b{font-size:13px!important;letter-spacing:.2px}.khs-guest-preview{position:relative;background:#fff;border:1px solid #dedfe2;border-top:0;padding:54px 5% 60px}.khs-guest-form-preview{position:relative;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.65fr);gap:40px;border-top:1px solid #e3e4e6;padding-top:30px;overflow:hidden}.khs-guest-form-main{display:flex;flex-direction:column;gap:22px}.khs-guest-form-main label{display:flex;flex-direction:column;gap:8px}.khs-guest-form-main label>span,.khs-guest-side-preview>span{font-size:11px;font-weight:750;color:#232428}.khs-guest-form-main label>div,.khs-guest-side-preview>div{border:1px solid #d9dade;min-height:46px;padding:13px;color:#a0a2a6;font-size:12px;background:#fff}.khs-guest-form-main label>div.textarea{min-height:145px}.khs-guest-option-row{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #d9dade}.khs-guest-option-row b{min-height:43px;display:flex;align-items:center;justify-content:center;font-size:10px;border-right:1px solid #e4e5e7}.khs-guest-option-row b:last-child{border-right:0}.khs-guest-side-preview{border-left:1px solid #e4e5e7;padding-left:30px;display:grid;gap:9px;align-content:start}.khs-guest-side-preview>div{margin-bottom:10px}.khs-guest-lock{position:absolute;inset:0;background:rgba(255,255,255,.78);backdrop-filter:blur(2px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.khs-guest-lock>span{font-size:9px;letter-spacing:2.3px;color:#77797e;font-weight:800}.khs-guest-lock>b{font:400 27px Georgia,"Times New Roman",serif;margin:9px 0 18px}.khs-guest-lock>a{height:46px;min-width:170px;border:1px solid #111;background:#111;color:#fff;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:750}.khs-visibility-toggle{border:1px solid #cfd0d3!important;background:#fff!important;color:#555!important}.khs-visibility-toggle.is-public{border-color:#111!important;background:#111!important;color:#fff!important}.khs-finished-actions .khs-visibility-toggle{min-width:68px}.khs-complete-copy .khs-visibility-toggle{min-width:72px}@media(max-width:760px){.khs-guest-form-preview{grid-template-columns:1fr}.khs-guest-side-preview{border-left:0;border-top:1px solid #e4e5e7;padding:25px 0 0}.khs-guest-option-row{grid-template-columns:repeat(2,1fr)}.khs-guest-option-row b:nth-child(2){border-right:0}.khs-guest-option-row b:nth-child(-n+2){border-bottom:1px solid #e4e5e7}.khs-guest-lock>b{font-size:22px}}


/* v1.88 output defaults: finishing options live in a dedicated tab, not in the creation form. */
.khs-output-settings-panel{background:#fff!important}
.khs-output-settings-form{max-width:1080px;margin:0 auto;display:grid;gap:22px}
.khs-output-settings-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding-bottom:22px;border-bottom:1px solid #e5e7eb}
.khs-output-settings-intro>div:first-child{min-width:0}
.khs-output-settings-intro>div:first-child>span{display:block;font-size:10px;letter-spacing:2.2px;font-weight:800;color:#8a8d94;margin-bottom:8px}
.khs-output-settings-intro h3{font:400 34px Georgia,"Times New Roman",serif;letter-spacing:-.8px;margin:0 0 8px;color:#151619}
.khs-output-settings-intro p{max-width:760px;margin:0;color:#7d8189;font-size:12px;line-height:1.7}
.khs-output-default-badge{flex:0 0 auto;display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #e0e3e8;background:#fafbfc;color:#475467;font-size:10px;font-weight:750}
.khs-output-default-badge i{width:7px;height:7px;background:#3156a3;display:block;transform:rotate(45deg)}
.khs-output-settings-form .khs-output-card{margin-top:0;padding:22px;border-color:#e1e4e9;background:linear-gradient(180deg,#fff,#fafbfc)}
.khs-output-settings-form .khs-output-card-head{padding-bottom:4px}
.khs-output-settings-form .khs-output-card-head>b{font-size:18px;font-weight:650}
.khs-output-settings-form .khs-output-switches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.khs-output-settings-form .khs-inline-check{min-height:48px}
.khs-output-savebar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border:1px solid #dfe3e8;background:#f8f9fb}
.khs-output-savebar>div{display:grid;gap:4px}.khs-output-savebar b{font-size:13px;color:#20242b}.khs-output-savebar small{font-size:10px;color:#7b818b}
.khs-output-save{min-width:156px;justify-content:space-between}
.khs-output-save.working{opacity:.65;cursor:wait}
.khs-output-settings-message{min-height:18px;font-size:11px;color:#69707b}.khs-output-settings-message.ok{color:#1f6b45}.khs-output-settings-message.error{color:#a03939}
@media(max-width:860px){.khs-output-settings-intro{align-items:flex-start;flex-direction:column}.khs-output-default-badge{align-self:flex-start}.khs-output-settings-form .khs-output-switches{grid-template-columns:1fr}.khs-output-savebar{align-items:stretch;flex-direction:column}.khs-output-save{width:100%}}

/* v1.92 — keep product/model add buttons intact beside long helper copy */
.khs-app .khs-picker-head>div{min-width:0!important;flex:1 1 auto!important}
.khs-app .khs-picker-head>div small{min-width:0!important;white-space:normal!important;overflow-wrap:break-word!important}
.khs-app .khs-picker-head .khs-mini-upload{flex:0 0 auto!important;min-width:116px!important;width:auto!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;line-height:1!important}
.khs-app .khs-section-head .khs-upload-trigger{flex:0 0 auto!important;min-width:116px!important;width:auto!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
@media(max-width:420px){
  .khs-app .khs-picker-head{align-items:flex-start!important}
  .khs-app .khs-picker-head .khs-mini-upload{min-width:106px!important;padding-left:10px!important;padding-right:10px!important}
}

/* v1.93 — harden fullscreen viewer controls against theme interference */
#khs-scene-viewer .khs-scene-viewer-close{position:fixed!important;top:14px!important;right:14px!important;left:auto!important;bottom:auto!important;width:42px!important;height:42px!important;display:grid!important;place-items:center!important;padding:0!important;margin:0!important;box-sizing:border-box!important;z-index:999999!important;border:1px solid rgba(255,255,255,.24)!important;background:rgba(12,17,25,.82)!important;color:#fff!important;font:300 24px/1 Arial,sans-serif!important;transform:none!important} 
#khs-scene-viewer .khs-scene-viewer-close:hover{background:rgba(20,26,36,.94)!important;border-color:rgba(255,255,255,.42)!important} 
#khs-scene-viewer .khs-scene-viewer-nav{z-index:999998!important} 
@media (max-width: 680px){#khs-scene-viewer .khs-scene-viewer-close{top:10px!important;right:10px!important;width:38px!important;height:38px!important}}


/* v1.98: 9:16 planning/live preview caption stability */
#khs-project-modal .khs-live-preview.ratio-9-16 .khs-live-preview-copy{
  width:220px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0 9px!important;
  gap:6px!important;
  overflow:hidden!important;
}
#khs-project-modal .khs-live-preview.ratio-9-16 .khs-live-preview-copy>div{
  width:100%!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:6px!important;
}
#khs-project-modal .khs-live-preview.ratio-9-16 .khs-live-preview-copy span{
  flex:0 0 auto!important;
  font-size:6.8px!important;
  letter-spacing:.55px!important;
}
#khs-project-modal .khs-live-preview.ratio-9-16 .khs-live-preview-copy b{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  font-size:9px!important;
  line-height:1.25!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
#khs-project-modal .khs-live-preview.ratio-9-16 .khs-live-preview-copy small{
  display:none!important;
}

/* v2.13 premium completed-video masonry */
#khs-panel-completed .khs-finished-grid{display:block!important;column-count:var(--khs-finished-cols,4);column-width:250px;column-gap:1px;line-height:0;background:#fff;border:1px solid #e3e5e8;overflow:hidden}
#khs-panel-completed .khs-finished-card{position:relative;display:inline-block!important;width:100%;margin:0 0 1px!important;border:0!important;background:#08090b!important;overflow:hidden;vertical-align:top;break-inside:avoid;line-height:normal;box-shadow:none!important}
#khs-panel-completed .khs-finished-video-frame{position:relative!important;width:100%!important;max-width:none!important;margin:0!important;display:block!important;background:#08090b!important;overflow:hidden;cursor:pointer}
#khs-panel-completed .khs-finished-card.ratio-16-9 .khs-finished-video-frame{aspect-ratio:16/9!important}
#khs-panel-completed .khs-finished-card.ratio-9-16 .khs-finished-video-frame{aspect-ratio:9/16!important}
#khs-panel-completed .khs-finished-card.ratio-1-1 .khs-finished-video-frame{aspect-ratio:1/1!important}
#khs-panel-completed .khs-finished-video-frame video{display:block;width:100%;height:100%;object-fit:cover!important;background:#08090b;pointer-events:none}
#khs-panel-completed .khs-finished-video-frame video::-webkit-media-controls{display:none!important}
.khs-finished-shade{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.66),rgba(0,0,0,.06) 36%,transparent 58%),linear-gradient(to bottom,rgba(0,0,0,.25),transparent 22%);opacity:.74;pointer-events:none;transition:opacity .18s ease}
.khs-finished-card:hover .khs-finished-shade{opacity:.94}
.khs-finished-public-state{position:absolute;left:9px;top:9px;z-index:3;padding:5px 8px;border-radius:999px;background:rgba(20,22,26,.62);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(8px);color:rgba(255,255,255,.78);font-size:8px;font-weight:800;letter-spacing:.08em;line-height:1}
.khs-finished-public-state.is-public{background:rgba(16,122,72,.86);border-color:rgba(115,232,170,.42);color:#fff;box-shadow:0 3px 12px rgba(10,98,55,.2)}
.khs-finished-duration{position:absolute;right:8px;bottom:8px;z-index:3;padding:4px 6px;border-radius:999px;background:rgba(0,0,0,.48);backdrop-filter:blur(7px);color:#fff;font-size:9px;font-weight:650;line-height:1;font-variant-numeric:tabular-nums}
.khs-finished-overlay-copy{position:absolute;left:10px;right:58px;bottom:8px;z-index:3;color:#fff;pointer-events:none;text-shadow:0 1px 6px rgba(0,0,0,.52)}
.khs-finished-overlay-copy b{display:block;margin:0 0 4px;font-size:11px;line-height:1.25;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.khs-finished-overlay-copy small{display:block;font-size:8px;line-height:1;opacity:.68;letter-spacing:.03em}
.khs-finished-menu-toggle{position:absolute;right:8px;top:8px;z-index:6;width:31px;height:31px;padding:0;border:1px solid rgba(255,255,255,.20);border-radius:50%;background:rgba(12,13,16,.48);backdrop-filter:blur(8px);color:#fff;font-size:14px;font-weight:800;line-height:1;letter-spacing:1px;cursor:pointer;opacity:.78;transition:.18s ease}
.khs-finished-card:hover .khs-finished-menu-toggle,.khs-finished-menu-toggle:focus,.khs-finished-card.menu-open .khs-finished-menu-toggle{opacity:1;background:rgba(12,13,16,.72)}
.khs-finished-menu{position:absolute;right:8px;top:45px;z-index:10;min-width:142px;padding:5px;border:1px solid rgba(225,228,234,.92);border-radius:10px;background:rgba(255,255,255,.97);box-shadow:0 16px 44px rgba(12,17,29,.18);backdrop-filter:blur(14px);display:none}
.khs-finished-card.menu-open .khs-finished-menu{display:grid}
.khs-finished-menu a,.khs-finished-menu button{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%;height:34px!important;padding:0 10px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#25282d!important;text-decoration:none!important;font-size:10px!important;font-weight:700!important;cursor:pointer!important}
.khs-finished-menu a:hover,.khs-finished-menu button:hover{background:#f1f3f5!important}.khs-finished-menu .khs-visibility-toggle.is-public{color:#0b7b47!important;background:#ebfaf2!important}.khs-finished-menu [data-delete-output]{color:#b42318!important}
.khs-finished-viewer{position:fixed;inset:0;z-index:999999;background:rgba(8,10,15,.78);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;padding:4vh 4vw;opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease}
.khs-finished-viewer.open{opacity:1;visibility:visible}.khs-finished-viewer-shell{position:relative;max-width:min(1120px,88vw);max-height:90vh;background:#08090b;box-shadow:0 28px 90px rgba(0,0,0,.34);overflow:hidden;border-radius:14px}
.khs-finished-viewer video{display:block;max-width:88vw;max-height:84vh;width:auto;height:auto;background:#050505;cursor:pointer}
.khs-finished-viewer-close{position:absolute;top:10px;right:10px;z-index:5;width:34px;height:34px;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(0,0,0,.38);color:#fff;font-size:20px;line-height:1;cursor:pointer;backdrop-filter:blur(8px)}
.khs-finished-viewer-info{position:absolute;left:0;right:0;bottom:0;padding:28px 16px 13px;background:linear-gradient(transparent,rgba(0,0,0,.68));color:#fff;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;pointer-events:none}.khs-finished-viewer-info b{display:block;font-size:13px}.khs-finished-viewer-info em{font-style:normal;font-size:10px}
@media(max-width:760px){#khs-panel-completed .khs-finished-grid{column-width:155px}.khs-finished-overlay-copy b{font-size:10px}.khs-finished-overlay-copy small{display:none}.khs-finished-viewer{padding:3vh 10px}.khs-finished-viewer-shell{max-width:96vw}.khs-finished-viewer video{max-width:96vw;max-height:82vh}.khs-finished-menu-toggle{opacity:1}}

/* v2.14 completed gallery — true width-filling masonry, isolated controls */
#khs-panel-completed .khs-finished-grid{
  position:relative!important;display:block!important;width:100%!important;min-height:120px!important;height:auto;
  margin:0!important;padding:0!important;border:0!important;background:#fff!important;overflow:visible!important;line-height:normal!important;
  column-count:auto!important;column-width:auto!important;column-gap:normal!important;
}
#khs-panel-completed .khs-finished-card{
  position:absolute!important;display:block!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:#090a0c!important;overflow:hidden!important;line-height:normal!important;box-shadow:none!important;break-inside:auto!important;vertical-align:top!important;
}
#khs-panel-completed .khs-finished-video-frame{position:relative!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:#090a0c!important;cursor:pointer!important}
#khs-panel-completed .khs-finished-card.ratio-16-9 .khs-finished-video-frame{aspect-ratio:auto!important}
#khs-panel-completed .khs-finished-card.ratio-9-16 .khs-finished-video-frame{aspect-ratio:auto!important}
#khs-panel-completed .khs-finished-card.ratio-1-1 .khs-finished-video-frame{aspect-ratio:auto!important}
#khs-panel-completed .khs-finished-video-frame video{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:cover!important;background:#090a0c!important;pointer-events:none!important;box-shadow:none!important}
#khs-panel-completed .khs-finished-public-state{left:8px!important;top:8px!important;padding:4px 7px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:999px!important;background:rgba(25,27,31,.58)!important;color:rgba(255,255,255,.76)!important;font-size:8px!important;line-height:1!important;font-weight:800!important;letter-spacing:.04em!important;box-shadow:none!important;backdrop-filter:blur(7px)!important}
#khs-panel-completed .khs-finished-public-state.is-public{background:rgba(10,126,71,.90)!important;border-color:rgba(129,236,181,.36)!important;color:#fff!important;box-shadow:0 3px 12px rgba(7,100,55,.18)!important}
#khs-panel-completed .khs-finished-duration{right:7px!important;bottom:7px!important;padding:3px 5px!important;border:0!important;border-radius:999px!important;background:rgba(0,0,0,.44)!important;color:#fff!important;font-size:9px!important;line-height:1!important;font-weight:650!important;box-shadow:none!important;backdrop-filter:blur(5px)!important}
#khs-panel-completed .khs-finished-overlay-copy{left:8px!important;right:55px!important;bottom:7px!important;margin:0!important;padding:0!important;color:#fff!important;text-shadow:0 1px 6px rgba(0,0,0,.62)!important}
#khs-panel-completed .khs-finished-overlay-copy b{margin:0 0 3px!important;font-size:10px!important;line-height:1.2!important;font-weight:700!important}
#khs-panel-completed .khs-finished-overlay-copy small{font-size:8px!important;line-height:1!important;opacity:.66!important}
#khs-panel-completed .khs-finished-progress{position:absolute!important;z-index:8!important;left:0!important;right:0!important;bottom:0!important;height:1px!important;margin:0!important;padding:0!important;background:rgba(255,255,255,.20)!important;opacity:0!important;pointer-events:none!important;transition:opacity .12s ease!important}
#khs-panel-completed .khs-finished-progress i{display:block!important;width:0;height:1px!important;margin:0!important;padding:0!important;background:#fff!important;transition:none!important}
#khs-panel-completed .khs-finished-card.is-playing .khs-finished-progress{opacity:.92!important}
#khs-panel-completed .khs-finished-menu-toggle{
  all:unset!important;box-sizing:border-box!important;position:absolute!important;right:7px!important;top:7px!important;z-index:12!important;
  display:flex!important;align-items:center!important;justify-content:center!important;width:24px!important;height:24px!important;margin:0!important;padding:0!important;
  border:1px solid rgba(255,255,255,.20)!important;border-radius:50%!important;background:rgba(11,13,17,.38)!important;color:#fff!important;
  font-family:Arial,sans-serif!important;font-size:16px!important;line-height:1!important;font-weight:700!important;letter-spacing:0!important;cursor:pointer!important;
  opacity:0!important;transform:translateY(-2px)!important;transition:opacity .14s ease,transform .14s ease,background .14s ease!important;box-shadow:none!important;backdrop-filter:blur(7px)!important;
}
#khs-panel-completed .khs-finished-card:hover .khs-finished-menu-toggle,#khs-panel-completed .khs-finished-menu-toggle:focus,#khs-panel-completed .khs-finished-card.menu-open .khs-finished-menu-toggle{opacity:.88!important;transform:none!important;background:rgba(11,13,17,.62)!important}
#khs-panel-completed .khs-finished-menu{position:absolute!important;right:7px!important;top:36px!important;z-index:20!important;display:none!important;min-width:145px!important;margin:0!important;padding:5px!important;border:1px solid rgba(226,229,235,.92)!important;border-radius:10px!important;background:rgba(255,255,255,.98)!important;box-shadow:0 16px 44px rgba(12,17,29,.20)!important;backdrop-filter:blur(14px)!important;line-height:normal!important}
#khs-panel-completed .khs-finished-card.menu-open .khs-finished-menu{display:grid!important}
#khs-panel-completed .khs-finished-menu a,#khs-panel-completed .khs-finished-menu button{all:unset!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;height:34px!important;margin:0!important;padding:0 10px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#25282d!important;font-family:inherit!important;font-size:10px!important;line-height:1!important;font-weight:700!important;text-decoration:none!important;cursor:pointer!important;box-shadow:none!important}
#khs-panel-completed .khs-finished-menu a:hover,#khs-panel-completed .khs-finished-menu button:hover{background:#f2f4f6!important}
#khs-panel-completed .khs-finished-menu .khs-visibility-toggle.is-public{color:#b42318!important;background:transparent!important}
#khs-panel-completed .khs-finished-menu [data-delete-output]{color:#b42318!important}

.khs-finished-viewer,.khs-finished-viewer *{box-sizing:border-box!important}
.khs-finished-viewer-close{all:unset!important;box-sizing:border-box!important;position:absolute!important;right:10px!important;top:10px!important;z-index:8!important;display:flex!important;align-items:center!important;justify-content:center!important;width:32px!important;height:32px!important;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.26)!important;border-radius:50%!important;background:rgba(8,10,14,.42)!important;color:#fff!important;font-family:Arial,sans-serif!important;font-size:20px!important;line-height:1!important;font-weight:300!important;cursor:pointer!important;box-shadow:none!important;backdrop-filter:blur(7px)!important}
.khs-finished-viewer-progress{position:absolute!important;z-index:10!important;left:0!important;right:0!important;bottom:0!important;height:1px!important;background:rgba(255,255,255,.18)!important;opacity:0!important;pointer-events:none!important}
.khs-finished-viewer.is-playing .khs-finished-viewer-progress{opacity:.92!important}
.khs-finished-viewer-progress i{display:block!important;width:0;height:1px!important;background:#fff!important}
@media (hover:none){#khs-panel-completed .khs-finished-menu-toggle{opacity:.30!important;transform:none!important}}
@media(max-width:720px){#khs-panel-completed .khs-finished-grid{width:100%!important}.khs-finished-viewer{padding:3vh 8px!important}.khs-finished-viewer-shell{max-width:96vw!important}.khs-finished-viewer video{max-width:96vw!important;max-height:84vh!important}}
#khs-panel-completed .khs-finished-menu-toggle::before,#khs-panel-completed .khs-finished-menu-toggle::after,#khs-panel-completed .khs-finished-menu button::before,#khs-panel-completed .khs-finished-menu button::after,.khs-finished-viewer-close::before,.khs-finished-viewer-close::after{content:none!important;display:none!important}

/* v2.15 finished gallery polish — subtle controls + exact sharp modal ratios */
#khs-panel-completed .khs-finished-menu-toggle{
  width:28px!important;height:24px!important;right:7px!important;top:7px!important;
  border:0!important;border-radius:0!important;background:rgba(9,11,15,.04)!important;
  color:rgba(255,255,255,.72)!important;backdrop-filter:none!important;box-shadow:none!important;
  opacity:.16!important;font-size:14px!important;line-height:1!important;letter-spacing:1.5px!important;
  transition:opacity .15s ease,background .15s ease!important;
}
#khs-panel-completed .khs-finished-card:hover .khs-finished-menu-toggle,
#khs-panel-completed .khs-finished-menu-toggle:focus{
  opacity:.58!important;background:rgba(9,11,15,.20)!important;
}
#khs-panel-completed .khs-finished-card.menu-open .khs-finished-menu-toggle{
  opacity:.82!important;background:rgba(9,11,15,.34)!important;
}

.khs-finished-viewer{padding:3vh 3vw!important;background:rgba(7,9,13,.80)!important;backdrop-filter:blur(11px)!important}
.khs-finished-viewer .khs-finished-viewer-shell{
  position:relative!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  max-width:none!important;max-height:none!important;background:#060709!important;overflow:hidden!important;
  box-shadow:0 24px 72px rgba(0,0,0,.34)!important;
}
.khs-finished-viewer.ratio-16-9 .khs-finished-viewer-shell{
  width:min(1080px,76vw,calc(76vh * 16 / 9))!important;aspect-ratio:16/9!important;
}
.khs-finished-viewer.ratio-9-16 .khs-finished-viewer-shell{
  width:min(430px,34vw,calc(76vh * 9 / 16))!important;aspect-ratio:9/16!important;
}
.khs-finished-viewer.ratio-1-1 .khs-finished-viewer-shell{
  width:min(620px,58vw,74vh)!important;aspect-ratio:1/1!important;
}
.khs-finished-viewer .khs-finished-viewer-shell video{
  display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#060709!important;
  object-fit:contain!important;
}
.khs-finished-viewer-close{
  right:8px!important;top:8px!important;width:28px!important;height:28px!important;border:1px solid rgba(255,255,255,.18)!important;
  border-radius:0!important;background:rgba(6,8,12,.30)!important;color:rgba(255,255,255,.88)!important;
  font-size:18px!important;backdrop-filter:blur(5px)!important;
}
.khs-finished-viewer-close:hover{background:rgba(6,8,12,.52)!important;color:#fff!important}
@media(max-width:720px){
  .khs-finished-viewer{padding:2.5vh 8px!important}
  .khs-finished-viewer.ratio-16-9 .khs-finished-viewer-shell{width:min(94vw,calc(76vh * 16 / 9))!important}
  .khs-finished-viewer.ratio-9-16 .khs-finished-viewer-shell{width:min(82vw,calc(74vh * 9 / 16))!important}
  .khs-finished-viewer.ratio-1-1 .khs-finished-viewer-shell{width:min(86vw,70vh)!important}
}

/* Home Shopping landing foundation — geometry is defined once in the v1.37 canonical block below. */
.khs-app.khs-home-shopping-app,.khs-hs-landing{--khs-hs-blue:#1f4fbf;--khs-hs-blue2:#173b91;--khs-hs-ink:#111827;--khs-hs-muted:#667085;--khs-hs-line:rgba(17,24,39,.10);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;color:var(--khs-hs-ink)!important;background:#f7f9fc!important}
.khs-hs-guest-gate{margin-top:12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;padding:11px 14px!important;background:#f8fafc!important;border:1px solid rgba(17,24,39,.08)!important}.khs-hs-guest-gate span{font-size:10px!important;color:#667085!important}.khs-hs-guest-gate a{font-size:10px!important;color:#173b91!important;font-weight:850!important;text-decoration:none!important}
@media(max-width:760px){.khs-hs-guest-gate{align-items:flex-start!important;flex-direction:column!important}}

/* Home Shopping identity accents — shared by the canonical landing and studio UI */
.khs-app,.khs-hs-landing{--khs-accent:#e64d8e;--khs-accent-deep:#c93675;--khs-accent-soft:#fff1f6;--khs-accent-line:#f3c2d5}
.khs-hs-brandline span{color:var(--khs-accent)!important}.khs-hs-brandline i{background:rgba(230,77,142,.38)!important}
.khs-duration-segment{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.khs-segment input:checked+b{background:var(--khs-accent-deep)!important;color:#fff!important}
.khs-toolbar .khs-panel-tabs .khs-panel-nav.active:after{background:var(--khs-accent)!important}
.khs-primary,.khs-generate,.khs-ai-model-btn{background:var(--khs-accent-deep)!important;border-color:var(--khs-accent-deep)!important}.khs-primary:hover,.khs-generate:hover,.khs-ai-model-btn:hover{background:#ad2f65!important;border-color:#ad2f65!important}
.khs-estimate>strong,.khs-balance b{color:#1b1f29!important}
.khs-flow-help b:first-child,.khs-create-head>span,.khs-section-head>div>span{color:var(--khs-accent-deep)!important}
@media(max-width:760px){.khs-duration-segment{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* v1.03 — Premium automatic Show Host / Studio generator */
.khs-app{--khs-accent:#e64d8e!important;--khs-accent-deep:#c93675!important;--khs-accent-soft:#fff2f7!important;--khs-accent-line:#f2bfd3!important}
.khs-toolbar .khs-panel-tabs .khs-panel-nav.active:after,
.khs-modal-progress i,.khs-model-progress-bar i,.khs-modal-progress>b>i,
.khs-stage-rail article.active i,.khs-stage-rail article.active em,
.khs-scene-progress>i{background:var(--khs-accent)!important}
.khs-stage-rail article.active{box-shadow:0 0 0 1px var(--khs-accent) inset!important;border-color:var(--khs-accent)!important}
.khs-scene.active{box-shadow:inset 2px 0 0 var(--khs-accent)!important}
.khs-scene-media:hover,.khs-scene-media:focus,.khs-scene-media:focus-visible,.khs-help-guide:hover,.khs-help-guide:focus,.khs-help-guide:focus-visible{border-color:var(--khs-accent)!important;box-shadow:0 0 0 1px var(--khs-accent)!important}
.khs-mini-spinner{border-color:rgba(230,77,142,.18)!important;border-top-color:var(--khs-accent)!important}
.khs-output-default-badge i{background:var(--khs-accent)!important}
.khs-landing-guide-head span,.khs-landing-guide-head>button,.khs-help-note-bar i{color:var(--khs-accent-deep)!important}
.khs-landing-guide-grid>button:hover,.khs-landing-guide-grid>button:focus,.khs-landing-guide-grid>button:focus-visible{box-shadow:inset 0 0 0 1px var(--khs-accent)!important}

.khs-auto-asset{
  display:grid!important;grid-template-columns:minmax(280px,.72fr) minmax(520px,1.28fr)!important;
  gap:0!important;margin:0 0 28px!important;background:#fff!important;border:1px solid #dedfe4!important;
  box-shadow:0 18px 46px rgba(18,24,35,.055)!important;overflow:hidden!important
}
.khs-auto-asset-copy{padding:34px 34px 32px!important;background:linear-gradient(180deg,#fbfbfc 0%,#f6f7f9 100%)!important;border-right:1px solid #e2e3e7!important}
.khs-auto-asset-copy>span{display:block!important;margin-bottom:12px!important;color:var(--khs-accent-deep)!important;font-size:8px!important;font-weight:900!important;letter-spacing:.19em!important}
.khs-auto-asset-copy h4{margin:0 0 11px!important;color:#171a21!important;font:400 25px/1.15 Georgia,"Times New Roman",serif!important;letter-spacing:-.025em!important}
.khs-auto-asset-copy p{margin:0!important;max-width:390px!important;color:#6f7785!important;font-size:11px!important;line-height:1.75!important;word-break:keep-all!important}
.khs-auto-asset-copy small{display:block!important;margin-top:18px!important;padding-top:16px!important;border-top:1px solid #e1e3e7!important;color:#959ba5!important;font-size:9px!important;line-height:1.65!important}
.khs-auto-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 18px!important;align-content:center!important;padding:30px 32px!important;background:#fff!important}
.khs-auto-controls>label,.khs-auto-control-group{display:flex!important;flex-direction:column!important;gap:8px!important}
.khs-auto-controls>label>span,.khs-auto-control-group>span{color:#2f3440!important;font-size:10px!important;font-weight:800!important;letter-spacing:-.01em!important}
.khs-auto-controls select{appearance:none!important;-webkit-appearance:none!important;width:100%!important;height:44px!important;padding:0 36px 0 13px!important;border:1px solid #d8dae0!important;border-radius:0!important;background:#fff linear-gradient(45deg,transparent 50%,#7e8490 50%) right 15px center/5px 5px no-repeat!important;color:#20242d!important;font-size:11px!important;font-weight:650!important;box-shadow:none!important;outline:0!important}
.khs-auto-controls select:focus{border-color:var(--khs-accent)!important;box-shadow:0 0 0 1px var(--khs-accent)!important}
.khs-auto-segment{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;height:44px!important;border:1px solid #d8dae0!important;background:#fff!important}
.khs-auto-segment label{min-width:0!important;cursor:pointer!important}
.khs-auto-segment input{display:none!important}
.khs-auto-segment b{height:42px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-right:1px solid #e4e5e8!important;color:#747b87!important;background:#fff!important;font-size:10px!important;font-weight:750!important;transition:.16s ease!important}
.khs-auto-segment label:last-child b{border-right:0!important}
.khs-auto-segment input:checked+b{background:var(--khs-accent-soft)!important;color:var(--khs-accent-deep)!important;box-shadow:inset 0 -2px 0 var(--khs-accent)!important}
.khs-auto-fixed{height:44px!important;display:flex!important;align-items:center!important;padding:0 13px!important;border:1px solid #d8dae0!important;background:#f8f8f9!important;color:#555d69!important;font-size:10px!important;font-weight:750!important}
.khs-auto-create-btn{grid-column:1/-1!important;appearance:none!important;height:52px!important;border:1px solid var(--khs-accent-deep)!important;border-radius:0!important;background:#fff!important;color:#1d2129!important;padding:0 17px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;cursor:pointer!important;box-shadow:inset 0 0 0 0 var(--khs-accent)!important;transition:background .17s ease,color .17s ease,box-shadow .17s ease!important}
.khs-auto-create-btn span{font-size:11px!important;font-weight:850!important;letter-spacing:-.01em!important}
.khs-auto-create-btn b{min-width:72px!important;padding-left:16px!important;border-left:1px solid var(--khs-accent-line)!important;color:var(--khs-accent-deep)!important;font-size:11px!important;text-align:right!important}
.khs-auto-create-btn:hover{background:linear-gradient(135deg,var(--khs-accent),var(--khs-accent-deep))!important;color:#fff!important;box-shadow:0 10px 26px rgba(201,54,117,.17)!important}
.khs-auto-create-btn:hover b{color:#fff!important;border-left-color:rgba(255,255,255,.34)!important}
.khs-auto-create-btn:disabled{opacity:.48!important;cursor:wait!important;box-shadow:none!important}
.khs-auto-status{grid-column:1/-1!important;margin-top:2px!important;padding:13px 14px!important;border:1px solid #e3e4e7!important;background:#fafafb!important}
.khs-auto-status>div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:15px!important;margin-bottom:9px!important}
.khs-auto-status [data-auto-stage]{color:#4f5662!important;font-size:9px!important;font-weight:750!important}
.khs-auto-status [data-auto-percent]{color:var(--khs-accent-deep)!important;font-size:9px!important}
.khs-auto-status>i{display:block!important;height:2px!important;background:#e6e7ea!important;overflow:hidden!important}
.khs-auto-status>i>em{display:block!important;width:0;height:100%!important;background:var(--khs-accent)!important;transition:width .35s ease!important}
.khs-auto-status>small{display:block!important;margin-top:8px!important;color:#9298a2!important;font-size:8px!important;line-height:1.55!important}
.khs-auto-result{grid-column:1/-1!important;margin:0!important;color:#666d78!important;font-size:9px!important;line-height:1.55!important}
.khs-auto-result.success{color:#47745d!important}.khs-auto-result.error{color:#a9475c!important}

.khs-asset-grid{gap:15px!important}
.khs-asset-card{position:relative!important;border-color:#e0e1e5!important;box-shadow:0 7px 20px rgba(18,24,35,.025)!important;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important}
.khs-asset-card:hover{transform:translateY(-2px)!important;border-color:#d0d2d8!important;box-shadow:0 14px 30px rgba(18,24,35,.07)!important}
.khs-studio-grid .khs-asset-card-media{aspect-ratio:16/9!important;background:#eef0f3!important}
.khs-studio-grid .khs-asset-card-media img{object-fit:cover!important;background:#eef0f3!important}
#khs-model-grid .khs-asset-card-media{aspect-ratio:4/5!important;background:#f1f1f3!important}
#khs-model-grid .khs-asset-card-media img{object-fit:cover!important;object-position:center 22%!important;background:#f1f1f3!important}
.khs-asset-card footer{min-height:48px!important;padding:10px 11px 9px!important;gap:9px!important;border-top:1px solid #ececef!important}
.khs-asset-card footer>b{max-width:calc(100% - 34px)!important;color:#343944!important;font-size:9px!important;font-weight:780!important}
.khs-delete-asset{flex:0 0 auto!important;padding:3px!important;color:#a1a5ad!important;text-decoration:none!important}
.khs-delete-asset:hover{color:#b43b67!important}
.khs-asset-badges{position:absolute!important;left:9px!important;top:9px!important;z-index:2!important;display:flex!important;flex-wrap:wrap!important;gap:4px!important;pointer-events:none!important}
.khs-asset-badges i{font-style:normal!important;display:inline-flex!important;align-items:center!important;min-height:21px!important;padding:0 7px!important;background:rgba(255,255,255,.91)!important;border:1px solid rgba(25,29,37,.09)!important;backdrop-filter:blur(7px)!important;color:#525966!important;font-size:7px!important;font-weight:820!important;letter-spacing:.02em!important}
.khs-asset-badges i:first-child{color:var(--khs-accent-deep)!important}
.khs-empty{background:#fafafb!important;border-color:#dfe1e5!important}.khs-empty b{font-size:20px!important}.khs-empty span{max-width:440px!important;text-align:center!important;line-height:1.7!important}

.khs-section-head>div>span{color:var(--khs-accent-deep)!important}
.khs-secondary:hover,.khs-mini-upload:hover{border-color:var(--khs-accent)!important;color:var(--khs-accent-deep)!important}
.khs-primary,.khs-generate{background:var(--khs-accent-deep)!important;border-color:var(--khs-accent-deep)!important}
.khs-primary:hover,.khs-generate:hover{background:#ad2f65!important;border-color:#ad2f65!important}

@media(max-width:980px){
  .khs-auto-asset{grid-template-columns:1fr!important}
  .khs-auto-asset-copy{border-right:0!important;border-bottom:1px solid #e2e3e7!important}
  .khs-auto-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:640px){
  .khs-auto-asset-copy{padding:25px 22px!important}.khs-auto-controls{grid-template-columns:1fr!important;padding:22px!important}
  .khs-auto-create-btn,.khs-auto-status,.khs-auto-result{grid-column:1!important}
  .khs-studio-grid,#khs-model-grid{grid-template-columns:1fr 1fr!important}
}

.khs-studio-grid .khs-asset-card.khs-ratio-9-16 .khs-asset-card-media img{object-fit:contain!important;background:#eef0f3!important}
.khs-app.khs-home-shopping-app,.khs-hs-landing{--khs-hs-blue:var(--khs-accent)!important;--khs-hs-blue2:var(--khs-accent-deep)!important}
.khs-hs-guest-gate a{color:var(--khs-accent-deep)!important}


/* v1.04 — Admin-published show hosts/studios + compact system badge */
.khs-asset-card.is-system{border-color:rgba(236,72,153,.22);box-shadow:0 12px 34px rgba(17,24,39,.06)}
.khs-asset-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.khs-asset-badges .khs-system-badge{font-size:9px!important;line-height:18px!important;height:18px!important;padding:0 7px!important;border-radius:999px!important;background:#fff!important;color:#c0266d!important;border:1px solid rgba(236,72,153,.28)!important;box-shadow:0 3px 12px rgba(236,72,153,.08)!important;font-weight:700!important;letter-spacing:-.02em!important}
.khs-asset-public-switch{display:inline-flex;align-items:center;gap:5px;margin:0;cursor:pointer;user-select:none}
.khs-asset-public-switch input{position:absolute;opacity:0;pointer-events:none}
.khs-asset-public-switch i{position:relative;display:block;width:27px;height:15px;border-radius:999px;background:#d8dde6;box-shadow:inset 0 0 0 1px rgba(15,23,42,.06);transition:.18s ease}
.khs-asset-public-switch i:after{content:"";position:absolute;left:2px;top:2px;width:11px;height:11px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.2);transition:.18s ease}
.khs-asset-public-switch input:checked+i{background:#ec4899}
.khs-asset-public-switch input:checked+i:after{transform:translateX(12px)}
.khs-asset-public-switch input:disabled+i{opacity:.55}
.khs-asset-public-switch span,.khs-system-lock{font-size:10px;font-weight:700;color:#7a8290;white-space:nowrap}
.khs-system-lock{color:#c0266d}


/* v1.05 — visible Studio background generator + Show Host Auto/Custom controls */
.khs-host-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.khs-host-mode{grid-column:1/-1!important}
.khs-host-custom-options[hidden]{display:none!important}
.khs-host-custom-options{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px 14px!important;padding:18px!important;border:1px solid #ece3e8!important;background:linear-gradient(180deg,#fffafd 0%,#fff 100%)!important}
.khs-host-custom-options>label{display:flex!important;flex-direction:column!important;gap:7px!important}
.khs-host-custom-options>label>span{color:#393f49!important;font-size:9px!important;font-weight:820!important}
.khs-host-custom-options select{width:100%!important;height:42px!important}
.khs-host-frame{display:grid!important;grid-template-columns:auto 1fr!important;gap:2px 10px!important;height:auto!important;min-height:44px!important}
.khs-host-frame>span{grid-row:1/3!important;align-self:center!important;color:#6f7580!important;font-size:8px!important;font-weight:800!important}
.khs-host-frame>b{color:#2f3440!important;font-size:10px!important}
.khs-host-frame>small{color:#999ea7!important;font-size:7px!important;font-weight:650!important}
#khs-panel-studios .khs-auto-asset{border-top:2px solid var(--khs-accent)!important}
#khs-panel-studios .khs-auto-asset-copy{background:linear-gradient(180deg,#fffafd 0%,#f8f8fa 100%)!important}
@media(max-width:1080px){.khs-host-custom-options{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){.khs-host-custom-options{grid-template-columns:1fr!important}.khs-host-mode{grid-column:1!important}}


/* Compact advanced controls */
.khs-compact-advanced{
  grid-column:1/-1!important;
  border:1px solid #e1e3e7!important;
  background:#fff!important;
  overflow:hidden!important;
}
.khs-compact-advanced>summary{
  list-style:none!important;
  min-height:48px!important;
  padding:0 14px!important;
  display:grid!important;
  grid-template-columns:auto 1fr 18px!important;
  align-items:center!important;
  gap:10px!important;
  cursor:pointer!important;
  user-select:none!important;
  background:#fbfbfc!important;
}
.khs-compact-advanced>summary::-webkit-details-marker{display:none!important}
.khs-compact-advanced>summary>span{font-size:10px!important;font-weight:850!important;color:#343944!important}
.khs-compact-advanced>summary>small{font-size:8px!important;color:#9096a0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.khs-compact-advanced>summary>i{position:relative!important;width:18px!important;height:18px!important}
.khs-compact-advanced>summary>i:before,.khs-compact-advanced>summary>i:after{content:""!important;position:absolute!important;left:4px!important;right:4px!important;top:8px!important;height:1px!important;background:#7c838d!important}
.khs-compact-advanced>summary>i:after{transform:rotate(90deg)!important;transition:.16s ease!important}
.khs-compact-advanced[open]>summary>i:after{transform:rotate(0)!important}
.khs-compact-advanced[open]>summary{border-bottom:1px solid #eceef1!important;background:#fff!important}

.khs-host-custom-options{padding:0!important;background:#fff!important}
.khs-host-custom-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px 13px!important;padding:16px!important}
.khs-host-custom-grid>label{display:flex!important;flex-direction:column!important;gap:6px!important}
.khs-host-custom-grid>label>span{font-size:8px!important;font-weight:820!important;color:#515863!important}
.khs-host-custom-grid select{height:40px!important;min-height:40px!important}

.khs-broadcast-advanced{margin-top:-2px!important}
.khs-broadcast-advanced-grid{display:grid!important;grid-template-columns:1.1fr .9fr!important;gap:0!important}
.khs-broadcast-advanced-grid>section{padding:17px 18px!important}
.khs-broadcast-advanced-grid>section+section{border-left:1px solid #eceef1!important}
.khs-advanced-title{display:flex!important;flex-direction:column!important;gap:3px!important;margin-bottom:12px!important}
.khs-advanced-title b{font-size:10px!important;color:#343944!important}
.khs-advanced-title small{font-size:8px!important;line-height:1.5!important;color:#9298a2!important}
.khs-size-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
.khs-size-grid label,.khs-dialogue-grid label{display:flex!important;flex-direction:column!important;gap:5px!important}
.khs-size-grid label>span,.khs-dialogue-grid label>span{font-size:8px!important;font-weight:750!important;color:#69717d!important}
.khs-size-grid input,.khs-dialogue-grid select{
  width:100%!important;height:38px!important;min-height:38px!important;border:1px solid #d9dce1!important;background:#fff!important;padding:0 10px!important;font-size:10px!important;box-shadow:none!important;border-radius:0!important
}
.khs-dialogue-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
.khs-advanced-check{display:flex!important;align-items:center!important;gap:7px!important;margin-top:10px!important;font-size:8px!important;color:#737b86!important;cursor:pointer!important}
.khs-advanced-check input{width:14px!important;height:14px!important;margin:0!important;accent-color:var(--khs-accent)!important}

#khs-asset-modal{
  padding:20px!important;
  background:rgba(16,20,28,.52)!important;
  backdrop-filter:blur(8px)!important;
}
#khs-asset-modal .khs-asset-modal-card{
  position:relative!important;
  width:auto!important;
  max-width:calc(100vw - 40px)!important;
  max-height:calc(100vh - 40px)!important;
  padding:12px!important;
  border:1px solid rgba(255,255,255,.65)!important;
  background:#fff!important;
  box-shadow:0 30px 90px rgba(7,12,22,.30)!important;
  overflow:visible!important;
}
#khs-asset-modal .khs-asset-modal-body{gap:9px!important}
#khs-asset-modal .khs-asset-modal-card.is-studio{width:min(1040px,calc(100vw - 52px))!important}
#khs-asset-modal .khs-asset-modal-card.is-studio .khs-asset-modal-body img{
  display:block!important;width:100%!important;height:auto!important;aspect-ratio:16/9!important;max-height:calc(100vh - 105px)!important;object-fit:cover!important;background:#f5f6f8!important;border:0!important
}
#khs-asset-modal .khs-asset-modal-card.is-model{
  width:min(430px,calc((100vh - 82px) * 9 / 16),calc(100vw - 52px))!important;
}
#khs-asset-modal .khs-asset-modal-card.is-model .khs-asset-modal-body img{
  display:block!important;width:100%!important;height:auto!important;aspect-ratio:9/16!important;max-height:calc(100vh - 105px)!important;object-fit:cover!important;object-position:center top!important;background:#f5f6f8!important;border:0!important
}
#khs-asset-modal .khs-asset-modal-caption{
  min-height:18px!important;padding:1px 2px 0!important;font-size:9px!important;font-weight:720!important;color:#646b76!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
#khs-asset-modal .khs-asset-modal-close{
  appearance:none!important;-webkit-appearance:none!important;
  position:absolute!important;right:-14px!important;top:-14px!important;z-index:10!important;
  width:34px!important;height:34px!important;margin:0!important;padding:0!important;
  display:grid!important;place-items:center!important;
  border:1px solid #d6dae1!important;border-radius:50%!important;
  background:rgba(255,255,255,.98)!important;color:#5b6470!important;
  font:300 22px/1 Arial,sans-serif!important;box-shadow:0 8px 24px rgba(10,18,32,.16)!important;cursor:pointer!important
}
#khs-asset-modal .khs-asset-modal-close:hover{background:#20252e!important;border-color:#20252e!important;color:#fff!important}

@media(max-width:1100px){
  .khs-host-custom-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .khs-broadcast-advanced-grid{grid-template-columns:1fr!important}
  .khs-broadcast-advanced-grid>section+section{border-left:0!important;border-top:1px solid #eceef1!important}
}
@media(max-width:760px){
  .khs-size-grid,.khs-dialogue-grid,.khs-host-custom-grid{grid-template-columns:1fr 1fr!important}
  #khs-asset-modal{padding:12px!important}
  #khs-asset-modal .khs-asset-modal-card{max-width:calc(100vw - 24px)!important}
  #khs-asset-modal .khs-asset-modal-close{right:6px!important;top:6px!important;box-shadow:none!important}
}

.khs-host-custom-options{display:block!important;grid-template-columns:none!important;gap:0!important}
#khs-model-grid .khs-asset-card-media{aspect-ratio:9/16!important}
#khs-asset-modal .khs-asset-modal-card:not(.is-studio):not(.is-model){width:min(900px,calc(100vw - 52px))!important}


/* v1.07 multi-host + brand stage */
.khs-host-count{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #ece5e8;background:#fffafb}.khs-host-count>span{font-size:10px;font-weight:800;letter-spacing:.04em}.khs-host-count .khs-auto-segment{min-width:180px}.khs-host-slots{display:grid;gap:8px;margin-top:8px}.khs-host-slot{border:1px solid #e6e1e3;background:#fff;padding:10px;transition:.18s ease}.khs-host-slot.is-hidden{display:none}.khs-host-slot-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.khs-host-slot-head b{font-size:10px;letter-spacing:.04em}.khs-host-slot-head small{font-size:8px;color:#9a8f94}.khs-host-slot select{width:100%;height:36px;border:1px solid #ddd6d9;background:#fff;font-size:10px}.khs-host-slot-preview{display:grid;grid-template-columns:52px 1fr;gap:10px;align-items:center;margin-top:8px;padding:7px;background:#fbfafb;border:1px solid #f0ecee}.khs-host-slot-preview>span{width:52px;height:68px;position:relative;display:flex;align-items:center;justify-content:center;background:#f4f0f2;overflow:hidden}.khs-host-slot-preview img{width:100%;height:100%;object-fit:cover;display:none}.khs-host-slot-preview.has-image img{display:block}.khs-host-slot-preview>span i{position:absolute;font-style:normal;font-size:12px;color:#e64d8e}.khs-host-slot-preview.has-image>span i{right:4px;bottom:4px;background:#fff;border-radius:50%;width:17px;height:17px;display:flex;align-items:center;justify-content:center;font-size:9px}.khs-host-slot-preview div{display:flex;flex-direction:column;gap:3px;min-width:0}.khs-host-slot-preview b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.khs-host-slot-preview small{font-size:8px;line-height:1.45;color:#8f8589}.khs-host-director-note{display:flex;gap:9px;align-items:flex-start;padding:10px 12px;background:#fff7fa;border-left:2px solid #e64d8e}.khs-host-director-note>i{font-style:normal;font-size:8px;font-weight:900;letter-spacing:.12em;color:#e64d8e}.khs-host-director-note span{display:flex;flex-direction:column;gap:3px}.khs-host-director-note b{font-size:9px}.khs-host-director-note small{font-size:8px;line-height:1.5;color:#80777b}.khs-stage-branding{margin-top:9px;border:1px solid #ebe5e8;background:#fff}.khs-stage-branding summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:auto 1fr 14px;gap:8px;align-items:center;padding:10px 12px}.khs-stage-branding summary::-webkit-details-marker{display:none}.khs-stage-branding summary span{font-size:10px;font-weight:800}.khs-stage-branding summary small{font-size:8px;color:#968c91}.khs-stage-branding summary>i:before{content:'+';font-style:normal;color:#e64d8e}.khs-stage-branding[open] summary>i:before{content:'−'}.khs-stage-branding-body{padding:0 12px 12px;border-top:1px solid #f1ecee}.khs-stage-branding-body>label{display:grid;grid-template-columns:78px 1fr;align-items:center;gap:8px;margin:10px 0}.khs-stage-branding-body>label span{font-size:9px;font-weight:750}.khs-stage-branding-body select{height:34px;border:1px solid #ddd6da;background:#fff;font-size:9px}.khs-brand-logo-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.khs-brand-logo-drop{border:1px dashed #d9cbd1!important;background:#fffafb!important;min-height:62px!important;padding:7px 9px!important;display:grid!important;grid-template-columns:44px 1fr!important;grid-template-rows:auto auto!important;gap:2px 9px!important;text-align:left!important;position:relative!important;color:#262126!important}.khs-brand-logo-drop>span{grid-row:1/3;width:44px;height:44px;background:#fff;border:1px solid #eee4e8;display:flex;align-items:center;justify-content:center;overflow:hidden}.khs-brand-logo-drop>span img{max-width:92%;max-height:92%;display:none}.khs-brand-logo-drop.has-image>span img{display:block}.khs-brand-logo-drop>span i{font-style:normal;color:#e64d8e}.khs-brand-logo-drop.has-image>span i{display:none}.khs-brand-logo-drop>b{font-size:9px;align-self:end}.khs-brand-logo-drop>small{font-size:7.5px;color:#978b90;align-self:start}.khs-brand-logo-drop>em{position:absolute;left:0;right:0;bottom:0;height:2px;background:#f3e7ec}.khs-brand-logo-drop>em i{display:block;height:100%;width:0;background:#e64d8e}.khs-brand-logo-row>div{display:flex;flex-direction:column;gap:3px}.khs-brand-logo-row .khs-link{font-size:8px!important;padding:4px 6px!important;white-space:nowrap}
@media(max-width:720px){.khs-host-count{align-items:flex-start;flex-direction:column}.khs-host-count .khs-auto-segment{width:100%}.khs-brand-logo-row{grid-template-columns:1fr}.khs-brand-logo-row>div{flex-direction:row}}

/* v1.08 simple-first optional advanced controls */
.khs-master-advanced{margin-top:12px!important;border:1px solid #eadfe4!important;background:#fff!important;box-shadow:0 8px 24px rgba(27,20,24,.035)!important}
.khs-master-advanced>summary{list-style:none!important;cursor:pointer!important;display:grid!important;grid-template-columns:auto 1fr 22px!important;align-items:center!important;gap:10px!important;padding:13px 15px!important;background:linear-gradient(180deg,#fff 0%,#fffafb 100%)!important}
.khs-master-advanced>summary::-webkit-details-marker{display:none!important}
.khs-master-advanced>summary>span{font-size:11px!important;font-weight:850!important;letter-spacing:.01em!important;color:#252129!important}
.khs-master-advanced>summary>small{font-size:8.5px!important;line-height:1.45!important;color:#90858a!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.khs-master-advanced>summary>i{position:relative!important;width:20px!important;height:20px!important;border:1px solid #eadce2!important;border-radius:50%!important;background:#fff!important}
.khs-master-advanced>summary>i:before,.khs-master-advanced>summary>i:after{content:""!important;position:absolute!important;left:5px!important;right:5px!important;top:9px!important;height:1px!important;background:#d74380!important}
.khs-master-advanced>summary>i:after{transform:rotate(90deg)!important;transition:.18s ease!important}.khs-master-advanced[open]>summary>i:after{transform:rotate(0)!important}
.khs-master-advanced[open]>summary{border-bottom:1px solid #eee5e9!important}
.khs-master-advanced-body{display:grid!important;gap:0!important}.khs-advanced-section{padding:17px 18px!important}.khs-advanced-section+.khs-advanced-section{border-top:1px solid #f0e8eb!important}
.khs-product-detail-card{border:1px solid #eee6e9!important;background:#fcfbfc!important;margin-top:9px!important}.khs-product-detail-card>summary{list-style:none!important;cursor:pointer!important;display:grid!important;grid-template-columns:auto 1fr 16px!important;gap:8px!important;align-items:center!important;padding:10px 12px!important}.khs-product-detail-card>summary::-webkit-details-marker{display:none!important}.khs-product-detail-card>summary span{font-size:9.5px!important;font-weight:820!important;color:#312a2e!important}.khs-product-detail-card>summary small{font-size:8px!important;color:#9b9095!important}.khs-product-detail-card>summary i:before{content:'+'!important;font-style:normal!important;color:#d74380!important;font-size:13px!important}.khs-product-detail-card[open]>summary i:before{content:'−'!important}.khs-product-detail-card[open]>summary{border-bottom:1px solid #eee6e9!important;background:#fff!important}
.khs-product-detail-body{padding:12px!important;display:grid!important;gap:11px!important}.khs-product-text-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}.khs-product-text-grid label,.khs-product-ref-grid label{display:flex!important;flex-direction:column!important;gap:5px!important}.khs-product-text-grid label.wide{grid-column:span 2!important}.khs-product-text-grid label>span,.khs-product-ref-grid label>span{font-size:8px!important;font-weight:750!important;color:#6e666a!important}.khs-product-text-grid input,.khs-product-ref-grid select,.khs-product-detail-body>.khs-input select{width:100%!important;height:34px!important;border:1px solid #ded6da!important;background:#fff!important;border-radius:2px!important;padding:0 9px!important;font-size:9px!important;color:#2f292c!important;box-shadow:none!important}.khs-product-ref-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}.khs-advanced-hint{display:block!important;font-size:7.8px!important;line-height:1.55!important;color:#9b9095!important;padding:8px 10px!important;background:#fff7fa!important;border-left:2px solid #e64d8e!important}.khs-master-advanced .khs-luxury-mode{margin-top:10px!important}.khs-master-advanced .khs-choice-row{margin-top:0!important}
@media(max-width:980px){.khs-product-text-grid{grid-template-columns:1fr 1fr!important}.khs-product-ref-grid{grid-template-columns:1fr!important}.khs-master-advanced>summary{grid-template-columns:auto 1fr 22px!important}.khs-master-advanced>summary>small{white-space:normal!important}}
@media(max-width:640px){.khs-product-text-grid,.khs-size-grid,.khs-dialogue-grid{grid-template-columns:1fr!important}.khs-product-text-grid label.wide{grid-column:auto!important}.khs-master-advanced>summary{grid-template-columns:1fr 22px!important}.khs-master-advanced>summary>small{grid-column:1/3!important}.khs-advanced-section{padding:14px!important}}
.khs-advanced-menu{border-top:1px solid #f0e8eb!important;background:#fff!important}.khs-advanced-menu:first-child{border-top:0!important}.khs-advanced-menu>summary{list-style:none!important;cursor:pointer!important;display:grid!important;grid-template-columns:auto 1fr 18px!important;gap:9px!important;align-items:center!important;padding:13px 17px!important}.khs-advanced-menu>summary::-webkit-details-marker{display:none!important}.khs-advanced-menu>summary span{font-size:9.5px!important;font-weight:820!important;color:#332b30!important}.khs-advanced-menu>summary small{font-size:8px!important;color:#9a8e93!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.khs-advanced-menu>summary i:before{content:'+'!important;font-style:normal!important;color:#d74380!important;font-size:13px!important}.khs-advanced-menu[open]>summary i:before{content:'−'!important}.khs-advanced-menu[open]>summary{background:#fffafb!important;border-bottom:1px solid #f0e8eb!important}.khs-advanced-menu-body{padding:14px 17px 17px!important}.khs-advanced-menu-body>.khs-dialogue-grid{margin-top:0!important}


/* v1.37 — canonical Home Shopping landing: exact KMETA AD Studio Pro width / height rhythm */
.khs-hs-landing{width:100%!important;max-width:none!important;margin:0!important;padding:13px!important;border:1px solid #dde1e8!important;background:#fff!important}
.khs-hs-hero{position:relative!important;display:grid!important;grid-template-columns:minmax(500px,44%) minmax(0,56%)!important;grid-template-rows:minmax(455px,auto)!important;width:100%!important;min-height:455px!important;height:auto!important;gap:0!important;border:1px solid #dde1e8!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important}
.khs-hs-hero:after{display:none!important;content:none!important}
.khs-hs-hero-copy{position:relative!important;z-index:3!important;grid-column:1!important;grid-row:1!important;width:100%!important;max-width:none!important;min-width:0!important;padding:30px 38px 92px 42px!important;background:linear-gradient(90deg,#fff 0%,#fff 88%,#fbfbfc 100%)!important;display:flex!important;flex-direction:column!important;justify-content:center!important;box-sizing:border-box!important}
.khs-hs-brandline{display:flex!important;align-items:center!important;gap:9px!important;margin:0 0 11px!important;min-width:0!important;white-space:nowrap!important;font-size:8px!important;letter-spacing:2.2px!important;color:#6b7280!important;font-weight:750!important}.khs-hs-brandline span,.khs-hs-brandline b{white-space:nowrap!important}.khs-hs-brandline span{font-weight:900!important;letter-spacing:2.8px!important}.khs-hs-brandline i{width:29px!important;height:1px!important;flex:0 0 29px!important}.khs-hs-brandline b{font-size:7.5px!important;line-height:1!important;font-weight:700!important}
.khs-hs-hero-copy h2{margin:0!important;max-width:none!important;font:400 clamp(36px,2.55vw,43px)/1.07 Georgia,"Times New Roman",serif!important;letter-spacing:-1.8px!important;color:#11141b!important;word-break:keep-all!important;overflow-wrap:normal!important}.khs-hs-hero-copy h2>span{display:block!important;white-space:nowrap!important}
.khs-hs-hero-copy p{max-width:590px!important;margin:14px 0 0!important;color:#69707d!important;font-size:11px!important;line-height:1.8!important;font-weight:420!important;word-break:keep-all!important}
.khs-hs-tags{display:flex!important;flex-wrap:wrap!important;gap:5px!important;margin:13px 0 0!important}.khs-hs-tags span{display:inline-flex!important;align-items:center!important;min-height:22px!important;padding:0 8px!important;border:1px solid rgba(17,24,39,.12)!important;background:rgba(255,255,255,.82)!important;color:#475467!important;font-size:7px!important;letter-spacing:.09em!important;font-weight:800!important;backdrop-filter:blur(8px)!important}
.khs-hs-actions{display:flex!important;align-items:center!important;gap:10px!important;margin-top:15px!important;flex-wrap:wrap!important}.khs-hs-primary{appearance:none!important;border:1px solid var(--khs-accent-deep,#c93675)!important;background:linear-gradient(135deg,var(--khs-accent,#e64d8e),var(--khs-accent-deep,#c93675))!important;color:#fff!important;min-height:41px!important;height:41px!important;padding:0 16px!important;display:inline-flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;text-decoration:none!important;cursor:pointer!important;white-space:nowrap!important;box-shadow:0 7px 18px rgba(230,77,142,.12)!important;transition:background .18s ease,box-shadow .18s ease!important}.khs-hs-primary:hover{transform:none!important;box-shadow:0 9px 22px rgba(230,77,142,.18)!important}.khs-hs-primary b{font-size:11px!important;font-weight:800!important;letter-spacing:-.01em!important}.khs-hs-primary i{font-style:normal!important;font-size:17px!important;font-weight:300!important}.khs-hs-actions small{max-width:300px!important;color:#7b8494!important;font-size:9px!important;line-height:1.55!important}.khs-hs-link{border:0!important;background:transparent!important;color:#6d7482!important;font-size:10px!important;font-weight:750!important;text-decoration:underline!important;text-underline-offset:4px!important;cursor:pointer!important;padding:10px 4px!important;white-space:nowrap!important}
.khs-hs-hero-bg{position:relative!important;inset:auto!important;z-index:1!important;grid-column:2!important;grid-row:1!important;width:100%!important;height:100%!important;min-height:455px!important;max-height:none!important;aspect-ratio:auto!important;object-fit:cover!important;object-position:center center!important;display:block!important;opacity:1!important;border:0!important;border-left:1px solid #dde1e8!important;background:#f8f8f9!important}
.khs-hs-metrics{position:relative!important;z-index:4!important;grid-column:2!important;grid-row:1!important;align-self:end!important;left:auto!important;right:auto!important;bottom:auto!important;width:auto!important;margin:0 26px 18px!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;background:rgba(255,255,255,.93)!important;border:1px solid rgba(205,210,219,.92)!important;backdrop-filter:blur(9px)!important;box-shadow:none!important}.khs-hs-metrics article{min-height:58px!important;padding:8px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;text-align:center!important;border-right:1px solid #e0e3e8!important;border-bottom:0!important;box-sizing:border-box!important}.khs-hs-metrics article:last-child{border-right:0!important}.khs-hs-metrics span{font-size:7px!important;letter-spacing:.5px!important;color:#7f8590!important;font-weight:750!important}.khs-hs-metrics b{font:400 14px Georgia,"Times New Roman",serif!important;color:#151820!important;white-space:nowrap!important}.khs-hs-metrics em{font-style:normal!important;font-size:6px!important;color:var(--khs-accent)!important;font-weight:800!important;letter-spacing:.45px!important}
.khs-hs-flow{margin-top:11px!important;padding:17px 20px 19px!important;border:1px solid #dde1e8!important;background:#fff!important;box-shadow:none!important}.khs-hs-flow-head{display:flex!important;justify-content:space-between!important;align-items:end!important;gap:22px!important;border-bottom:1px solid var(--khs-hs-line)!important;padding-bottom:12px!important}.khs-hs-flow-head span{display:block!important;color:var(--khs-accent-deep)!important;font-size:8px!important;letter-spacing:.18em!important;font-weight:900!important;margin-bottom:5px!important}.khs-hs-flow-head h3{margin:0!important;font-family:Georgia,"Times New Roman",serif!important;font-size:21px!important;font-weight:400!important;letter-spacing:-.025em!important;color:#101828!important}.khs-hs-flow-head p{margin:0!important;max-width:500px!important;color:#7a8392!important;font-size:9.5px!important;line-height:1.6!important;text-align:right!important}
.khs-hs-step-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;margin-top:12px!important;border:1px solid var(--khs-hs-line)!important}.khs-hs-step-grid article,.khs-hs-step-grid button{appearance:none!important;border:0!important;border-right:1px solid var(--khs-hs-line)!important;background:#fff!important;min-height:88px!important;padding:12px!important;text-align:left!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;cursor:default!important;transition:background .18s ease!important}.khs-hs-step-grid button{cursor:pointer!important}.khs-hs-step-grid article:last-child,.khs-hs-step-grid button:last-child{border-right:0!important}.khs-hs-step-grid button:hover{background:#fff8fb!important}.khs-hs-step-grid .accent{background:linear-gradient(145deg,var(--khs-accent,#e64d8e),var(--khs-accent-deep,#c93675))!important;color:#fff!important}.khs-hs-step-grid i{font-style:normal!important;color:#8b95a5!important;font-size:8px!important;letter-spacing:.18em!important;font-weight:850!important;margin-bottom:auto!important}.khs-hs-step-grid b{font-size:10.5px!important;font-weight:820!important;color:#1d2939!important;margin-bottom:3px!important}.khs-hs-step-grid small{font-size:8px!important;line-height:1.45!important;color:#8a93a2!important}.khs-hs-step-grid .accent i,.khs-hs-step-grid .accent b,.khs-hs-step-grid .accent small{color:#fff!important}.khs-hs-step-grid .accent small{opacity:.78!important}
@media(max-width:1280px){.khs-hs-hero{grid-template-columns:minmax(430px,46%) minmax(0,54%)!important}.khs-hs-hero-copy{padding-left:34px!important;padding-right:30px!important}.khs-hs-hero-copy h2>span{white-space:normal!important}}
@media(max-width:1100px){.khs-hs-hero{grid-template-columns:1fr!important;grid-template-rows:auto minmax(360px,auto)!important;min-height:0!important}.khs-hs-hero-copy{grid-column:1!important;grid-row:1!important;padding:28px 30px 30px!important}.khs-hs-hero-bg{grid-column:1!important;grid-row:2!important;min-height:360px!important;height:100%!important;border-left:0!important;border-top:1px solid #dde1e8!important}.khs-hs-metrics{grid-column:1!important;grid-row:2!important;margin:0 18px 14px!important}.khs-hs-step-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.khs-hs-step-grid article,.khs-hs-step-grid button{border-bottom:1px solid var(--khs-hs-line)!important}.khs-hs-step-grid article:nth-child(3n),.khs-hs-step-grid button:nth-child(3n){border-right:0!important}}
@media(max-width:760px){.khs-hs-landing{padding:8px!important}.khs-hs-hero{grid-template-rows:auto minmax(300px,auto)!important}.khs-hs-hero-copy{padding:24px 18px 26px!important}.khs-hs-hero-copy h2{font-size:31px!important;letter-spacing:-1.15px!important}.khs-hs-hero-copy h2>span{white-space:normal!important}.khs-hs-hero-bg{min-height:300px!important}.khs-hs-actions{align-items:flex-start!important;flex-direction:column!important}.khs-hs-primary{width:100%!important}.khs-hs-metrics{margin:0 8px 8px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.khs-hs-metrics article{min-height:50px!important}.khs-hs-metrics article:nth-child(2){border-right:0!important}.khs-hs-metrics article:nth-child(-n+2){border-bottom:1px solid #e0e3e8!important}.khs-hs-flow{padding:12px!important}.khs-hs-flow-head{align-items:flex-start!important;flex-direction:column!important}.khs-hs-flow-head p{text-align:left!important}.khs-hs-step-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.khs-hs-step-grid article:nth-child(3n),.khs-hs-step-grid button:nth-child(3n){border-right:1px solid var(--khs-hs-line)!important}.khs-hs-step-grid article:nth-child(2n),.khs-hs-step-grid button:nth-child(2n){border-right:0!important}}

/* v1.12 — priority broadcast controls + stable 3-host selector */
.khs-broadcast-priority{padding:14px 16px 16px!important;border:1px solid #eadce2!important;background:linear-gradient(180deg,#fff 0%,#fffafd 100%)!important;margin-bottom:0!important}
.khs-broadcast-priority .khs-label{color:#3c3438!important}
.khs-broadcast-priority .khs-segment{border-color:#ded2d7!important;background:#fff!important}
.khs-broadcast-priority .khs-segment input:checked+b{background:var(--khs-accent,#e64d8e)!important;color:#fff!important}
.khs-host-count{min-width:0!important}
.khs-host-count .khs-auto-segment{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;flex:0 0 204px!important;width:204px!important;min-width:0!important;max-width:204px!important;height:40px!important;overflow:hidden!important}
.khs-host-count .khs-auto-segment label{display:block!important;min-width:0!important;width:auto!important;margin:0!important;padding:0!important}
.khs-host-count .khs-auto-segment b{width:100%!important;min-width:0!important;height:38px!important;padding:0 6px!important;white-space:nowrap!important}
@media(max-width:720px){.khs-host-count .khs-auto-segment{flex:0 0 auto!important;width:100%!important;max-width:none!important}.khs-broadcast-priority{padding:13px!important}}

/* v1.12 — premium visual help entry */
.khs-help-showcase{display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(340px,1.1fr)!important;min-height:250px!important;border:1px solid #e4dbe0!important;background:#fff!important;margin:0 0 14px!important;overflow:hidden!important}
.khs-help-showcase>div{padding:30px 34px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;background:linear-gradient(135deg,#fff 0%,#fff 74%,#fff7fa 100%)!important}
.khs-help-showcase span{font-size:8px!important;font-weight:850!important;letter-spacing:2px!important;color:var(--khs-accent-deep,#c83d77)!important}
.khs-help-showcase h4{font:400 27px/1.24 Georgia,"Times New Roman",serif!important;letter-spacing:-.5px!important;color:#1a1719!important;margin:10px 0 10px!important}
.khs-help-showcase p{font-size:10px!important;line-height:1.7!important;color:#82787d!important;margin:0 0 18px!important}.khs-help-showcase b{font-size:8px!important;letter-spacing:.8px!important;color:#c43e76!important}
.khs-help-showcase>img{display:block!important;width:100%!important;height:100%!important;min-height:250px!important;object-fit:cover!important;object-position:center!important}
@media(max-width:860px){.khs-help-showcase{grid-template-columns:1fr!important}.khs-help-showcase>img{order:-1!important;min-height:210px!important}.khs-help-showcase>div{padding:24px!important}.khs-help-showcase h4{font-size:23px!important}}
/* v1.14 — explicit failed-project resume */
#khs-project-modal .khs-resume-project{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:36px!important;margin:4px 0 7px!important;padding:0 14px!important;border:1px solid #cf3475!important;border-radius:0!important;background:#cf3475!important;color:#fff!important;font-size:10px!important;font-weight:850!important;cursor:pointer!important;transition:background .15s,border-color .15s!important}
#khs-project-modal .khs-resume-project:hover{background:#b92d68!important;border-color:#b92d68!important}
#khs-project-modal .khs-resume-project:disabled,#khs-project-modal .khs-resume-project.working{cursor:wait!important;opacity:.72!important}

/* v1.25: simple top-level broadcast performance mode */
.khs-broadcast-mode-block{margin:18px 0 20px}.khs-broadcast-mode-segment{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #e3e6eb;background:#fff}.khs-broadcast-mode-segment label{position:relative;min-width:0;border-right:1px solid #e8eaee;cursor:pointer}.khs-broadcast-mode-segment label:last-child{border-right:0}.khs-broadcast-mode-segment input{position:absolute;opacity:0;pointer-events:none}.khs-broadcast-mode-segment span{display:flex;min-height:72px;padding:14px 16px;flex-direction:column;justify-content:center;gap:4px;transition:.16s ease;background:#fff}.khs-broadcast-mode-segment b{font-size:14px;color:#202633;font-weight:750}.khs-broadcast-mode-segment small{font-size:11px;color:#7a8494;line-height:1.35}.khs-broadcast-mode-segment input:checked+span{box-shadow:inset 0 -3px 0 #dc3e7e;background:#fffafb}.khs-broadcast-mode-segment input:checked+span b{color:#c92e6c}@media(max-width:760px){.khs-broadcast-mode-segment{grid-template-columns:1fr}.khs-broadcast-mode-segment label{border-right:0;border-bottom:1px solid #e8eaee}.khs-broadcast-mode-segment label:last-child{border-bottom:0}.khs-broadcast-mode-segment span{min-height:58px}}


/* v1.27 product reference previews */
.khs-product-main-preview,.khs-product-ref-preview{margin-top:10px;border:1px solid #e8eaef;background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%);display:grid;grid-template-columns:78px minmax(0,1fr);gap:12px;align-items:center;padding:10px 12px;min-height:98px;box-shadow:0 10px 26px rgba(18,28,45,.04)}
.khs-product-main-preview{margin-bottom:14px}
.khs-product-ref-preview-media{width:78px;height:78px;border:1px solid #e4e7ee;background:#f6f8fb;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.khs-product-ref-preview-media img{width:100%;height:100%;object-fit:cover;display:none}
.khs-product-main-preview.has-image .khs-product-ref-preview-media img,.khs-product-ref-preview.has-image .khs-product-ref-preview-media img{display:block}
.khs-product-ref-preview-media i{font-style:normal;font-size:20px;font-weight:700;color:#de4e8e}
.khs-product-main-preview.has-image .khs-product-ref-preview-media i,.khs-product-ref-preview.has-image .khs-product-ref-preview-media i{position:absolute;right:6px;bottom:6px;width:18px;height:18px;border-radius:50%;background:#fff;color:#de4e8e;font-size:10px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(21,28,38,.14)}
.khs-product-ref-preview-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.khs-product-ref-preview-copy b{font-size:12px;line-height:1.35;color:#18202b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.khs-product-ref-preview-copy small{font-size:10px;line-height:1.55;color:#7b8494}
.khs-product-ref-field{display:flex;flex-direction:column;gap:8px}
.khs-product-ref-grid .khs-product-ref-field>span,.khs-product-detail-body .khs-product-ref-field>span{font-size:11px;font-weight:700;color:#253142}
@media(max-width:760px){.khs-product-main-preview,.khs-product-ref-preview{grid-template-columns:62px minmax(0,1fr);padding:9px 10px;min-height:84px}.khs-product-ref-preview-media{width:62px;height:62px}.khs-product-ref-preview-copy b{font-size:11px}.khs-product-ref-preview-copy small{font-size:9px}}

/* v1.31 project cards show the entire project cover without cropping. */
.khs-project-card .khs-project-thumb{background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;background-color:#f5f6f8!important}

/* v1.32 selected-clip regeneration request */
.khs-scene-regen-modal{z-index:1000001!important;background:rgba(14,18,25,.54)!important;backdrop-filter:blur(8px)!important}
.khs-scene-regen-request-card{width:min(760px,94vw)!important;max-height:92vh!important;overflow:auto!important;padding:0!important;border:1px solid #d8dee8!important;background:#fff!important;box-shadow:0 32px 90px rgba(15,23,42,.24)!important}
.khs-scene-regen-request-close{position:absolute!important;right:18px!important;top:14px!important;z-index:3!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;background:#146df5!important;color:transparent!important;font-size:0!important;line-height:0!important;box-shadow:none!important;cursor:pointer!important;appearance:none!important;-webkit-appearance:none!important}
.khs-scene-regen-request-close::before,.khs-scene-regen-request-close::after{content:"";position:absolute;left:50%;top:50%;width:13px;height:1.5px;background:#fff;border-radius:2px;transform-origin:center;pointer-events:none}
.khs-scene-regen-request-close::before{transform:translate(-50%,-50%) rotate(45deg)}
.khs-scene-regen-request-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.khs-scene-regen-request-close:hover{background:#0b5ed7!important}
.khs-scene-regen-request-close:focus-visible{outline:2px solid #9bc2ff!important;outline-offset:2px!important}
.khs-scene-regen-request-head{padding:30px 34px 20px;border-bottom:1px solid #e8ebf0;background:linear-gradient(180deg,#fff,#fbfcfe)}
.khs-scene-regen-request-head>span{display:block;font-size:8px;letter-spacing:1.8px;color:#7f8a9a;font-weight:900;margin-bottom:7px}
.khs-scene-regen-request-head h3{margin:0 0 8px;font:400 27px Georgia,"Times New Roman",serif;color:#18202b;letter-spacing:-.4px}
.khs-scene-regen-request-head p{margin:0;max-width:650px;font-size:11px;line-height:1.65;color:#7b8493}
#khs-scene-regen-request-form{display:grid;gap:17px;padding:24px 34px 30px}
.khs-scene-regen-current{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 14px;align-items:center;padding:13px 15px;border:1px solid #e1e6ed;background:#f8fafc}
.khs-scene-regen-current>span{grid-row:1/3;font-size:8px;letter-spacing:.9px;font-weight:900;color:#718096}
.khs-scene-regen-current>b{font-size:12px;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.khs-scene-regen-current>small{font-size:9px;color:#8b95a4}
.khs-scene-regen-cost{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 18px;align-items:center;padding:15px 16px;border:1px solid #d9e2ee;background:linear-gradient(135deg,#f8fafc 0%,#f2f6fb 100%);box-shadow:inset 3px 0 0 #526884}
.khs-scene-regen-cost>div{display:grid;gap:3px}
.khs-scene-regen-cost>div:nth-child(2){text-align:right}
.khs-scene-regen-cost span{font-size:8px;letter-spacing:.75px;color:#718096;font-weight:900}
.khs-scene-regen-cost strong{font:500 22px Georgia,"Times New Roman",serif;color:#20344f;letter-spacing:-.3px}
.khs-scene-regen-cost b{font-size:12px;color:#526884;font-weight:900}
.khs-scene-regen-cost>small{grid-column:1/-1;font-size:9px;line-height:1.6;color:#737f90;border-top:1px solid #e3e9f1;padding-top:9px}
.khs-scene-regen-cost.is-error{border-color:#e5c6c6;background:#fff8f8;box-shadow:inset 3px 0 0 #a94b4b}
.khs-scene-regen-cost.is-error strong,.khs-scene-regen-cost.is-error b{color:#9d3f3f}
.khs-regen-request-field{display:grid;gap:7px;margin:0}
.khs-regen-request-field>span{font-size:11px;font-weight:800;color:#273244}
.khs-regen-request-field>small{font-size:9px;line-height:1.55;color:#8d96a4}
.khs-regen-choice-field>small{display:block;margin-top:4px;font-size:9px;line-height:1.55;color:#8d96a4}
.khs-regen-route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.khs-regen-route-choice{min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:12px 13px!important;border:1px solid #d7dce4!important;border-radius:0!important;background:#fff!important;color:#243244!important;text-align:left;cursor:pointer;box-shadow:none!important;transition:border-color .14s ease,background .14s ease,transform .14s ease}
.khs-regen-route-choice:hover{transform:translateY(-1px);border-color:#8fa1bb!important}
.khs-regen-route-choice b{font-size:11px;font-weight:800;color:#243244}
.khs-regen-route-choice small{font-size:9px;line-height:1.5;color:#7b8696}
.khs-regen-route-choice.selected{border-color:#1d3356!important;background:#f3f6fa!important;box-shadow:0 0 0 1px #1d3356!important}
.khs-regen-request-field textarea,.khs-regen-request-field input[type="text"],.khs-regen-request-field input[type="file"]{width:100%;border:1px solid #d7dce4!important;border-radius:0!important;background:#fff!important;color:#1f2937!important;box-shadow:none!important;font-size:12px!important}
.khs-regen-request-field textarea{min-height:92px;resize:vertical;padding:12px 13px!important;line-height:1.65}
.khs-regen-request-field input[type="text"]{min-height:44px;padding:0 13px!important}
.khs-regen-request-field input[type="file"]{min-height:48px;padding:9px 10px!important;background:#fafbfc!important}
.khs-regen-request-field textarea:focus,.khs-regen-request-field input:focus{outline:none!important;border-color:#244b8f!important;box-shadow:0 0 0 2px rgba(36,75,143,.08)!important}
.khs-regen-reference-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.khs-regen-reference-thumb{min-width:0;border:1px solid #e1e5eb;background:#f7f8fa;display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:8px;padding:6px}
.khs-regen-reference-thumb img{width:56px;height:56px;object-fit:cover;display:block;background:#eef1f5}
.khs-regen-reference-thumb b{font-size:8px;line-height:1.35;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.khs-scene-regen-request-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:4px}
.khs-scene-regen-request-actions button{min-height:46px;border-radius:0;padding:0 16px;font-size:10px;font-weight:800;cursor:pointer}
.khs-scene-regen-request-cancel{border:1px solid #d4d8df;background:#fff;color:#667085}
.khs-scene-regen-request-submit{min-width:190px;border:1px solid #18202b;background:#18202b;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:24px}
.khs-scene-regen-request-submit i{font-style:normal;font-size:17px;font-weight:300}
.khs-scene-regen-request-submit.working,.khs-scene-regen-request-submit:disabled{opacity:.58;cursor:wait}
@media(max-width:680px){.khs-scene-regen-cost{grid-template-columns:1fr}.khs-scene-regen-cost>div:nth-child(2){text-align:left}.khs-scene-regen-request-head{padding:25px 22px 18px}#khs-scene-regen-request-form{padding:20px 22px 24px}.khs-regen-reference-preview{grid-template-columns:1fr}.khs-regen-route-grid{grid-template-columns:1fr}.khs-scene-regen-request-actions{flex-direction:column-reverse}.khs-scene-regen-request-actions button{width:100%}}

/* v1.33 compact mutually-exclusive side accordion */
#khs-project-modal .khs-project-live-shell{padding-top:6px!important;padding-bottom:5px!important;gap:14px!important}
#khs-project-modal .khs-live-side{padding-left:12px!important}
#khs-project-modal .khs-side-summary>section,
#khs-project-modal .khs-live-side-grid>div,
#khs-project-modal .khs-project-identity-grid article{padding-top:5px!important;padding-bottom:6px!important}
#khs-project-modal .khs-side-accordion{min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-bottom:1px solid #e7ebf0!important;background:#fff!important}
#khs-project-modal .khs-side-accordion-toggle{appearance:none!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:9px!important;width:100%!important;height:34px!important;margin:0!important;padding:0 2px!important;border:0!important;background:#fff!important;color:#253247!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important}
#khs-project-modal .khs-side-accordion-toggle>span{flex:1 1 auto!important;display:block!important;margin:0!important;font-size:8px!important;line-height:1!important;letter-spacing:.65px!important;color:#6f7c8f!important;font-weight:900!important}
#khs-project-modal .khs-side-accordion-toggle>b{flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:5px!important;margin:0!important;font-size:7px!important;line-height:1!important;color:#244b8f!important;font-weight:850!important}
#khs-project-modal .khs-side-accordion-toggle>i{position:relative!important;flex:0 0 16px!important;width:16px!important;height:16px!important;margin:0!important;border:1px solid #dde3eb!important;border-radius:50%!important;background:#fff!important}
#khs-project-modal .khs-side-accordion-toggle>i:before,
#khs-project-modal .khs-side-accordion-toggle>i:after{content:""!important;position:absolute!important;left:4px!important;right:4px!important;top:7px!important;height:1px!important;background:#667085!important;transition:transform .16s ease!important}
#khs-project-modal .khs-side-accordion-toggle>i:after{transform:rotate(90deg)!important}
#khs-project-modal .khs-side-accordion.is-open>.khs-side-accordion-toggle>i:after{transform:rotate(0)!important}
#khs-project-modal .khs-side-accordion-body{display:block!important;padding:0 0 7px!important}
#khs-project-modal .khs-side-accordion.is-collapsed>.khs-side-accordion-body{display:none!important}
#khs-project-modal .khs-side-live{display:flex!important;align-items:center!important;gap:5px!important;margin:0!important;font-size:7px!important;color:#244b8f!important;letter-spacing:.6px!important}
#khs-project-modal .khs-side-live>i{width:6px!important;height:6px!important;border-radius:50%!important;background:#244b8f!important;box-shadow:0 0 0 0 rgba(36,75,143,.35)!important;animation:khsLivePulse 1.5s infinite!important}
#khs-project-modal .khs-side-status-text{display:block!important;margin:0!important;font-size:7px!important;line-height:1!important;color:#244b8f!important;letter-spacing:.2px!important}
#khs-project-modal .khs-scene-action-intro{display:block!important;padding:1px 0 4px!important}
#khs-project-modal .khs-scene-action-intro>small{display:block!important;margin:0!important;font-size:8px!important;line-height:1.4!important;color:#929baa!important}
#khs-project-modal .khs-scene-action-buttons{gap:4px!important;margin-top:3px!important}
#khs-project-modal .khs-scene-action-buttons button{min-height:43px!important;padding:6px 8px!important;gap:2px!important}
#khs-project-modal .khs-scene-action-buttons button>i{width:19px!important;height:19px!important;margin-bottom:1px!important}
@media(max-width:900px){#khs-project-modal .khs-live-side{padding-left:0!important}#khs-project-modal .khs-project-live-shell{gap:10px!important}}


/* v1.34 verified compact side accordion / vertical whitespace correction */
#khs-project-modal .khs-project-live-shell{align-items:start!important;padding-top:4px!important;padding-bottom:4px!important}
#khs-project-modal .khs-live-preview{align-self:start!important}
#khs-project-modal .khs-live-side{align-self:start!important}
#khs-project-modal .khs-side-accordion.is-collapsed>.khs-side-accordion-body{display:none!important;visibility:hidden!important;height:0!important;overflow:hidden!important;padding:0!important;margin:0!important}
#khs-project-modal .khs-side-accordion.is-open>.khs-side-accordion-body{display:block!important;visibility:visible!important;height:auto!important;overflow:visible!important}
#khs-project-modal .khs-side-accordion-toggle{min-height:32px!important;height:32px!important}
#khs-project-modal .khs-side-accordion.is-collapsed{padding-bottom:0!important}

/* v1.42 — authoritative selected-video update progress */
#khs-project-modal .khs-scene-regen-now{position:relative;display:grid;grid-template-columns:1fr auto;gap:3px 10px;padding:10px 11px;border:1px solid #cfd9e8;background:linear-gradient(135deg,#f8fbff 0%,#fff 72%);overflow:hidden}
#khs-project-modal .khs-scene-regen-now>span{grid-column:1/-1;font-size:7px;letter-spacing:.8px;color:#66809f;font-weight:900;text-transform:uppercase}
#khs-project-modal .khs-scene-regen-now>b{font-size:10px;line-height:1.4;color:#18283e;font-weight:900;word-break:keep-all}
#khs-project-modal .khs-scene-regen-now>small{grid-column:1/-1;font-size:8px;line-height:1.5;color:#6f7d90;word-break:keep-all}
#khs-project-modal .khs-scene-regen-now>div{grid-column:1/-1;height:3px;background:#e6ebf2;overflow:hidden;margin-top:3px}
#khs-project-modal .khs-scene-regen-now>div>i{display:block;height:100%;background:linear-gradient(90deg,#365b93,#173f7f);transition:width .35s ease}
#khs-project-modal .khs-scene-regen-now>em{position:absolute;right:11px;top:10px;font-size:9px;font-style:normal;color:#365b93;font-weight:900}


/* v1.45 — AD Studio-density finished gallery + output/shortcode polish */
#khs-panel-completed .khs-finished-grid{max-width:100%!important;min-height:120px!important}
#khs-panel-completed .khs-finished-card{max-width:none!important}
#khs-panel-completed .khs-finished-video-frame video{object-fit:cover!important}
.khs-public-shortcode-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;margin:18px 0 0;padding:16px 18px;border:1px solid #e1e4e8;background:#fafbfc}
.khs-public-shortcode-box>div{display:flex;min-width:0;flex-direction:column;gap:4px}.khs-public-shortcode-box span{font-size:8px;letter-spacing:1.7px;font-weight:800;color:#9198a2}.khs-public-shortcode-box b{font-size:12px;color:#172033}.khs-public-shortcode-box small{font-size:9px;line-height:1.55;color:#8a929e}.khs-public-shortcode-box code{display:block;padding:10px 12px;border:1px solid #d9dee5;background:#fff;color:#17233b;font:700 11px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:nowrap;user-select:all}
.khs-recompose-button{border-color:#17233b!important;background:#17233b!important;color:#fff!important}
@media(max-width:720px){.khs-public-shortcode-box{grid-template-columns:1fr}.khs-public-shortcode-box code{white-space:normal;overflow-wrap:anywhere}}
/* v1.45 — truthful fixed subtitle typography control */
.khs-output-style-grid-clean{grid-template-columns:minmax(0,1.5fr) minmax(180px,.5fr)!important}
.khs-output-fixed-caption{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:68px;padding:12px 14px;border:1px solid #dfe3e8;background:#fafbfc}
.khs-output-fixed-caption>span{font-size:9px;font-weight:800;color:#667085}
.khs-output-fixed-caption>b{font:500 16px/1.25 Georgia,"Times New Roman",serif;color:#18202b}
.khs-output-fixed-caption>small{font-size:9px;line-height:1.5;color:#8a929e}
@media(max-width:720px){.khs-output-style-grid-clean{grid-template-columns:1fr!important}}



/* v1.46 · premium product extra-reference uploader */
.khs-product-extra-ref{margin-top:14px;padding:12px;border:1px solid rgba(124,139,168,.22);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(248,250,254,.58));transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.khs-product-extra-ref.is-dragover{border-color:rgba(69,105,183,.58);box-shadow:0 0 0 3px rgba(69,105,183,.10);background:rgba(247,250,255,.96)}.khs-product-extra-ref.uploading{opacity:.74;pointer-events:none}.khs-product-extra-ref-drop{width:100%;min-height:76px;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;border:1px dashed rgba(110,126,158,.36);border-radius:13px!important;background:rgba(255,255,255,.66);text-align:left;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}.khs-product-extra-ref-drop:hover{border-color:rgba(72,101,164,.56);background:rgba(255,255,255,.94)}.khs-product-extra-ref-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:rgba(53,78,130,.08);font-size:24px;font-weight:300;color:#344c7c}.khs-product-extra-ref-copy{min-width:0;display:grid;gap:4px}.khs-product-extra-ref-copy b{font-size:13px;line-height:1.25;color:var(--khs-text,#182235)}.khs-product-extra-ref-copy small{font-size:11px;line-height:1.45;color:var(--khs-muted,#748095)}.khs-product-extra-ref-drop em{font-style:normal;white-space:nowrap;font-size:10px;font-weight:800;letter-spacing:.02em;padding:6px 8px;border-radius:999px;background:rgba(45,68,113,.08);color:#526581}.khs-product-extra-ref-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:0}.khs-product-extra-ref.has-items .khs-product-extra-ref-list{margin-top:10px}.khs-product-extra-ref-item{position:relative;min-width:0;overflow:hidden;border:1px solid rgba(119,132,157,.20);border-radius:12px;background:rgba(255,255,255,.82)}.khs-product-extra-ref-item>span{position:relative;display:block;aspect-ratio:1/1;background:rgba(235,239,247,.72);overflow:hidden}.khs-product-extra-ref-item img{width:100%;height:100%;display:block;object-fit:contain}.khs-product-extra-ref-item>span i{position:absolute;left:7px;bottom:7px;padding:4px 6px;border-radius:999px;background:rgba(18,28,48,.78);color:#fff;font-style:normal;font-size:8px;font-weight:800;letter-spacing:.08em}.khs-product-extra-ref-item>div{padding:8px 9px 9px;display:grid;gap:2px}.khs-product-extra-ref-item b,.khs-product-extra-ref-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.khs-product-extra-ref-item b{font-size:10px;color:var(--khs-text,#182235)}.khs-product-extra-ref-item small{font-size:9px;color:var(--khs-muted,#748095)}.khs-product-extra-ref-item>[data-extra-ref-remove]{position:absolute;top:6px;right:6px;width:24px;height:24px;border:0;border-radius:50%!important;background:rgba(17,25,39,.76);color:#fff;font-size:17px;line-height:1;cursor:pointer}.khs-product-extra-ref-item>[data-extra-ref-remove]:hover{background:rgba(17,25,39,.92)}
@media(max-width:760px){.khs-product-extra-ref-drop{grid-template-columns:40px minmax(0,1fr);}.khs-product-extra-ref-drop em{grid-column:2;justify-self:start}.khs-product-extra-ref-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v1.52 persistent current-task status */
#khs-project-modal .khs-current-task{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px 10px!important;align-items:center!important;margin:9px 0 7px!important;padding:10px 11px 11px!important;border:1px solid #dce3ec!important;background:linear-gradient(180deg,#fbfcff 0%,#f4f7fb 100%)!important;box-shadow:0 8px 20px rgba(22,35,59,.055)!important}
#khs-project-modal .khs-current-task>div{min-width:0!important}#khs-project-modal .khs-current-task>div>span{margin:0 0 4px!important;font-size:7.5px!important;letter-spacing:1.1px!important;color:#7f8ba0!important;font-weight:900!important}#khs-project-modal .khs-current-task>div>b{display:block!important;font-size:10.5px!important;line-height:1.42!important;color:#19243a!important;font-weight:800!important;white-space:normal!important;word-break:keep-all!important}#khs-project-modal .khs-current-task>strong{font-size:13px!important;color:#24334f!important;font-variant-numeric:tabular-nums!important}#khs-project-modal .khs-current-task>em{grid-column:1/-1!important;display:block!important;height:3px!important;background:#e4e9f0!important;overflow:hidden!important;border-radius:999px!important}#khs-project-modal .khs-current-task>em>i{display:block!important;height:100%!important;background:linear-gradient(90deg,#6f7f9f,#263d68)!important;transition:width .45s ease!important}#khs-project-modal .khs-current-task.terminal>em>i{background:#8e98a8!important}@media(max-width:900px){#khs-project-modal .khs-current-task{margin:8px 10px!important}#khs-project-modal .khs-current-task>div>b{font-size:12px!important}}

/* v1.53 commercial voice controls */
.khs-host-voice-stack{gap:8px}.khs-host-voice-picker{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:stretch;border:1px solid #e3e4e7;background:#fafafa}.khs-host-voice-picker.is-hidden{display:none!important}.khs-host-voice-label{display:flex;align-items:center;justify-content:center;border-right:1px solid #e3e4e7;font-size:8px;font-weight:900;letter-spacing:.7px;color:#62656a;background:#f5f5f6}.khs-host-voice-picker .khs-voice-current{border:0!important;min-height:62px}.khs-voice-emotion{margin-top:4px}.khs-voice-emotion select{min-height:44px}.khs-voice-emotion small{display:block;margin-top:6px;color:#8b8e93;font-size:9px;line-height:1.55}@media(max-width:760px){.khs-host-voice-picker{grid-template-columns:52px minmax(0,1fr)}}


/* v1.53 visual studio picker */
.khs-picker[data-picker="studio"]>select[name="studio_asset_id"]{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.khs-studio-thumb-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:1px 0 8px;padding:6px;border:1px solid #e6e7e9;background:#f7f8fa;max-height:216px;overflow:auto}
.khs-studio-thumb{appearance:none;border:1px solid #e0e2e5!important;background:#fff!important;padding:2px!important;aspect-ratio:16/9;overflow:hidden;cursor:pointer;position:relative;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.khs-studio-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.khs-studio-thumb:hover{border-color:#9ba2ab!important;transform:translateY(-1px)}
.khs-studio-thumb.is-selected{border-color:#111827!important;box-shadow:0 0 0 1px #111827 inset}
.khs-studio-thumb.is-selected:after{content:'✓';position:absolute;right:4px;top:4px;width:18px;height:18px;display:flex;align-items:center;justify-content:center;background:#111827;color:#fff;font-size:9px;border-radius:50%}
@media(max-width:800px){.khs-studio-thumb-picker{grid-template-columns:repeat(3,minmax(0,1fr));}}


/* v1.56 — align project preview / playback UI with KMETA AD Studio Pro */
.khs-project-live-shell{display:grid;grid-template-columns:minmax(0,1.2fr) 280px;gap:16px;padding:18px 34px 10px;background:#fff}
.khs-live-preview{border:1px solid #e1e3e6;background:#fafafb;padding:14px;display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:center;min-height:236px}
.khs-live-preview-media{height:180px;border:1px solid #e1e2e5;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.khs-live-preview-media img{display:block;width:100%;height:100%;object-fit:cover}
.khs-live-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:radial-gradient(circle at center,#ffffff 0%,#f2f3f5 100%)}
.khs-live-placeholder i{font:400 42px Georgia,serif;color:#9fa2a8}
.khs-live-placeholder span{font-size:10px;color:#7c7f85;font-weight:750;letter-spacing:.3px}
.khs-live-preview-copy{display:flex;flex-direction:column;gap:8px;min-width:0}
.khs-live-preview-copy span{font-size:10px;letter-spacing:1.8px;color:#8d9096;font-weight:850}
.khs-live-preview-copy b{font:400 30px/1.08 Georgia,"Times New Roman",serif;letter-spacing:-.8px;color:#16171a}
.khs-live-preview-copy small{font-size:11px;line-height:1.8;color:#72757b}
.khs-live-side{align-self:stretch!important;display:flex!important;flex-direction:column!important;border-left:1px solid #dfe4ea!important;padding-left:16px!important;background:#fff!important}
#khs-project-modal .khs-live-side span{display:block!important;margin:0 0 4px!important;font-size:7.5px!important;line-height:1.2!important;letter-spacing:.55px!important;color:#9099a6!important;font-weight:850!important}
#khs-project-modal .khs-side-summary{display:grid!important;grid-template-columns:1fr 1fr!important;border-bottom:1px solid #e7ebf0!important}
#khs-project-modal .khs-side-summary>section{min-width:0!important;padding:7px 10px 8px 0!important;border:0!important;background:transparent!important}
#khs-project-modal .khs-side-summary>section+section{padding-left:12px!important;border-left:1px solid #e7ebf0!important}
#khs-project-modal .khs-side-summary strong,#khs-project-modal .khs-side-summary b{font-size:18px!important;color:#101114!important}
#khs-project-modal .khs-side-summary i{font-style:normal!important;color:#667085!important;font-size:11px!important}
#khs-project-modal .khs-live-side-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0!important;border-bottom:1px solid #e7ebf0!important;padding:8px 0!important}
#khs-project-modal .khs-live-side-grid>div{padding:0 10px 0 0!important}
#khs-project-modal .khs-live-side-grid>div+div{padding-left:12px!important;border-left:1px solid #e7ebf0!important}
#khs-project-modal .khs-live-side-grid b{display:block!important;font-size:12px!important;color:#111827!important;line-height:1.45!important}
.khs-scene-board{padding:8px 34px 28px;background:#fff}
.khs-scene-board-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;border-top:1px solid #ebecf0;padding-top:16px;margin-bottom:10px}
.khs-scene-board-head b{font-size:13px;color:#151619}
.khs-scene-board-head small{font-size:10px;color:#8a8d93}
.khs-scene-list{padding:0!important;border:1px solid #e4e5e8;background:#fff}
.khs-scene{padding:12px 14px!important;border-bottom:1px solid #eceef1!important;transition:.18s ease}
.khs-scene:last-child{border-bottom:0!important}
.khs-scene.active{background:#fafafb;box-shadow:inset 2px 0 0 #111}
.khs-scene>span{width:68px!important;height:52px!important;border:1px solid #e1e2e5;background:#f3f4f5}
.khs-scene div b{font-size:12px!important;color:#151619}
.khs-scene div small{font-size:10px!important;color:#8b8d92}
.khs-scene em{font-size:9px!important;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#8a8d92}
#khs-project-modal .khs-live-video-frame{position:relative!important;display:block!important;width:100%!important;height:100%!important;overflow:hidden!important;background:#090a0c!important;cursor:pointer!important}
#khs-project-modal .khs-live-video-frame video{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;background:#090a0c!important;pointer-events:none!important}
#khs-project-modal .khs-live-video-frame video::-webkit-media-controls{display:none!important}
#khs-project-modal .khs-live-preview-progress{position:absolute!important;z-index:8!important;left:0!important;right:0!important;bottom:0!important;height:1px!important;margin:0!important;padding:0!important;background:rgba(255,255,255,.20)!important;opacity:0!important;pointer-events:none!important;transition:opacity .12s ease!important}
#khs-project-modal .khs-live-preview-progress i{display:block!important;width:0;height:1px!important;margin:0!important;padding:0!important;background:#fff!important;transition:none!important}
#khs-project-modal .khs-live-video-frame.is-playing .khs-live-preview-progress{opacity:.92!important}
#khs-project-modal .khs-live-video-frame:focus-visible{outline:1px solid rgba(255,255,255,.76)!important;outline-offset:-1px!important}
#khs-project-modal .khs-studio-hover-player,#khs-panel-completed .khs-finished-video-frame,#khs-project-modal .khs-complete-video-frame{position:relative!important;display:block!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:#090a0c!important;cursor:pointer!important;isolation:isolate!important}
#khs-project-modal .khs-studio-hover-player>video,#khs-panel-completed .khs-finished-video-frame>video,#khs-project-modal .khs-complete-video-frame>video{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:cover!important;object-position:center!important;background:#090a0c!important;pointer-events:none!important;box-shadow:none!important}
#khs-project-modal .khs-studio-hover-player>video::-webkit-media-controls,#khs-project-modal .khs-complete-video-frame>video::-webkit-media-controls,#khs-panel-completed .khs-finished-video-frame>video::-webkit-media-controls{display:none!important}
#khs-project-modal .khs-studio-video-shade,#khs-panel-completed .khs-studio-video-shade{position:absolute!important;inset:0!important;z-index:2!important;margin:0!important;padding:0!important;background:transparent!important;opacity:0!important;pointer-events:none!important;transition:none!important}
#khs-project-modal .khs-studio-video-play,#khs-panel-completed .khs-studio-video-play{display:none!important}
#khs-project-modal .khs-studio-video-progress,#khs-panel-completed .khs-finished-progress,#khs-project-modal .khs-complete-video-progress{position:absolute!important;z-index:9!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:1px!important;margin:0!important;padding:0!important;border:0!important;background:rgba(255,255,255,.22)!important;opacity:.42!important;pointer-events:none!important;overflow:hidden!important}
#khs-project-modal .khs-studio-video-progress i,#khs-panel-completed .khs-finished-progress i,#khs-project-modal .khs-complete-video-progress i{display:block!important;width:0!important;height:1px!important;margin:0!important;padding:0!important;background:#fff!important;transition:none!important}
.khs-complete{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:18px;padding:0 34px 28px;background:#fff}
.khs-complete-video{min-width:0}
.khs-complete-video.ratio-16-9 .khs-complete-video-frame{aspect-ratio:16/9}
.khs-complete-video.ratio-1-1 .khs-complete-video-frame{aspect-ratio:1/1}
.khs-complete-video.ratio-9-16 .khs-complete-video-frame{aspect-ratio:9/16;max-width:300px;margin:0 auto}
.khs-complete-copy{border:1px solid #e4e7ec;background:#fafbfc;padding:18px 18px 16px;display:flex;flex-direction:column;justify-content:center;gap:14px}
.khs-complete-copy>b{font:400 28px/1.12 Georgia,"Times New Roman",serif;letter-spacing:-.6px;color:#111827}
.khs-complete-copy>div{display:flex;flex-wrap:wrap;gap:10px}
.khs-complete-copy>div>a,.khs-complete-copy>div>button{height:38px;padding:0 14px;border:1px solid #d0d5dd;border-radius:0;background:#fff;color:#111827!important;text-decoration:none!important;font-size:11px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.khs-complete-copy>div>a{background:#111!important;color:#fff!important;border-color:#111!important}
.khs-recompose-note{display:block;font-size:10px;line-height:1.7;color:#667085}
.khs-finished-viewer{position:fixed;inset:0;z-index:999999;background:rgba(8,10,15,.78);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;padding:4vh 4vw;opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease}
.khs-finished-viewer.open{opacity:1;visibility:visible}.khs-finished-viewer-shell{position:relative;max-width:min(1120px,88vw);max-height:90vh;background:#08090b;box-shadow:0 28px 90px rgba(0,0,0,.34);overflow:hidden;border-radius:14px}
.khs-finished-viewer video{display:block;max-width:88vw;max-height:84vh;width:auto;height:auto;background:#050505;cursor:pointer}
.khs-finished-viewer-close{position:absolute;top:10px;right:10px;z-index:5;width:34px;height:34px;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(0,0,0,.38);color:#fff;font-size:20px;line-height:1;cursor:pointer;backdrop-filter:blur(8px)}
.khs-finished-viewer-info{position:absolute;left:0;right:0;bottom:0;padding:28px 16px 13px;background:linear-gradient(transparent,rgba(0,0,0,.68));color:#fff;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;pointer-events:none}.khs-finished-viewer-info b{display:block;font-size:13px}.khs-finished-viewer-info em{font-style:normal;font-size:10px}
#khs-panel-completed .khs-finished-grid{position:relative!important;display:block!important;width:100%!important;min-height:120px!important;height:auto;margin:0!important;padding:0!important;border:0!important;background:#fff!important;overflow:visible!important;line-height:normal!important;column-count:auto!important;column-width:auto!important;column-gap:normal!important}
#khs-panel-completed .khs-finished-card{position:absolute!important;display:block!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#090a0c!important;overflow:hidden!important;line-height:normal!important;box-shadow:none!important;break-inside:auto!important;vertical-align:top!important}
#khs-panel-completed .khs-finished-video-frame{position:relative!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:#090a0c!important;cursor:pointer!important}
#khs-panel-completed .khs-finished-card.ratio-16-9 .khs-finished-video-frame,#khs-panel-completed .khs-finished-card.ratio-9-16 .khs-finished-video-frame,#khs-panel-completed .khs-finished-card.ratio-1-1 .khs-finished-video-frame{aspect-ratio:auto!important}
#khs-panel-completed .khs-finished-video-frame>video{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;background:#090a0c!important;pointer-events:none!important}
#khs-panel-completed .khs-finished-shade{position:absolute!important;inset:0!important;background:linear-gradient(180deg,rgba(7,10,14,.06) 0%,rgba(7,10,14,.10) 42%,rgba(7,10,14,.46) 100%)!important;opacity:1!important;pointer-events:none!important}
#khs-panel-completed .khs-finished-overlay-copy{position:absolute!important;left:0!important;right:0!important;bottom:0!important;z-index:5!important;padding:34px 14px 14px!important;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.60) 72%,rgba(0,0,0,.78) 100%)!important;color:#fff!important;display:block!important}
#khs-panel-completed .khs-finished-overlay-copy b{display:block!important;font-size:12px!important;line-height:1.35!important;color:#fff!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#khs-panel-completed .khs-finished-overlay-copy small{display:block!important;margin-top:3px!important;font-size:9px!important;letter-spacing:.35px!important;color:rgba(255,255,255,.86)!important}
#khs-panel-completed .khs-finished-public-state,#khs-panel-completed .khs-finished-duration{position:absolute!important;top:12px!important;z-index:6!important;display:inline-flex!important;align-items:center!important;height:22px!important;padding:0 8px!important;background:rgba(12,16,22,.72)!important;border:1px solid rgba(255,255,255,.12)!important;color:#fff!important;font-size:9px!important;font-weight:800!important;letter-spacing:.3px!important;backdrop-filter:blur(8px)!important}
#khs-panel-completed .khs-finished-public-state{left:12px!important}
#khs-panel-completed .khs-finished-public-state.is-public{background:rgba(255,255,255,.94)!important;color:#0f172a!important;border-color:rgba(255,255,255,.94)!important}
#khs-panel-completed .khs-finished-duration{right:12px!important}
#khs-panel-completed .khs-finished-menu-toggle{position:absolute!important;top:12px!important;right:12px!important;z-index:7!important;width:28px!important;height:28px!important;border:1px solid rgba(255,255,255,.14)!important;background:rgba(12,16,22,.68)!important;color:#fff!important;font-size:18px!important;line-height:1!important;display:flex!important;align-items:center!important;justify-content:center!important;opacity:0!important;transition:opacity .16s ease!important;backdrop-filter:blur(8px)!important}
#khs-panel-completed .khs-finished-card:hover .khs-finished-menu-toggle{opacity:1!important}
#khs-panel-completed .khs-finished-card.ratio-9-16 .khs-finished-menu-toggle,#khs-panel-completed .khs-finished-card.ratio-1-1 .khs-finished-menu-toggle{right:12px!important}
#khs-panel-completed .khs-finished-card.ratio-9-16 .khs-finished-duration,#khs-panel-completed .khs-finished-card.ratio-1-1 .khs-finished-duration{right:46px!important}
#khs-panel-completed .khs-finished-menu{position:absolute!important;top:46px!important;right:12px!important;z-index:8!important;min-width:210px!important;border:1px solid rgba(16,24,40,.14)!important;background:#fff!important;box-shadow:0 18px 40px rgba(15,23,42,.18)!important;padding:8px!important;display:none!important;gap:6px!important}
#khs-panel-completed .khs-finished-menu.open{display:grid!important}
#khs-panel-completed .khs-finished-menu a,#khs-panel-completed .khs-finished-menu button{width:100%!important;min-height:34px!important;padding:0 12px!important;border:1px solid rgba(16,24,40,.12)!important;background:#fff!important;color:#101828!important;font-size:11px!important;font-weight:700!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;text-decoration:none!important;cursor:pointer!important}
#khs-panel-completed .khs-finished-menu a:hover,#khs-panel-completed .khs-finished-menu button:hover{border-color:#101828!important}
@media(max-width:1050px){.khs-project-live-shell,.khs-complete{grid-template-columns:1fr}.khs-live-preview{grid-template-columns:1fr}.khs-live-preview-media{height:220px}.khs-complete-video.ratio-9-16 .khs-complete-video-frame{max-width:240px}}
@media(max-width:760px){.khs-finished-viewer{padding:3vh 10px}.khs-finished-viewer-shell{max-width:96vw}.khs-finished-viewer video{max-width:96vw;max-height:82vh}#khs-panel-completed .khs-finished-menu-toggle{opacity:1!important}}


/* v1.62 — completed-project re-render button text contrast lock */
#khs-project-modal .khs-complete-copy>div>button.khs-recompose-button,
#khs-project-modal .khs-complete-copy>div>button.khs-recompose-button:hover,
#khs-project-modal .khs-complete-copy>div>button.khs-recompose-button:focus,
#khs-project-modal .khs-complete-copy>div>button.khs-recompose-button:active,
#khs-project-modal .khs-complete-copy>div>button.khs-recompose-button.working,
#khs-project-modal .khs-complete-copy>div>button.khs-recompose-button:disabled{
  border-color:#17233b!important;
  background:#17233b!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-shadow:none!important;
}


/* v1.63 production placeholder motion — subtle premium broadcast activity */
.khs-live-placeholder.active-stage svg,.khs-live-placeholder.active-stage>i,.khs-live-placeholder.active-stage .khs-stage-icon{transform-origin:50% 50%;animation:khsStageIconFloat 1.55s ease-in-out infinite}
.khs-live-placeholder.active-stage svg path,.khs-live-placeholder.active-stage svg polyline,.khs-live-placeholder.active-stage svg rect{animation:khsStageIconPulse 1.55s ease-in-out infinite}
.khs-live-placeholder.active-stage:after{content:"";width:84px;height:2px;margin-top:12px;background:linear-gradient(90deg,transparent,currentColor,transparent);opacity:.2;animation:khsStageScan 1.35s ease-in-out infinite}
@keyframes khsStageIconFloat{0%,100%{transform:translateY(0) scale(1);opacity:.78}50%{transform:translateY(-6px) scale(1.045);opacity:1}}
@keyframes khsStageIconPulse{0%,100%{opacity:.62}50%{opacity:1}}
@keyframes khsStageScan{0%{transform:scaleX(.22);opacity:.08}50%{transform:scaleX(1);opacity:.28}100%{transform:scaleX(.22);opacity:.08}}
@media (prefers-reduced-motion:reduce){.khs-live-placeholder.active-stage svg,.khs-live-placeholder.active-stage>i,.khs-live-placeholder.active-stage .khs-stage-icon,.khs-live-placeholder.active-stage svg path,.khs-live-placeholder.active-stage svg polyline,.khs-live-placeholder.active-stage svg rect,.khs-live-placeholder.active-stage:after{animation:none!important}}


/* v1.63 — ultra-thin animated final render progress */
#khs-project-modal .khs-render-runtime-track{height:1px!important;margin-top:7px!important;background:rgba(36,75,143,.12)!important;overflow:hidden!important;position:relative!important}
#khs-project-modal .khs-render-runtime-track>i{display:block!important;height:1px!important;background:#244b8f!important;transition:width .3s linear!important;position:relative!important;overflow:visible!important}
#khs-project-modal .khs-render-runtime.encoding .khs-render-runtime-track>i::after,
#khs-project-modal .khs-render-runtime.starting .khs-render-runtime-track>i::after,
#khs-project-modal .khs-render-runtime.finalizing .khs-render-runtime-track>i::after{content:"";position:absolute;left:0;top:0;height:1px;width:40px;max-width:38%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.95),transparent);animation:khsRenderGlide 1.2s ease-in-out infinite}
#khs-project-modal .khs-render-runtime.completed .khs-render-runtime-track>i::after{display:none!important}
@keyframes khsRenderGlide{0%{transform:translateX(-40px)}50%{transform:translateX(calc(100% - 10px))}100%{transform:translateX(-40px)}}

/* v1.64 — premium clip-choice UI, wide workstation and ultra-thin scrubbing */
.khs-regen-choice-field{display:grid;gap:8px;padding:12px 13px;border:1px solid #e1e5eb;background:#fafbfd}
.khs-regen-choice-field>span{font-size:10px;font-weight:850;color:#263246;letter-spacing:.15px}
.khs-regen-choice-field>small{font-size:8.5px;line-height:1.45;color:#8a94a2}
.khs-regen-thumb-grid{display:flex;align-items:center;gap:10px;min-height:96px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin}
.khs-regen-thumb-choice{position:relative;flex:0 0 86px;width:86px;height:96px;margin:0;padding:3px;border:1px solid #dce1e8!important;border-radius:14px!important;background:#fff!important;overflow:hidden;cursor:pointer;box-shadow:none!important;transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease}
.khs-regen-thumb-choice:hover{transform:translateY(-1px);border-color:#8896aa!important}
.khs-regen-thumb-choice img{display:block;width:100%;height:100%;object-fit:cover;border-radius:10px;background:#eef1f5}
.khs-regen-product-choice img{object-fit:contain;background:#f6f7f9}
.khs-regen-thumb-choice>i{position:absolute;right:7px;bottom:7px;width:18px;height:18px;border:1px solid rgba(255,255,255,.92);border-radius:50%;background:rgba(22,31,47,.48);box-shadow:0 1px 4px rgba(0,0,0,.12)}
.khs-regen-thumb-choice.selected{border-color:#1d3356!important;box-shadow:0 0 0 1px #1d3356!important}
.khs-regen-thumb-choice.selected>i{background:#1d3356}
.khs-regen-thumb-choice.selected>i:after{content:"";position:absolute;left:4px;top:4px;width:7px;height:4px;border-left:1.8px solid #fff;border-bottom:1.8px solid #fff;transform:rotate(-45deg)}
.khs-regen-emotion-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.khs-regen-emotion-choice{min-width:0;min-height:64px;padding:7px 4px 6px!important;border:1px solid #dfe4ea!important;border-radius:9px!important;background:#fff!important;color:#5f6b7c!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;box-shadow:none!important;transition:border-color .14s ease,background .14s ease,transform .14s ease}
.khs-regen-emotion-choice:hover{transform:translateY(-1px);border-color:#9aa6b6!important}
.khs-regen-emotion-choice svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.khs-regen-emotion-choice span{font-size:8px;font-weight:800;color:inherit}
.khs-regen-emotion-choice.selected{border-color:#1d3356!important;background:#f3f6fa!important;color:#1d3356!important;box-shadow:0 0 0 1px #1d3356!important}
.khs-regen-reference-thumb{border-radius:7px!important;overflow:hidden!important}

/* One-pixel visual seek line with a comfortable invisible hit target. */
#khs-project-modal .khs-studio-video-progress,#khs-panel-completed .khs-finished-progress,#khs-project-modal .khs-complete-video-progress,.khs-finished-viewer-progress{position:absolute!important;z-index:15!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:12px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;opacity:.18!important;pointer-events:auto!important;cursor:ew-resize!important;overflow:visible!important;touch-action:none!important;transition:opacity .12s ease!important}
#khs-project-modal .khs-studio-video-progress:before,#khs-panel-completed .khs-finished-progress:before,#khs-project-modal .khs-complete-video-progress:before,.khs-finished-viewer-progress:before{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(255,255,255,.34)}
#khs-project-modal .khs-studio-video-progress>i,#khs-panel-completed .khs-finished-progress>i,#khs-project-modal .khs-complete-video-progress>i,.khs-finished-viewer-progress>i{position:absolute!important;left:0!important;bottom:0!important;top:auto!important;display:block!important;height:1px!important;background:#fff!important;transition:none!important;pointer-events:none!important}
#khs-project-modal .khs-studio-hover-player:hover .khs-studio-video-progress,#khs-panel-completed .khs-finished-card:hover .khs-finished-progress,#khs-project-modal .khs-complete-video-frame:hover .khs-complete-video-progress,.khs-finished-viewer:hover .khs-finished-viewer-progress{opacity:.95!important}
@media(max-width:680px){.khs-regen-emotion-grid{grid-template-columns:repeat(5,minmax(52px,1fr));overflow-x:auto}.khs-regen-emotion-choice{min-height:58px}.khs-regen-thumb-choice{flex-basis:68px;width:68px;height:78px}}

/* v1.68 — balanced finished-output composition + low-emphasis destructive actions. */
#khs-project-modal .khs-complete{
  border:1px solid #e5e7eb!important;
  background:#fff!important;
}
#khs-project-modal .khs-complete-copy{
  border:0!important;
  background:#fff!important;
  box-shadow:none!important;
}
#khs-project-modal .khs-project-delete-zone{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  padding-top:10px!important;
  border-top:1px solid #eceef1!important;
}
#khs-project-modal .khs-project-delete-zone button{
  min-height:0!important;
  height:auto!important;
  padding:2px 0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:9px!important;
  line-height:1.35!important;
  font-weight:600!important;
  text-decoration:none!important;
  color:#a65353!important;
}
#khs-project-modal .khs-project-delete-zone .khs-output-delete-link{
  color:#8f6a6a!important;
}
#khs-project-modal .khs-project-delete-zone .khs-delete-separator{
  display:inline-block!important;
  color:#d6d9de!important;
  font-size:9px!important;
  line-height:1!important;
  user-select:none!important;
}
#khs-project-modal .khs-project-delete-zone button:hover,
#khs-project-modal .khs-project-delete-zone button:focus{
  color:#8d2f2f!important;
  text-decoration:underline!important;
  text-underline-offset:3px!important;
}

@media(min-width:1101px){
  #khs-project-modal .khs-complete{
    grid-template-columns:minmax(0,1.5fr) minmax(360px,.82fr)!important;
    gap:26px!important;
    align-items:center!important;
    padding:20px 26px!important;
  }
  #khs-project-modal .khs-complete-video,
  #khs-project-modal .khs-complete-video.ratio-16-9,
  #khs-project-modal .khs-complete-video.ratio-9-16,
  #khs-project-modal .khs-complete-video.ratio-1-1{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    min-height:clamp(270px,31vh,340px)!important;
    justify-self:stretch!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#fff!important;
  }
  #khs-project-modal .khs-complete-video.ratio-9-16 .khs-complete-video-frame{
    flex:0 0 auto!important;
    width:auto!important;
    height:clamp(270px,31vh,340px)!important;
    max-width:100%!important;
    aspect-ratio:9/16!important;
    margin:0 auto!important;
    background:transparent!important;
  }
  #khs-project-modal .khs-complete-video.ratio-1-1 .khs-complete-video-frame{
    flex:0 0 auto!important;
    width:auto!important;
    height:clamp(270px,31vh,340px)!important;
    max-width:100%!important;
    aspect-ratio:1/1!important;
    margin:0 auto!important;
    background:transparent!important;
  }
  #khs-project-modal .khs-complete-video.ratio-16-9 .khs-complete-video-frame{
    flex:0 1 760px!important;
    width:min(100%,760px)!important;
    height:auto!important;
    max-width:100%!important;
    aspect-ratio:16/9!important;
    margin:0 auto!important;
    background:transparent!important;
  }
  #khs-project-modal .khs-complete-video-frame>video{
    background:transparent!important;
  }
  #khs-project-modal .khs-complete-copy{
    align-self:center!important;
    justify-self:stretch!important;
    padding:18px 8px!important;
    gap:14px!important;
  }
  #khs-project-modal .khs-complete-copy>b{
    font-size:26px!important;
    line-height:1.18!important;
  }
}

@media(max-width:1100px){
  #khs-project-modal .khs-complete-video.ratio-9-16,
  #khs-project-modal .khs-complete-video.ratio-1-1{
    width:100%!important;
    display:flex!important;
    justify-content:center!important;
    background:#fff!important;
  }
  #khs-project-modal .khs-complete-video.ratio-9-16 .khs-complete-video-frame{
    width:auto!important;
    height:min(50vh,360px)!important;
    aspect-ratio:9/16!important;
    margin:0 auto!important;
  }
  #khs-project-modal .khs-complete-video.ratio-1-1 .khs-complete-video-frame{
    width:min(100%,360px)!important;
    height:auto!important;
    aspect-ratio:1/1!important;
    margin:0 auto!important;
  }
}

/* v1.69 — immutable voice identity + clip voice collection */
.khs-voice-modal{z-index:1000004!important}
.khs-voice-card.selected{border-color:#16845a!important;box-shadow:inset 0 0 0 1px #16845a!important;z-index:2!important}
.khs-voice-card.selected:before{color:#16845a!important}
.khs-voice-card.selected .khs-voice-select{background:#16845a!important;border-color:#16845a!important;color:#fff!important}
.khs-voice-card.selected .khs-voice-select:hover,.khs-voice-card.selected .khs-voice-select:focus{background:#116d49!important;border-color:#116d49!important;color:#fff!important}
.khs-regen-voice-picker{display:grid!important;gap:7px!important}
.khs-regen-voice-current{appearance:none!important;-webkit-appearance:none!important;width:100%!important;min-height:66px!important;margin:0!important;padding:11px 14px!important;border:1px solid #cfd6df!important;border-radius:0!important;background:#fff!important;color:#18202b!important;box-shadow:none!important;outline:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;text-align:left!important;cursor:pointer!important}
.khs-regen-voice-current:hover,.khs-regen-voice-current:focus-visible{border-color:#16845a!important;box-shadow:0 0 0 2px rgba(22,132,90,.08)!important;outline:0!important}
.khs-regen-voice-current>.khs-regen-voice-host-photo{display:block!important;flex:0 0 46px!important;width:46px!important;height:52px!important;overflow:hidden!important;background:#eef2f6!important;border:1px solid #dde3ea!important}
.khs-regen-voice-current>.khs-regen-voice-host-photo[hidden]{display:none!important}
.khs-regen-voice-current>.khs-regen-voice-host-photo img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
.khs-regen-voice-current>.khs-regen-voice-copy{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;gap:4px!important;min-width:0!important}
.khs-regen-voice-current b{font:600 13px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;color:#15201b!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.khs-regen-voice-current small{font-size:9px!important;line-height:1.4!important;color:#7d8792!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.khs-regen-voice-current em{font-style:normal!important;font-size:9px!important;font-weight:850!important;color:#16845a!important;border-left:1px solid #e2e6eb!important;padding-left:14px!important;white-space:nowrap!important}
.khs-regen-voice-picker>[data-regen-current-voice]{color:#697586!important}
@media(max-width:680px){.khs-regen-voice-current{min-height:62px!important}.khs-regen-voice-current em{padding-left:10px!important}}

/* v1.71 — clip voice fidelity + live image swap during regeneration */

/* v1.75 — commercial customer-safe clip update status */
.khs-scene-status-compact{border:0!important;background:transparent!important;padding:0!important;margin:0!important}
.khs-scene-compact-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:12px 14px;border:1px solid rgba(124,139,168,.22);border-radius:12px;background:linear-gradient(180deg,#fff,#fafbfd)}
.khs-scene-compact-progress>span{display:flex;align-items:center;gap:8px;min-width:0}
.khs-scene-compact-progress>span>i{width:7px;height:7px;border-radius:50%;background:#178a58;box-shadow:0 0 0 4px rgba(23,138,88,.08);flex:0 0 auto}
.khs-scene-compact-progress>span>b{font-size:11px;color:#273248;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.khs-scene-compact-progress>strong{font-size:10px;color:#6f7a8e}
.khs-scene-compact-progress>em{grid-column:1/-1;display:block;height:2px;background:#e8ebf0;overflow:hidden;border-radius:999px}
.khs-scene-compact-progress>em>i{display:block;height:100%;background:#263a5b;border-radius:999px}
#khs-live-preview-meta.khs-inline-ok{color:#167b4c!important;font-weight:700}
#khs-live-preview-meta.khs-inline-warn{color:#7b5d22!important;font-weight:700}
.khs-failed-clean{border:1px solid #e2e5ea!important;background:#fbfcfd!important;color:#273248!important}
.khs-failed-clean b{color:#273248!important}.khs-failed-clean span{color:#7b8494!important}

/* v1.76 — canonical commercial workstation + simplified clip editor */
#khs-project-modal .khs-project-live-shell{align-items:start!important;gap:12px!important;padding-top:5px!important;padding-bottom:5px!important}
#khs-project-modal .khs-live-side{align-self:start!important;min-height:0!important;height:auto!important;overflow:visible!important}
#khs-project-modal .khs-side-summary{border-bottom:1px solid #e6e9ee!important}
#khs-project-modal .khs-side-summary>section{padding-top:6px!important;padding-bottom:7px!important}
#khs-project-modal .khs-side-summary>section>b{font-size:9px!important;line-height:1.35!important;color:#6f7887!important;margin-top:2px!important}
#khs-project-modal .khs-current-task{margin:6px 0!important;padding:7px 9px 8px!important;border:1px solid #e1e5eb!important;background:#fafbfd!important;box-shadow:none!important;gap:5px 8px!important}
#khs-project-modal .khs-current-task>div>b{font-size:9.5px!important;line-height:1.2!important;color:#253044!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#khs-project-modal .khs-current-task>strong{font-size:10px!important;color:#6d7787!important}
#khs-project-modal .khs-current-task>em{height:2px!important;border-radius:0!important;background:#e8ebef!important}
#khs-project-modal .khs-current-task>em>i{background:#244b8f!important}
#khs-project-modal .khs-project-identity-grid,#khs-project-modal .khs-live-side-grid{display:none!important}

#khs-project-modal .khs-side-accordion{border-bottom:0!important}
#khs-project-modal .khs-side-accordion-toggle{height:30px!important;border-top:1px solid #e7ebf0!important;padding:0!important}
#khs-project-modal .khs-side-accordion-toggle>span{font-size:8px!important;letter-spacing:.45px!important;color:#5f6b7b!important}
#khs-project-modal .khs-side-accordion-toggle>i{width:15px!important;height:15px!important;flex-basis:15px!important}
#khs-project-modal .khs-side-accordion-body{padding:6px 0 0!important}
#khs-project-modal .khs-scene-action-intro{margin:0 0 5px!important;padding:0!important}
#khs-project-modal .khs-scene-action-intro small{font-size:8px!important;color:#8a93a0!important}
#khs-project-modal .khs-scene-action-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;margin:0!important}
#khs-project-modal .khs-scene-action-buttons button{min-width:0!important;min-height:42px!important;margin:0!important;padding:6px 7px!important;border:1px solid #dce2e9!important;background:#fff!important;color:#273248!important;box-shadow:none!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;text-align:left!important;cursor:pointer!important}
#khs-project-modal .khs-scene-action-buttons button:hover{border-color:#6f83a4!important;background:#f7f9fc!important}
#khs-project-modal .khs-scene-action-buttons button:disabled{opacity:.45!important;cursor:not-allowed!important}
#khs-project-modal .khs-scene-action-buttons button>i{flex:0 0 23px!important;width:23px!important;height:23px!important;margin:0!important;border:1px solid #d8dee7!important;background:#f7f9fb!important;color:#31507f!important;display:grid!important;place-items:center!important;font-style:normal!important;font-size:8px!important;font-weight:900!important}
#khs-project-modal .khs-scene-action-buttons button>b{min-width:0!important;font-size:9px!important;line-height:1.2!important;color:#253044!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#khs-project-modal .khs-scene-action-buttons button>small{display:none!important}
#khs-project-modal .khs-scene-action-buttons .khs-scene-restore-compact{grid-column:1/-1!important;min-height:31px!important;background:#fafbfc!important}
#khs-project-modal .khs-scene-action-buttons .khs-scene-restore-compact>i{height:19px!important;width:19px!important;flex-basis:19px!important;border:0!important;background:transparent!important}

#khs-project-modal .khs-scene-actions-status{padding:5px 0!important}
#khs-project-modal .khs-scene-compact-progress{padding:8px 9px!important;border-radius:0!important;box-shadow:none!important}
#khs-project-modal .khs-scene-compact-progress>span>b{font-size:9px!important}

@media(min-width:1101px){
  #khs-project-modal{padding:7px!important}
  #khs-project-modal .khs-project-modal-card{width:min(1680px,calc(100vw - 14px))!important;max-height:calc(100vh - 14px)!important}
  #khs-project-modal .khs-project-live-shell{grid-template-columns:minmax(0,1fr) 292px!important;padding:6px 18px 4px!important}
  #khs-project-modal .khs-live-preview,#khs-project-modal .khs-live-preview.ratio-16-9,#khs-project-modal .khs-live-preview.ratio-9-16,#khs-project-modal .khs-live-preview.ratio-1-1{width:100%!important;max-width:none!important;min-height:0!important;align-self:start!important;justify-self:stretch!important;display:grid!important;grid-template-rows:auto 32px!important;border:1px solid #dde2e8!important;background:#fff!important;overflow:hidden!important}
  #khs-project-modal .khs-live-preview-media,#khs-project-modal .khs-live-preview.ratio-16-9 .khs-live-preview-media,#khs-project-modal .khs-live-preview.ratio-9-16 .khs-live-preview-media,#khs-project-modal .khs-live-preview.ratio-1-1 .khs-live-preview-media{width:100%!important;height:clamp(270px,34vh,360px)!important;min-height:0!important;max-height:360px!important;aspect-ratio:auto!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#f3f5f7!important;overflow:hidden!important}
  #khs-project-modal .khs-live-preview.ratio-9-16 .khs-preview-open,#khs-project-modal .khs-live-preview.ratio-9-16 .khs-live-video-frame{width:auto!important;height:100%!important;aspect-ratio:9/16!important;margin:0 auto!important;background:transparent!important}
  #khs-project-modal .khs-live-preview.ratio-1-1 .khs-preview-open,#khs-project-modal .khs-live-preview.ratio-1-1 .khs-live-video-frame{width:auto!important;height:100%!important;aspect-ratio:1/1!important;margin:0 auto!important;background:transparent!important}
  #khs-project-modal .khs-live-preview.ratio-16-9 .khs-preview-open,#khs-project-modal .khs-live-preview.ratio-16-9 .khs-live-video-frame{width:min(100%,640px)!important;height:auto!important;aspect-ratio:16/9!important;margin:0 auto!important;background:transparent!important}
  #khs-project-modal .khs-preview-open>img,#khs-project-modal .khs-live-video-frame>video{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;background:transparent!important}
  #khs-project-modal .khs-live-preview-copy{height:32px!important;min-height:32px!important;padding:0 9px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;border-top:1px solid #e2e6eb!important;background:#fff!important}
  #khs-project-modal .khs-live-preview-copy>div{min-width:0!important;display:flex!important;align-items:center!important;gap:6px!important}
  #khs-project-modal .khs-live-preview-copy span{font-size:6.5px!important;letter-spacing:.8px!important}
  #khs-project-modal .khs-live-preview-copy b{font-size:9px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #khs-project-modal .khs-live-preview-copy small{font-size:7.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:right!important}
  #khs-project-modal .khs-scene-board{margin-top:0!important;padding-top:3px!important}
  #khs-project-modal .khs-scene-board-head{height:23px!important}
  #khs-project-modal .khs-scene-list{max-height:none!important;gap:5px!important;overflow-y:hidden!important}
  #khs-project-modal .khs-scene{min-height:66px!important;padding-top:4px!important;padding-bottom:4px!important}
}

/* Compact edit dialog: keep advanced controls available without crowding the normal workflow. */
.khs-scene-regen-request-card{width:min(760px,92vw)!important}
.khs-scene-regen-request-head{padding:19px 24px 14px!important}
.khs-scene-regen-request-head>span{margin-bottom:5px!important;font-size:7px!important;letter-spacing:1.4px!important}
.khs-scene-regen-request-head h3{margin:0!important;font:500 22px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-.35px!important}
#khs-scene-regen-request-form{gap:11px!important;padding:16px 24px 20px!important}
.khs-scene-regen-current{padding:9px 11px!important}
.khs-scene-regen-current>span{font-size:7px!important}.khs-scene-regen-current>b{font-size:10px!important}.khs-scene-regen-current>small{font-size:8px!important}
.khs-scene-regen-cost{padding:10px 12px!important;gap:4px 12px!important;box-shadow:inset 2px 0 0 #526884!important}
.khs-scene-regen-cost strong{font:600 18px/1.1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}.khs-scene-regen-cost b{font-size:10px!important}.khs-scene-regen-cost>small{font-size:8px!important;line-height:1.35!important;padding-top:6px!important}
.khs-regen-choice-field{gap:6px!important;padding:9px 10px!important}
.khs-regen-choice-field>span,.khs-regen-request-field>span{font-size:9.5px!important}
.khs-regen-thumb-grid{min-height:82px!important;gap:7px!important;padding-bottom:3px!important}
.khs-regen-thumb-choice{flex-basis:72px!important;width:72px!important;height:80px!important;border-radius:9px!important}
.khs-regen-thumb-choice img{border-radius:6px!important}
.khs-regen-emotion-choice{min-height:54px!important;padding:5px 3px!important}.khs-regen-emotion-choice svg{width:21px!important;height:21px!important}.khs-regen-emotion-choice span{font-size:7.5px!important}
.khs-regen-request-field{gap:5px!important}.khs-regen-request-field textarea{min-height:72px!important;padding:9px 10px!important;font-size:11px!important}.khs-regen-request-field input[type="text"]{min-height:38px!important;font-size:11px!important}.khs-regen-request-field input[type="file"]{min-height:40px!important;padding:6px 8px!important;font-size:10px!important}
.khs-regen-voice-current{min-height:54px!important;padding:8px 11px!important}.khs-regen-voice-current b{font-size:11px!important}.khs-regen-voice-current small{font-size:8px!important}.khs-regen-voice-current em{font-size:8px!important}
.khs-regen-voice-picker>[data-regen-current-voice]:empty{display:none!important}
.khs-scene-regen-request-actions{padding-top:1px!important}.khs-scene-regen-request-actions button{min-height:40px!important}.khs-scene-regen-request-submit{min-width:160px!important}

/* Completion copy stays concise and secondary to the actual output. */
#khs-project-modal .khs-complete-copy{gap:10px!important;padding:12px 14px!important}
#khs-project-modal .khs-complete-copy>b{font-size:21px!important}
#khs-project-modal .khs-recompose-note{font-size:8.5px!important;line-height:1.45!important;color:#7b8492!important}

/* v1.88 clip rail: horizontal-only compact scrollbar; vertical rail is impossible. */
#khs-project-modal .khs-scene-list::-webkit-scrollbar{height:5px!important;width:0!important}
#khs-project-modal .khs-scene-list::-webkit-scrollbar:vertical{width:0!important;display:none!important}
#khs-project-modal .khs-scene-list::-webkit-scrollbar-track{background:transparent!important}
#khs-project-modal .khs-scene-list::-webkit-scrollbar-thumb{background:#9aa0a8!important;border-radius:0!important}

.khs-regen-voice-current.khs-regen-voice-locked{cursor:default!important}

/* v3.0 clip dialogue editor */
.khs-regen-dialogue{display:grid;gap:8px;padding:10px 11px;border:1px solid #e1e5eb;background:#fafbfd}
.khs-regen-dialogue[hidden],.khs-regen-dialogue-body[hidden]{display:none!important}
.khs-regen-dialogue-toggle{display:grid;grid-template-columns:18px 1fr;column-gap:8px;align-items:center;cursor:pointer}
.khs-regen-dialogue-toggle input{width:15px;height:15px;margin:0;accent-color:#0824d0}
.khs-regen-dialogue-toggle span{font-size:10px;font-weight:850;color:#263246}
.khs-regen-dialogue-toggle small{grid-column:2;font-size:8.5px;color:#7d8795;line-height:1.35}
.khs-regen-dialogue-body{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.khs-regen-dialogue-turn{display:grid;gap:6px;padding:9px;border:1px solid #dde2e9;background:#fff}
.khs-regen-dialogue-turn-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.khs-regen-dialogue-turn-head>b{font-size:9.5px;color:#1e293b;letter-spacing:.2px}
.khs-regen-dialogue-turn-head>button{display:flex;align-items:center;gap:7px;max-width:62%;border:0;background:transparent;padding:0;color:#0824d0;cursor:pointer;font-size:9px;font-weight:800}
.khs-regen-dialogue-turn-head>button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.khs-regen-dialogue-turn-head>button em{font-style:normal;font-size:8px;color:#6b7280}
.khs-regen-dialogue-turn textarea{min-height:70px;resize:vertical;border:1px solid #d9dee6;background:#fff;padding:8px 9px;font-size:11px;line-height:1.5;color:#111827;outline:none}
.khs-regen-dialogue-turn textarea:focus{border-color:#0824d0;box-shadow:0 0 0 1px rgba(8,36,208,.08)}
@media(max-width:720px){.khs-regen-dialogue-body{grid-template-columns:1fr}}
.kmeta-hs-dark .khs-regen-dialogue{border-color:#2b3340;background:#141922}.kmeta-hs-dark .khs-regen-dialogue-turn{border-color:#303846;background:#0f141c}.kmeta-hs-dark .khs-regen-dialogue-toggle span,.kmeta-hs-dark .khs-regen-dialogue-turn-head>b{color:#e9edf5}.kmeta-hs-dark .khs-regen-dialogue-turn textarea{border-color:#343d4c;background:#111720;color:#f5f7fb}

/* v3.2 · explicit speaking-host selector */
.khs-regen-speaker-field{display:grid;gap:8px;padding:10px 11px;border:1px solid #dfe4eb;background:#fff}
.khs-regen-speaker-field[hidden]{display:none!important}
.khs-regen-speaker-field>span{font-size:10px;font-weight:850;color:#263246}
.khs-regen-speaker-grid{display:flex;flex-wrap:wrap;gap:8px}
.khs-regen-speaker-choice{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) 18px;align-items:center;gap:8px;min-width:150px;max-width:220px;padding:5px 7px 5px 5px;border:1px solid #d9dfe7;background:#fff;color:#263246;cursor:pointer;box-shadow:none;transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease}
.khs-regen-speaker-choice:hover{transform:translateY(-1px);border-color:#8995a7}
.khs-regen-speaker-choice>span{display:block;width:44px;height:50px;overflow:hidden;background:#edf1f5}
.khs-regen-speaker-choice img{display:block;width:100%;height:100%;object-fit:cover}
.khs-regen-speaker-choice>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:10px;font-weight:850}
.khs-regen-speaker-choice>i{position:relative;width:16px;height:16px;border:1px solid #aeb7c4;border-radius:50%;background:#fff}
.khs-regen-speaker-choice.selected{border-color:#0824d0;box-shadow:0 0 0 1px rgba(8,36,208,.16)}
.khs-regen-speaker-choice.selected>i{border-color:#0824d0;background:#0824d0}
.khs-regen-speaker-choice.selected>i:after{content:"";position:absolute;left:4px;top:4px;width:6px;height:3px;border-left:1.7px solid #fff;border-bottom:1.7px solid #fff;transform:rotate(-45deg)}
.khs-regen-speaker-field>small{font-size:8.5px;line-height:1.35;color:#758092}
.khs-regen-dialogue-head{display:grid;gap:2px}
.khs-regen-dialogue-head>b{font-size:10px;color:#263246}
.khs-regen-dialogue-head>small{font-size:8.5px;line-height:1.35;color:#7d8795}
.kmeta-hs-dark .khs-regen-speaker-field{border-color:#2b3340;background:#111720}
.kmeta-hs-dark .khs-regen-speaker-field>span,.kmeta-hs-dark .khs-regen-speaker-choice>b,.kmeta-hs-dark .khs-regen-dialogue-head>b{color:#eef2f8}
.kmeta-hs-dark .khs-regen-speaker-choice{border-color:#343d4c;background:#0f141c;color:#eef2f8}
.kmeta-hs-dark .khs-regen-speaker-choice>span{background:#1a202a}
.kmeta-hs-dark .khs-regen-speaker-choice>i{border-color:#5d6879;background:#111720}
.kmeta-hs-dark .khs-regen-speaker-choice.selected{border-color:#5972ff;box-shadow:0 0 0 1px rgba(89,114,255,.18)}
.kmeta-hs-dark .khs-regen-speaker-choice.selected>i{border-color:#5972ff;background:#5972ff}
@media(max-width:720px){.khs-regen-speaker-choice{min-width:132px;grid-template-columns:38px minmax(0,1fr) 16px}.khs-regen-speaker-choice>span{width:38px;height:44px}}
/* v5.7 custom clip video */
#khs-project-modal .khs-scene-action-buttons .khs-scene-custom-video.is-active{border-color:#8fa4c7!important;background:#f5f8fd!important}
#khs-project-modal .khs-scene-action-buttons .khs-scene-custom-video.is-active>i{border-color:#8fa4c7!important;background:#eef4ff!important;color:#0824d0!important}
.khs-regen-custom-video{display:grid;gap:10px;padding:13px;border:1px solid #dfe5ec;background:#fbfcfe}
.khs-regen-custom-video[hidden]{display:none!important}
.khs-regen-custom-video-head>div{display:grid;gap:3px}
.khs-regen-custom-video-head span{font-size:7px;font-weight:900;letter-spacing:1.5px;color:#7a8798}
.khs-regen-custom-video-head b{font-size:14px;line-height:1.2;color:#172033}
.khs-regen-custom-video-head small{font-size:9px;line-height:1.55;color:#7a8595}
.khs-regen-custom-video-drop{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px;padding:13px 14px;border:1px dashed #b9c5d5;background:#fff;cursor:pointer;transition:border-color .16s ease,background .16s ease}
.khs-regen-custom-video-drop:hover,.khs-regen-custom-video-drop.has-file{border-color:#6f87ad;background:#f9fbff}
.khs-regen-custom-video-drop.is-error{border-color:#c66b6b;background:#fff9f9}
.khs-regen-custom-video-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.khs-regen-custom-video-drop>span{display:grid;gap:4px;min-width:0}
.khs-regen-custom-video-drop>span b{font-size:11px;color:#1d2939}
.khs-regen-custom-video-drop>span small{font-size:8.5px;line-height:1.45;color:#8a94a3}
.khs-regen-custom-video-drop>em{flex:0 0 auto;border:1px solid #d9e0e9;background:#fff;padding:8px 11px;font-style:normal;font-size:8px;font-weight:800;color:#334155}
.khs-regen-custom-video-preview{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:center;padding:9px;border:1px solid #e2e7ee;background:#fff}
.khs-regen-custom-video-preview[hidden]{display:none!important}
.khs-regen-custom-video-preview video{width:112px;height:72px;object-fit:cover;background:#0f172a;display:block}
.khs-regen-custom-video-preview>div{display:grid;gap:4px;min-width:0}
.khs-regen-custom-video-preview b{font-size:9.5px;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.khs-regen-custom-video-preview small{font-size:8.5px;color:#7d8796}
.khs-regen-custom-video-preview button{justify-self:start;border:0;background:transparent;padding:0;color:#365d95;font-size:8.5px;font-weight:800;cursor:pointer}
.khs-regen-custom-video-note{display:flex;align-items:flex-start;gap:7px;padding:9px 10px;background:#f3f6fa;color:#566174;font-size:8.5px;line-height:1.5}
.khs-regen-custom-video-note i{flex:0 0 17px;width:17px;height:17px;display:grid;place-items:center;border:1px solid #b8c5d7;color:#315d9b;font-style:normal;font-size:8px}
@media(max-width:680px){.khs-regen-custom-video-preview{grid-template-columns:88px minmax(0,1fr)}.khs-regen-custom-video-preview video{width:88px;height:60px}.khs-regen-custom-video-drop{align-items:flex-start;flex-direction:column}.khs-regen-custom-video-drop>em{align-self:flex-start}}


/* v5.9 — frontend help tab synced with dashboard visual guide */
.khs-help-visual-hero{margin:0 0 12px!important;background:#fff!important;border:1px solid #dedfe2!important;display:grid!important;grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr)!important;min-height:330px!important;overflow:hidden!important}
.khs-help-visual-copy{padding:42px 46px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;background:linear-gradient(135deg,#fff 0%,#fff 72%,#fff6fa 100%)!important}
.khs-help-visual-copy h2{margin:10px 0 14px!important;font:400 34px/1.18 Georgia,"Times New Roman",serif!important;letter-spacing:-.8px!important;color:#18191c!important}
.khs-help-visual-copy p{max-width:570px!important;margin:0!important;color:#73767d!important;font-size:12px!important;line-height:1.8!important}
.khs-help-visual-copy>div{display:flex!important;align-items:center!important;gap:12px!important;margin-top:25px!important;flex-wrap:wrap!important}
.khs-help-visual-copy>div b{font-size:9px!important;letter-spacing:.8px!important;color:var(--khs-accent-deep,#bd376f)!important}
.khs-help-visual-copy>div i{width:1px!important;height:12px!important;background:#e4d5db!important}
.khs-help-visual-hero>img{display:block!important;width:100%!important;height:100%!important;min-height:330px!important;object-fit:cover!important;object-position:center!important}
.khs-help-visual-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0 0 12px!important}
.khs-help-visual-grid article{background:#fff!important;border:1px solid #dedfe2!important;overflow:hidden!important;min-width:0!important}
.khs-help-visual-media{position:relative!important;aspect-ratio:16/9!important;background:#f4f4f5!important;overflow:hidden!important}
.khs-help-visual-media img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;transition:transform .35s ease!important}
.khs-help-visual-grid article:hover .khs-help-visual-media img{transform:scale(1.025)!important}
.khs-help-visual-media:after{content:""!important;position:absolute!important;inset:0!important;background:linear-gradient(180deg,transparent 45%,rgba(12,13,16,.34) 100%)!important}
.khs-help-visual-media em{position:absolute!important;z-index:2!important;left:14px!important;bottom:12px!important;font:400 23px Georgia,"Times New Roman",serif!important;color:#fff!important;text-shadow:0 1px 10px rgba(0,0,0,.25)!important}
.khs-help-visual-body{padding:19px 19px 22px!important;display:flex!important;flex-direction:column!important;gap:6px!important}
.khs-help-visual-body>span{font-size:8px!important;font-weight:850!important;letter-spacing:1.6px!important;color:var(--khs-accent-deep,#cf3f7a)!important}
.khs-help-visual-body>b{font-size:13px!important;color:#1d1e21!important}
.khs-help-visual-body>p{font-size:10px!important;line-height:1.7!important;color:#7a7d83!important;margin:0!important}
.khs-help-front-tools{padding:26px!important;border:1px solid #dedfe2!important;background:#fff!important;margin:0 0 12px!important}
.khs-help-front-tools>div:first-child h2{margin:7px 0 18px!important;font:400 25px Georgia,"Times New Roman",serif!important;color:#18191c!important}
.khs-help-front-tool-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.khs-help-front-tool-grid article{border:1px solid #e1e2e5!important;background:#fbfbfc!important;padding:18px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important;min-height:150px!important}
.khs-help-front-tool-grid b{font-size:12px!important;color:#18191c!important}
.khs-help-front-tool-grid span{font-size:10px!important;line-height:1.6!important;color:#7b7d82!important}
.khs-help-front-tool-grid .khs-secondary{margin-top:auto!important}
@media(max-width:1180px){.khs-help-visual-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.khs-help-visual-hero{grid-template-columns:1fr 1fr!important}.khs-help-visual-copy{padding:34px!important}.khs-help-visual-copy h2{font-size:29px!important}}
@media(max-width:782px){.khs-help-visual-hero{grid-template-columns:1fr!important}.khs-help-visual-hero>img{min-height:240px!important;order:-1!important}.khs-help-visual-copy{padding:28px 24px!important}.khs-help-visual-copy h2{font-size:27px!important}.khs-help-visual-grid,.khs-help-front-tool-grid{grid-template-columns:1fr!important}}


/* v6.1 — exact AD Studio completed-gallery visual parity + stable low-count density */
/* v2.14 completed gallery — true width-filling masonry, isolated controls */
#khs-panel-completed .khs-finished-grid{
  position:relative!important;display:block!important;width:100%!important;min-height:120px!important;height:auto;
  margin:0!important;padding:0!important;border:0!important;background:#fff!important;overflow:visible!important;line-height:normal!important;
  column-count:auto!important;column-width:auto!important;column-gap:normal!important;
}
#khs-panel-completed .khs-finished-card{
  position:absolute!important;display:block!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:#090a0c!important;overflow:hidden!important;line-height:normal!important;box-shadow:none!important;break-inside:auto!important;vertical-align:top!important;
}
#khs-panel-completed .khs-finished-video-frame{position:relative!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:#090a0c!important;cursor:pointer!important}
#khs-panel-completed .khs-finished-card.ratio-16-9 .khs-finished-video-frame{aspect-ratio:auto!important}
#khs-panel-completed .khs-finished-card.ratio-9-16 .khs-finished-video-frame{aspect-ratio:auto!important}
#khs-panel-completed .khs-finished-card.ratio-1-1 .khs-finished-video-frame{aspect-ratio:auto!important}
#khs-panel-completed .khs-finished-video-frame video{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:cover!important;background:#090a0c!important;pointer-events:none!important;box-shadow:none!important}
#khs-panel-completed .khs-finished-public-state{left:8px!important;top:8px!important;padding:4px 7px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:999px!important;background:rgba(25,27,31,.58)!important;color:rgba(255,255,255,.76)!important;font-size:8px!important;line-height:1!important;font-weight:800!important;letter-spacing:.04em!important;box-shadow:none!important;backdrop-filter:blur(7px)!important}
#khs-panel-completed .khs-finished-public-state.is-public{background:rgba(10,126,71,.90)!important;border-color:rgba(129,236,181,.36)!important;color:#fff!important;box-shadow:0 3px 12px rgba(7,100,55,.18)!important}
#khs-panel-completed .khs-finished-duration{right:7px!important;bottom:7px!important;padding:3px 5px!important;border:0!important;border-radius:999px!important;background:rgba(0,0,0,.44)!important;color:#fff!important;font-size:9px!important;line-height:1!important;font-weight:650!important;box-shadow:none!important;backdrop-filter:blur(5px)!important}
#khs-panel-completed .khs-finished-overlay-copy{left:8px!important;right:55px!important;bottom:7px!important;margin:0!important;padding:0!important;color:#fff!important;text-shadow:0 1px 6px rgba(0,0,0,.62)!important}
#khs-panel-completed .khs-finished-overlay-copy b{margin:0 0 3px!important;font-size:10px!important;line-height:1.2!important;font-weight:700!important}
#khs-panel-completed .khs-finished-overlay-copy small{font-size:8px!important;line-height:1!important;opacity:.66!important}
#khs-panel-completed .khs-finished-progress{position:absolute!important;z-index:8!important;left:0!important;right:0!important;bottom:0!important;height:1px!important;margin:0!important;padding:0!important;background:rgba(255,255,255,.20)!important;opacity:0!important;pointer-events:none!important;transition:opacity .12s ease!important}
#khs-panel-completed .khs-finished-progress i{display:block!important;width:0;height:1px!important;margin:0!important;padding:0!important;background:#fff!important;transition:none!important}
#khs-panel-completed .khs-finished-card.is-playing .khs-finished-progress{opacity:.92!important}
#khs-panel-completed .khs-finished-menu-toggle{
  all:unset!important;box-sizing:border-box!important;position:absolute!important;right:7px!important;top:7px!important;z-index:12!important;
  display:flex!important;align-items:center!important;justify-content:center!important;width:24px!important;height:24px!important;margin:0!important;padding:0!important;
  border:1px solid rgba(255,255,255,.20)!important;border-radius:50%!important;background:rgba(11,13,17,.38)!important;color:#fff!important;
  font-family:Arial,sans-serif!important;font-size:16px!important;line-height:1!important;font-weight:700!important;letter-spacing:0!important;cursor:pointer!important;
  opacity:0!important;transform:translateY(-2px)!important;transition:opacity .14s ease,transform .14s ease,background .14s ease!important;box-shadow:none!important;backdrop-filter:blur(7px)!important;
}
#khs-panel-completed .khs-finished-card:hover .khs-finished-menu-toggle,#khs-panel-completed .khs-finished-menu-toggle:focus,#khs-panel-completed .khs-finished-card.menu-open .khs-finished-menu-toggle{opacity:.88!important;transform:none!important;background:rgba(11,13,17,.62)!important}
#khs-panel-completed .khs-finished-menu{position:absolute!important;right:7px!important;top:36px!important;z-index:20!important;display:none!important;min-width:145px!important;margin:0!important;padding:5px!important;border:1px solid rgba(226,229,235,.92)!important;border-radius:10px!important;background:rgba(255,255,255,.98)!important;box-shadow:0 16px 44px rgba(12,17,29,.20)!important;backdrop-filter:blur(14px)!important;line-height:normal!important}
#khs-panel-completed .khs-finished-card.menu-open .khs-finished-menu{display:grid!important}
#khs-panel-completed .khs-finished-menu a,#khs-panel-completed .khs-finished-menu button{all:unset!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;height:34px!important;margin:0!important;padding:0 10px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:#25282d!important;font-family:inherit!important;font-size:10px!important;line-height:1!important;font-weight:700!important;text-decoration:none!important;cursor:pointer!important;box-shadow:none!important}
#khs-panel-completed .khs-finished-menu a:hover,#khs-panel-completed .khs-finished-menu button:hover{background:#f2f4f6!important}
#khs-panel-completed .khs-finished-menu .khs-visibility-toggle.is-public{color:#b42318!important;background:transparent!important}
#khs-panel-completed .khs-finished-menu [data-delete-output]{color:#b42318!important}

.khs-finished-viewer,.khs-finished-viewer *{box-sizing:border-box!important}
.khs-finished-viewer-close{all:unset!important;box-sizing:border-box!important;position:absolute!important;right:10px!important;top:10px!important;z-index:8!important;display:flex!important;align-items:center!important;justify-content:center!important;width:32px!important;height:32px!important;margin:0!important;padding:0!important;border:1px solid rgba(255,255,255,.26)!important;border-radius:50%!important;background:rgba(8,10,14,.42)!important;color:#fff!important;font-family:Arial,sans-serif!important;font-size:20px!important;line-height:1!important;font-weight:300!important;cursor:pointer!important;box-shadow:none!important;backdrop-filter:blur(7px)!important}
.khs-finished-viewer-progress{position:absolute!important;z-index:10!important;left:0!important;right:0!important;bottom:0!important;height:1px!important;background:rgba(255,255,255,.18)!important;opacity:0!important;pointer-events:none!important}
.khs-finished-viewer.is-playing .khs-finished-viewer-progress{opacity:.92!important}
.khs-finished-viewer-progress i{display:block!important;width:0;height:1px!important;background:#fff!important}
@media (hover:none){#khs-panel-completed .khs-finished-menu-toggle{opacity:.30!important;transform:none!important}}
@media(max-width:720px){#khs-panel-completed .khs-finished-grid{width:100%!important}.khs-finished-viewer{padding:3vh 8px!important}.khs-finished-viewer-shell{max-width:96vw!important}.khs-finished-viewer video{max-width:96vw!important;max-height:84vh!important}}
#khs-panel-completed .khs-finished-menu-toggle::before,#khs-panel-completed .khs-finished-menu-toggle::after,#khs-panel-completed .khs-finished-menu button::before,#khs-panel-completed .khs-finished-menu button::after,.khs-finished-viewer-close::before,.khs-finished-viewer-close::after{content:none!important;display:none!important}

/* v2.15 finished gallery polish — subtle controls + exact sharp modal ratios */
#khs-panel-completed .khs-finished-menu-toggle{
  width:28px!important;height:24px!important;right:7px!important;top:7px!important;
  border:0!important;border-radius:0!important;background:rgba(9,11,15,.04)!important;
  color:rgba(255,255,255,.72)!important;backdrop-filter:none!important;box-shadow:none!important;
  opacity:.16!important;font-size:14px!important;line-height:1!important;letter-spacing:1.5px!important;
  transition:opacity .15s ease,background .15s ease!important;
}
#khs-panel-completed .khs-finished-card:hover .khs-finished-menu-toggle,
#khs-panel-completed .khs-finished-menu-toggle:focus{
  opacity:.58!important;background:rgba(9,11,15,.20)!important;
}
#khs-panel-completed .khs-finished-card.menu-open .khs-finished-menu-toggle{
  opacity:.82!important;background:rgba(9,11,15,.34)!important;
}

.khs-finished-viewer{padding:3vh 3vw!important;background:rgba(7,9,13,.80)!important;backdrop-filter:blur(11px)!important}
.khs-finished-viewer .khs-finished-viewer-shell{
  position:relative!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  max-width:none!important;max-height:none!important;background:#060709!important;overflow:hidden!important;
  box-shadow:0 24px 72px rgba(0,0,0,.34)!important;
}
.khs-finished-viewer.ratio-16-9 .khs-finished-viewer-shell{
  width:min(1080px,76vw,calc(76vh * 16 / 9))!important;aspect-ratio:16/9!important;
}
.khs-finished-viewer.ratio-9-16 .khs-finished-viewer-shell{
  width:min(430px,34vw,calc(76vh * 9 / 16))!important;aspect-ratio:9/16!important;
}
.khs-finished-viewer.ratio-1-1 .khs-finished-viewer-shell{
  width:min(620px,58vw,74vh)!important;aspect-ratio:1/1!important;
}
.khs-finished-viewer .khs-finished-viewer-shell video{
  display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#060709!important;
  object-fit:contain!important;
}
.khs-finished-viewer-close{
  right:8px!important;top:8px!important;width:28px!important;height:28px!important;border:1px solid rgba(255,255,255,.18)!important;
  border-radius:0!important;background:rgba(6,8,12,.30)!important;color:rgba(255,255,255,.88)!important;
  font-size:18px!important;backdrop-filter:blur(5px)!important;
}
.khs-finished-viewer-close:hover{background:rgba(6,8,12,.52)!important;color:#fff!important}
@media(max-width:720px){
  .khs-finished-viewer{padding:2.5vh 8px!important}
  .khs-finished-viewer.ratio-16-9 .khs-finished-viewer-shell{width:min(94vw,calc(76vh * 16 / 9))!important}
  .khs-finished-viewer.ratio-9-16 .khs-finished-viewer-shell{width:min(82vw,calc(74vh * 9 / 16))!important}
  .khs-finished-viewer.ratio-1-1 .khs-finished-viewer-shell{width:min(86vw,70vh)!important}
}



/* v6.8 — simplified premium product setup + universal drag-and-drop */
.khs-product-manager{border:1px solid #dfe3ea;background:#fff;margin-top:2px}
.khs-product-manager-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 20px;border-bottom:1px solid #e8ebf0;background:linear-gradient(180deg,#fff,#fbfcfe)}
.khs-product-manager-head>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.khs-product-manager-head>div:first-child>span{font-size:8px;letter-spacing:1.8px;font-weight:900;color:#8791a1}
.khs-product-manager-head>div:first-child>b{font-size:16px;line-height:1.2;color:#172033}
.khs-product-manager-head>div:first-child>small{font-size:10px;line-height:1.5;color:#7b8595}
.khs-product-manager-actions{display:flex;align-items:center;gap:10px;flex:none}.khs-product-manager-actions>em{font-style:normal;font-size:10px;font-weight:800;color:#7a8494}.khs-product-manager-actions>em strong{font-size:14px;color:#1a2436}.khs-product-manager-actions>[data-product-add]{height:36px;border:1px solid #1b2433;border-radius:0;background:#1b2433;color:#fff;padding:0 14px;font-size:10px;font-weight:800;cursor:pointer}.khs-product-manager-actions>[data-product-add]:hover{background:#303a4a}.khs-product-manager-actions>[data-product-add]:disabled{opacity:.42;cursor:default}
.khs-product-tabs{display:flex;align-items:stretch;border-bottom:1px solid #e8ebf0;background:#f8fafc;overflow-x:auto}.khs-product-tab{min-width:132px;min-height:58px;padding:10px 14px;border:0;border-right:1px solid #e8ebf0;border-radius:0;background:#f8fafc;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:3px;cursor:pointer}.khs-product-tab span{font-size:11px;font-weight:800;color:#344054}.khs-product-tab small{font-size:8px;color:#8b95a5;max-width:116px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.khs-product-tab.is-active{background:#fff;box-shadow:inset 0 -3px 0 #d83d7c}.khs-product-tab.is-active span{color:#151d2c}.khs-product-tab.is-disabled{display:none}
.khs-product-panel{padding:18px 20px 20px}.khs-product-panel[hidden]{display:none!important}.khs-product-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.khs-product-panel-head>div{display:flex;flex-direction:column;gap:3px}.khs-product-panel-head b{font-size:12px;color:#202a3b}.khs-product-panel-head small{font-size:9px;color:#8a94a3}.khs-product-remove{height:30px;padding:0 10px;border:1px solid #d6dbe3;border-radius:0;background:#fff;color:#7d8795;font-size:9px;font-weight:750;cursor:pointer}.khs-product-remove:hover{border-color:#b64b72;color:#b64b72}
.khs-product-quick{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:14px}.khs-product-main-drop{grid-row:span 2;min-height:154px;border:1px dashed #bdc7d6;border-radius:0;background:#fbfcfe;padding:14px;display:grid;grid-template-columns:92px minmax(0,1fr);grid-template-rows:1fr auto;gap:10px 14px;text-align:left;cursor:pointer;transition:border-color .15s,background .15s}.khs-product-main-drop:hover,.khs-product-main-drop.is-dragover{border-color:#526b95;background:#f6f9fe}.khs-product-main-drop.uploading{opacity:.65;pointer-events:none}.khs-product-main-media{grid-row:1/3;width:92px;height:118px;border:1px solid #e2e7ee;background:#f1f4f8;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.khs-product-main-media img{width:100%;height:100%;object-fit:contain;display:none}.khs-product-main-drop.has-image .khs-product-main-media img{display:block}.khs-product-main-media i{font-style:normal;font-size:24px;font-weight:300;color:#d83d7c}.khs-product-main-drop.has-image .khs-product-main-media i{position:absolute;right:6px;bottom:6px;width:21px;height:21px;border:1px solid #d7dce4;background:#fff;display:grid;place-items:center;font-size:10px}.khs-product-main-copy{align-self:end;display:flex;flex-direction:column;gap:5px;min-width:0}.khs-product-main-copy b{font-size:12px;color:#1d2738;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.khs-product-main-copy small{font-size:9px;line-height:1.5;color:#7d8797}.khs-product-main-drop>em{align-self:start;font-style:normal;font-size:8px;letter-spacing:.04em;color:#8b95a4}
.khs-product-library-select,.khs-product-library-note{border:1px solid #e1e5eb;background:#fff;padding:11px 12px;display:flex;flex-direction:column;gap:7px}.khs-product-library-select>span,.khs-product-library-note>span{font-size:9px;font-weight:800;color:#455064}.khs-product-library-select select{height:36px;border:1px solid #d8dee7!important;border-radius:0!important;background:#fff!important;font-size:10px!important;padding:0 9px!important}.khs-product-library-note small{font-size:9px;line-height:1.5;color:#8892a1}
.khs-product-essential{display:grid;grid-template-columns:1fr 1fr;gap:10px}.khs-product-essential label{display:flex;flex-direction:column;gap:5px}.khs-product-essential label.wide{grid-column:1/-1}.khs-product-essential span{font-size:9px;font-weight:800;color:#596477}.khs-product-essential input{height:38px;border:1px solid #d8dee7!important;border-radius:0!important;background:#fff!important;padding:0 10px!important;font-size:10px!important;color:#232d3d!important;box-shadow:none!important}.khs-product-essential input:focus,.khs-product-library-select select:focus{border-color:#667894!important;outline:0!important;box-shadow:0 0 0 1px #667894!important}
.khs-product-more,.khs-product-size-more{margin-top:14px;border:1px solid #e2e6ec;background:#fff}.khs-product-more>summary,.khs-product-size-more>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:auto 1fr 16px;gap:9px;align-items:center;padding:11px 13px}.khs-product-more>summary::-webkit-details-marker,.khs-product-size-more>summary::-webkit-details-marker{display:none}.khs-product-more>summary span,.khs-product-size-more>summary span{font-size:10px;font-weight:800;color:#394457}.khs-product-more>summary small,.khs-product-size-more>summary small{font-size:8px;color:#9099a6}.khs-product-more>summary i:before,.khs-product-size-more>summary i:before{content:'+';font-style:normal;color:#d83d7c}.khs-product-more[open]>summary i:before,.khs-product-size-more[open]>summary i:before{content:'−'}.khs-product-more[open]>summary,.khs-product-size-more[open]>summary{border-bottom:1px solid #e8ebef;background:#fbfcfe}.khs-product-more-body{padding:14px;display:grid;gap:14px}
.khs-product-text-grid-secondary{grid-template-columns:repeat(4,minmax(0,1fr))!important}.khs-product-text-grid-secondary input,.khs-product-text-grid-secondary select{height:36px!important;border-radius:0!important}
.khs-product-manager .khs-product-ref-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.khs-product-manager .khs-product-ref-preview{cursor:pointer;border-radius:0!important;box-shadow:none!important;background:#fbfcfe!important}.khs-product-manager .khs-product-ref-preview:hover,.khs-product-manager .khs-product-ref-preview.is-dragover{border-color:#667894;background:#f5f8fd!important}.khs-product-manager .khs-product-ref-preview-media{border-radius:0!important}.khs-product-manager .khs-product-ref-preview-media i{border-radius:0!important}.khs-product-manager .khs-product-extra-ref{border-radius:0!important;background:#fbfcfe!important}.khs-product-manager .khs-product-extra-ref-drop,.khs-product-manager .khs-product-extra-ref-icon,.khs-product-manager .khs-product-extra-ref-item,.khs-product-manager .khs-product-extra-ref-drop em,.khs-product-manager .khs-product-extra-ref-item>span i,.khs-product-manager .khs-product-extra-ref-item>[data-extra-ref-remove]{border-radius:0!important}.khs-product-manager .khs-product-size-more{margin-top:0}.khs-product-manager .khs-size-grid{margin:0;padding:12px;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.khs-product-manager .khs-size-grid input{border-radius:0!important}.khs-product-manager .khs-advanced-check{margin:0 12px 12px}
.khs-host-slot-preview[data-host-slot-drop]{cursor:pointer;outline:0;transition:border-color .15s,background .15s}.khs-host-slot-preview[data-host-slot-drop]:hover,.khs-host-slot-preview[data-host-slot-drop].is-dragover{border-color:#687b99;background:#f7f9fd}.khs-host-slot-preview[data-host-slot-drop].uploading{opacity:.65;pointer-events:none}.khs-host-slot-preview[data-host-slot-drop] small:after{content:' · 드래그 업로드';color:#a0a8b4}
@media(max-width:980px){.khs-product-quick{grid-template-columns:1fr}.khs-product-main-drop{grid-row:auto}.khs-product-text-grid-secondary{grid-template-columns:1fr 1fr!important}.khs-product-manager .khs-product-ref-grid{grid-template-columns:1fr!important}.khs-product-manager .khs-size-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.khs-product-manager-head{align-items:flex-start;flex-direction:column}.khs-product-manager-actions{width:100%;justify-content:space-between}.khs-product-panel{padding:14px}.khs-product-main-drop{grid-template-columns:74px minmax(0,1fr);min-height:132px}.khs-product-main-media{width:74px;height:96px}.khs-product-essential,.khs-product-text-grid-secondary,.khs-product-manager .khs-size-grid{grid-template-columns:1fr!important}}

/* v8.3 scene-purpose editor */
#khs-project-modal .khs-scene-purpose-title{margin:1px 0 5px!important;font-size:8px!important;font-weight:800!important;letter-spacing:.08em!important;color:#65738a!important;text-transform:uppercase!important}
#khs-project-modal .khs-scene-purpose-buttons{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;margin:0 0 8px!important;padding:0 0 8px!important;border-bottom:1px solid #e8ecf2!important}
#khs-project-modal .khs-scene-purpose-buttons button{min-width:0!important;min-height:40px!important;padding:6px 7px!important;border:1px solid #cfd8e6!important;background:#fbfcff!important;color:#14233d!important;display:flex!important;align-items:center!important;gap:7px!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important}
#khs-project-modal .khs-scene-purpose-buttons button:hover{border-color:#0824d0!important;background:#f5f7ff!important}
#khs-project-modal .khs-scene-purpose-buttons .khs-purpose-auto{grid-column:1/-1!important;border-color:#9fb0e8!important;background:#f7f9ff!important}
#khs-project-modal .khs-scene-purpose-buttons button:disabled{opacity:.45!important;cursor:not-allowed!important}
#khs-project-modal .khs-scene-purpose-buttons button>i{flex:0 0 22px!important;width:22px!important;height:22px!important;display:grid!important;place-items:center!important;border:1px solid #d6deea!important;background:#fff!important;color:#0824d0!important;font-style:normal!important;font-size:8px!important;font-weight:900!important}
#khs-project-modal .khs-scene-purpose-buttons button>b{min-width:0!important;font-size:9px!important;line-height:1.2!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* v8.8 simplified customer-facing automatic clip edit */
#khs-project-modal .khs-scene-auto-edit{margin:0 0 8px!important;padding:0 0 8px!important;border-bottom:1px solid #e8ecf2!important}
#khs-project-modal .khs-scene-auto-edit-toggle{width:100%!important;min-height:48px!important;border:1px solid #9fb0e8!important;border-radius:0!important;background:#f7f9ff!important;color:#14233d!important;padding:8px 10px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important}
#khs-project-modal .khs-scene-auto-edit-toggle:hover,#khs-project-modal .khs-scene-auto-edit-toggle.is-open{border-color:#0824d0!important;background:#f3f6ff!important}
#khs-project-modal .khs-scene-auto-edit-toggle:disabled{opacity:.45!important;cursor:not-allowed!important}
#khs-project-modal .khs-scene-auto-edit-toggle>span{min-width:0!important;display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:9px!important;align-items:center!important}
#khs-project-modal .khs-scene-auto-edit-toggle>span>i{grid-row:1/3!important;width:30px!important;height:30px!important;display:grid!important;place-items:center!important;border:1px solid #c9d4ea!important;background:#fff!important;color:#0824d0!important;font-style:normal!important;font-size:9px!important;font-weight:900!important}
#khs-project-modal .khs-scene-auto-edit-toggle>span>b{font-size:10px!important;line-height:1.25!important;font-weight:850!important;color:#14233d!important}
#khs-project-modal .khs-scene-auto-edit-toggle>span>small{margin-top:2px!important;font-size:8px!important;line-height:1.3!important;font-weight:500!important;color:#7a879a!important;white-space:normal!important}
#khs-project-modal .khs-scene-auto-edit-toggle>em{position:relative!important;width:16px!important;height:16px!important;flex:0 0 16px!important;font-style:normal!important}
#khs-project-modal .khs-scene-auto-edit-toggle>em:before,#khs-project-modal .khs-scene-auto-edit-toggle>em:after{content:''!important;position:absolute!important;left:3px!important;top:7px!important;width:10px!important;height:1px!important;background:#52617a!important;transition:transform .15s ease!important}
#khs-project-modal .khs-scene-auto-edit-toggle>em:after{transform:rotate(90deg)!important}
#khs-project-modal .khs-scene-auto-edit-toggle.is-open>em:after{transform:rotate(0)!important}
#khs-project-modal .khs-scene-purpose-panel[hidden]{display:none!important}
#khs-project-modal .khs-scene-purpose-panel{padding-top:8px!important}
#khs-project-modal .khs-scene-purpose-title{margin:0 0 6px!important;font-size:8px!important;font-weight:800!important;letter-spacing:.02em!important;color:#65738a!important;text-transform:none!important}
#khs-project-modal .khs-scene-purpose-buttons{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;margin:0!important;padding:0!important;border-bottom:0!important}
#khs-project-modal .khs-scene-purpose-buttons button{width:100%!important;min-height:43px!important;padding:6px 8px!important;border:1px solid #d5dce8!important;border-radius:0!important;background:#fff!important;color:#14233d!important;display:flex!important;align-items:center!important;gap:8px!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important}
#khs-project-modal .khs-scene-purpose-buttons button:hover{border-color:#0824d0!important;background:#f7f9ff!important}
#khs-project-modal .khs-scene-purpose-buttons .khs-purpose-auto{grid-column:auto!important;border-color:#a8b7e8!important;background:#f6f8ff!important}
#khs-project-modal .khs-scene-purpose-buttons button:disabled{opacity:.45!important;cursor:not-allowed!important}
#khs-project-modal .khs-scene-purpose-buttons button>i{flex:0 0 26px!important;width:26px!important;height:26px!important;display:grid!important;place-items:center!important;border:1px solid #d6deea!important;background:#fff!important;color:#0824d0!important;font-style:normal!important;font-size:8px!important;font-weight:900!important}
#khs-project-modal .khs-scene-purpose-buttons button>span{min-width:0!important;display:flex!important;flex-direction:column!important;gap:2px!important}
#khs-project-modal .khs-scene-purpose-buttons button>span>b{font-size:9px!important;line-height:1.2!important;font-weight:800!important;color:#14233d!important;white-space:normal!important}
#khs-project-modal .khs-scene-purpose-buttons button>span>small{font-size:8px!important;line-height:1.25!important;font-weight:500!important;color:#8490a2!important;white-space:normal!important}

/* v9.0 - visible chunked resume safety inspection */
#khs-project-modal .khs-resume-audit-panel{display:block!important;margin:8px 0 7px!important;padding:12px 14px!important;border:1px solid #d8dee8!important;border-radius:0!important;background:#f8faff!important;box-shadow:none!important;color:#263247!important}
#khs-project-modal .khs-resume-audit-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:8px!important}
#khs-project-modal .khs-resume-audit-head b{font-size:11px!important;font-weight:850!important;letter-spacing:-.1px!important;color:#18243a!important}
#khs-project-modal .khs-resume-audit-head strong{font-size:13px!important;font-weight:900!important;color:#0f26b5!important}
#khs-project-modal .khs-resume-audit-track{height:5px!important;background:#e2e7ef!important;overflow:hidden!important;border-radius:0!important}
#khs-project-modal .khs-resume-audit-track i{display:block!important;width:0;height:100%!important;background:#0f26b5!important;transition:width .22s ease!important}
#khs-project-modal .khs-resume-audit-current{margin-top:9px!important;font-size:10.5px!important;font-weight:750!important;line-height:1.45!important;color:#28364d!important}
#khs-project-modal .khs-resume-audit-log{display:flex!important;flex-direction:column!important;gap:3px!important;margin-top:7px!important;padding-top:7px!important;border-top:1px solid #e2e7ef!important}
#khs-project-modal .khs-resume-audit-log span{font-size:9px!important;line-height:1.4!important;color:#6f7a8b!important}
#khs-project-modal .khs-resume-audit-panel.is-done{background:#f7fbff!important;border-color:#bcc8e8!important}
#khs-project-modal .khs-resume-audit-panel.is-error{background:#fff8fa!important;border-color:#e6b5c8!important}
#khs-project-modal .khs-resume-audit-panel.is-error .khs-resume-audit-head strong{color:#b5265b!important}
#khs-project-modal .khs-resume-audit-panel.is-error .khs-resume-audit-track i{background:#b5265b!important}
@media(max-width:720px){#khs-project-modal .khs-resume-audit-panel{padding:11px!important}#khs-project-modal .khs-resume-audit-current{font-size:10px!important}}

.kmeta-hs-dark .khs-regen-voice-current>.khs-regen-voice-host-photo{background:#171d26!important;border-color:#343d4c!important}
@media(max-width:680px){.khs-regen-voice-current>.khs-regen-voice-host-photo{flex-basis:42px!important;width:42px!important;height:48px!important}}

/* v9.21 premium wide clip edit layout */
.khs-scene-regen-request-card{width:min(1240px,96vw)!important;max-height:min(92vh,1080px)!important}
.khs-scene-regen-request-head{position:sticky!important;top:0;z-index:2;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important}
#khs-scene-regen-request-form{padding:18px 26px 24px!important;gap:14px!important}
#khs-scene-regen-request-form .khs-scene-regen-shell{display:grid;gap:14px}
#khs-scene-regen-request-form .khs-scene-regen-toprow{display:grid;grid-template-columns:minmax(320px,.95fr) minmax(300px,1.05fr);gap:12px;align-items:stretch}
#khs-scene-regen-request-form .khs-scene-regen-grid{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(360px,.9fr);gap:14px;align-items:start}
#khs-scene-regen-request-form .khs-scene-regen-maincol,#khs-scene-regen-request-form .khs-scene-regen-sidecol{display:grid;gap:14px;min-width:0}
#khs-scene-regen-request-form .khs-scene-regen-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#khs-scene-regen-request-form .khs-regen-choice-field,#khs-scene-regen-request-form .khs-regen-request-field,#khs-scene-regen-request-form .khs-regen-dialogue,#khs-scene-regen-request-form .khs-regen-sidepanel,#khs-scene-regen-request-form .khs-regen-advanced{border:1px solid #e2e8f0;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.04)}
#khs-scene-regen-request-form .khs-regen-choice-field,#khs-scene-regen-request-form .khs-regen-dialogue,#khs-scene-regen-request-form .khs-regen-sidepanel{padding:12px 13px!important}
#khs-scene-regen-request-form .khs-regen-request-field{padding:12px 13px!important}
#khs-scene-regen-request-form .khs-regen-request-primary textarea{min-height:118px!important}
#khs-scene-regen-request-form .khs-regen-sidepanel{gap:12px}
#khs-scene-regen-request-form .khs-regen-sidepanel-head{display:grid;gap:4px;padding-bottom:4px;border-bottom:1px solid #edf2f7}
#khs-scene-regen-request-form .khs-regen-sidepanel-head>span{font-size:10px;font-weight:900;letter-spacing:.7px;color:#243244}
#khs-scene-regen-request-form .khs-regen-sidepanel-head>small{font-size:9px;line-height:1.55;color:#7b8696}
#khs-scene-regen-request-form .khs-regen-example-box{display:grid;gap:8px;margin-top:2px}
#khs-scene-regen-request-form .khs-regen-example-box>b{font-size:9.5px;font-weight:900;color:#263246}
#khs-scene-regen-request-form .khs-regen-example-list{display:flex;flex-wrap:wrap;gap:7px}
#khs-scene-regen-request-form .khs-regen-example-chip{min-height:32px;padding:0 11px;border:1px solid #d7dce4;background:#f8fafc;color:#233246;font-size:9px;font-weight:800;letter-spacing:.1px;cursor:pointer;transition:all .14s ease}
#khs-scene-regen-request-form .khs-regen-example-chip:hover{border-color:#b8c2d1;background:#fff;transform:translateY(-1px)}
#khs-scene-regen-request-form .khs-regen-advanced{overflow:hidden}
#khs-scene-regen-request-form .khs-regen-advanced>summary{list-style:none;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:13px 14px;cursor:pointer;background:#f8fafc}
#khs-scene-regen-request-form .khs-regen-advanced>summary::-webkit-details-marker{display:none}
#khs-scene-regen-request-form .khs-regen-advanced>summary b{font-size:10px;font-weight:900;color:#243244}
#khs-scene-regen-request-form .khs-regen-advanced>summary small{display:block;margin-top:3px;font-size:8.5px;line-height:1.45;color:#7b8696}
#khs-scene-regen-request-form .khs-regen-advanced>summary::after{content:'+';font-size:20px;line-height:1;color:#64748b}
#khs-scene-regen-request-form .khs-regen-advanced[open]>summary::after{content:'−'}
#khs-scene-regen-request-form .khs-regen-advanced-body{display:grid;gap:12px;padding:13px}
#khs-scene-regen-request-form .khs-scene-regen-request-actions{padding-top:0!important;border-top:1px solid #edf2f7;padding-top:14px!important;position:sticky;bottom:0;background:linear-gradient(180deg,rgba(255,255,255,.92),#fff 22%)!important;z-index:2}
#khs-scene-regen-request-form .khs-regen-reference-preview{grid-template-columns:repeat(2,minmax(0,1fr))}
#khs-scene-regen-request-form .khs-regen-thumb-grid{min-height:96px!important}
#khs-scene-regen-request-form .khs-scene-regen-cost{height:100%}
#khs-scene-regen-request-form .khs-scene-regen-current{height:100%}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-choice-field,.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-request-field,.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-dialogue,.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-sidepanel,.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-advanced{border-color:#29303d;background:#111720;box-shadow:none}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-sidepanel-head{border-color:#29303d}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-sidepanel-head>span,.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-example-box>b,.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-advanced>summary b{color:#eef2f7}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-sidepanel-head>small,.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-advanced>summary small{color:#a6b0be}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-example-chip{border-color:#344053;background:#16202b;color:#eef2f7}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-advanced>summary{background:#141c27}
@media(max-width:1180px){#khs-scene-regen-request-form .khs-scene-regen-grid{grid-template-columns:1fr}#khs-scene-regen-request-form .khs-scene-regen-sidecol{grid-template-columns:1fr}}
@media(max-width:900px){.khs-scene-regen-request-card{width:min(98vw,860px)!important}#khs-scene-regen-request-form .khs-scene-regen-toprow,#khs-scene-regen-request-form .khs-scene-regen-choice-grid{grid-template-columns:1fr}#khs-scene-regen-request-form .khs-scene-regen-request-actions{position:static}}
@media(max-width:680px){#khs-scene-regen-request-form{padding:16px 18px 20px!important}#khs-scene-regen-request-form .khs-regen-reference-preview{grid-template-columns:1fr}#khs-scene-regen-request-form .khs-regen-example-list{gap:6px}#khs-scene-regen-request-form .khs-regen-example-chip{width:100%;justify-content:flex-start}}

/* v9.22 separated speaking / motion reference uploads */
#khs-scene-regen-request-form .khs-regen-reference-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#khs-scene-regen-request-form .khs-regen-upload-card{display:grid;gap:8px;padding:12px;border:1px solid #e2e8f0;background:#fbfcfe;box-shadow:0 8px 24px rgba(15,23,42,.03)}
#khs-scene-regen-request-form .khs-regen-upload-card>b{font-size:10px;font-weight:900;color:#1f2f45}
#khs-scene-regen-request-form .khs-regen-upload-card>small{font-size:8.8px;line-height:1.55;color:#6b7280}
#khs-scene-regen-request-form .khs-regen-upload-drop{position:relative;display:grid;gap:4px;min-height:86px;padding:12px;border:1px dashed #c9d2de;background:#fff;cursor:pointer;align-content:center}
#khs-scene-regen-request-form .khs-regen-upload-drop input{position:absolute;inset:0;opacity:0;pointer-events:none}
#khs-scene-regen-request-form .khs-regen-upload-drop em{font-style:normal;font-size:9.2px;font-weight:800;color:#243244}
#khs-scene-regen-request-form .khs-regen-upload-drop i{font-style:normal;font-size:8.2px;line-height:1.5;color:#7b8696}
#khs-scene-regen-request-form .khs-regen-upload-card.has-files .khs-regen-upload-drop{border-color:#9fb0c4;background:#f8fbff}
#khs-scene-regen-request-form .khs-regen-upload-drop.is-dragover{border-color:#0f26b5;background:#eef4ff}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-upload-card{border-color:#29303d;background:#101722;box-shadow:none}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-upload-card>b{color:#eef2f7}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-upload-card>small,.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-upload-drop i{color:#a6b0be}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-upload-drop{border-color:#425066;background:#131c28}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-upload-drop em{color:#eef2f7}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-upload-card.has-files .khs-regen-upload-drop{border-color:#65758a;background:#172232}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-upload-drop.is-dragover{border-color:#95a4ff;background:#1a2740}
@media(max-width:900px){#khs-scene-regen-request-form .khs-regen-reference-groups{grid-template-columns:1fr}}

/* v9.23 compact final-video dock — keeps the wide editing workspace clean */
#khs-project-modal .khs-complete-dock{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 16px 6px;padding:10px 12px 10px 14px;border:1px solid #dfe5ed;border-left:3px solid #162a4d;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);box-shadow:0 10px 28px rgba(18,32,55,.045)}
#khs-project-modal .khs-complete-open{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;min-width:0;cursor:pointer;color:#132238}
#khs-project-modal .khs-complete-open-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px}
#khs-project-modal .khs-complete-open-icon svg{display:block;width:44px;height:44px;overflow:visible}
#khs-project-modal .khs-complete-open-icon circle{fill:#fff;stroke:#17345f;stroke-width:1.4;transition:fill .18s ease,stroke .18s ease,transform .18s ease;transform-origin:center}
#khs-project-modal .khs-complete-open-icon path{fill:none;stroke:#17345f;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;animation:khsCompleteArrow 1.7s ease-in-out infinite}
#khs-project-modal .khs-complete-open:hover .khs-complete-open-icon circle,#khs-project-modal .khs-complete-open:focus-visible .khs-complete-open-icon circle{fill:#17345f;stroke:#17345f;transform:scale(1.03)}
#khs-project-modal .khs-complete-open:hover .khs-complete-open-icon path,#khs-project-modal .khs-complete-open:focus-visible .khs-complete-open-icon path{stroke:#fff}
#khs-project-modal .khs-complete-open-copy{display:grid;gap:3px;min-width:0}
#khs-project-modal .khs-complete-open-copy b{font-size:12px;line-height:1.2;font-weight:850;letter-spacing:-.15px;color:#132238}
#khs-project-modal .khs-complete-open-copy small{font-size:8.5px;line-height:1.35;font-weight:650;color:#8993a2}
#khs-project-modal .khs-complete-dock-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
#khs-project-modal .khs-complete-dock-actions button,#khs-project-modal .khs-complete-dock-actions a{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border:1px solid #d7dee8;background:#fff;color:#26374f;font-family:inherit;font-size:9px;line-height:1;font-weight:800;text-decoration:none;cursor:pointer;transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease}
#khs-project-modal .khs-complete-dock-actions button:hover,#khs-project-modal .khs-complete-dock-actions a:hover{border-color:#9eabba;background:#f8fafc;transform:translateY(-1px)}
#khs-project-modal .khs-complete-dock-actions .khs-recompose-button{background:#17263e;color:#fff;border-color:#17263e}
#khs-project-modal .khs-complete-dock-actions .khs-recompose-button:hover{background:#0f1d31;border-color:#0f1d31}
#khs-project-modal .khs-complete-dock-actions .khs-visibility-toggle.is-public{color:#14633c;border-color:#a8d7bd;background:#f5fbf7}
@keyframes khsCompleteArrow{0%,100%{transform:translateX(0)}50%{transform:translateX(2.5px)}}
.kmeta-hs-dark #khs-project-modal .khs-complete-dock{border-color:#293342;border-left-color:#8ba3c5;background:linear-gradient(180deg,#111923 0%,#0e151e 100%);box-shadow:none}
.kmeta-hs-dark #khs-project-modal .khs-complete-open{color:#eef3f9}
.kmeta-hs-dark #khs-project-modal .khs-complete-open-icon circle{fill:#111923;stroke:#9fb2ce}
.kmeta-hs-dark #khs-project-modal .khs-complete-open-icon path{stroke:#c9d5e7}
.kmeta-hs-dark #khs-project-modal .khs-complete-open:hover .khs-complete-open-icon circle,.kmeta-hs-dark #khs-project-modal .khs-complete-open:focus-visible .khs-complete-open-icon circle{fill:#dce7f5;stroke:#dce7f5}
.kmeta-hs-dark #khs-project-modal .khs-complete-open:hover .khs-complete-open-icon path,.kmeta-hs-dark #khs-project-modal .khs-complete-open:focus-visible .khs-complete-open-icon path{stroke:#142238}
.kmeta-hs-dark #khs-project-modal .khs-complete-open-copy b{color:#f2f6fb}
.kmeta-hs-dark #khs-project-modal .khs-complete-open-copy small{color:#9aa7b7}
.kmeta-hs-dark #khs-project-modal .khs-complete-dock-actions button,.kmeta-hs-dark #khs-project-modal .khs-complete-dock-actions a{border-color:#334154;background:#121c28;color:#e7edf6}
.kmeta-hs-dark #khs-project-modal .khs-complete-dock-actions .khs-recompose-button{background:#dbe6f4;color:#132238;border-color:#dbe6f4}
@media(max-width:760px){#khs-project-modal .khs-complete-dock{align-items:flex-start;flex-direction:column;margin:14px 10px 4px}#khs-project-modal .khs-complete-dock-actions{width:100%;justify-content:flex-start}#khs-project-modal .khs-complete-dock-actions button,#khs-project-modal .khs-complete-dock-actions a{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){#khs-project-modal .khs-complete-open-icon path{animation:none}}

/* v9.24 simplified priority reference UI */
#khs-scene-regen-request-form .khs-regen-reference-simple{display:grid;gap:12px;padding:14px;border:1px solid #e2e8f0;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.04)}
#khs-scene-regen-request-form .khs-regen-reference-simple-head{display:flex;align-items:end;justify-content:space-between;gap:10px;flex-wrap:wrap}
#khs-scene-regen-request-form .khs-regen-reference-simple-head>span{font-size:10px;font-weight:900;color:#243244}
#khs-scene-regen-request-form .khs-regen-reference-simple-head>small{font-size:8.8px;line-height:1.5;color:#7b8696}
#khs-scene-regen-request-form .khs-regen-reference-priority-note{padding:8px 10px;border:1px solid #d8e1f0;background:#f7faff;font-size:8.6px;font-weight:800;line-height:1.55;color:#17305c}
#khs-scene-regen-request-form .khs-regen-reference-simple-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#khs-scene-regen-request-form .khs-regen-simple-upload{display:grid;gap:10px;padding:12px;border:1px solid #e2e8f0;background:#fbfcfe}
#khs-scene-regen-request-form .khs-regen-simple-upload-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
#khs-scene-regen-request-form .khs-regen-simple-upload-title{display:flex;align-items:center;gap:10px;min-width:0}
#khs-scene-regen-request-form .khs-regen-simple-upload-title>div{min-width:0;display:grid;gap:2px}
#khs-scene-regen-request-form .khs-regen-simple-upload-title b{font-size:10px;font-weight:900;color:#1f2f45}
#khs-scene-regen-request-form .khs-regen-simple-upload-title small{font-size:8.2px;line-height:1.45;color:#7b8696}
#khs-scene-regen-request-form .khs-regen-simple-icon{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d8e1f0;background:#fff;color:#1a3055;flex:0 0 26px}
#khs-scene-regen-request-form .khs-regen-simple-icon svg{width:15px;height:15px;display:block}
#khs-scene-regen-request-form .khs-regen-upload-clear{border:1px solid #d5dce6;background:#fff;padding:6px 10px;font-size:8.3px;font-weight:800;color:#2a3b54;cursor:pointer;white-space:nowrap}
#khs-scene-regen-request-form .khs-regen-upload-clear:hover{border-color:#0f26b5;color:#0f26b5}
#khs-scene-regen-request-form .khs-regen-simple-upload .khs-regen-upload-drop{min-height:92px;padding:14px}
#khs-scene-regen-request-form .khs-regen-reference-preview{grid-template-columns:1fr}
#khs-scene-regen-request-form .khs-regen-reference-thumb{grid-template-columns:72px minmax(0,1fr);padding:8px;background:#fff}
#khs-scene-regen-request-form .khs-regen-reference-thumb img{width:72px;height:72px}
#khs-scene-regen-request-form .khs-regen-reference-thumb b{font-size:8.3px;color:#526173;white-space:normal;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}
#khs-scene-regen-request-form [data-regen-host-field].is-priority-locked,
#khs-scene-regen-request-form [data-regen-product-field].is-priority-locked{opacity:.46}
#khs-scene-regen-request-form [data-regen-host-id].is-priority-muted{opacity:.55;filter:saturate(.65)}
#khs-scene-regen-request-form [data-regen-host-id][disabled],
#khs-scene-regen-request-form [data-regen-product-id][disabled]{cursor:not-allowed}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-reference-simple{border-color:#29303d;background:#101722;box-shadow:none}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-reference-simple-head>span,
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-simple-upload-title b{color:#eef2f7}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-reference-simple-head>small,
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-simple-upload-title small,
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-reference-thumb b{color:#a6b0be}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-reference-priority-note{border-color:#3a4960;background:#122033;color:#dbe7ff}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-simple-upload{border-color:#29303d;background:#111a26}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-simple-icon,
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-upload-clear,
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-reference-thumb{border-color:#3b4658;background:#151f2c;color:#eef2f7}
@media(max-width:980px){#khs-scene-regen-request-form .khs-regen-reference-simple-grid{grid-template-columns:1fr}}


/* v9.25 wide final clip-edit layout */
.khs-scene-regen-request-card{width:min(1680px,96vw)!important;max-width:1680px!important}
#khs-scene-regen-request-form .khs-scene-regen-toprow{grid-template-columns:minmax(360px,.95fr) minmax(420px,1.05fr)}
#khs-scene-regen-request-form .khs-scene-regen-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px}
#khs-scene-regen-request-form .khs-scene-regen-maincol{grid-template-columns:minmax(0,1fr);gap:16px}
#khs-scene-regen-request-form .khs-scene-regen-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#khs-scene-regen-request-form .khs-regen-reference-simple-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#khs-scene-regen-request-form .khs-regen-choice-field,#khs-scene-regen-request-form .khs-regen-request-field,#khs-scene-regen-request-form .khs-regen-reference-simple{padding:15px 16px!important}
#khs-scene-regen-request-form .khs-regen-request-primary{display:grid;gap:8px;border:1px solid #e2e8f0;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.04)}
#khs-scene-regen-request-form .khs-regen-request-primary>span{font-size:10px;font-weight:900;color:#243244}
#khs-scene-regen-request-form .khs-regen-request-primary textarea{width:100%;min-height:134px;padding:14px 15px;border:1px solid #d8e1eb;background:#fbfcfe;color:#213248;font:inherit;font-size:10px;line-height:1.7;resize:vertical;box-sizing:border-box}
#khs-scene-regen-request-form .khs-regen-request-primary textarea:focus{outline:none;border-color:#0f26b5;background:#fff;box-shadow:0 0 0 3px rgba(15,38,181,.08)}
#khs-scene-regen-request-form .khs-regen-request-primary small{font-size:8.6px;line-height:1.55;color:#7b8696}
#khs-scene-regen-request-form .khs-scene-regen-request-actions{display:flex;justify-content:flex-end;gap:10px}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-request-primary{border-color:#29303d;background:#101722;box-shadow:none}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-request-primary>span{color:#eef2f7}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-request-primary textarea{border-color:#334154;background:#111b27;color:#eef2f7}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-request-primary small{color:#a6b0be}
@media(max-width:1180px){.khs-scene-regen-request-card{width:min(98vw,1180px)!important}#khs-scene-regen-request-form .khs-scene-regen-toprow{grid-template-columns:1fr}#khs-scene-regen-request-form .khs-scene-regen-choice-grid,#khs-scene-regen-request-form .khs-regen-reference-simple-grid{grid-template-columns:1fr}}


/* v9.26 voice selector restored and preserved across image-priority edits */
#khs-scene-regen-request-form .khs-regen-voice-final{display:grid;gap:8px;padding:15px 16px!important;border:1px solid #e2e8f0;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.04)}
#khs-scene-regen-request-form .khs-regen-voice-final>span{font-size:10px;font-weight:900;color:#243244}
#khs-scene-regen-request-form .khs-regen-voice-final>[data-regen-current-voice]{font-size:8.6px;line-height:1.5;color:#7b8696}
#khs-scene-regen-request-form.khs-regen-has-priority-images .khs-regen-voice-final{opacity:1!important;pointer-events:auto!important}
#khs-scene-regen-request-form.khs-regen-has-priority-images .khs-regen-voice-current{opacity:1!important;pointer-events:auto!important}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-voice-final{border-color:#29303d;background:#101722;box-shadow:none}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-voice-final>span{color:#eef2f7}
.kmeta-hs-dark #khs-scene-regen-request-form .khs-regen-voice-final>[data-regen-current-voice]{color:#a6b0be}


/* v9.27 compact wide clip-edit modal + premium green final-video icon */
#khs-project-modal .khs-complete-open-icon circle{fill:#f6fcf8;stroke:#2b7a57;stroke-width:1.45;transition:fill .18s ease,stroke .18s ease,transform .18s ease;transform-origin:center}
#khs-project-modal .khs-complete-open-icon rect{fill:none;stroke:#2b7a57;stroke-width:1.75;stroke-linejoin:round}
#khs-project-modal .khs-complete-open-icon path{stroke:#2b7a57;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;fill:none;animation:khsCompleteArrow 1.7s ease-in-out infinite}
#khs-project-modal .khs-complete-open-icon path:nth-of-type(1){fill:#2b7a57;stroke:none}
#khs-project-modal .khs-complete-open:hover .khs-complete-open-icon circle,#khs-project-modal .khs-complete-open:focus-visible .khs-complete-open-icon circle{fill:#2b7a57;stroke:#2b7a57;transform:scale(1.03)}
#khs-project-modal .khs-complete-open:hover .khs-complete-open-icon rect,#khs-project-modal .khs-complete-open:hover .khs-complete-open-icon path,#khs-project-modal .khs-complete-open:focus-visible .khs-complete-open-icon rect,#khs-project-modal .khs-complete-open:focus-visible .khs-complete-open-icon path{stroke:#fff}
#khs-project-modal .khs-complete-open:hover .khs-complete-open-icon path:nth-of-type(1),#khs-project-modal .khs-complete-open:focus-visible .khs-complete-open-icon path:nth-of-type(1){fill:#fff;stroke:none}
.kmeta-hs-dark #khs-project-modal .khs-complete-open-icon circle{fill:#111923;stroke:#83c6a3}
.kmeta-hs-dark #khs-project-modal .khs-complete-open-icon rect{stroke:#9ad2b4}
.kmeta-hs-dark #khs-project-modal .khs-complete-open-icon path{stroke:#9ad2b4}
.kmeta-hs-dark #khs-project-modal .khs-complete-open:hover .khs-complete-open-icon circle,.kmeta-hs-dark #khs-project-modal .khs-complete-open:focus-visible .khs-complete-open-icon circle{fill:#83c6a3;stroke:#83c6a3}
.kmeta-hs-dark #khs-project-modal .khs-complete-open:hover .khs-complete-open-icon rect,.kmeta-hs-dark #khs-project-modal .khs-complete-open:hover .khs-complete-open-icon path,.kmeta-hs-dark #khs-project-modal .khs-complete-open:focus-visible .khs-complete-open-icon rect,.kmeta-hs-dark #khs-project-modal .khs-complete-open:focus-visible .khs-complete-open-icon path{stroke:#102236}
.kmeta-hs-dark #khs-project-modal .khs-complete-open:hover .khs-complete-open-icon path:nth-of-type(1),.kmeta-hs-dark #khs-project-modal .khs-complete-open:focus-visible .khs-complete-open-icon path:nth-of-type(1){fill:#102236;stroke:none}
.khs-scene-regen-request-card{width:min(1460px,94vw)!important;max-width:1460px!important;max-height:86vh!important}
#khs-scene-regen-request-form .khs-scene-regen-toprow{grid-template-columns:minmax(300px,.95fr) minmax(360px,1.05fr)!important;gap:10px!important}
#khs-scene-regen-request-form .khs-scene-regen-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
#khs-scene-regen-request-form .khs-scene-regen-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important}
#khs-scene-regen-request-form .khs-regen-reference-simple-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important}
#khs-scene-regen-request-form .khs-regen-choice-field,#khs-scene-regen-request-form .khs-regen-request-field,#khs-scene-regen-request-form .khs-regen-reference-simple,#khs-scene-regen-request-form .khs-regen-voice-final{padding:11px 12px!important}
#khs-scene-regen-request-form .khs-regen-choice-field{gap:5px!important}
#khs-scene-regen-request-form .khs-regen-choice-field>span,#khs-scene-regen-request-form .khs-regen-request-field>span,#khs-scene-regen-request-form .khs-regen-reference-simple-head>span,#khs-scene-regen-request-form .khs-regen-voice-final>span{font-size:9.4px!important}
#khs-scene-regen-request-form .khs-regen-choice-field>small,#khs-scene-regen-request-form .khs-regen-reference-simple-head>small,#khs-scene-regen-request-form .khs-regen-request-primary small,#khs-scene-regen-request-form .khs-regen-voice-final>[data-regen-current-voice]{font-size:8.1px!important;line-height:1.45!important}
#khs-scene-regen-request-form .khs-regen-upload-drop{min-height:68px!important;padding:10px 11px!important}
#khs-scene-regen-request-form .khs-regen-upload-drop em{font-size:8.8px!important}
#khs-scene-regen-request-form .khs-regen-upload-drop i{font-size:7.9px!important}
#khs-scene-regen-request-form .khs-regen-request-primary{gap:6px!important}
#khs-scene-regen-request-form .khs-regen-request-primary textarea{min-height:88px!important;padding:11px 12px!important;font-size:9.4px!important;line-height:1.6!important}
#khs-scene-regen-request-form .khs-scene-regen-request-actions{padding-top:2px!important}
@media(max-width:1180px){.khs-scene-regen-request-card{width:min(97vw,1180px)!important;max-height:88vh!important}#khs-scene-regen-request-form .khs-scene-regen-toprow{grid-template-columns:1fr!important}#khs-scene-regen-request-form .khs-scene-regen-choice-grid,#khs-scene-regen-request-form .khs-regen-reference-simple-grid{grid-template-columns:1fr!important}}


/* v9.28 final alignment + compact desktop clip editor */
.khs-scene-regen-request-card{
  width:min(1240px,94vw)!important;
  max-width:1240px!important;
  max-height:92vh!important;
  overflow:hidden!important;
}
.khs-scene-regen-request-head{padding:15px 20px 11px!important}
.khs-scene-regen-request-head>span{margin-bottom:3px!important}
.khs-scene-regen-request-head h3{font-size:20px!important;line-height:1.15!important}
.khs-scene-regen-request-head p{margin-top:4px!important;font-size:8.8px!important;line-height:1.4!important;max-width:none!important}
#khs-scene-regen-request-form{padding:10px 18px 12px!important;gap:9px!important}
#khs-scene-regen-request-form .khs-scene-regen-shell{gap:9px!important}
#khs-scene-regen-request-form .khs-scene-regen-toprow,
#khs-scene-regen-request-form .khs-scene-regen-choice-grid,
#khs-scene-regen-request-form .khs-regen-reference-simple-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}
#khs-scene-regen-request-form .khs-scene-regen-grid{display:block!important}
#khs-scene-regen-request-form .khs-scene-regen-maincol{display:grid!important;gap:9px!important;min-width:0!important}
#khs-scene-regen-request-form .khs-scene-regen-toprow>* ,
#khs-scene-regen-request-form .khs-scene-regen-choice-grid>* ,
#khs-scene-regen-request-form .khs-regen-reference-simple-grid>*{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
#khs-scene-regen-request-form .khs-scene-regen-current,
#khs-scene-regen-request-form .khs-scene-regen-cost{
  min-height:58px!important;
  height:58px!important;
  box-sizing:border-box!important;
}
#khs-scene-regen-request-form .khs-scene-regen-current{padding:8px 10px!important}
#khs-scene-regen-request-form .khs-scene-regen-cost{padding:7px 10px!important;gap:2px 10px!important}
#khs-scene-regen-request-form .khs-scene-regen-cost strong{font-size:16px!important}
#khs-scene-regen-request-form .khs-scene-regen-cost>small{font-size:7.5px!important;line-height:1.25!important;padding-top:3px!important}
#khs-scene-regen-request-form .khs-regen-choice-field,
#khs-scene-regen-request-form .khs-regen-request-field,
#khs-scene-regen-request-form .khs-regen-reference-simple,
#khs-scene-regen-request-form .khs-regen-voice-final{
  padding:8px 10px!important;
  box-sizing:border-box!important;
  box-shadow:none!important;
}
#khs-scene-regen-request-form .khs-scene-regen-choice-grid .khs-regen-choice-field{
  min-height:92px!important;
  height:92px!important;
}
#khs-scene-regen-request-form .khs-regen-thumb-grid{
  min-height:62px!important;
  height:62px!important;
  gap:6px!important;
  padding:1px 1px 2px!important;
  align-items:center!important;
}
#khs-scene-regen-request-form .khs-regen-thumb-choice{
  flex:0 0 54px!important;
  width:54px!important;
  height:60px!important;
  padding:2px!important;
  border-radius:7px!important;
}
#khs-scene-regen-request-form .khs-regen-thumb-choice img{border-radius:4px!important}
#khs-scene-regen-request-form .khs-regen-thumb-choice>i{right:4px!important;bottom:4px!important;width:14px!important;height:14px!important}
#khs-scene-regen-request-form .khs-regen-thumb-choice.selected>i:after{left:3px!important;top:3px!important;width:6px!important;height:3px!important}
#khs-scene-regen-request-form [data-regen-emotion-field]{padding:7px 10px!important}
#khs-scene-regen-request-form .khs-regen-emotion-grid{gap:5px!important}
#khs-scene-regen-request-form .khs-regen-emotion-choice{
  min-height:40px!important;
  height:40px!important;
  padding:3px 2px!important;
  gap:2px!important;
  border-radius:6px!important;
}
#khs-scene-regen-request-form .khs-regen-emotion-choice svg{width:16px!important;height:16px!important}
#khs-scene-regen-request-form .khs-regen-emotion-choice span{font-size:6.8px!important}
#khs-scene-regen-request-form .khs-regen-reference-simple{gap:7px!important}
#khs-scene-regen-request-form .khs-regen-reference-simple-head{align-items:center!important;min-height:20px!important}
#khs-scene-regen-request-form .khs-regen-reference-simple-head>small{font-size:7.4px!important;line-height:1.3!important}
#khs-scene-regen-request-form .khs-regen-simple-upload{
  gap:6px!important;
  padding:8px!important;
  min-height:80px!important;
}
#khs-scene-regen-request-form .khs-regen-simple-upload-head{gap:7px!important}
#khs-scene-regen-request-form .khs-regen-simple-icon{width:22px!important;height:22px!important;flex-basis:22px!important}
#khs-scene-regen-request-form .khs-regen-simple-icon svg{width:13px!important;height:13px!important}
#khs-scene-regen-request-form .khs-regen-simple-upload-title b{font-size:8.8px!important}
#khs-scene-regen-request-form .khs-regen-simple-upload-title small{font-size:7.1px!important;line-height:1.25!important}
#khs-scene-regen-request-form .khs-regen-upload-drop{
  min-height:44px!important;
  height:44px!important;
  padding:6px 9px!important;
  gap:1px!important;
}
#khs-scene-regen-request-form .khs-regen-upload-drop em{font-size:8px!important}
#khs-scene-regen-request-form .khs-regen-upload-drop i{font-size:6.9px!important;line-height:1.2!important}
#khs-scene-regen-request-form .khs-regen-reference-priority-note{padding:5px 8px!important;font-size:7.3px!important;line-height:1.3!important}
#khs-scene-regen-request-form .khs-regen-request-primary{
  gap:4px!important;
  padding:7px 10px!important;
}
#khs-scene-regen-request-form .khs-regen-request-primary textarea{
  min-height:54px!important;
  height:54px!important;
  padding:7px 9px!important;
  font-size:8.7px!important;
  line-height:1.45!important;
  resize:none!important;
}
#khs-scene-regen-request-form .khs-regen-request-primary small{font-size:7.2px!important;line-height:1.25!important}
#khs-scene-regen-request-form .khs-regen-voice-final{gap:4px!important;padding:7px 10px!important}
#khs-scene-regen-request-form .khs-regen-voice-current{
  min-height:42px!important;
  height:42px!important;
  padding:5px 9px!important;
  gap:10px!important;
}
#khs-scene-regen-request-form .khs-regen-voice-current>.khs-regen-voice-host-photo{
  flex-basis:32px!important;width:32px!important;height:34px!important;
}
#khs-scene-regen-request-form .khs-regen-voice-current b{font-size:9.5px!important}
#khs-scene-regen-request-form .khs-regen-voice-current small{font-size:7.2px!important}
#khs-scene-regen-request-form .khs-regen-voice-current em{font-size:7.2px!important;padding-left:9px!important}
#khs-scene-regen-request-form .khs-regen-voice-final>[data-regen-current-voice]{font-size:7px!important;line-height:1.2!important}
#khs-scene-regen-request-form .khs-scene-regen-request-actions{
  position:static!important;
  border-top:1px solid #edf2f7!important;
  padding-top:8px!important;
  margin-top:0!important;
}
#khs-scene-regen-request-form .khs-scene-regen-request-actions button{min-height:34px!important;padding-top:0!important;padding-bottom:0!important}
@media (min-width:901px) and (min-height:780px){
  .khs-scene-regen-request-card{overflow:hidden!important}
}
@media (max-height:779px){
  .khs-scene-regen-request-card{overflow:auto!important;max-height:94vh!important}
}
@media(max-width:900px){
  .khs-scene-regen-request-card{width:min(98vw,860px)!important;max-width:860px!important;overflow:auto!important}
  #khs-scene-regen-request-form .khs-scene-regen-toprow,
  #khs-scene-regen-request-form .khs-scene-regen-choice-grid,
  #khs-scene-regen-request-form .khs-regen-reference-simple-grid{grid-template-columns:1fr!important}
  #khs-scene-regen-request-form .khs-scene-regen-current,
  #khs-scene-regen-request-form .khs-scene-regen-cost,
  #khs-scene-regen-request-form .khs-scene-regen-choice-grid .khs-regen-choice-field{height:auto!important;min-height:0!important}
}
