/* UniManager v2 mockup — cabinet identity (graphite sidebar, light canvas, chips, status colours) from
   dashboard/app.css; muted text #65716e (≥4.5:1); red only together with an icon and a word. */
:root {
  color-scheme: light;
  --ink: #202827;
  --ink-2: #37413e;
  --muted: #65716e;
  --line: #e2e7e4;
  --line-2: #edf0ee;
  --field: #cdd6d2;
  --canvas: #f6f8f7;
  --paper: #fff;
  --tint: #f9fbfa;
  --graphite: #202827;
  --green: #217452;
  --green-btn: #267654;
  --green-btn-h: #1d6445;
  --green-soft: #e8f3ed;
  --green-line: #b7d9c4;
  --amber: #94630d;
  --amber-soft: #fff4db;
  --amber-line: #efd9a6;
  --red: #ad423c;
  --red-soft: #faecea;
  --red-line: #e8c4c0;
  --blue: #426f8d;
  --blue-soft: #eaf2f7;
  --blue-line: #cfe0ea;
  --focus: #2f7d5a;
  --radius: 6px;
  --side: 224px;
  --top: 64px;
  --z-sticky: 10;
  --z-top: 20;
  --z-nav: 30;
  --z-toast: 50;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top) + 16px); scroll-padding-bottom: 120px; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; letter-spacing: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1:focus, h1:focus-visible { outline: none; }
svg.lucide { width: 16px; height: 16px; flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.link { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(33,116,82,.35); }
.link:hover { text-decoration-color: currentColor; }
.txt-amber { color: var(--amber); }
.boot { min-height: 100svh; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }

/* ---- shell ------------------------------------------------------------------------------------- */
.side { position: fixed; z-index: var(--z-nav); inset: 0 auto 0 0; width: var(--side); display: flex; flex-direction: column; padding: 16px 12px 12px; color: #e9efec; background: var(--graphite); }
.brand { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; border-bottom: 1px solid #39413f; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 6px; background: #54a881; color: #15231c; font-size: 18px; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; font-weight: 700; }
.brand small { margin-top: 2px; color: #a4afaa; font-size: 12px; }
.nav { display: grid; gap: 3px; margin-top: 18px; }
.nav-a { min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 10px; color: #c7d0cc; border-radius: 5px; font-size: 15px; }
.nav-a svg.lucide { width: 18px; height: 18px; }
.nav-a:hover { color: #fff; background: #2c3733; }
.nav-a.is-active { color: #fff; background: #34443d; box-shadow: inset 2px 0 #63bf91; }
.nav-count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; margin-left: auto; padding: 0 6px; color: #1b2a22; background: #e7c873; border-radius: 11px; font-size: 12px; font-weight: 700; }
.side-bottom { margin-top: auto; }
.agent { display: flex; align-items: flex-start; gap: 10px; padding: 12px 8px; border-top: 1px solid #39413f; border-bottom: 1px solid #39413f; }
.agent strong, .agent small, .me strong, .me small { display: block; }
.agent strong { font-size: 13px; color: #e1e8e4; }
.agent small { margin-top: 3px; color: #a4afaa; font-size: 12px; line-height: 1.35; }
.dot { width: 8px; height: 8px; margin-top: 6px; flex: none; border-radius: 50%; }
.dot-green { background: #63bf91; }
.dot-amber { background: #d4a446; }
.me { display: flex; align-items: center; gap: 9px; padding: 12px 4px 0 8px; }
.me > span:nth-child(2) { min-width: 0; flex: 1; }
.me strong { font-size: 14px; }
.me small { margin-top: 1px; color: #a4afaa; font-size: 12px; }
.avatar { width: 30px; height: 30px; display: inline-grid; flex: none; place-items: center; color: #17251e; background: #b9ddc8; border-radius: 50%; font-weight: 700; font-size: 14px; }
.avatar-lg { width: 40px; height: 40px; font-size: 18px; }
.main { min-height: 100svh; margin-left: var(--side); display: flex; flex-direction: column; }
.top { position: sticky; z-index: var(--z-top); top: 0; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 32px; background: var(--paper); border-bottom: 1px solid var(--line); }
.crumb { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.crumb svg.lucide { width: 14px; height: 14px; }
.crumb strong { min-width: 0; overflow: hidden; color: var(--ink-2); font-weight: 650; text-overflow: ellipsis; }
.top-src { margin-left: auto; display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.top-src svg.lucide { width: 14px; height: 14px; color: var(--muted); }
.top .menu-btn { display: none; }
.top-link { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.top-link:hover { color: var(--green); border-color: currentColor; }
.top-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.top-link svg.lucide { width: 15px; height: 15px; }
.scrim { display: none; }
.content { width: 100%; max-width: 1180px; flex: 1; margin: 0 auto; padding: 28px 32px 40px; }
.content-wide { max-width: 1720px; }
.mock-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 32px; color: var(--ink-2); background: #edf1ef; border-top: 1px solid var(--line); font-size: 13px; }
.mock-foot p { display: flex; gap: 8px; align-items: flex-start; max-width: 90ch; }
.mock-foot p svg.lucide { margin-top: 2px; color: var(--blue); }
.seg-label { padding: 0 8px 0 6px; color: #56625e; font-size: 13px; font-weight: 600; align-self: center; }

/* ---- generic controls --------------------------------------------------------------------------- */
.icon-btn { width: 36px; height: 36px; display: inline-grid; flex: none; place-items: center; color: #4f5c57; background: transparent; border: 1px solid transparent; border-radius: 6px; }
.icon-btn:hover { color: var(--ink); background: #f0f4f1; border-color: var(--line); }
.icon-btn svg.lucide { width: 18px; height: 18px; }
.icon-btn-dark { color: #a4afaa; }
/* «Копировать» next to a name or an SKU (dashboard/copy-text.mjs): 32 px target at every width, negative margins keep the
   text line as tall as without it; «Скопировано» shows over the button, so nothing moves. */
.copy-line { display: flex; align-items: flex-start; gap: 2px; min-width: 0; }
.copy-line > :first-child { min-width: 0; }
.icon-btn.copy-btn { position: relative; width: 32px; height: 32px; margin: -6px -6px -6px 0; vertical-align: middle; color: var(--muted); }
.bl-sku .icon-btn.copy-btn { margin: -8px -6px -8px 0; }
.icon-btn.copy-btn svg.lucide { width: 15px; height: 15px; }
.copy-btn .copy-done, .copy-btn.is-copied .copy-ic { display: none; }
.copy-btn.is-copied .copy-done { display: block; }
.copy-btn.is-copied { color: var(--green); }
.copy-btn.is-failed { color: var(--red); }
.copy-btn.is-copied::after, .copy-btn.is-failed::after { content: attr(title); position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); padding: 2px 6px; color: #fff; background: var(--graphite); border-radius: var(--radius); font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; pointer-events: none; z-index: var(--z-sticky); }
.icon-btn-dark:hover { color: #fff; background: #2c3733; border-color: #39413f; }
.btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid #d3dcd8; border-radius: var(--radius); background: var(--paper); color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .14s ease, border-color .14s ease; }
.btn:hover { background: #f4f7f5; border-color: #bfcac5; }
.btn:disabled { opacity: .55; }
.btn:disabled:hover { background: var(--paper); border-color: #d3dcd8; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; min-height: 44px; }
.btn-primary { color: #fff; background: var(--green-btn); border-color: var(--green-btn); }
.btn-primary:hover { background: var(--green-btn-h); border-color: var(--green-btn-h); }
.btn-primary:disabled, .btn-primary:disabled:hover { color: #1f2926; background: #cfd8d4; border-color: #cfd8d4; opacity: 1; }
.btn-danger { color: #fff; background: var(--red); border-color: var(--red); }
.btn-danger:hover { background: #963631; border-color: #963631; }
.btn-danger:disabled:hover { background: var(--red); }
.btn-quiet-red { color: var(--red); background: transparent; border-color: transparent; }
.btn-quiet-red:hover { color: #8f342f; background: var(--red-soft); border-color: var(--red-line); }
.seg { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; background: #e7ece9; border-radius: 8px; }
.seg-wrap { flex-wrap: wrap; }
.seg-btn { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--ink-2); background: transparent; border: 0; border-radius: 6px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.seg-btn b { color: #56625e; font-weight: 600; font-variant-numeric: tabular-nums; }
.seg-btn:hover { background: rgba(255,255,255,.6); }
.seg-btn[aria-pressed="true"] { color: var(--ink); background: var(--paper); box-shadow: 0 1px 2px rgba(32,40,39,.14); }
.chip { min-height: 32px; padding: 4px 12px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; font-size: 13px; text-align: left; }
.chip:hover { border-color: var(--green-line); background: var(--green-soft); }
.mark { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 1px 8px; border: 1px solid; border-radius: 4px; font-size: 13px; font-weight: 650; line-height: 1.3; white-space: nowrap; vertical-align: middle; }
.mark svg.lucide { width: 14px; height: 14px; }
.mark .spin { width: 12px; height: 12px; border-width: 2px; border-color: color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; }
.mark-red { color: var(--red); background: var(--red-soft); border-color: var(--red-line); }
.mark-amber { color: var(--amber); background: var(--amber-soft); border-color: var(--amber-line); }
.mark-green { color: var(--green); background: var(--green-soft); border-color: var(--green-line); }
.mark-blue { color: var(--blue); background: var(--blue-soft); border-color: var(--blue-line); }
.mark-muted { color: var(--ink-2); background: #eef1f0; border-color: var(--line); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 9px; color: var(--ink-2); background: #eaefec; border-radius: 4px; font-size: 13px; font-weight: 650; }
.tag svg.lucide { width: 14px; height: 14px; color: var(--muted); }
.src { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.src svg.lucide { width: 14px; height: 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.back:hover { color: var(--green); }
.spin { width: 14px; height: 14px; flex: none; display: inline-block; border: 2px solid #c9d4cf; border-top-color: var(--green); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- page heads --------------------------------------------------------------------------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.page-head h1 { color: #1f2a27; font-size: 26px; line-height: 1.25; font-weight: 700; text-wrap: balance; }
.lede { max-width: 75ch; margin-top: 6px; color: var(--muted); font-size: 15px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.empty > svg.lucide { width: 22px; height: 22px; color: var(--green); }
.empty strong { display: block; font-size: 15px; }
.empty p { margin: 4px 0 12px; color: var(--muted); }
.info-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; color: var(--ink-2); font-size: 14px; }
.info-line svg.lucide { margin-top: 2px; color: var(--blue); }
.notice { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 11px 14px; color: #31505f; background: var(--blue-soft); border: 1px solid var(--blue-line); border-radius: var(--radius); }
.notice svg.lucide { margin-top: 2px; }

/* ---- Сегодня ------------------------------------------------------------------------------------ */
.today { display: grid; gap: 28px; }
.block-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 16px; font-weight: 650; }
.block-count { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 7px; color: var(--ink-2); background: #e3e9e6; border-radius: 11px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.block-empty { padding: 4px 0; }
.q-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.q-list > li + li { border-top: 1px solid var(--line-2); }
.q-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, auto) 18px; align-items: center; gap: 24px; padding: 18px 20px; }
.q-row:hover { background: var(--tint); }
.q-row:hover .q-text { color: var(--green); }
.q-text { display: block; color: var(--ink); font-size: 19px; line-height: 1.35; font-weight: 650; text-wrap: pretty; }
.q-text-sm { font-size: 16px; }
.q-line { display: block; margin-top: 7px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.q-line .mark { margin-right: 8px; }
.q-line .spin { margin-right: 8px; vertical-align: -2px; }
.q-side { display: grid; justify-items: end; gap: 2px; color: var(--ink-2); font-size: 13px; text-align: right; white-space: nowrap; }
.q-store { color: var(--ink); font-weight: 650; }
.q-stage { display: inline-flex; align-items: center; gap: 8px; }
.meter { display: inline-flex; gap: 3px; }
.meter i { width: 14px; height: 6px; background: #c3ccc8; border-radius: 3px; }
.meter i.is-done { background: var(--green-btn); }
.meter i.is-now { background: #a87a14; }
.done-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.done-list > li + li { border-top: 1px solid var(--line-2); }
.done-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 14px; }
.done-row:hover .done-title { color: var(--green); }
.done-row > svg.lucide { margin-top: 2px; }
.done-title { display: block; font-size: 14px; font-weight: 650; }
.done-line { display: block; color: var(--ink-2); font-size: 13px; }
.done-store { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.q-chev { color: var(--muted); }
.msg-list { display: grid; gap: 8px; }
.msg { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid; border-radius: var(--radius); font-size: 14px; }
.msg > span { min-width: 0; flex: 1 1 240px; }
.msg svg.lucide { margin-top: 2px; }
.msg-amber { color: #5e4209; background: var(--amber-soft); border-color: var(--amber-line); }
.msg-amber svg.lucide { color: var(--amber); }
.msg-blue { color: #2f4d61; background: var(--blue-soft); border-color: var(--blue-line); }
.msg-red { color: #7c2e2a; background: var(--red-soft); border-color: var(--red-line); }

/* ---- Решение ------------------------------------------------------------------------------------- */
.decide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.decide-main { min-width: 0; max-width: 1180px; }
.decide-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.decide-top .tags { flex: 1 1 auto; margin: 0; }
.decide-top .back { min-height: 26px; }
.chat-open { display: inline-flex; }
.q-h1 { max-width: 34em; color: #1b2522; font-size: 32px; line-height: 1.2; font-weight: 700; text-wrap: balance; }
.h1-stage { display: block; margin-top: 8px; color: var(--muted); font-size: 19px; line-height: 1.3; font-weight: 600; }
.risks { display: grid; gap: 8px; margin-top: 16px; }
.risks li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 15px; line-height: 1.5; }
.risks li > span:last-child { min-width: 0; flex: 1 1 320px; }
.sec { margin-top: 24px; }
.sec-tight { margin-top: 20px; }
.sec h2 { font-size: 16px; line-height: 1.35; font-weight: 650; }
.sec-head { margin-bottom: 10px; }
.sec-head p { margin-top: 3px; font-size: 13.5px; }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.prose { max-width: 72ch; margin-top: 6px; font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.num-cell { min-width: 0; padding: 14px 18px 13px; }
.num-cell + .num-cell { border-left: 1px solid var(--line); }
.num-cell dt { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.num-value { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 30px; line-height: 1.15; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num-cap { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.num-red .num-value { color: var(--red); }
.num-amber .num-value { color: var(--amber); }
.num-value .num-ic { width: 22px; height: 22px; }
.after-sec .path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
.step { position: relative; display: grid; align-content: start; gap: 4px; padding-right: 18px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: 44px; right: 10px; height: 2px; background: #d6dfdb; }
.step-now::after { background: linear-gradient(90deg, var(--green-btn), #d6dfdb); }
.step-dot { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 6px; color: var(--ink-2); background: var(--paper); border: 2px solid #c9d4cf; border-radius: 50%; font-size: 15px; font-weight: 700; }
.step-now .step-dot { color: #fff; background: var(--green-btn); border-color: var(--green-btn); }
.step-locked .step-dot { color: var(--muted); border-style: dashed; }
.step-dot svg.lucide { width: 15px; height: 15px; }
.step-title { font-size: 15px; font-weight: 650; }
.step-text { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.step-locked .step-title { color: var(--ink-2); }
.ladder { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.rung { display: grid; grid-template-columns: 22px minmax(150px, 210px) minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 11px 16px; }
.rung + .rung { border-top: 1px solid var(--line-2); }
.rung-mark { display: grid; place-items: center; margin-top: 1px; }
.rung-mark svg.lucide { width: 18px; height: 18px; }
.tone-green { color: var(--green); }
.tone-amber { color: var(--amber); }
.tone-red { color: var(--red); }
.tone-muted { color: var(--muted); }
.rung-who strong { display: block; font-size: 14px; }
.rung-who span { display: block; color: var(--muted); font-size: 12.5px; }
.rung-text { font-size: 14px; line-height: 1.5; }
.rung-agree { display: grid; justify-items: end; gap: 1px; color: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 1px; }
.rung-agree b { font-size: 13px; font-weight: 650; }
.disputes { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.dispute { display: grid; gap: 8px; padding: 14px 16px; }
.dispute + .dispute { border-top: 1px solid var(--line-2); }
.dispute.is-chosen { background: var(--tint); }
.dispute .choice { justify-self: start; }
.dispute-names strong { display: block; font-size: 15px; }
.dispute-names span { display: block; color: var(--muted); font-size: 13px; }
.opinions { display: grid; gap: 4px; }
.op { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.op svg.lucide { margin-top: 2px; width: 15px; height: 15px; }
.op-for svg.lucide { color: var(--green); }
.op-against svg.lucide { color: var(--amber); }
.choice { display: inline-flex; flex-wrap: wrap; max-width: 100%; background: var(--paper); border: 1px solid #cfd8d4; border-radius: var(--radius); overflow: hidden; }
.choice-btn { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--ink-2); background: var(--paper); border: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.choice-btn + .choice-btn { border-left: 1px solid #cfd8d4; }
.choice-btn:hover:not(:disabled) { background: #f2f6f4; }
.choice-btn:disabled { color: #7d8884; cursor: default; }
.choice-btn[aria-checked="true"] { color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 2px var(--green-btn); }
.choice-btn.err[aria-checked="true"] { color: var(--red); background: var(--red-soft); box-shadow: inset 0 0 0 2px var(--red); }
.choice-btn[data-pick="skip"][aria-checked="true"], .choice-btn.lv-none[aria-checked="true"] { color: var(--ink); background: #edf0ef; box-shadow: inset 0 0 0 2px #6d7975; }
.choice-btn.lv-view[aria-checked="true"] { color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); }
.choice-btn:disabled[aria-checked="true"] { opacity: .85; }
.more { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.more + .more { margin-top: 8px; }
.more summary { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary b { min-width: 24px; height: 22px; display: inline-grid; place-items: center; padding: 0 7px; color: var(--ink-2); background: #e3e9e6; border-radius: 11px; font-size: 12px; }
.more-chev { color: var(--muted); transition: transform .18s cubic-bezier(.23,1,.32,1); }
.more[open] .more-chev { transform: rotate(90deg); }
.more-body { padding: 0 16px 16px; }
.more-body > .seg { margin-bottom: 10px; }
.bar { position: sticky; z-index: var(--z-sticky); bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 28px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; box-shadow: 0 -8px 20px rgba(32,40,39,.07); }
.bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bar-note { min-width: 0; flex: 1 1 260px; display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.bar-note svg.lucide { color: var(--muted); }
.bar-info { background: #f3f8fa; }
.bar-ok { background: #f2f8f4; }
.bar-ok .bar-note svg.lucide { color: var(--green); }
.bar-red { background: #fcf4f3; }
.bar-save { background: #fffaf0; }

/* tables */
.tbl-wrap { max-width: 100%; overflow-x: auto; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-2); }
.tbl thead th { color: var(--ink-2); background: var(--tint); border-top: 0; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.tbl thead th:first-child { border-top-left-radius: var(--radius); }
.tbl thead th:last-child { border-top-right-radius: var(--radius); }
.tbl tbody th { font-weight: 400; min-width: 220px; }
.more .tbl { border-radius: 4px; }
.t-name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.t-sku { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.tbl tbody th .mark { margin-top: 5px; }
.before { color: var(--muted); }
.arrow { padding: 0 5px; color: var(--muted); }
.after { font-weight: 650; }
.same { color: var(--muted); }
.v-num { white-space: nowrap; }
tr.is-disputed { background: #fffcf4; }
.tbl-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; color: var(--ink-2); font-size: 13px; }
.tbl-list tbody tr:hover { background: var(--tint); }
.row-a { display: block; }
.row-a:hover .t-name { color: var(--green); }
tr.is-off .t-name, tr.is-off td { color: var(--muted); }

/* chat */
.chat { display: none; }
.chat-head { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head > svg.lucide { width: 20px; height: 20px; margin-top: 1px; color: var(--blue); }
.chat-head strong { display: block; font-size: 15px; }
.chat-head small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.chat-scope { display: grid; gap: 2px; padding: 10px 16px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); font-size: 12.5px; line-height: 1.45; }
.chat-scope b { color: var(--ink); font-weight: 650; }
.dlg-chat .chat-scope { display: none; }
.chat-log { flex: 1; min-height: 120px; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; overflow-y: auto; overscroll-behavior: contain; }
.cm { display: grid; gap: 3px; max-width: 94%; }
.cm-who { color: var(--muted); font-size: 12px; font-weight: 600; }
.cm-who time { margin-left: 6px; font-weight: 400; }
.cm p { padding: 9px 12px; background: #f1f5f3; border-radius: 8px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.cm-me { align-self: flex-end; justify-items: end; }
.cm-me p { background: var(--green-soft); }
.cm-system { align-self: stretch; max-width: none; display: flex; gap: 6px; align-items: center; justify-content: center; color: var(--ink-2); font-size: 12.5px; }
.cm-system svg.lucide { width: 14px; height: 14px; color: var(--blue); }
.chat-limit { display: flex; gap: 8px; align-items: flex-start; margin: 0 16px 10px; padding: 9px 12px; color: #5e4209; background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: var(--radius); font-size: 13px; }
.chat-limit svg.lucide { margin-top: 2px; color: var(--amber); }
@keyframes blink { 0%, 80%, 100% { opacity: .35; } 40% { opacity: 1; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form textarea { min-width: 0; flex: 1; min-height: 44px; max-height: 140px; padding: 9px 11px; border: 1px solid var(--field); border-radius: var(--radius); background: var(--paper); font-size: 14px; resize: vertical; }
.icon-btn-send { color: #fff; background: var(--green-btn); width: 44px; height: 44px; }
.icon-btn-send:hover { color: #fff; background: var(--green-btn-h); }
.chat-note { padding: 0 16px 12px; color: var(--muted); font-size: 12.5px; }
.chat-in-dialog { display: flex; flex-direction: column; height: 100%; min-height: 0; border: 0; }

/* result */
.fact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 20px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.fact-main { display: grid; }
.fact-num { font-size: 30px; line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; }
.fact-label { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.fact-text { min-width: 0; flex: 1 1 280px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.progress-pill { min-height: 28px; display: inline-flex; align-items: center; padding: 0 10px; color: var(--ink-2); background: #e7ece9; border-radius: 14px; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sample { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.sample-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px; }
.sample-row + .sample-row { border-top: 1px solid var(--line-2); }
.sample-row.is-error { background: #fdf6f5; }
.sample-note { grid-column: 2 / -1; display: grid; gap: 4px; }
.sample-note label { font-size: 13px; font-weight: 650; }
.sample-note input { min-height: 38px; padding: 0 10px; border: 1px solid var(--field); border-radius: var(--radius); background: var(--paper); font-size: 14px; }
.sample-n { color: var(--muted); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sample-main strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.sample-cmp { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 3px; color: var(--ink-2); font-size: 13px; }
.sample-cmp b { font-weight: 600; color: var(--muted); }

/* scenarios / passport */
.lvl { display: flex; gap: 10px; align-items: flex-start; }
.lvl b { min-width: 26px; height: 26px; display: inline-grid; place-items: center; flex: none; color: var(--ink); background: #e3e9e6; border-radius: 50%; font-size: 13px; }
.lvl span { max-width: 34ch; font-size: 13.5px; line-height: 1.45; }
.now { font-size: 13.5px; font-weight: 600; }
.now-amber { color: var(--amber); }
.now-muted { color: var(--ink-2); font-weight: 500; }
.switch { position: relative; width: 48px; height: 44px; flex: none; padding: 0; background: transparent; border: 0; border-radius: 8px; }
.switch::before { content: ""; position: absolute; top: 9px; left: 2px; width: 44px; height: 26px; background: #b9c4bf; border-radius: 13px; transition: background-color .16s ease; }
.switch span { position: absolute; top: 12px; left: 5px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .18s cubic-bezier(.23,1,.32,1); }
.switch[aria-checked="true"]::before { background: var(--green-btn); }
.switch[aria-checked="true"] span { transform: translateX(18px); }
.switch:disabled { opacity: .55; }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.level { display: grid; align-content: start; gap: 4px; padding: 14px 16px; }
.level + .level { border-left: 1px solid var(--line); }
.level.is-now { background: var(--green-soft); box-shadow: inset 0 3px var(--green-btn); }
.level-n { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink-2); background: #e3e9e6; border-radius: 50%; font-weight: 700; }
.is-now .level-n { color: #fff; background: var(--green-btn); }
.level-t { font-size: 14px; font-weight: 650; }
.level-w { color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.promo { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 24px; margin-top: 14px; padding: 16px 18px; background: #f2f8f4; border: 1px solid var(--green-line); border-radius: var(--radius); }
.promo > div:first-child { min-width: 0; flex: 1 1 360px; }
.promo h2 { font-size: 16px; }
.promo p { margin-top: 4px; font-size: 14px; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.passport { margin-top: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.passport > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 12px 16px; }
.passport > div + div { border-top: 1px solid var(--line-2); }
.passport dt { color: var(--ink-2); font-size: 13.5px; font-weight: 650; }
.passport dd { max-width: 80ch; font-size: 14px; }
/* a standalone link after the names: 24 px hit area (WCAG 2.5.8) without changing the line */
.passport dd .link-ink { display: inline-block; min-height: 24px; padding-block: 2px; }
.dd-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.plain li { position: relative; padding-left: 14px; }
.plain li + li { margin-top: 3px; }
.plain li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 5px; height: 5px; background: #9aa6a1; border-radius: 50%; }

/* users */
.page-head + .seg { margin-bottom: 14px; }
.person { display: flex; align-items: center; gap: 10px; }
.perm-sum { max-width: 52ch; color: var(--ink-2); }
.perm-line { display: block; }
.perm-line + .perm-line { margin-top: 3px; }
.perm-line b { color: var(--ink); font-weight: 650; }
.h1-person { display: flex; align-items: center; gap: 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 10px; }
.meta dt { color: var(--muted); font-size: 12.5px; }
.meta dd { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 600; }
.perm { width: auto; min-width: 100%; }
.perm tbody th { min-width: 150px; vertical-align: middle; font-weight: 600; }
.perm .choice { flex-wrap: nowrap; }
.perm .choice-btn { padding: 0 10px; }
.perm tbody th svg.lucide { margin-right: 8px; color: var(--muted); vertical-align: -3px; }
.perm td { vertical-align: middle; }
.perm td.is-changed { background: #fffaf0; }
.was { display: block; margin-top: 4px; color: var(--amber); font-size: 12px; font-weight: 600; }
.effects { display: grid; gap: 8px; margin-top: 12px; }
.effects li { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; background: var(--tint); border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 14px; }
.effects svg.lucide { margin-top: 2px; color: var(--green); }
.secret { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 10px; padding: 12px 14px; background: var(--tint); border: 1px dashed #aab7b1; border-radius: var(--radius); }
.secret code { flex: 1 1 200px; font-family: ui-monospace, "DejaVu Sans Mono", monospace; font-size: 20px; letter-spacing: .04em; user-select: all; }
.row-actions { display: flex; gap: 8px; margin-top: 8px; }

/* journal */
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 8px; }
.day { margin-bottom: 6px; color: var(--ink-2); font-size: 14px; font-weight: 650; }
.jlist { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.jrow { display: grid; grid-template-columns: 48px 20px minmax(0, 1fr) 80px 70px; align-items: baseline; gap: 12px; padding: 10px 16px; font-size: 14px; }
.jrow + .jrow { border-top: 1px solid var(--line-2); }
.jrow time { color: var(--muted); font-variant-numeric: tabular-nums; }
/* --muted on --green-soft is 4.46:1; the key row's time takes --ink-2 (≥4.5:1 text) */
.jrow.is-key time { color: var(--ink-2); }
.filters .j-search { width: min(100%, 300px); max-width: none; }
.filters .j-seg { scroll-padding-inline: 12px; }
.j-kind svg.lucide { width: 15px; height: 15px; color: var(--muted); transform: translateY(2px); }
.j-store { color: var(--ink-2); font-size: 13px; }
.filters { align-items: flex-end; }
.filters .field-inline { margin: 0; }
.sec + .sec .day { margin-top: 4px; }
/* «Открыть» repeats on every line: plain ink, the underline only marks the hovered or focused one */
.jrow .j-open { text-decoration: none; }
.jrow .j-open:hover, .jrow .j-open:focus-visible { text-decoration: underline; text-decoration-color: currentColor; }
/* closed run: three totals in sight, the rest and the step lines behind a native disclosure */
.j-main .j-chips + .j-more { margin-top: 4px; }
.more.j-more { background: none; border: 0; border-radius: 0; }
.more.j-more summary { display: inline-flex; min-height: 32px; gap: 4px; padding: 0 8px 0 2px; margin-left: -2px; color: var(--ink-2); font-size: 13px; font-weight: 600; border-radius: 6px; }
.more.j-more summary:hover { color: var(--ink); background: rgba(32,40,39,.05); }
.more.j-more .more-chev { width: 15px; height: 15px; }
.more.j-more .more-body { padding: 0 0 4px; }
.more.j-more .more-body .j-chips { margin: 2px 0 6px; }
.jrow .j-chips { gap: 6px; }
@media (max-width: 767px) {
  .filters { gap: 10px; }
  .filters .j-seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: thin; overscroll-behavior-x: contain; }
  .filters .field-inline { max-width: none; width: 100%; }
  .more.j-more summary { min-height: 44px; }
}

/* forms, dialogs, auth */
.form { display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { color: var(--ink); font-size: 13.5px; font-weight: 650; padding: 0; }
.field input:not([type="radio"]), .field textarea { width: 100%; min-height: 42px; padding: 0 12px; background: var(--paper); border: 1px solid var(--field); border-radius: var(--radius); font-size: 15px; }
.field textarea { padding: 10px 12px; resize: vertical; line-height: 1.5; }
.field [aria-invalid="true"] { border-color: var(--red); }
.hint { color: var(--muted); font-size: 12.5px; }
.field-error { display: flex; gap: 6px; align-items: flex-start; margin-top: 2px; color: var(--red); font-size: 13px; font-weight: 600; }
.field-error svg.lucide { margin-top: 2px; width: 15px; height: 15px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14px; cursor: pointer; }
.radio input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green-btn); }
.form-error { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; color: #7c2e2a; background: var(--red-soft); border: 1px solid var(--red-line); border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.form-error svg.lucide { margin-top: 2px; color: var(--red); }
.pass-wrap { display: flex; align-items: center; gap: 2px; padding-right: 3px; background: var(--paper); border: 1px solid var(--field); border-radius: var(--radius); }
.field .pass-wrap input:not([type="radio"]) { min-width: 0; flex: 1; border: 0; background: transparent; }
.pass-wrap input:focus-visible { outline: 2px solid var(--focus); outline-offset: -1px; border-radius: 5px; }
.rules { display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.rules li { display: flex; gap: 8px; align-items: center; }
.rules li svg.lucide { color: #9aa6a1; }
.rules li.is-ok svg.lucide { color: var(--green); }
.rules li.is-bad { color: var(--red); }
.rules li.is-bad svg.lucide { color: var(--red); }
.auth { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 32px 16px; }
.auth-box { width: min(420px, calc(100vw - 32px)); padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 16px; }
.auth h1 { font-size: 26px; line-height: 1.25; }
.auth h1 + p { margin-top: 6px; }
.auth-mock { max-width: 420px; color: var(--ink-2); font-size: 13px; text-align: center; }
.dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 60px rgba(20,28,26,.22); }
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: rgba(20,28,26,.48); }
.dlg-sm { width: min(520px, calc(100vw - 32px)); }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line-2); }
.dlg-head h2 { font-size: 18px; line-height: 1.35; font-weight: 700; text-wrap: balance; }
.dlg-x { margin: -4px -8px 0 0; }
.dlg-body { min-height: 0; flex: 1; padding: 16px 20px; overflow-y: auto; }
.dlg-body .prose:first-child { margin-top: 0; }
.dlg-body > * + * { margin-top: 12px; }
.dlg-body > .field { margin-top: 16px; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 16px; background: var(--paper); border-top: 1px solid var(--line-2); border-radius: 0 0 10px 10px; }
.dlg-warn { display: grid; gap: 6px; padding: 12px 14px; background: var(--red-soft); border: 1px solid var(--red-line); border-radius: var(--radius); justify-items: start; }
.dlg-warn .mark-amber { background: var(--paper); }
#otp-warn { background: var(--amber-soft); border-color: var(--amber-line); margin-top: 12px; }
.dlg-chat { width: min(560px, calc(100vw - 32px)); height: min(720px, calc(100dvh - 48px)); }
.dlg-chat .dlg-body { padding: 0; display: flex; }
.dlg-chat .chat-head { display: none; }
.toasts { position: fixed; z-index: var(--z-toast); left: 16px; bottom: 16px; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
body.menu-open .toasts { display: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 12px 12px 14px; color: #eef3f1; background: #24302c; border-radius: 8px; box-shadow: 0 10px 30px rgba(20,28,26,.25); font-size: 14px; animation: toast-in .2s cubic-bezier(.23,1,.32,1); }
.toast > svg.lucide { margin-top: 2px; color: #a8d9bf; }
.toast-amber > svg.lucide { color: #f0c46a; }
.toast-red > svg.lucide { color: #f2a19b; }
.toast-text { flex: 1; }
.toast-action { min-height: 30px; padding: 0 10px; color: #fff; background: #3a4a44; border: 1px solid #50625b; border-radius: 5px; font-weight: 650; }
.toast-close { width: 30px; height: 30px; display: grid; place-items: center; color: #b9c4c0; background: none; border: 0; border-radius: 5px; }
@keyframes side-in { from { transform: translateX(-100%); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---- responsive --------------------------------------------------------------------------------- */
@media (min-width: 1280px) and (max-width: 1439px) {
  .lbl-long { display: none; }
}
@media (min-width: 1280px) {
  .decide { grid-template-columns: minmax(0, 1fr) 320px; }
  .chat { position: sticky; top: calc(var(--top) + 20px); height: calc(100svh - var(--top) - 40px); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
  .chat-open { display: none; }
}
@media (min-width: 1600px) {
  .today { grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); align-items: start; }
  .today-side .q-row { grid-template-columns: minmax(0, 1fr) 18px; gap: 8px 12px; }
  .today-side .q-side { grid-row: 2; grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-items: start; text-align: left; white-space: normal; }
  .today-side .q-chev { grid-row: 1; grid-column: 2; }
  .decide { grid-template-columns: minmax(0, 1fr) 420px; gap: 36px; }
}
@media (min-width: 2200px) {
  .decide { grid-template-columns: minmax(0, 1fr) 480px; }
  .content { max-width: 1320px; }
  .content-wide { max-width: 1720px; }
}
@media (max-width: 1023px) {
  .side { display: none; }
  body.menu-open .side { display: flex; box-shadow: 12px 0 40px rgba(0,0,0,.25); animation: side-in .2s cubic-bezier(.23,1,.32,1); }
  body.menu-open .scrim { position: fixed; z-index: calc(var(--z-nav) - 1); inset: 0; display: block; background: rgba(20,28,26,.4); }
  .main { margin-left: 0; }
  .top .menu-btn { display: inline-grid; margin-left: -8px; }
  .top { padding: 0 20px; }
  .content { padding: 24px 20px 32px; }
  .mock-foot { padding: 14px 20px; }
}
@media (max-width: 767px) {
  :root { --top: 56px; }
  html { scroll-padding-bottom: 150px; }
  .top-src { display: none; }
  /* phones: the passport link keeps its place as an icon button, the label stays its accessible name */
  .top-link { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .top-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .content { padding: 18px 16px 28px; }
  .mock-foot { padding: 14px 16px; }
  .page-head { margin-bottom: 18px; }
  .page-head h1, .auth h1 { font-size: 24px; }
  .q-h1 { font-size: 25px; }
  .decide-top { gap: 6px 10px; }
  .decide-top .back { order: 1; border-right: 0; padding-right: 0; }
  .decide-top .chat-open { order: 2; margin-left: auto; }
  .decide-top .tags { order: 3; flex-basis: 100%; }
  .h1-stage { font-size: 17px; }
  .q-row { grid-template-columns: minmax(0, 1fr) 18px; gap: 10px 12px; padding: 16px; }
  .q-side { grid-row: 2; grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-items: start; text-align: left; white-space: normal; }
  .q-chev { grid-row: 1; grid-column: 2; }
  .q-text { font-size: 17px; }
  .nums { grid-template-columns: minmax(0, 1fr); }
  .num-cell + .num-cell { border-left: 0; border-top: 1px solid var(--line); }
  .num-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding: 11px 14px; }
  .num-cell dd { display: contents; }
  .num-value { grid-column: 2; grid-row: 1 / span 2; font-size: 24px; justify-self: end; align-self: center; }
  .num-cap { grid-column: 1; }
  .after-sec .path { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; padding: 0 0 14px; }
  .step-dot { grid-row: 1 / span 2; margin: 0; }
  .step:not(:last-child)::after { top: 40px; bottom: 2px; left: 17px; right: auto; width: 2px; height: auto; background: #d6dfdb; }
  .rung { grid-template-columns: 22px minmax(0, 1fr); gap: 4px 10px; padding: 11px 14px; }
  .rung-text, .rung-agree { grid-column: 2; }
  .rung-agree { justify-items: start; grid-auto-flow: column; justify-content: start; gap: 10px; }
  .sample-row { grid-template-columns: 22px minmax(0, 1fr); padding: 12px 14px; }
  .sample-row .choice { grid-column: 2; }
  .bar { margin-left: -16px; margin-right: -16px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); border-radius: 0; border-left: 0; border-right: 0; gap: 8px; }
  .bar-actions { width: 100%; }
  .bar-actions .btn { min-height: 44px; flex: 1 1 0; white-space: normal; text-align: center; line-height: 1.25; }
  .bar-actions .btn-primary { flex-basis: 100%; }
  .bar:has(.bar-actions .btn-primary:not(:disabled)) .bar-note:not(.bar-note-keep) { display: none; }
  .lbl-long { display: none; }
  .bar-note { font-size: 13px; flex-basis: 100%; }
  .btn, .seg-btn, .choice-btn, .chip { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .field input:not([type="radio"]), .field textarea, .chat-form textarea { font-size: 16px; min-height: 44px; }
  .seg { flex-wrap: wrap; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl tr { padding: 10px 14px; }
  .tbl tbody tr + tr { border-top: 1px solid var(--line); }
  .tbl th, .tbl td { padding: 4px 0; border-top: 0; }
  .tbl tbody th { min-width: 0; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
  .perm td { padding: 6px 0; }
  .tbl-list tr { position: relative; }
  .tbl-list tbody th { padding-right: 56px; }
  .tbl-list td[data-label="Включён"] { position: absolute; top: 6px; right: 8px; }
  .tbl-list td[data-label="Включён"]::before { display: none; }
  .perm .choice { display: flex; }
  .perm .choice-btn { flex: 1; justify-content: center; }
  .passport > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .levels { grid-template-columns: minmax(0, 1fr); }
  .level + .level { border-left: 0; border-top: 1px solid var(--line); }
  .jrow { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; }
  .j-kind { display: none; }
  .jrow .j-main { grid-column: 2 / -1; }
  .j-store { grid-column: 2; }
  .j-open { grid-column: 3; justify-self: end; }
  .dlg, .dlg-sm, .dlg-chat { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 12px 12px 0 0; }
  .dlg-chat { height: 92dvh; }
  .dlg-actions { border-radius: 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .dlg-actions .btn { flex: 1 1 auto; }
  .choice { display: flex; }
  .choice-btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .mark, .btn, .choice, .nums, .tbl { border: 1px solid CanvasText; }
}
.today-side { display: grid; gap: 28px; align-content: start; }
@media (max-width: 767px) and (max-height: 700px) {
  .bar .bar-note { display: none; }
}

/* ---- round 5 ------------------------------------------------------------------------------------ */
@media (min-width: 1440px) { .decide { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (min-width: 1600px) { .decide { grid-template-columns: minmax(0, 1fr) 420px; } }
@media (min-width: 1920px) { .content-list { max-width: 1720px; } .today { grid-template-columns: minmax(0, 1fr) 520px; } }
.mark-btn { padding: 0; background: none; border: 0; border-radius: 4px; }
.mark-btn .mark { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-ink { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(32,40,39,.35); }
.link-ink:hover { text-decoration-color: currentColor; }
.link-btn { min-height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 0 2px; color: var(--ink-2); background: none; border: 0; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(32,40,39,.3); }
.link-btn svg.lucide { width: 14px; height: 14px; }
.checks-more summary { flex-wrap: wrap; row-gap: 4px; min-height: 48px; }
.more-sum { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.sum-title { font-size: 15px; }
.sum-strip { display: inline-flex; gap: 3px; }
.sum-strip svg.lucide { width: 16px; height: 16px; }
.sum-text { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.ladder-note { margin-bottom: 8px; font-size: 13px; }
.dgroup, .zgroup { margin-top: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.dgroup-head, .zgroup-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: var(--tint); border-radius: var(--radius) var(--radius) 0 0; }
.dgroup-head h3, .zgroup-head h3 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 650; }
.zgroup-head p { margin-top: 2px; font-size: 13px; }
.dgroup-bulk { display: flex; flex-wrap: wrap; gap: 6px; }
.btn.is-on { color: var(--green); background: var(--green-soft); border-color: var(--green-line); }
.dlist > li + li, .zlist > li + li { border-top: 1px solid var(--line-2); }
.dr { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 6px 16px; align-items: center; padding: 10px 16px; }
.dr-names { grid-column: 1; grid-row: 1; }
.dr .choice { grid-column: 2; grid-row: 1; }
.dr-ops { grid-column: 1 / -1; grid-row: 2; }
.dr.is-chosen { background: #fbfcfb; }
.dr-names strong { display: block; font-size: 14px; line-height: 1.35; }
.dr-names span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 1; -webkit-box-orient: vertical; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.dr .choice { flex-wrap: nowrap; }
.dr-ops { display: grid; gap: 3px; font-size: 13px; line-height: 1.4; }
.dr-ops b { font-weight: 650; margin-right: 4px; }
.zg-more { margin: 0; border: 0; border-radius: 0 0 var(--radius) var(--radius); }
.zg-more summary { min-height: 40px; font-size: 13.5px; }
.zrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 8px 0; }
.zname .t-name { -webkit-line-clamp: 1; }
.fact-text { display: grid; gap: 8px; }
.fact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.fact-line > span:last-child { min-width: 0; flex: 1 1 260px; }
.fact-more { flex: 1 1 260px; border: 0; background: none; }
.fact-more summary { min-height: 30px; padding: 0; font-size: 14px; font-weight: 500; }
.fact-more .more-body { padding: 6px 0 0; }
.cmp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 13.5px; color: var(--ink-2); }
.cmp b { color: var(--muted); font-weight: 600; margin-right: 3px; }
.cmp-arrow { width: 14px; height: 14px; color: var(--muted); }
.sample-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 2px; }
.crit { gap: 0; }
.crit legend { margin-bottom: 4px; }
.crit .radio { padding: 4px 0; }
.sample-note { gap: 10px; }
.sample-note .btn { justify-self: start; }
.q-more { display: none; }
.qm { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink-2); font-size: 13px; }
.qm b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.qm-red b { color: var(--red); }
.qm-amber b { color: var(--amber); }
@media (min-width: 2200px) { .q-more { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); } }
.q-row-act { grid-template-columns: minmax(0, 1fr) auto; }
.q-link:hover { color: var(--green); }
.mock-ctl { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.eff-red { color: #7c2e2a; background: var(--red-soft) !important; border-color: var(--red-line) !important; }
.eff-red svg.lucide { color: var(--red) !important; }
.bar-fail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.bar-fail .more { flex: 1 1 260px; border: 0; background: none; }
.bar-fail summary { min-height: 30px; padding: 0; font-size: 14px; font-weight: 500; }
.field-inline { max-width: 360px; margin: 6px 0 4px; }
.mock-login { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.forgot { margin-top: 14px; color: var(--ink-2); font-size: 13px; }
@media (max-width: 1099px) {
  .dr .choice { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
}
@media (max-width: 767px) {
  .dr .choice, .zrow .choice { justify-self: stretch; }
  .zrow { grid-template-columns: minmax(0, 1fr); }
  .dgroup-bulk .btn { flex: 1 1 auto; }
}

.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -10px 0 14px; color: var(--ink-2); font-size: 13px; }
.legend b { color: var(--ink); font-weight: 650; }
.lvl-chip { display: inline-flex; min-height: 26px; align-items: center; padding: 0 10px; color: var(--ink); background: #e3e9e6; border-radius: 13px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.ltrack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 12px 0 10px; }
.lt { position: relative; display: flex; gap: 10px; align-items: flex-start; padding-right: 16px; }
.lt:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 38px; right: 8px; height: 2px; background: #d6dfdb; }
.lt-n { position: relative; z-index: 1; width: 32px; height: 32px; display: grid; flex: none; place-items: center; color: var(--ink-2); background: var(--paper); border: 2px solid #c9d4cf; border-radius: 50%; font-weight: 700; }
.lt.is-now .lt-n { color: #fff; background: var(--green-btn); border-color: var(--green-btn); }
.lt.is-done .lt-n { color: var(--green); border-color: var(--green-btn); }
.lt-body { position: relative; z-index: 1; display: grid; gap: 2px; padding: 4px 8px 0 0; background: var(--canvas); }
.lt-t { font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.lt-w { color: var(--ink-2); font-size: 13px; line-height: 1.45; max-width: 34ch; }
.chip-now { min-height: 20px; padding: 0 8px; color: var(--green); background: var(--green-soft); border: 1px solid var(--green-line); border-radius: 10px; font-size: 12px; font-weight: 650; display: inline-flex; align-items: center; }
.promo h3 { font-size: 15px; }
.errs { margin-top: 10px; }
.ecases { display: grid; gap: 10px; }
.ecases li { display: grid; gap: 2px; font-size: 14px; }
.stopline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -6px 0 6px; padding: 10px 14px; background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: var(--radius); font-size: 14px; }
.stopline > span:nth-child(2) { flex: 1 1 320px; }
.perm-line b { display: block; color: var(--ink); font-weight: 650; }
.perm-line > span { display: block; }
.role-inline { display: none; }
.radio-note { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 1279px) { .col-role { display: none; } .role-inline { display: inline; } .tbl-users .col-perm { width: 42%; } }
@media (min-width: 1920px) { .user-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr); gap: 0 32px; align-items: start; } .user-grid > .bar { grid-column: 1 / -1; } }
@media (max-width: 767px) { .ltrack { grid-template-columns: minmax(0, 1fr); gap: 12px; } .lt:not(:last-child)::after { display: none; } .tbl-users .col-role { display: none !important; } }

.crit label.radio { padding: 3px 0; font-size: 14px; font-weight: 500; align-items: center; }
.crit .radio input { margin-top: 0; }
@media (max-width: 767px) {
  .link-btn, .mark-btn { min-height: 44px; }
  html { scroll-padding-bottom: 180px; scroll-padding-top: calc(var(--top) + 24px); }
}
@media (max-width: 480px) {
  .dr .choice { flex-wrap: wrap; }
  .dr .choice-btn { padding: 0 8px; }
}

/* ---- production cabinet ------------------------------------------------------------------------- */
.chat-stub { display: none; }
@media (min-width: 1280px) {
  .chat-stub { position: sticky; top: calc(var(--top) + 20px); display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
  .chat-stub > svg.lucide { width: 20px; height: 20px; color: var(--muted); margin-top: 1px; }
  .chat-stub strong { display: block; font-size: 15px; color: var(--ink); }
  .chat-stub p { margin-top: 2px; font-size: 13.5px; }
}
.info-line.quiet { color: var(--muted); font-size: 13.5px; }
.info-line.quiet svg.lucide { color: var(--muted); }
.boot-inline { display: flex; gap: 10px; align-items: center; padding: 24px 0; color: var(--muted); }
.app-foot { padding: 12px 32px; color: var(--ink-2); background: #edf1ef; border-top: 1px solid var(--line); font-size: 13px; }
.app-foot p { display: flex; gap: 8px; align-items: center; }
.app-foot svg.lucide { color: var(--green); }
.bar-wide { flex-basis: 100%; }
code { font-family: ui-monospace, "DejaVu Sans Mono", monospace; font-size: 13px; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 1023px) { .app-foot { padding: 12px 20px; } }

/* ---- scenarios: step rail (docs/project/DECISIONS.md 2026-10-09) -------------------------------- */
.lede-goal { color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 68ch; }
.flow { margin-top: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.flow-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 0 18px; padding: 20px 22px; }
.flow-step + .flow-step { border-top: 1px solid var(--line-2); }
.flow-rail { position: relative; align-self: stretch; }
.flow-step:not(:last-child) .flow-rail::after { content: ""; position: absolute; top: 44px; bottom: -40px; left: 19px; width: 2px; background: #d6dfdb; }
.flow-step.is-done:not(:last-child) .flow-rail::after { background: var(--green-btn); }
.flow-n { position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink-2); background: var(--paper); border: 2px solid #c9d4cf; border-radius: 50%; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.flow-n svg.lucide { width: 18px; height: 18px; }
.is-now .flow-n { color: #fff; background: var(--green-btn); border-color: var(--green-btn); box-shadow: 0 0 0 4px var(--green-soft); }
.is-done .flow-n { color: var(--green); background: var(--green-soft); border-color: var(--green-btn); }
.flow-body { min-width: 0; display: grid; gap: 6px; align-content: start; padding-top: 7px; }
.flow-title { font-size: 17px; line-height: 1.35; font-weight: 650; }
.flow-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.flow-state > span:last-child { min-width: 0; flex: 1 1 280px; }
.flow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: 12.5px; }
.flow-meter { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.flow-note { max-width: 72ch; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.flow-act { align-self: center; }
.mini-rail { display: inline-flex; align-items: center; }
.mini-rail i { width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink-2); background: var(--paper); border: 1.5px solid #c9d4cf; border-radius: 50%; font-size: 11.5px; font-style: normal; font-weight: 700; }
.mini-rail i + i { margin-left: 10px; position: relative; }
.mini-rail i + i::before { content: ""; position: absolute; right: 100%; top: 50%; width: 10px; height: 1.5px; background: #c9d4cf; }
.mini-rail i.is-done { color: var(--green); background: var(--green-soft); border-color: var(--green-btn); }
.mini-rail i.is-now { color: #fff; background: var(--green-btn); border-color: var(--green-btn); }
.steps-cell { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; white-space: nowrap; }
.tbl-scen td { vertical-align: middle; }
.tbl-scen .col-open { width: 1%; text-align: right; }
.tbl-scen tbody th { min-width: 240px; }
.q-groups { display: grid; gap: 6px; }
.q-group { margin-top: 10px; color: var(--muted); font-size: 12.5px; font-weight: 650; line-height: 1.4; }
.q-group:first-child { margin-top: 0; }
.q-group a:hover { color: var(--green); }
.q-group-store { margin-left: 6px; font-weight: 500; }
.q-step { color: var(--ink-2); font-size: 12.5px; font-weight: 650; }
@media (max-width: 767px) {
  .flow-step { grid-template-columns: 36px minmax(0, 1fr); gap: 0 12px; padding: 16px 14px; }
  .flow-n { width: 36px; height: 36px; font-size: 15px; }
  .flow-step:not(:last-child) .flow-rail::after { top: 40px; bottom: -36px; left: 17px; }
  .flow-body { padding-top: 5px; }
  .flow-title { font-size: 16px; }
  .flow-act { grid-column: 2; margin-top: 12px; }
  .flow-act .btn { width: 100%; }
  .tbl-scen .col-open { text-align: left; width: auto; }
  .tbl-scen .col-open .btn { width: 100%; }
  .lede-goal { font-size: 15px; }
}
.flow-meta { display: block; }
/* one entry point: step switcher above the brief, report lines on Today, breadcrumbs, space slot */
.side-space:empty { display: none; }
.crumb a { color: var(--muted); display: inline-flex; align-items: center; min-height: 24px; }
.crumb a:hover { color: var(--green); }
.step-tabs { margin: -4px 0 18px; }
.step-tabs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.st-a { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.st-a:hover { border-color: #bfcac5; }
.st-a.is-here { color: var(--ink); border-color: var(--graphite); box-shadow: inset 0 0 0 1px var(--graphite); }
.st-n { width: 28px; height: 28px; display: grid; flex: none; place-items: center; color: var(--ink-2); background: var(--paper); border: 1.5px solid #c9d4cf; border-radius: 50%; font-size: 13px; font-weight: 700; }
.st-n svg.lucide { width: 15px; height: 15px; }
.is-here .st-n { color: #fff; background: var(--graphite); border-color: var(--graphite); }
.is-done .st-n { color: var(--ink); background: var(--paper); border-color: var(--ink-2); }
.st-t { display: grid; line-height: 1.25; }
.st-name { font-size: 14px; font-weight: 650; }
.st-state { color: var(--muted); font-size: 12px; }
.is-waiting .st-state { color: var(--amber); font-weight: 600; }
.today-report > .today-main { display: grid; gap: 28px; align-content: start; }
.today-report { margin-top: 24px; }
.rep-row { grid-template-columns: minmax(0, 1fr) auto; }
.rep-store { margin-left: 6px; color: var(--muted); font-size: 14px; font-weight: 500; }
.rep-open { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.rep-open svg.lucide { width: 16px; height: 16px; }
.rep-row:hover .rep-open { color: var(--green); }
@media (max-width: 767px) {
  .crumb-root, .crumb-root + svg.lucide { display: none; }
  .rep-row { grid-template-columns: minmax(0, 1fr); }
  .step-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 6px; }  /* «Шаг 1 из 3» and three numbered 44 px targets in one line; names stay for screen readers */
  .step-tabs ol { flex-wrap: nowrap; gap: 2px; }
  .step-tabs .st-count { display: block; margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
  .st-a, .st-a.is-here { width: 44px; min-height: 44px; padding: 0; justify-content: center; background: none; border: 0; border-radius: 50%; box-shadow: none; }
  .st-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
.choice-sm .choice-btn { min-height: 32px; padding: 0 10px; font-size: 13px; }
.t-changed { color: var(--amber); font-weight: 600; }
.rec { display: inline-flex; }
@media (max-width: 767px) { .choice-sm { display: flex; } .choice-sm .choice-btn { min-height: 44px; flex: 1 1 auto; } }
/* the decision sits right after the product so it is never behind the table's horizontal scroll */
.choice-sm { flex-wrap: nowrap; }
.tbl td[data-label="Решение"] { min-width: 150px; }
.tbl td[data-label="Решение"]:has(.choice-sm) { min-width: 292px; }
@media (max-width: 767px) { .choice-sm { flex-wrap: wrap; } .tbl td[data-label="Решение"]:has(.choice-sm) { min-width: 0; } }
.crumb { overflow: hidden; }
@media (max-width: 767px) { .crumb > a, .crumb > a + svg.lucide { display: none; } }
.step-tabs li { flex: none; }
.st-t { white-space: nowrap; }
.st-count { display: none; }
