:root {
  color-scheme: dark;
  --bg: #05080e;
  --panel: #0b111c;
  --field: #080d15;
  --raised: #101927;
  --line: #ffffff1f;
  --text: #f4f7fb;
  --muted: #8996a9;
  --blue: #57b8ff;
  --green: #4ee0a1;
  --amber: #ffb454;
  --red: #ff626d;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  font: 15px/1.5 system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; color: var(--text); background: radial-gradient(ellipse at 18% 0%, #2b77ff1a, transparent 38%), radial-gradient(ellipse at 95% 88%, #ff8a1f0d, transparent 30%), var(--bg); }
button, input, select, textarea { font: inherit; }
a { color: var(--blue); }
button, .button { display: inline-flex; gap: .45rem; align-items: center; justify-content: center; min-height: 38px; padding: 7px 12px; color: var(--text); border: 1px solid var(--line); border-radius: 6px; background: var(--raised); text-decoration: none; font-weight: 650; cursor: pointer; }
button:hover:not(:disabled), .button:hover { border-color: var(--blue); }
button:disabled { opacity: .46; cursor: not-allowed; }
.primary { background: var(--blue); color: #071321; border-color: var(--blue); }
.primary:hover:not(:disabled), .button.primary:hover { background: #7ac8ff; }
.danger { color: #ff98a0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
input:not([type=checkbox],[type=radio]), select, textarea { min-width: 0; width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--field); color: var(--text); }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); width: 17px; height: 17px; margin: 0; flex: none; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.85rem); }
h2 { font-size: 1.3rem; }
p { margin: .55rem 0 0; }
.muted { color: var(--muted); }
.eyebrow { font: 650 .71rem/1.4 var(--mono); letter-spacing: .13em; color: var(--blue); text-transform: uppercase; }
.eyebrow + h1, .eyebrow + h2 { margin-top: .42rem; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.compact { gap: 6px; }
.compact button { font-size: .79rem; min-height: 34px; }
.wide { width: 100%; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, calc((100vw - 1510px) / 2)); min-height: 66px; position: relative; background: linear-gradient(180deg, #0b111cfa, #05080efa); border-bottom: 1px solid var(--line); box-shadow: 0 14px 34px #0005; }
.top::after { content: ''; position: absolute; inset: auto 0 -1px; height: 1px; background: linear-gradient(90deg, #ff8a1f, var(--blue) 34%, transparent 76%); opacity: .65; }
.top nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; align-items: center; }
.brand { color: var(--text); font-size: 22px; line-height: 1; letter-spacing: -.045em; text-decoration: none; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.brand strong { color: var(--blue); }
.brand small:not([hidden]) { display: block; font: .56rem var(--mono); letter-spacing: .1em; color: var(--muted); margin-top: 5px; }
@font-face {
  font-family: 'Noto Sans';
  src: url('./brand/noto-sans-bold-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
.participant-page .brand { font-family: 'Noto Sans', system-ui, sans-serif; font-weight: 700; }
.participant-page .brand, .participant-page .brand strong { color: #fff; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px #0002; min-width: 0; }
.home { max-width: 1232px; margin: 0 auto; padding: clamp(20px, 4vw, 58px) 16px 48px; }
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.12fr .88fr; gap: 32px; align-items: center; padding: clamp(22px, 4vw, 52px); background: radial-gradient(ellipse at 80% 45%, #142842, transparent 72%), var(--panel); }
.hero h1 { font-size: clamp(2.5rem, 5.3vw, 5.1rem); line-height: .99; letter-spacing: -.068em; margin: 12px 0; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero p { max-width: 47ch; font-size: clamp(.95rem, 1.5vw, 1.12rem); }
.hero .actions { margin-top: 24px; }
.footnote i, .pill.live::before { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px #4ee0a180; }
.library { margin-top: 36px; }
.section-title, .center-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-title { margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.room-card-wrap { position: relative; min-width: 0; }
.room-card { display: grid; gap: 10px; padding: 16px; text-decoration: none; color: var(--text); }
.room-card:hover { border-color: var(--blue); }
.room-card strong { overflow-wrap: anywhere; }
.room-card small { font: .73rem var(--mono); color: var(--muted); }
.room-card-delete { position: absolute; top: 8px; right: 8px; width: 40px; min-height: 40px; padding: 0; }
@media (hover: hover) and (pointer: fine) {
  .room-card-wrap:not(:hover):not(:focus-within) .room-card-delete { opacity: 0; pointer-events: none; }
}
.empty { padding: 24px; text-align: center; border-style: dashed; }
.empty h3 { margin-top: 9px; }
.empty button { margin-top: 15px; }
.tile-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; background: #57b8ff19; color: var(--blue); font: 1.4rem system-ui; }
.workspace { max-width: 1542px; margin: 0 auto; padding: 18px 16px; }
.session-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 15px; }
.session-bar > :first-child { flex: 1 1 210px; min-width: 0; }
input.deck-title { display: block; font-weight: 760; font-size: clamp(1.18rem, 2.6vw, 1.8rem); padding: 4px 8px; margin-top: 4px; background: transparent; max-width: 540px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 4px; padding: 5px 8px; color: var(--muted); font: .72rem var(--mono); white-space: nowrap; }
.pill.live { color: var(--green); background: #4ee0a110; border-color: #4ee0a145; }
.pill.live::before { content: ''; }
.studio-layout { display: grid; grid-template-columns: minmax(184px, .7fr) minmax(280px, 2fr) minmax(230px, .85fr); gap: 14px; align-items: start; }
.sidebar, .studio-center > .panel, .inspector > .panel { padding: 12px; }
.studio-center, .inspector { display: grid; gap: 14px; min-width: 0; }
.panel-heading { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.panel-heading h2 span { color: var(--muted); font: .8rem var(--mono); margin-left: .3rem; }
.slides { padding: 0; list-style: none; margin: 0 0 10px; display: grid; gap: 6px; max-height: 65vh; overflow-y: auto; }
.slides button { text-align: left; width: 100%; justify-content: start; gap: 8px; padding: 8px; min-height: 50px; }
.slides button span:nth-child(2) { min-width: 0; }
.slides strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slides small { display: block; font-weight: 400; color: var(--muted); }
.slides [draggable="true"] { cursor: grab; }
.slide-number, .drag-grip { user-select: none; }
.drag-grip { margin-inline-start: auto; color: var(--muted); flex: none; }
.slides .dragging { opacity: .5; }
.slides [data-drop="before"] > button { border-top-color: var(--blue); box-shadow: inset 0 2px var(--blue); }
.slides [data-drop="after"] > button { border-bottom-color: var(--blue); box-shadow: inset 0 -2px var(--blue); }
.slides [aria-current] { border-color: #57b8ff90; background: #57b8ff16; }
.pixla-admin .slides .slide-missing-field > button {
  border-color: var(--red);
  background: #42202b;
}
@media (prefers-reduced-motion: no-preference) {
  .pixla-admin .slides .slide-missing-field > button { animation: slide-field-pulse 2.8s ease-in-out infinite; }
  @keyframes slide-field-pulse {
    50% { background-color: #712b39; }
  }
}
.slide-number, .clock { font: .85rem var(--mono); color: var(--amber); flex: none; }
.clock:empty { display: none; }
.field { display: grid; gap: 5px; margin-bottom: 11px; }
.field > span { font-size: .83rem; font-weight: 650; }
.option-edit { display: flex; align-items: center; gap: 7px; }
.option-edit small { color: var(--muted); padding: 0 3px; }
.icon-button { min-width: 32px; padding: 4px; }
.inspector .actions + .actions { margin-top: 7px; }
.settings { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.settings summary { cursor: pointer; }
.settings label { display: flex; align-items: center; gap: 8px; margin: 9px 0; font-size: .82rem; }
.stage { min-height: 320px; border: 1px solid var(--line); border-radius: 6px; background: radial-gradient(ellipse at 20% 5%, #123054, transparent 62%), #080e19; }
.stage-body { padding: clamp(16px, 3vw, 40px); overflow-wrap: anywhere; }
.stage-body > h2 { font-size: clamp(1.55rem, 3.2vw, 3.4rem); margin: 8px 0; }
.stage-body p { color: #b6c4d6; white-space: pre-wrap; }
.placeholder { text-align: center; color: var(--muted); padding-top: 66px; }
.graph, .cloud, .plot-wrap, .responses, .stage-body .slide-image { margin-top: 16px; }
.graph { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 4px; }
.bar.correct { color: var(--green); }
.bar > i { height: 9px; grid-column: 1 / -1; overflow: hidden; background: #ffffff16; border-radius: 12px; }
.bar > i > i { display: block; height: 100%; width: var(--fill); background: linear-gradient(90deg, #2975bd, var(--blue)); }
.bar.correct > i > i { background: var(--green); }
.cloud { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.cloud span { color: var(--blue); font-size: clamp(.95rem, var(--size), 6vw); font-weight: 730; }
.cloud span:nth-child(3n) { color: var(--amber); }
.cloud span:nth-child(3n + 2) { color: var(--green); }
.console { margin-top: 12px; }
.footnote { display: flex; align-items: center; gap: 7px; color: var(--muted); font: .75rem var(--mono); padding-top: 12px; }
.footnote span:last-child { margin-left: auto; }
.loading { padding: 20px; color: var(--muted); }
.mobile, .questions-panel { width: min(100% - 24px, 550px); margin: 28px auto; padding: clamp(16px, 4vw, 26px); }
.mobile > form, .questions-panel > form { margin-top: 14px; }
.mobile > h1 { margin-top: 7px; }
.mobile .clock { float: right; }
.choice { display: flex; gap: 10px; align-items: center; min-height: 48px; margin-bottom: 8px; padding: 10px; background: var(--raised); border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--blue); }
.waiting-inline, .success { padding: 10px; border-radius: 5px; background: #57b8ff14; margin-top: 13px; }
.success { color: var(--green); background: #4ee0a112; }
.guest-results { border: 1px solid var(--line); margin-top: 14px; border-radius: 6px; }
.guest-results .stage-body { padding: 12px; }
.guest-results h2 { font-size: 1.3rem; }
.question { background: var(--field); border: 1px solid var(--line); border-radius: 5px; padding: 9px; margin-top: 9px; }
.question p { margin: 0 0 6px; }
.question small { color: var(--muted); display: block; margin-bottom: 7px; }
.plot { position: relative; width: 100%; aspect-ratio: 1.65; border: 1px solid var(--line); background: #0d1b2c; }
.plot:has(img) { width: fit-content; max-width: 100%; aspect-ratio: auto; margin: 0 auto; }
.plot img { display: block; max-width: 100%; max-height: 42vh; }
.grid-plot { min-height: 150px; background: #eaf3ff; border-color: #93a6c1; }
.grid-quadrants { position: absolute; inset: 0; display: grid; grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr)); gap: 1px; background: #93a6c1; pointer-events: none; }
.grid-quadrants > div { display: grid; align-content: start; gap: 2px; padding: 6px; background: #f0f6ff; color: #23395d; font-size: .75rem; line-height: 1.15; overflow-wrap: anywhere; }
.grid-quadrants > div:nth-child(n + 3) { align-content: end; }
.grid-quadrants > div:nth-child(even) { text-align: right; }
.grid-quadrants > div:nth-child(2), .grid-quadrants > div:nth-child(3) { background: #e3eeff; }
.grid-caption { margin-top: 6px; font-size: .85rem; }
.plot[data-plot] { cursor: crosshair; }
.axis, .pair { display: flex; gap: 8px; justify-content: space-between; }
.axis { color: var(--muted); font-size: .76rem; margin-top: 4px; }
.pair { margin-top: 8px; }
.pair > * { flex: 1; }
.dot { position: absolute; width: 12px; height: 12px; top: var(--y); left: var(--x); background: var(--amber); transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid #25180a; pointer-events: none; }
.dot span { position: absolute; bottom: 11px; right: 0; font-size: .72rem; color: var(--text); background: #05080eee; padding: 2px 4px; }
.coordinates { border: 1px solid var(--line); border-radius: 6px; margin: 0 0 12px; padding: 0 8px; min-width: 0; }
.slide-image { display: block; max-width: 100%; max-height: 45vh; object-fit: contain; }
.presentation-page > .top { display: none; }
.screen-layout { height: 100dvh; padding: clamp(12px, 2.5vmin, 30px); position: relative; isolation: isolate; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #101933; color-scheme: light; }
body.presentation-page:has(.screen-layout) { background: transparent; }
.screen-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.screen-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.screen-toolbar[hidden], .screen-count[hidden] { display: none; }
.screen-brand, .screen-join a { display: flex; align-items: center; gap: 8px; }
.screen-brand { grid-column: 3; justify-self: end; font-size: 1rem; color: #203452; white-space: nowrap; }
.screen-brand img { width: 24px; height: auto; }
.screen-brand strong { color: #075adc; }
.screen-join a { text-decoration: none; color: var(--text); }
.screen-join .qr { width: clamp(112px, 16vmin, 220px); border-radius: 0; }
.screen-layout .screen-stage { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.screen-layout .screen-area-positioned { position: relative; overflow: hidden; }
.screen-area-positioned :is(.show-content, .cloud-frame) {
  position: absolute; inset: var(--area-y) auto auto var(--area-x);
  width: var(--area-width); height: var(--area-height);
}
.screen-area-positioned .show-content { display: block; overflow: auto; overscroll-behavior: contain; }
.screen-area-positioned .cloud-frame { margin: 0; }
.screen-area-positioned .show-column-plot { height: clamp(75px, 16vh, 190px); }
.screen-layout-cloud .screen-join .qr { border: 1px solid #e0e5eb; }
.screen-stage-cloud { display: grid; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.cloud-body { display: grid; grid-template-rows: auto minmax(190px, 1fr); gap: clamp(8px, 1.5vw, 24px); padding: 4px 0; }
.screen-hide-question :is(.show-heading, .cloud-body > header) { display: none; }
.screen-hide-question .cloud-body { grid-template-rows: minmax(190px, 1fr); }
.cloud-body h2 { margin: 0; font-size: clamp(1.55rem, 3.8vw, 4.5rem); font-weight: 760; }
.cloud-body header p { color: #556171; }
.cloud-frame { position: relative; overflow: hidden; display: grid; place-items: center; width: min(100%, max(58vw, 560px)); margin-inline: auto; color: #435168; }
.cloud-frame .cloud-empty { color: inherit; margin: 0; padding: 14px; }
.screen-count { display: flex; gap: .45em; align-items: center; margin-inline-start: auto; padding: 6px 12px; background: #eaf2fe; border-radius: 999px; color: #23395d; font-size: clamp(.9rem, 1.55vw, 1.35rem); font-weight: 760; white-space: nowrap; }
.screen-count svg { width: 1.25em; color: #0766ed; }
.screen-cloud { position: absolute; inset: 0; font: 500 1rem system-ui, -apple-system, sans-serif; }
.screen-cloud span { position: absolute; transform: translate(-50%, -50%) rotate(var(--angle, 0deg)); line-height: 1.12; white-space: pre; }
.screen-cloud.cloud-ready span { transition: left .55s cubic-bezier(.2,.7,.25,1), top .55s cubic-bezier(.2,.7,.25,1), font-size .55s ease, color .35s ease; }
@media (prefers-reduced-motion: reduce) { .screen-cloud.cloud-ready span { transition: none; } }
.screen-layout-show .screen-stage { background: transparent; border: 0; box-shadow: none; }
.screen-themed { isolation: isolate; color: var(--theme-ink); }
.screen-backdrop, .screen-backdrop-out { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.screen-theme-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; font-family: system-ui, sans-serif; }
.screen-theme-art[hidden] { display: none; }
.screen-themed .screen-brand, .screen-themed .screen-brand strong,
.screen-themed .cloud-body header p, .screen-themed .cloud-frame,
.screen-themed .show-heading p, .screen-themed .show-type, .screen-themed .show-column-value small { color: inherit; }
.screen-themed :is(.show-row, .show-feedback li, .show-answer, .show-timer, .show-scale-tiles) { color: #101933; }
.show-join-banner a, .show-type { color: #075adc; }
.show-body { min-height: 100%; display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 32px); padding: 20px 0 8px; }
.show-join-banner { grid-column: 2; text-align: center; }
.show-join-banner a { display: inline-block; border-radius: 999px; padding: 7px 20px; text-decoration: none; font-size: clamp(.85rem, 2vw, 1.65rem); background: #eaf3ff; overflow-wrap: anywhere; }
.show-join-banner a span { color: #182440; }
.show-join-banner a strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.show-heading h2 { font-size: clamp(1.7rem, 4vw, 4.1rem); font-weight: 780; }
.show-heading p { color: #4a5870; font-size: clamp(1rem, 1.7vw, 1.6rem); }
.show-type { display: inline-block; margin-bottom: 8px; font-size: clamp(.83rem, 1.5vw, 1.15rem); font-weight: 730; }
.show-type::after { content: ''; display: block; width: 2rem; height: 4px; background: #0666f4; border-radius: 9px; margin-top: 5px; }
.show-content { flex: 1; display: grid; align-content: center; min-width: 0; }
.show-empty { border: 1px dashed #cbd9ee; border-radius: 16px; padding: 24px; text-align: center; color: #465777; background: #f7faff; }
.show-rows, .show-feedback { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(6px, 1vw, 12px); }
.show-row, .show-feedback li { display: flex; align-items: center; gap: clamp(8px, 1.5vw, 22px); min-width: 0; padding: clamp(8px, 1vw, 16px); border-radius: 13px; background: #eff3f9; font-size: clamp(1rem, 2vw, 1.65rem); overflow-wrap: anywhere; }
.show-row strong { flex: 1 1 25%; min-width: 0; }
.show-badge { display: inline-grid; place-items: center; flex: none; min-width: 2em; padding: .2em .35em; border-radius: 8px; background: #dce7f5; color: #123766; font-weight: 760; }
.show-row-leader { background: #e3efff; }
.show-row-leader .show-badge { background: #085deb; color: #fff; }
.show-track { flex: 2 1 38%; height: clamp(8px, 1.8vw, 22px); border-radius: 999px; overflow: hidden; background: #d7e2f1; }
.show-track i { display: block; width: var(--fill); height: 100%; border-radius: inherit; background: #529dfa; }
.show-row-leader .show-track i { background: #0866ef; }
.show-row-value { flex: 0 0 6ch; text-align: right; font-variant-numeric: tabular-nums; }
.show-row-value small { display: block; color: #4a5870; font-size: .64em; }
.show-chart { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); margin: clamp(32px, 4vw, 62px) auto 0; width: min(100%, 1100px); text-align: center; }
.show-column { min-width: 0; }
.show-column-plot { height: clamp(135px, 32vh, 360px); padding-inline: 8%; display: flex; flex-direction: column; justify-content: end; border-bottom: 2px solid #182440; background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), #e4ecf7 calc(25% - 1px) 25%); }
.show-column-fill { position: relative; height: var(--fill); border-radius: 10px 10px 0 0; background: #0767f6; }
.show-column:nth-child(5n + 2) .show-column-fill { background: #ffcb32; }
.show-column:nth-child(5n + 3) .show-column-fill { background: #29c895; }
.show-column:nth-child(5n + 4) .show-column-fill { background: #a397f8; }
.show-column:nth-child(5n) .show-column-fill { background: #fb83b3; }
.show-column-value { position: absolute; inset: auto 0 100%; line-height: 1.05; padding-bottom: 4px; }
.show-column-value strong { display: block; font-size: clamp(.76rem, 2.4vw, 1.9rem); }
.show-column-value small { font-size: clamp(.58rem, 1.15vw, .95rem); color: #3a4965; }
.show-column > b { display: block; padding: 6px 3px; overflow-wrap: anywhere; font-size: clamp(.71rem, 1.55vw, 1.4rem); }
.show-correct { display: inline-block; padding: 0 .3em; border-radius: 4px; background: #ddf6e8; color: #146740; }
.show-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(12px, 4vw, 60px); align-items: start; }
.show-slots .show-row:first-child { border: 1px dashed #0766ed; background: #e7f2ff; }
.show-quiz-side { display: grid; justify-items: center; gap: 12px; border-left: 1px solid #d9e3f0; }
.show-timer { display: grid; place-content: center; text-align: center; width: clamp(110px, 16vw, 225px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, #fff 86%, transparent 87%), conic-gradient(#0866ef var(--time, 1turn), #dfE8f5 0); }
.show-timer span { font-size: clamp(1.65rem, 4vw, 3.6rem); font-weight: 780; font-variant-numeric: tabular-nums; }
.show-timer small { color: #465777; }
.show-answer { display: grid; gap: 4px; justify-items: center; background: #e9f2ff; border-radius: 16px; padding: 28px; overflow-wrap: anywhere; }
.show-answer strong { font-size: clamp(1.4rem, 4vw, 3rem); color: #075adc; }
.show-scale + .show-scale { margin-top: 18px; }
.show-scale-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.show-scale-results .show-scale { min-width: 0; margin-top: 0; }
.show-scale-results .show-scale h3 { padding-bottom: 4px; }
.show-scale-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; text-align: center; }
.show-scale-tiles span { background: #e8eff8; border-radius: 12px; padding: clamp(9px, 2vw, 26px) 4px; font-size: clamp(1.1rem, 3vw, 2.5rem); font-weight: 760; }
.show-scale-ends { display: flex; justify-content: space-between; margin-top: 6px; }
.show-scale .show-column-plot { height: clamp(100px, 19vh, 220px); }
.show-feedback li { border-inline-start: 5px solid #0866ef; }
.show-qa h3 { margin-bottom: 8px; }
.show-plot { width: min(100%, 760px); margin-inline: auto; }
.show-plot .plot { background-color: #edf4fe; }
.show-plot .grid-quadrants > div { padding: clamp(6px, 1vw, 14px); font-size: clamp(.75rem, 1.55vw, 1.35rem); }
.show-plot .axis { color: #4a5870; }
.screen-themed .show-plot .axis { color: inherit; }
.show-plot .dot span { right: 7px; max-width: min(22vw, 130px); width: max-content; white-space: normal; overflow-wrap: anywhere; }
.show-plot .dot.plot-left span { right: auto; left: 7px; }
.show-plot .dot.plot-top span { bottom: auto; top: 11px; }
.show-image { margin: auto; }
@media (max-width: 650px) {
  .screen-header { grid-template-columns: minmax(0, 1fr); }
  .show-join-banner, .screen-brand { grid-column: 1; }
  .show-row { flex-wrap: wrap; }
  .show-row strong { flex-basis: calc(100% - 4em); }
  .show-split { grid-template-columns: minmax(0, 1fr); }
  .show-quiz-side { border-left: 0; }
  .show-column-value strong { font-size: .68rem; }
}
.share { display: flex; flex-wrap: wrap; align-items: start; gap: 16px; }
.share-code { flex: 0 0 min(100%, 150px); text-align: center; }
.share-code .qr { margin-bottom: 8px; }
.share-links { flex: 1 1 230px; min-width: 0; }
.share-links .actions + .field { margin-top: 12px; }
.participation { display: grid; gap: 10px; margin: 8px 0 14px; }
.participation > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.participation dt { color: var(--muted); font-size: .83rem; }
.participation dd { margin: 0; font: 700 1.3rem var(--mono); }
.qr { display: block; width: min(100%, 220px); aspect-ratio: 1; border-radius: 6px; }
.big-code { display: block; font: 700 clamp(1.45rem, 3vw, 2.15rem) var(--mono); letter-spacing: .09em; }
.leaderboard, .responses { padding-left: 1.4rem; }
.leaderboard li, .responses li { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.leaderboard li b, .responses li b { float: right; color: var(--amber); margin-left: 8px; }
dialog { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 26px); padding: 16px; color: var(--text); border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 20px 50px #0008; }
dialog::backdrop { background: #02060cc2; }
dialog.theme-dialog { width: min(1120px, calc(100% - 24px)); }
dialog.participant-dialog { width: min(790px, calc(100% - 24px)); }
.participant-editor-button { margin-top: 8px; }
.participant-preview { justify-self: center; width: min(100%, 272px); margin: 8px 0 0; }
.participant-phone {
  position: relative; aspect-ratio: 510 / 1000; filter: drop-shadow(8px 14px 12px #0008);
}
.participant-device-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.participant-viewport {
  position: absolute; inset: 4.1% 9.6%; overflow: hidden; border-radius: 14% / 6.4%; background: var(--bg);
}
.participant-viewport iframe {
  position: absolute; inset: 0 auto auto 0; display: block; border: 0;
  transform: scale(var(--preview-scale, 0), var(--preview-scale-y, 0)); transform-origin: top left;
}
.participant-device-canvas, .participant-orbit { position: absolute; inset: 0; width: 100%; height: 100%; }
.participant-orbit, .participant-orbit:hover:not(:disabled) {
  border: 0; padding: 0; background: transparent; touch-action: none; cursor: grab;
}
.participant-orbit:active { cursor: grabbing; }
[data-orbit-ready] .participant-device-frame { visibility: hidden; }
[data-orbit-ready] .participant-viewport {
  inset: 0 auto auto 0; width: 402px; height: 874px; transform-origin: top left;
}
[data-orbit-ready] .participant-viewport iframe { transform: none; }
[data-orbit-ready] .participant-viewport::before {
  content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent calc(var(--glass-reflection, 50%) - 23%),
    transparent calc(var(--glass-reflection, 50%) - 13%), #ffffff0b var(--glass-reflection, 50%),
    #ffffff02 calc(var(--glass-reflection, 50%) + 9%), transparent calc(var(--glass-reflection, 50%) + 16%));
}
[data-orbit-ready] .participant-viewport::after {
  content: ''; position: absolute; z-index: 2; pointer-events: none; top: 13px; left: 147px;
  width: 108px; height: 33px; border-radius: 999px;
  background: radial-gradient(circle at 82% 50%, #283952 0 3px, #0e1520 4px 8px, #040608 9px);
}
.participant-orbit { z-index: 3; }
.participant-orbit-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.participant-device-preview { padding-block: 54px 25px; }
.participant-themed { background: var(--participant-bg); }
.participant-themed .mobile { background: var(--participant-panel); color: var(--participant-ink); }
.participant-themed .mobile :is(.muted, .eyebrow, .waiting-inline) { color: inherit; }
.participant-themed .mobile :is(textarea, select, input:not([type=checkbox],[type=radio])) {
  color: inherit; background: color-mix(in srgb, var(--participant-panel) 92%, var(--participant-ink)); border-color: color-mix(in srgb, var(--participant-ink) 45%, transparent);
}
.participant-page .panel.mobile {
  border-color: var(--participant-border, var(--line));
}
.participant-themed[data-participant-box="flat"] .mobile {
  border-color: var(--participant-border, transparent); border-radius: 4px; box-shadow: none;
}
.participant-themed[data-participant-box="raised"] .mobile {
  border-color: var(--participant-border, transparent); border-radius: 20px; box-shadow: 0 12px 30px #0005;
}
.participant-themed[data-participant-box="outlined"] .mobile {
  border-color: var(--participant-border, color-mix(in srgb, var(--participant-ink) 45%, transparent)); border-radius: 12px; box-shadow: none;
}
.participant-page .mobile .primary {
  background: var(--participant-button, var(--blue));
  border-color: var(--participant-button, var(--blue));
  color: var(--participant-button-ink, #071321);
}
.participant-page .mobile .primary:hover:not(:disabled) {
  background: var(--participant-button, #7ac8ff);
}
.theme-panel p { margin: 8px 0; }
.theme-thumbnail, .theme-artboard { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; position: relative; }
.theme-thumbnail > svg, .theme-artboard > svg { display: block; width: 100%; height: 100%; font-family: system-ui, sans-serif; }
:is(.theme-thumbnail, .theme-artboard):has(svg[data-transparent]) { background: conic-gradient(#bbc4d0 25%, #e9edf3 0 50%, #bbc4d0 0 75%, #e9edf3 0) 0 0 / 20px 20px; }
.theme-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(238px, 300px); gap: 14px; align-items: start; }
.theme-editor-stage, .theme-controls { display: grid; gap: 12px; min-width: 0; }
.theme-artboard > svg { touch-action: none; }
.theme-artboard [data-layer] { cursor: grab; }
.theme-artboard:active [data-layer] { cursor: grabbing; }
.theme-selection { fill: none; stroke: #43b8ff; stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.theme-screen-preview { display: grid; gap: 8px; min-width: 0; }
.theme-screen-preview h3 { font-size: 1rem; }
.theme-screen-stage { position: absolute; inset: 14% 3% 23%; pointer-events: none; color: var(--theme-ink); }
.theme-screen-stage.theme-stage-no-qr { bottom: 12%; }
.theme-screen-stage.theme-stage-no-footer { bottom: 3%; }
.theme-sample-title { font-size: clamp(.68rem, 1.55vw, 1.2rem); }
.theme-screen-sample { position: absolute; pointer-events: none; padding: 2px 6px; border-radius: 4px; background: #eaf3ff; color: #23395d; font-size: clamp(.56rem, 1vw, .8rem); }
.theme-sample-join { top: 3%; left: 50%; transform: translateX(-50%); }
.theme-sample-qr { bottom: 3%; left: 3%; }
.theme-sample-count { bottom: 3%; right: 3%; }
.theme-screen-area { position: absolute; inset: var(--area-y) auto auto var(--area-x); width: var(--area-width); height: var(--area-height); display: grid; place-items: center; border: 1px solid #228bed; background: #81b9ff32; text-align: center; font-size: clamp(.6rem, 1.3vw, 1rem); }
.theme-screen-area.theme-area-auto { border-style: dashed; }
.theme-area-grip { position: absolute; top: 0; left: 0; padding: 0 6px; min-height: 0; cursor: grab; pointer-events: auto; touch-action: none; }
.theme-area-grip:active { cursor: grabbing; }
.theme-area-resize, .theme-area-resize:active { inset: auto 0 0 auto; cursor: nwse-resize; }
[data-screen-toggle] svg { vertical-align: middle; }
.theme-eye-slash { visibility: hidden; }
[data-screen-toggle][aria-pressed="false"] .theme-eye-slash { visibility: visible; }
.theme-controls fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.theme-controls legend { font-weight: 700; }
.theme-tools { display: flex; flex-wrap: wrap; gap: 5px; }
.theme-tools[hidden] { display: none; }
.theme-tools button { min-height: 34px; font-size: .79rem; padding: 5px 8px; }
.theme-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
.theme-fields input[type=color] { height: 39px; padding: 3px; cursor: pointer; }
.theme-save { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.theme-save p { margin: 0 auto 0 0; }
@media (max-width: 700px) {
  .theme-editor { grid-template-columns: minmax(0, 1fr); }
}
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.type-tile { justify-content: start; text-align: left; font-size: .87rem; }
#toast { position: fixed; right: 13px; bottom: 13px; z-index: 20; max-width: calc(100% - 26px); background: var(--raised); border: 1px solid #4ee0a177; padding: 10px 14px; border-radius: 6px; }
#toast[data-error=true] { border-color: var(--red); }
.dialog-message { color: var(--green); margin-top: 12px; }
.dialog-message[data-error=true] { color: #ff98a0; }
dialog:modal { overscroll-behavior: contain; }
@media (max-width: 960px) {
  .studio-layout { grid-template-columns: minmax(138px, .52fr) minmax(230px, 1fr); }
  .inspector { grid-column: 2; }
}
@media (max-width: 640px) {
  .top { align-items: start; }
  .top button, .top .button { min-height: 32px; font-size: .74rem; padding: 5px 7px; }
  .brand { font-size: 19px; }
  .brand small:not([hidden]) { display: none; }
  .hero, .studio-layout { grid-template-columns: minmax(0, 1fr); }
  .inspector { grid-column: 1; }
  .slides { max-height: 210px; }
  .stage { min-height: 230px; }
  input:not([type=checkbox],[type=radio]), select, textarea { font-size: 16px; }
}
