/* v4.4 studio: section rail / tab bar, church-stream test, safe-area guides, loupe, motion + graphics previews. */
@font-face{font-family:"Instrument Serif";src:url(/assets/fonts/instrument-serif.woff2) format("woff2");font-weight:400;font-display:swap}
.studio{--mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;--amb:#F4BE72;--tx:#F4EFEA;--mu:#B9B0A4;--ln:#2A2A2A}
[data-for][hidden]{display:none!important}
/* ---- desktop layout: rail + panels ---- */
#stage{margin:0 auto}
#stage .st-rail{left:16px;top:86px;bottom:16px;width:76px;padding:8px 6px;border-radius:16px}
.st-tl{display:flex;flex-direction:column;gap:4px}
.st-ri{all:unset;box-sizing:border-box;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:66px;border-radius:12px;color:#A39B92;font:600 11px/1.1 Inter,system-ui,sans-serif;letter-spacing:.1px;text-align:center;cursor:pointer;transition:background .15s,color .15s}
.st-ri:hover{background:#1A1A1A;color:#E9E2DA}
.st-ri[aria-selected=true]{background:#1F1F1F;color:var(--tx)}
.st-ri[aria-selected=true]:before{content:"";position:absolute;left:-6px;top:20px;bottom:20px;width:2px;border-radius:2px;background:var(--amb)}
.st-ri[aria-selected=true] svg{color:var(--amb)}
.st-ri[aria-disabled=true]{color:#6F6962;cursor:default}.st-ri[aria-disabled=true]:hover{background:none;color:#6F6962}
.st-ri em{font:600 8.5px/1 var(--mono);font-style:normal;letter-spacing:.8px;text-transform:uppercase;color:#7A736C;border:1px solid #2E2E2E;border-radius:4px;padding:2px 4px;margin-top:-1px}
.st-ri:focus-visible,.st-tab:focus-visible{outline:2px solid var(--amb);outline-offset:-2px}
#stage .left{left:104px;width:270px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#333 transparent}
#stage .mid{left:386px;display:flex;flex-direction:column;overflow:hidden}
/* v4.5.15: the chat is the hero of the mid column. The canvas box gets a fixed height (frame still fits inside it
   by canvas-size.js), the timeline / summary card stay compact, and the chat takes every remaining pixel. */
#stage #cvbox{flex:0 0 auto;width:100%;height:344px;aspect-ratio:auto}
#stage .pnl.tl{position:relative;flex:0 0 100px;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#333 transparent}
#stage .st-chat{flex:1 1 300px;min-height:296px}
#stage .crumb{min-width:0;white-space:nowrap}
/* tools: real buttons */
.tools .tb{all:unset;font-size:12px;padding:6px 10px;border-radius:8px;color:#EFE7E0;cursor:pointer;white-space:nowrap}
.tools .tb:hover{background:#222}
.tools .tb[aria-pressed=true]{background:#2C2C2C}
.tools .tb:focus-visible{outline:2px solid var(--amb);outline-offset:1px}
body:not([data-sec=lower]) #tb-stream{display:none}
body[data-sec=motion] #tb-guides{display:none}
/* lower-thirds only parts of the v4.1 editor */
body:not([data-sec=lower]) #stage .left>.lh,body:not([data-sec=lower]) #ls,body:not([data-sec=lower]) #stage .lhint,body:not([data-sec=lower]) #stage .rr,
body:not([data-sec=lower]) #stage .pnl.tl,body:not([data-sec=lower]) #chips,body:not([data-sec=lower]) #empty,body:not([data-sec=lower]) #gtext,
body:not([data-sec=lower]) #glogo,body:not([data-sec=lower]) #gshape,body:not([data-sec=lower]) #shared,body:not([data-sec=lower]) #prim{display:none!important}
body:not([data-sec=lower]) .cv .lt,body:not([data-sec=lower]) .cvm .lt,body:not([data-sec=lower]) .cv .ubox,.cv.lt-img .lt,.cvm.lt-img .lt,.cv.lt-img .ubox{display:none!important}
body[data-sec=motion] #gglow{display:block!important}
body:not([data-sec=lower]) #gmotion{display:block!important}
body[data-sec=graphics] .sl-glow_intensity{display:none}
body[data-sec=lower] #stage .lhint,body[data-sec=lower] #stage .rr{display:none}
body[data-sec=lower] #stage .ly{height:38px;margin-bottom:2px}
body[data-sec=lower] #stage .ly .th{height:24px;width:36px}
/* ---- canvas content ---- */
.cv .safe,.cvm .safe{display:none}
.st-bg,.st-mo,.st-slide{position:absolute;inset:0;display:none;z-index:0}
.st-bg img{width:100%;height:100%;object-fit:cover;display:block}
.st-bg img:not([src]){display:none}
body[data-sec=lower] .st-bg,body[data-sec=graphics] .st-bg{display:block}
body[data-sec=motion] .st-mo{display:block}
.st-mo video{width:100%;height:100%;object-fit:cover;display:block}
body[data-sec=graphics] .st-slide{display:block}
.cv .lt,.cvm .lt{z-index:2;cursor:grab;touch-action:none;outline:none}
.st-lt{position:absolute;z-index:2;height:auto;display:none;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;outline:none}
.st-lt.dragging,.lt.dragging{cursor:grabbing}
.st-lt:focus-visible,.cv .lt:focus-visible,.cvm .lt:focus-visible{outline:1.5px solid var(--amb);outline-offset:3px}
.cv .ubox{z-index:5}
.st-guides{position:absolute;inset:0;z-index:3;pointer-events:none}
.st-guides>div{position:absolute;display:none}
.st-guides .g-a{inset:3.5%;border:1px dashed rgba(255,255,255,.34)}
.st-guides .g-t{inset:5%;border:1px dashed rgba(244,190,114,.62)}
.st-guides.show-a .g-a,.st-guides.show-t .g-t{display:block}
.st-guides span{position:absolute;top:3px;font:500 9px/1 var(--mono);letter-spacing:.3px;padding:2px 4px;border-radius:3px;background:rgba(0,0,0,.55);white-space:nowrap}
.st-guides .g-a span{right:3px;color:rgba(255,255,255,.75)}.st-guides .g-t span{left:3px;color:var(--amb)}
.cvm .st-guides span{display:none}
/* graphics slide */
.st-slide{container-type:size;background:radial-gradient(120% 90% at 50% 110%,#2A1E12 0%,#0D0B09 55%,#070707 100%)}
.cv.has-bg .st-slide,.cvm.has-bg .st-slide{background:linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.55))}
.st-slide .in{position:absolute;inset:5%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:0 4%;color:#fff}
.st-slide .k{font:600 min(1.7cqw,3.2cqh)/1.2 Inter,system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:var(--amb);margin-bottom:.9em}
.st-slide .h{font-family:"SG","Space Grotesk",Inter,sans-serif;font-weight:700;font-size:min(6cqw,12cqh);line-height:1.04;letter-spacing:-.01em;max-width:18em;overflow-wrap:anywhere}
.st-slide .b{font:500 min(2.2cqw,4.4cqh)/1.4 Inter,system-ui,sans-serif;color:#E7DED7;margin-top:1em;max-width:34em;overflow-wrap:anywhere}
.st-slide .b:empty,.st-slide .k:empty{display:none}
.st-slide.tpl-announce .in{align-items:flex-start;text-align:left;justify-content:flex-end;padding:0 3% 4%}
.st-slide.tpl-announce .h{font-size:min(7cqw,14cqh)}
.st-slide.tpl-scripture .h{font-family:"Instrument Serif",Georgia,serif;font-weight:400;font-size:min(4.6cqw,9cqh);line-height:1.18;letter-spacing:0;max-width:20em}
.st-slide.tpl-scripture .k{order:3;margin:1.4em 0 0}
/* room view (Lower thirds, optional) */
.st-room,.st-lectern{position:absolute;display:none;pointer-events:none}
.cvbox.room .st-room{display:block;z-index:0}
.cvbox.room .st-lectern{display:none} /* v4.4.1: no lectern in front of the screen (it covered lower thirds) */
.cvbox.room>.cv,.cvbox.room>.cvm{box-shadow:none!important;outline:0!important;border-radius:0;z-index:1}
/* drop overlay */
.st-dropmsg{position:absolute;inset:8px;display:none;align-items:center;justify-content:center;border:1.5px dashed var(--amb);border-radius:12px;background:rgba(10,10,10,.72);color:var(--tx);font:600 14px/1.3 Inter,system-ui,sans-serif;z-index:8;pointer-events:none}
.cvbox.drop-on .st-dropmsg{display:flex}
/* loupe */
.st-loupe{position:absolute;z-index:7;display:none;padding:1px;border-radius:10px;background:#0A0A0A;border:1px solid #3A3A3A;box-shadow:0 12px 30px rgba(0,0,0,.6);pointer-events:none}
.st-loupe.on{display:block}
.st-loupe canvas{display:block;border-radius:8px 8px 0 0}
.st-loupe span{display:block;padding:4px 6px 3px;font:500 9.5px/1.3 var(--mono);color:#B9B0A4;white-space:nowrap;letter-spacing:.2px}
/* info strip under the canvas, every section; chat fills the leftover mid height */
#stage .st-info{position:relative;flex:0 0 auto;margin-top:10px;padding:10px 14px;border-radius:14px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.st-info div{min-width:0}.st-info span{display:block;font:500 9.5px/1.2 var(--mono);letter-spacing:.5px;text-transform:uppercase;color:#8F877F;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-info b{display:block;font-size:13px;font-weight:600;color:var(--tx);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ---- panel controls (desktop + phone) ---- */
.st-left{margin-top:8px}
.st-blk{display:flex;flex-direction:column;gap:8px}
.st-h{font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--mu);padding:6px 6px 2px}
.st-left .st-h{padding:10px 6px 0}
.st-left[data-for=lower]{border-top:1px solid #222;margin-top:10px}
.st-fi{display:none}
.st-up{display:flex;flex-direction:column;gap:5px}
.st-drop{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 10px;border-radius:10px;border:1px dashed #3A3631;background:#0E0E0E;color:var(--mu);cursor:pointer;transition:border-color .15s,background .15s}
.st-drop:hover,.st-drop.drop-on{border-color:rgba(244,190,114,.7);background:#141210}
.st-drop:focus-visible{outline:2px solid var(--amb);outline-offset:1px}
.st-drop svg{flex:none;color:var(--amb)}
.st-up .tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.st-up .tx b{font-size:12.5px;font-weight:600;color:var(--tx);line-height:1.3}
.st-up .tx span{font-size:11px;color:var(--mu);line-height:1.3}
.st-file{display:none;align-items:center;gap:9px;min-height:52px;padding:7px 8px;border-radius:10px;border:1px solid #2C2C2C;background:#0E0E0E}
.st-up.has .st-drop{display:none}.st-up.has .st-file{display:flex}
.st-file .th{width:56px;height:32px;object-fit:cover;border-radius:4px;flex:none;background:#000 repeating-conic-gradient(#222 0 25%,#151515 0 50%) 0 0/8px 8px;border:1px solid #2C2C2C}
.st-file .tx{flex:1}.st-file .nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px!important}
.st-file .mt{font-family:var(--mono);font-size:10.5px!important;letter-spacing:.2px}
.st-ib{all:unset;box-sizing:border-box;flex:none;height:28px;padding:0 9px;border-radius:7px;border:1px solid #333;color:#E4DBD4;font-size:11.5px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.st-ib.x{width:28px;padding:0}
.st-ib:hover{border-color:#4A4A4A}.st-ib:focus-visible,.st-lk:focus-visible,.st-cb:focus-visible,.st-sw:focus-visible,.st-seg button:focus-visible,.st-li:focus-visible,.st-pad button:focus-visible{outline:2px solid var(--amb);outline-offset:1px}
.st-note{margin:0;font-size:11px;line-height:1.4;color:#9E968D;padding:0 2px}
.st-note:empty{display:none}
.st-note.warn{color:rgba(244,190,114,.86)}.st-note.err{color:#FFB4A6}
.st-note.warn:before,.st-note.err:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--amb);margin-right:6px;vertical-align:1px}
.st-note.err:before{background:#FF8A75}
.st-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:3px;border-radius:10px;background:#0E0E0E;border:1px solid #2E2B27}
.st-seg button{all:unset;box-sizing:border-box;text-align:center;height:28px;border-radius:7px;font-size:12px;font-weight:600;color:var(--mu);cursor:pointer}
.st-seg button[aria-checked=true]{background:#2C2C2C;color:var(--tx)}
.st-seg button[aria-disabled=true]{opacity:.4;cursor:default}
.st-rg .st-row{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;color:var(--tx);margin:2px 2px 4px}
.st-rg .st-row span{color:var(--mu);font-family:var(--mono);font-size:11.5px}
.st-pos{display:flex;align-items:center;justify-content:space-between;gap:8px;font:500 11px/1.3 var(--mono);color:var(--mu);padding:0 2px}
.st-pos .ok{color:#C9E3B5}.st-pos .wn{color:rgba(244,190,114,.86)}
.st-lk{all:unset;cursor:pointer;font:600 11.5px/1 Inter,system-ui,sans-serif;color:var(--amb);padding:6px 0;white-space:nowrap}
.st-hint{margin:0;font-size:11px;line-height:1.4;color:#8F877F;padding:0 2px}
.st-chips{display:flex;gap:6px}
.st-cb{all:unset;box-sizing:border-box;flex:1;text-align:center;height:30px;border-radius:8px;border:1px solid #2E2B27;font-size:12px;font-weight:600;color:var(--mu);cursor:pointer}
.st-cb i{font-style:normal;font-family:var(--mono);font-size:10.5px;opacity:.8;margin-left:3px}
.st-cb[aria-pressed=true]{color:var(--tx);border-color:rgba(244,190,114,.55);background:rgba(244,190,114,.07)}
.st-sw{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:32px;padding:0 2px 0 4px;font-size:12.5px;color:var(--tx);cursor:pointer}
.st-sw i{position:relative;width:34px;height:20px;border-radius:10px;background:#333;transition:background .15s;flex:none}
.st-sw i:after{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:#C9C1B8;transition:transform .18s}
.st-sw[aria-checked=true] i{background:var(--amb)}.st-sw[aria-checked=true] i:after{transform:translateX(14px);background:#0A0A0A}
.st-store{margin:0;font-size:11px;color:rgba(244,190,114,.86)}.st-store:empty{display:none}
.st-list{display:flex;flex-direction:column;gap:3px}
.st-li{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 8px;border-radius:10px;border:1px solid transparent;cursor:pointer}
.st-li:hover{background:rgba(244,190,114,.06)}
.st-li[aria-checked=true]{background:rgba(244,190,114,.12);border-color:rgba(244,190,114,.45)}
.st-li .th{width:56px;height:32px;object-fit:cover;border-radius:5px;border:1px solid #303030;flex:none}
.st-li .tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.st-li .tx b{font-size:13px;font-weight:600;color:var(--tx)}.st-li .tx span{font-size:11px;color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-li .gl{width:56px;height:32px;border-radius:5px;border:1px solid #303030;flex:none;background:#0B0B0B;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.st-li .gl i{display:block;height:2px;border-radius:1px;background:#6E665E}.st-li .gl i:nth-child(1){width:12px;background:var(--amb);height:1.5px}.st-li .gl i:nth-child(2){width:28px;height:3px;background:#D8D0C8}.st-li .gl i:nth-child(3){width:20px}
.st-li .gl-announce{align-items:flex-start;justify-content:flex-end;padding:0 0 5px 6px}
.st-li .gl-scripture i:nth-child(1){order:3}
.st-cred{margin:0;font-size:10.5px;color:#8F877F;padding:0 2px}.st-cred:empty{display:none}
.st-words{display:flex;flex-direction:column;gap:4px;margin-bottom:8px}
.st-fl{font-size:10.5px;color:var(--mu);margin-top:2px}
.st-words input,.st-words textarea{font:inherit;font-size:12.5px;color:var(--tx);background:#0B0B0B;border:1px solid #2C2C2C;border-radius:8px;padding:6px 9px;width:100%;box-sizing:border-box;resize:none;outline:none}
.st-words input:focus-visible,.st-words textarea:focus-visible{border-color:rgba(244,190,114,.7);box-shadow:0 0 0 3px rgba(244,190,114,.12)}
.st-gw{margin-bottom:6px}
#prim2{width:100%;border:0;font-family:inherit;cursor:pointer}
#prim2:focus-visible{outline:2px solid var(--amb);outline-offset:3px}
/* ---- phone ---- */
.st-tabs{display:none}
.st-phx{display:flex;flex-direction:column;gap:14px;margin:4px 0 16px}
.pvt .st-h{padding:6px 0 0;font-size:12px}
.pvt .st-csh{margin:6px 0 8px}
.pvt .st-drop,.pvt .st-file{min-height:60px}
.pvt .st-up .tx b{font-size:15px}.pvt .st-up .tx span{font-size:13px}
.pvt .st-note{font-size:13px}
.pvt .st-ib{height:44px;min-width:44px;font-size:14px}.pvt .st-ib.x{width:44px}
.pvt .st-seg button{height:40px;font-size:14px}.pvt .st-seg{padding:2px}
.pvt .st-cb{height:44px;font-size:14px}
.pvt .st-sw{height:44px;font-size:15px}
.pvt .st-pos{font-size:12.5px}.pvt .st-lk{font-size:14px;min-height:44px;display:inline-flex;align-items:center}
.pvt .st-rg .st-row{font-size:15px}
.st-pad{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.st-pad button{all:unset;box-sizing:border-box;height:44px;display:flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid #2E2B27;background:#0E0E0E;color:var(--tx);cursor:pointer}
.st-pad button:active{background:#1C1C1C}
.pvt .st-li{min-height:56px}.pvt .st-li .tx b{font-size:15px}.pvt .st-li .tx span{font-size:13px}
.pvt .st-words input,.pvt .st-words textarea{font-size:16px;padding:10px 12px;min-height:44px}
.pvt .st-fl{font-size:13px;margin-top:6px}
.pvt .cvbox{aspect-ratio:4/3}
.pvt .cvbox.room{aspect-ratio:16/9}
.cvbox-m .fr-spec,#cvbox-m .fr-spec{font-size:9.5px}
@media (max-width:720px){
  /* v4.4.1: solid bar (nothing shows through), and the page keeps focused / scrolled-to controls clear of it */
  html{--sab:env(safe-area-inset-bottom,0px);--tabh:65px;scroll-padding-bottom:calc(80px + var(--sab))}
  .st-tabs{display:block;position:fixed;left:0;right:0;bottom:0;z-index:60;padding:6px 8px calc(6px + var(--sab));background:#0A0A0A;border-top:1px solid #2A2A2A}
  .st-tabs .st-tl{flex-direction:row;gap:2px}
  .st-tab{all:unset;box-sizing:border-box;flex:1;min-width:0;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:10px;color:#9C958D;font:600 11px/1.1 "Instrument Sans",Inter,system-ui,sans-serif;cursor:pointer;text-align:center}
  .st-tab span{white-space:nowrap}
  .st-tab[aria-selected=true]{color:var(--amb)}
  .st-tab[aria-disabled=true]{color:#5E5852;cursor:default}
  body.studio{padding-bottom:calc(var(--tabh) + 16px + var(--sab))}
  .phone-view .pvt{scroll-margin-top:8px}
  .phone-view .pvt input,.phone-view .pvt select,.phone-view .pvt textarea,.phone-view .pvt button{scroll-margin-bottom:12px}  /* v4.4.1: breathing room above the bar when focus scrolls */
}
@media (prefers-reduced-motion:reduce){.st-ri,.st-sw i,.st-sw i:after,.st-drop{transition:none}}

/* right panel: properties scroll above the fixed footer */
#stage .right{padding:0}
#stage .right .st-scroll{position:absolute;left:0;right:0;top:0;bottom:var(--foot,132px);overflow-y:auto;overflow-x:hidden;padding:16px 16px 14px;scrollbar-width:none}
#stage .right .st-scroll::-webkit-scrollbar{display:none}
#stage .right .st-scroll.more{-webkit-mask-image:linear-gradient(#000 calc(100% - 56px),rgba(0,0,0,.15));mask-image:linear-gradient(#000 calc(100% - 56px),rgba(0,0,0,.15))}
/* v4.4.1 scroll cue: the content fades out and the footer edge gets a hairline + soft shadow while there is more below */
#stage .right .st-cue{position:absolute;left:0;right:0;bottom:var(--foot,132px);height:1px;pointer-events:none;opacity:0;transition:opacity .2s;background:rgba(255,255,255,.08);box-shadow:0 -6px 12px rgba(0,0,0,.55)}
#stage .right.more .st-cue{opacity:1}
@media (prefers-reduced-motion:reduce){#stage .right .st-cue{transition:none}}
.st-words .st-2{display:grid;grid-template-columns:1fr 1fr;gap:6px}
/* the phone page styles every <img> as a framed figure; undo that inside the preview */
.phone-view .cvbox img{border:0;border-radius:0;background:none;max-width:none}
.cvbox .st-room,.cvbox .st-lectern,.cvbox .st-lt,.cvbox .st-panel,.cvbox .st-refl,.cvbox .st-matte{display:none}
.cvbox.room .st-room,.cvbox.room .st-panel,.cvbox.room .st-refl{display:block}
/* v4.4.1 room: the whole wall is a powered-off panel (black wherever the content does not reach), with a soft reflection on the deck.
   The lectern is out of this view (painted out of a copy of the plate in code: room-stage.webp), so it never covers a lower third. */
.st-panel{position:absolute;z-index:1;background:linear-gradient(180deg,rgba(255,255,255,.01),rgba(255,255,255,0) 22%),#050505;box-shadow:0 0 0 1px rgba(255,255,255,.07),0 2px 3px rgba(0,0,0,.55);pointer-events:none}
.st-refl{position:absolute;z-index:1;pointer-events:none;opacity:.65;mix-blend-mode:screen;filter:blur(2px);-webkit-mask-image:linear-gradient(#000,rgba(0,0,0,.45) 55%,transparent);mask-image:linear-gradient(#000,rgba(0,0,0,.45) 55%,transparent)}
/* v4.4.2 room: the screen takes the canvas's shape (studio.js roomScreen). Off-panel black: #050505 + a 1% top sheen = max channel 7.5 (tested <= 8).
   Projector: a matte projection screen with a thin dark frame; the picture is non-emissive (lifted blacks, softer whites, gentle falloff), no glow. */
.cvbox.room .st-room{-webkit-mask-image:linear-gradient(transparent,#000 9%);mask-image:linear-gradient(transparent,#000 9%)}  /* soft top fade under the toolbar */
.cvbox.room.rm-projector .st-panel{background:#CFC9C0;box-shadow:0 0 0 2px #121212,0 0 0 3px rgba(255,255,255,.05),0 10px 22px rgba(0,0,0,.45)}
.cvbox.room.rm-projector>.cv,.cvbox.room.rm-projector>.cvm{filter:contrast(.86) saturate(.9) brightness(.97)}
.cvbox.room.rm-projector .st-matte{display:block;position:absolute;z-index:2;pointer-events:none;background:radial-gradient(ellipse 75% 70% at 50% 46%,rgba(0,0,0,0) 55%,rgba(0,0,0,.16) 100%)}
.cvbox.room.rm-projector .st-refl{opacity:.2}
.cvbox .st-bg img{width:100%;height:100%}
.cvbox .st-bg img:not([src]){display:none}
.st-drop .mb{display:none!important}.pvt .st-drop .dk{display:none!important}.pvt .st-drop .mb{display:block!important}
.st-ib.rp{width:28px;padding:0}.st-ib.rp span{display:none}
.pvt .st-ib.rp{width:44px;padding:0}
.st-file .mt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-file .th{width:48px;height:27px}
#cvbox-m .fr-spec span{white-space:normal}  /* values carry non-breaking spaces (canvas-size.js), so lines break only between parts */
.st-up[data-slot=lt] .th{object-fit:contain}

/* v4.5.7: loop length picker in Properties (desktop) and the phone card */
.st-loop{margin:0 0 12px}
.st-loop .gh{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 8px}
.st-loop .gh span{font-size:11px;font-weight:700;letter-spacing:1.1px;text-transform:uppercase;color:var(--mu,#B9B0A4)}
.st-loop .gh i{font-style:normal;font-size:11px;color:#8F877F;text-transform:none}
.st-loop-pills{display:flex;flex-wrap:wrap;gap:6px}
.st-loop-p{all:unset;box-sizing:border-box;min-height:34px;padding:0 12px;border-radius:8px;border:1px solid #3A3631;background:#0E0E0E;color:#F4EFEA;font:600 13px/1 Inter,system-ui,sans-serif;cursor:pointer;text-align:center}
.st-loop-p:focus-visible{outline:2px solid #F4BE72;outline-offset:1px}
.st-loop-p.on,.st-loop-p[aria-checked=true]{background:#F4BE72;border-color:#F4BE72;color:#000}
.st-loop-custom{display:none;margin:8px 0 0;font-size:12px;color:#B9B0A4}
.st-loop-custom.open{display:block}
.st-loop-custom input{display:block;margin-top:4px;width:100%;max-width:140px;height:34px;padding:0 10px;border-radius:8px;border:1px solid #3A3631;background:#0E0E0E;color:#F4EFEA;font:15px/1 Inter,system-ui,sans-serif}
.st-loop-custom input:focus-visible{outline:2px solid #F4BE72;outline-offset:1px}
.st-loop-fine{margin:8px 0 0;font-size:11px;line-height:1.4;color:#8F877F}
.pvt .st-loop-ph{margin:12px 0 8px;padding:0;border:0;background:transparent}
.pvt .st-loop-p{min-height:44px;padding:0 14px;font-size:15px}
.pvt .st-loop-custom input{height:44px;font-size:16px;max-width:160px}
@media (max-height:360px){
  .pvt .st-loop-ph{margin:8px 0}
  .pvt .st-loop-p{min-height:36px;padding:0 10px;font-size:13px}
  .pvt .st-loop-fine{display:none}
}

/* v4.5.9: Countdowns — custom time + live preview overlay (never baked into a loop) */
body[data-sec=countdown] #gmotion,body[data-sec=countdown] #gglow{display:none!important}
.st-cd{position:absolute;inset:0;display:none;align-items:center;justify-content:center;pointer-events:none;background:transparent;z-index:3;container-type:size}
body[data-sec=countdown] .st-cd{display:flex}
.st-cd-time{font-family:"SG","Space Grotesk",Inter,system-ui,sans-serif;font-weight:700;font-size:min(18cqw,28cqh,120px);letter-spacing:-.02em;line-height:1;color:#F4EFEA;font-variant-numeric:tabular-nums;text-shadow:0 2px 18px rgba(0,0,0,.45)}
.st-cd-ui{margin:0 0 12px}
.st-cd-ui .st-h{margin:0 0 8px}
.st-cd-pills{display:flex;flex-wrap:wrap;gap:6px}
.st-cd-p{all:unset;box-sizing:border-box;min-height:34px;padding:0 12px;border-radius:8px;border:1px solid #3A3631;background:#0E0E0E;color:#F4EFEA;font:600 13px/1 Inter,system-ui,sans-serif;cursor:pointer;text-align:center}
.st-cd-p:focus-visible{outline:2px solid #F4BE72;outline-offset:1px}
.st-cd-p.on,.st-cd-p[aria-checked=true]{background:#F4BE72;border-color:#F4BE72;color:#000}
.st-cd-lab{display:block;margin:10px 0 0;font-size:12px;color:#B9B0A4}
.st-cd-lab span{color:#8F877F}
.st-cd-lab input{display:block;margin-top:4px;width:100%;max-width:160px;height:34px;padding:0 10px;border-radius:8px;border:1px solid #3A3631;background:#0E0E0E;color:#F4EFEA;font:15px/1 Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums}
.st-cd-lab input:focus-visible{outline:2px solid #F4BE72;outline-offset:1px}
.st-cd-hint{margin:6px 0 0;font-size:12px;line-height:1.35;color:#F4BE72}
.st-cd-hint[hidden]{display:none!important}
.st-cd-fine{margin:8px 0 0;font-size:11px;line-height:1.4;color:#8F877F}
.pvt .st-cd-ph{margin:4px 0 8px}
.pvt .st-cd-p{min-height:44px;padding:0 14px;font-size:15px}
.pvt .st-cd-lab input{height:44px;font-size:16px;max-width:180px}
@media (max-width:360px){
  .st-tab{font-size:10px;gap:2px;padding:0 1px}
  .st-tab span{letter-spacing:-.01em}
}
@media (max-width:720px){
  .pvt .st-cd-ph,.phone-view #cvbox-m{scroll-margin-bottom:calc(var(--tabh,65px) + 16px + var(--sab,0px))}
  .pvt .st-cd-p,.pvt .st-cd-lab input{scroll-margin-bottom:calc(var(--tabh,65px) + 16px + var(--sab,0px))}
}
@media (max-width:720px) and (max-height:360px){
  /* Keep the live preview on screen above the tab bar in short landscape (568×320). */
  body[data-sec=countdown] .pvt .cvbox,body[data-sec=countdown] #cvbox-m{
    aspect-ratio:16/9;
    max-height:calc(100vh - var(--tabh,65px) - 48px - var(--sab,0px));
    width:auto;max-width:100%;
  }
}
@media (max-height:360px){
  .pvt .st-cd-ph{margin:0}
  .pvt .st-cd-ph .st-h{padding:0 0 2px;font-size:11px}
  .pvt .st-cd-pills{gap:4px}
  .pvt .st-cd-p{min-height:36px;padding:0 8px;font-size:12px}
  .pvt .st-cd-fine{display:none}
  .pvt .st-cd-lab{margin-top:4px;font-size:11px}
  .pvt .st-cd-lab span{display:none}
  .pvt .st-cd-lab input{height:36px;max-width:120px}
  .pvt .st-cd-hint{margin:4px 0 0;font-size:11px}
}

/* v4.5.11: self-hosted faces (no runtime CDN). Latin woff2 only. */
@font-face{font-family:Inter;src:url(/assets/fonts/inter-latin-600.woff2) format("woff2");font-weight:600 700;font-style:normal;font-display:swap}
@font-face{font-family:Montserrat;src:url(/assets/fonts/montserrat-latin-600.woff2) format("woff2");font-weight:600 700;font-style:normal;font-display:swap}
@font-face{font-family:Oswald;src:url(/assets/fonts/oswald-latin-500.woff2) format("woff2");font-weight:500 700;font-style:normal;font-display:swap}
@font-face{font-family:"Bebas Neue";src:url(/assets/fonts/bebas-neue-latin-400.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:"Playfair Display";src:url("/assets/fonts/PlayfairDisplay[wght].ttf") format("truetype");font-weight:400 900;font-style:normal;font-display:swap}
@font-face{font-family:Poppins;src:url(/assets/fonts/poppins-latin-600.woff2) format("woff2");font-weight:600 700;font-style:normal;font-display:swap}
@font-face{font-family:"Roboto Mono";src:url("/assets/fonts/RobotoMono[wght].ttf") format("truetype");font-weight:100 700;font-style:normal;font-display:swap}
@font-face{font-family:"DM Serif Display";src:url(/assets/fonts/dm-serif-display-latin-400.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
:root{--tm-font:Inter,system-ui,sans-serif}
/* Apply the selected face to every live text layer (countdown, lower third words, graphics). */
#cvbox .lt .n,#cvbox .lt .t,#cvbox-m .lt .n,#cvbox-m .lt .t,
.cvbox .lt .n,.cvbox .lt .t,.cvm .lt .n,.cvm .lt .t,
.st-slide .k,.st-slide .h,.st-slide .b,.st-slide.tpl-scripture .h,
.st-cd-time{font-family:var(--tm-font)}
/* Hide the leftover Font/Size stub in lower-third Text; the Fonts picker replaces it. */
#gtext>.f2{display:none}
/* Countdown background uses the motion video layer or the still-image layer, timer stays on top (z-index 3). */
body[data-sec=countdown][data-cd-bg=look] .st-mo,
body[data-sec=countdown][data-cd-bg=upload-video] .st-mo{display:block}
body[data-sec=countdown][data-cd-bg=upload-image] .st-bg{display:block}
body[data-sec=countdown][data-cd-bg=look] .st-bg,
body[data-sec=countdown][data-cd-bg=upload-video] .st-bg,
body[data-sec=countdown][data-cd-bg=none] .st-bg,
body[data-sec=countdown][data-cd-bg=none] .st-mo{display:none}
.st-cdbg{margin:0 0 12px}
.st-cdbg .gh{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 8px}
.st-cdbg .gh span{font-size:11px;font-weight:700;letter-spacing:1.1px;text-transform:uppercase;color:var(--mu,#B9B0A4)}
.st-cdbg .gh i,.st-font .gh i{font-style:normal;font-size:11px;color:#8F877F;text-transform:none}
.st-cdbg-pills{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.st-cdbg-p{all:unset;box-sizing:border-box;min-height:34px;padding:0 12px;border-radius:8px;border:1px solid #3A3631;background:#0E0E0E;color:#F4EFEA;font:600 13px/1 Inter,system-ui,sans-serif;cursor:pointer;text-align:center}
.st-cdbg-p:focus-visible,.st-font-btn:focus-visible,.st-font-opt:focus-visible,.st-cdbg-li:focus-visible{outline:2px solid #F4BE72;outline-offset:1px}
.st-cdbg-p.on,.st-cdbg-p[aria-checked=true]{background:#F4BE72;border-color:#F4BE72;color:#000}
.st-cdbg .st-h{margin:8px 0 6px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8F877F}
.st-cdbg-list{margin:0 0 10px}
.st-cdbg-sess,.st-cdbg-fine{margin:8px 0 0;font-size:11px;line-height:1.4;color:#8F877F}
.st-cdbg-fine{margin-top:6px}
.st-font{margin:0 0 12px;position:relative}
.st-font .gh{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 8px}
.st-font .gh span{font-size:11px;font-weight:700;letter-spacing:1.1px;text-transform:uppercase;color:var(--mu,#B9B0A4)}
.st-font-btn{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:34px;padding:0 12px;border-radius:8px;border:1px solid #3A3631;background:#0E0E0E;color:#F4EFEA;font:600 15px/1 var(--tm-font),Inter,system-ui,sans-serif;cursor:pointer;text-align:left}
.st-font-btn::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid currentColor;flex:none;opacity:.7;transition:transform .15s}
.st-font-btn[aria-expanded=true]{border-color:#F4BE72}
.st-font-btn[aria-expanded=true]::after{transform:rotate(180deg)}
.st-font-win{position:absolute;z-index:40;left:0;right:0;top:100%;margin-top:4px;max-height:min(420px,70vh);overflow:hidden;display:flex;flex-direction:column;padding:10px;border-radius:10px;border:1px solid #3A3631;background:#141414;box-shadow:0 12px 32px rgba(0,0,0,.45)}
.st-font-win[hidden]{display:none!important}
.st-font-sample{flex:none;box-sizing:border-box;margin:0 0 8px;padding:0 12px;height:44px;line-height:44px;border-radius:8px;background:#0E0E0E;color:#F4EFEA;font-size:18px;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-font-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;overflow-y:auto;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:#8F877F #1C1C1C}
.st-font-win.overflow:not(.at-end)::after{content:"";position:absolute;left:0;right:0;bottom:0;height:28px;pointer-events:none;border-radius:0 0 10px 10px;background:linear-gradient(transparent,#141414)}
.st-font-opt{display:flex;align-items:center;min-height:36px;padding:8px 12px;border-radius:8px;cursor:pointer;color:#F4EFEA;font-size:16px;line-height:1.2}
.st-font-opt:hover,.st-font-opt:focus,.st-font-opt[aria-selected=true]{background:#1C1C1C}
.st-font-opt.saved,.st-font-opt[aria-selected=true].saved{outline:1px solid #F4BE72}
#gfont-m,#gcdbg-m{scroll-margin-bottom:88px;scroll-margin-top:12px}
.pvt .st-cdbg-p,.pvt .st-font-btn,.pvt .st-font-opt{min-height:44px;font-size:16px}
.pvt .st-font-opt{display:flex;align-items:center}
.pvt .st-font-win{position:relative;margin-top:8px;max-height:min(280px,50vh);box-shadow:none}
.pvt .st-font-sample{height:44px;line-height:44px;padding:0 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pvt .st-cdbg-li{min-height:44px}
@media (max-height:360px){
  .pvt .st-cdbg-p,.pvt .st-font-btn,.pvt .st-font-opt{min-height:36px;padding:0 10px;font-size:13px;display:flex;align-items:center}
  .pvt .st-cdbg-sess,.pvt .st-cdbg-fine{display:none}
  .pvt .st-font-sample{height:36px;line-height:36px;padding:0 8px;font-size:15px;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pvt .st-font-win{max-height:min(180px,42vh);padding:6px}
  #gfont-m,#gcdbg-m{scroll-margin-bottom:64px}
}

.pvt .st-cdbg-list{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:0 0 6px}
.pvt .st-cdbg-li{flex:0 0 auto;min-width:112px;max-width:140px}
@media (max-height:360px){
  .pvt .st-cdbg-list{margin-bottom:4px}
  .pvt .st-cdbg-li{min-width:88px;max-width:110px}
  .pvt .st-cdbg .st-up{margin-top:4px}
}

/* v4.5.13: prompt box + my templates (every section). Sleek, understated. */
/* chat composer in the mid column (v4.5.14) */
.st-chat{display:flex;flex-direction:column;min-height:0;margin-top:12px;border-radius:14px;border:1px solid #2A2A2A;background:#0C0C0C;overflow:hidden}
.st-chat-head{flex:0 0 auto;display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:10px 14px 8px;border-bottom:1px solid #1F1F1F}
.st-chat-head .st-prompt-lab{font:600 12px/1.2 Inter,system-ui,sans-serif;color:#B9B0A4;letter-spacing:.04em}
.st-chat-head .st-prompt-sub{font-style:normal;font:500 11px/1.3 Inter,system-ui,sans-serif;color:#8F877F;text-align:right}
.st-chat-log{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 14px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;scrollbar-color:#333 transparent}
.st-chat-empty{margin:auto 0;max-width:36em;color:#8F877F;font:500 13px/1.5 Inter,system-ui,sans-serif}
.st-chat-row{display:flex;flex-direction:column;max-width:100%}
.st-chat-row.me{align-self:flex-end;align-items:flex-end;max-width:85%}
.st-chat-row.bot{align-self:stretch}
.st-chat-bubble{background:#1A1814;border:1px solid #3A3224;color:#F4EFEA;border-radius:14px 14px 4px 14px;padding:10px 12px;font:500 13px/1.45 Inter,system-ui,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere}
.st-chat-compose{flex:0 0 auto;border-top:1px solid #2A2A2A;padding:10px 12px 12px;background:#101010}
.st-prompt-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.st-prompt-chip{all:unset;box-sizing:border-box;min-height:28px;padding:0 10px;border-radius:999px;border:1px solid #3A3631;background:#0E0E0E;color:#D8D0C8;font:600 12px/1 Inter,system-ui,sans-serif;cursor:pointer}
.st-prompt-chip:hover{border-color:#F4BE72;color:#F4EFEA}
.st-prompt-chip:focus-visible,.st-prompt-in:focus-visible,.st-brief-sum:focus-visible,.st-prompt-go:focus-visible,.st-prompt-save:focus-visible,.st-mine-btn:focus-visible,.st-mine-arch-tog:focus-visible,.st-cue-x:focus-visible{outline:2px solid #F4BE72;outline-offset:1px}
.st-chat-row-in{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}
.st-prompt-field{flex:1 1 200px;display:block;margin:0;min-width:0;position:relative}
.st-prompt-field .vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.st-brief-field{font-size:11px;font-weight:600;letter-spacing:.04em;color:#8F877F}
.st-prompt-in,.st-brief-sum{display:block;width:100%;box-sizing:border-box;margin:6px 0 0;padding:10px 12px;border-radius:10px;border:1px solid #3A3631;background:#0E0E0E;color:#F4EFEA;font:500 14px/1.4 Inter,system-ui,sans-serif;resize:vertical;min-height:44px}
.st-prompt-in{margin:0;min-height:44px;resize:none;max-height:120px}
.st-prompt-in::placeholder,.st-brief-sum::placeholder{color:#6F6962}
.st-prompt-count{margin:4px 0 0;text-align:right;font:500 11px/1 Inter,system-ui,sans-serif;color:#8F877F}
.st-brief{padding:10px 10px 8px;border-radius:12px;border:1px solid #2A2A2A;background:#121212}
.st-brief-h{font:700 11px/1 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#B9B0A4;margin:0 0 8px}
.st-brief-hint{margin:0 0 8px;padding:8px 10px;border-radius:8px;background:#1A1814;color:#E6D3B0;font:500 12px/1.4 Inter,system-ui,sans-serif}
.st-brief-hint[hidden]{display:none!important}
.st-brief-cues{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.st-brief-cues:empty{display:none}
.st-brief-read{margin:0;color:#F4EFEA;font:500 13px/1.45 Inter,system-ui,sans-serif}
.st-cue-chip{display:inline-flex;align-items:center;gap:4px;min-height:28px;padding:0 4px 0 10px;border-radius:999px;border:1px solid #3A3631;background:#0E0E0E;color:#F4EFEA;font:600 12px/1 Inter,system-ui,sans-serif}
.st-cue-x{--xs:min(56px,calc(44.6px / var(--stg-s,1)));all:unset;box-sizing:border-box;position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;width:var(--xs);height:var(--xs);margin:calc((22px - var(--xs)) / 2) -4px calc((22px - var(--xs)) / 2) 0;cursor:pointer;color:#8F877F;font:700 14px/1 Inter,system-ui,sans-serif}
.st-cue-x:before{content:"";position:absolute;z-index:-1;width:22px;height:22px;border-radius:50%;background:transparent}
.st-cue-x:hover{color:#F4EFEA}.st-cue-x:hover:before{background:#2A2A2A}
.st-prompt-cred{margin:8px 0 0;font:500 12px/1.4 Inter,system-ui,sans-serif;color:#C9C1B8}
.st-prompt-go,.st-prompt-save{all:unset;box-sizing:border-box;min-height:44px;padding:0 14px;border-radius:8px;font:600 13px/1 Inter,system-ui,sans-serif;cursor:pointer;text-align:center}
.st-prompt-go{flex:0 0 auto;background:#F4BE72;color:#000;max-width:100%}
.st-prompt-go:hover{background:#F7CB8A}
.st-prompt-save{border:1px solid #3A3631;background:#0E0E0E;color:#F4EFEA}
.st-prompt-save:hover{border-color:#F4BE72}
.st-prompt-fine{margin:8px 0 0;font-size:11px;line-height:1.4;color:#8F877F}

.st-chat-log,.st-chat-head,.st-chat{min-height:0}
.st-chat-empty{display:flex;flex-direction:column;justify-content:center;gap:6px;margin:0;min-height:96px;max-width:none;color:#8F877F;font:500 13px/1.5 Inter,system-ui,sans-serif}
.st-chat-empty b{display:block;color:#D8D0C8;font:600 14px/1.3 Inter,system-ui,sans-serif}
.st-chat-empty i{font-style:normal;color:#B9B0A4}
.st-chat-compose{padding:8px 12px 10px}
.st-prompt-in{min-height:44px}
.st-prompt-cred{margin:6px 0 0}
#stage .st-prompt-fine{display:none}
.st-prompt-meta{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.st-prompt-meta .st-prompt-cred{flex:1;min-width:0}
.st-prompt-meta .st-prompt-count{margin:6px 0 0;flex:none}
.st-mine{margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid #242424}
.st-mine .st-h{margin:0 0 8px}
.st-mine .st-prompt-save{align-self:flex-start;margin:0 0 8px;min-height:32px;padding:0 12px}
.st-mine-list,.st-mine-arch{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:240px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#333 transparent}
.st-mine-list.more,.st-mine-arch.more{-webkit-mask-image:linear-gradient(#000 calc(100% - 28px),rgba(0,0,0,.12));mask-image:linear-gradient(#000 calc(100% - 28px),rgba(0,0,0,.12))}
.st-mine-empty,.st-mine-arch-empty{margin:0;font-size:12px;line-height:1.4;color:#8F877F}
.st-mine-item{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:8px 10px;border-radius:8px;border:1px solid #2A2A2A;background:#0E0E0E}
.st-mine-name,.st-mine-ren{flex:none;min-width:0;font:600 13px/1.3 Inter,system-ui,sans-serif;color:#F4EFEA;background:none;border:0;padding:0;width:100%;text-align:left}
.st-mine-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.st-mine-ren{border-bottom:1px solid #F4BE72;border-radius:0;padding:2px 0;color:#F4EFEA;font:600 13px/1.3 Inter,system-ui,sans-serif}
.st-mine-btns{display:flex;flex:none;flex-wrap:wrap;gap:2px;align-self:flex-start}
.st-mine-btn{all:unset;box-sizing:border-box;min-width:28px;min-height:28px;padding:0 6px;border-radius:6px;color:#C9C1B8;font:600 11px/1 Inter,system-ui,sans-serif;cursor:pointer;text-align:center}
.st-mine-btn:hover{background:#1C1C1C;color:#F4EFEA}
.st-mine-arch-tog{all:unset;margin:10px 0 6px;font:600 11px/1 Inter,system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#8F877F;cursor:pointer}
.st-mine-arch-tog:hover{color:#F4EFEA}
.st-mine-arch[hidden],.st-mine-arch-empty[hidden],.st-mine-empty[hidden]{display:none!important}
.st-toast{position:fixed;z-index:80;left:50%;bottom:24px;transform:translateX(-50%);display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 10px 8px 16px;border-radius:12px;background:#1A1A1A;border:1px solid #3A3631;box-shadow:0 10px 30px rgba(0,0,0,.45);color:#F4EFEA;font:500 13px/1.3 Inter,system-ui,sans-serif}
.st-toast[hidden]{display:none!important}
.st-toast-undo{all:unset;min-height:32px;padding:0 12px;border-radius:8px;background:#F4BE72;color:#000;font:700 12px/1 Inter,system-ui,sans-serif;cursor:pointer}
#gchat-m,.pvt .st-chat,.pvt .st-mine,.pvt .st-prompt-in,.pvt .st-brief-sum,.pvt .st-prompt-go{scroll-margin-bottom:calc(88px + var(--kbd,0px));scroll-margin-top:12px}
.pvt .st-chat{flex:none;min-height:0;max-height:none;margin:12px 0 14px}
.pvt .st-chat-log{flex:none;height:clamp(176px,32svh,340px);min-height:176px;max-height:none}
.pvt .st-prompt-in,.pvt .st-brief-sum{min-height:64px;font-size:16px}
.pvt .st-prompt-go,.pvt .st-prompt-save,.pvt .st-prompt-chip,.pvt .st-mine-btn,.pvt .st-mine-arch-tog,.pvt .st-cue-x{min-height:44px}
.pvt .st-mine .st-prompt-save{width:100%}
.pvt .st-prompt-chip{padding:0 12px;font-size:13px}
.pvt .st-mine-item{min-height:44px}
.pvt .st-mine-name{min-height:44px;padding:12px 0;box-sizing:border-box}
@media (max-height:360px){
  .pvt .st-chat{margin:8px 0}
  .pvt .st-chat-log{height:112px;min-height:96px;padding:8px}
  .pvt .st-prompt-in,.pvt .st-brief-sum{min-height:40px;font-size:14px;padding:6px 8px}
  .pvt .st-prompt-go,.pvt .st-prompt-save,.pvt .st-prompt-chip,.pvt .st-mine-btn{min-height:36px;font-size:12px}
  .pvt .st-prompt-fine,.pvt .st-prompt-sub,.pvt .st-prompt-chips,.pvt .st-prompt-count,.pvt .st-brief-h{display:none}
  .pvt .st-brief{margin-top:6px;padding:6px}
  .pvt .st-chat,.pvt .st-mine,.pvt .st-prompt-in,.pvt .st-brief-sum,.pvt .st-prompt-go{scroll-margin-bottom:calc(64px + var(--kbd,0px))}
}

/* v4.5.15: the Undo toast lives on <body>, so it is positioned by viewport, not by .pvt.
   Phone view (<=720px): above the sticky credits chip and the tab bar, and above an open keyboard. */
@media (max-width:720px){
  html.cr-hide-chrome body .st-toast{bottom:calc(12px + var(--kbd,0px))}
  body .st-toast{left:12px;right:12px;transform:none;bottom:calc(var(--tabh,65px) + var(--crchip,48px) + 12px + var(--sab,0px) + var(--kbd,0px))}
}

/* keyboard open on a phone: let the page scroll far enough that the focused composer can sit above the keyboard */
@media (max-width:720px){
  html body.studio{padding-bottom:calc(var(--tabh,65px) + var(--crchip,48px) + 16px + var(--sab,0px) + var(--kbd,0px))}
  html.cr-hide-chrome body.studio.studio{padding-bottom:calc(16px + var(--sab,0px) + var(--kbd,0px))} /* doubled class: beats credits.css, which loads later */
}

/* v4.5.16: touch screens that use the desktop layout (iPad at 1024) get a true 44px chip x, as the phone layout does. */
@media (pointer:coarse){
  .st-cue-x{--xs:min(84px,calc(44.6px / var(--stg-s,1)))}
}
/* phone layout is not scaled: keep the v4.5.15 56px x there (coarse-pointer rule above is for the scaled desktop stage) */
@media (max-width:720px){
  .pvt .st-cue-x,.st-chat .st-cue-x{--xs:56px}
}

/* v4.5.17: ramp the canvas and the log from 1280 to 1440, instead of stepping at 1440.
   1024 and phone stay exactly as in v4.5.15. Above 1440 the log is at least the reply-card height plus padding
   (the card is ~182 stage px, log padding is 24, so min-height 206). Do not scale the stage above 1.0. */
@media (min-width:1280px){
  #stage #cvbox{height:calc(344px + (100vw - 1280px) * 31 / 160)}
  body[data-sec=lower] #stage #cvbox{height:344px}
  #stage .st-chat-head{padding:6px 12px}
  #stage .st-chat-compose{padding:6px 12px 8px}
  #stage .st-prompt-in{height:48px;min-height:44px}
  #stage .st-prompt-chips{margin-bottom:6px}
  #stage .st-prompt-cred,#stage .st-prompt-meta .st-prompt-count{margin-top:4px}
  #stage .st-info{padding:8px 14px;margin-top:8px}
  #stage .st-chat-log{min-height:206px}
}
@media (min-width:1440px){
  #stage #cvbox{height:375px}
  body[data-sec=lower] #stage #cvbox{height:344px}
}
