/* «Полная запись»: tokens and the shared components of the radar, «Подготовка» and «Клиент».
   radar.css, prep.css and client.css add what their pages need; the ids and classes are the JS's and must not change.

   REFERENCE LOCK (27.10.2026) — https://www.mtsbank.ru/
   Source: the home page read through Firecrawl (branding extraction + two 1440-px screenshots sampled pixel by pixel).
     The built-in browser, curl and PowerShell on this machine refuse the site's TLS certificate, so there was no
     getComputedStyle; the values below are what the page itself shows.
   Found there: fonts MTS Wide / MTS Compact / MTS Sans (proprietary); body text #1D2023, secondary #626C77, tertiary #969FA8;
     page #F2F3F7, cards #FFFFFF with ≈24 px corners, hairlines and the secondary pill button #E2E5EB; the hero canvas a slate
     gradient #707D9D → #5A6684 → #424E6B with frosted white cards over it; the primary button «ПРОДОЛЖИТЬ» #FF0032, uppercase,
     16-px corners; the logo and brand red #E30611; inputs white on a grey card with 16-px corners; term choices «1 год … 5 лет»
     as pills, the chosen one filled ink; the header white with the active item red and a red underline; footer #F2F3F7.
   Preserved traits: a light body on #F2F3F7 with white 24-px cards and #E2E5EB hairlines; wide geometric headings and large
     figures; one red uppercase primary action per screen; pills for chips and segmented choices; 16-px controls.
   Borrowed details: the slate canvas (its deep end, #424E6B) for the header bar and the splash only; MTS orange #F95721 for
     «на сайте есть расписание» and warnings; MTS green #26CD58 and yellow #FAC031 with the brand red for load.
   Rejects: #FF0032 for the button (white on it is 3.96:1) → #E30611 (4.89:1); tertiary #969FA8 (2.9:1) → #657080 (5:1 on white);
     the proprietary fonts → Unbounded for headings and figures, Golos Text for everything else (Google Fonts, Cyrillic);
     frosted and gradient cards in the body (a tablet in daylight, used all day) → flat white; the chosen segment filled ink
     → filled white on a grey track, as the brief asks; red on headings, rules and marks → never.

   What each colour means: --accent (red) = a primary action and the active step's underline; --sched (orange) = the company's
   site has a schedule, and a warning; --ink (slate) = «в плане», booked, the toast; --canvas (slate) = the header bar and the
   splash; --ld-full / --ld-mid / --ld-low (green / yellow / red) = load ≥ 95 % / 70–95 % / < 70 %. */

:root {
  --page: #f2f3f7;
  --surface: #ffffff;
  --ink: #424e6b;
  --on-ink: #ffffff;
  --fg: #1d2023;
  --fg-2: #626c77;
  --fg-3: #657080;
  --line: #e2e5eb;
  --line-strong: #bcc3d0;
  --accent: #e30611;
  --on-accent: #ffffff;
  --sched: #f95721;
  --on-sched: #1d2023;
  --canvas: #424e6b;
  --canvas-bg: linear-gradient(100deg, #4b5775, #424e6b 55%, #3b4660);
  --canvas-fg: #ffffff;
  --canvas-fg-2: rgba(255, 255, 255, .82);
  --canvas-line: rgba(255, 255, 255, .2);
  --map-ink: #1d2023;   /* the basemap is light in both themes: what is drawn on it keeps these */
  --beam: #424e6b;
  --scrim: rgba(29, 32, 35, .45);
  --r-card: 24px;
  --r-panel: 20px;
  --r-ctl: 16px;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --page: #0e131b; --surface: #161d28; --ink: #f2f3f7; --on-ink: #0e131b; --fg: #f2f3f7; --fg-2: #a8b1bd; --fg-3: #7f8a98;
    --line: #28313f; --line-strong: #3f4a5b; --accent: #e30611; --on-accent: #ffffff; --sched: #f95721; --on-sched: #0e131b;
    --canvas: #2a3447; --canvas-bg: linear-gradient(100deg, #34405a, #2a3447 55%, #253040); --canvas-fg: #ffffff;
    --canvas-fg-2: rgba(255, 255, 255, .82); --canvas-line: rgba(255, 255, 255, .2); --scrim: rgba(0, 0, 0, .62);
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --page: #0e131b; --surface: #161d28; --ink: #f2f3f7; --on-ink: #0e131b; --fg: #f2f3f7; --fg-2: #a8b1bd; --fg-3: #7f8a98;
  --line: #28313f; --line-strong: #3f4a5b; --accent: #e30611; --on-accent: #ffffff; --sched: #f95721; --on-sched: #0e131b;
  --canvas: #2a3447; --canvas-bg: linear-gradient(100deg, #34405a, #2a3447 55%, #253040); --canvas-fg: #ffffff;
  --canvas-fg-2: rgba(255, 255, 255, .82); --canvas-line: rgba(255, 255, 255, .2); --scrim: rgba(0, 0, 0, .62);
  color-scheme: dark;
}

/* load from the schedules: the radar's badges and the cabinet's days (radar.css says how they are used) */
:root { --ld-full: #26cd58; --ld-full-t: #1d2023; --ld-mid: #fac031; --ld-mid-t: #1d2023; --ld-low: #e30611; --ld-low-t: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ld-full: #26cd58; --ld-full-t: #0e131b; --ld-mid: #fac031; --ld-mid-t: #0e131b; --ld-low: #e30611; --ld-low-t: #ffffff; } }
:root[data-theme="dark"] { --ld-full: #26cd58; --ld-full-t: #0e131b; --ld-mid: #fac031; --ld-mid-t: #0e131b; --ld-low: #e30611; --ld-low-t: #ffffff; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--fg); font: 400 14px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 24px; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
/* figures: the wide display face, like the rates and sums on the reference; the counts inside pills stay in the text face */
.num { font-family: var(--font-display); font-weight: 500; font-variant-numeric: tabular-nums; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.holder { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.device { position: absolute; left: 0; top: 0; width: 1194px; height: 834px; transform-origin: 0 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); }
.note { margin: 0; max-width: 72ch; text-align: center; font-size: 12px; color: var(--fg-2); text-wrap: balance; }

/* header bar: the slate canvas of the reference hero, white text, the steps as its nav */
.bar { height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 24px 0 28px;
  border-bottom: 0; background: var(--canvas); background-image: var(--canvas-bg); color: var(--canvas-fg); }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.mark { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0; white-space: nowrap; }
.mark span { color: var(--fg-3); font-weight: 400; margin: 0 3px; }
.bar .mark span { color: var(--canvas-fg-2); }
.vr { width: 1px; height: 18px; background: var(--line-strong); flex: none; }
.bar .vr { background: var(--canvas-line); }
/* segmented choice: a grey track, the chosen segment filled white */
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--page); }
.seg button { height: 40px; padding: 0 14px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--fg-2); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.seg button[aria-selected=true] { background: var(--surface); border-color: var(--line); color: var(--fg); box-shadow: 0 1px 2px rgba(29, 32, 35, .08); }
.seg button:disabled { color: var(--fg-3); cursor: not-allowed; }
.sn { width: 20px; height: 20px; border-radius: 50%; border: 1px solid currentColor; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; }
/* the steps in the bar: no track, the active step white with a red underline, the others muted */
.bar .seg { padding: 0; background: transparent; gap: 4px; }
.bar .seg button { position: relative; height: 64px; padding: 0 10px; border: 0; border-radius: 0; background: transparent; color: var(--canvas-fg-2); box-shadow: none; }
.bar .seg button[aria-selected=true] { color: var(--canvas-fg); font-weight: 600; }
.bar .seg button[aria-selected=true]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.bar .seg button[aria-selected=true] .sn { background: var(--canvas-fg); border-color: var(--canvas-fg); color: var(--canvas); }
.bar .seg button:disabled { color: rgba(255, 255, 255, .45); }
.bar button:focus-visible { outline-color: var(--canvas-fg); }
.right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.clock { display: flex; align-items: center; gap: 10px; }
.clock .x { height: 24px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--fg-2); display: inline-flex; align-items: center; white-space: nowrap; }
.bar .clock .x { border-color: var(--canvas-line); color: var(--canvas-fg-2); }
.clock div { display: grid; line-height: 1.2; }
.clock b { font-size: 16px; font-weight: 600; }
.clock span.d { font-size: 12px; color: var(--fg-2); white-space: nowrap; }
.bar .clock span.d { color: var(--canvas-fg-2); }
.ctx { text-align: right; min-width: 0; }
.ctx b { display: block; font-weight: 500; white-space: nowrap; }
.ctx span { display: block; font-size: 12px; color: var(--fg-2); white-space: nowrap; }
.bar .ctx span { color: var(--canvas-fg-2); }
/* the employee dropdown in the bar: an outline on the canvas; its menu stays a light card */
.bar .ctx .dd { border-color: var(--canvas-line); background: transparent; color: var(--canvas-fg); }
.bar .ctx .dd.on { border-color: var(--canvas-fg); }
.bar .ctx .dd .l { color: var(--canvas-fg-2); }
.bar .ctx .dd .v, .bar .ctx .dd svg { color: var(--canvas-fg); }

/* buttons: 16-px corners; the primary one red, uppercase and tall, as «ПРОДОЛЖИТЬ» on the reference */
.btn { height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-ctl); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.btn-primary:disabled { background: var(--line); color: var(--fg-3); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--fg); padding: 0 12px; font-weight: 500; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 3px; }
.view { flex: 1; min-height: 0; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-2); }
.h1 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; text-wrap: balance; }
.h2 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.cap { font-size: 13px; color: var(--fg-2); max-width: 68ch; }
.kpis { display: flex; align-items: stretch; }
.kpi { display: grid; gap: 2px; padding: 0 28px; border-left: 1px solid var(--line); }
.kpi:first-child { padding-left: 0; border-left: 0; }
.kpi .l { font-size: 12px; color: var(--fg-2); white-space: nowrap; }
.kpi .v { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; white-space: nowrap; }
.kpi .v small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--fg-2); letter-spacing: 0; }
.actions { flex: none; height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px; border-top: 1px solid var(--line); background: var(--surface); }
.sum { min-width: 0; }
.sum .l1 { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.sum .l2 { font-size: 13px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-btns { display: flex; align-items: center; gap: 8px; flex: none; }
.radar { display: flex; flex-direction: column; height: 100%; }
.r-params { flex: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 28px 14px; border-bottom: 1px solid var(--line); }
.r-row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; min-width: 0; }
.r-row .grow { flex: 1; }
.dd-wrap { position: relative; }
.dd { height: 48px; min-width: 150px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--surface); display: inline-flex; align-items: center; gap: 10px; text-align: left; }
.dd .t { display: grid; line-height: 1.2; }
.dd .l { font-size: 11px; color: var(--fg-2); }
.dd .v { font-weight: 500; white-space: nowrap; }
.dd svg { margin-left: auto; color: var(--fg-2); flex: none; }
.dd.sm { height: 40px; min-width: 0; }
.dd.sm .t { display: flex; gap: 6px; align-items: baseline; }
.dd.sm .l { font-size: 13px; }
.dd.on { border-color: var(--fg); }
.pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 240px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); display: grid; gap: 2px;
  box-shadow: 0 12px 32px rgba(29, 32, 35, .14); }
.pop button { height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; white-space: nowrap; }
.pop button:hover { background: var(--page); }
.pop button[aria-checked=true] { font-weight: 600; }
.pop button[aria-checked=true]:after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); }
.rad { display: flex; align-items: center; gap: 10px; }
.rad > span { font-size: 13px; color: var(--fg-2); }
.rad .seg button { height: 40px; min-width: 56px; justify-content: center; }
/* chips: pills */
.tg { height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.tg .bx { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; }
.tg[aria-pressed=true] .bx { background: var(--fg); border-color: var(--fg); color: var(--surface); }
.busy-ui { pointer-events: none; opacity: .55; }
.r-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 520px 1fr; gap: 20px; padding: 0 28px; }
.r-list { display: flex; flex-direction: column; min-height: 0; }
.r-head { flex: none; padding: 14px 0 10px; border-bottom: 1px solid var(--line); }
.r-head .l1 { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.r-head .l2 { font-size: 13px; color: var(--fg-2); }
.r-bar { height: 3px; margin-top: 8px; border-radius: 2px; background: var(--page); overflow: hidden; }
.r-bar i { display: block; height: 100%; width: 0; background: var(--fg); }
.notice { margin: 10px 0 0; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); font-size: 13px; }
.rows { flex: 1; min-height: 0; overflow-y: auto; }
.rows.stale { opacity: .5; }
.row { display: grid; grid-template-columns: 24px 1fr 64px; align-items: center; gap: 14px; padding: 12px 6px 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.row:hover, .row.hl { background: var(--page); }
.row.off { cursor: default; opacity: .55; }
.row .nm { font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; }
.row .nm i { font-style: normal; font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--fg-3); }
.row .m1 { font-size: 13px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .m2 { font-size: 13px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; }
.row.sel .cb { background: var(--fg); border-color: var(--fg); color: var(--surface); }
.row.mine .cb { border-radius: 50%; background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.score { text-align: right; }
.score b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.score span { font-size: 11px; color: var(--fg-2); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge.mine { background: var(--ink); color: var(--on-ink); }
.badge.grey { border: 1px solid var(--line-strong); color: var(--fg-2); }
.go { border: 0; background: transparent; padding: 0; font-weight: 600; font-size: 13px; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.empty { padding: 40px 8px; color: var(--fg-2); display: grid; gap: 8px; justify-items: start; }
.empty b { color: var(--fg); font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.map { position: relative; margin: 14px 0 16px; border-radius: var(--r-panel); overflow: hidden; background: var(--page); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map .river { stroke: var(--line); fill: none; stroke-linecap: round; }
.map .street { stroke: var(--line); stroke-width: 1.1; fill: none; }
.map .street-o { stroke: var(--line); stroke-width: 1; fill: none; }
.map .road-e { stroke: var(--line-strong); stroke-width: 9; fill: none; stroke-linecap: round; opacity: .5; }
.map .road { stroke: var(--surface); stroke-width: 7; fill: none; stroke-linecap: round; }
.map .lbl { font: 500 11px var(--font); fill: var(--fg-3); }
.map .rad-c { fill: var(--fg); fill-opacity: .035; stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 6 5; }
.map .rad-t { font: 500 12px var(--font-display); fill: var(--fg); }
.map .off-m { fill: var(--fg); }
.map .off-o { fill: var(--line-strong); }
.map .off-pill { fill: var(--surface); stroke: var(--line-strong); }
.map .off-t { font: 600 11px var(--font); fill: var(--fg); }
.pin { cursor: pointer; }
.pin circle { fill: var(--surface); stroke: var(--fg); stroke-width: 1.5; }
.pin text { font: 600 11px var(--font); fill: var(--fg); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pin.sel circle { fill: var(--fg); stroke: var(--fg); }
.pin.sel text { fill: var(--surface); }
.pin.mine circle { fill: var(--ink); stroke: var(--ink); }
.pin.mine text { fill: var(--on-ink); }
.pin.hl circle { stroke-width: 3; }
.pin.off circle { fill: var(--line-strong); stroke: none; }
.map .rings { fill: none; stroke: var(--fg); stroke-width: 1; opacity: .14; }
.map .ring { fill: none; stroke: var(--beam); stroke-width: 1.2; stroke-dasharray: 3 5; }
.trail path { fill: var(--beam); }
.beam { stroke: var(--beam); stroke-width: 2; stroke-linecap: round; }
.blip { fill: none; stroke: var(--beam); stroke-width: 2; pointer-events: none; transform-box: fill-box; transform-origin: center; animation: blip .9s ease-out forwards; }
@keyframes blip { 0% { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.r-head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.map-legend { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 14px; padding: 6px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--fg-2); }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1.5px solid var(--fg); }
.map-legend i.s { background: var(--sched); border-color: var(--sched); }
.map-legend i.m { background: var(--ink); border-color: var(--ink); }
.map-scale { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--fg-2); display: flex; align-items: center; gap: 8px; }
.map-scale i { display: block; height: 6px; border: 1.5px solid var(--fg); border-top: 0; }

/* «Подготовка» (the demo's classes, reused by the real page) */
.prep { display: flex; flex-direction: column; height: 100%; }
.co-head { flex: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 20px 32px 0; }
.co-idx { text-align: right; padding-bottom: 4px; }
.co-idx b { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.co-idx span { display: block; font-size: 12px; color: var(--fg-2); }
.co-tabs { flex: none; display: flex; gap: 4px; padding: 14px 32px 12px; border-bottom: 1px solid var(--line); }
.tab { height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--fg-2); font-weight: 500; white-space: nowrap; }
.tab[aria-selected=true] { border-color: var(--line-strong); color: var(--fg); }
.tab .cnt { margin-left: 6px; color: var(--fg-2); font-weight: 600; }
.panel { flex: 1; min-height: 0; }
.slots-tab { display: grid; grid-template-columns: 340px 1fr; grid-template-rows: minmax(0, 1fr); gap: 40px; padding: 24px 32px; height: 100%; }
.visit { background: var(--page); border-radius: var(--r-panel); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }
.visit .svc { height: 30px; padding: 0 10px; font-size: 12px; }
.visit .facts { font-size: 13px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--fg-2); }
.hr { height: 1px; background: var(--line-strong); opacity: .5; }
.big { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.big.wait { color: var(--fg-3); }
.big-cap { color: var(--fg-2); margin-top: 6px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair .v { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 0; }
.pair .l { font-size: 12px; color: var(--fg-2); }
.visit .btn { margin-top: auto; width: 100%; justify-content: space-between; }
.work { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; overflow-y: auto; }
.work-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.work-head .meta { color: var(--fg-2); font-size: 13px; }
.progress { height: 4px; border-radius: 2px; background: var(--page); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--fg); }
.progress.run span { background: var(--ink); }
.steps { list-style: none; margin: 4px 0 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; padding-bottom: 22px; }
.step:before { content: ""; position: absolute; left: 13.5px; top: 34px; bottom: 6px; width: 1px; background: var(--line-strong); }
.step:last-child { padding-bottom: 0; }
.step:last-child:before { display: none; }
.dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.step.done .dot { background: var(--fg); color: var(--surface); }
.step.wait .dot { border: 1.5px solid var(--line-strong); color: var(--fg-3); }
.step.run .dot { border: 2px solid var(--ink); }
.step.run .dot:after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.step-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 28px; }
.step-title b { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.step.wait .step-title b { color: var(--fg-2); font-weight: 500; }
.step-title time { font-size: 13px; color: var(--fg-3); }
.step-body { margin-top: 8px; display: grid; gap: 10px; }
.live { font-size: 14px; font-weight: 500; }
.days { display: grid; grid-template-columns: repeat(7, 56px); gap: 14px; }
.day { display: grid; gap: 4px; justify-items: start; }
.day .pct { font-size: 12px; font-weight: 600; }
.track { position: relative; width: 100%; height: 44px; border-radius: 6px; background: var(--page); overflow: hidden; }
.track i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--line-strong); }
.day .dl { font-size: 12px; color: var(--fg-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 32px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; }
.form-cta { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.pt { padding: 10px 0 12px; border-top: 1px solid var(--line); }
.pt:first-of-type { margin-top: 4px; }
.pt-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 14px; }
.pt-h span { font-size: 12px; color: var(--fg-2); white-space: nowrap; }
.pt-g { margin: 6px 0 0; display: grid; grid-template-columns: 150px 1fr; gap: 3px 14px; font-size: 13px; }
.pt-g dt { color: var(--fg-2); }
.pt-g dd { margin: 0; }
.pt-rows { display: grid; gap: 8px; }
.pt-row { display: grid; grid-template-columns: 150px 1fr 70px 190px; align-items: center; gap: 14px; font-size: 13px; }
.pt-row .bt { height: 8px; border-radius: 4px; background: var(--page); overflow: hidden; }
.pt-row .bt i { display: block; height: 100%; background: var(--fg); }
.pt-row b { text-align: right; font-weight: 600; font-size: 14px; }
.visit .tg { height: 32px; font-size: 12px; padding: 0 12px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 24px 32px; height: 100%; overflow-y: auto; align-content: start; }
.info { margin: 0; display: grid; grid-template-columns: 180px 1fr; }
.info dt, .info dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.about .info dt, .about .info dd { padding: 7px 0; }
.info dt { color: var(--fg-2); }
.idx { display: grid; gap: 14px; margin-top: 14px; }
.ib { display: grid; grid-template-columns: 190px 1fr 40px; align-items: center; gap: 14px; }
.ib .bt { height: 8px; border-radius: 4px; background: var(--page); overflow: hidden; }
.ib .bt i { display: block; height: 100%; background: var(--fg); }
.ib b { text-align: right; font-weight: 600; }
.idx-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
.sched { display: flex; flex-direction: column; height: 100%; }
.sched .kpis { flex: none; padding: 16px 32px; border-bottom: 1px solid var(--line); }
.toolbar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 32px 2px; }
.toolbar2 { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 32px; }
.tb-info { font-size: 13px; color: var(--fg-2); white-space: nowrap; }
.svcs { display: flex; gap: 6px; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.svcs.wrap { flex-wrap: wrap; overflow: visible; }
.svc { height: 32px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.svc[aria-pressed=true], .svc[aria-selected=true] { background: var(--fg); color: var(--surface); border-color: var(--fg); }
.svc:disabled { color: var(--fg-3); cursor: not-allowed; }
.prow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prow .pl { font-size: 13px; color: var(--fg-2); }
.prow .seg button { height: 32px; min-width: 52px; padding: 0 12px; justify-content: center; font-size: 13px; }
.grid.busy-ui { opacity: .55; }
.tabs { display: flex; gap: 4px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--fg-2); white-space: nowrap; }
.sw { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); }
.sw.busy { border-color: transparent; background: repeating-linear-gradient(135deg, var(--page) 0 3px, var(--line-strong) 3px 4px); }
.sw.sel { border: 2px solid var(--fg); }
.sw.booked { border-color: var(--ink); background: var(--ink); }
.grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 52px repeat(7, 1fr); grid-template-rows: 30px repeat(11, 1fr); gap: 4px; padding: 4px 32px 12px; }
.dh { display: flex; align-items: baseline; gap: 6px; padding-left: 2px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.dh span { font-size: 12px; font-weight: 400; color: var(--fg-3); }
.tm { font-size: 12px; color: var(--fg-3); padding-top: 3px; }
.cell { position: relative; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; overflow: hidden;
  transition: border-color .15s, background-color .25s, color .25s; }
.cell:not(:disabled):hover { border-color: var(--line-strong); }
.cell .n { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 0; }
.cell .u { font-size: 12px; color: var(--fg-2); white-space: nowrap; }
.cell.busy { border-color: transparent; background: repeating-linear-gradient(135deg, var(--page) 0 6px, var(--line) 6px 7px); cursor: default; }
.cell.sel { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.cell.sel:after { content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); }
.cell.lim .n { color: var(--fg-3); font-weight: 500; }
.cell .sv { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-size: 12px; color: var(--fg-2); }
.cell.sel .sv { color: var(--fg); }
.cell.na { border-style: dashed; cursor: default; }
.cell.na .n { color: var(--fg-3); font-weight: 400; }
.cell.lim { cursor: not-allowed; }
.cell.sending { cursor: default; }
.cell.sending .n { font-size: 15px; }
.cell .sp { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--ink); transition: width .25s linear; }
.cell.booked { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; border-color: var(--ink); background: var(--ink); color: var(--on-ink); cursor: default; }
.cell.booked .n { font-size: 14px; }
.cell.booked .u { color: var(--on-ink); opacity: .72; }
.cell:disabled { cursor: default; }
.cell:disabled .n { color: var(--fg-3); font-weight: 500; }
.scrim { position: absolute; inset: 0; background: var(--scrim); }
.sheet { position: absolute; left: 50%; bottom: 0; width: 720px; transform: translate(-50%); display: flex; flex-direction: column; gap: 16px; padding: 10px 28px 24px; border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--r-card) var(--r-card) 0 0; background: var(--surface); }
.handle { width: 40px; height: 4px; margin: 0 auto 4px; border-radius: 2px; background: var(--line-strong); }
.sheet-sub { margin: 4px 0 0; color: var(--fg-2); max-width: 62ch; }
.picked { font-size: 13px; color: var(--fg-2); }
.picked b { color: var(--fg); font-weight: 500; }
.opts { display: grid; gap: 2px; padding: 4px; border-radius: var(--r-panel); background: var(--page); }
.opt { display: grid; grid-template-columns: 1fr 156px 28px; align-items: center; gap: 20px; min-height: 84px; padding: 12px 16px; border: 1px solid transparent; border-radius: var(--r-ctl); background: transparent; text-align: left; }
.opt[aria-checked=true] { background: var(--surface); border-color: var(--line); }
.opt.r { grid-template-columns: 1fr 28px; min-height: 64px; }
.opt:disabled { cursor: not-allowed; }
.opt:disabled .t, .opt:disabled .d { color: var(--fg-3); }
.opt:disabled .spark { opacity: .35; }
.opt .t { font-size: 16px; font-weight: 600; }
.opt .d { font-size: 13px; color: var(--fg-2); }
.check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: transparent; }
.opt[aria-checked=true] .check { background: var(--fg); border-color: var(--fg); color: var(--surface); }
.spark { width: 156px; height: 56px; display: block; overflow: visible; }
.spark .axis { stroke: var(--line-strong); stroke-width: 1; }
.spark .ln { stroke: var(--fg); stroke-width: 2; fill: none; stroke-linecap: round; }
.spark .ar { fill: var(--fg); opacity: .08; }
.spark .pt { fill: var(--fg); }
.spark text { font: 500 11px var(--font); fill: var(--fg-2); }
.spark text.val { font-weight: 600; fill: var(--fg); }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.toast { position: absolute; left: 50%; bottom: 96px; transform: translate(-50%); z-index: 30; padding: 12px 18px; border-radius: var(--r-ctl); background: var(--ink); color: var(--on-ink); font-weight: 500; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .cell, .cell .sp { transition: none !important; } .blip, .step.run .dot:after { animation: none; } }
