@font-face{font-family:Pretendard;src:url(fonts/PretendardVariable.woff2) format("woff2");font-weight:100 900;font-display:swap}@font-face{font-family:Instrument;src:url(fonts/InstrumentSerif-Italic.woff2);font-style:italic;font-display:swap}@font-face{font-family:Geist;src:url(fonts/GeistMono-Variable.woff2);font-display:swap}
:root{--paper:#f5f4ef;--ink:#161a1d;--dim:#626966;--rule:#d4d5ce;--blue:#2d43d9;--light:#e9ecfc;--mono:Geist,monospace;font:15px/1.45 Pretendard,-apple-system,sans-serif;font-synthesis:none;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button,a{touch-action:manipulation}button{background:none;border:0;cursor:pointer;padding:0}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #667aff;outline-offset:3px}button:disabled{opacity:.42;cursor:default}svg{width:17px;height:17px;display:block;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}i[data-icon]{display:inline-flex;align-items:center;justify-content:center;font-style:normal;flex:none}.wrap{max-width:1600px;width:calc(100% - clamp(40px,8vw,140px));margin:auto}.global{border-bottom:1px solid var(--rule);background:#f4f3ee}.bar,.bar nav,.barEnd,.brand,.plain,.blue,.crumb,.titleline,.stages,.sheetHead,.visualOptions,.styleSet,.transport,.viewOverlay,.dialogHead,.miniRow,.rowBar,.tabs{display:flex;align-items:center}.bar{height:62px;gap:clamp(28px,6vw,104px)}.brand{font-weight:880;font-size:21px;letter-spacing:-1.1px;gap:7px}.brand>i{display:grid;place-items:center;width:27px;height:27px;border-radius:6px;background:var(--blue);transform:rotate(-3deg)}.brand b{display:block;width:13px;height:15px;border-left:5px solid #fff;border-bottom:5px solid #fff;transform:skew(-10deg)}.brand span{font:italic 21px Instrument,Georgia;color:#606664;letter-spacing:-.55px;margin-left:-2px}.bar nav{align-self:stretch;gap:28px;font-size:13px;font-weight:680;color:var(--dim)}.bar nav>*{display:flex;align-items:center;position:relative;white-space:nowrap}.bar nav .navOn{color:var(--ink)}.navOn:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--blue)}.barEnd{margin-left:auto;gap:23px}.by{font:600 10px var(--mono);letter-spacing:.12em;border-left:1px solid var(--rule);padding-left:21px}.plain,.blue,.borderBtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:680;font-size:13px}.blue{background:var(--blue);color:white;border-radius:7px;padding:11px 16px}.blue:hover{background:#2034b6}.plain:hover,.crumb:hover,.bar nav button:hover,footer a:hover{color:var(--blue)}.mast{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:28px 0 20px}.crumb{gap:6px;color:var(--dim);font-weight:630;font-size:12px}.crumb b{font-weight:400;color:#a3a6a1}.crumb svg{width:13px;height:13px}.titleline{flex-wrap:wrap;gap:16px;margin:5px 0}.titleline h1{font-size:clamp(34px,3.52vw,59px);letter-spacing:-.074em;line-height:1.12;margin:2px 0;font-weight:830}.titleline>span{font:italic clamp(23px,2.1vw,35px)/1.1 Instrument,Georgia;color:#585f5f}.mast p{margin:8px 0 0;color:var(--dim);font-size:13px;font-weight:530}.stages{border-bottom:1px solid #c4c7c0;gap:clamp(10px,2.6vw,44px);margin-bottom:23px;overflow:auto;scrollbar-width:none}.stages::-webkit-scrollbar{display:none}.stage{white-space:nowrap;display:flex;align-items:center;gap:7px;padding:12px 2px 13px;color:var(--dim);font-size:14px;font-weight:660;position:relative}.stage span{font:10px var(--mono);opacity:.8}.stage.active{color:var(--blue)}.stage.active:after{content:"";position:absolute;height:3px;background:var(--blue);bottom:0;left:0;right:0}.desk{display:grid;grid-template-columns:minmax(0,2.05fr) minmax(275px,.92fr);gap:clamp(22px,2.8vw,50px);align-items:start}.visualCol,.inspector{min-width:0}.monitor{background:#11191c;color:#eff3ee;border-radius:8px;overflow:hidden;position:relative}.view{height:clamp(210px,24vw,390px);position:relative;display:flex;align-items:center;justify-content:center;isolation:isolate;background:#11191c}.view>img,.view>video{width:100%;height:100%;object-fit:contain;display:block}.view>img.wide{object-fit:cover;object-position:50% 52%}.view.matte{background:radial-gradient(ellipse at center,#2b3638,#101719 75%)}.viewOverlay{position:absolute;top:13px;left:14px;right:14px;justify-content:space-between;pointer-events:none}.viewOverlay>span,.glass{background:#0b151bcf;border:1px solid #ffffff40;border-radius:4px;color:white;display:inline-flex;align-items:center;justify-content:center;line-height:1}.viewOverlay>span{padding:7px 8px;font:10px var(--mono);letter-spacing:.07em}.glass{width:31px;height:29px;pointer-events:auto}.viewOverlay>span:before{content:"";width:5px;height:5px;background:#dce8e4;margin-right:7px}.transport{height:43px;gap:12px;padding:0 13px;background:#172024;color:#f1f3ee}.transport button{color:inherit;padding:5px}.transport .clock{font:10px var(--mono);color:#e4ebe5;white-space:nowrap}.transport input{accent-color:#bbc6ff;height:4px;flex:1;min-width:15px;cursor:pointer}.visualOptions{justify-content:space-between;gap:8px;margin-top:11px}.styleSet,.tabs{padding:3px;background:#e6e7e0;border-radius:6px;gap:1px}.styleSet button,.tabs button{font-size:12px;padding:6px 10px;border-radius:4px;color:#565d59;font-weight:620}.styleSet .active,.tabs .active{background:#fff;color:var(--ink);box-shadow:0 1px 3px #1720181f}.visualOptions>.plain{font-size:12px}.visualOptions>.plain[aria-pressed=true]{color:var(--blue)}.compareView{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;width:100%;height:100%;padding:43px 6px 7px}.compareView figure{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}.compareView img{width:100%;height:calc(100% - 24px);object-fit:contain}.compareView figcaption{font-size:11px;color:#e8eae8;margin-top:4px}.label,.small,.snum{font:10px/1.4 var(--mono);letter-spacing:.08em}.blueInk{color:var(--blue)}.inspector{border-top:2px solid var(--ink);padding-top:12px}.miniRow,.rowBar{justify-content:space-between;gap:8px}.inspector h2{font-size:clamp(23px,2.15vw,36px);line-height:1.15;letter-spacing:-.055em;margin:10px 0 11px}.prose{color:#333a38;line-height:1.62;margin:0 0 14px;font-weight:500;word-break:keep-all}.specs{margin:0;border-top:1px solid var(--rule)}.specs>div{display:grid;grid-template-columns:76px 1fr;gap:7px;border-bottom:1px solid var(--rule);padding:8px 0;font-size:13px;line-height:1.4}.specs dt{color:var(--dim)}.specs dd{margin:0;word-break:keep-all}.promptBtn,.borderBtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #bac1b9;padding:8px 11px;border-radius:5px;font-weight:640;font-size:12px}.promptBtn{background:#e9ecfc;color:#243dc1;border-color:#ccd2f2}.rowBar{margin-top:13px;flex-wrap:wrap}.minor,.small{color:var(--dim)}.minor{font-size:12px;line-height:1.5}.sheet{margin-top:24px;padding:17px 0 21px;border-top:1px solid #b5bbb3}.sheetHead{justify-content:space-between;align-items:flex-end;margin-bottom:12px}.sheetHead h2{margin:1px 0 0;font-size:23px;letter-spacing:-.045em}.sheetHead em{font-size:13px;color:var(--dim);font-style:normal;font-weight:520;margin-left:7px}.strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.cut{min-width:0;text-align:left;display:block}.thumb{position:relative;overflow:hidden;display:block;border-radius:5px;background:#1d2728;border:2px solid transparent}.thumb>img{width:100%;height:clamp(63px,7.7vw,126px);object-fit:cover;display:block;opacity:.86}.cut.active .thumb{border-color:var(--blue)}.cut.active .thumb img,.cut:hover .thumb img{opacity:1}.shotBadge,.length{position:absolute;background:#131817c7;color:#fff;font:10px var(--mono);line-height:1.2;border-radius:2px;padding:3px 5px}.shotBadge{left:6px;top:6px}.cut.active .shotBadge{background:var(--blue)}.length{right:5px;bottom:5px}.cutTitle{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:6px 1px}.cutTitle strong{font-weight:650;font-size:14px}.cutTitle small{font:10px var(--mono);color:var(--dim)}footer{border-top:1px solid var(--rule);display:flex;justify-content:space-between;color:#6a726e;align-items:center;padding:15px 0 24px;font:10px var(--mono)}footer b{opacity:.5}footer a{display:flex;align-items:center;gap:4px;font:600 12px Pretendard}footer svg{width:12px}
dialog{background:var(--paper);color:var(--ink);border:1px solid #b6bcb4;border-radius:13px;padding:0;width:min(850px,94vw);max-height:90dvh;box-shadow:0 28px 100px #07121952}dialog::backdrop{background:#0b1519a8}dialog .dialogHead{position:sticky;top:0;z-index:2;justify-content:space-between;background:var(--paper);padding:17px 24px;border-bottom:1px solid var(--rule)}.dialogHead h2{font-size:23px;margin:0;letter-spacing:-.04em}.dialogHead button{padding:7px}.dialogHead+div{padding:19px 24px 24px}.field{font-size:12px;font-weight:700;display:block;margin:10px 0 5px}.field:first-child{margin-top:0}textarea,select,input[type=search]{background:#fbfbf8;border:1px solid #bdc4bc;border-radius:5px;padding:8px 10px;width:100%}textarea{line-height:1.5;resize:vertical;font-size:13px}.modelRow{display:grid;gap:8px;grid-template-columns:1fr 1fr 1fr}.projectGrid,.refGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:15px}.projectTile{text-align:left;min-width:0}.projectTile img{width:100%;height:100px;object-fit:cover;border-radius:5px;display:block}.projectTile strong,.projectTile small{display:block;margin-top:3px}.projectTile small{color:var(--dim);font-size:11px}.filters{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.filters button{border:1px solid var(--rule);font-size:12px;border-radius:4px;padding:5px 10px}.filters .active{background:var(--ink);color:white}.linkrow{display:flex;align-items:center;gap:10px;justify-content:space-between;border-bottom:1px solid var(--rule);padding:10px 0}.linkrow small{color:var(--dim);font-size:12px}.linkrow a{text-decoration:underline;text-underline-offset:3px}.tagBtn{font-size:12px;font-weight:650;color:var(--blue)}.dialogMedia{max-height:65vh;width:100%;object-fit:contain;background:#111b1f;display:block}.pTools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:12px 0}.pTools button{min-height:35px}.result{min-height:166px;background:#fff}.promptNote{font-size:12px;color:var(--dim);margin:8px 0}.saveMsg{color:var(--blue);font-size:12px;min-height:1.2em}.stale{color:#96441b;font-size:12px;font-weight:660}.editField textarea{margin-bottom:4px}.mediaLinks{display:flex;gap:12px;flex-wrap:wrap}.mediaLinks a{color:var(--blue);font-size:12px;text-decoration:underline}.auxNote{padding:9px 12px;border-left:2px solid var(--blue);background:#eaece6;font-size:13px;line-height:1.55}.refVisual{display:flex;width:100%;height:100%;justify-content:center;align-items:center}.refVisual img{height:100%;max-width:100%;object-fit:contain}.refVisual small{position:absolute;bottom:9px;left:12px;padding:3px 7px;background:#121a16be;color:#fff;border-radius:4px}.tabs{display:inline-flex}.monoTag{font:10px var(--mono);text-transform:uppercase;letter-spacing:.035em;color:var(--dim)}#status{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);background:#162223;color:white;padding:9px 15px;border-radius:7px;font-size:13px;z-index:5;opacity:0;pointer-events:none}#status.on{opacity:1}
@media(min-width:1650px){.view{height:415px}}@media(max-width:900px){.wrap{width:calc(100% - 42px)}.desk{grid-template-columns:minmax(0,1.5fr) minmax(245px,1fr);gap:19px}.view{height:clamp(240px,31vw,320px)}.bar{gap:30px}.inspector h2{font-size:24px}.specs>div{grid-template-columns:67px 1fr;font-size:12px}.barEnd{gap:15px}.strip{gap:9px}.by{display:none}}
@media(max-width:700px){.wrap{width:calc(100% - 32px)}.bar{height:54px;gap:17px}.brand{font-size:18px}.brand>i{width:23px;height:23px}.brand span{display:none}.bar nav{gap:12px;font-size:12px}.barEnd{margin-left:auto}.barEnd .plain span{display:none}.barEnd .plain{padding:8px}.mast{padding:21px 0 16px}.titleline{gap:4px;display:block}.titleline>span{font-size:22px}.titleline h1{font-size:36px}.mast p{font-size:12px;line-height:1.35;margin-top:4px}.heroPlay{font-size:12px;padding:10px;gap:5px}.stages{margin-bottom:14px;gap:18px}.stage{padding:10px 0;font-size:12px;gap:4px}.stage span{font-size:9px}.desk{display:flex;flex-direction:column;gap:19px}.visualCol,.inspector{width:100%}.view{height:auto;aspect-ratio:1.95}.view>img,.view>video,.refVisual,.compareView{position:absolute;inset:0}.transport{height:38px;gap:6px}.viewOverlay{top:8px;left:8px;right:8px}.styleSet button{padding:6px 8px}.sheet{margin-top:18px}.strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}.thumb>img{height:auto;aspect-ratio:1.85}.titleline h1+span{display:block}.sheetHead h2{font-size:20px}.sheetHead em{font-size:11px}.specs>div{grid-template-columns:80px 1fr;font-size:13px}.inspector{padding-top:10px}.inspector h2{margin:7px 0}.projectGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.dialogHead+div,.dialogHead{padding:15px!important}.modelRow{grid-template-columns:1fr}.stages .stage{flex-shrink:0}.cutTitle small{font-size:9px}.cutTitle strong{font-size:13px}.small{font-size:9px}.mediaLinks{gap:7px}}@media(max-width:380px){.bar nav{gap:8px}.bar{gap:11px}.strip .cutTitle small{display:none}.heroPlay{font-size:11px}.stages{gap:12px}}
.dialogMedia img{max-width:100%;max-height:65vh;display:block;margin:auto;object-fit:contain}.dialogMedia .compareView{min-height:220px}.dialogMedia .refVisual{position:relative}.dialogMedia .refVisual img{max-height:65vh}
.workflowBar{display:flex;align-items:stretch;gap:clamp(12px,2.4vw,40px);border-bottom:1px solid #bec5bd;margin-bottom:20px}.phases{display:flex;align-items:center;gap:6px;white-space:nowrap}.phases button{font-size:12px;font-weight:650;color:#626a64;padding:5px 7px;border-radius:4px}.phases button.active{color:#273dc1;background:#e0e5fa}.phases span{color:#969f98;font-size:13px}.workflowBar .stages{margin:0;border:0;gap:clamp(10px,1.65vw,30px)}.stage{font-size:13px}.flowSettings{display:flex;gap:12px;align-items:flex-end}.flowSettings .field{margin:0;flex:1}.flowSettings select{display:block;margin-top:4px}.flowGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}.flowGrid section{border-top:2px solid #192420;padding-top:8px}.flowGrid h3{margin:4px 0 10px}.flowGrid button{display:flex;width:100%;text-align:left;flex-direction:column;gap:2px;padding:7px 0;border-bottom:1px solid var(--rule)}.flowGrid button:hover{color:var(--blue)}.flowGrid small{color:var(--dim)}.inspector .field{margin-top:8px}@media(max-width:1030px){.workflowBar{display:block}.phases{padding:2px 0 0}.workflowBar .stages{gap:20px}}@media(max-width:700px){.bar .resNav{display:none}.workflowBar{margin-bottom:13px}.phases{margin-bottom:2px}.stages .stage{padding:7px 0 9px}.flowGrid{grid-template-columns:1fr;gap:10px}.flowGrid section{display:grid;grid-template-columns:repeat(2,1fr);column-gap:10px}.flowGrid h3{grid-column:1/-1;margin:0}.flowGrid .label{grid-column:1/-1}.flowSettings{gap:5px}}
.connect{padding:9px 12px;margin:8px 0 10px;border:1px solid var(--rule);border-radius:5px}.connect summary{cursor:pointer;font-size:12px;font-weight:680}.connect input{display:block;width:100%;padding:7px 10px;border:1px solid var(--rule);border-radius:4px}footer .plain{font-size:11px}

.footNav{display:flex;align-items:center;gap:17px}@media(min-width:1040px) and (max-height:850px){.bar{height:52px}.mast{padding:18px 0 13px}.titleline h1{font-size:42px}.workflowBar{margin-bottom:16px}.view{height:clamp(236px,32vh,310px)}.sheet{margin-top:18px;padding-top:12px}.sheetHead{margin-bottom:7px}.thumb>img{height:74px}}

.sendStep{margin-left:auto;font-weight:650;white-space:nowrap;font-size:12px;color:var(--blue)}@media(max-width:1030px){.workflowBar{position:relative}.sendStep{position:absolute;right:0;top:3px;padding:3px 0}}@media(max-width:430px){.workflowBar .stages{gap:14px}.workflowBar .stage{font-size:11px}}

.methodFilter{display:inline-flex;align-items:center;gap:8px;margin-top:10px;font-size:12px;color:var(--dim)}.methodFilter select{width:auto;padding:3px 17px 3px 7px}
@media(max-width:700px){
 main.wrap{display:flex;flex-direction:column}.mast{order:0}.workflowBar{order:1}.desk{display:contents}.visualCol{order:2}.sheet{order:3;border:none;padding:0;margin:16px 0}.inspector{order:4}footer{order:5;margin-top:18px}.sheetHead{margin-bottom:7px}.strip{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:8px;padding:1px 1px 3px}.cut{flex:0 0 34%;scroll-snap-align:start}.cutTitle{margin:4px 0;font-size:12px}.cutTitle strong{font-size:12px}.cutTitle small{display:none}.thumb>img{aspect-ratio:1.9}.sheetHead .label{display:none}.sheetHead h2{font-size:18px}
}

/* Match the viewing room to the project introduction. */
:root{color-scheme:dark;--paper:#101416;--ink:#eef0ed;--dim:#b1bbb9;--rule:#384044;--blue:#b4c3ff;--light:#293444}
.global{background:#101416}.brand>i,.blue{background:#354bd3}.blue:hover{background:#425be7}
.brand span,.titleline>span{color:#b7c1c0}.stages,.workflowBar,.sheet,dialog{border-color:#3d484d}
.styleSet,.tabs{background:#20272b}.styleSet button,.tabs button,.phases button{color:#bec8cb}
.styleSet .active,.tabs .active,.phases button.active{background:#344252;color:#e5eaff}.phases span{color:#8c989d}
.prose{color:#d0d7d6}.borderBtn{border-color:#536064}.promptBtn{background:#28364a;color:#d5e0ff;border-color:#4a5b75}
.shotBadge,.length{background:#0c1419dc}.cut.active .shotBadge,.filters .active{background:#b4c3ff;color:#172337}
textarea,select,input[type=search],.connect input,.result{background:#191f23;color:var(--ink);border-color:#4a565b}
.auxNote{background:#202a30}.stale{color:#ffc194}.flowGrid section{border-color:#889699}footer{color:#aeb9bc}
.flowSettings option{color:var(--ink);background:#191f23}#status{background:#d6e3e2;color:#142326}

.mast-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mast-actions a{text-decoration:none;white-space:nowrap}

/* Project model picker */
.barEnd .modelEntry{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 15px;border:1px solid #729c8f;border-radius:8px;background:#18352e;color:#beffdf;font-weight:730;font-size:14px;white-space:nowrap}
.barEnd .modelEntry:hover{background:#25473d}
.barEnd .modelEntry span{display:inline}
#drawer[data-panel=models]{width:min(880px,calc(100vw - 32px));border:1px solid #475854;border-radius:18px;background:#111718}
#drawer[data-panel=models] .dialogHead{background:#111718;padding:19px 26px;border-bottom:1px solid #384440}
#drawer[data-panel=models] .dialogHead h2{font-size:clamp(23px,3vw,31px);line-height:1.2;letter-spacing:-.045em}
#drawer[data-panel=models] .dialogHead button{display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #46524f;border-radius:50%;color:#ecf5ef}
#drawer[data-panel=models] #dialogBody{padding:0}
.modelContent{padding:18px 26px 24px}
.modelIntro{margin:0 0 20px;color:#c3d0cb;font-size:15px;line-height:1.6;word-break:keep-all}
.modelIntro strong{color:#f1f7f4}
.modelGroups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.modelGroup{--accent:#83edc2;--selected:#193f33;min-width:0;margin:0;border:1px solid #495651;border-radius:12px;padding:16px;background:#1a2121}
.modelGroup:nth-child(2){--accent:#c0b6ff;--selected:#35314c}
.modelGroup:nth-child(3){--accent:#ffd398;--selected:#453626}
.modelGroup legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.modelHeading{display:grid;gap:3px;margin-bottom:14px}
.modelHeading small{font:650 11px/1.6 var(--mono);letter-spacing:.1em;color:var(--accent)}
.modelHeading strong{font-size:22px;line-height:1.3;color:#f4f7f5;letter-spacing:-.045em}
.modelHeading span{font-size:13px;line-height:1.5;color:#c3cec9}
.modelOptions{display:grid;gap:7px}
.modelChoice{position:relative;cursor:pointer}
.modelChoice input{position:absolute;opacity:0;inset:0;margin:0;width:100%;height:100%;cursor:pointer}
.modelChoice span{display:flex;gap:10px;align-items:center;min-height:44px;padding:8px 12px;border-radius:7px;border:1px solid #55625c;background:#222b28;color:#e9efec;font-size:15px;font-weight:600}
.modelChoice i{width:16px;height:16px;border:1.5px solid #a4b3aa;border-radius:50%;flex:none;display:grid;place-items:center}
.modelChoice input:checked+span{background:var(--selected);border-color:var(--accent);color:#fff}
.modelChoice input:checked+span i{color:#10261d;background:var(--accent);border-color:var(--accent)}
.modelChoice input:checked+span i::after{content:"";height:6px;width:3px;border:solid currentColor;border-width:0 1.7px 1.7px 0;transform:translateY(-1px) rotate(45deg)}
.modelChoice:hover span{border-color:#e5f0e9}
.modelChoice input:focus-visible+span{outline:2px solid #fff;outline-offset:2px}
.modelActions{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 26px;border-top:1px solid #394740;background:#111718;z-index:1}
.modelActions p{font-size:13px;line-height:1.5;color:#c4d0ca;margin:0}
.modelSave{background:#a0f1cc;color:#10291f;border-radius:8px;min-height:46px;font-size:15px;font-weight:750;padding:0 23px;white-space:nowrap}
.modelSave:hover{background:#c1ffe1}
@media(max-width:700px){.barEnd .modelEntry{min-height:40px;padding:0 9px;font-size:13px;gap:5px}.bar:has(.modelEntry){gap:10px}.modelGroups{grid-template-columns:1fr}.modelGroup{padding:13px}.modelHeading{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:8px;margin-bottom:9px}.modelHeading strong{font-size:19px}.modelOptions{grid-template-columns:1fr 1fr}.modelContent{padding:14px}.modelActions{padding:10px 14px}.modelActions p{font-size:12px}#drawer[data-panel=models] .dialogHead{padding:10px 14px}.modelIntro{margin-bottom:12px}.modelSave{padding:0 15px}}
@media(max-width:420px){.bar:has(.modelEntry) nav{gap:6px}.bar:has(.modelEntry) .barEnd{gap:0}.bar:has(.modelEntry) nav button,.bar:has(.modelEntry) nav a{font-size:11px}}
#drawer[data-panel=models][open]{display:flex;flex-direction:column;overflow:hidden;max-height:92dvh}
#drawer[data-panel=models] .dialogHead{flex:none}
#drawer[data-panel=models] #dialogBody{display:flex;min-height:0;flex-direction:column}
.modelContent{overflow-y:auto;overscroll-behavior:contain}
.modelActions{position:static;flex:none}
@media(min-width:701px) and (max-height:570px){
 #drawer[data-panel=models] .dialogHead{padding:6px 14px}
 #drawer[data-panel=models] .dialogHead h2{font-size:22px}
 .modelContent{padding:9px 14px 12px}.modelIntro{margin-bottom:8px;font-size:13px}
 .modelGroups{grid-template-columns:1fr;gap:5px}.modelGroup{display:flex;align-items:center;gap:8px;padding:6px 9px}
 .modelHeading{width:70px;flex:none;gap:0;margin:0}.modelHeading strong{font-size:15px}.modelHeading small{font-size:9px}.modelHeading span{display:none}
 .modelOptions{flex:1;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 .modelChoice span{justify-content:center;padding:6px 3px;gap:4px;font-size:12px;min-height:38px}.modelChoice i{width:13px;height:13px}
 .modelActions{padding:5px 14px}.modelActions p{font-size:11px}.modelSave{min-height:40px;font-size:14px}
}
#drawer[data-panel=models] #dialogTitle:focus{outline:none}
@media(max-width:370px){
 .bar:has(.modelEntry) nav{min-width:0;overflow-x:auto;white-space:nowrap;scrollbar-width:none}.bar .modelEntry{min-width:0}
 .modelGroup{padding:9px}.modelHeading{display:grid}.modelChoice span{padding:7px;gap:5px;font-size:13px}
 .modelActions{display:grid;gap:6px}.modelActions p{font-size:11px}.modelActions .modelSave{width:100%;min-height:40px}
}
#drawer[data-panel=models]{background:#0e1518}
#drawer[data-panel=models] .dialogHead{background:linear-gradient(105deg,#142623,#131b23 65%,#1e1c2d);border-bottom:1px solid #52615e}
#drawer[data-panel=models] .dialogHead h2:before{content:"";display:inline-block;width:10px;height:10px;margin:0 12px 4px 0;border-radius:3px;transform:rotate(45deg);background:#99ffd8;box-shadow:3px -3px 0 #676eb3}
.modelGroup{border-top:2px solid var(--accent)}
.enginePreview{--tone:#92ecc3;margin-top:14px;border:1px solid #41575a;border-radius:10px;overflow:clip;background:linear-gradient(115deg,#132424,#151d24 65%,#20202b)}
.enginePreview[data-target="1"]{--tone:#cdc2ff}.enginePreview[data-target="2"]{--tone:#ffcf94}
.enginePreview summary{display:flex;align-items:center;gap:12px;min-height:54px;padding:8px 13px;cursor:pointer;list-style:none}
.enginePreview summary::-webkit-details-marker{display:none}.enginePreview summary:focus-visible{outline:2px solid #fff;outline-offset:-3px}
.enginePreview summary img{width:66px;height:40px;object-fit:cover;border-radius:4px}
.previewHeading{display:grid;gap:2px;min-width:0}
.previewHeading small,#modelEngine{font:600 11px/1.4 var(--mono),Pretendard,sans-serif;letter-spacing:.035em}
.previewHeading small{color:#c2cec9}.previewHeading strong{color:#f2faf6;font-size:15px}
#modelEngine{color:var(--tone);margin-left:auto;text-align:right}
.previewArrow{font-size:19px;color:var(--tone)}.enginePreview[open] .previewArrow{transform:rotate(180deg)}
.engineDraft{display:grid;grid-template-columns:auto 1fr;gap:8px;padding:0 14px 12px}
.engineDraft p{grid-column:1/-1;margin:0;border-left:2px solid var(--tone);padding:5px 10px;background:#11191d;color:#edf4f0;font-size:14px;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere;max-height:7.4em;overflow:auto}
.engineDraft label{align-self:center;color:#cbd9d4;font-weight:650;font-size:13px}
.engineDraft input{width:100%;min-height:38px;min-width:0;padding:6px 10px;border:1px solid #546461;background:#101819;color:#fff;border-radius:6px;font-size:13px}.engineDraft input::placeholder{color:#b4c3be}
.modelButtons{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.modelSecondary{border:1px solid #64756b;color:#e2eee7;border-radius:8px;font-size:14px;min-height:44px;padding:0 13px;white-space:nowrap}
@media(max-width:700px){.modelActions{display:grid;gap:6px}.modelButtons{display:grid;grid-template-columns:auto 1fr}.modelSave,.modelSecondary{min-height:44px}.engineDraft{grid-template-columns:1fr}.enginePreview summary{gap:8px;padding:7px 9px}.enginePreview summary img{width:45px;height:34px}}
@media(min-width:701px) and (max-height:570px){.enginePreview{margin-top:5px}.enginePreview summary{min-height:34px;padding:3px 8px}.enginePreview summary img{width:40px;height:27px}.previewHeading{display:flex;gap:10px;align-items:center}.previewHeading strong{font-size:13px}.modelSecondary{min-height:38px}.modelActions{padding-top:5px;padding-bottom:5px}}

.engineFrame{display:none}
@media(min-width:701px) and (min-height:571px){
 .enginePreview[open] summary img{display:none}
 .engineDraft{grid-template-columns:minmax(115px,20%) auto 1fr}
 .engineDraft .engineFrame{display:block;grid-column:1;grid-row:1/3;width:100%;height:100%;min-height:90px;max-height:135px;object-fit:cover;border-radius:5px}
 .engineDraft p{grid-column:2/-1}.engineDraft label{grid-column:2}
}
