/* Кабинет: холодная светлая основа, графитовый текст; небесный и золотой — отсылка к цветам флага Казахстана.
   Смелость в одном месте: крупная выручка и лента дней под ней. Остальное спокойно. */
/* Шрифты лежат в самом кабинете (скачиваются при сборке образа); если файлов нет — системный шрифт */
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("fonts/golos-text-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("fonts/golos-text-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B8, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url("fonts/golos-text-cyrillic-500.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url("fonts/golos-text-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B8, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("fonts/golos-text-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("fonts/golos-text-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B8, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("fonts/unbounded-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url("fonts/unbounded-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B8, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #eef2f4;      /* фон страницы */
  --sheet: #ffffff;      /* поверхность таблиц и форм */
  --ink: #1e2a33;        /* основной текст */
  --muted: #5d6b75;      /* второстепенный текст */
  --line: #d6dee3;       /* линии и рамки */
  --sky: #0b7fa0;        /* выручка, акцент */
  --sky-soft: #d7ecf3;
  --gold: #d9a21b;       /* знак, выделение текущего */
  --loss: #b8433a;       /* возвраты, падение */
  --gain: #1f7a4f;       /* рост */
  --focus: #0b7fa0;
  --f-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --f-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-hero: clamp(2.4rem, 6vw, 4.25rem);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.5 var(--f-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sky); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Каркас: вертикальная полоса слева + рабочая область --- */
.app { display: grid; grid-template-columns: 15rem 1fr; min-height: 100%;
  background: linear-gradient(to right, var(--ink) 15rem, var(--paper) 15rem); }
.rail {
  background: var(--ink);
  color: #dfe7ec;
  display: flex; flex-direction: column; gap: 2rem;
  padding: 1.5rem 1rem;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; }
.brand-mark {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: grid; place-items: center;
  font: 600 1.05rem/1 var(--f-display);
}
.brand-name { font-weight: 600; line-height: 1.2; }
.brand-name small { display: block; color: #9fb1bc; font-weight: 400; font-size: var(--step--1); }
.nav { display: flex; flex-direction: column; gap: .25rem; }
.nav a {
  color: #c9d5dc; text-decoration: none;
  padding: .55rem .75rem; border-radius: 6px;
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a[aria-current="page"] { background: rgba(217,162,27,.16); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: .6rem; font-size: var(--step--1); }
.rail-foot .who { color: #fff; font-weight: 500; }
.rail-foot .who small { display: block; color: #9fb1bc; font-weight: 400; overflow-wrap: anywhere; }
.btn-ghost {
  appearance: none; background: none; border: 1px solid rgba(255,255,255,.25); color: #dfe7ec;
  padding: .45rem .75rem; border-radius: 6px; font: inherit; cursor: pointer; width: 100%; text-align: left;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; }

.work { min-width: 0; padding: 1.75rem clamp(1rem, 3vw, 2.75rem) 3rem; display: flex; flex-direction: column; gap: 1.75rem; }

/* --- Верхняя строка: заголовок и фильтры --- */
.topbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.topbar h1 { font-size: var(--step-2); font-weight: 600; }
.topbar .sub { color: var(--muted); margin-top: .15rem; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.select {
  font: inherit; color: var(--ink); background: var(--sheet);
  border: 1px solid var(--line); border-radius: 6px; padding: .45rem 2rem .45rem .7rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
  max-width: 16rem;
}
.segmented { display: inline-flex; background: var(--sheet); border: 1px solid var(--line); border-radius: 7px; padding: 3px; }
.segmented a {
  color: var(--muted); text-decoration: none; padding: .35rem .7rem; border-radius: 5px; white-space: nowrap;
  font-size: var(--step--1);
}
.segmented a:hover { color: var(--ink); }
.segmented a[aria-current="true"] { background: var(--ink); color: #fff; }
.period { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.custom-period { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: var(--step--1); color: var(--muted); }
.custom-period .date {
  font: inherit; color: var(--ink); background: var(--sheet);
  border: 1px solid var(--line); border-radius: 6px; padding: .3rem .45rem; min-width: 0;
}
.custom-period.active .date { border-color: var(--ink); }
.custom-period .date:focus-visible { border-color: var(--sky); outline: 2px solid var(--sky-soft); outline-offset: 0; }
.btn.btn-sm { padding: .38rem .7rem; font-size: var(--step--1); font-weight: 500; border-radius: 6px; }

/* --- Главное: выручка и лента дней --- */
.hero { display: grid; gap: 1.25rem; }
.hero-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; }
.hero-label { color: var(--muted); margin: 0; width: 100%; }
.hero-value {
  margin: 0;
  font: 600 var(--step-hero)/1 var(--f-display);
  letter-spacing: -0.02em;
}
.hero-value .cur { font-size: .5em; font-weight: 500; color: var(--muted); margin-left: .15em; }
.delta { font-weight: 500; }
.delta.up { color: var(--gain); }
.delta.down { color: var(--loss); }
.delta small { color: var(--muted); font-weight: 400; }

.tape { position: relative; }
.bars {
  display: flex; align-items: flex-end; gap: clamp(1px, .35vw, 5px);
  height: 190px; border-bottom: 1px solid var(--ink); padding-top: .5rem;
}
.day { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.day .bar { display: block; background: var(--sky); border-radius: 2px 2px 0 0; min-height: 1px; }
.day.today .bar { background: var(--gold); }
.day:hover .bar { background: #08657f; }
.day .ret { position: absolute; left: 20%; right: 20%; top: 100%; background: var(--loss); max-height: 24px; border-radius: 0 0 2px 2px; }
.axis { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: var(--step--1); margin-top: 1.9rem; }
.tape-legend { display: flex; gap: 1.25rem; color: var(--muted); font-size: var(--step--1); margin-top: .35rem; }
.tape-legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }

/* --- Строка показателей: без карточек, через разделители --- */
.strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.metric { padding: 1rem 1.25rem 1.1rem; border-left: 1px solid var(--line); min-width: 0; }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric dt { color: var(--muted); font-size: var(--step--1); }
.metric dd { margin: .2rem 0 0; font-size: var(--step-1); font-weight: 600; }
.metric dd small { display: block; color: var(--muted); font-weight: 400; font-size: var(--step--1); margin-top: .1rem; }

/* --- Таблицы --- */
.columns { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.75rem; align-items: start; }
.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.panel h2 { font-size: var(--step-1); font-weight: 600; padding: 1rem 1.25rem .5rem; }
.panel .scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem 1.25rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: var(--step--1); border-top: 0; }
td.n, th.n { text-align: right; white-space: nowrap; }
td:first-child:not(.n), th:first-child:not(.n) { min-width: 9rem; }
td .meta { display: block; color: var(--muted); font-size: var(--step--1); }
tr:hover td { background: #f6f9fa; }
.share { display: block; height: 3px; background: var(--sky-soft); border-radius: 2px; margin-top: .35rem; }
.share > span { display: block; height: 100%; background: var(--sky); border-radius: 2px; }
.flag { color: var(--loss); }

.notes { display: flex; flex-wrap: wrap; gap: .5rem 2rem; color: var(--muted); font-size: var(--step--1); }
.notes .warn { color: var(--loss); }


/* --- Детализация: ссылки, навигация, списки --- */
a.day { text-decoration: none; cursor: pointer; }
a.day:focus-visible { outline-offset: 0; }
.stack { display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }
.back { color: var(--muted); text-decoration: none; font-size: var(--step--1); width: fit-content; }
.back:hover { color: var(--ink); }
.more { font-weight: 500; }
.row-link { color: var(--ink); text-decoration: none; font-weight: 500; }
.row-link:hover { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.link-row { cursor: default; }
td.nowrap { white-space: nowrap; }
.meta-cell { color: var(--muted); font-size: var(--step--1); overflow-wrap: anywhere; }
tr.muted td { color: var(--muted); }
.pad { padding: 0 1.25rem 1rem; margin: 0; }
.pager { display: flex; gap: 1.5rem; align-items: center; color: var(--muted); }
.pager a { font-weight: 500; }
.h-section { font-size: var(--step-1); font-weight: 600; }
.sub-inline { color: var(--muted); font-weight: 400; font-size: var(--step-0); margin-left: .5rem; }
.metric dd a { color: var(--ink); text-decoration: none; }
.metric dd a:hover { color: var(--sky); text-decoration: underline; }

/* --- Управление --- */
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: .55rem .9rem; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); font-weight: 500; }
.notice { background: #e6f3ec; color: #1d5a3c; border-radius: 7px; padding: .7rem .9rem; margin: 0; }
.notice-error { background: #fbecea; color: #8a2f28; }
.pill { display: inline-block; font-size: var(--step--1); padding: .1rem .5rem; border-radius: 99px; background: var(--paper); color: var(--muted); white-space: nowrap; }
.pill.ok { background: #e6f3ec; color: #1d5a3c; }
.pill.bad { background: #fbecea; color: #8a2f28; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.check { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.check input { margin-top: .25rem; accent-color: var(--sky); }
.radios { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.radios legend { font-weight: 500; font-size: var(--step--1); margin-bottom: .35rem; }
.radios .hint { margin-top: .1rem; }
.select.wide { max-width: 100%; width: 100%; padding-top: .6rem; padding-bottom: .6rem; }
.access-list { display: flex; flex-direction: column; }
.access { border-top: 1px solid var(--line); padding: .8rem 1.25rem; }
.access summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; cursor: pointer; font-weight: 500; }
.access[open] summary { margin-bottom: 1rem; }
.access .form { gap: .9rem; }
.row-actions { display: flex; gap: 1rem; align-items: center; }
.inline-form { display: inline; margin: 0; }
.access .inline-form { display: block; margin-top: .6rem; }
.btn-link { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--sky); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-link.danger { color: var(--loss); }
.token-box { background: var(--sheet); border: 2px solid var(--gold); border-radius: 10px; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.token-box h2 { font-size: var(--step-1); }
.token-box p { margin: 0; }
.token-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.token-row code { background: var(--paper); padding: .6rem .8rem; border-radius: 6px; font-size: .95rem; overflow-wrap: anywhere; min-width: 0; flex: 1; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .9em; }

/* --- Пустое состояние и ошибки --- */
.empty { background: var(--sheet); border: 1px dashed var(--line); border-radius: 10px; padding: 2.5rem; max-width: 40rem; }
.empty h2 { font-size: var(--step-2); margin-bottom: .5rem; }
.empty p { margin: .4rem 0; color: var(--muted); }
.empty code { background: var(--paper); padding: .1rem .35rem; border-radius: 4px; color: var(--ink); }

/* --- Вход --- */
.login-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100%; }
.login-side {
  background: var(--ink); color: #dfe7ec;
  padding: clamp(1.5rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  position: relative; overflow: hidden;
}
.login-side .brand { color: #fff; }
.login-claim { font: 600 clamp(1.8rem, 3.6vw, 2.9rem)/1.12 var(--f-display); color: #fff; max-width: 15ch; margin: 0; }
.login-claim + p { color: #9fb1bc; max-width: 38ch; margin: 1rem 0 0; }
.login-tape { display: flex; align-items: flex-end; gap: 5px; height: 110px; }
.login-tape span { flex: 1; background: var(--sky); border-radius: 2px 2px 0 0; opacity: .85; }
.login-tape span:last-child { background: var(--gold); opacity: 1; }
.login-main { display: grid; place-items: center; padding: 2rem 1.25rem; }
.login-form { width: 100%; max-width: 22rem; display: flex; flex-direction: column; gap: 1.1rem; }
.login-form h1 { font-size: var(--step-2); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 500; font-size: var(--step--1); }
.field input {
  font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 7px; background: var(--sheet); color: var(--ink);
}
.field input:focus-visible { border-color: var(--sky); outline: 2px solid var(--sky-soft); outline-offset: 0; }
.btn {
  appearance: none; border: 0; border-radius: 7px; background: var(--ink); color: #fff;
  font: 600 var(--step-0) var(--f-body); padding: .8rem 1rem; cursor: pointer;
}
.btn:hover { background: #2c3c47; }
.alert { background: #fbecea; color: #8a2f28; border-radius: 7px; padding: .7rem .85rem; font-size: var(--step--1); margin: 0; }
.hint { color: var(--muted); font-size: var(--step--1); margin: 0; }

/* --- Управленческие экраны: карточки показателей, графики, «Требует внимания» --- */
:root { --warn: #a35c00; --warn-soft: #fbefdc; --risk-soft: #f8e7e5; --gain-soft: #e1f0e8; --gold-bar: #a87f1f; }
.data-chip { font-size: var(--step--1); color: var(--muted); background: var(--sheet); border: 1px solid var(--line);
  border-radius: 99px; padding: .3rem .75rem; white-space: nowrap; }
.filterbar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.filterbar form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.filterbar label.inline { display: flex; align-items: center; gap: .4rem; font-size: var(--step--1); color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .9rem; }
.kpi { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: .3rem; color: var(--ink); text-decoration: none; min-width: 0; }
a.kpi:hover { border-color: #aebbc4; box-shadow: 0 1px 0 rgba(30,42,51,.04), 0 4px 14px rgba(30,42,51,.06); }
.kpi .label { font-size: var(--step--1); color: var(--muted); }
.kpi .value { font: 600 clamp(1.2rem, 1.55vw, 1.55rem)/1.2 var(--f-display); letter-spacing: -0.02em; }
.kpis.small .kpi { padding: .8rem 1rem; }
.kpis.small .kpi .value { font: 600 var(--step-1)/1.25 var(--f-body); }
.kpi .note { font-size: var(--step--1); color: var(--muted); }
.kpi .need { font-size: var(--step--1); color: var(--warn); }
.kpi.placeholder { background: #f7f9fa; border-style: dashed; border-color: #aab7bf; }
.kpi.placeholder .value { color: var(--muted); }
.chg { font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.chg.good { color: var(--gain); }
.chg.bad { color: var(--loss); }
.chg.warn { color: var(--warn); }
.chg small { font-weight: 400; color: var(--muted); }
.value.neg { color: var(--loss); }
.row2 { display: flex; flex-wrap: wrap; gap: .9rem; align-items: stretch; }
.row2 > * { flex: 1 1 22rem; min-width: 0; }
.row2 > .wide { flex: 2 1 32rem; }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem 1.1rem;
  display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.card > h2 { font-size: var(--step-1); font-weight: 600; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; }
.card-head h2 { font-size: var(--step-1); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); font-size: var(--step--1); }
.legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 400 11px var(--f-body); fill: var(--muted); }
abbr[title] { text-decoration: none; cursor: help; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart a:hover rect { opacity: .8; }
.chart .partial { opacity: .5; }
.card .hint, .card .foot { font-size: var(--step--1); color: var(--muted); margin: 0; }
.attn { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.attn li { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .75rem; border-radius: 9px; background: var(--paper); }
.attn li.risk { background: var(--risk-soft); }
.attn li.warn, .attn li.data { background: var(--warn-soft); }
.attn li.good { background: var(--gain-soft); }
.tag { flex: none; font-size: 11px; font-weight: 600; border-radius: 6px; padding: .1rem .45rem; margin-top: .15rem; white-space: nowrap; }
.tag.risk { background: var(--loss); color: #fff; }
.tag.warn, .tag.data { background: #e9b44c; color: var(--ink); }
.tag.good { background: var(--gain); color: #fff; }
.attn a { white-space: nowrap; }
.hbars { display: flex; flex-direction: column; gap: .65rem; }
.hbar { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; color: var(--ink); }
.hbar .top { display: flex; justify-content: space-between; gap: .75rem; }
.hbar .top b { font-weight: 600; white-space: nowrap; }
.hbar .track { height: 9px; border-radius: 5px; background: var(--paper); }
.hbar .fill { height: 9px; border-radius: 5px; background: var(--gold-bar); }
a.hbar:hover .top span:first-child { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.card table th, .card table td { padding-left: 0; padding-right: .7rem; }
.card table td:first-child, .card table th:first-child { min-width: 7rem; }
.card table th:last-child, .card table td:last-child { padding-right: 0; }
.card .scroll { overflow-x: auto; }
.good-t { color: var(--gain); } .bad-t { color: var(--loss); } .warn-t { color: var(--warn); }
.nav a .soon { float: right; font-size: 11px; color: #9fb1bc; border: 1px solid #4a5a66; border-radius: 6px; padding: 0 .35rem; margin-left: .4rem; }
.need-box { background: var(--sheet); border: 1px dashed #aab7bf; border-radius: 12px; padding: 1.5rem 1.75rem; max-width: 52rem;
  display: flex; flex-direction: column; gap: .6rem; }
.need-box h2 { font-size: var(--step-1); }
.need-box p, .need-box li { color: var(--muted); margin: 0; }
.need-box ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .3rem; }
.need-box code { background: var(--paper); padding: .05rem .35rem; border-radius: 4px; color: var(--ink); }

/* --- Узкие экраны --- */
@media (max-width: 900px) {
  .columns { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; background: var(--paper); }
  .nav { flex-wrap: wrap; }
  .nav a .soon { display: none; }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .75rem 1rem; }
  .nav { flex-direction: row; }
  .rail-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .rail-foot .who { display: none; }
  .btn-ghost { width: auto; }
  .metric { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .metric:first-child { border-top: 0; }
  .login-body { grid-template-columns: 1fr; }
  .login-side { padding: 1.25rem 1rem; }
  .login-claim, .login-claim + p, .login-tape { display: none; }
  .bars { height: 140px; }
  .axis span:nth-child(2) { display: none; }
}
@media (max-width: 560px) {
  th, td { padding: .55rem .75rem; }
  .panel h2 { padding: .9rem .75rem .4rem; }
  .opt { display: none; }
  td .share { max-width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .day .bar { transition: background-color .15s; }
}
