:root {
  --bg: #0d0c13;
  --panel: #13121b;
  --panel-2: #191823;
  --panel-3: #211f2c;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --ink: #efedf6;
  --muted: #a19db3;
  --dim: #6f6b83;
  --accent: #ff7a3d;
  --accent-2: #ff4f8b;
  --accent-soft: rgba(255, 122, 61, 0.14);
  --radius: 14px;
  --bar-h: 44px;
  --exploration-footer-bg: #0d0c13;
  --exploration-footer-ink: #a19db3;
  --exploration-footer-border: rgba(255, 255, 255, 0.07);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 13px/1.45 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd { font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); margin-left: 6px; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- layout ---------- */
.app {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr) 316px;
  grid-template-rows: 56px minmax(0, 1fr);
  grid-template-areas: "top top top" "lib center insp";
  height: calc(100dvh - var(--bar-h));
  min-height: 640px;
}
.top { grid-area: top; display: flex; align-items: center; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #121119, var(--bg)); }
.library { grid-area: lib; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--panel); }
.center { grid-area: center; display: flex; flex-direction: column; gap: 12px; padding: 16px 20px 16px; min-width: 0; min-height: 0; }
.inspector { grid-area: insp; border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }

/* ---------- header ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 12.5px; padding: 6px 8px 6px 4px; border-radius: 8px; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--ink); background: var(--panel-2); }
.brand { display: flex; align-items: center; gap: 10px; }
#logo { width: 240px; height: 24px; image-rendering: pixelated; }
.tag { color: var(--dim); font-size: 12px; letter-spacing: 0.02em; }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ghost, .create-yours {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px;
  text-decoration: none; font-weight: 600; font-size: 12.5px; white-space: nowrap;
}
.ghost { color: var(--ink); border: 1px solid var(--line-2); background: var(--panel-2); }
.ghost svg { width: 14px; height: 14px; }
.ghost:hover { border-color: rgba(255, 255, 255, 0.25); }
.create-yours { color: #160b06; background: linear-gradient(135deg, #ffb35c, var(--accent)); box-shadow: 0 0 0 1px rgba(255, 160, 90, 0.4) inset; }
.create-yours:hover { filter: brightness(1.08); }

/* ---------- library ---------- */
.lib-head { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--dim); }
.search input {
  width: 100%; height: 34px; padding: 0 10px 0 32px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg); outline: none;
}
.search input:focus { border-color: rgba(255, 122, 61, 0.6); }
.cats { display: flex; flex-wrap: wrap; gap: 4px; }
.cats button {
  border: 0; background: transparent; color: var(--muted); padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 500;
}
.cats button[aria-selected="true"] { background: var(--panel-3); color: var(--ink); }
.cats button:hover { color: var(--ink); }
.tiles { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 8px; align-content: start; scrollbar-width: thin; }
.tile {
  position: relative; border: 1px solid var(--line); border-radius: 10px; background: #0a0910; padding: 0; overflow: hidden;
  display: flex; flex-direction: column; text-align: left; transition: border-color 0.15s, transform 0.15s;
}
.tile canvas { width: 100%; aspect-ratio: 1; image-rendering: pixelated; display: block; }
.tile span { font-size: 10.5px; color: var(--muted); padding: 5px 7px 6px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--line); background: var(--panel); }
.tile:hover { border-color: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tile[aria-pressed="true"] span { color: var(--ink); }
.tiles .empty { grid-column: 1 / -1; color: var(--dim); padding: 20px 6px; text-align: center; }

/* ---------- prompt ---------- */
.prompt {
  display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 7px 0 16px; border-radius: 15px;
  background: var(--panel-2); border: 1px solid var(--line-2); transition: border-color 0.15s, box-shadow 0.15s; flex: none;
}
.prompt:focus-within { border-color: rgba(255, 122, 61, 0.65); box-shadow: 0 0 0 4px rgba(255, 122, 61, 0.12); }
.prompt .spark { width: 18px; height: 18px; color: var(--accent); flex: none; }
.prompt input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; height: 100%; }
.prompt input::placeholder { color: var(--dim); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); flex: none;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { color: var(--ink); background: var(--panel-3); }
.icon-btn.tiny { width: 28px; height: 28px; border-radius: 8px; }
.icon-btn.tiny svg { width: 14px; height: 14px; }
.forge {
  height: 40px; padding: 0 14px 0 16px; border: 0; border-radius: 11px; font-weight: 650; font-size: 14px; color: #1a0b05;
  background: linear-gradient(135deg, #ffb35c, var(--accent) 55%, #ff5a4a); display: inline-flex; align-items: center; flex: none;
  box-shadow: 0 6px 20px -8px rgba(255, 110, 50, 0.7);
}
.forge kbd { background: rgba(0, 0, 0, 0.16); color: #3a1a0a; }
.forge:hover { filter: brightness(1.07); }
.forge:active { transform: translateY(1px); }

.understood { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 24px; margin-top: -4px; flex: none; }
.understood .lead { color: var(--dim); font-size: 12px; margin-right: 2px; }
.chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); background: var(--panel-2); }
.chip.form { border-color: rgba(255, 122, 61, 0.45); background: rgba(255, 122, 61, 0.1); }
.chip.element { border-color: rgba(140, 170, 255, 0.4); background: rgba(120, 150, 255, 0.09); }
.chip.color { border-color: rgba(255, 255, 255, 0.25); }
.chip.mod { color: var(--muted); }
.chip.suggest:hover { border-color: rgba(255, 122, 61, 0.65); background: rgba(255, 122, 61, 0.1); }
.chip.suggest:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- stage ---------- */
.stage-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: #08070c; overflow: hidden; }
.stage { position: relative; flex: 1; min-height: 220px; display: grid; place-items: center; overflow: hidden; }
.stage canvas { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
.stage-hud { position: absolute; display: flex; gap: 8px; pointer-events: none; }
.stage-hud > * { pointer-events: auto; }
.top-left { left: 14px; top: 12px; flex-direction: column; gap: 2px; }
.top-right { right: 12px; top: 10px; align-items: center; }
.fx-name { font-weight: 700; font-size: 15px; letter-spacing: 0.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.fx-meta { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); }
.busy { position: absolute; right: 14px; bottom: 12px; }
.busy span { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--accent); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: rgba(20, 19, 28, 0.86); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 5px 10px; border-radius: 7px; font-size: 12px; font-weight: 550; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset; }
.seg button:hover { color: var(--ink); }
.seg.small button { padding: 4px 8px; font-size: 11.5px; }
.seg.full { display: flex; width: 100%; background: var(--bg); }
.seg.full button { flex: 1; }
.swatch-btn { width: 22px; height: 22px; padding: 0 !important; border-radius: 6px !important; position: relative; }
.swatch-btn i { position: absolute; inset: 4px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset; }

/* ---------- timeline ---------- */
.timeline { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--panel); flex: none; }
.play { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--panel-3); display: grid; place-items: center; color: var(--ink); flex: none; }
.play svg { width: 15px; height: 15px; }
.play .i-play { display: none; }
.play.paused .i-play { display: block; }
.play.paused .i-pause { display: none; }
.frame-count { font: 600 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); width: 44px; flex: none; }
.film { flex: 1; min-width: 0; display: flex; gap: 3px; overflow-x: auto; padding: 3px 1px; scrollbar-width: none; }
.film::-webkit-scrollbar { display: none; }
.film button {
  flex: none; width: 34px; height: 34px; padding: 0; border-radius: 6px; border: 1px solid var(--line); background: #0a0910; position: relative;
}
.film button canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; border-radius: 5px; }
.film button[aria-selected="true"] { border-color: var(--accent); }
.film button.impact::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 4px; height: 4px; margin-left: -2px; background: var(--accent); border-radius: 1px; }

/* ---------- variations ---------- */
.variations { flex: none; }
.var-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.var-head h2 { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0; letter-spacing: 0.02em; }
.link-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 6px; border-radius: 7px; }
.link-btn svg { width: 13px; height: 13px; }
.link-btn:hover { color: var(--ink); background: var(--panel-2); }
.var-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.var-row button { padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #0a0910; overflow: hidden; aspect-ratio: 1.35; transition: border-color 0.15s, transform 0.15s; }
.var-row button:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-1px); }
.var-row canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }

/* ---------- inspector ---------- */
.insp-scroll { flex: 1; overflow-y: auto; scrollbar-width: thin; }
.panel { padding: 14px 16px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; }
.panel h3 { margin: 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 650; display: flex; justify-content: space-between; }
.panel h3 .dim { text-transform: none; letter-spacing: 0; color: var(--dim); font-weight: 500; font-variant-numeric: tabular-nums; }
.ramp-now { height: 14px; border-radius: 5px; display: flex; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); }
.ramp-now i { flex: 1; }
.ramps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.ramps button { height: 22px; padding: 0; border-radius: 6px; border: 1px solid transparent; overflow: hidden; display: flex; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); }
.ramps button i { flex: 1; }
.ramps button[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .lbl { display: flex; justify-content: space-between; color: var(--ink); font-size: 12.5px; }
.field output { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
select {
  height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 8px; outline: none;
}
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--panel-3) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--panel-3); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; margin-top: -5px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; cursor: pointer; user-select: none; }
.check input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.check.small { font-size: 12px; color: var(--muted); }
.row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row2.btns { justify-content: stretch; }
.row2.btns .btn { flex: 1; }
.row2.end { justify-content: flex-end; }
.row2.end .btn { flex: none; }
.seed { display: flex; align-items: center; gap: 6px; }
.seed label { color: var(--muted); font-size: 12px; }
.seed input { width: 72px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); padding: 0 8px; font-variant-numeric: tabular-nums; outline: none; }
.hint { margin: -2px 0 0; color: var(--dim); font-size: 11.5px; }
.btn {
  height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); font-weight: 600; font-size: 12.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { border-color: rgba(255, 255, 255, 0.24); }
.btn.primary { border: 0; color: #1a0b05; background: linear-gradient(135deg, #ffb35c, var(--accent) 55%, #ff5a4a); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.wide { width: 100%; height: 42px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: progress; }
.export-bar { padding: 12px 16px 14px; border-top: 1px solid var(--line); background: var(--panel); }

.layers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.layer { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.layer-row { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 4px; }
.layer-row .eye { width: 26px; height: 26px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.layer-row .eye svg { width: 15px; height: 15px; }
.layer-row .eye:hover { background: var(--panel-3); color: var(--ink); }
.layer.off .layer-row .name, .layer.off .mini { opacity: 0.35; }
.layer-row .name { flex: 1; min-width: 0; border: 0; background: transparent; text-align: left; padding: 3px 0; font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.layer-row .name em { font-style: normal; color: var(--dim); font-size: 11px; }
.layer-row .mini { width: 34px; height: 8px; border-radius: 3px; display: flex; overflow: hidden; flex: none; }
.layer-row .mini i { flex: 1; }
.layer-row .chev { width: 12px; height: 12px; color: var(--dim); transition: transform 0.15s; flex: none; }
.layer.open .chev { transform: rotate(90deg); }
.layer-body { display: none; padding: 4px 10px 12px 36px; flex-direction: column; gap: 9px; }
.layer.open .layer-body { display: flex; }
.layer-body .field label { font-size: 11.5px; color: var(--muted); }
.layer-body select { height: 28px; font-size: 12px; }

/* ---------- dialogs ---------- */
dialog.sheet { border: 1px solid var(--line-2); border-radius: 18px; background: #12111a; color: var(--ink); padding: 0; width: min(860px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); }
dialog.sheet.small { width: min(560px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(5, 4, 9, 0.66); backdrop-filter: blur(3px); }
.sheet-in { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; font-size: 17px; }
.sheet-head h2 span { color: var(--muted); font-weight: 500; }
.ex-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.ex-card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ex-card.feature { grid-row: span 2; background: linear-gradient(180deg, rgba(255, 122, 61, 0.09), var(--panel-2) 45%); border-color: rgba(255, 122, 61, 0.28); }
.ex-card h3 { margin: 0; font-size: 14px; }
.ex-card p { margin: 0; color: var(--muted); font-size: 12px; flex: 1; }
.ex-card .btn { margin-top: 4px; }
.ex-ico { font: 700 10px/1 ui-monospace, Menlo, monospace; letter-spacing: 0.06em; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 5px 7px; align-self: flex-start; }
.ex-opts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ex-status { min-height: 18px; color: var(--muted); font-size: 12.5px; }
.ex-status.err { color: #ff8a80; }
textarea { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); padding: 12px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; outline: none; }
.paste-err { color: #ff8a80; font-size: 12px; min-height: 16px; }

.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 18px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; background: #232130; border: 1px solid var(--line-2); padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 12.5px; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- exploration bar ---------- */
.exploration-bar {
  height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px;
  border-top: 1px solid var(--exploration-footer-border); background: var(--exploration-footer-bg); color: var(--exploration-footer-ink); font-size: 12px;
}
.exploration-bar a { color: var(--ink); text-decoration: none; }
.exploration-bar a:hover { text-decoration: underline; }
.exploration-credit { display: flex; gap: 14px; align-items: center; white-space: nowrap; overflow: hidden; }
.exploration-credit strong { color: var(--ink); }
.exploration-bar nav { display: flex; gap: 12px; align-items: center; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .app { grid-template-columns: 248px minmax(0, 1fr) 292px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .app {
    height: auto; min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas: "top" "center" "lib" "insp";
  }
  .top { height: auto; min-height: 52px; flex-wrap: wrap; padding: 8px 12px; gap: 10px; }
  .tag { display: none; }
  #logo { width: 180px; height: 18px; }
  .center { padding: 12px; }
  .stage-wrap { flex: none; }
  .stage { height: min(62vw, 440px); min-height: 220px; }
  .library { border-right: 0; border-top: 1px solid var(--line); }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: 420px; }
  .inspector { border-left: 0; border-top: 1px solid var(--line); }
  .insp-scroll { overflow: visible; }
  .export-bar { position: sticky; bottom: 0; z-index: 5; }
  .var-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ex-grid { grid-template-columns: 1fr 1fr; }
  .ex-card.feature { grid-column: 1 / -1; grid-row: auto; }
  .exploration-bar { height: auto; min-height: var(--bar-h); flex-wrap: wrap; padding: 10px 12px; }
  .exploration-credit { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .top-actions .ghost { display: none; }
  #logo { width: 150px; height: 15px; }
  .back span { display: none; }
  .prompt { height: 50px; padding-left: 12px; }
  .prompt input { font-size: 16px; }
  .forge kbd { display: none; }
  .top-right { left: 10px; right: 10px; top: auto; bottom: 10px; justify-content: space-between; }
  .top-right .seg.small { display: none; }
  .seg button { padding: 5px 8px; }
  .timeline { gap: 6px; padding: 6px; }
  .timeline .seg { display: none; }
  .ex-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
