/* Math Lab — shared styles.
   Layout: graph-paper notebook, one centered column; module = tabbed workbench.
   Operation colors: shift = blue, squash = amber, +1 = green. */
:root {
  --paper: #f2f6f3;
  --grid: rgba(61, 122, 82, .07);
  --card: #ffffff;
  --ink: #1a3327;
  --muted: #587063;
  --line: #d3e2d8;
  --fern: #3d7a52;
  --mint: #dcefe2;
  --shift: #2f6aa3;
  --shift-bg: #e3eef8;
  --squash: #b8681c;
  --squash-bg: #fbeedd;
  --plus: #2f8a4f;
  --plus-bg: #e0f3e6;
  --good: #2f8a4f;
  --bad: #b8423a;
  --bad-bg: #fbe7e4;
  --tree: #4f9a66;
  --tree2: #3d7a52;
  --trunk: #8a6a4a;
  --road: #e7dfcf;
  --ff-display: "Bricolage Grotesque", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --ff-body: "Nunito Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111a15; --grid: rgba(120, 190, 145, .06); --card: #18241e; --ink: #e2eee6; --muted: #9db3a6;
    --line: #2b3d33; --fern: #78c493; --mint: #20352a;
    --shift: #82b4e6; --shift-bg: #1b2c3d; --squash: #e8a862; --squash-bg: #3a2a17; --plus: #6fd093; --plus-bg: #183a25;
    --good: #6fd093; --bad: #f08a80; --bad-bg: #3d1f1c; --tree: #5fae78; --tree2: #8fd3a5; --trunk: #b08a66; --road: #3a352b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; }
.wrap {
  max-width: 880px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 8px 64px;
}
h1, h2, h3 { font-family: var(--ff-display); text-wrap: balance; line-height: 1.25; margin: 0; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 700; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--fern); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--fern); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.eyebrow { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fern); font-weight: 700; }

.btn {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 999px;
  padding: .5rem 1.05rem; font-weight: 700; font-size: .95rem; min-height: 44px;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--fern); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--fern); border-color: var(--fern); color: var(--card); }
.btn:disabled { opacity: .45; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* ---------- site header ---------- */
.site-head {
  max-width: 880px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: max(14px, env(safe-area-inset-top, 0px)) 6px;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-family: var(--ff-display); font-size: 1.05rem; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--mint); }
.lang button {
  border: 0; background: transparent; border-radius: 999px; padding: .25rem .75rem; font-weight: 700;
  font-size: .85rem; color: var(--muted); min-height: 34px;
}
.lang button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- home ---------- */
.home-head { display: grid; gap: .6rem; margin: 1rem 0 1.4rem; }
.ruler {
  height: 10px; width: min(320px, 70%);
  background:
    repeating-linear-gradient(90deg, var(--fern) 0 1.5px, transparent 1.5px 16px) bottom / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, var(--fern) 0 1.5px, transparent 1.5px 8px) bottom / 100% 5px no-repeat;
  border-bottom: 1.5px solid var(--fern);
}
.home-head p { color: var(--muted); max-width: 38em; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.filters button {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: .3rem .85rem;
  font-weight: 700; font-size: .9rem; min-height: 40px; display: inline-flex; gap: .4rem; align-items: center;
}
.filters button .n { font-family: var(--ff-mono); font-size: .78rem; color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--fern); border-color: var(--fern); color: var(--card); }
.filters button[aria-pressed="true"] .n { color: var(--card); opacity: .8; }
.cat { display: grid; gap: .8rem; margin-bottom: 2rem; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; border-bottom: 1.5px solid var(--line); padding-bottom: .4rem; }
.cat-head p { color: var(--muted); font-size: .92rem; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mod {
  display: grid; gap: .35rem; align-content: start; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem;
  text-decoration: none; color: inherit; min-width: 0;
}
a.mod:hover { border-color: var(--fern); }
.mod .src { font-size: .8rem; color: var(--muted); }
.mod .pill { justify-self: start; font-size: .75rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; }
.mod.ready { border-color: var(--fern); }
.mod.ready .pill { background: var(--plus-bg); color: var(--plus); }
.mod.planned { background: transparent; border-style: dashed; }
.mod.planned .pill { background: var(--mint); color: var(--muted); }
.mod.planned h3 { color: var(--muted); }
.mod .stat { font-size: .82rem; color: var(--muted); }
.site-foot { margin-top: 1rem; font-size: .85rem; color: var(--muted); }

/* ---------- module page ---------- */
.back { color: var(--fern); text-decoration: none; font-weight: 700; font-size: .92rem; }
.mhead { display: grid; gap: .5rem; margin: .8rem 0 1.1rem; }
.formula-chip {
  justify-self: start; font-weight: 700; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 12px; padding: .45rem .8rem; font-size: 1rem; line-height: 1.5;
}
.f1 { color: var(--shift); } .f2 { color: var(--squash); } .f3 { color: var(--plus); }

.tabs {
  display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--mint);
  overflow-x: auto; scrollbar-width: none; margin-bottom: 1rem;
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 1 auto; border: 0; background: transparent; border-radius: 999px; padding: .5rem .6rem;
  font-weight: 700; color: var(--muted); white-space: nowrap; min-height: 42px;
}
.tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.panel { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 1.1rem; min-width: 0; }
.card > * + * { margin-top: .8rem; }
.lead { max-width: 40em; }

/* ---------- sequence animator ---------- */
.anim { display: grid; gap: 1rem; }
.stepbar { display: flex; gap: 5px; }
.stepbar span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: background .3s; }
.stepbar span.on { background: var(--fern); }
.stage { position: relative; padding-top: 2.4rem; }
.opbadge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-weight: 700; font-size: .95rem; padding: .2rem .8rem; border-radius: 999px; white-space: nowrap;
  opacity: 0; transition: opacity .3s;
}
.opbadge.show { opacity: 1; animation: drop .45s ease; }
@keyframes drop { from { transform: translate(-50%, -8px); } to { transform: translate(-50%, 0); } }
.opbadge[data-phase="shift"] { background: var(--shift-bg); color: var(--shift); }
.opbadge[data-phase="squash"] { background: var(--squash-bg); color: var(--squash); }
.opbadge[data-phase="plus"] { background: var(--plus-bg); color: var(--plus); }
.opbadge[data-phase="base"] { background: var(--mint); color: var(--fern); }

.tiles { display: flex; gap: 6px; justify-content: center; flex-wrap: nowrap; perspective: 400px; }
.tile {
  flex: 0 1 auto; min-width: 0; width: 4.2em; text-align: center;
  font-family: var(--ff-mono); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(.82rem, 3.4vw, 1.15rem);
  padding: .55rem .1rem; border-radius: 10px; border: 2px solid var(--line); background: var(--card);
  transition: border-color .4s, background .4s, color .4s;
}
.tile.gap { border: 0; background: transparent; width: 1.6em; color: var(--muted); }
.tile.flip { animation: flip .6s ease both; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.anim[data-phase="shift"] .tile:not(.gap) { border-color: var(--shift); background: var(--shift-bg); color: var(--shift); }
.anim[data-phase="squash"] .tile:not(.gap) { border-color: var(--squash); background: var(--squash-bg); color: var(--squash); }
.anim[data-phase="plus"] .tile:not(.gap) { border-color: var(--plus); background: var(--plus-bg); color: var(--plus); }
.tile-idx { display: flex; gap: 6px; justify-content: center; font-size: .72rem; color: var(--muted); }
.tile-idx span { width: 4.2em; text-align: center; flex: 0 1 auto; min-width: 0; }
.tile-idx span.gap { width: 1.6em; }

.nl { position: relative; height: 78px; margin: 0 14px; }
.nl .axis { position: absolute; left: 0; right: 0; top: 38px; height: 2px; background: var(--line); }
.nl .dot {
  position: absolute; top: 34px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--fern); opacity: .85; transition: left .9s cubic-bezier(.5,0,.2,1), background .4s;
}
.anim[data-phase="shift"] .nl .dot { background: var(--shift); }
.anim[data-phase="squash"] .nl .dot { background: var(--squash); }
.anim[data-phase="plus"] .nl .dot { background: var(--plus); }
.nl .lab {
  position: absolute; transform: translateX(-50%); font-family: var(--ff-mono); font-size: .78rem; font-weight: 600;
  white-space: nowrap; transition: left .9s cubic-bezier(.5,0,.2,1);
}
.nl .lab.first { top: 50px; }
.nl .lab.last { top: 8px; }
.nl .zero { position: absolute; top: 30px; width: 2px; height: 18px; margin-left: -1px; background: var(--muted); }
.nl .zlab { position: absolute; top: 50px; transform: translateX(-50%); font-size: .72rem; color: var(--muted); font-family: var(--ff-mono); }
.nl-cap { text-align: center; font-size: .8rem; color: var(--muted); }

.caption { min-height: 5.2em; padding: .8rem 1rem; border-radius: 12px; background: var(--mint); font-size: 1.02rem; }
.caption b { font-family: var(--ff-mono); }
.formula {
  display: grid; gap: .35rem; padding: .9rem 1rem; border-radius: 12px; border: 1.5px dashed var(--line);
  font-size: clamp(.98rem, 3.6vw, 1.2rem); font-weight: 700; text-align: center;
}
.formula .fp { white-space: nowrap; padding: .1rem .3rem; border-radius: 6px; color: var(--muted); transition: color .3s, background .3s; }
.formula .fp.lit.f1 { color: var(--shift); background: var(--shift-bg); }
.formula .fp.lit.f2 { color: var(--squash); background: var(--squash-bg); }
.formula .fp.lit.f3 { color: var(--plus); background: var(--plus-bg); }
.formula .sub { font-family: var(--ff-mono); font-weight: 600; min-height: 1.6em; }
.formula .sub span { opacity: 0; transition: opacity .4s; }
.formula .sub span.show { opacity: 1; }
.legend { display: grid; gap: .3rem; font-size: .9rem; text-align: left; justify-self: center; font-weight: 400; }
.ctrls { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }

/* ---------- fence ---------- */
.fence-ctrls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem 1.2rem; align-items: end; }
.field { display: grid; gap: .25rem; min-width: 0; }
.field label { font-size: .88rem; font-weight: 700; color: var(--muted); }
.field input[type="range"] { width: 100%; accent-color: var(--fern); min-height: 32px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: .35rem .75rem;
  font-weight: 700; font-size: .88rem; min-height: 40px;
}
.seg button[aria-pressed="true"] { background: var(--fern); border-color: var(--fern); color: var(--card); }
.fence-svg { width: 100%; height: auto; display: block; overflow: visible; }
.fence-wrap { overflow-x: auto; }
.tree-g { transform-box: fill-box; transform-origin: 50% 100%; }
.tree-g.grow { animation: grow .5s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes grow { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.seglab.fade, .treenum.fade { animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.fence-result { font-size: 1.05rem; }
.fence-result .big { font-family: var(--ff-mono); font-weight: 600; font-size: 1.3rem; color: var(--fern); }
.bridge { display: grid; gap: .4rem; }
.bridge ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .25rem; }

/* ---------- playground ---------- */
.inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.inputs input {
  width: 100%; min-width: 0; padding: .55rem .7rem; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--card); font-family: var(--ff-mono); font-size: 1.05rem; min-height: 44px;
}
.presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.presets button {
  border: 1.5px dashed var(--line); background: transparent; border-radius: 999px; padding: .3rem .75rem;
  font-family: var(--ff-mono); font-size: .85rem; min-height: 38px;
}
.presets button:hover { border-color: var(--fern); }
.err { color: var(--bad); background: var(--bad-bg); padding: .6rem .8rem; border-radius: 10px; }

/* ---------- practice ---------- */
.px-top { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.dots { display: flex; gap: 5px; flex-wrap: wrap; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); display: block; }
.dots i.cur { border-color: var(--fern); }
.dots i.first { background: var(--good); border-color: var(--good); }
.dots i.hint { background: var(--squash); border-color: var(--squash); }
.dots i.shown { background: var(--bad); border-color: var(--bad); }
.chip { font-size: .78rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--mint); color: var(--fern); }
.px-q { font-family: var(--ff-mono); font-size: clamp(1rem, 3.8vw, 1.18rem); line-height: 1.6; }
.px-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.px-form input {
  flex: 1 1 140px; min-width: 0; max-width: 220px; padding: .55rem .8rem; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--card); font-family: var(--ff-mono); font-size: 1.15rem; min-height: 46px;
}
.px-form input.ok { border-color: var(--good); }
.px-form input.no { border-color: var(--bad); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.fb { padding: .6rem .85rem; border-radius: 10px; }
.fb.ok { background: var(--plus-bg); color: var(--good); }
.fb.no { background: var(--bad-bg); color: var(--bad); }
.fb.sol { background: var(--squash-bg); color: var(--ink); }
.fb .work { font-family: var(--ff-mono); display: block; margin-block: .25rem; color: var(--ink); overflow-wrap: anywhere; }
.hints { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.hints li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; padding: .55rem .8rem; border-radius: 10px; background: var(--mint); }
.hints li .lv { font-size: .75rem; font-weight: 700; color: var(--fern); padding-top: .15rem; white-space: nowrap; }
.summary { display: grid; gap: 1rem; text-align: center; justify-items: center; }
.score { font-family: var(--ff-display); font-size: 3rem; font-weight: 700; color: var(--fern); line-height: 1; }
.bytype { width: 100%; max-width: 460px; border-collapse: collapse; font-size: .92rem; }
.bytype td, .bytype th { padding: .35rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }
.bytype td:last-child, .bytype th:last-child { text-align: right; font-family: var(--ff-mono); }
.history { font-size: .85rem; color: var(--muted); }

@media (max-width: 520px) {
  .card { padding: .9rem; }
  .inputs { gap: .4rem; }
  .tile, .tile-idx span { width: 3.6em; }
  .tiles, .tile-idx { gap: 4px; }
  .tab { font-size: .9rem; padding: .5rem .35rem; }
  .hints li { grid-template-columns: 1fr; gap: .1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- people tokens (C&P modules) ---------- */
:root {
  --p1: #d9694f; --p2: #3d8a5a; --p3: #2f6aa3; --p4: #b8862a; --p5: #8a5cb8; --p6: #2a8f84; --p7: #c2577f; --p8: #6b7d3a;
  --on-p: #ffffff; --muted-tok: #c9d6ce;
}
@media (prefers-color-scheme: dark) { :root { --muted-tok: #3a4c42; } }
.tok {
  width: 2.5em; height: 2.5em; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: var(--on-p); font-weight: 700; font-family: var(--ff-mono); font-size: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.tok.dim { background: var(--muted-tok) !important; color: var(--ink); }
.ctl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem 1.2rem; }

/* slots (multiplication principle) */
.pool { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 3.4em; padding: .6rem; border: 1.5px dashed var(--line); border-radius: 12px; }
.pool-lab { text-align: center; font-size: .8rem; color: var(--muted); margin-top: -.4rem; }
.slots { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.slot { display: grid; justify-items: center; gap: .25rem; width: 5.4em; }
.slot-in { width: 3.2em; height: 3.2em; border-radius: 12px; border: 2px dashed var(--line); display: grid; place-items: center; }
.slot.filled .slot-in { border-style: solid; border-color: var(--shift); background: var(--shift-bg); }
.slot-lab { font-size: .8rem; color: var(--muted); text-align: center; line-height: 1.3; }
.slot-n { font-family: var(--ff-mono); font-weight: 700; color: var(--shift); visibility: hidden; }
.slot.filled .slot-n { visibility: visible; }
.product { text-align: center; font-family: var(--ff-mono); font-size: clamp(1rem, 4vw, 1.25rem); font-weight: 600; min-height: 1.7em; margin-top: .6rem; }

/* permutation wall → groups */
.wall { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.pchip {
  font-family: var(--ff-mono); font-weight: 700; padding: .15rem .4rem; border: 1.5px solid var(--line);
  border-radius: 8px; background: var(--card); font-size: .88rem; letter-spacing: .02em; transition: opacity .4s, background .4s, border-color .4s;
}
.groups { display: grid; gap: 5px; }
.grp { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: .2rem .35rem; border-radius: 10px; }
.grp:nth-child(odd) { background: var(--mint); }
.grp-lab { font-family: var(--ff-mono); font-size: .78rem; color: var(--muted); min-width: 4.6em; }
.grp-x { font-size: .78rem; font-weight: 700; color: var(--squash); margin-left: auto; opacity: 0; transition: opacity .4s; }
.show-x .grp-x { opacity: 1; }
.collapsed .pchip:not(.lead) { opacity: .15; }
.collapsed .pchip.lead { border-color: var(--plus); background: var(--plus-bg); }
.wall-count { text-align: center; font-family: var(--ff-mono); font-weight: 600; margin-top: .6rem; }

/* round table */
.rt { position: relative; width: min(300px, 78vw); max-width: 100%; aspect-ratio: 1; margin: 0 auto; }
.rt-table { position: absolute; inset: 24%; border-radius: 50%; background: var(--road); border: 2px solid var(--line); transition: opacity .5s; }
.rt.row .rt-table { opacity: 0; }
.rt .tok { position: absolute; transform: translate(-50%, -50%); }
.rt.slide .tok { transition: left .8s cubic-bezier(.5,0,.2,1), top .8s cubic-bezier(.5,0,.2,1); }
.tok.ring { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--plus); }
.reads { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 2em; }
.read { font-family: var(--ff-mono); padding: .1rem .55rem; border-radius: 8px; background: var(--shift-bg); color: var(--shift); font-weight: 600; }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.mini { display: grid; justify-items: center; gap: .1rem; font-size: .72rem; color: var(--muted); min-width: 0; }
.mini svg { width: 100%; max-width: 92px; height: auto; display: block; }
.big-ex { display: grid; justify-items: center; gap: .4rem; }
.big-ex svg { width: min(240px, 70vw); height: auto; }
.steps-list { margin: 0; padding-left: 1.3rem; display: grid; gap: .3rem; }
.count-ok { padding: .55rem .8rem; border-radius: 10px; background: var(--plus-bg); color: var(--good); font-weight: 700; }
.grp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
