/* Алдеон · Финанси — визуална система
   Идея: контролен пулт на усилвател. Тихи графитени панели, точни таблици
   и един ярък елемент – кехлибарен „касов метър“ на таблото. */
:root {
  --ink: #18202B;
  --ink-2: #3A4757;
  --muted: #5E6B7A;
  --slate: #1F2733;
  --slate-2: #2A3442;
  --slate-3: #3A4656;
  --paper: #F3F5F7;
  --panel: #FFFFFF;
  --line: #DCE1E7;
  --line-2: #EBEEF2;
  --amber: #E5A019;
  --amber-soft: #FCF1DA;
  --amber-ink: #7A4E00;
  --pos: #23805A;
  --pos-soft: #E3F2EA;
  --neg: #C23B22;
  --neg-soft: #FBE7E2;
  --info: #2F6FB0;
  --info-soft: #E5EEF8;
  --input: #FFFBEF;
  --input-line: #E8D9B0;
  --r-s: 4px;
  --r-m: 8px;
  --font: 'Golos Text', 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Unbounded', 'Golos Text', 'Segoe UI', Arial, sans-serif;
  --side: 248px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--info); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.num, td.n, th.n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--muted); }
.pos { color: var(--pos); } .neg { color: var(--neg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- boot / auth */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.boot-mark { display: flex; gap: 4px; align-items: flex-end; height: 34px; }
.boot-mark i { width: 7px; background: var(--amber); border-radius: 2px; animation: vu 1.1s ease-in-out infinite; }
.boot-mark i:nth-child(2) { animation-delay: .12s } .boot-mark i:nth-child(3) { animation-delay: .24s }
.boot-mark i:nth-child(4) { animation-delay: .36s } .boot-mark i:nth-child(5) { animation-delay: .48s }
@keyframes vu { 0%, 100% { height: 8px } 50% { height: 34px } }
@media (prefers-reduced-motion: reduce) { .boot-mark i { animation: none; height: 20px } }

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 520px) 1fr; }
.auth-panel { background: var(--panel); padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-panel h1 { font: 600 26px/1.2 var(--display); margin: 28px 0 6px; letter-spacing: -.01em; }
.auth-panel p { color: var(--muted); margin: 0 0 24px; max-width: 42ch; }
.auth-side { background: var(--slate); color: #C9D2DD; padding: 56px; display: flex; align-items: flex-end; position: relative; overflow: hidden; }
.auth-side blockquote { margin: 0; max-width: 34ch; font: 500 22px/1.35 var(--display); color: #F4F6F8; }
.auth-side small { display: block; margin-top: 14px; color: #8C99A8; font: 400 13px var(--font); }
.auth-eq { position: absolute; inset: 56px 56px auto auto; display: flex; gap: 6px; align-items: flex-end; height: 160px; }
.auth-eq i { width: 14px; border-radius: 2px; background: linear-gradient(to top, var(--amber) 0 70%, #F4F6F8 70% 100%); opacity: .9; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-weight: 500; font-size: 13px; }
.form input, .form select { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; background: #fff; }
.form .err { color: var(--neg); font-size: 13px; min-height: 18px; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr } .auth-side { display: none } .auth-panel { padding: 40px 24px } }

.logo { display: flex; align-items: center; gap: 10px; font: 600 15px var(--display); letter-spacing: .01em; }
.logo-mark { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.logo-mark i { width: 5px; border-radius: 1px; background: var(--amber); }
.logo-mark i:nth-child(1) { height: 9px } .logo-mark i:nth-child(2) { height: 15px } .logo-mark i:nth-child(3) { height: 22px; background: currentColor }

/* ---------- layout */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; background: linear-gradient(to right, var(--slate) var(--side), transparent var(--side)); }
.side { background: var(--slate); color: #C9D2DD; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side .logo { color: #F4F6F8; padding: 20px 20px 18px; }
.nav { padding: 6px 10px 20px; flex: 1; }
.nav h6 { margin: 18px 10px 6px; font: 500 12px var(--font); color: #7F8C9B; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-s); color: #C9D2DD; text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--slate-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--slate-3); color: #fff; box-shadow: inset 3px 0 0 var(--amber); }
.nav a .badge { margin-left: auto; }
.nav svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.side-foot { padding: 14px 20px; border-top: 1px solid var(--slate-2); font-size: 12px; color: #8C99A8; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(243, 245, 247, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 10px 28px; min-height: 58px; }
.top .grow { flex: 1; }
.top .burger { display: none; }
.content { padding: 24px 28px 64px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font: 600 22px/1.25 var(--display); margin: 0; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 78ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .side { position: fixed; z-index: 50; left: 0; width: var(--side); transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .top .burger { display: inline-flex; }
  .content, .top { padding-left: 16px; padding-right: 16px; }
}

/* ---------- controls */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-s);
  padding: 7px 12px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #B9C2CD; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--slate); color: #fff; border-color: var(--slate); }
.btn.primary:hover { background: var(--slate-3); }
.btn.amber { background: var(--amber); border-color: var(--amber); color: #2B1D00; }
.btn.danger { color: var(--neg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 4px 9px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; }
.icon-btn { border: 0; background: transparent; padding: 5px; border-radius: var(--r-s); cursor: pointer; color: var(--muted); display: inline-flex; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
.select, .field { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-s); padding: 6px 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--panel); padding: 2px; }
.seg button { border: 0; background: transparent; padding: 4px 10px; border-radius: 3px; cursor: pointer; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--slate); color: #fff; }
.status { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); }
.status.saving i { background: var(--amber); } .status.error i { background: var(--neg); } .status.dirty i { background: var(--amber); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: var(--line-2); color: var(--ink-2); }
.badge.critical { background: var(--neg); color: #fff; } .badge.warning { background: var(--amber-soft); color: var(--amber-ink); }
.badge.opportunity { background: var(--pos-soft); color: var(--pos); } .badge.info { background: var(--info-soft); color: var(--info); }
.user-menu { position: relative; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--slate); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; border: 0; cursor: pointer; }
.menu { position: absolute; right: 0; top: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); min-width: 220px;
  box-shadow: 0 12px 32px rgba(24, 32, 43, .14); padding: 6px; z-index: 40; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: var(--r-s); cursor: pointer; color: var(--ink); text-decoration: none; }
.menu a:hover, .menu button:hover { background: var(--paper); }
.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; font-size: 13px; }

/* ---------- panels */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
@media (max-width: 1100px) { .g2, .g3, .g-main { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); min-width: 0; }
.panel > header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.panel > header h2 { font: 600 15px/1.3 var(--font); margin: 0; }
.panel > header .tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.panel .body { padding: 14px 16px 16px; }
.panel .body.flush { padding: 10px 0 0; }
.panel .hint { color: var(--muted); font-size: 13px; margin: 4px 16px 0; }
.section-title { font: 600 15px var(--font); margin: 28px 0 10px; }

/* ---------- KPI strip */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); }
.kpi { padding: 14px 16px; border-left: 1px solid var(--line-2); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi .label { font-size: 12.5px; color: var(--muted); }
.kpi .value { font: 600 21px/1.25 var(--display); margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 1250px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpi:nth-child(4) { border-left: 0; } .kpi:nth-child(n+4) { border-top: 1px solid var(--line-2); } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi { border-left: 0 !important; border-top: 1px solid var(--line-2); } }

/* ---------- касов метър (сигнатурен елемент) */
.meter { background: var(--slate); color: #C9D2DD; border-radius: var(--r-m); padding: 18px 20px 14px; }
.meter-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.meter-head h2 { font: 600 15px var(--font); color: #F4F6F8; margin: 0; }
.meter-head .legend { margin-left: auto; display: flex; gap: 14px; font-size: 12px; }
.meter-head .legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--amber); }
.meter-head .legend .low::before { background: #E2563B; } .meter-head .legend .buf::before { background: transparent; border-top: 2px dashed #C9D2DD; height: 0; width: 14px; vertical-align: 3px; border-radius: 0; }
.meter-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; margin-top: 16px; position: relative; }
.meter-col { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; text-align: center; min-width: 0; }
.meter-col .v { font: 500 11.5px var(--font); color: #F4F6F8; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter-col .m { font-size: 11.5px; color: #8C99A8; }
.leds { display: flex; flex-direction: column-reverse; gap: 3px; height: 150px; position: relative; }
.leds .bufline { position: absolute; left: -6px; right: -6px; border-top: 2px dashed rgba(201, 210, 221, .75); pointer-events: none; }
.leds i { flex: 1; border-radius: 2px; background: var(--slate-2); }
.leds i.on { background: var(--amber); } .leds i.on.hot { background: #F4C35A; }
.leds.low i.on { background: #E2563B; }
.meter-col.now .m { color: var(--amber); font-weight: 600; }
.meter-foot { display: flex; gap: 22px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--slate-2); font-size: 13px; flex-wrap: wrap; }
.meter-foot b { color: #F4F6F8; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .meter-cols { gap: 4px; } .meter-col .v { display: none; } .leds { height: 110px; } }

/* ---------- tables */
.table-wrap { overflow: auto; max-width: 100%; }
.table-wrap.tall { max-height: 70vh; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.t th, .t td { padding: 6px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t thead th { position: sticky; top: 0; z-index: 2; background: #F7F8FA; color: var(--ink-2); font-weight: 600; font-size: 12px; text-align: left;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
.t thead th.n { text-align: right; }
.t th.sticky, .t td.sticky { position: sticky; left: 0; z-index: 1; background: var(--panel); box-shadow: 1px 0 0 var(--line-2); white-space: nowrap; min-width: 230px; }
.t thead th.sticky { z-index: 3; background: #F7F8FA; }
.t tr.total td { font-weight: 600; background: #F7F8FA; border-top: 1px solid var(--line); }
.t tr.total td.sticky { background: #F7F8FA; }
.t tr.strong td { font-weight: 600; }
.t tr.sep td { background: var(--paper); font-weight: 600; color: var(--ink-2); font-size: 12px; }
.t tr.sep td.sticky { background: var(--paper); }
.t tbody tr:hover td { background: #FAFBFC; }
.t tbody tr:hover td.sticky { background: #FAFBFC; }
.t td.wrap { white-space: normal; min-width: 220px; }
.t .indent { padding-left: 24px; }
.t td.cell-risk { background: var(--neg-soft) !important; color: var(--neg); font-weight: 600; }
.t td.cell-carry { background: var(--amber-soft) !important; }
.t td.cell-ok { color: var(--pos); }

/* editable grid */
.eg td { padding: 0; height: 34px; }
.eg td.ro { padding: 6px 10px; color: var(--ink-2); background: #FBFBFC; }
.eg td.act { width: 64px; padding: 0 4px; text-align: right; white-space: nowrap; }
.eg input, .eg select { width: 100%; height: 33px; border: 0; background: transparent; padding: 0 10px; border-radius: 0; min-width: 0; }
.eg input.n { text-align: right; font-variant-numeric: tabular-nums; }
.eg td.edit { background: var(--input); box-shadow: inset 0 0 0 1px transparent; }
.eg td.edit:focus-within { box-shadow: inset 0 0 0 2px var(--amber); background: #fff; }
.eg td.edit input:focus, .eg td.edit select:focus { outline: none; }
.eg td.chk { text-align: center; }
.eg td.chk input { width: 16px; height: 16px; accent-color: var(--slate); }
.eg .unit { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.eg-foot { display: flex; gap: 10px; align-items: center; padding: 10px 16px 14px; flex-wrap: wrap; }
.eg-foot .muted { font-size: 12.5px; }
.readonly .eg td.edit { background: transparent; }
input.invalid { color: var(--neg); }

/* ---------- advice */
.advice { display: grid; gap: 10px; }
.adv { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--r-m); padding: 12px 16px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: start; }
.adv.critical { border-left-color: var(--neg); } .adv.warning { border-left-color: var(--amber); }
.adv.opportunity { border-left-color: var(--pos); } .adv.info { border-left-color: var(--info); }
.adv h3 { margin: 0; font-size: 14.5px; font-weight: 600; }
.adv p { margin: 2px 0 0; color: var(--ink-2); max-width: 90ch; grid-column: 1; }
.adv .meta { display: flex; gap: 8px; align-items: center; margin-bottom: 3px; font-size: 12px; color: var(--muted); }
.adv .impact { text-align: right; grid-row: 1 / span 3; grid-column: 2; }
.adv .impact b { display: block; font: 600 17px var(--display); font-variant-numeric: tabular-nums; }
.adv .impact small { color: var(--muted); font-size: 12px; }
.adv .go { grid-column: 1 / -1; margin-top: 8px; display: flex; gap: 8px; align-items: center; }
.adv .evidence { grid-column: 1; display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 8px 0 0; font-size: 13px; }
.adv .evidence dt { color: var(--muted); } .adv .evidence dd { margin: 0; font-variant-numeric: tabular-nums; }
.adv .steps { grid-column: 1; margin: 8px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--ink); }
.adv .steps li { margin: 2px 0; }
.adv > p.muted { grid-column: 1; }
.kind { display: block; font-size: 11px; margin-top: 2px; color: var(--muted); }
.kind.model { color: var(--pos); font-weight: 600; }
td .kind { display: inline; }
details.panel > summary::-webkit-details-marker { color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 4px 12px; cursor: pointer; font-weight: 500; font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--slate); color: #fff; border-color: var(--slate); }

/* checks */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.checks li:last-child { border-bottom: 0; }
.checks .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; margin-top: 1px; }
.checks .ok .dot { background: var(--pos); } .checks .bad .dot { background: var(--neg); }
.checks small { display: block; color: var(--muted); }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }

/* forms in panels */
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 18px; }
.fld { display: grid; gap: 4px; align-content: start; }
.fld > span { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.fld small { color: var(--muted); font-size: 12px; }
.fld input, .fld select, .fld textarea { border: 1px solid var(--input-line); background: var(--input); border-radius: var(--r-s); padding: 7px 10px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; background: #fff; }
.fld input.n { text-align: right; font-variant-numeric: tabular-nums; }
.season { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; }
.season .bar { background: var(--line-2); border-radius: 3px; height: 70px; position: relative; overflow: hidden; }
.season .bar i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--amber); }
.season input { width: 100%; text-align: center; border: 1px solid var(--input-line); background: var(--input); border-radius: var(--r-s); padding: 4px 2px; }
.season label { display: grid; gap: 4px; text-align: center; font-size: 12px; color: var(--muted); }

/* modal & toast */
#modal-root .backdrop { position: fixed; inset: 0; background: rgba(24, 32, 43, .45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: var(--panel); border-radius: 10px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.modal header { padding: 18px 20px 4px; } .modal header h2 { margin: 0; font: 600 17px var(--display); }
.modal .body { padding: 12px 20px; } .modal footer { padding: 12px 20px 18px; display: flex; justify-content: flex-end; gap: 8px; }
#toast-root { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 200; }
.toast { background: var(--slate); color: #fff; padding: 10px 14px; border-radius: var(--r-m); box-shadow: 0 10px 28px rgba(0, 0, 0, .2); max-width: 380px; font-size: 13.5px; }
.toast.error { background: var(--neg); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.note { background: var(--info-soft); color: #1E4B7A; border-radius: var(--r-m); padding: 10px 14px; font-size: 13px; }
.note.warn { background: var(--amber-soft); color: var(--amber-ink); }
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 220px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 13.5px; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.kv .big { font: 600 18px var(--display); }
.unit-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

@media print {
  .side, .top, .actions, .eg-foot, .tools, #toast-root { display: none !important; }
  .shell { display: block; } .content { padding: 0; max-width: none; }
  .panel { border: 0; break-inside: avoid; } .meter { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; }
}
@media (max-width: 640px) {
  .top { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .top .seg { order: 10; width: 100%; overflow-x: auto; }
  .top .seg button { flex: 1; white-space: nowrap; }
  .top .status span { display: none; }
  .top .select[data-plan] { max-width: 46vw; }
  .page-head h1 { font-size: 19px; }
}
