/*
  Кабинет Alow (app.alow.me). Облик и сетка перенесены с макетов «Кабинет Alow» как есть
  (раздел ниже «из макета»), значения сняты с токенов тёмной темы приложения. Свои дополнения
  кабинета (вход, окна поверх страницы, пустые состояния, загрузка) в конце файла.
*/
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("/assets/fonts/plex-mono-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("/assets/fonts/plex-mono-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("/assets/fonts/plex-mono-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("/assets/fonts/plex-mono-cyrillic-500.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

html, body { margin: 0; min-height: 100%; background: #141414; color-scheme: dark; }
body { min-height: 100vh; }
#app { min-height: 100vh; }

/* ── из макета ─────────────────────────────────────────────────────────────── */

.cab {
  --bg: #141414;
  --chrome: #171717;
  --s1: #1c1c1c;
  --s2: #1f1f1f;
  --s3: #252525;
  --sel: #222222;
  --line-subtle: #232323;
  --line: #303030;
  --line-strong: #444444;
  --field-line: #858585;
  --fg: #efefef;
  --fg2: #a6a6a6;
  --muted: #8c8c8c;
  --disabled: #5c5c5c;
  --accent: #d4d4d4;
  --on-accent: #141414;
  --ok: #86d1b0;
  --ok-soft: #162622;
  --ok-line: #1e8f6f;
  --wait: #cbb099;
  --danger: #d67a92;
  --danger-line: #7a2540;
  --danger-action: #b9506a;
  --ultra: #b4a2f6;
  --cream: #f6f1e7;
  --brand-ground: #26262a;
  --card: linear-gradient(117deg, #1c1c1c, #1a1a1a);
  --shadow-dialog: 0 28px 80px rgb(0 0 0 / 0.53), 0 2px 8px rgb(0 0 0 / 0.3),
    inset 0 1px 0 rgb(255 255 255 / 0.04);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  container-type: inline-size;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font: 400 13px/20px var(--ui);
  -webkit-font-smoothing: antialiased;
}
.cab *,
.cab *::before,
.cab *::after {
  box-sizing: border-box;
}
.cab a {
  color: inherit;
}
.cab :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cab .ic {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cab .ic.sm {
  width: 14px;
  height: 14px;
}
.cab .num {
  font-variant-numeric: tabular-nums;
}
.cab .mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 24px;
}
.cab .muted {
  color: var(--muted);
}
.cab .fg2 {
  color: var(--fg2);
}
.cab .ultra {
  color: var(--ultra);
}

/* шапка сайта */
.cab .top {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 max(24px, calc((100% - 1200px) / 2));
  background: var(--chrome);
  box-shadow: inset 0 -1px 0 var(--line);
}
.cab .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}
.cab .logo svg {
  display: block;
  height: 21px;
  width: auto;
}
.cab .logo span {
  color: var(--muted);
  font-size: 13px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.cab .top nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.cab .tl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--fg2);
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}
.cab .tl:hover {
  background: var(--s3);
  color: var(--fg);
}
.cab .ava {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-left: 4px;
}
.cab .ava svg {
  width: 24px;
  height: 21px;
}

/* сайдбар и содержимое */
.cab .wrap {
  max-width: 1248px;
  margin: 0 auto;
  padding: 32px 24px 96px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.cab .side {
  grid-column: span 3;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cab .main {
  grid-column: span 9;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cab .g9 {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.cab .s4 {
  grid-column: span 4;
  min-width: 0;
}
.cab .s5 {
  grid-column: span 5;
  min-width: 0;
}
.cab .stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cab .stack > :last-child {
  flex: 1;
}
.cab .who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cab .who .tile {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
}
.cab .who .tile svg {
  width: 24px;
  height: 21px;
}
.cab .who b {
  display: block;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.018em;
}
.cab .who .line2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.cab .nav {
  display: flex;
  flex-direction: column;
}
.cab .nav a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid transparent;
  color: var(--fg2);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}
.cab .nav a:hover {
  background: var(--s1);
  color: var(--fg);
}
.cab .nav a[aria-current="page"] {
  background: var(--sel);
  border-color: var(--line);
  color: var(--fg);
  font-weight: 570;
}
.cab .nav .rip {
  position: absolute;
  left: 0;
  top: 0;
  width: 224px;
  height: 32px;
  z-index: -1;
  fill: #b8b8b8;
  fill-opacity: 0.19;
}
.cab .nav-sep {
  height: 16px;
  background: linear-gradient(var(--line-subtle), var(--line-subtle)) center / calc(100% - 24px) 1px
    no-repeat;
}

/* заголовок страницы */
.cab .head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cab .head h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 650;
  letter-spacing: -0.038em;
}
.cab .head p {
  margin: 4px 0 0;
  color: var(--fg2);
  font-size: 14px;
  line-height: 20px;
}

/* карточки и строки */
.cab .card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.cab .card h2 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 650;
  letter-spacing: -0.018em;
}
.cab .card .sub {
  margin: 0;
  color: var(--fg2);
  font-size: 13px;
  line-height: 24px;
}
.cab .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cab .card-head > div:first-child {
  flex: 1 1 320px;
  min-width: 0;
}
.cab .rows {
  display: flex;
  flex-direction: column;
}
.cab .row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  box-shadow: inset 0 1px 0 var(--line-subtle);
  line-height: 20px;
}
.cab .row:first-child {
  box-shadow: none;
}
.cab .row .k {
  flex: 0 0 160px;
  color: var(--fg2);
}
.cab .row .v {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}
.cab .row .act {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.cab .grid {
  display: grid;
  gap: 16px;
}
.cab .g-2-1-1 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}
.cab .g-1-1 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* контролы */
.cab .btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  font: 500 13px/1 var(--ui);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
.cab .btn.sm {
  height: 28px;
  padding: 0 10px;
}
.cab .btn.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.cab .btn.primary:hover {
  background: #bcbcbc;
}
.cab .btn.secondary {
  background: var(--s1);
  border-color: var(--line);
  color: var(--fg);
}
.cab .btn.secondary:hover {
  background: var(--s3);
  border-color: var(--line-strong);
}
.cab .btn.ghost {
  background: transparent;
  color: var(--fg2);
}
.cab .btn.ghost:hover {
  background: var(--s3);
  color: var(--fg);
}
.cab .btn.danger {
  background: var(--s1);
  border-color: var(--danger-line);
  color: var(--danger-action);
}
.cab .btn.danger:hover {
  background: #2b1d22;
}
.cab .btn.icon {
  width: 32px;
  padding: 0;
}
.cab .btn.sm.icon {
  width: 28px;
}
.cab .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cab .field label {
  font-size: 12px;
  color: var(--fg2);
}
.cab .input {
  height: 32px;
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--field-line);
  background: var(--bg);
  color: var(--fg);
  font: 400 14px var(--ui);
}
.cab .input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(212 212 212 / 0.14);
}
.cab .input::placeholder {
  color: var(--muted);
}
.cab .seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.cab .seg button {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--fg2);
  font: 500 12px var(--ui);
  cursor: pointer;
}
.cab .seg button[aria-pressed="true"] {
  background: var(--s3);
  color: var(--fg);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.28), inset 0 1px 0 rgb(255 255 255 / 0.03);
}
.cab .switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 32px;
  height: 18px;
  margin: 0;
  flex: none;
  border-radius: 9px;
  background: var(--s3);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background-color 0.15s var(--ease);
}
.cab .switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 6px;
  background: var(--muted);
  transition: translate 0.15s var(--ease);
}
.cab .switch:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.cab .switch:checked::after {
  translate: 14px 0;
  background: var(--bg);
}
.cab .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--fg2);
  font: 500 11px/1 var(--ui);
  white-space: nowrap;
}
.cab .badge.ok {
  color: var(--ok);
  background: var(--ok-soft);
  border-color: var(--ok-line);
}
.cab .dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
  flex: none;
}
.cab .meter {
  display: flex;
  gap: 2px;
}
.cab .meter i {
  flex: 1;
  height: 8px;
  background: var(--s3);
}
.cab .meter i.on {
  background: var(--accent);
}
.cab .meter i.bonus {
  background: #5c5c5c;
}
.cab .stat {
  font-size: 32px;
  line-height: 40px;
  font-weight: 680;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.cab .cap {
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
}

/* таблицы */
/* Широкое содержимое листается вбок; полосы прокрутки нет, чтобы не сбивать шаг сетки. */
.cab .tbox {
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: none;
}
.cab .tbox::-webkit-scrollbar {
  display: none;
}
.cab table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.cab th {
  text-align: left;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  padding: 0 16px 8px 0;
  white-space: nowrap;
}
.cab td {
  height: 56px;
  padding: 0 16px 0 0;
  line-height: 20px;
  box-shadow: inset 0 1px 0 var(--line-subtle);
  white-space: nowrap;
  vertical-align: middle;
}
.cab th.r,
.cab td.r {
  text-align: right;
  padding-right: 0;
}
/* Действие в правой колонке таблицы ссылкой без полей: текст стоит по краю колонки, как
   заголовок над ним. */
.cab td.r > .btn.ghost.sm {
  padding: 0;
  background: none;
}
.cab td.r > .btn.ghost.sm:hover {
  color: var(--fg);
  background: none;
}

/* пиксельные графики */
.cab .heat {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 12px);
  grid-auto-columns: 12px;
  gap: 4px;
}
.cab .heat i {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.08);
}
.cab .heat i.l1 {
  background: #3a3a3a;
}
.cab .heat i.l2 {
  background: #5c5c5c;
}
.cab .heat i.l3 {
  background: #999999;
}
.cab .heat i.l4 {
  background: #d4d4d4;
}
.cab .heat i.future {
  background: transparent;
}
.cab .months {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 12px;
  gap: 4px;
  font-size: 11px;
  line-height: 16px;
  color: var(--muted);
  height: 16px;
}
.cab .months span {
  white-space: nowrap;
}
.cab .chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 168px;
  padding-left: 36px;
}
.cab .chart .gl {
  position: absolute;
  left: 36px;
  right: 0;
  height: 1px;
  background: var(--line-subtle);
}
.cab .chart .gl span {
  position: absolute;
  right: calc(100% + 8px);
  top: -7px;
  font: 11px var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.cab .chart .col {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}
.cab .chart .col i {
  height: 4px;
  background: #a6a6a6;
  opacity: 0.18;
}
.cab .chart .col i.d0 {
  opacity: 0.85;
}
.cab .chart .col i.d1 {
  opacity: 0.5;
}
.cab .chart .col i.d2 {
  opacity: 0.3;
}
.cab .chart .col.today i {
  background: #efefef;
}
.cab .axis {
  display: flex;
  justify-content: space-between;
  padding-left: 36px;
  font: 11px/16px var(--mono);
  color: var(--muted);
}
.cab .bar-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cab .bar-list .it {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: baseline;
  line-height: 20px;
}
.cab .bar-list .track {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--s3);
}
.cab .bar-list .track i {
  display: block;
  height: 100%;
  background: #8c8c8c;
}
.cab .bar-list .it.lead .track i {
  background: var(--accent);
}

/* окна вопроса */
.cab-stage {
  position: relative;
  width: 1440px;
  height: 900px;
  overflow: hidden;
  background: #141414;
}
.cab-stage .scrim {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(0 0 0 / 0.6);
  backdrop-filter: blur(5px);
}
.cab .dlg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 480px;
  max-width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--chrome);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-dialog);
}
.cab .dlg h2 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 650;
  letter-spacing: -0.018em;
}
.cab .dlg p {
  margin: 0;
  color: var(--fg2);
  font-size: 13px;
}
.cab .dlg .acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.cab .dlg .corner {
  position: absolute;
  right: 0;
  top: 0;
  width: 480px;
  height: 200px;
  z-index: -1;
}
.cab .conseq {
  margin: 0;
  padding: 12px 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 11px;
  background: var(--s1);
}
.cab .conseq li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
}
.cab .conseq li .ic {
  margin-top: 1px;
  color: var(--muted);
}
.cab .conseq li.keep .ic {
  color: var(--ok);
}

/* средний экран: сайдбар над страницей, меню строкой */
@container (max-width: 960px) {
  .cab .side,
  .cab .main {
    grid-column: 1 / -1;
  }
  .cab .side {
    gap: 16px;
  }
  .cab .nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    scrollbar-width: none;
  }
  .cab .nav::-webkit-scrollbar {
    display: none;
  }
  .cab .nav a {
    flex: none;
  }
  .cab .nav-sep,
  .cab .side .extra {
    display: none;
  }
}

/* узкий экран: колонки друг под другом, кнопки под палец */
@container (max-width: 720px) {
  .cab .top {
    padding: 0 16px;
  }
  .cab .top .tl-text,
  .cab .logo span {
    display: none;
  }
  .cab .wrap {
    padding: 16px 16px 48px;
    gap: 16px;
  }
  .cab .nav a {
    height: 40px;
  }
  .cab .g9 > * {
    grid-column: 1 / -1;
  }
  /* Пропуск на узком экране: высота на шаге сетки вместо пропорции. */
  .cab .pass {
    aspect-ratio: auto !important;
    height: 464px;
  }
  .cab .g9,
  .cab .stack {
    gap: 16px;
  }
  .cab .steps3 {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .cab .card {
    padding: 16px;
  }
  .cab .row {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .cab .row .k {
    flex-basis: 100%;
  }
  .cab .btn {
    height: 40px;
  }
  .cab .btn.sm {
    height: 36px;
  }
}

/* ── кабинет: то, что в макете было встроенными стилями, и свои состояния ──────── */
.cab [hidden] { display: none !important; }
.cab .main:focus { outline: none; }
.cab .loading, .cab .empty { margin: 0; color: var(--muted); font-size: 13px; line-height: 24px; }
.cab .error-line { margin: 0; padding: 8px 12px; border-radius: 7px; background: #351922; color: var(--danger); font-size: 13px; line-height: 20px; }
.cab .btn[disabled], .cab .switch[disabled] { opacity: 0.5; pointer-events: none; }
.cab .btn.tall, .cab .input.tall { height: 40px; }
.cab .btn.tall { padding: 0 16px; font-size: 14px; }
.cab .mono-14 { font-family: var(--mono); font-size: 14px; }
.cab .mono-12 { font-family: var(--mono); font-size: 12px; }
.cab .split { display: flex; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; }
.cab .split-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cab .split-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: auto; }
.cab .split-center { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cab .stat-24 { font-size: 24px; line-height: 32px; }
.cab .plan-stat { font-size: 24px; line-height: 32px; letter-spacing: -0.038em; font-weight: 650; }
.cab .plan-name { font-weight: 650; font-size: 14px; }

/* вход */
.cab .login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.cab .login .dlg { width: 400px; }
.cab .login-logo { color: var(--cream); }
.cab .login-logo svg { display: block; height: 21px; width: auto; }
.cab .login-lang { display: flex; justify-content: flex-end; margin: -8px -10px -8px 0; }

/* окна поверх страницы */
.cab .scrim { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / 0.6); backdrop-filter: blur(5px); }
.cab .scrim .dlg { max-height: calc(100vh - 32px); overflow: auto; }
.cab .toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 60; padding: 8px 12px; border-radius: 7px; background: var(--s3); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-strong), 0 8px 24px rgb(0 0 0 / 0.4); font-size: 13px; line-height: 20px; }
.cab .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cab .chip { height: 32px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line); background: var(--s1); color: var(--fg2); font: 500 13px var(--ui); cursor: pointer; }
.cab .chip:hover { background: var(--s3); color: var(--fg); }
.cab .chip[aria-pressed="true"] { background: var(--sel); border-color: var(--line-strong); color: var(--fg); }
.cab .key-label { font-size: 12px; color: var(--fg2); }
.cab .key-row { display: flex; gap: 8px; align-items: stretch; }
.cab .key-out { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg); font: 500 13px/20px var(--mono); letter-spacing: 0.02em; color: var(--fg); overflow-wrap: anywhere; user-select: all; }
.cab .hint-line { display: flex; gap: 8px; align-items: flex-start; }

/* профиль */
.cab .pass { position: relative; width: 100%; aspect-ratio: 384 / 496; padding: 24px; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(160deg, #191919, #141414 70%); box-shadow: 0 30px 80px rgb(0 0 0 / 0.53), inset 0 1px 0 rgb(255 255 255 / 0.05); color: var(--fg); }
.cab .pass-halo { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.cab .pass-top { position: relative; display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.cab .pass-no { color: #c4c4c4; font-family: var(--ui); letter-spacing: 0; }
.cab .pass-moth { position: absolute; left: calc(50% - 72px); top: 104px; width: 144px; height: 126px; }
.cab .pass-foot { position: relative; margin-top: auto; display: flex; flex-direction: column; }
.cab .pass-name { font-size: 20px; line-height: 24px; font-weight: 650; letter-spacing: -0.026em; overflow-wrap: anywhere; }
.cab .pass-about { margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--fg2); }
.cab .pass-since { margin-top: 16px; font: 12px/16px var(--mono); color: var(--muted); }
.cab .pass-acts { display: flex; gap: 8px; order: 3; }
.cab .acc { order: 2; }
.cab .acc-save { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; }
.cab .row .v .input { max-width: 320px; }
.cab .device { display: flex; align-items: center; gap: 12px; }
.cab .device-ico { width: 32px; height: 32px; border-radius: 7px; background: var(--s3); display: grid; place-items: center; color: var(--fg2); flex: none; }
.cab .device-ico.app { background: var(--brand-ground); }

/* тариф */
.cab .pay-row { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.cab .pay-ico { width: 44px; height: 32px; border-radius: 7px; background: var(--s3); border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg2); flex: none; }

/* ключи */
.cab .steps3 { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; line-height: 24px; }
.cab .steps3 li { display: flex; gap: 12px; align-items: flex-start; }
.cab .step-n { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg2); flex: none; }
.cab .key-tail { font-family: var(--mono); font-size: 12px; color: var(--fg2); }
.cab .last { display: inline-flex; align-items: center; gap: 8px; }

/* расход */
.cab .heat-wrap { display: flex; flex-direction: column; gap: 12px; width: max-content; }
.cab .heat-legend { display: flex; align-items: center; gap: 8px; justify-content: flex-end; height: 16px; line-height: 16px; }

/* загрузки */
.cab .dl-hero { padding: 32px; gap: 24px; }
.cab .dl-corner { position: absolute; right: 0; top: 0; width: 560px; height: 220px; z-index: -1; }
.cab .dl-app { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.cab .app-icon { width: 96px; height: 96px; border-radius: 22px; background: var(--brand-ground); border: 1px solid #3a3a3a; box-shadow: 0 1px 1px rgb(0 0 0 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.06); display: grid; place-items: center; flex: none; }
.cab .dl-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cab .dl-meta h2 { font-size: 24px; line-height: 32px; letter-spacing: -0.038em; }
.cab .dl-req { font-size: 14px; line-height: 24px; }
.cab .dl-ver { font: 12px/24px var(--mono); color: var(--muted); }
.cab .dl-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cab .dl-sha { display: flex; align-items: center; gap: 12px; padding-top: 16px; box-shadow: inset 0 1px 0 var(--line-subtle); flex-wrap: wrap; }
.cab .sha { font: 12px/20px var(--mono); color: var(--fg2); overflow-wrap: anywhere; min-width: 0; }
.cab .need, .cab .notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; line-height: 24px; }
.cab .need li { display: flex; gap: 10px; }
.cab .notes { max-width: 720px; }
.cab .notes li { display: flex; gap: 12px; }

@container (max-width: 720px) {
  .cab .steps3 { grid-template-columns: minmax(0, 1fr); }
  .cab .dl-hero { padding: 16px; }
  .cab .pass { aspect-ratio: auto; height: 464px; }
}
@media (prefers-reduced-motion: reduce) {
  .cab * { transition: none !important; }
}
