:root {
  /* Fixed dark palette. The UI is dark-only — surfaces and gradients are
     hardcoded dark, so we must NOT inherit the phone's Telegram theme colors:
     on a light Telegram theme --tg-theme-text-color/button-color flip to dark
     and produce invisible black-on-black text. Keep the palette self-consistent. */
  --bg: #0e1014;
  --surface: #171a21;
  --surface-2: #1f232c;
  --text: #f4f5f7;
  --muted: #8b909a;
  --accent: #4c8dff;
  --accent-text: #fff;
  --green: #34c759;
  --red: #ff453a;
  --amber: #ff9f0a;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.04);
  --r-sm: 10px; --r: 14px; --r-lg: 18px;
  --pad: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif; font-size: 16px;
  overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.screen { min-height: 100vh; }
.muted { color: var(--muted); } .center { text-align: center; }
.green { color: var(--green); } .red { color: var(--red); }
.tabnum { font-variant-numeric: tabular-nums; }

/* ===== Inputs / buttons ===== */
.input { width: 100%; padding: 13px 14px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 16px; outline: none; }
.input:focus { border-color: var(--accent); }
select.input { appearance: none; }
.field-label { display: block; color: var(--muted); font-size: 13px; margin: 16px 0 7px; font-weight: 500; }
.field-label .opt { color: var(--muted); opacity: .7; font-weight: 400; }
.btn { border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  padding: 12px 16px; border-radius: var(--r); font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .06s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.btn.primary:disabled { opacity: .45; }
.btn.ghost { background: transparent; }
.btn.ghost.danger { color: var(--red); border-color: rgba(255,69,58,.3); }
.btn.block { width: 100%; }
.btn.lg { padding: 15px; font-size: 16px; }
.err { color: var(--red); font-size: 13px; margin-top: 12px; min-height: 16px; }

/* ===== Onboarding ===== */
.onb { padding: 36px 20px 24px; max-width: 480px; margin: 0 auto; }
.onb-title { font-size: 28px; margin: 8px 0 6px; letter-spacing: -.5px; }
.onb-sub { color: var(--muted); margin: 0 0 26px; }
.persona-grid { display: grid; gap: 12px; }
.persona { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--r-lg); transition: border-color .12s; }
.persona.active { border-color: var(--accent); background: var(--surface-2); }
.persona .pe { font-size: 30px; line-height: 1; }
.persona .pt { font-weight: 700; }
.persona .pd { color: var(--muted); font-size: 13px; }
.onb .btn { margin-top: 22px; }

/* ===== Topbar ===== */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--pad);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.brand { font-weight: 800; display: flex; gap: 8px; align-items: center; letter-spacing: -.3px;
  background: none; border: none; color: var(--text); font-size: 16px; cursor: pointer; padding: 0; }
.brand .caret { color: var(--muted); font-size: 12px; }
#biz-name { max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.plan-badge.pro { color: var(--accent); border-color: rgba(76,141,255,.4); }
.plan-badge.business { color: var(--amber); border-color: rgba(255,159,10,.4); }

main { padding: var(--pad) var(--pad) 150px; max-width: 560px; margin: 0 auto; }
.tabview { display: none; } .tabview.active { display: block; }

/* ===== Cards ===== */
.hero { background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px; margin-bottom: 14px; }
.hero .lbl { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.hero .big { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.kpi .lbl { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.kpi .val { font-size: 20px; font-weight: 800; }

/* ===== Section / widget ===== */
.section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; margin-bottom: 14px; }
.section h4 { margin: 0 0 14px; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 3px 7px; border-radius: 6px;
  background: rgba(76,141,255,.15); color: var(--accent); }
.tag.biz { background: rgba(255,159,10,.15); color: var(--amber); }

/* ===== Bars ===== */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-row .lbl { width: 38%; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; height: 8px; background: rgba(255,255,255,.06); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: var(--accent); }
.bar-row .val { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* ===== Charts ===== */
.chart { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut-legend { flex: 1; }
.donut-legend .dl { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.donut-legend .dl i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 7px; }

/* ===== Lists ===== */
.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; margin-bottom: 10px; }
.row .main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row .main .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .main .s { color: var(--muted); font-size: 13px; }
.row .amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.pill { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; background: rgba(255,159,10,.18); color: var(--amber); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center;
  font-weight: 700; color: var(--accent); flex-shrink: 0; }
.row.client { gap: 12px; }
.row.client .main { flex: 1; }

/* ===== Admin: user row ===== */
.row.adm-user { flex-direction: column; align-items: stretch; gap: 0; }
.adm-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.adm-top .main { flex: 1; }
.adm-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; flex-shrink: 0; }
.role-badge, .plan-pill { font-size: 10px; font-weight: 800; letter-spacing: .3px; padding: 4px 9px;
  border-radius: 20px; line-height: 1.1; white-space: nowrap; }
.role-badge { background: rgba(255,159,10,.16); color: var(--amber); }
.role-badge.owner { background: rgba(191,90,242,.18); color: #bf5af2; }
.role-badge.moderator { background: rgba(100,210,255,.16); color: #64d2ff; }
.plan-pill { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.plan-pill.pro { color: var(--accent); border-color: rgba(76,141,255,.4); }
.plan-pill.business { color: var(--amber); border-color: rgba(255,159,10,.4); }
/* Purchase status pill (Отправлена / Обработка / Успешно). */
.pay-status { font-size: 10px; font-weight: 800; letter-spacing: .3px; padding: 4px 9px; border-radius: 20px;
  line-height: 1.1; white-space: nowrap; flex-shrink: 0; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.pay-status.sent { color: var(--muted); }
.pay-status.processing { color: var(--amber); border-color: rgba(255,159,10,.4); background: rgba(255,159,10,.12); }
.pay-status.paid { color: var(--green); border-color: rgba(52,199,89,.35); background: rgba(52,199,89,.12); }
.adm-actions { display: flex; gap: 8px; align-items: stretch; margin-top: 12px; }
.plan-switch { display: flex; flex: 1; gap: 3px; padding: 3px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 11px; }
.ps-btn { flex: 1; border: none; background: transparent; color: var(--muted); padding: 9px 4px;
  border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .12s, color .12s; }
.ps-btn.active { background: var(--accent); color: var(--accent-text); }
.ps-btn.active[data-plan="business"] { background: var(--amber); color: #2a1a00; }
.adm-actions .adm-del { flex-shrink: 0; padding: 9px 14px; }
@media (hover: hover) and (pointer: fine) {
  .ps-btn:hover:not(.active) { color: var(--text); background: rgba(255,255,255,.05); }
}

/* ===== FAB + tabbar ===== */
.fab-row { position: fixed; left: 50%; transform: translateX(-50%); bottom: 70px; width: 100%; max-width: 560px;
  display: flex; gap: 10px; padding: 0 var(--pad); z-index: 8; }
.fab { flex: 1; border: none; border-radius: var(--r); padding: 14px; font-size: 15px; font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.fab.income { background: var(--green); color: #042611; }
.fab.expense { background: var(--red); color: #2a0605; color: #fff; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: rgba(14,16,20,.92);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 9; padding-bottom: env(safe-area-inset-bottom); }
.tabbtn { flex: 1; background: none; border: none; color: var(--muted); padding: 9px 0 10px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; }
.tabbtn .ti { font-size: 19px; }
.tabbtn.active { color: var(--accent); }

/* ===== Bottom sheets ===== */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: flex;
  align-items: flex-end; justify-content: center; z-index: 20; }
.sheet { background: var(--bg); width: 100%; max-width: 560px; border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  max-height: 92vh; overflow-y: auto; animation: rise .22s ease; }
@keyframes rise { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-grip { width: 38px; height: 4px; border-radius: 3px; background: var(--line); margin: 6px auto 14px; }
.sheet-title { margin: 0 0 6px; font-size: 18px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 22px; }
.sheet-actions .btn { flex: 1; }

/* amount input */
.amount-wrap { position: relative; }
.input.amount { font-size: 28px; font-weight: 800; padding: 16px 44px 16px 14px; letter-spacing: -.5px; }
/* Hide the native number-spinner arrows on money fields — not needed for entry. */
.input[type="number"]::-webkit-outer-spin-button,
.input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.amount-wrap .cur { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; font-weight: 700; }

/* segmented control */
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px; gap: 4px; }
.seg.sm { max-width: 220px; }
.seg-btn { flex: 1; border: none; background: transparent; color: var(--muted); padding: 10px; border-radius: 10px;
  font-size: 14px; font-weight: 700; }
.seg-btn.active { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
/* Admin tab bar can hold 4 tabs — let it wrap on small screens instead of
   overflowing past the panel. */
#adm-seg { flex-wrap: wrap; }
#adm-seg .seg-btn { flex: 1 1 auto; min-width: 70px; padding-left: 6px; padding-right: 6px; white-space: nowrap; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 13px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 14px; }
.chip.active { border-color: var(--accent); color: var(--text); background: var(--surface-2); }

/* custom toggle switch */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 0 4px; font-size: 15px; }
.toggle-row span:first-child { line-height: 1.35; }
.switch { position: relative; width: 50px; height: 30px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .slider { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 30px; transition: .18s; }
.switch .slider::before { content: ""; position: absolute; height: 24px; width: 24px; left: 3px; top: 2px;
  background: #fff; border-radius: 50%; transition: .18s; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.switch input:checked + .slider { background: var(--green); border-color: transparent; }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ===== Subscription / plans ===== */
.plan-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 14px; }
.plan-card.current { border-color: var(--accent); }
.plan-card.biz { border-color: rgba(255,159,10,.4); }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.plan-head .pn { font-size: 19px; font-weight: 800; }
.plan-head .pp { font-size: 15px; font-weight: 700; }
.plan-head .pp small { color: var(--muted); font-weight: 500; }
.plan-tag { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.plan-feat { list-style: none; padding: 0; margin: 0 0 16px; }
.plan-feat li { display: flex; gap: 9px; padding: 5px 0; font-size: 14px; }
.plan-feat li::before { content: "✓"; color: var(--green); font-weight: 800; }
.compliance { background: rgba(52,199,89,.08); border: 1px solid rgba(52,199,89,.2); border-radius: var(--r);
  padding: 12px 14px; font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 12px; }
.compliance b { color: var(--text); }

.toast { position: fixed; left: 50%; bottom: 132px; transform: translateX(-50%); background: var(--surface-2);
  border: 1px solid var(--line); padding: 12px 18px; border-radius: var(--r); z-index: 30; max-width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 14px; text-align: center; }

/* ===== Interactivity: pointer cursor + hover (mouse only) ===== */
.btn, .chip, .seg-btn, .tabbtn, .persona, .fab, .switch, .toggle-row,
.row[data-clickable], .biz-pick[data-clickable], .ps-btn, select.input, input[type="checkbox"], .plan-badge { cursor: pointer; }
.input, .input.amount { cursor: text; }
select.input { cursor: pointer; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.12); border-color: var(--accent); }
  .btn.primary:hover { filter: brightness(1.08); }
  .btn.ghost:hover { background: var(--surface); }
  .btn.ghost.danger:hover { background: rgba(255,69,58,.1); }
  .fab:hover { filter: brightness(1.08); transform: translateY(-1px); }
  .chip:hover { border-color: var(--accent); color: var(--text); }
  .seg-btn:hover:not(.active) { color: var(--text); }
  .tabbtn:hover { color: var(--text); }
  .persona:hover { border-color: var(--accent); }
  .row[data-clickable]:hover { border-color: var(--accent); background: var(--surface-2); }
  .plan-card:hover { border-color: var(--accent); }
  .plan-card.biz:hover { border-color: var(--amber); }
  .donut-legend .dl:hover, .bar-row:hover .lbl { color: var(--text); }
  a:hover { opacity: .85; }
}
.row[data-clickable] { transition: border-color .12s, background .12s; }
.btn, .fab, .chip, .persona, .plan-card { transition: filter .12s, border-color .12s, background .12s, transform .08s; }

/* ===== Monthly bars (income + expense side by side) ===== */
.mbars { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.mbar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; justify-content: flex-end; }
.mbar-val { font-size: 10px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; min-height: 12px; }
.mbar-track { width: 100%; flex: 1; display: flex; align-items: flex-end; }
.mbar-pair { width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.mbar-fill { flex: 1; max-width: 14px; border-radius: 5px 5px 0 0; transition: height .3s ease; }
.mbar-fill.inc { background: linear-gradient(180deg, var(--accent), rgba(76,141,255,.4)); }
.mbar-fill.exp { background: linear-gradient(180deg, var(--red), rgba(255,69,58,.35)); }
.mbar-lbl { font-size: 10px; color: var(--muted); white-space: nowrap; }

/* ===== Scope switch (Бизнес / Личное) ===== */
.seg.scope .seg-btn.active { background: var(--accent); color: var(--accent-text); box-shadow: 0 2px 8px rgba(76,141,255,.3); }

/* ===== Operations filters =====
   Stacked in two full-width rows so the kind segment + month picker can never
   exceed the panel width (their inline min-widths used to force a side scroll). */
.ops-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ops-filters .seg { max-width: none; min-width: 0; }
.ops-filters .seg-btn { min-width: 0; padding: 9px 4px; }
/* Month picker: full row, text centered (no native arrow → looked left-stuck). */
.ops-filters select.input { width: 100%; padding: 11px 14px; font-size: 14px; font-weight: 600;
  text-align: center; text-align-last: center; }
.ops-sum { display: flex; justify-content: flex-end; gap: 14px; font-weight: 800; font-size: 14px; margin-bottom: 12px; }

/* ===== Goals / plans ===== */
.goal { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; margin-bottom: 10px; }
.goal.done { opacity: .7; }
.goal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.goal-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-del { color: var(--muted); cursor: pointer; font-size: 15px; flex-shrink: 0; padding: 0 4px; }
.goal-del:hover { color: var(--red); }
.goal-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-top: 7px; }
.goal-bar { height: 8px; background: rgba(255,255,255,.07); border-radius: 6px; overflow: hidden; margin-top: 9px; }
.goal-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--green), #7be495); transition: width .4s ease; }
.goal-actions { display: flex; gap: 8px; margin-top: 11px; }
.goal-actions .input { flex: 1; padding: 9px 11px; font-size: 14px; }
.btn.sm { padding: 9px 13px; font-size: 13px; }

/* ===== Team / co-companions ===== */
#team-list:empty { display: none; }

/* custom-category chip + native colour picker */
.chip.chip-add { border-style: dashed; color: var(--accent); }
.chip.chip-add.active { background: var(--surface-2); border-color: var(--accent); color: var(--text); }
.color-input { width: 52px; height: 36px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; flex-shrink: 0; }

/* ===== Admin announcement banner (shown to all users) ===== */
.ann-banner { position: relative; overflow: hidden; margin-bottom: 14px; padding: 14px 16px 14px 20px;
  border: 1px solid rgba(76,141,255,.35); border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(76,141,255,.16), rgba(191,90,242,.13));
  box-shadow: 0 6px 22px rgba(76,141,255,.12); }
.ann-banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--accent), #bf5af2); }
.ann-head { margin-bottom: 6px; }
.ann-badge { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--accent); }
.ann-text { font-size: 15px; font-weight: 600; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }

/* ===== Support chat ===== */
.badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; vertical-align: middle; }
.chat-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; height: 58vh; min-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.bubble-row { display: flex; }
.bubble-row.me { justify-content: flex-end; }
.bubble-row.them { justify-content: flex-start; }
.bubble { max-width: 80%; padding: 9px 12px; border-radius: 16px; font-size: 14px; line-height: 1.35; }
.bubble-row.them .bubble { background: var(--surface-2); border-bottom-left-radius: 5px; }
.bubble-row.me .bubble { background: var(--accent); color: var(--accent-text); border-bottom-right-radius: 5px; }
.bubble-text { white-space: pre-wrap; word-break: break-word; }
.bubble-time { font-size: 10px; opacity: .6; margin-top: 3px; text-align: right; }
.chat-input-row { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.chat-text { flex: 1; resize: none; max-height: 120px; line-height: 1.35; }
.chat-send { flex-shrink: 0; padding: 13px 18px; font-size: 17px; }

/* ticket status pill + star rating */
.ticket-status { font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.ticket-status.open { color: var(--accent); border-color: rgba(76,141,255,.35); }
.ticket-status.claimed { color: var(--amber); border-color: rgba(255,159,10,.35); }
.ticket-status.closed { color: var(--green); border-color: rgba(52,199,89,.35); }
.rating-stars { color: var(--amber); font-size: 15px; letter-spacing: 1px; white-space: nowrap; }
.star-pick { display: flex; gap: 8px; font-size: 30px; line-height: 1; margin-bottom: 6px; }
.star-pick .star { cursor: pointer; color: var(--amber); user-select: none; transition: transform .08s; }
.star-pick .star:active { transform: scale(.85); }

/* ===== Maintenance screen ===== */
.maintenance { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 28px; gap: 6px; }
.maintenance .mt-emoji { font-size: 64px; line-height: 1; }
.maintenance h2 { margin: 10px 0 2px; font-size: 24px; }
.maintenance p { max-width: 360px; line-height: 1.5; }
