:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #0a0a09;
  --paper: #f4f3ea;
  --shell: #d8d6cc;
  --muted: #66655f;
  --line: #151512;
  --shadow: rgba(20, 20, 18, .22);
}

* { box-sizing: border-box; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.8), transparent 29%),
    linear-gradient(135deg, #d5d3c8, #eeece5 48%, #c8c6bd);
}
.studio { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; user-select:none; -webkit-user-select:none; }
input,textarea,[contenteditable="true"] { user-select:text; -webkit-user-select:text; }
.studio-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px; border-bottom: 1px solid rgba(10,10,9,.22); background: rgba(244,243,234,.82);
  backdrop-filter: blur(12px); position: relative; z-index: 20;
}
.wordmark { display: flex; align-items: baseline; gap: 10px; letter-spacing: -.04em; }
.wordmark strong { font: 800 20px/1 Georgia, serif; }
.wordmark span { color: var(--muted); letter-spacing: .08em; font-size: 10px; text-transform: uppercase; }
.studio-tools { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.segmented button, .tool-button { border: 0; background: transparent; padding: 6px 9px; cursor: pointer; border-radius: 3px; font-size: 11px; }
.segmented button.active { background: var(--ink); color: var(--paper); }
.tool-button { border: 1px solid var(--line); background: var(--paper); text-transform: uppercase; letter-spacing: .08em; }
.project-link { color: inherit; text-decoration: none; white-space: nowrap; }
.project-link:hover, .project-link:focus-visible { background: var(--ink); color: var(--paper); }
.scene { display: grid; place-items: center; padding: 38px 24px 62px; perspective: 1300px; overflow: hidden; position: relative; }
.scene::before { content: ""; position: absolute; width: 80vw; height: 38%; left: 10vw; bottom: 3%; background: radial-gradient(ellipse, rgba(18,18,15,.22), transparent 66%); filter: blur(18px); transform: rotateX(65deg); }
.device {
  width: min(92vw, 108.3vh, 980px); aspect-ratio: 248 / 174; height: auto; min-height: 0; position: relative;
  padding: 17px; border-radius: 26px; background: linear-gradient(145deg, #f3f1e8, #b9b7ae);
  box-shadow: 0 38px 65px var(--shadow), inset 0 1px 1px white, inset -2px -2px 4px rgba(0,0,0,.14);
  transform: rotateX(1.5deg); transition: width .35s, height .35s, transform .35s;
}
.device.pocket { width: min(92vw, 50.4vh, 410px); aspect-ratio: 88 / 138; }
.device.tablet { width: min(92vw, 54.3vh, 620px); aspect-ratio: 158 / 224; }
.device.rotate { transform: rotateX(3deg) rotateY(-8deg) rotateZ(.4deg); }
.power-button { position: absolute; right: -3px; top: 92px; width: 4px; height: 52px; border-radius: 0 3px 3px 0; background: #74736d; }
.screen {
  height: 100%; border: 2px solid #2e2e2b; border-radius: 10px; overflow: hidden; position: relative;
  background-color: var(--paper); box-shadow: inset 0 1px 9px rgba(0,0,0,.25);
  background-image: radial-gradient(rgba(0,0,0,.045) .7px, transparent .8px);
  background-size: 3px 3px;
}
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: multiply; background: repeating-linear-gradient(90deg, transparent 0 1px, rgba(0,0,0,.08) 1px 2px); }
.os { height: 100%; display: grid; grid-template-rows: 31px minmax(0,1fr) 51px; position: relative; }
.status-bar { border-bottom: 2px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font: 700 10px/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .07em; z-index: 4; }
.status-right { display: flex; align-items: center; gap: 9px; }
.battery { display: inline-flex; width: 24px; height: 10px; padding: 1px; border: 1px solid; position: relative; }
.battery::after { content: ""; position: absolute; right: -3px; top: 2px; height: 4px; border-right: 2px solid; }
.battery i { width: 78%; background: var(--ink); display: block; }
.workspace { min-height: 0; overflow: hidden; position: relative; }
.app-layer { height:100%; }
.view { height: 100%; overflow: auto; scrollbar-width: none; padding: 18px; }
.view::-webkit-scrollbar { display: none; }
.bottom-nav { border-top: 2px solid var(--line); display: grid; grid-template-columns: repeat(6, 1fr); z-index: 5; background: var(--paper); }
.nav-button { border: 0; border-right: 1px solid var(--line); background: transparent; display: grid; place-items: center; gap: 1px; padding: 5px 2px 3px; cursor: pointer; }
.nav-button:last-child { border-right: 0; }
.nav-button.active { color: var(--paper); background: var(--ink); }
.nav-button svg { width: 18px; height: 18px; stroke-width: 1.7; fill: none; stroke: currentColor; }
.nav-button span { font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.eyebrow { font: 800 9px/1.2 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 700 clamp(27px, 5vw, 48px)/.95 Georgia, serif; letter-spacing: -.045em; margin-bottom: 12px; }
h2 { font: 700 24px/1 Georgia, serif; letter-spacing: -.03em; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
p { line-height: 1.45; }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(190px, .65fr); gap: 16px; border-bottom: 2px solid; padding-bottom: 17px; }
.hero p { max-width: 52ch; font-size: 13px; margin-bottom: 0; }
.now-card { border: 2px solid; padding: 12px; display: grid; align-content: space-between; min-height: 140px; background: var(--ink); color: var(--paper); }
.now-card .big { font: 700 42px/1 Georgia,serif; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.card { border: 1.5px solid; background: rgba(244,243,234,.72); padding: 12px; min-height: 108px; position: relative; }
button.card { text-align: left; cursor: pointer; }
.card:hover, .list-row:hover { background: var(--ink); color: var(--paper); }
.card .number { font: 700 27px/1 Georgia, serif; }
.card p { font-size: 11px; color: inherit; margin: 7px 0 0; }
.card-tag { font: 800 8px/1 ui-monospace,monospace; text-transform: uppercase; border: 1px solid; display: inline-block; padding: 3px 4px; margin-bottom: 14px; }
.view-header { display: flex; align-items: end; justify-content: space-between; border-bottom: 2px solid; padding-bottom: 11px; margin-bottom: 12px; }
.view-header h2 { margin: 0; }
.ink-button { border: 1.5px solid; background: var(--ink); color: var(--paper); padding: 8px 11px; font: 800 9px/1 ui-monospace,monospace; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.ink-button.secondary { background: transparent; color: var(--ink); }
.reader { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 20px; height: calc(100% - 52px); }
.book-cover { background: var(--ink); color: var(--paper); padding: 16px; min-height: 218px; display: flex; flex-direction: column; justify-content: space-between; }
.book-cover strong { font: 700 26px/1 Georgia,serif; }
.progress { height: 7px; border: 1px solid; margin: 8px 0; }
.progress i { display: block; width: 38%; height: 100%; background: currentColor; }
.book-page { font: 15px/1.63 Georgia,serif; max-width: 66ch; }
.book-page p:first-of-type::first-letter { float:left; font-size: 52px; line-height: .8; margin: 7px 7px 0 0; }
.reader-actions { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.ink-button:disabled { opacity:.35; cursor:not-allowed; }
.split { display: grid; grid-template-columns: 230px 1fr; gap: 12px; min-height: calc(100% - 52px); }
.list { border: 1.5px solid; }
.list-row { width: 100%; border: 0; border-bottom: 1px solid; background: transparent; text-align: left; padding: 10px; cursor:pointer; display: block; }
.list-row:last-child { border-bottom: 0; }
.list-row strong { display:block; font-size: 12px; }
.list-row small { color: inherit; opacity:.68; }
.note-editor { width: 100%; min-height: 260px; border: 0; outline: 0; resize: none; background: transparent; font: 17px/1.55 Georgia,serif; color: var(--ink); }
.weather-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.weather-now { border: 2px solid; padding: 16px; min-height: 220px; }
.temp { font: 700 80px/.85 Georgia,serif; letter-spacing: -.08em; }
.forecast { display: grid; gap: 5px; }
.forecast div { display:flex; justify-content:space-between; border-bottom:1px solid; padding:8px 2px; font: 700 11px ui-monospace,monospace; }
.dither-scape { height: 91px; margin-top: 13px; border: 1px solid; background: repeating-radial-gradient(ellipse at 55% 105%, var(--ink) 0 1px, transparent 1px 4px), linear-gradient(155deg, transparent 52%, var(--ink) 52% 54%, transparent 54%); image-rendering: pixelated; }
.agent-feed { display: grid; gap: 8px; }
.agent-event { border-left: 5px solid; padding: 8px 12px; background: rgba(0,0,0,.055); display:grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items:center; }
.agent-event time { font: 800 9px ui-monospace,monospace; }
.agent-event p { margin:0; font-size:12px; }
.agent-event button { border:1px solid; background:transparent; font-size:9px; padding:5px; }
.row-actions { display:flex; gap:4px; }
.detail-panel { border:2px solid; margin:8px 0; padding:10px; display:grid; grid-template-columns:1fr auto; gap:8px; }
.detail-panel h3 { margin:4px 0; }
.detail-panel ol { grid-column:1/-1; margin:0; padding-left:22px; font:10px/1.6 ui-monospace,monospace; }
.service-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.service { border:1.5px solid; padding:12px; display:grid; grid-template-columns:35px 1fr auto; gap:9px; align-items:center; background:transparent; color:inherit; text-align:left; cursor:pointer; }
.service.selected { outline:3px double var(--ink); outline-offset:-5px; }
.service-icon { width:32px; height:32px; border-radius:50%; background:var(--ink); color:var(--paper); display:grid; place-items:center; font-weight:900; }
.service small { display:block; color:var(--muted); }
.status-dot { width:8px; height:8px; border:1px solid; border-radius:50%; }
.status-dot.on { background:var(--ink); }
.service-detail { display:grid; grid-template-columns:1.25fr .75fr; border:1.5px solid; margin-top:10px; padding:12px; gap:16px; }
.service-detail h3 { margin:0 0 5px; }
.service-detail p { font-size:11px; }
.service-detail ul { margin:6px 0 10px; padding-left:18px; }
.service-detail code { font-size:9px; }
.audit-log { border-left:1px solid; padding-left:12px; }
.audit-log p { margin:7px 0; padding-bottom:6px; border-bottom:1px dotted; }
.settings-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.setting { border-bottom:1px solid; padding:10px 2px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.setting strong { display:block; font-size:12px; }
.setting small { color:var(--muted); }
.toggle { width:35px; height:19px; border:1.5px solid; border-radius:20px; padding:2px; background:transparent; cursor:pointer; }
.toggle::after { content:""; width:12px; height:12px; border-radius:50%; background:var(--ink); display:block; transition:transform .2s; }
.toggle.on::after { transform:translateX(15px); }
.notifications { position:absolute; top:0; right:0; bottom:0; width:min(350px,88%); border-left:2px solid; background:var(--paper); z-index:12; padding:15px; transform:translateX(102%); transition:transform .22s; box-shadow:-12px 0 30px rgba(0,0,0,.15); }
.notifications.open { transform:translateX(0); }
.notice { border-top:1px solid; padding:11px 0; }
.notice p { font-size:12px; margin:4px 0; }
.notice-actions { display:flex; gap:5px; }
.notice-actions button { background:transparent; border:1px solid; font-size:9px; padding:4px 6px; }
.refresh-flash { position:absolute; inset:0; z-index:30; background:var(--ink); opacity:0; pointer-events:none; }
.refresh-flash.run { animation:fullRefresh .42s steps(3); }
@keyframes fullRefresh { 0%{opacity:0} 18%{opacity:1} 48%{opacity:.16} 72%{opacity:.85} 100%{opacity:0} }
.partial-flash { position:absolute; border:1px dashed var(--ink); background:rgba(0,0,0,.12); pointer-events:none; z-index:29; animation:partial .28s steps(2) forwards; }
@keyframes partial { 0%{filter:invert(1);opacity:1} 100%{filter:invert(0);opacity:0} }
.command { position:absolute; z-index:20; left:50%; bottom:63px; transform:translate(-50%, 20px); width:min(560px,90%); border:2px solid; background:var(--paper); padding:10px; opacity:0; pointer-events:none; transition:.18s; box-shadow:8px 8px 0 var(--ink); }
.command.open { opacity:1; pointer-events:auto; transform:translate(-50%,0); }
.command input { width:100%; border:0; border-bottom:1px solid; background:transparent; outline:0; font:700 18px Georgia,serif; padding:8px; }
.suggestions { display:flex; gap:5px; margin-top:8px; flex-wrap:wrap; }
.suggestions button { border:1px solid; background:transparent; font-size:9px; padding:5px; }
.wizard { position:absolute; inset:0; z-index:40; display:grid; place-items:center; background:var(--paper); padding:28px; }
.wizard-inner { width:min(590px,100%); }
.wizard h1 { max-width:10ch; }
.choice-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:20px 0; }
.choice { min-height:142px; border:1.5px solid; background:transparent; text-align:left; padding:12px; cursor:pointer; }
.choice.selected { background:var(--ink); color:var(--paper); }
.choice strong { display:block; font:700 19px Georgia,serif; margin:9px 0; }
.choice p { font-size:10px; margin:0; }
.wizard-footer { display:flex; justify-content:space-between; align-items:center; border-top:1px solid; padding-top:11px; }
.dots { display:flex; gap:4px; }.dots i { width:18px; height:4px; border:1px solid; }.dots i.on{background:var(--ink)}
.toast { position:absolute; left:50%; top:43px; transform:translate(-50%,-20px); opacity:0; background:var(--ink); color:var(--paper); padding:8px 12px; z-index:50; font:800 9px ui-monospace,monospace; text-transform:uppercase; transition:.2s; pointer-events:none; }
.toast.show { transform:translate(-50%,0); opacity:1; }
.display-lab { position:fixed; inset:58px 0 0; z-index:60; display:grid; grid-template-rows:auto 1fr; color:#f4f3ea; background:#11110f; }
.lab-bar { min-height:54px; display:flex; justify-content:space-between; align-items:center; gap:16px; border-bottom:1px solid #f4f3ea; padding:9px 14px; }
.lab-bar strong { font:700 18px Georgia,serif; }
.lab-bar small { display:block; color:#aaa99f; margin-top:2px; }
.lab-actions { display:flex; gap:6px; }
.lab-actions button,.lab-actions select { border:1px solid #f4f3ea; color:#f4f3ea; background:#11110f; padding:7px 9px; cursor:pointer; font:700 9px ui-monospace,monospace; text-transform:uppercase; }
.lab-actions button:hover,.lab-actions button.active { background:#f4f3ea; color:#11110f; }
.lab-actions button:disabled { cursor:not-allowed; opacity:.32; text-decoration:line-through; }
.lab-presets { display:flex; gap:4px; flex-wrap:wrap; justify-content:flex-end; }
.lab-stage { min-height:0; position:relative; overflow:hidden; cursor:grab; touch-action:none; perspective-origin:50% 50%; }
.lab-stage:active { cursor:grabbing; }
#threeLab { width:100%; height:100%; display:block; position:relative; z-index:0; }
.lab-live-surface {
  --native-pixel-px:.5px;
  --film-feature-px:.4px;
  --micro-opacity:0;
  position:absolute;
  z-index:2;
  left:50%;
  top:50%;
  overflow:hidden;
  border-radius:7px;
  color:var(--ink);
  background:var(--paper);
  box-shadow:inset 0 0 5px rgba(0,0,0,.3),0 0 0 1px rgba(12,12,10,.84);
  transform-origin:0 0;
  transform-style:preserve-3d;
  backface-visibility:hidden;
  will-change:transform;
  cursor:default;
  touch-action:auto;
  contain:layout paint;
  isolation:isolate;
}
.lab-surface-current,.lab-surface-ghost { position:absolute; inset:0; overflow:hidden; }
.lab-surface-current { z-index:2; }
.lab-surface-ghost { z-index:3; pointer-events:none; opacity:0; filter:contrast(.82); mix-blend-mode:multiply; }
.lab-surface-current > .screen,.lab-surface-ghost > .screen {
  width:100%;
  height:100%;
  border:0;
  border-radius:inherit;
  box-shadow:none;
  background-image:none;
}
.lab-live-surface .screen::after { opacity:0; }
.lab-live-surface .view { overscroll-behavior:contain; touch-action:pan-y; }
.lab-live-surface.wave-partial .lab-surface-ghost { opacity:.15; }
.lab-live-surface.wave-partial.refresh-quality .lab-surface-ghost { opacity:.07; }
.lab-live-surface.wave-full .lab-surface-current { animation:epdCleanWave .62s steps(1,end); }
@keyframes epdCleanWave {
  0% { filter:none; }
  14% { filter:brightness(0); }
  31% { filter:brightness(1.9) grayscale(1); }
  49% { filter:invert(1) grayscale(1); }
  68% { filter:brightness(1.7) grayscale(1); }
  84% { filter:contrast(.72) grayscale(1); }
  100% { filter:none; }
}
.lab-micro-overlay {
  position:absolute;
  z-index:3;
  inset:0;
  pointer-events:none;
  opacity:0;
  mix-blend-mode:normal;
  transition:opacity .12s linear;
}
.lab-fallback { position:absolute; inset:0; display:grid; place-items:center; padding:28px; text-align:center; color:#f4f3ea; background:#11110f; font:700 13px/1.5 ui-monospace,monospace; }
.lab-fallback[hidden] { display:none; }
.lab-legend { position:absolute; left:13px; bottom:13px; display:grid; grid-template-columns:repeat(3,auto); gap:1px; font:700 8px ui-monospace,monospace; text-transform:uppercase; }
.lab-legend span { border:1px solid #f4f3ea; padding:6px; background:rgba(10,10,9,.7); }
.lab-spec { position:absolute; right:13px; top:13px; max-width:325px; border:1px solid #f4f3ea; padding:9px; background:rgba(10,10,9,.78); font:700 8px/1.6 ui-monospace,monospace; text-transform:uppercase; }
.lab-spec strong { font-size:10px; }
.lab-spec span { display:block; max-width:42ch; margin-top:5px; color:#aaa99f; text-transform:none; font-weight:500; }
.lab-zoom { position:absolute; left:13px; top:13px; min-width:148px; border:1px solid #f4f3ea; padding:9px; background:rgba(10,10,9,.76); font:700 8px/1.55 ui-monospace,monospace; text-transform:uppercase; }
.lab-zoom strong { display:block; font-size:15px; line-height:1; margin:3px 0; }
.lab-camera-rail { position:absolute; z-index:12; display:flex; align-items:center; gap:8px; padding:7px 9px; border:1px solid #f4f3ea; color:#f4f3ea; background:rgba(10,10,9,.82); font:700 8px/1 ui-monospace,monospace; text-transform:uppercase; }
.lab-camera-rail input { accent-color:#f4f3ea; cursor:pointer; }
.lab-camera-tilt,.lab-camera-magnify { top:50%; flex-direction:column; transform:translateY(-50%); }
.lab-camera-tilt { left:10px; }
.lab-camera-magnify { right:10px; }
.lab-camera-tilt input,.lab-camera-magnify input { width:18px; height:190px; writing-mode:vertical-lr; direction:rtl; }
.lab-camera-focus-x { left:50%; top:10px; width:min(360px,38%); transform:translateX(-50%); }
.lab-camera-focus-x input { min-width:0; width:100%; }
.lab-camera-focus-y { right:50px; top:50%; flex-direction:column; transform:translateY(-50%); }
.lab-camera-focus-y input { width:18px; height:190px; writing-mode:vertical-lr; direction:rtl; }
.lab-camera-orbit { left:50%; bottom:10px; width:min(380px,42%); transform:translateX(-50%); }
.lab-camera-orbit input { min-width:0; width:100%; }
.lab-help { position:absolute; left:50%; bottom:13px; transform:translateX(-50%); padding:6px 8px; white-space:nowrap; color:#c4c2b8; background:rgba(10,10,9,.72); font:700 8px ui-monospace,monospace; text-transform:uppercase; }
.lab-data-drawer { position:absolute; z-index:10; right:13px; top:13px; width:min(340px,42vw); border:1px solid #f4f3ea; color:#f4f3ea; background:rgba(10,10,9,.82); font:700 8px/1.55 ui-monospace,monospace; text-transform:uppercase; }
.lab-data-drawer summary { padding:8px 10px; cursor:pointer; list-style:none; }
.lab-data-drawer summary::-webkit-details-marker { display:none; }
.lab-data-drawer summary::before { content:"+ "; }
.lab-data-drawer[open] summary::before { content:"− "; }
.lab-data-drawer > div { padding:0 10px 10px; color:#c7c5bb; text-transform:none; font-weight:500; }
.lab-data-drawer strong { color:#f4f3ea; text-transform:uppercase; }
.lab-data-drawer .dither-compare { position:static; width:100%; margin-top:9px; padding:8px 0 0; border-width:1px 0 0; background:transparent; }
.dither-compare { position:absolute; right:13px; bottom:13px; width:min(420px,55%); border:1px solid #f4f3ea; padding:9px; background:rgba(10,10,9,.86); }
.dither-compare header { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:6px; }
.dither-compare header strong { font:700 10px ui-monospace,monospace; text-transform:uppercase; }
.dither-compare header span,.dither-compare small { color:#aaa99f; font:600 7px/1.3 ui-monospace,monospace; }
.dither-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; }
.dither-grid figure { margin:0; min-width:0; }
.dither-grid canvas { display:block; width:100%; height:auto; border:1px solid #74736d; background:#f4f3ea; image-rendering:pixelated; }
.dither-grid figcaption { margin-top:3px; font:700 7px ui-monospace,monospace; text-transform:uppercase; }
.empty { height:100%; display:grid; place-items:center; text-align:center; }
.pocket .hero, .pocket .weather-layout, .pocket .reader, .pocket .split { grid-template-columns:1fr; }
.pocket .hero .now-card { min-height:95px; }
.pocket .grid { grid-template-columns:repeat(2,1fr); }
.pocket .reader { height:auto; }.pocket .book-cover { min-height:145px; }
.pocket .settings-grid,.pocket .service-grid,.pocket .service-detail { grid-template-columns:1fr; }
.pocket .audit-log { border-left:0; border-top:1px solid; padding:9px 0 0; }
.pocket .agent-event { grid-template-columns:64px 1fr; }.pocket .agent-event button{display:none}
.pocket .view { padding:13px; }
@media (max-width:680px) {
  .studio-bar { align-items:flex-start; padding:10px; }
  .wordmark span { display:none; }
  .scene { padding:18px 8px 38px; }
  .device { min-height:0; }
  .studio-tools .tool-button:first-of-type { display:none; }
  .lab-bar { align-items:flex-start; }
  .lab-bar small,.lab-spec,.lab-help { display:none; }
  .lab-presets { max-width:210px; }
  .lab-actions button { padding:6px; }
  .lab-actions select { max-width:145px; padding:6px; }
  .dither-compare { width:calc(100% - 26px); }
  .wizard { place-items:start center; padding:18px 16px; overflow:auto; }
  .wizard-inner { width:100%; }
  .choice-grid { grid-template-columns:1fr; gap:6px; margin:12px 0; }
  .choice { min-height:0; padding:10px; }
  .choice strong { margin:5px 0; }
  .wizard h1 { font-size:30px; max-width:12ch; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }
