:root {--l8-studio-layout:ready}
body[data-view=studio] {
  --studio-ink:#360034;
  --studio-muted:#665d63;
  --studio-line:#d8d1d6;
  --studio-page:#faf7f5;
  background:var(--studio-page);
}
header {display:flex; align-items:center; gap:0; padding:0 clamp(20px,4.5vw,88px); height:72px}
.brand {display:flex; gap:12px; align-items:center; color:#fff; white-space:nowrap; font:normal 30px/1 Lilita, sans-serif}
.brand img {width:40px;height:36px}
#studioTabs {display:flex;gap:6px;align-items:center;margin-left:clamp(23px,5vw,92px)}
#studioTabs button {display:inline-flex;align-items:center;justify-content:center;gap:9px;color:#fff;background:transparent;border:0;border-radius:6px;font-size:17px;font-weight:600;min-height:40px;padding:8px 15px}
#studioTabs button:hover,#studioTabs button:focus-visible {background:#ffffff1a}
#studioTabs button[aria-current] {background:#fff;color:var(--plum)}
.runtime-label {margin-left:auto;padding-left:14px;color:#fff;font-size:15px;white-space:nowrap}
.ui-icon {display:inline-block;width:19px;height:19px;font-style:normal;position:relative;flex:0 0 auto;box-sizing:border-box;line-height:1}
.ui-icon::before,.ui-icon::after {box-sizing:border-box}
.ico-booth::before {content:"";position:absolute;inset:2px 3px;border:1.75px solid currentColor;border-radius:2px}
.ico-booth::after {content:"";position:absolute;left:8px;top:6px;width:4px;height:7px;background:currentColor;clip-path:polygon(0 0,100% 50%,0 100%)}
.ico-photos::before,.ico-photos::after {content:"";position:absolute;width:12px;height:13px;border:1.7px solid currentColor;border-radius:2px}
.ico-photos::before {left:1px;top:4px;transform:rotate(-9deg)}
.ico-photos::after {right:1px;top:1px;box-shadow:inset 0 -3px 0 currentColor}
.ico-settings::before {content:"";position:absolute;inset:2px 1px;background:linear-gradient(to bottom,transparent 1px,currentColor 1px 3px,transparent 3px 7px,currentColor 7px 9px,transparent 9px 13px,currentColor 13px 15px,transparent 15px)}
.ico-settings::after {content:"";position:absolute;top:2px;left:5px;width:3px;height:5px;background:currentColor;box-shadow:6px 6px currentColor,-1px 12px currentColor}
.ico-camera::before {content:"";position:absolute;inset:4px 1px 2px;border:1.75px solid currentColor;border-radius:3px}
.ico-camera::after {content:"";position:absolute;top:7px;left:6.5px;width:6px;height:6px;border:1.5px solid currentColor;border-radius:50%}
.ico-picture::before {content:"";position:absolute;inset:2px 1px;border:1.75px solid currentColor;border-radius:3px}
.ico-picture::after {content:"";position:absolute;inset:5px 4px 5px;background:currentColor;clip-path:polygon(0 75%,33% 30%,48% 58%,68% 15%,100% 78%,100% 100%,0 100%)}
.ico-fullscreen {width:19px;height:19px;background:linear-gradient(currentColor,currentColor) left top/7px 2px,linear-gradient(currentColor,currentColor) left top/2px 7px,linear-gradient(currentColor,currentColor) right top/7px 2px,linear-gradient(currentColor,currentColor) right top/2px 7px,linear-gradient(currentColor,currentColor) left bottom/7px 2px,linear-gradient(currentColor,currentColor) left bottom/2px 7px,linear-gradient(currentColor,currentColor) right bottom/7px 2px,linear-gradient(currentColor,currentColor) right bottom/2px 7px;background-repeat:no-repeat}
.ico-download::before {content:"";position:absolute;inset:1px 2px 3px;background:currentColor;clip-path:polygon(44% 0,56% 0,56% 56%,76% 34%,86% 44%,50% 86%,14% 44%,24% 34%,44% 56%)}
.ico-download::after {content:"";position:absolute;bottom:1px;left:2px;right:2px;height:5px;border:1.6px solid currentColor;border-top:none;border-radius:0 0 2px 2px}
.ico-lock::before {content:"";position:absolute;inset:8px 3px 1px;border:1.7px solid currentColor;border-radius:2px}
.ico-lock::after {content:"";position:absolute;inset:2px 6px 9px;border:1.7px solid currentColor;border-bottom:0;border-radius:6px 6px 0 0}
body[data-view=studio] main {display:block;width:auto;max-width:1320px;min-height:0;margin:0 auto;padding:clamp(27px,4.1vw,65px) clamp(20px,4.5vw,86px) 36px}
body[data-view=studio] #options,body[data-view=studio] #guestFullscreen,body[data-view=studio] #guestDisplayMode {display:none}
.workspace {width:100%;margin:0 auto}
.workspace>h1,.workspace>#settingsHeading {font:normal clamp(40px,5vw,70px)/1 Lilita,sans-serif;letter-spacing:-.03em;color:var(--studio-ink);margin:0 0 clamp(22px,2.7vw,39px)}
.test-layout {display:grid;grid-template-columns:minmax(0,1.52fr) minmax(280px,1fr);align-items:stretch;gap:clamp(30px,5.1vw,78px)}
.print-stage {isolation:isolate;position:relative;overflow:hidden;min-height:385px;aspect-ratio:1.46/1;margin:0;border-radius:8px;background:radial-gradient(ellipse at 70% 20%,#b83b63 0,#942146 48%,#62163d 100%);display:grid;place-items:center}
.print-stage::before {content:"";pointer-events:none;position:absolute;inset:-40% -45%;transform:rotate(-28deg);background:repeating-linear-gradient(90deg,transparent 0 140px,#36003417 140px 240px,transparent 240px 279px);z-index:-1}
.print-stage::after {content:"";position:absolute;inset:18px;pointer-events:none;opacity:.73;background:linear-gradient(#fff,#fff) left top/17px 1px,linear-gradient(#fff,#fff) left top/1px 17px,linear-gradient(#fff,#fff) right top/17px 1px,linear-gradient(#fff,#fff) right top/1px 17px,linear-gradient(#fff,#fff) right bottom/17px 1px,linear-gradient(#fff,#fff) right bottom/1px 17px;background-repeat:no-repeat}
.stage-photo,.stage-paper {grid-area:1/1;position:absolute;height:79%;width:auto;aspect-ratio:2/3}
.stage-photo {max-width:73%;object-fit:contain;transform:translate(5%,-1%) rotate(9deg);filter:drop-shadow(0 13px 10px #35002472)}
.stage-paper {background:#f5ece9;transform:translate(-9%,-1%) rotate(-9deg);box-shadow:0 13px 18px #3a06276e}
.print-stage figcaption {position:absolute;bottom:14px;left:18px;background:#5c163b;color:white;padding:3px 9px;border-radius:4px;font-size:13px}
.test-setup {align-self:center;max-width:445px}
.test-setup h2 {font:normal clamp(29px,3vw,42px)/1.07 Lilita,sans-serif;letter-spacing:-.02em}
.test-setup>p {font-size:clamp(16px,1.6vw,19px);color:var(--studio-muted);margin:8px 0 20px}
.source-field {border:0;margin:0;padding:0;min-width:0}
.source-field legend {font:600 16px/1.3 Source,sans-serif;margin:0 0 7px;padding:0}
.source-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.source-options label {display:flex;align-items:center;justify-content:center;gap:9px;position:relative;cursor:pointer;margin:0;padding:10px 6px;border-radius:6px;border:1px solid #c9c1c6;background:white;font-size:17px;font-weight:600;color:var(--studio-ink);min-height:44px}
.source-options label:has(input:checked) {background:#f7e9f1;border:2px solid var(--plum);padding:9px 5px}
.source-options label:hover {border-color:var(--raspberry)}
.source-options label:has(:focus-visible) {outline:3px solid var(--cerise);outline-offset:3px}
.source-options input {position:absolute;opacity:0;width:1px;height:1px;margin:0}
#sourceHint {color:var(--studio-muted);font-size:14px;margin:7px 0 0}
.series-spec {margin:19px 0 22px;font-size:16px}
.series-spec>div {display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:7px 0;border-bottom:1px solid var(--studio-line)}
.series-spec dt {color:var(--studio-muted)}
.series-spec dd {margin:0;text-align:right;font-weight:600}
#startGuest {display:flex;align-items:center;justify-content:center;gap:11px;width:100%;min-height:49px;color:white;background:var(--plum);border:0;border-radius:6px;font-size:18px}
#startGuest:hover {background:#611747}
#studioNotice {color:var(--raspberry);font-weight:600}
.test-footer {display:flex;align-items:baseline;justify-content:space-between;gap:12px 25px;flex-wrap:wrap;margin-top:22px;font-size:15px;color:var(--studio-muted)}
.test-footer p {margin:0}
.windows-download {color:var(--plum);display:inline-flex;gap:7px;align-items:center;text-underline-offset:3px;white-space:nowrap}
.windows-download .ui-icon {width:15px;height:15px}
html[data-runtime=windows] .windows-download {display:none}
#panel {background:transparent;overflow:visible;max-height:none;min-width:0;border:0;padding:0}
#panel .admin-controls {display:flex;gap:8px;margin:0 0 16px}
.settings-grid {display:grid;grid-template-columns:1fr 1fr;gap:20px 34px}
.settings-grid>fieldset {margin:0;border:1px solid var(--studio-line);border-radius:8px;padding:17px 21px 20px;min-width:0;background:#fff}
.settings-grid>fieldset>legend {background:var(--studio-page);padding:0 7px;font-size:26px}
.settings-grid>#lighting {grid-column:1/-1}
.settings-grid select {max-width:600px;display:block}
#lightPreview {width:55px;height:16px;box-shadow:inset 0 0 0 1px #440b3b40;border-radius:3px;margin:0 0 6px}
#lighting #advanced {max-width:660px}
body[data-view=guest] header {padding-right:0}
body[data-view=guest] #studioTabs,body[data-view=guest] #runtimeLabel {display:none}
body[data-view=guest] #options {display:flex;gap:6px;align-items:center;justify-content:center;margin-left:auto}
#guestDisplayMode {color:white;font-size:15px;margin-left:auto}
#guestFullscreen {margin-left:auto;background:transparent;border-color:#956a8d;color:white}
body[data-view=guest] #guestFullscreen:not([hidden])~#options,body[data-view=guest] #guestDisplayMode:not([hidden])~#options {margin-left:0}
#demoBadge {position:absolute;right:10px;top:10px;background:var(--plum);color:white;padding:3px 8px;border-radius:4px;font-size:14px}
@media(min-width:1650px) {header {padding-inline:max(4.5vw,calc((100vw - 1200px)/2))}}
@media(max-width:900px) {
  header {padding-inline:22px}#studioTabs {margin-left:22px;gap:0}#studioTabs button {padding-inline:11px}
  .test-layout {gap:24px;grid-template-columns:minmax(0,1.05fr) minmax(280px,1fr)}
  .print-stage {min-height:360px;aspect-ratio:auto}
  .test-setup>p {margin-bottom:14px}
}
@media(max-width:680px) {
  body[data-view=studio] header {height:auto;min-height:100px;display:flex;flex-wrap:wrap;padding:10px 16px 8px;gap:8px}
  .brand {font-size:26px;gap:8px}.brand img {width:34px;height:31px}
  .runtime-label {font-size:13px}
  #studioTabs {order:2;width:100%;margin:0;display:grid;grid-template-columns:1.15fr .85fr 1.15fr;gap:3px}
  #studioTabs button {font-size:15px;padding:6px 4px;gap:5px;min-height:37px}
  #studioTabs .ui-icon {width:16px;height:16px}
  body[data-view=studio] main {padding:23px 17px}
  .workspace>h1,.workspace>#settingsHeading {font-size:39px;margin-bottom:16px}
  .test-layout {display:flex;flex-direction:column;gap:21px}
  .print-stage {height:clamp(165px,48vw,248px);min-height:0;aspect-ratio:auto}
  .stage-photo,.stage-paper {height:82%}
  .print-stage::after {inset:12px}
  .print-stage figcaption {font-size:12px;bottom:9px;left:10px}
  .test-setup {max-width:none;width:100%}
  .test-setup h2 {font-size:29px}
  .test-setup>p {margin:5px 0 15px}
  .series-spec {margin:14px 0 16px}
  .series-spec>div {padding:5px 0}
  .test-footer {margin-top:19px;font-size:14px}
  .settings-grid {grid-template-columns:1fr;gap:18px}
  .settings-grid>fieldset {padding:12px 15px}
  #guestDisplayMode {font-size:12px}
}

#studioLock {margin-left:10px;display:inline-flex;align-items:center;gap:6px;min-height:36px;border:1px solid #fff8;background:transparent;color:#fff;padding:6px 9px;border-radius:6px;font-size:15px}
body[data-view=guest] #studioLock {display:none}
