:root {
  /* Thalamus-inspired: deep sea-green brand, soft sage/mint, purple secondary */
  --bg: #eef3f1;
  --surface: #ffffff;
  --surface-2: #f2f6f5;
  --border: #e3ebe8;
  --border-strong: #d4e0db;
  --text: #16201f;
  --text-2: #4a5957;
  --muted: #8a9a96;
  --accent: #004953;
  --accent-ink: #023840;
  --accent-soft: #e0efea;
  --accent-2: #473749;        /* purple secondary */
  --blue: #5b7c93;            /* muted slate (input/blue category) */
  --blue-soft: #e4ecf0;
  --green: #2f9e72;           /* sage green (positive / charts) */
  --green-soft: #ddf0e5;
  --amber: #c0851f;
  --amber-soft: #f6efda;
  --red: #b8443c;
  --red-soft: #f6e5e3;
  --serif: "Trirong", "Tiempos Headline", Georgia, "Times New Roman", serif;
  --shadow-sm: 0 1px 2px rgba(0,73,83,.05);
  --shadow: 0 1px 3px rgba(0,73,83,.07), 0 1px 2px rgba(0,73,83,.05);
  --shadow-lg: 0 18px 44px -12px rgba(2,56,64,.28);
  --radius: 18px;
  --radius-md: 13px;
  --radius-sm: 10px;
  --sidebar-w: 252px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "IBM Plex Sans Thai", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
/* elegant serif headings (editorial feel, like Tiempos) */
.brand-name, .topbar h1, .panel-head h2, .login-brand .brand-name, h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
}

.app { display: flex; min-height: 100vh; }

/* ---------- Sidebar (deep sea-green) ---------- */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: linear-gradient(185deg, #00525e 0%, #023840 100%);
  color: #cfe3dd;
  display: flex; flex-direction: column;
  padding: 24px 16px;
  position: sticky; top: 0; height: 100vh; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 26px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; font-size: 21px;
}
.brand-name { font-size: 19px; color: #fff; }
.brand-sub { font-size: 11.5px; color: rgba(255,255,255,.55); margin-top: 1px; letter-spacing: .3px; }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-label { font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .8px; padding: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 13px; border-radius: var(--radius-sm);
  color: #b9d2cc; cursor: pointer; font-weight: 500; font-size: 14.5px;
  transition: background .15s, color .15s; user-select: none;
}
.nav-item .ico { font-size: 17px; width: 22px; text-align: center; opacity: .9; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: #fff; color: var(--accent-ink); font-weight: 600; box-shadow: 0 4px 14px -6px rgba(0,0,0,.4); }
.nav-item.active .ico { opacity: 1; }

.sidebar-foot { border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; margin-top: 8px; }
.month-pick label { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.6); display: block; margin-bottom: 7px; padding-left: 2px; }
.month-pick input {
  width: 100%; padding: 9px 11px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.95); color: var(--text); font-size: 14px;
}
.month-pick input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,255,255,.25); }

/* ---------- Main ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 64px; flex-shrink: 0;
  background: rgba(255,255,255,.8); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 32px);
  position: sticky; top: 0; z-index: 20;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar h1 { font-size: 19px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); width: 38px; height: 38px; cursor: pointer; font-size: 18px; color: var(--text); }
.menu-btn:hover { background: var(--surface-2); }
.content { padding: clamp(18px, 3vw, 28px) clamp(16px, 4vw, 32px) 56px; max-width: 1280px; width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  font-size: 14px; font-weight: 600; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 9px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: filter .15s, background .15s, border-color .15s, box-shadow .15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 8px -2px rgba(0,73,83,.4); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { transform: translateY(.5px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.icon-btn { background: none; border: none; cursor: pointer; font-size: 16px; color: var(--muted); padding: 5px 8px; border-radius: var(--radius-sm); line-height: 1; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 18px 16px; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.stat:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.stat-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.stat-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.stat-ico.teal { background: var(--accent-soft); }
.stat-ico.blue { background: var(--blue-soft); }
.stat-ico.green { background: var(--green-soft); }
.stat-ico.amber { background: var(--amber-soft); }
.stat-ico.red { background: var(--red-soft); }
.stat-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.stat-value { font-size: 25px; font-weight: 700; letter-spacing: -.6px; line-height: 1.1; }
.stat-value .cur { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 3px; letter-spacing: 0; }
.stat-meta { font-size: 12px; color: var(--muted); margin-top: 7px; }
.stat-meta b { color: var(--text-2); font-weight: 600; }

/* ---------- Panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 16px; overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; }
.panel-body { padding: 18px 20px; }
.panel-body.tight { padding: 0; overflow-x: auto; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
thead th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: .2px; text-transform: uppercase; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); }
tbody td b { color: var(--text); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 52px 20px; font-size: 14px; }
.empty .big { font-size: 30px; display: block; margin-bottom: 8px; opacity: .7; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.tag.sale { background: var(--green-soft); color: #0f7a52; }
.tag.purchase { background: var(--blue-soft); color: #2563c9; }
.tag.muted { background: var(--surface-2); color: var(--text-2); }
.tag.ok { background: var(--green-soft); color: #0f7a52; cursor: pointer; border: none; font-family: inherit; }
.tag.pending { background: var(--amber-soft); color: #b4710a; cursor: pointer; border: none; font-family: inherit; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 14px; background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ---------- VAT summary ---------- */
.vat-calc { display: flex; flex-direction: column; }
.vat-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.vat-row .lbl { color: var(--text-2); }
.vat-row .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.vat-row.total { background: var(--accent); color: #fff; border-bottom: none; }
.vat-row.total .lbl { color: rgba(255,255,255,.85); font-weight: 600; }
.vat-row.total .val { font-size: 20px; }
.vat-row.total.credit { background: var(--amber); }

/* ---------- Bars chart ---------- */
.bars { display: flex; align-items: flex-end; gap: 12px; height: 190px; padding: 8px 2px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; height: 100%; justify-content: flex-end; }
.bar-pair { display: flex; gap: 5px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bar { width: 20px; border-radius: 6px 6px 3px 3px; min-height: 4px; transition: height .35s cubic-bezier(.2,.8,.2,1); }
.bar.out { background: var(--green); }
.bar.in { background: var(--blue); }
.bar-label { font-size: 11px; color: var(--muted); }
.legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--text-2); padding: 12px 2px 0; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dot.out { background: var(--green); }
.dot.in { background: var(--blue); }

/* ---------- Deadlines ---------- */
.deadline { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.deadline:last-child { border-bottom: none; padding-bottom: 0; }
.deadline-date { flex-shrink: 0; width: 52px; text-align: center; background: var(--accent-soft); color: var(--accent-ink); border-radius: var(--radius-sm); padding: 8px 0; line-height: 1.05; }
.deadline-date .d { font-size: 19px; font-weight: 700; }
.deadline-date .m { font-size: 10.5px; }
.deadline-info .t { font-weight: 600; font-size: 14px; }
.deadline-info .n { font-size: 12.5px; color: var(--muted); }

/* ---------- Account menu ---------- */
.account { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); padding: 8px 13px; border-radius: var(--radius-sm); }
.acct-btn:hover { background: var(--surface-2); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 196px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; }
.acct-menu button { display: block; width: 100%; text-align: left; background: none; border: none; font-size: 14px; color: var(--text); padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.acct-menu button:hover { background: var(--surface-2); }
.acct-menu button.danger { color: var(--red); }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(16,18,22,.45); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 60; padding: 18px; animation: fade .15s ease; }
.modal-backdrop[hidden] { display: none; }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 600px; box-shadow: var(--shadow-lg); max-height: 92vh; overflow: auto; animation: pop .18s cubic-bezier(.2,.8,.2,1); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.modal-head h3 { font-size: 16.5px; font-weight: 700; }
.modal-body { padding: 22px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99); } }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 12px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 100; font-size: 14px; font-weight: 500; animation: toastUp .25s ease; }
.toast.error { background: var(--red); }
@keyframes toastUp { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: linear-gradient(160deg, #00525e 0%, #023840 100%); }
.login-page::before { content: ""; position: fixed; inset: 0; background: radial-gradient(900px 500px at 80% -10%, rgba(187,228,195,.18) 0%, transparent 55%), radial-gradient(700px 460px at 0% 110%, rgba(71,55,73,.22) 0%, transparent 50%); pointer-events: none; }
.login-card { position: relative; background: var(--surface); width: 100%; max-width: 392px; border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.5); padding: 38px 34px; border: 1px solid rgba(255,255,255,.5); }
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 28px; }
.login-brand .brand-logo { background: linear-gradient(140deg, #00525e, #023840); border: none; }
.login-brand .brand-name { font-size: 21px; color: var(--accent-ink); }
.login-brand .brand-sub { color: var(--muted); font-size: 13px; }
.login-card .btn-primary { padding: 12px; font-size: 15px; }
.login-error { margin-top: 14px; background: var(--red-soft); color: #c0392b; border: 1px solid #f7c9c9; border-radius: var(--radius-sm); padding: 10px 13px; font-size: 13.5px; }

/* ---------- Mobile drawer ---------- */
.scrim { display: none; position: fixed; inset: 0; background: rgba(16,18,22,.4); z-index: 25; }

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .menu-btn { display: grid; place-items: center; }
  .sidebar {
    position: fixed; left: 0; top: 0; height: 100vh; width: 270px;
    transform: translateX(-100%); transition: transform .26s cubic-bezier(.3,.8,.3,1);
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .scrim.show { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 11px; }
  .stat-value { font-size: 22px; }
  .topbar h1 { font-size: 17px; }
}
@media (max-width: 430px) {
  .stats { grid-template-columns: 1fr; }
}

/* ===================== v2 components ===================== */
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 16px; }
.filters label { font-size: 12px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.filters input, .filters select { padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 13.5px; font-family: inherit; background: var(--surface); }
.spacer { flex: 1; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: none; background: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 7px 15px; border-radius: 8px; cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-sm); }

.subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.subnav a { padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a.active { color: var(--accent-ink); border-bottom-color: var(--accent); }

/* tax tiles with countdown */
.tax-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 14px; }
.tax-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; }
.tax-tile .form { font-size: 13px; color: var(--muted); font-weight: 600; }
.tax-tile .amt { font-size: 23px; font-weight: 700; letter-spacing: -.5px; margin: 6px 0 2px; }
.tax-tile .due { font-size: 12.5px; color: var(--text-2); }
.badge-days { position: absolute; top: 14px; right: 14px; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.badge-days.red { background: var(--red-soft); color: #c0392b; }
.badge-days.amber { background: var(--amber-soft); color: #b4710a; }
.badge-days.green { background: var(--green-soft); color: #0f7a52; }

.doc-badge { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.doc-badge.ok { background: var(--green-soft); color: #0f7a52; }
.doc-badge.warning { background: var(--amber-soft); color: #b4710a; }
.doc-badge.critical { background: var(--red-soft); color: #c0392b; }

.alert { border-radius: var(--radius-md); padding: 13px 16px; font-size: 14px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.alert.danger { background: var(--red-soft); color: #b3261e; border: 1px solid #f7c9c9; }
.alert.info { background: var(--blue-soft); color: #2156a8; border: 1px solid #cfe0fb; }
.alert.ok { background: var(--green-soft); color: #0f6b46; border: 1px solid #c3ecd6; }

/* upload dropzone */
.dropzone { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 30px 20px; text-align: center; color: var(--muted); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.dropzone .big { font-size: 34px; display: block; margin-bottom: 8px; }

/* recon row */
.recon-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 8px; background: var(--surface); }
.recon-row .side { min-width: 0; }
.recon-row .side .lbl { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recon-row .side .amt { font-size: 12.5px; color: var(--muted); }
.recon-row .arrow { color: var(--muted); font-size: 18px; }
.recon-row .acts { display: flex; gap: 6px; }
@media (max-width: 640px) { .recon-row { grid-template-columns: 1fr; } .recon-row .arrow { display: none; } }

/* AI chat */
.chat { display: flex; flex-direction: column; height: calc(100vh - 150px); max-width: 900px; }
.chat-log { flex: 1; overflow-y: auto; padding: 8px 2px 16px; display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
.bubble.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.bubble.ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.bubble .tools { font-size: 11px; color: var(--muted); margin-top: 8px; }
.chat-input { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.chat-input textarea { flex: 1; resize: none; border: 1px solid var(--border-strong); border-radius: 12px; padding: 11px 14px; font-family: inherit; font-size: 14.5px; max-height: 120px; }
.chat-input textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.suggest-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; color: var(--text-2); }
.chip:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2){animation-delay:.2s} .typing i:nth-child(3){animation-delay:.4s}
@keyframes blink { 0%,60%,100%{opacity:.25} 30%{opacity:1} }

/* combined bar+line chart */
.chart-wrap { width: 100%; overflow-x: auto; }
.mini-stat { display: flex; gap: 22px; flex-wrap: wrap; }
.mini-stat .m { font-size: 12.5px; color: var(--muted); }
.mini-stat .m b { display: block; font-size: 18px; color: var(--text); font-weight: 700; }

.list-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.list-row:last-child { border-bottom: none; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.pos { color: var(--success); } .neg { color: var(--danger); }
.cols-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; } @media(max-width:760px){.cols-2{grid-template-columns:1fr}}
