:root {
  --bg: #f3f5f7;
  --bg-grad-1: #eef2f5;
  --bg-grad-2: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --input-bg: #ffffff;
  --ink: #12161c;
  --muted: #5c6b7a;
  --line: #e3e8ee;
  --line-strong: #b7c4d0;
  --accent: #0f7a5a;
  --accent-soft: rgba(15, 122, 90, 0.12);
  --warn: #9a6700;
  --warn-soft: #fff4d6;
  --danger: #b42318;
  --danger-soft: #fde8e6;
  --ok: #0f7a5a;
  --ok-soft: #e7f6f0;
  --ok-border: #b7e2d2;
  --sidebar: #101820;
  --sidebar-text: #d7dee6;
  --sidebar-muted: #8b9aab;
  --sidebar-brand: #3dcea0;
  --track: #eef2f5;
  --hover-row: #f7fbf9;
  --filter-active: #101820;
  --topbar-bg: linear-gradient(180deg, #ffffff, #f7f9fb);
  --spark: #0f7a5a;
  --spark-fill: rgba(15, 122, 90, 0.12);
  --font: "DM Sans", sans-serif;
  --display: "Sora", sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 32, 0.04), 0 10px 28px rgba(16, 24, 32, 0.05);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0c1017;
  --bg-grad-1: #0c1017;
  --bg-grad-2: #121821;
  --surface: #151b24;
  --surface-2: #1a222d;
  --input-bg: #0f141c;
  --ink: #e8eef5;
  --muted: #9aa8b8;
  --line: #2a3442;
  --line-strong: #3d4b5c;
  --accent: #2db88a;
  --accent-soft: rgba(45, 184, 138, 0.18);
  --warn: #e0b44a;
  --warn-soft: rgba(224, 180, 74, 0.16);
  --danger: #f07167;
  --danger-soft: rgba(240, 113, 103, 0.16);
  --ok: #2db88a;
  --ok-soft: rgba(45, 184, 138, 0.16);
  --ok-border: rgba(45, 184, 138, 0.35);
  --sidebar: #080b10;
  --sidebar-text: #d7dee6;
  --sidebar-muted: #8b9aab;
  --sidebar-brand: #3dcea0;
  --track: #243040;
  --hover-row: rgba(45, 184, 138, 0.08);
  --filter-active: #2db88a;
  --topbar-bg: linear-gradient(180deg, #151b24, #121821);
  --spark: #2db88a;
  --spark-fill: rgba(45, 184, 138, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}
#app { height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.login-page {
  height: 100%;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2) 45%, var(--bg));
}
.login-box {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
}
.login-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.login-brand span { color: var(--accent); }
.login-sub { margin: 0 0 24px; color: var(--muted); }
.login-prefs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.login-prefs .tb-btn {
  width: 100%;
  justify-content: center;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--input-bg);
  outline: none;
  font: inherit;
  color: inherit;
}
.field input,
.field select { height: 44px; }
.field textarea {
  min-height: 110px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.4;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn:disabled,
.link-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.btn {
  height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
}
.btn.block { width: 100%; margin-top: 8px; }
.btn.sm { height: 32px; padding: 0 10px; font-size: 12px; }
.btn.ok { background: #1a7f4b; }
.btn.danger { background: var(--danger, #b42318); }
.btn.ghost {
  background: transparent;
  color: var(--sidebar-text);
  border: 1px solid rgba(255,255,255,0.12);
  height: 38px;
}
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.desk-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(26, 127, 75, 0.12);
  color: #146c3f;
}
.desk-chip.off {
  background: rgba(180, 35, 24, 0.12);
  color: #8f1d14;
}
.link-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  padding: 0 6px;
  height: auto;
}
.link-btn.danger { color: var(--danger); }
.error, .form-msg {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 13px;
}
.error { color: var(--danger); }
.form-msg { color: var(--accent); }

.shell {
  height: 100%;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  overflow: hidden;
}
@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
}

.sidebar {
  background: var(--sidebar);
  color: var(--sidebar-text);
  padding: 22px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  overflow: auto;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.side-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  padding: 8px 10px 4px;
}
.side-brand span { color: var(--sidebar-brand); }
.nav { display: grid; gap: 4px; }
.nav button {
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--sidebar-muted);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 500;
}
.nav button:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav button.active {
  background: rgba(61, 206, 160, 0.14);
  color: #fff;
}
.side-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 10px;
}
.who {
  padding: 0 10px;
  font-size: 13px;
  color: var(--sidebar-muted);
  line-height: 1.4;
}
.who strong {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 2px;
}

.main-col {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(15, 122, 90, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg));
  overflow: hidden;
}
.main-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.main-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 56px;
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
}
.topbar-clock {
  display: grid;
  gap: 2px;
}
.topbar-k {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.topbar-clock strong {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.topbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px 14px;
}
.tb-group {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.tb-divider {
  width: 1px;
  align-self: stretch;
  min-height: 44px;
  background: var(--line);
  margin: 0 2px;
}
.tz-field {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.tz-field select,
.tb-btn {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
}
.tz-field select {
  padding: 0 10px;
  min-width: 132px;
}
.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.tb-btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.tb-btn.is-on {
  background: var(--ok-soft);
  border-color: var(--ok-border);
  color: var(--ok);
}
.tb-btn svg {
  flex: 0 0 auto;
  opacity: 0.9;
}
.tb-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--input-bg);
  height: 36px;
}
.tb-seg-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 0 14px;
  height: 100%;
  border-right: 1px solid var(--line);
}
.tb-seg-btn:last-child { border-right: 0; }
.tb-seg-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}
@media (max-width: 860px) {
  .main-inner { width: min(100%, calc(100% - 28px)); }
  .topbar { padding: 12px 0; }
  .tb-divider { display: none; }
  .sidebar {
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
}

.content {
  padding: 22px 0 0;
}
.page-head { margin-bottom: 20px; }
.page-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.page-head p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 52ch;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 15px;
  box-shadow: var(--shadow);
}
.stat .k { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.stat .v {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat .sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.stats-2 { margin-top: 12px; }

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 900px) {
  .charts { grid-template-columns: 1fr; }
}
.chart-card { padding: 18px; }
.chart-card h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
}
.chart-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.bars { display: grid; gap: 10px; }
.bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 36px;
  gap: 10px;
  align-items: center;
}
.bar-label { font-size: 12px; color: var(--muted); }
.bar-val { font-size: 12px; font-weight: 700; text-align: right; }
.bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  animation: grow 0.7s ease forwards;
}
.bar-fill.c0 { background: #f0b429; }
.bar-fill.c1 { background: var(--ok); }
.bar-fill.c2 { background: #d64545; }
.bar-fill.c3 { background: #2f6fed; }
.amount-bars .bar-row { grid-template-columns: 72px 1fr 96px; }
@keyframes grow {
  to { width: var(--w); }
}

.spark {
  width: 100%;
  height: 72px;
  display: block;
}
.spark-line {
  stroke: var(--spark);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.spark-area { fill: var(--spark-fill); }
.spark-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.filter-tab {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}
.filter-tab:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-tab.active {
  background: var(--filter-active);
  border-color: var(--filter-active);
  color: #fff;
}

.search-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.search-panel .field { margin: 0; }
.search-actions { gap: 8px; }
.btn.ghost-light {
  background: var(--input-bg);
  color: var(--ink);
  border: 1px solid var(--line);
}
.result-meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.muted-line {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.doc-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--ink);
  display: grid;
  gap: 8px;
}
.doc-list li { line-height: 1.45; }
.doc-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.doc-box > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: start;
}
.doc-box span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.doc-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
  color: var(--ink);
}
@media (max-width: 980px) {
  .search-panel { grid-template-columns: 1fr 1fr; }
  .doc-box > div { grid-template-columns: 1fr; gap: 4px; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-panel { padding: 20px; margin-bottom: 14px; }
.form-panel h3 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
}

.tx-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}
@media (max-width: 980px) {
  .tx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tx-stat {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.tx-stat.accent {
  border-color: var(--ok-border);
  background: linear-gradient(180deg, var(--ok-soft), var(--surface));
}
.tx-stat .k { color: var(--muted); font-size: 12px; font-weight: 600; }
.tx-stat .v {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.tx-stat .sub { margin-top: 4px; font-size: 12px; color: var(--muted); }
.tx-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-bottom: 14px;
  align-items: start;
}
@media (max-width: 1100px) {
  .tx-layout { grid-template-columns: 1fr; }
}
.tx-layout-single { grid-template-columns: 1fr; }
.tx-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tx-section-head h3 { margin: 0 0 4px; }
.tx-section-head .hint { margin: 0; max-width: 48ch; }
.tx-badge {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--ok-border);
}
.tx-badge.soft {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
}
.tx-manual, .tx-queue { margin-bottom: 0; }
.tx-table { margin-bottom: 18px; }
.tx-table .data-table tbody tr.tx-row { cursor: pointer; }
.tx-table .data-table tbody tr.tx-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.form-grid .field { margin: 0; }
.form-grid .grow { grid-column: span 2; }
.form-actions { display: flex; align-items: end; }
.form-stack { max-width: 520px; }
@media (max-width: 980px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .grow { grid-column: span 2; }
}

.table-wrap { overflow: auto; }
table.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}
.data-table th, .data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}
.data-table th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
  z-index: 1;
}
.data-table tbody tr {
  transition: background 0.15s ease;
}
.data-table tbody tr:hover { background: var(--hover-row); }
.data-table tr:last-child td { border-bottom: 0; }
.amount { font-weight: 600; }
.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.actions { white-space: nowrap; text-align: right; }
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.pill.pending { background: var(--warn-soft); color: var(--warn); }
.pill.approved, .pill.available { background: var(--ok-soft); color: var(--ok); }
.pill.rejected, .pill.disabled { background: var(--danger-soft); color: var(--danger); }

.anim.d1 { animation-delay: 0.04s; }
.anim.d2 { animation-delay: 0.08s; }
.anim.d3 { animation-delay: 0.12s; }
.anim.d4 { animation-delay: 0.16s; }
tr.anim { animation: none; }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Dark-mode date inputs */
html[data-theme="dark"] input[type="date"] {
  color-scheme: dark;
}
html[data-theme="dark"] .bar-fill.c0 { background: #e0b44a; }
html[data-theme="dark"] .bar-fill.c2 { background: #f07167; }
html[data-theme="dark"] .filter-tab.active { color: #0c1017; }

.pending-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 14px 0 0;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line));
  background: var(--warn-soft);
  color: var(--ink);
  border-radius: 12px;
  font-size: 13px;
}
.pending-bar[hidden] { display: none !important; }
.pending-bar strong { font-family: var(--display); font-size: 15px; }

@media (max-width: 720px) {
  .pending-bar { margin-top: 12px; }
}

.fill-track {
  position: relative;
  height: 18px;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
  min-width: 110px;
  margin-top: 4px;
}
.fill-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.fill-track span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}

.tx-row { cursor: pointer; }
.tx-row:hover { background: var(--hover-row); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.42);
  z-index: 40;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 50;
  box-shadow: var(--shadow);
  overflow: auto;
  padding: 18px 18px 28px;
}
.drawer[hidden], .drawer-backdrop[hidden] { display: none !important; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.drawer-head h2 { margin: 0; font-family: var(--display); font-size: 18px; }
.drawer-kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.drawer-kv span { color: var(--muted); }
.drawer-body h3 { margin: 18px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.drawer-line { margin: 6px 0; font-size: 13px; }

@media (max-width: 720px) {
  .drawer { width: 100vw; }
}

.account-card {
  max-width: 520px;
}
.account-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.account-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.account-meta span { color: var(--muted); }

.anim {
  animation: none;
}
@media (prefers-reduced-motion: no-preference) {
  .page-head.anim,
  .panel.anim,
  .stat.anim {
    animation: rise 0.35s ease both;
  }
}
