/* =========================  App chrome  ========================= */
:root {
  --ui-fg: #f4f6fb;
  --ui-fg-dim: rgba(244, 246, 251, .62);
  --ui-fg-faint: rgba(244, 246, 251, .38);
  --ui-line: rgba(255, 255, 255, .12);
  --ui-field: rgba(255, 255, 255, .08);
  --ui-field-hi: rgba(255, 255, 255, .16);
  --ui-accent: #6fb7ff;
  --ui-accent-2: #c07cff;
  --topbar-h: 60px;
  --pad: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI Variable", "Segoe UI", Inter, system-ui, "Helvetica Neue", Arial, sans-serif;
}
[data-appearance="light"] {
  --ui-fg: #10151f;
  --ui-fg-dim: rgba(16, 21, 31, .66);
  --ui-fg-faint: rgba(16, 21, 31, .42);
  --ui-line: rgba(16, 21, 31, .12);
  --ui-field: rgba(16, 21, 31, .06);
  --ui-field-hi: rgba(16, 21, 31, .12);
  --ui-accent: #0a72e8;
  --ui-accent-2: #8a3ffc;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ui-fg);
  background: #05070d;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[data-appearance="light"] body { background: #dfe6f2; }
button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

#lg-filters { position: fixed; width: 0; height: 0; opacity: 0; pointer-events: none; }

/* ---------- scene (background under the glass) ---------- */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #05070d; }
.scene__layer {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  transition: background .5s ease, filter .5s ease;
}
.scene--motion .scene__layer { animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift {
  0%   { transform: scale(1.04) translate3d(-1.5%, -1%, 0) rotate(-.6deg); }
  100% { transform: scale(1.12) translate3d(2%, 1.5%, 0) rotate(.6deg); }
}
@media (prefers-reduced-motion: reduce) { .scene--motion .scene__layer { animation: none; } }

/* ---------- top bar ---------- */
.topbar {
  position: relative;
  z-index: 30;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--pad);
}
.topbar__brand { display: flex; align-items: center; gap: 11px; min-width: 0; overflow: hidden; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, #64d2ff, #bf5af2 55%, #ff9f0a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 6px 18px rgba(120, 90, 255, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font-size: 15px; letter-spacing: -.01em; }
.brand-text i { font-style: normal; font-size: 11px; color: var(--ui-fg-dim); white-space: nowrap; }

.topbar__actions { display: flex; align-items: center; gap: 8px; }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px; border-radius: 17px;
  font-size: 13px; color: var(--ui-fg);
  background: var(--ui-field);
  box-shadow: inset 0 0 0 1px var(--ui-line);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: background .18s, transform .18s;
}
.ghost-btn:hover { background: var(--ui-field-hi); }
.ghost-btn:active { transform: scale(.95); }
.ghost-btn span { opacity: .8; }

.seg {
  display: inline-flex; padding: 3px; border-radius: 17px; gap: 2px;
  background: var(--ui-field);
  box-shadow: inset 0 0 0 1px var(--ui-line);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.seg button {
  height: 28px; padding: 0 12px; border-radius: 14px;
  font-size: 12px; font-weight: 500; color: var(--ui-fg-dim);
  transition: background .2s, color .2s;
}
.seg button.is-on {
  color: var(--ui-fg);
  background: rgba(255,255,255,.18);
  box-shadow: 0 1px 3px rgba(0,0,0,.18), inset 0 0 0 .5px rgba(255,255,255,.3);
}
[data-appearance="light"] .seg button.is-on { background: #fff; }
.seg--mini button { padding: 0 10px; }

/* ---------- workspace ---------- */
.workspace {
  position: relative;
  z-index: 20;
  height: calc(100% - var(--topbar-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: var(--pad);
  padding: 0 var(--pad) var(--pad);
}

/* ---------- stage ----------
   Foreground tokens flip with the luminance of the scene, the way system
   vibrancy keeps labels legible on top of any material. */
.stage {
  --stage-fg: #fff;
  --stage-fg-dim: rgba(255, 255, 255, .78);
  --stage-veil: rgba(255, 255, 255, .10);
  --stage-veil-hi: rgba(255, 255, 255, .22);
  color: var(--stage-fg);
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--ui-line);
  touch-action: none;
}
.stage__hint {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  font-size: 11.5px; letter-spacing: .01em;
  color: rgba(255,255,255,.62);
  background: rgba(0,0,0,.28);
  padding: 5px 12px; border-radius: 12px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  pointer-events: none; z-index: 6;
  transition: opacity .35s;
}
.stage.is-dragging .stage__hint { opacity: 0; }

/* scene strip */
.stage__scenes {
  position: absolute; left: 14px; bottom: 14px; z-index: 7;
  display: flex; flex-wrap: wrap; gap: 7px; max-width: 60%;
}
.scene-chip {
  width: 30px; height: 30px; border-radius: 10px;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 3px 10px rgba(0,0,0,.3);
  transition: transform .2s, box-shadow .2s;
}
.scene-chip:hover { transform: translateY(-2px) scale(1.06); }
.scene-chip.is-on { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 0 0 2px var(--ui-accent), 0 4px 14px rgba(0,0,0,.35); }
.stage__upload {
  position: absolute; right: 14px; bottom: 14px; z-index: 7;
  --lg-radius: 15px; --lg-blur: 18px; --lg-shadow-y: 6px; --lg-shadow-blur: 18px;
  padding: 8px 14px; font-size: 12px; cursor: pointer; color: var(--stage-fg);
}

/* ---------- demo objects on stage ---------- */
.demo-toolbar {
  position: absolute; top: 54px; left: 50%; transform: translateX(-50%);
  z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 14px;
  font-size: 13px;
}
.demo-toolbar__search { display: flex; align-items: center; gap: 7px; opacity: .85; padding-right: 4px; }
.demo-seg { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--stage-veil); }
.demo-seg button { padding: 5px 11px; border-radius: 999px; font-size: 12px; color: inherit; opacity: .7; }
.demo-seg button.is-on { opacity: 1; background: var(--stage-veil-hi); box-shadow: inset 0 0 0 .5px var(--stage-veil-hi); }

.demo-card {
  position: absolute;
  left: 50%; top: 50%;
  width: 340px;
  padding: 22px;
  z-index: 5;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.demo-card.is-dragging { cursor: grabbing; transition: none; }
.demo-card__head { display: flex; gap: 13px; align-items: center; margin-bottom: 13px; }
.demo-card__glyph {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  background: linear-gradient(140deg, #64d2ff, #bf5af2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 6px 16px rgba(0,0,0,.25);
}
.demo-card h2 { font-size: 19px; letter-spacing: -.02em; }
.demo-card__head p { font-size: 12px; color: var(--stage-fg-dim); opacity: .85; margin-top: 2px; }
.demo-card__body { font-size: 13px; line-height: 1.5; color: var(--stage-fg-dim); }

/* focus tip — the outgoing line lifts and blurs away, the next one rises in.
   The wrapper animates its height so the card never jumps between tips. */
.tip { overflow: hidden; transition: height .4s cubic-bezier(.32, 1.12, .5, 1); }
.tip__text { display: block; }
.tip-swap.is-out { animation: tip-out .22s cubic-bezier(.4, 0, 1, 1) forwards; }
.tip-swap.is-in { animation: tip-in .46s cubic-bezier(.32, 1.15, .5, 1) both; }
@keyframes tip-out {
  to { opacity: 0; transform: translateY(-12px) scale(.98); filter: blur(7px); }
}
@keyframes tip-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); filter: blur(9px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes tip-fade-out { to { opacity: 0; } }
@keyframes tip-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tip { transition: none; }
  .tip-swap.is-out { animation: tip-fade-out .12s linear forwards; }
  .tip-swap.is-in { animation: tip-fade-in .18s linear both; }
}
.demo-card__row { display: flex; align-items: center; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.demo-card__row--controls { gap: 14px; }

.demo-pill {
  --lg-radius: 999px; --lg-blur: 14px; --lg-shadow-y: 5px; --lg-shadow-blur: 14px; --lg-inner-blur: 10px;
  padding: 9px 17px; font-size: 12.5px; font-weight: 500; color: var(--stage-fg);
}
.demo-pill--accent { --lg-tint-top: rgba(58,122,255,.78); --lg-tint-bottom: rgba(48,84,235,.62); color: #fff; }
.demo-badge {
  --lg-radius: 999px; --lg-blur: 10px; --lg-shadow-y: 3px; --lg-shadow-blur: 8px;
  padding: 6px 12px; font-size: 11px; letter-spacing: .02em; color: var(--stage-fg); margin-left: auto;
}
.demo-slider {
  --lg-radius: 999px; --lg-blur: 10px; --lg-shadow-y: 2px; --lg-shadow-blur: 6px; --lg-rim-w: 1px;
  position: relative; flex: 1; height: 12px; min-width: 110px;
}
.demo-slider__fill { position: absolute; inset: 0 38% 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--stage-veil-hi), var(--stage-fg-dim)); }
.demo-slider__knob {
  position: absolute; top: 50%; left: 62%; width: 22px; height: 22px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--stage-fg);
  box-shadow: 0 3px 10px rgba(0,0,0,.3), inset 0 0 0 .5px rgba(255,255,255,.4);
}
.demo-switch {
  --lg-radius: 999px; --lg-blur: 10px; --lg-shadow-y: 2px; --lg-shadow-blur: 6px; --lg-rim-w: 1px;
  position: relative; width: 50px; height: 30px; flex: none; cursor: pointer;
}
.demo-switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.3); transition: left .3s cubic-bezier(.32,1.3,.5,1); }
.demo-switch.is-on { --lg-tint-top: rgba(52,199,89,.6); --lg-tint-bottom: rgba(40,170,75,.45); }
.demo-switch.is-on i { left: 23px; }

.demo-card__resize {
  position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; z-index: 3;
  cursor: nwse-resize; border-radius: 0 0 12px 0; opacity: .5;
  background:
    linear-gradient(135deg, transparent 48%, currentColor 48%, currentColor 56%, transparent 56%),
    linear-gradient(135deg, transparent 68%, currentColor 68%, currentColor 76%, transparent 76%);
}

.demo-dock {
  position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%);
  z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
}
.demo-dock__item {
  width: 40px; height: 40px; border-radius: 12px; display: block;
  background: linear-gradient(150deg, hsl(calc(200 + var(--i) * 42) 90% 66%), hsl(calc(240 + var(--i) * 42) 85% 52%));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 5px 14px rgba(0,0,0,.28);
  transition: transform .28s cubic-bezier(.32,1.3,.5,1);
}
.demo-dock__item:hover { transform: translateY(-8px) scale(1.14); }
.demo-dock__sep { width: 1px; height: 28px; background: var(--stage-veil-hi); display: block; }

/* ---------- inspector ----------
   The chrome keeps a stable, legible material of its own: the point of the
   stage is to judge the preset, not to fight the panel it lives in. */
.inspector {
  --lg-radius: 26px;
  --lg-blur: 40px;
  --lg-saturation: 150%;
  --lg-brightness: 100%;
  --lg-contrast: 100%;
  --lg-tint-top: rgba(14, 18, 28, .52);
  --lg-tint-bottom: rgba(14, 18, 28, .66);
  --lg-rim-1: rgba(255, 255, 255, .5);
  --lg-rim-3: rgba(255, 255, 255, .18);
  --lg-inner-color: rgba(255, 255, 255, .18);
  --lg-shadow-y: 20px;
  --lg-shadow-blur: 60px;
  --lg-shadow-color: rgba(0, 0, 0, .4);
  --lg-spec: rgba(255, 255, 255, 0);
  display: flex; flex-direction: column; min-height: 0;
  overflow: hidden;
}
.inspector__tabs {
  display: flex; gap: 2px; padding: 10px 10px 8px;
  border-bottom: 1px solid var(--ui-line);
  flex: none;
}
.inspector__tabs button {
  flex: 1; height: 32px; border-radius: 12px; font-size: 12.5px; font-weight: 500;
  color: var(--ui-fg-dim); transition: background .2s, color .2s;
}
.inspector__tabs button.is-on { color: var(--ui-fg); background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.28); }
[data-appearance="light"] .inspector__tabs button.is-on { background: rgba(255,255,255,.85); }

.inspector__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.inspector__body::-webkit-scrollbar { width: 8px; }
.inspector__body::-webkit-scrollbar-thumb { background: var(--ui-field-hi); border-radius: 8px; }
.pane { display: none; padding: 14px; }
.pane.is-on { display: block; }

/* preset browser */
.chipbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.chip {
  padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 500;
  color: var(--ui-fg-dim); background: var(--ui-field);
  box-shadow: inset 0 0 0 1px var(--ui-line);
  transition: background .18s, color .18s;
}
.chip:hover { color: var(--ui-fg); }
.chip.is-on { color: #fff; background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2)); box-shadow: 0 3px 12px rgba(110,130,255,.3); }

.preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.preset {
  position: relative; text-align: left; border-radius: 15px; overflow: hidden;
  padding: 0; height: 84px;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px var(--ui-line);
  transition: transform .2s, box-shadow .2s;
}
.preset:hover { transform: translateY(-2px); }
.preset.is-on { box-shadow: 0 0 0 2px var(--ui-accent), 0 6px 18px rgba(0,0,0,.3); }
.preset__swatch {
  position: absolute; inset: 12px 12px 26px;
  border-radius: 11px;
  backdrop-filter: blur(var(--p-blur)) saturate(var(--p-sat));
  -webkit-backdrop-filter: blur(var(--p-blur)) saturate(var(--p-sat));
  background: linear-gradient(180deg, var(--p-t1), var(--p-t2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), inset 0 8px 14px -8px rgba(255,255,255,.6), 0 4px 10px rgba(0,0,0,.25);
}
.preset__name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 4px 8px 6px;
  font-size: 10.5px; font-weight: 500; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.62), transparent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* controls */
.group { margin-bottom: 8px; border-radius: 16px; background: var(--ui-field); overflow: hidden; }
.group__head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 11px 13px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
}
.group__head::after { content: "⌄"; opacity: .5; transition: transform .25s; font-size: 13px; }
.group.is-closed .group__head::after { transform: rotate(-90deg); }
.group__body { padding: 2px 13px 13px; display: grid; gap: 13px; }
.group.is-closed .group__body { display: none; }

.field { display: grid; gap: 6px; }
.field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.field__label { font-size: 11.5px; color: var(--ui-fg-dim); }
.field__val { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ui-fg); background: var(--ui-field-hi); padding: 2px 7px; border-radius: 7px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--ui-accent) var(--p, 50%), var(--ui-field-hi) var(--p, 50%));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--ui-field-hi); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--ui-accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35), inset 0 0 0 .5px rgba(0,0,0,.1);
}
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }

.swatch-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
input[type="color"] {
  -webkit-appearance: none; appearance: none; width: 34px; height: 26px; padding: 0;
  border: 0; border-radius: 9px; background: none; cursor: pointer;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.swatch { width: 20px; height: 20px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.swatch:hover { transform: scale(1.12); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.switch {
  position: relative; width: 42px; height: 25px; flex: none; border-radius: 999px;
  background: var(--ui-field-hi); transition: background .25s;
}
.switch::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: left .28s cubic-bezier(.32,1.3,.5,1);
}
.switch.is-on { background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2)); }
.switch.is-on::after { left: 19.5px; }

/* code pane */
.code {
  margin: 0; padding: 13px; border-radius: 14px;
  background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px var(--ui-line);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px; line-height: 1.6; color: #e7ecf6;
  max-height: 46vh; overflow: auto; white-space: pre; tab-size: 2;
}
[data-appearance="light"] .code { background: rgba(10,14,22,.86); }
[data-appearance="light"] .inspector {
  --lg-tint-top: rgba(250, 251, 255, .62);
  --lg-tint-bottom: rgba(240, 244, 252, .74);
  --lg-rim-1: rgba(255, 255, 255, .9);
  --lg-shadow-color: rgba(20, 30, 50, .22);
}
[data-appearance="light"] .inspector__tabs button.is-on,
[data-appearance="light"] .preset__name { color: #10151f; }
[data-appearance="light"] .preset__name { background: linear-gradient(0deg, rgba(255,255,255,.7), transparent); }
.code-actions { display: flex; gap: 9px; margin-top: 11px; }
.btn-primary, .btn-plain {
  --lg-radius: 13px; --lg-blur: 14px; --lg-shadow-y: 5px; --lg-shadow-blur: 14px;
  flex: 1; padding: 11px; font-size: 12.5px; font-weight: 500; color: #fff;
}
.btn-primary { --lg-tint-top: rgba(110,175,255,.62); --lg-tint-bottom: rgba(90,110,255,.42); }
.note { margin-top: 10px; font-size: 10.5px; line-height: 1.5; color: var(--ui-fg-faint); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 90;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; font-size: 12.5px; color: #fff;
  background: rgba(20,24,34,.75);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 10px 30px rgba(0,0,0,.4);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: opacity .28s, transform .28s cubic-bezier(.32,1.3,.5,1);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 330px; }
  .demo-card { width: 300px; }
}
@media (max-width: 860px) {
  body { overflow: auto; }
  .workspace { grid-template-columns: 1fr; height: auto; }
  .stage { height: 72vh; min-height: 460px; }
  .inspector { max-height: none; }
  .inspector__body { overflow: visible; }
  .brand-text i { display: none; }
  .ghost-btn em { display: none; }
  .ghost-btn { padding: 0 11px; }
  .stage__hint { display: none; }
  .demo-toolbar { top: 16px; }
  .demo-dock { bottom: 96px; padding: 8px 10px; gap: 8px; }
  .demo-dock__item { width: 32px; height: 32px; border-radius: 10px; }
  .stage__scenes { max-width: calc(100% - 132px); gap: 6px; }
  .preset-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  :root { --pad: 12px; }
  .brand-text { display: none; }
  .topbar { gap: 8px; }
  .topbar__actions { gap: 6px; }
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-card { width: min(340px, calc(100vw - 48px)) !important; }
}
