/* Shared structure for both looks. Every colour, face, radius and shadow reads from a custom property that the look file sets,
   so the two pages have one layout and two skins. No edge bars, no heading rules, no uppercase labels. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-ui); font-size: 14px; line-height: 20px; color: var(--c-ink);
  background: var(--c-sky-grad) top left / 100% 760px no-repeat, var(--c-ground);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--c-ring); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--c-btn); color: var(--c-btn-ink); }
.skip:focus { top: 12px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 12px; padding: 12px; max-width: 1920px; margin: 0 auto; }
.rail {
  position: sticky; top: 12px; align-self: start; height: calc(100vh - 24px); display: flex; flex-direction: column;
  padding: 22px 12px 14px; border-radius: var(--r-rail); background: var(--rail-bg); border: 1px solid var(--rail-border);
  box-shadow: var(--rail-shadow); -webkit-backdrop-filter: blur(37.5px); backdrop-filter: blur(37.5px); color: var(--rail-ink);
}
.rail-top { display: flex; justify-content: center; }
.rail-logo { display: block; width: 132px; height: auto; margin: 6px 0 28px; }
.menu-btn { display: none; }
.rail-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.nav { display: grid; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 12px; border-radius: 12px;
  color: var(--rail-ink2); font-size: 13.5px; white-space: nowrap; text-align: left; transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--rail-hover); color: var(--rail-ink); }
.nav-item[aria-current="page"] { background: var(--rail-active-bg); color: var(--rail-active-ink); font-weight: 500; box-shadow: var(--rail-active-shadow); }
.nav-item[aria-current="page"] .ic { color: var(--rail-icon-active); }
.nav-label { min-width: 0; line-height: 18px; }
.nav-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--rail-badge-bg); color: var(--rail-badge-ink); font-size: 12px; font-weight: 500; }
.rail-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px 2px; border-top: 1px solid var(--rail-line); }
.ru-name { font-size: 13px; font-weight: 500; color: var(--rail-ink); line-height: 18px; }
.ru-role { font-size: 12px; color: var(--rail-ink2); line-height: 16px; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--av-bg); color: var(--av-ink); font-size: 11px; font-weight: 500; line-height: 1; }
.avatar .ic { width: 15px; height: 15px; }
.avatar.big { width: 38px; height: 38px; font-size: 13px; background: var(--av-user-bg); color: var(--av-user-ink); }

.main { min-width: 0; padding: 16px 16px 56px; }

/* ---------- header ---------- */
.head-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
h1 { font-family: var(--f-display); font-weight: var(--w-display); font-size: var(--fs-h1); line-height: 1.14; letter-spacing: var(--track-h1); color: var(--c-ink); }
.today { margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--c-ink3); }
.syncs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 8px; }
.sync { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--c-chip-glass); border: 1px solid var(--c-glass-line); font-size: 12.5px; color: var(--c-ink2); transition: background .15s; }
.sync:hover { background: var(--c-panel); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-good-dot); flex: none; }
.head-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.ask { position: relative; flex: 1; max-width: 620px; height: 52px; border-radius: var(--r-ask); background: var(--c-ask-bg); border: 1px solid var(--c-ask-line); box-shadow: var(--sh-ask); }
.ask:focus-within { outline: 2px solid var(--c-ring); outline-offset: 2px; }
.ask-ic { position: absolute; left: 18px; top: 0; bottom: 0; display: flex; align-items: center; color: var(--c-ink3); pointer-events: none; }
.ask input { width: 100%; height: 100%; border: 0; background: transparent; padding: 0 60px 0 48px; font: inherit; font-size: 15px; color: var(--c-ink); outline: none; border-radius: inherit; }
.ask input::placeholder { color: var(--c-ink3); opacity: 1; }
.ask-go { position: absolute; right: 7px; top: 7px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c-btn); color: var(--c-btn-ink); transition: background .15s; }
.ask-go:hover { background: var(--c-btn-hi); }
.ask-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; padding: 16px 18px 14px; border-radius: 16px; background: var(--c-pop); border: 1px solid var(--c-glass-line); box-shadow: var(--sh-pop); }
.ask-q { font-size: 13px; color: var(--c-ink3); }
.ask-a { margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--c-ink); }
.ask-src { display: none; margin-top: 8px; font-size: 12px; color: var(--c-ink3); }
.ask-pop.answered .ask-src { display: block; }
.ask-sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ask-pop.answered .ask-sugg { margin-top: 12px; }
.sugg { padding: 7px 12px; border-radius: 999px; background: var(--c-neutral-bg); color: var(--c-ink2); font-size: 13px; transition: background .15s; }
.sugg:hover { background: var(--c-row-hover); color: var(--c-ink); }
.period { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.seg-track { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--c-track); }
.seg { height: 34px; padding: 0 16px; border-radius: 9px; font-size: 14px; color: var(--c-ink3); transition: background .15s, color .15s; }
.seg:hover { color: var(--c-ink); }
.seg[aria-pressed="true"] { background: var(--c-panel); color: var(--c-ink); font-weight: 500; box-shadow: var(--sh-seg); }
.range { max-width: 340px; font-size: 12.5px; line-height: 17px; color: var(--c-ink3); text-align: right; text-wrap: pretty; }
.head-bar { align-items: flex-start; }

/* ---------- tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; margin-top: 20px; }
.tile {
  container-type: inline-size; display: flex; flex-direction: column; min-height: 232px; padding: 18px 18px 14px; border-radius: var(--r-tile);
  background: var(--c-glass); border: 1px solid var(--c-glass-line); box-shadow: var(--sh-glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.6) brightness(1.04); backdrop-filter: blur(20px) saturate(1.6) brightness(1.04);
}
.t-label { font-size: 13px; line-height: 18px; font-weight: var(--w-label); color: var(--c-ink3); min-height: 36px; }
.t-num { margin-top: 6px; font-family: var(--f-num); font-weight: var(--w-num); font-size: clamp(26px, 19cqw, 44px); line-height: 1.06; letter-spacing: var(--track-num); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; color: var(--c-ink); }
.t-delta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px; font-size: 12px; color: var(--c-ink3); }
.t-ctx { margin-top: 8px; min-height: 34px; font-size: 12.5px; line-height: 17px; color: var(--c-ink3); }
.t-target { display: flex; align-items: center; gap: 6px; color: var(--c-ink2); }
.t-target.tone-watch .dot { background: var(--c-watch-dot); }
.t-spark { margin-top: auto; height: 42px; flex: none; }
.spark { display: block; }
.sp-base { fill: none; stroke: var(--c-spark-base); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.sp-win { fill: none; stroke: var(--c-s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sp-dot { fill: var(--c-s1); stroke: var(--c-panel-solid); stroke-width: 2; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-chip); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; }
.chip.tone-good { background: var(--c-good-bg); color: var(--c-good-ink); }
.chip.tone-watch { background: var(--c-watch-bg); color: var(--c-watch-ink); }
.chip.tone-late { background: var(--c-late-bg); color: var(--c-late-ink); }
.chip.tone-neutral { background: var(--c-neutral-bg); color: var(--c-neutral-ink); }
.chip.tone-paced { background: var(--c-paced-bg); color: var(--c-paced-ink); }

/* ---------- panels ---------- */
.row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 12px; margin-top: 12px; }
.panel { display: flex; flex-direction: column; min-width: 0; padding: 24px; border-radius: var(--r-card); background: var(--c-panel-bg); border: 1px solid var(--c-glass-line); box-shadow: var(--sh-glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
h2 { font-family: var(--f-display); font-weight: var(--w-h2); font-size: var(--fs-h2); line-height: 1.25; letter-spacing: var(--track-h2); color: var(--c-ink); }
.p-sub { margin-top: 4px; max-width: 48ch; font-size: 13px; line-height: 18px; color: var(--c-ink3); text-wrap: pretty; }
.p-total, .p-count { font-size: 13px; color: var(--c-ink3); white-space: nowrap; padding-top: 2px; }
.p-total b, .p-count b { font-family: var(--f-num); font-weight: var(--w-num); font-size: 22px; letter-spacing: var(--track-num); color: var(--c-ink); font-variant-numeric: tabular-nums lining-nums; }
.legend { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--c-ink2); white-space: nowrap; }
.legend b { margin-left: 4px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; }
.sw-line { border-radius: 50%; background: var(--c-s1); }
.sw-bar { border-radius: 3px; background: var(--c-s2); }
.sw-target { border-radius: 50%; border: 1.5px solid var(--c-target); }

.chart-box { position: relative; flex: 1; min-height: 250px; }
.trend { position: absolute; left: 0; top: 0; overflow: visible; }
.gl { stroke: var(--c-grid); stroke-width: 1; stroke-dasharray: 1 4; stroke-linecap: round; }
.gl.base { stroke: var(--c-line); stroke-dasharray: none; }
.yl, .xl, .tl { font-family: var(--f-ui); font-size: 11.5px; fill: var(--c-ink3); font-variant-numeric: tabular-nums; }
.xl.now { fill: var(--c-ink); font-weight: 500; }
.bar-s { fill: var(--c-s2); }
.tgt { stroke: var(--c-target); stroke-width: 1.25; }
.ln { fill: none; stroke: var(--c-s1); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.pt { fill: var(--c-panel-solid); stroke: var(--c-s1); stroke-width: 2; }
.pt.last { fill: var(--c-s1); }
.hit { fill: transparent; }
.guide { stroke: var(--c-ink3); stroke-width: 1; opacity: .45; }
.tt { position: absolute; z-index: 5; min-width: 176px; padding: 10px 12px; border-radius: 12px; background: var(--c-pop); box-shadow: var(--sh-pop); font-size: 12.5px; line-height: 18px; pointer-events: none; color: var(--c-ink2); }
.tt p { display: flex; align-items: center; }
.tt b { margin-left: auto; padding-left: 14px; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.tt-h { font-weight: 500; color: var(--c-ink); margin-bottom: 4px; }
.tt-t { margin-top: 2px; color: var(--c-ink3); }

.pipe-head, .pipe-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr) 88px; align-items: center; column-gap: 14px; }
.pipe-head { padding-bottom: 8px; font-size: 12px; color: var(--c-ink3); white-space: nowrap; }
.r { text-align: right; }
.pipe-row { min-height: 38px; font-size: 14px; }
.pn { display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; gap: 4px 8px; line-height: 18px; }
.pbar { display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; height: 8px; border-radius: 4px; background: var(--c-bar-track); overflow: hidden; }
.bar svg { display: block; width: 100%; height: 100%; }
.bar rect { fill: var(--c-bar); }
.paced .bar rect { fill: var(--c-bar-muted); }
.pc { width: 28px; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.pd { text-align: right; white-space: nowrap; color: var(--c-ink2); font-variant-numeric: tabular-nums; }
.p-foot { margin-top: auto; padding-top: 14px; font-size: 12.5px; line-height: 18px; color: var(--c-ink3); text-wrap: pretty; }

/* needs attention */
.a-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 30px 112px; align-items: center; column-gap: 14px; min-height: 56px; padding: 8px 12px; margin: 0 -12px; border-radius: 12px; transition: background .15s; }
.a-row:hover { background: var(--c-row-hover); }
.a-icon, .w-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c-neutral-bg); color: var(--c-ink2); }
.a-row.tone-late .a-icon { background: var(--c-late-bg); color: var(--c-late-ink); }
.a-row.tone-watch .a-icon { background: var(--c-watch-bg); color: var(--c-watch-ink); }
.w-icon { background: var(--c-good-bg); color: var(--c-good-ink); }
.a-title, .w-title { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--c-ink); }
.a-meta, .w-meta { margin-top: 2px; overflow: hidden; font-size: 12.5px; line-height: 17px; color: var(--c-ink3); text-wrap: pretty; }
/* A meta line is a row of items, each with a dot before it. The dot belongs to the item after it. The row starts 19px to the left
   of the line and the line clips that overhang, so the dot of any item that starts a line is cut off: a wrapped line never ends
   on a lone dot and never starts with one. */
.meta-in { display: flex; flex-wrap: wrap; margin-left: -19px; row-gap: 2px; }
.m-item { position: relative; padding-left: 19px; }
.m-item::before { content: ''; position: absolute; left: 8px; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: var(--c-ink4); }
.m-id { color: var(--c-ink2); font-weight: 500; font-variant-numeric: tabular-nums; }
.a-age { justify-self: end; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid var(--c-btn-line); background: var(--c-btn2-bg); color: var(--c-btn2-ink); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--c-btn2-hi); }
.btn.done { background: var(--c-good-bg); border-color: transparent; color: var(--c-good-ink); }
.btn .ic { width: 15px; height: 15px; }

.w-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 14px; align-items: start; padding: 20px 0; }
.w-row + .w-row { border-top: 1px solid var(--c-line); }
.w-row:first-child { padding-top: 0; }
.w-foot { margin-top: 2px; font-size: 12.5px; line-height: 17px; color: var(--c-ink3); text-wrap: pretty; }
.w-fig { font-family: var(--f-num); font-weight: var(--w-num); font-size: 22px; line-height: 28px; letter-spacing: var(--track-num); color: var(--c-ink); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.value { margin-top: auto; padding: 22px 24px; border-radius: 12px; background: var(--c-soft); }
.value h3 { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--c-ink); }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.v-label { font-size: 12.5px; color: var(--c-ink3); }
.v-num { margin-top: 2px; font-family: var(--f-num); font-weight: var(--w-num); font-size: 30px; line-height: 36px; letter-spacing: var(--track-num); font-variant-numeric: tabular-nums lining-nums; color: var(--c-ink); }
.v-alt { color: var(--c-ink2); }
.v-note { margin-top: 12px; font-size: 12.5px; line-height: 18px; color: var(--c-ink3); text-wrap: pretty; }

/* ---------- sheet, toast, pulse ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: var(--c-scrim); opacity: 0; transition: opacity .2s; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; z-index: 60; top: 12px; right: 12px; bottom: 12px; width: min(420px, calc(100vw - 24px)); display: flex; flex-direction: column; border-radius: 20px; background: var(--c-pop); box-shadow: var(--sh-float); visibility: hidden; transform: translateX(calc(100% + 24px)); transition: transform .25s ease, visibility 0s .25s; }
.sheet.open { visibility: visible; transform: none; transition: transform .25s ease; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 8px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--c-ink2); transition: background .15s; }
.icon-btn:hover { background: var(--c-row-hover); }
.sheet-body { overflow: auto; padding: 8px 24px 28px; }
.sheet-body h3 { margin: 18px 0 10px; font-size: 14px; font-weight: 500; color: var(--c-ink); }
.sys { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; }
.sys + .sys { border-top: 1px solid var(--c-line); }
.sys-name { font-weight: 500; }
.sys-note, .sys-time { font-size: 12.5px; color: var(--c-ink3); }
.def { padding: 10px 0; }
.def + .def { border-top: 1px solid var(--c-line); }
.def dt { font-weight: 500; }
.def dd { margin-top: 2px; font-size: 13px; line-height: 19px; color: var(--c-ink3); }
.sheet-note { margin-top: 18px; font-size: 12.5px; color: var(--c-ink3); text-wrap: pretty; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--c-btn); color: var(--c-btn-ink); font-size: 14px; box-shadow: var(--sh-float); opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.pulse { outline: 2px solid var(--c-ring); outline-offset: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1360px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .head-bar { flex-wrap: wrap; }
}
@media (max-width: 960px) {
  body { background: var(--c-sky-grad) top left / 100% 520px no-repeat, var(--c-ground); }
  .app { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .rail { top: 0; z-index: 40; height: auto; padding: 10px 16px; border-radius: 0; border-width: 0 0 1px; }
  .rail-top { justify-content: space-between; align-items: center; }
  .rail-logo { width: auto; height: 42px; margin: 0; }
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--rail-ink); }
  .menu-btn:hover { background: var(--rail-hover); }
  .menu-btn .ic-close { display: none; }
  .rail.open .menu-btn .ic-close { display: block; }
  .rail.open .menu-btn .ic-menu { display: none; }
  .rail-body { display: none; max-height: calc(100vh - 80px); overflow: auto; padding-top: 10px; }
  .rail.open .rail-body { display: flex; }
  .rail-user { margin-top: 12px; }
  .main { padding: 22px 16px 56px; }
  .head-top { flex-direction: column; gap: 12px; }
  h1 { font-size: var(--fs-h1-m); }
  .syncs { justify-content: flex-start; padding-top: 0; }
  .head-bar { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 18px; }
  .ask { max-width: none; flex: none; }
  .period { flex-direction: column; align-items: stretch; gap: 8px; }
  .seg-track { display: grid; grid-template-columns: repeat(3, 1fr); }
  .seg { padding: 0 6px; }
  .range { white-space: normal; }
  .kpis { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
  .tile { display: grid; grid-template-columns: minmax(0, 1fr) 112px; grid-template-areas: "label spark" "num spark" "delta spark" "ctx spark"; grid-template-rows: auto auto auto 1fr; column-gap: 16px; min-height: 0; padding: 16px; }
  .t-label { grid-area: label; min-height: 0; }
  .t-num { grid-area: num; font-size: 38px; }
  .t-delta { grid-area: delta; }
  .t-ctx { grid-area: ctx; min-height: 0; }
  .t-spark { grid-area: spark; margin: 0; height: 64px; min-height: 0; align-self: center; }
  .panel { padding: 20px 16px; }
  .p-head { flex-wrap: wrap; }
  .legend { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
  .pipe-head, .pipe-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 78px; column-gap: 10px; }
  .pn { flex-wrap: wrap; white-space: normal; }
  .period { align-items: stretch; }
  .range { max-width: none; text-align: left; }
  .a-row { grid-template-columns: 36px minmax(0, 1fr) 30px auto; grid-template-areas: "icon text text text" "icon age avatar btn"; row-gap: 8px; padding: 12px; }
  .a-icon { grid-area: icon; align-self: start; }
  .a-text { grid-area: text; }
  .a-age { grid-area: age; justify-self: start; }
  .a-row .avatar { grid-area: avatar; }
  .a-btn { grid-area: btn; }
  .value-grid { gap: 10px; }
  .toast { bottom: 16px; }
}
@media (max-width: 600px) {
  .pipe-head { display: none; }
  .pipe-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name days" "bar bar"; row-gap: 8px; min-height: 0; padding: 10px 0 12px; }
  .pn { grid-area: name; }
  .pd { grid-area: days; }
  .pbar { grid-area: bar; }
  .pc { width: 32px; }
  .w-row { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "icon text" "icon fig"; padding: 16px 0; }
  .w-icon { grid-area: icon; }
  .w-text { grid-area: text; }
  .w-fig { grid-area: fig; margin-top: 6px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
