/* Fit check: an instrument, not a form. Live tray, a fit dial, a coverage
   matrix, requirement rods and a floating dock. Motion ~0.5s, springy. */
:root { --fx-spring: cubic-bezier(0.22, 1, 0.36, 1); --fx-out: cubic-bezier(0.22, 1, 0.36, 1); --fx-partial: #6e6e73; }

.fx-head { padding: 2.75rem 0 1.25rem; }
.fx-head h1 { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; color: var(--ink); }
.fx-head h1 mark { color: inherit; padding: 0 0.12em; border-radius: 4px; background: linear-gradient(var(--mark), var(--mark)) left center / 100% 72% no-repeat; }

/* ---- stage: input on the left, dial on the right -------------------------- */
.fx-stage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
.fx-in { position: relative; display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--ctl-line); background: var(--bg);  overflow: hidden; transition: border-color 0.3s; }
.fx-in:focus-within { border-color: rgba(224,48,30,0.5); outline: 4px solid rgba(224,48,30,0.08); outline-offset: 0; }
.fx-in textarea { flex: 1; min-height: 11rem; width: 100%; padding: 1.1rem 1.2rem 0.6rem; border: 0; resize: none; background: transparent; color: var(--ink); font: inherit; font-size: 0.95rem; line-height: 1.55; }
.fx-in textarea:focus { outline: none; }
.fx-in textarea::placeholder { color: var(--text-muted); }
.fx-tray { display: flex; flex-wrap: wrap; gap: 0.35rem; min-height: 2.6rem; padding: 0.55rem 1rem 0.75rem; border-top: 1px dashed var(--ctl-line); align-content: flex-start; }
.fx-tray:empty::before { content: attr(data-empty); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--text-muted); align-self: center; }
.fx-chip { display: inline-flex; align-items: center; gap: 0.35rem; height: 1.7rem; padding: 0 0.6rem 0 0.45rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--ink); background: var(--bg-subtle); border: 1px solid var(--ctl-line); }
.fx-chip i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--grey-300); }
.fx-chip.s-strong { background: var(--paper); border-color: rgba(224,48,30,0.3); } .fx-chip.s-strong i { background: var(--rust); }
.fx-chip.s-partial i { background: var(--fx-partial); }
.fx-chip.s-gap { color: var(--text-muted); border-style: dashed; background: transparent; } .fx-chip.s-gap i { background: transparent; border: 1.5px dashed var(--grey-300); }
.fx-chip.is-new { animation: fx-pop 0.5s var(--fx-spring) both; }

.fx-samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.75rem; }
.fx-sample { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: 14px; border: 1px solid var(--ctl-line); background: var(--bg); color: var(--ink); font: inherit; font-size: 0.8rem; font-weight: 600; text-align: left; cursor: pointer; transition: border-color 0.25s, transform 0.5s var(--fx-spring); }
.fx-sample svg { flex: none; width: 30px; height: 30px; }
.fx-sample small { display: block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0.04em; }
.fx-sample:hover { border-color: var(--rust); transform: translateY(-2px);  }
.fx-sample[aria-pressed="true"] { border-color: var(--rust); background: var(--paper); }

/* ---- the board: score on reels, the agent loop beside it -------------------- */
.fx-dialbox { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1rem; padding: 1.25rem 1.4rem 1.1rem; border-radius: 20px; background: radial-gradient(120% 90% at 50% 0%, var(--paper) 0%, var(--bg) 70%); border: 1px solid rgba(224,48,30,0.14); }
.fx-board { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.6rem; }
.fx-board-main { min-width: 0; }
.fx-score { display: flex; align-items: baseline; gap: 0.2rem; }
.fx-score b { display: inline-flex; font-size: clamp(3rem, 9vw, 4rem); line-height: 1; font-weight: 800; letter-spacing: -0.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fx-score > span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.fx-reel { display: inline-block; height: 1em; overflow: hidden; }
.fx-col { display: block; will-change: transform; }
.fx-col > span { display: block; height: 1em; }
.fx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-cap { margin-top: 0.35rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust-deep); }
.fx-board.is-idle .fx-score b { color: var(--grey-300); }
.fx-focus { display: none; max-width: 15rem; }
.fx-board.is-focus .fx-score, .fx-board.is-focus .fx-cap { display: none; }
.fx-board.is-focus .fx-focus { display: block; animation: fx-pop 0.35s var(--fx-spring) both; }
.fx-focus b { display: block; font-size: 1.05rem; line-height: 1.2; color: var(--ink); }
.fx-focus em { display: inline-block; margin-top: 0.35rem; padding: 0.1rem 0.5rem; border-radius: 999px; font-style: normal; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; }
.fx-focus em.s-strong { background: var(--rust); color: #fff; } .fx-focus em.s-partial { background: var(--fx-partial); color: #fff; } .fx-focus em.s-gap { border: 1px dashed var(--grey-300); color: var(--text-muted); }
.fx-focus small { display: block; margin-top: 0.4rem; font-size: 0.72rem; line-height: 1.3; color: var(--text-secondary); }

/* the agent loop: four beads on a short rod, lit in turn */
.fx-loop { position: relative; display: grid; grid-template-columns: repeat(4, auto); gap: 0 0.55rem; margin: 0; padding: 0; list-style: none; }
.fx-loop::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; border-radius: 2px; background: var(--rod-wood); }
.fx-loop li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.fx-loop i { width: 14px; height: 14px; border-radius: 50%; background: var(--bead-white); outline: 1px solid rgba(0,0,0,.1); outline-offset: -1px; transition: transform 0.4s var(--fx-spring); }
.fx-loop li.done i { background: var(--bead-ink); outline: 0; }
.fx-loop li.now i { background: var(--bead-red); outline: 0; transform: scale(1.25); }
.fx-loop li.now, .fx-loop li.done { color: var(--ink); }

/* ---- the abacus: one rod per skill, in a wooden frame -------------------------- */
.fx-abacus { position: relative; display: grid; gap: 0.15rem; padding: 0.55rem 0; border-radius: 4px; background:
    var(--rod-wood) center top / 100% 3px no-repeat, var(--rod-wood) center bottom / 100% 3px no-repeat, var(--bg); }
.fx-abacus::before, .fx-abacus::after { content: ""; position: absolute; top: -5px; bottom: -5px; width: 7px; border-radius: 4px; background: var(--dowel); z-index: 1; pointer-events: none; }
.fx-abacus::before { left: -4px; } .fx-abacus::after { right: -4px; }
.fx-abacus { --lab: 9.6rem; }
.fx-abacus.is-idle { --lab: 0px; }
/* the beam: a dowel between the names and the rods, as on a real abacus */
.fx-abacus:not(.is-idle) > .fx-beam { position: absolute; top: 0; bottom: 0; left: var(--lab); width: 5px; border-radius: 3px; background: var(--dowel); z-index: 1; }
.fx-row { --to: 0; position: relative; display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); align-items: center; min-height: 28px; cursor: pointer; outline: none; transition: opacity 0.3s; }
.fx-row.is-idle { cursor: default; min-height: 30px; }
.fx-row.is-idle .fx-rod { grid-column: 1 / -1; }
.fx-row-l { padding: 0 0.7rem 0 0.95rem; text-align: right; font-size: 0.72rem; font-weight: 600; line-height: 1.15; color: var(--text-secondary); overflow-wrap: anywhere; padding-block: 0.2rem; }
.fx-row.s-strong .fx-row-l { color: var(--ink); }
.fx-rod { position: relative; display: block; height: 16px; }
.fx-rod::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--rod-wood); }
.fx-bead { position: absolute; top: 0; left: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--bead-white); outline: 1px solid rgba(0,0,0,.12); outline-offset: -1px;
    transition: left 0.9s cubic-bezier(.16,1,.3,1), transform 0.3s var(--fx-spring); transition-delay: calc(var(--i) * 70ms + 260ms), 0s; }
.fx-row.s-strong .fx-bead { background: var(--bead-red); outline: 0; }
.fx-row.s-partial .fx-bead { background: var(--bead-ink); outline: 0; }
.fx-abacus.on .fx-bead { left: calc(10px + (100% - 36px) * var(--to)); }
@media (max-width: 520px) { .fx-abacus { --lab: 7.6rem; } .fx-row-l { font-size: 0.68rem; } }
.fx-abacus.has-focus .fx-row { opacity: 0.35; }
.fx-abacus.has-focus .fx-row.is-focus { opacity: 1; }
.fx-row.is-focus .fx-bead, .fx-row:focus-visible .fx-bead { transform: scale(1.3); }
.fx-row:focus-visible .fx-row-l { color: var(--rust-deep); }
.fx-abacus.is-idle .fx-row:first-child .fx-bead { background: var(--bead-red); outline: 0; animation: fx-idle-slide 3.2s cubic-bezier(.77,0,.18,1) infinite alternate; }
@keyframes fx-idle-slide { from { left: 10px; } to { left: calc(100% - 26px); } }

/* ---- match centre: asked against proven ---------------------------------------- */
.fx-mc { display: grid; gap: 0.45rem; }
.fx-mc[hidden] { display: none; }
.fx-mc-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.fx-mc-head b { padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; }
.fx-mc-head .r { text-align: right; color: var(--rust-deep); }
.fx-mc-row { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) 7.2rem minmax(0, 1fr) 1.8rem; align-items: center; gap: 0.45rem; }
.fx-mc-row .v { font-size: 0.95rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.fx-mc-row .v.r { text-align: right; color: var(--rust); }
.fx-mc-row .k { font-size: 0.68rem; font-weight: 600; text-align: center; color: var(--text-secondary); line-height: 1.2; }
.fx-mc-row .bar { display: flex; height: 6px; border-radius: 4px; background: var(--bg-muted); overflow: hidden; }
.fx-mc-row .bar.l { justify-content: flex-end; }
.fx-mc-row .bar span { width: 0; height: 100%; border-radius: 4px; background: var(--ink); transition: width 0.8s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i) * 90ms + 500ms); }
.fx-mc-row .bar.r span { background: var(--rust); }
.fx-mc.on .fx-mc-row .bar span { width: calc(var(--w) * 100%); }
.fx-mc-foot { margin: 0.15rem 0 0; text-align: center; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.04em; color: var(--text-muted); }

.fx-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; }
.fx-pill { display: inline-flex; align-items: center; gap: 0.4rem; height: 2rem; padding: 0 0.75rem 0 0.55rem; border-radius: 999px; border: 1px solid var(--ctl-line); background: var(--bg); color: var(--ink); font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.fx-pill b { font-variant-numeric: tabular-nums; }
.fx-pill i { width: 0.6rem; height: 0.6rem; border-radius: 50%; }
.fx-pill.s-strong i { background: var(--rust); } .fx-pill.s-partial i { background: var(--fx-partial); } .fx-pill.s-gap i { border: 1.5px dashed var(--grey-300); }
.fx-pill[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.fx-pill:disabled { opacity: 0.45; cursor: default; }

/* ---- results ------------------------------------------------------------------ */
.fx-out { margin-top: 2rem; }
.fx-sec { margin-top: 2.25rem; }
.fx-h { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.9rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.fx-h span { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.06em; color: var(--text-muted); }
.fx-says { margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--paper); font-size: 1rem; font-weight: 600; color: var(--ink); }

/* coverage: numbered evidence cards over a matrix */
.fx-evs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.fx-ev { position: relative; display: flex; flex-direction: column; gap: 0.35rem; padding: 0.85rem 0.9rem 0.9rem; border-radius: 16px; border: 1px solid var(--ctl-line); background: var(--bg); color: var(--ink); text-decoration: none; transition: border-color 0.25s, transform 0.5s var(--fx-spring); animation: fx-rise 0.5s var(--fx-spring) both; }
.fx-ev:hover, .fx-ev.is-hot { border-color: var(--rust); transform: translateY(-3px);  text-decoration: none; }
.fx-ev .n { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 0.7rem; }
.fx-ev .lv { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust-deep); }
.fx-ev b { font-size: 0.82rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fx-ev .bar { margin-top: auto; height: 5px; border-radius: 5px; background: var(--bg-muted); overflow: hidden; }
.fx-ev .bar span { display: block; height: 100%; background: var(--rust); border-radius: 5px; transform-origin: left; animation: fx-grow 0.7s var(--fx-out) both; animation-delay: 0.2s; }

.fx-mx-wrap { margin-top: 0.75rem; border-radius: 16px; border: 1px solid var(--ctl-line); overflow-x: auto; }
.fx-mx { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.fx-mx th, .fx-mx td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--bg-muted); }
.fx-mx tr:last-child th, .fx-mx tr:last-child td { border-bottom: 0; }
.fx-mx thead th { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400; color: var(--text-muted); text-align: center; }
.fx-mx tbody th { width: 40%; text-align: left; font-weight: 600; color: var(--ink); white-space: nowrap; }
.fx-mx tbody th i { display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.45rem; border-radius: 50%; vertical-align: 0.05em; }
.fx-mx tbody th i.s-strong { background: var(--rust); } .fx-mx tbody th i.s-partial { background: var(--fx-partial); } .fx-mx tbody th i.s-gap { border: 1.5px dashed var(--grey-300); }
.fx-mx td { text-align: center; transition: background 0.2s; }
.fx-mx td.on::after { content: ""; display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--rust);  animation: fx-pop 0.45s var(--fx-spring) both; animation-delay: var(--d, 0ms); }
.fx-mx td.off::after { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--grey-200); }
.fx-mx td.is-hot { background: var(--paper); }
.fx-mx tr.is-hot th, .fx-mx tr.is-hot td { background: var(--paper); }

/* requirement rods */
.fx-rqs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.fx-rq { border-radius: 14px; border: 1px solid var(--ctl-line); background: var(--bg); transition: border-color 0.25s, opacity 0.3s, transform 0.5s var(--fx-spring); animation: fx-rise 0.5s var(--fx-spring) both; }
.fx-rq > button { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; width: 100%; padding: 0.7rem 0.9rem; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.fx-rq > button p { font-size: 0.875rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.fx-rq.open > button p { -webkit-line-clamp: unset; }
.fx-rq > button .chev { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg-subtle); font-size: 0.75rem; color: var(--text-secondary); transition: transform 0.45s var(--fx-spring), background 0.2s; }
.fx-rq.open > button .chev { transform: rotate(180deg); background: var(--ink); color: #fff; }
.fx-rq:hover { border-color: var(--ctl-line-hover); }
.fx-rq.is-dim { opacity: 0.3; }
.fx-rq.is-hot { border-color: var(--rust); }
.rod { position: relative; height: 1.1rem; display: flex; align-items: center; gap: 4px; padding: 0 2px; }
.rod::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--grey-200); }
.rod i { position: relative; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--grey-200); transform: translateX(1.6rem); opacity: 0; animation: fx-slide 0.5s var(--fx-spring) forwards; }
.rod i.on { border: 0;  }
.fx-rq.s-strong .rod i.on { background: var(--rust); }
.fx-rq.s-partial .rod i.on { background: var(--fx-partial); }
.fx-rq-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--fx-out); }
.fx-rq-more > div { overflow: hidden; min-height: 0; }
.fx-rq.open .fx-rq-more { grid-template-rows: 1fr; }
.fx-cs { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 0.9rem 0.85rem 5.9rem; }
.fx-c { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.65rem 0.3rem 0.4rem; border-radius: 10px; background: var(--bg-subtle); font-size: 0.76rem; color: var(--ink); text-decoration: none; }
.fx-c i { width: 0.55rem; height: 0.55rem; border-radius: 50%; flex: none; }
.fx-c.s-strong i { background: var(--rust); } .fx-c.s-partial i { background: var(--fx-partial); } .fx-c.s-gap i { border: 1.5px dashed var(--grey-300); }
.fx-c b { font-weight: 650; } .fx-c span { color: var(--text-secondary); }
a.fx-c:hover { background: var(--paper); text-decoration: none; }
.fx-more-n { margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }

/* gaps */
.fx-gaps { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.fx-gap { display: inline-flex; align-items: center; gap: 0.4rem; height: 2rem; padding: 0 0.8rem; border-radius: 999px; border: 1.5px dashed var(--grey-300); font-size: 0.8rem; color: var(--text-secondary); animation: fx-pop 0.5s var(--fx-spring) both; }
.fx-gap::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 1.5px dashed var(--grey-300); }
.fx-none { padding: 1rem 1.2rem; border-radius: 14px; background: var(--bg-subtle); color: var(--text-secondary); font-size: 0.9rem; }

.fx-receipt { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.35rem 0.8rem; font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-muted); }

/* the dock */
.fx-dock { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem; border-radius: 18px; background: rgba(28,28,30,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);  transform: translate(-50%, 140%); transition: transform 0.5s var(--fx-spring); }
.fx-dock.show { transform: translate(-50%, 0); }
.fx-dock .mini { position: relative; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--rust) calc(var(--p, 0) * 1%), rgba(255,255,255,0.14) 0); }
.fx-dock .mini::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #1c1c1e; }
.fx-dock .mini b { position: relative; color: #fff; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.fx-dock button, .fx-dock a { display: inline-flex; align-items: center; gap: 0.35rem; height: 2.6rem; padding: 0 0.85rem; border-radius: 12px; border: 0; background: rgba(255,255,255,0.08); color: #fff; font: inherit; font-size: 0.8rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.fx-dock button:hover, .fx-dock a:hover { background: rgba(255,255,255,0.18); text-decoration: none; color: #fff; }
.fx-dock a.go { background: var(--rust); }
.fx-dock a.go:hover { background: var(--rust-deep); }
.fx-dock svg { width: 1rem; height: 1rem; }

.fx-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 3rem 0 6rem; }
.fx-badges a { display: inline-flex; align-items: center; gap: 0.45rem; height: 2.2rem; padding: 0 0.9rem 0 0.6rem; border-radius: 999px; border: 1px solid var(--ctl-line); color: var(--ink); font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: border-color 0.2s; }
.fx-badges a:hover { border-color: var(--rust); text-decoration: none; }
.fx-badges svg { width: 1.1rem; height: 1.1rem; color: var(--rust); }

@keyframes fx-pop { 0% { opacity: 0; transform: scale(0.9); filter: blur(3px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes fx-rise { 0% { opacity: 0; transform: translateY(14px) scale(0.97); } 100% { opacity: 1; transform: none; } }
@keyframes fx-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes fx-slide { to { opacity: 1; transform: none; } }
@keyframes fx-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes fx-spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
    .fx-stage { grid-template-columns: 1fr; }
    .fx-evs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .fx-samples { grid-template-columns: 1fr; }
    .fx-rq > button { grid-template-columns: 3.6rem minmax(0, 1fr) auto; gap: 0.6rem; }
    .fx-cs { padding-left: 0.9rem; }
    .fx-dock { left: 12px; right: 76px; transform: translateY(140%); justify-content: space-between; }
    .fx-dock.show { transform: none; }
    .fx-dock .lbl { display: none; }
    .fx-mx tbody th { white-space: normal; min-width: 8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .fx-chip.is-new, .fx-ev, .fx-ev .bar span, .fx-mx td.on::after, .fx-rq, .rod i, .fx-gap, .fx-board.is-focus .fx-focus { animation: none; opacity: 1; transform: none; }
    .fx-abacus .fx-row .fx-bead, .fx-mc-row .bar span, .fx-loop i { transition: none; animation: none; }
    .fx-dock, .fx-rq-more, .fx-sample, .fx-ev { transition: none; }
}

#fx-write[hidden] { display: none; }
