@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Noto+Sans+Lao+Looped:wght@400;500;600;700;800&family=Noto+Serif+Lao:wght@600;700;800&display=swap');

:root {
  --ledger-ink: #16212c;
  --ledger-slate: #263544;
  --ledger-muted: #758493;
  --ledger-paper: #fffefd;
  --ledger-ground: #f5f3ee;
  --ledger-rule: #dfddd6;
  --ledger-copper: #c96b3b;
  --ledger-copper-deep: #9e4a26;
  --ledger-copper-soft: #f7e9df;
  --ledger-sage: #617a6e;
  --ledger-sage-soft: #edf3ef;
  --ledger-danger: #a3433b;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(28, 37, 45, .06), 0 2px 5px rgba(28, 37, 45, .03);
}

* { box-sizing: border-box; }

html { background: var(--ledger-ground); }

body {
  margin: 0;
  color: var(--ledger-ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,.42) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.42) 1px, transparent 1px),
    var(--ledger-ground);
  background-size: 32px 32px;
  font-family: "Noto Sans Lao Looped", "Noto Sans Lao", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga", "clig", "calt";
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

.app { min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 14px;
  color: #e9f0f3;
  background-color: var(--ledger-ink);
  background-image:
    linear-gradient(rgba(255,255,255,.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.027) 1px, transparent 1px);
  background-size: 26px 26px;
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 18px 0 40px rgba(17, 24, 32, .14);
}

.brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 28px; }
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(247,209,181,.38);
  border-radius: 12px;
  background: linear-gradient(145deg, #f0c9af, var(--ledger-copper));
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  color: #fffdfb;
  font-weight: 850;
}
.brand h1 { margin: 0; color: #fffdfb; font-size: 16px; line-height: 1.25; letter-spacing: -.015em; }
.brand p { margin: 3px 0 0; color: #96a7b6; font-size: 10px; font-weight: 750; letter-spacing: .12em; }

.nav-label { margin: 15px 8px 7px; color: #7f91a0; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 3px 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #c9d5de;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms cubic-bezier(.23,1,.32,1), background-color 180ms cubic-bezier(.23,1,.32,1), border-color 180ms cubic-bezier(.23,1,.32,1), transform 180ms cubic-bezier(.23,1,.32,1), box-shadow 180ms cubic-bezier(.23,1,.32,1);
}
.nav a:hover { transform: translateX(2px); border-color: rgba(255,255,255,.055); background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { border-color: transparent; background: linear-gradient(100deg, var(--ledger-copper), #d58a61); box-shadow: inset 3px 0 0 #ffe1cf, 0 9px 20px rgba(0,0,0,.18); color: #fffdfb; }

.sidebar-footer { position: absolute; right: 14px; bottom: 22px; left: 14px; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.045); }
.sidebar-footer strong { display: block; color: #fff; font-size: 12px; }
.sidebar-footer span { display: block; margin-top: 1px; color: #98a9b8; font-size: 11px; }
.sidebar-footer a { display: block; margin-top: 8px; color: #f5c6a9; font-size: 12px; font-weight: 700; text-decoration: none; }

.main { width: 100%; max-width: 1720px; margin: 0 auto; padding: 27px 34px 42px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; margin: -27px -34px 30px; padding: 16px 34px; border-bottom: 1px solid var(--ledger-rule); background: rgba(255,254,252,.82); box-shadow: 0 1px 0 rgba(20,30,40,.025); }
.topbar h2 { margin: 0; color: var(--ledger-ink); font-size: clamp(22px, 2.1vw, 30px); font-weight: 800; letter-spacing: -.04em; line-height: 1.2; }
.topbar > div:first-child { display: grid; gap: 4px; }
.muted { color: var(--ledger-muted); }
.user-chip { display: flex; align-items: center; gap: 9px; min-width: 138px; padding: 9px 13px; border: 1px solid #dedbd4; border-radius: 999px; background: rgba(255,254,252,.94); box-shadow: 0 4px 12px rgba(28,37,45,.035); }
.user-chip > span { color: var(--ledger-copper); font-size: 10px; }
.user-chip b { color: var(--ledger-ink); font-size: 12px; }

.card { position: relative; overflow: hidden; border: 1px solid var(--ledger-rule); border-radius: var(--radius); background: rgba(255,254,252,.96); box-shadow: var(--shadow); }
.card:before { position: absolute; top: 0; right: 26px; left: 26px; height: 3px; content: ""; background: linear-gradient(90deg, var(--ledger-copper), rgba(201,107,59,.13) 58%, transparent); }
.pad { padding: 20px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-title h3, .card h3, .card h4 { margin: 0; color: var(--ledger-ink); font-size: 16px; font-weight: 800; letter-spacing: -.018em; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.metric { min-height: 134px; padding: 20px; }
.metric:after { position: absolute; top: 17px; right: 18px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(22,33,44,.06); border-radius: 13px; background: #eef2f5; color: #48677e; font-size: 17px; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.metric:nth-child(1):after { content: "₭"; background: var(--ledger-copper-soft); color: var(--ledger-copper); }
.metric:nth-child(2):after { content: "↗"; }
.metric:nth-child(3):after { content: "▣"; background: #edf3ef; color: var(--ledger-sage); }
.metric:nth-child(4):after { content: "△"; background: #fff3e8; color: #ae642f; }
.metric p { max-width: calc(100% - 48px); margin: 0; color: var(--ledger-muted); font-size: 12px; font-weight: 650; }
.metric strong { display: block; margin-top: 8px; color: var(--ledger-ink); font-size: clamp(23px, 2.1vw, 29px); font-weight: 850; letter-spacing: -.035em; }
.metric .trend { display: block; margin-top: 7px; color: var(--ledger-sage); font-size: 11px; font-weight: 650; }

.split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .85fr); gap: 18px; }
.table-wrap { overflow: auto; border-radius: 11px; scrollbar-color: #c58d62 #f1eee8; scrollbar-width: thin; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid #ebe8e2; text-align: left; vertical-align: middle; }
.table th { background: #f7f5f0; color: #526b70; font-size: 11px; font-weight: 800; letter-spacing: .045em; white-space: nowrap; }
.table td { color: #3b4950; font-size: 13px; }
.table td a { color: var(--ledger-copper-deep); font-weight: 750; text-decoration: none; }
.table tbody tr { transition: background-color 150ms ease; }
.table tbody tr:hover { background: #fcf8f4; }
.table tr:last-child td { border-bottom: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; border: 1px solid transparent; border-radius: 10px; padding: 9px 14px; color: var(--ledger-ink); font: inherit; font-weight: 800; line-height: 1; cursor: pointer; text-decoration: none; transition: color 160ms cubic-bezier(.23,1,.32,1), background-color 160ms cubic-bezier(.23,1,.32,1), border-color 160ms cubic-bezier(.23,1,.32,1), transform 160ms cubic-bezier(.23,1,.32,1), box-shadow 160ms cubic-bezier(.23,1,.32,1); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--ledger-copper); box-shadow: 0 8px 16px rgba(142,63,36,.16); color: #fffdfb; }
.btn.primary:hover { background: var(--ledger-copper-deep); }
.btn.ghost { border-color: #e4e0d8; background: #fffefd; color: #46545a; }
.btn.ghost:hover { border-color: #dcb69e; background: #fffaf6; box-shadow: 0 7px 14px rgba(28,37,45,.06); }
.btn.danger { border-color: #f0d0cc; background: #fceeed; color: var(--ledger-danger); }
.btn.small { min-height: 32px; padding: 7px 10px; font-size: 12px; }
.btn:disabled, button:disabled { cursor: not-allowed; opacity: .55; transform: none !important; }

.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 8px; border-radius: 999px; background: var(--ledger-sage-soft); color: var(--ledger-sage); font-size: 11px; font-weight: 800; }
.badge.low { background: #fff1e8; color: #a54e22; }
.badge.out { background: #fbe9e9; color: var(--ledger-danger); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 11px; }
.product-card { width: 100%; min-height: 132px; border: 1px solid #e4e0d8; border-radius: 14px; padding: 14px; background: #fffefd; color: var(--ledger-ink); text-align: left; cursor: pointer; transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.product-card:hover { transform: translateY(-2px); border-color: #dcb69e; background: #fffaf6; box-shadow: 0 9px 16px rgba(28,37,45,.07); }
.product-card strong { display: block; font-size: 14px; }
.product-card span { display: block; margin-top: 5px; color: var(--ledger-muted); font-size: 12px; }
.product-card .price { color: var(--ledger-copper); font-size: 14px; font-weight: 850; }
.product-card:disabled { background: #f4f2ee; color: #99a0a3; cursor: not-allowed; }

.cart { display: flex; min-height: 545px; flex-direction: column; }
.cart-lines { flex: 1; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid #ebe8e2; }
.cart-line:last-child { border-bottom: 0; }
.cart-line p { margin: 0; }
.qty-controls { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.qty-controls form { display: inline; }
.icon-btn { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #dfd8ce; border-radius: 8px; background: #fffefd; color: var(--ledger-copper-deep); cursor: pointer; font-weight: 850; }
.icon-btn:hover { background: var(--ledger-copper-soft); }
.cart-summary { margin-top: 12px; border-top: 1px solid var(--ledger-rule); padding-top: 13px; }
.total-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 7px 0; }
.total-row.total { margin-top: 13px; padding-top: 11px; border-top: 1px dashed #d8d1c7; color: var(--ledger-ink); font-size: 18px; font-weight: 850; }
.checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.checkout-form .full { grid-column: 1 / -1; }

.field, label { display: block; }
.field label, label { margin-bottom: 5px; color: #42535a; font-size: 12px; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid #d9d6ce; border-radius: 10px; padding: 10px 11px; outline: 0; background: #fffefd; color: var(--ledger-ink); box-shadow: inset 0 1px 2px rgba(25,32,40,.025); transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
input:hover, select:hover, textarea:hover { border-color: #c8c2b9; }
input:focus, select:focus, textarea:focus { border-color: #d8a887; box-shadow: 0 0 0 3px rgba(201,107,59,.12); }
textarea { min-height: 78px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.toolbar .field { min-width: 180px; flex: 1; }
.empty { padding: 38px 16px; color: var(--ledger-muted); text-align: center; }
.alert { margin: 0 0 16px; border: 1px solid transparent; border-radius: 11px; padding: 12px 14px; font-weight: 650; }
.alert.success { border-color: #cee5d7; background: #edf7f0; color: #2c654b; }
.alert.error { border-color: #f0d0cc; background: #fceeed; color: #963a3a; }

.receipt { max-width: 720px; margin: 0 auto; }
.receipt-head { margin-bottom: 16px; border-bottom: 1px dashed #d8d1c7; padding-bottom: 16px; text-align: center; }
.receipt-head .brand-mark { margin: 0 auto; }
.receipt-head h1 { margin: 9px 0 4px; color: var(--ledger-ink); font-size: 22px; }
.receipt-head p { margin: 0; color: var(--ledger-copper-deep); font-weight: 800; }
.receipt-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 14px; color: var(--ledger-muted); font-size: 12px; }

.login-page, .setup-page { min-height: 100vh; padding: 28px; background: radial-gradient(circle at 16% 18%, rgba(201,107,59,.22), transparent 24rem), linear-gradient(135deg, #16212c 0%, #1d2b35 52%, #f5f3ee 52%); display: grid; place-items: center; }
.login-shell, .setup-shell { display: grid; width: min(1040px, 100%); grid-template-columns: minmax(0, 1fr) 430px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 24px; background: #fffefd; box-shadow: 0 28px 80px rgba(8,15,22,.28); }
.login-brand, .setup-brand { position: relative; padding: 52px; overflow: hidden; background: linear-gradient(145deg, #16212c, #263544); color: #fff; }
.login-brand:after, .setup-brand:after { position: absolute; right: -100px; bottom: -100px; width: 330px; height: 330px; border: 1px solid rgba(247,209,181,.12); border-radius: 50%; content: ""; box-shadow: 0 0 0 48px rgba(247,209,181,.035), 0 0 0 100px rgba(247,209,181,.025); }
.login-brand .brand-mark, .setup-brand .brand-mark { width: 52px; height: 52px; }
.eyebrow { color: #f3c7a9 !important; font-size: 11px; font-weight: 850; letter-spacing: .13em; }
.login-brand h1, .setup-brand h1 { position: relative; z-index: 1; margin: 26px 0 12px; color: #fffdfb; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; letter-spacing: -.035em; }
.login-brand p, .setup-brand p { position: relative; z-index: 1; color: #c3d0d8; line-height: 1.75; }
.login-card, .setup-card { padding: 44px; background: #fffefd; }
.login-card h2, .setup-card h2 { margin: 0 0 8px; color: var(--ledger-ink); font-size: 25px; letter-spacing: -.03em; }
.login-card form { display: grid; gap: 15px; margin-top: 27px; }
.login-card .btn { min-height: 46px; margin-top: 5px; }
.setup-shell { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.form-note { color: var(--ledger-muted); font-size: 12px; line-height: 1.6; }
.print-only { display: none; }

@media (max-width: 1120px) {
  .app { grid-template-columns: 232px minmax(0, 1fr); }
  .main { padding-right: 24px; padding-left: 24px; }
  .topbar { margin-right: -24px; margin-left: -24px; padding-right: 24px; padding-left: 24px; }
  .metrics { gap: 14px; }
}

@media (max-width: 980px) {
  .app { display: block; }
  .sidebar { position: static; height: auto; min-height: auto; padding: 13px 16px 11px; overflow: visible; }
  .brand { padding: 2px 0 11px; }
  .brand h1 { font-size: 15px; }
  .nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-label, .sidebar-footer { display: none; }
  .nav a { min-height: 36px; margin: 0; padding: 8px 10px; white-space: nowrap; font-size: 12px; }
  .nav a:hover { transform: none; }
  .main { padding: 20px; }
  .topbar { min-height: auto; margin: -20px -20px 24px; padding: 15px 20px; }
  .split { grid-template-columns: 1fr; }
  .cart { min-height: unset; }
  .login-shell, .setup-shell { grid-template-columns: 1fr; max-width: 650px; }
  .login-brand, .setup-brand { padding: 32px; }
  .login-card, .setup-card { padding: 30px; }
}

@media (max-width: 640px) {
  body { font-size: 13px; background-size: 22px 22px; }
  .main { padding: 16px 12px 28px; }
  .topbar { align-items: flex-start; margin: -16px -12px 20px; padding: 14px 12px; }
  .topbar h2 { font-size: 21px; }
  .topbar .muted { font-size: 11px; }
  .user-chip { min-width: auto; padding: 7px 10px; }
  .user-chip small { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { min-height: 118px; padding: 15px; }
  .metric:after { top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }
  .metric strong { margin-top: 9px; font-size: 22px; }
  .metric p { max-width: calc(100% - 34px); font-size: 11px; }
  .card { border-radius: 15px; }
  .card:before { right: 18px; left: 18px; }
  .pad { padding: 15px; }
  .section-title { align-items: flex-start; margin-bottom: 13px; }
  .section-title h3 { font-size: 15px; }
  .form-grid, .checkout-form { grid-template-columns: 1fr; gap: 10px; }
  .form-grid .full, .checkout-form .full { grid-column: auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-card { min-height: 118px; padding: 11px; }
  .product-card strong { font-size: 13px; }
  .product-card span { font-size: 11px; }
  .table-wrap { border: 1px solid #eeeae3; }
  .table { min-width: 620px; }
  .table th, .table td { padding: 10px 8px; }
  .toolbar { align-items: stretch; }
  .toolbar > * { flex: 1 1 100%; }
  .toolbar .btn { width: 100%; }
  .receipt-meta { grid-template-columns: 1fr; }
  .login-page, .setup-page { padding: 14px; background: #16212c; }
  .login-brand, .setup-brand { padding: 28px; }
  .login-brand h1, .setup-brand h1 { margin-top: 20px; font-size: 28px; }
  .login-card, .setup-card { padding: 25px 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  body { background: #fff; }
  .sidebar, .topbar, .no-print { display: none !important; }
  .app { display: block; }
  .main { max-width: none; padding: 0; }
  .card { border: 0; border-radius: 0; box-shadow: none; }
  .card:before { display: none; }
  .print-only { display: block; }
  .receipt { max-width: none; }
  .receipt .btn { display: none; }
}

/* Exact managed-POS typography and information-hierarchy parity. */
.brand h1,
.topbar h2,
.dashboard-hero h1,
.section-title h3,
.card h3,
.card h4,
.login-card h2,
.setup-card h2,
.receipt-head h1 {
  font-family: "Noto Serif Lao", "Noto Sans Lao Looped", serif;
}

.metric strong,
.metric .trend,
.product-card .price,
.total-row b,
.total-row.total,
.table td:last-child,
.receipt-meta b,
.user-chip small,
.dashboard-kicker,
.nav-label {
  font-variant-numeric: tabular-nums;
}

.metric strong,
.product-card .price,
.total-row b,
.total-row.total,
.table td:last-child,
.receipt-meta b {
  font-family: "IBM Plex Mono", "Noto Sans Lao Looped", monospace;
  letter-spacing: -.035em;
}

.sidebar {
  width: 100%;
  padding: 18px 14px;
}

.brand {
  min-height: 72px;
  padding: 5px 10px 24px;
}

.brand h1 { font-size: 15px; font-weight: 700; }
.brand p { color: #97a8b7; font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 600; }

.nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 17px 8px 7px;
  color: #8799a8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.nav-label:after {
  height: 1px;
  flex: 1;
  content: "";
  background: rgba(255,255,255,.08);
}

.nav a {
  min-height: 39px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
}

.topbar {
  min-height: 82px;
  margin-bottom: 26px;
}

.topbar h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.topbar .muted { font-size: 12px; }
.user-chip { border-radius: 14px; min-width: 158px; }

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  margin: -4px 0 18px;
  padding: 4px 2px 0;
}

.dashboard-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ledger-copper);
  font-family: "IBM Plex Mono", "Noto Sans Lao Looped", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.dashboard-kicker:before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  content: "";
  background: currentColor;
}

.dashboard-hero h1 {
  margin: 5px 0 5px;
  color: var(--ledger-ink);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.25;
}

.dashboard-hero p { max-width: 650px; margin: 0; color: var(--ledger-muted); font-size: 13px; }
.dashboard-hero .btn { min-height: 43px; padding: 11px 16px; }

.quick-command-strip {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(0, 2.3fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid var(--ledger-rule);
  border-radius: 18px;
  background: rgba(255,254,252,.82);
  box-shadow: 0 8px 22px rgba(28,37,45,.035);
}

.quick-command-intro { display: flex; flex-direction: column; justify-content: center; padding: 4px 8px 4px 2px; }
.quick-command-intro strong { color: var(--ledger-ink); font-size: 15px; font-weight: 800; }
.quick-command-intro span { margin-top: 2px; color: var(--ledger-muted); font-size: 11px; }

.quick-command-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quick-command {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid #e4e0d8;
  border-radius: 13px;
  background: #fffefd;
  color: var(--ledger-ink);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.quick-command:hover { transform: translateY(-2px); border-color: #dcb69e; background: #fffaf6; box-shadow: 0 9px 16px rgba(28,37,45,.07); }
.quick-command-icon { display: grid; width: 31px; height: 31px; flex: none; place-items: center; border-radius: 10px; background: #eef2f5; color: #48677e; font-size: 13px; }
.quick-command:first-child .quick-command-icon { background: var(--ledger-copper-soft); color: var(--ledger-copper); }
.quick-command span:last-child { min-width: 0; overflow: hidden; font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }

.metrics { gap: 16px; }
.metric { min-height: 145px; padding: 19px 20px; }
.metric p { font-size: 12px; }
.metric strong { font-size: clamp(22px, 2.1vw, 28px); }

.split { gap: 16px; }

@media (max-width: 980px) {
  .dashboard-hero { align-items: start; }
  .quick-command-strip { grid-template-columns: 1fr; }
  .quick-command-grid { grid-template-columns: repeat(4, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 2px; }
}

@media (max-width: 640px) {
  .brand { min-height: auto; padding-bottom: 10px; }
  .dashboard-hero { grid-template-columns: 1fr; gap: 13px; margin-bottom: 15px; }
  .dashboard-hero h1 { font-size: 27px; }
  .dashboard-hero .btn { width: 100%; }
  .quick-command-strip { gap: 12px; padding: 14px; border-radius: 15px; }
  .quick-command-grid { gap: 8px; }
  .quick-command { min-width: 154px; }
  .quick-command-intro strong { font-size: 14px; }
}
