/*-----------------------------------*\
 * Synergy Robotics — Admin panel
 * Layout follows the Pesepay merchant dashboard; colours & type follow the Synergy storefront.
 * 1rem = 10px (same scale as the storefront stylesheet).
\*-----------------------------------*/

:root {
  --brand: hsl(329, 52%, 41%);          /* #a0336c */
  --brand-hover: hsl(329, 58%, 50%);    /* #bd3b7f */
  --brand-dark: hsl(329, 52%, 33%);
  --brand-tint: hsla(329, 52%, 41%, 0.08);
  --ink: hsl(217, 28%, 9%);
  --ink-soft: hsl(0, 0%, 27%);
  --muted: hsl(0, 0%, 42%);
  --muted-link: hsl(329, 20%, 55%);
  --line: hsl(0, 0%, 88%);
  --line-soft: hsl(0, 0%, 94%);
  --bg: hsl(0, 0%, 98%);
  --surface: #fff;
  --surface-muted: hsl(210, 20%, 98%);

  /* Reserved status palette — always shown with an icon + label. */
  --good-bg: hsl(145, 55%, 92%);  --good-ink: hsl(145, 63%, 24%);
  --warn-bg: hsl(42, 95%, 90%);   --warn-ink: hsl(32, 85%, 28%);
  --info-bg: hsl(210, 85%, 93%);  --info-ink: hsl(212, 70%, 32%);
  --bad-bg: hsl(0, 80%, 94%);     --bad-ink: hsl(0, 65%, 36%);

  --ff-body: 'Cabin', sans-serif;
  --ff-head: 'Cabin', sans-serif;
  --sidebar-w: 300px;
  --topbar-h: 90px;
  --radius: 14px;
  --shadow: 0 2px 12px hsla(0, 0%, 0%, 0.04);
  --t: 0.25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 10px; }
body { font-family: var(--ff-body); font-size: 1.5rem; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
li { list-style: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; } /* keep the hidden attribute working despite display rules above */
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ion-icon { display: block; }
table { border-collapse: collapse; width: 100%; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Layout ---------- */
.app { min-height: 100vh; display: flex; border-top: 6px solid var(--brand-dark); }

.sidebar {
  position: fixed;
  top: 6px; bottom: 0; left: 0;
  width: var(--sidebar-w);
  background: var(--brand);
  overflow-y: auto;
  z-index: 20;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.33, 0.85, 0.56, 1.02);
  padding-bottom: 30px;
}
.sidebar.open { transform: none; box-shadow: 10px 0 30px hsla(0, 0%, 0%, 0.25); }
.overlay { position: fixed; inset: 0; background: hsla(0, 0%, 0%, 0.45); z-index: 15; display: none; }
.overlay.show { display: block; }

.sidebar-logo { display: block; padding: 18px 30px 28px; }
.sidebar-logo img { width: 100%; max-width: 220px; height: auto; }

.nav { display: grid; gap: 6px; }
.nav-link {
  display: flex; align-items: center; gap: 20px;
  width: 100%;
  padding: 14px 24px 14px 30px;
  color: #fff;
  font-size: 1.9rem;
  text-align: left;
  border-left: 5px solid transparent;
  transition: background var(--t);
}
.nav-link:hover, .nav-link:focus-visible { background: hsla(0, 0%, 100%, 0.1); }
.nav-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--brand);
  font-size: 2rem;
}
.nav-label { flex: 1; }
.nav-chevron { font-size: 2rem; transition: transform var(--t); }
.nav-group.expanded .nav-chevron { transform: rotate(90deg); }

/* Active item: full-width white row, dark accent bar, brand label, inverted tile. */
.nav-link.active { background: #fff; color: var(--brand); border-left-color: var(--ink); }
.nav-link.active .nav-icon { background: var(--brand); color: #fff; }

.subnav { display: none; padding: 4px 0 8px 94px; }
.nav-group.expanded .subnav { display: grid; }
.subnav a { color: hsla(0, 0%, 100%, 0.85); padding: 9px 0; font-size: 1.6rem; }
.subnav a:hover { color: #fff; }
.subnav a.active { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

.frame { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - 6px); }

.topbar {
  position: sticky; top: 0; z-index: 10;
  height: var(--topbar-h);
  background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: 20px;
  box-shadow: 0 1px 0 var(--line-soft);
}
.menu-btn { font-size: 3rem; color: var(--brand); padding: 6px; }
.topbar-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.topbar-link { color: var(--muted-link); font-size: 1.8rem; transition: color var(--t); }
.topbar-link:hover { color: var(--brand); }
.user, .bell { position: relative; }
.user-btn { display: flex; align-items: center; gap: 12px; color: var(--muted-link); font-size: 1.8rem; }
.user-btn ion-icon { font-size: 3rem; }
.user-btn:hover { color: var(--brand); }
.bell-btn { position: relative; display: grid; place-items: center; font-size: 2.8rem; color: var(--ink); padding: 4px; }
.bell-btn:hover { color: var(--brand); }
.bell-count {
  position: absolute; top: -2px; right: -6px;
  min-width: 20px; height: 20px; padding-inline: 5px;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--brand); color: #fff;
  font-size: 1.1rem; font-weight: 700;
}
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 12px);
  min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px hsla(0, 0%, 0%, 0.12);
  overflow: hidden; display: none; z-index: 30;
}
[data-dropdown].open .dropdown-menu { display: block; }
.dropdown-title { padding: 12px 16px 6px; font-size: 1.2rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 16px; font-size: 1.5rem; }
.dropdown-menu ion-icon { font-size: 1.8rem; color: var(--brand); }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--brand-tint); color: var(--brand); }

.content { flex: 1; padding: 30px 20px 50px; }

.footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 60px;
  background: hsl(0, 0%, 92%);
  padding: 22px 30px;
  font-size: 1.7rem;
}
.footer a { font-weight: 500; }
.footer a:hover { color: var(--brand); }
.footer span { margin-left: auto; color: var(--muted); font-size: 1.4rem; }

/* ---------- Page scaffolding ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.page-title { font-family: var(--ff-head); font-size: 3rem; font-weight: 700; }
.page-sub { color: var(--muted); margin-top: 4px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 500; margin-bottom: 12px; }

.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card-title { font-family: var(--ff-head); font-size: 2.1rem; font-weight: 700; }
.stack { display: grid; gap: 24px; align-content: start; min-width: 0; }
.grid-2 { display: grid; gap: 24px; align-items: start; }

.text-link { color: var(--brand); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.text-link:hover { color: var(--brand-hover); text-decoration: underline; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #fff;
  border: 1px solid var(--brand); border-radius: 6px;
  padding: 11px 20px; font-size: 1.5rem; font-weight: 500;
  transition: var(--t); white-space: nowrap;
}
.btn:hover, .btn:focus-visible { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: hsla(0, 0%, 0%, 0.06); border-color: var(--ink); }
.btn-danger { background: transparent; color: var(--bad-ink); border-color: var(--bad-ink); }
.btn-danger:hover { background: var(--bad-bg); border-color: var(--bad-ink); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.icon-btn { display: grid; place-items: center; color: var(--muted); font-size: 2rem; padding: 8px; border-radius: 50%; transition: var(--t); }
.icon-btn:hover, .icon-btn:focus-visible { background: var(--brand-tint); color: var(--brand); }
.icon-btn.danger:hover { background: var(--bad-bg); color: var(--bad-ink); }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.row-actions form { display: contents; }

.form-grid { display: grid; gap: 16px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 1.4rem; font-weight: 500; }
.field input, .field select, .field textarea, .select, .search input {
  width: 100%;
  font-size: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 14px;
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint);
}
.select { width: auto; padding-block: 10px; }
.error { color: var(--bad-ink); font-size: 1.3rem; }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand); }
.toggle-row { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 20px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.search {
  flex: 1 1 240px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 6px;
  padding-left: 14px; background: #fff;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.search ion-icon { color: var(--muted); font-size: 2rem; }
.search input { border: none; padding-left: 0; box-shadow: none !important; outline: none; }

.alert { padding: 14px 18px; border-radius: 8px; font-size: 1.4rem; line-height: 1.6; margin-bottom: 20px; }
.alert-error { background: var(--bad-bg); color: var(--bad-ink); }
.alert-success { background: var(--good-bg); color: var(--good-ink); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { font-size: 1.4rem; }
.table th {
  text-align: left; font-weight: 500; color: var(--muted);
  font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table small { color: var(--muted); font-size: 1.25rem; }
.table th.num { text-align: right; }
.empty { padding: 40px 10px; text-align: center; color: var(--muted); }

.thumb { display: flex; align-items: center; gap: 12px; }
.thumb img { width: 46px; height: 46px; object-fit: contain; background: var(--surface-muted); border-radius: 8px; flex-shrink: 0; }
.thumb a { font-weight: 500; }
.thumb a:hover { color: var(--brand); }
.thumb small { display: block; margin-top: 2px; }

/* Status chip: neutral chip, dark label. */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 1.25rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.badge ion-icon { display: none; }
.badge-label.badge-brand { color: var(--brand); border-color: hsla(329, 52%, 41%, 0.3); }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; font-size: 1.4rem; color: var(--muted); }
.pager .btn { padding: 8px 16px; font-size: 1.4rem; }
.pager .disabled { opacity: 0.4; pointer-events: none; }

/* ---------- Dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat {
  display: grid; gap: 4px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); transition: var(--t);
}
a.stat:hover { border-color: hsla(329, 52%, 41%, 0.4); transform: translateY(-2px); }
.stat-icon {
  display: block; color: var(--brand);
  font-size: 3.2rem; line-height: 1; margin-bottom: 10px;
}
/* Slightly bolder outline so the larger icons read clearly without a background. */
.stat-icon ion-icon { --ionicon-stroke-width: 40px; }
.stat-label { color: var(--muted); font-size: 1.4rem; }
.stat-value { font-size: 2.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-foot { color: var(--muted); font-size: 1.25rem; }

.mini-list { display: grid; gap: 12px; }
.mini-list li { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; }
.mini-list img { width: 44px; height: 44px; object-fit: contain; background: var(--surface-muted); border-radius: 8px; flex-shrink: 0; }
.mini-list .name { flex: 1; min-width: 0; }

/* ---------- Chart ---------- */
.chart-scroll { overflow-x: auto; padding-top: 48px; margin-top: -48px; }
.chart { position: relative; min-width: 560px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: hsl(0, 0%, 91%); stroke-width: 1; }
.chart .tick { fill: hsl(0, 0%, 45%); font-size: 12px; font-family: var(--ff-body); }
.chart .bar { fill: var(--brand); transition: fill 0.15s ease; }
.chart .slot:hover .bar, .chart .slot:focus .bar { fill: var(--brand-dark); }
.chart .hit { fill: transparent; cursor: default; }
.chart-tip {
  position: absolute; transform: translate(-50%, calc(-100% - 10px));
  background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 6px;
  font-size: 1.3rem; white-space: nowrap; pointer-events: none;
  display: none; text-align: center; box-shadow: 0 6px 18px hsla(0, 0%, 0%, 0.2);
}
.chart-tip span { display: block; opacity: 0.75; font-size: 1.2rem; }

.hbars { display: grid; gap: 14px; }
.hbar { display: grid; gap: 6px; font-size: 1.4rem; }
.hbar-meta { display: flex; justify-content: space-between; gap: 12px; }
.hbar-meta span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.hbar-track { height: 10px; background: hsl(0, 0%, 95%); border-radius: 5px; overflow: hidden; }
.hbar-fill { height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; min-width: 2px; }

/* ---------- Detail pages ---------- */
.items { display: grid; gap: 12px; margin-bottom: 16px; }
.items li {
  display: grid; grid-template-columns: 56px 1fr auto;
  grid-template-areas: "img name total" "img qty total";
  gap: 2px 14px; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-soft);
}
.items img { grid-area: img; width: 56px; height: 56px; object-fit: contain; background: var(--surface-muted); border-radius: 8px; }
.items .name { grid-area: name; }
.items .qty { grid-area: qty; color: var(--muted); font-size: 1.3rem; }
.items strong { grid-area: total; }
.totals { max-width: 320px; margin-left: auto; }
.row { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; }
.row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 1.8rem; }
.row.total strong { color: var(--brand); }
.facts { display: grid; gap: 12px; font-size: 1.5rem; line-height: 1.6; }
.facts dt { color: var(--muted); font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.4px; }
address { font-style: normal; line-height: 1.7; }
.address-grid { display: grid; gap: 14px; }
.address-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; font-size: 1.4rem; }
.address-card .badge { margin-bottom: 8px; }

.image-drop {
  display: grid; place-items: center; gap: 10px;
  aspect-ratio: 1 / 1;
  border: 2px dashed var(--line); border-radius: 12px; background: var(--surface-muted);
  cursor: pointer; overflow: hidden; color: var(--muted); font-size: 1.4rem; text-align: center; padding: 16px;
}
.image-drop:hover { border-color: var(--brand); }
.image-drop img { width: 100%; height: 100%; object-fit: contain; }
.image-drop ion-icon { font-size: 4.4rem; color: var(--brand); }
.image-drop [data-image-placeholder] { display: grid; justify-items: center; gap: 10px; max-width: 24ch; line-height: 1.5; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; right: 25px; bottom: 25px; z-index: 50;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 8px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.25);
  animation: toast 4s forwards;
}
.toast ion-icon { font-size: 2rem; color: var(--brand-hover); }
@keyframes toast {
  0% { opacity: 0; transform: translateY(20px); }
  8%, 85% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-10px); visibility: hidden; }
}

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr; border-top: 6px solid var(--brand-dark); }
/* Brand panel: just the logo, centred. */
.login-brand { display: none; background: var(--brand); padding: 50px; align-items: center; justify-content: center; }
.login-brand img.logo { width: min(320px, 70%); }
.login-main { display: grid; place-items: center; padding: 30px 16px; }
.login-card { width: 100%; max-width: 420px; }
.login-card .mobile-logo { width: 190px; margin-bottom: 30px; }
.login-card h1 { font-family: var(--ff-head); font-size: 3rem; margin-bottom: 6px; }
.login-card .page-sub { margin-bottom: 28px; }
.login-card form { display: grid; gap: 16px; }
.login-card .btn { padding-block: 13px; font-size: 1.6rem; margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (min-width: 575px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .address-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .content { padding: 36px 34px 60px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: 1fr 300px; }
}
@media (min-width: 992px) {
  .login-page { grid-template-columns: 1fr 1fr; }
  .login-brand { display: flex; }
  .login-card .mobile-logo { display: none; }
}
@media (min-width: 1100px) {
  .sidebar { transform: none; }
  .frame { margin-left: var(--sidebar-w); }
  .menu-btn, .overlay { display: none !important; }
  .grid-2.wide-side { grid-template-columns: 1fr 380px; }
  .topbar { padding-inline: 40px; }
}
@media (max-width: 574px) {
  .topbar-link, .user-btn span { display: none; }
  .topbar-actions { gap: 14px; }
}

/* ---------- Pick n Pay–style list tooling ---------- */
.kpis {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.kpi { display: grid; gap: 6px; padding: 22px 24px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); transition: background var(--t); }
a.kpi:hover { background: var(--brand-tint); }
.kpi strong { font-size: 2.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi strong small { font-size: 1.5rem; font-weight: 400; color: var(--muted); }
.kpi span { font-size: 1.6rem; color: var(--ink-soft); }

.filter-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
  padding: 10px 0 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 6px;
  background: hsl(0, 0%, 93%); color: var(--ink-soft); font-size: 1.5rem; font-weight: 500;
  transition: var(--t);
}
.chip:hover { background: hsl(0, 0%, 88%); }
.chip.active { background: var(--brand); color: #fff; }
.chip.active .count-pill { background: hsla(0, 0%, 100%, 0.25); }
.chip-solid { color: #fff; }
.chip-red { background: hsl(0, 72%, 52%); } .chip-red:hover { background: hsl(0, 72%, 45%); }
.chip-orange { background: hsl(24, 92%, 52%); } .chip-orange:hover { background: hsl(24, 92%, 45%); }
.chip-green { background: hsl(145, 63%, 38%); } .chip-green:hover { background: hsl(145, 63%, 32%); }
.filter-search { display: flex; gap: 8px; flex: 1 1 360px; justify-content: flex-end; }
.filter-search input {
  flex: 1; min-width: 0; max-width: 240px;
  border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; background: #fff; font-size: 1.5rem;
}
.filter-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.filter-search .btn { padding-inline: 14px; }

.card.flush { padding: 0; }
.padded { padding: 20px 24px; }
.card-head.padded { margin: 0; border-bottom: 1px solid var(--line-soft); }
.card.flush .table th:first-child, .card.flush .table td:first-child { padding-left: 24px; }
.card.flush .table th:last-child, .card.flush .table td:last-child { padding-right: 24px; }
.padded:empty { display: none; }

.with-side { display: grid; gap: 24px; align-items: start; }
.side-panel { display: grid; gap: 20px; }
.count-list { display: grid; gap: 4px; }
.count-list a, .category-list a {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  padding: 10px 14px; border-radius: 8px; font-size: 1.6rem; transition: var(--t);
}
.count-list a:hover, .category-list a:hover { background: var(--brand-tint); }
.count-list a.active, .category-list a.active { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.category-list { display: grid; gap: 6px; }
.category-list > li > a { background: var(--surface); border: 1px solid var(--line-soft); }
.category-list ul { display: grid; gap: 2px; padding: 4px 0 4px 16px; }
.category-list ul a { font-size: 1.45rem; }
.count-pill {
  display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding-inline: 8px;
  border-radius: 11px; background: var(--brand); color: #fff; font-size: 1.2rem; font-weight: 700;
}
.count-pill.dark { background: var(--ink); }
.stock-ok { color: var(--good-ink); font-weight: 600; }

.avatar {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: hsl(0, 0%, 72%); color: #fff; font-weight: 700; font-size: 1.6rem;
}

.cat-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 14px 18px; box-shadow: var(--shadow);
}
.cat-row.child { margin-left: 44px; }
.cat-row.child::before { content: "↳"; color: var(--muted); }
.cat-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cat-main small { color: var(--muted); font-size: 1.25rem; }
.stack > .cat-row { margin: 0; }
fieldset.field { border: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 4px; }

.banner-thumb { width: 200px; max-width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: 8px; }
.image-drop.wide { aspect-ratio: 16 / 9; }
.help-list { display: grid; gap: 8px; padding-left: 18px; font-size: 1.4rem; line-height: 1.6; }
.help-list li { list-style: disc; }
code { background: var(--surface-muted); border: 1px solid var(--line-soft); border-radius: 4px; padding: 1px 6px; font-size: 1.3rem; }

@media (min-width: 768px) {
  .kpis { grid-template-columns: repeat(5, 1fr); }
  .kpi { border-bottom: none; }
  .kpi:last-child { border-right: none; }
}
@media (min-width: 1100px) {
  .with-side { grid-template-columns: 1fr 300px; }
}
.nowrap { white-space: nowrap; }

/* ---------- Dashboard (Pick n Pay layout) ---------- */
.dash-head { display: grid; gap: 14px; }
.dash-role { color: var(--brand); font-weight: 600; font-size: 1.7rem; }
.platform-filter { display: flex; align-items: center; gap: 12px; font-size: 1.8rem; }
.platform-filter .select { min-width: 130px; font-size: 1.6rem; }

.card-label { font-family: var(--ff-head); font-size: 1.9rem; font-weight: 600; color: var(--brand); }
.card-label-note { color: var(--info-ink); font-weight: 500; margin-left: 8px; }

.visitors-row { display: grid; gap: 24px; align-items: stretch; }
.visitors-row > .card { margin-top: 0; } /* side by side, not stacked */
.online-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.online-card .card-label { align-self: flex-start; }
.online-now { font-size: 3.6rem; font-weight: 700; color: var(--brand); margin: 18px 0 10px; font-variant-numeric: tabular-nums; }
.gauge { width: 100%; max-width: 320px; }
.gauge path { fill: none; stroke-width: 36; }
.gauge-track { stroke: hsl(0, 0%, 88%); }
.gauge-value { stroke: var(--brand); }
.online-caption { color: var(--muted); font-size: 1.35rem; margin-top: 12px; }

.seg { display: inline-flex; gap: 6px; }
.seg-btn { padding: 8px 14px; border-radius: 6px; font-size: 1.6rem; font-weight: 600; color: var(--ink-soft); transition: var(--t); }
.seg-btn:hover { background: hsl(0, 0%, 95%); }
.seg-btn.active { background: hsl(0, 0%, 92%); color: var(--ink); }

@media (min-width: 992px) {
  .visitors-row { grid-template-columns: minmax(280px, 1fr) 2fr; }
}

/* ---------- Orders list ---------- */
.order-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 20px; }
.order-date { display: flex; align-items: center; gap: 10px; }
.order-date span { font-weight: 600; color: var(--ink-soft); }
.order-date input {
  font: inherit; font-size: 1.5rem; color: var(--ink);
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.order-date input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.btn-reset { background: var(--bad-ink); border-color: var(--bad-ink); padding-block: 9px; }
.btn-reset:hover, .btn-reset:focus-visible { background: hsl(0, 65%, 30%); border-color: hsl(0, 65%, 30%); }

.orders-card { overflow: hidden; }
.orders-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 20px 24px; background: var(--surface-muted); border-bottom: 1px solid var(--line-soft);
}
.orders-title { font-family: var(--ff-head); font-size: 2.4rem; font-weight: 700; color: var(--ink); }
.orders-actions { display: flex; align-items: center; gap: 22px; }
.orders-action {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 1.6rem; color: var(--muted); background: none; border: none; cursor: pointer; padding: 4px 0;
  transition: color var(--t);
}
.orders-action ion-icon { font-size: 2rem; }
.orders-action:hover, .orders-action:focus-visible, .orders-action[aria-expanded="true"] { color: var(--ink); }
.orders-action.download { color: var(--brand); }
.orders-action.download:hover, .orders-action.download:focus-visible { color: var(--brand-hover); }

.orders-search { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.orders-search .search { flex: 1 1 260px; }

.order-rows > li + li { border-top: 1px solid var(--line-soft); }
.order-row {
  display: grid; gap: 6px 16px; align-items: start;
  grid-template-columns: 1fr auto;
  grid-template-areas: "ref total" "status status" "customer customer" "when when" "where where";
  padding: 18px 20px; color: var(--ink); transition: background var(--t);
}
.order-row:hover, .order-row:focus-visible { background: var(--brand-tint); }

.order-ref { grid-area: ref; font-weight: 700; color: var(--muted); overflow-wrap: anywhere; }
.order-ref-label { display: inline; }
.order-channel { color: var(--muted-link); font-weight: 600; }
.order-total { grid-area: total; font-size: 1.7rem; font-weight: 700; text-align: right; white-space: nowrap; }
.order-status { grid-area: status; display: inline-flex; align-items: center; gap: 8px; font-size: 1.4rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; }
.order-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; background: var(--dot, var(--muted)); }
.order-customer, .order-when { display: flex; flex-direction: column; gap: 2px; }
.order-customer { grid-area: customer; font-weight: 500; }
.order-when { grid-area: when; color: var(--ink-soft); }
.order-customer small, .order-when small { color: var(--muted); font-size: 1.35rem; }
.order-where { grid-area: where; font-size: 1.5rem; }

/* Status colour sits next to the written label, never on its own. */
.status-pending { --dot: hsl(38, 92%, 50%); }
.status-processing { --dot: hsl(221, 75%, 50%); }
.status-ready { --dot: hsl(271, 76%, 55%); }
.status-shipped { --dot: hsl(190, 80%, 40%); }
.status-delivered { --dot: hsl(145, 63%, 38%); }
.status-cancelled { --dot: hsl(0, 70%, 50%); }

.orders-foot { padding: 4px 24px 8px; border-top: 1px solid var(--line-soft); }
.orders-foot:has(> :empty), .orders-foot:empty { display: none; }

@media (min-width: 640px) {
  .order-row {
    grid-template-columns: 1fr 1fr auto;
    grid-template-areas: "ref status total" "customer when when" "where where where";
  }
}

/* Wide screens: one line per order, columns like a table. */
@media (min-width: 1100px) {
  .order-row {
    grid-template-columns: 150px 150px minmax(140px, 1fr) minmax(190px, 1.2fr) minmax(150px, 1fr) 100px;
    grid-template-areas: "ref status customer when where total";
    padding: 22px 24px;
    gap: 16px;
  }
  .order-ref-label { display: block; }
  .order-status { flex-direction: column; text-align: center; gap: 6px; }
}

@media (max-width: 574px) {
  .order-date { flex: 1 1 100%; justify-content: space-between; }
  .order-date input { flex: 1; min-width: 0; }
  .orders-head, .orders-search { padding-inline: 16px; }
  .order-row { padding: 16px; }
}

/* Automatic circuit corner for product photos. */
.product-brand-frame { position: relative; overflow: hidden; isolation: isolate; }
.product-brand-frame::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 14%;
  max-width: 42px;
  min-width: 18px;
  aspect-ratio: 1;
  background: url('/images/product-brand-corner.svg') left bottom / contain no-repeat;
  pointer-events: none;
  z-index: 1;
}

.image-drop.product-brand-frame:not(:has([data-image-preview]:not([hidden])))::after { display: none; }
.product-brand-thumb { display: block; width: 46px; height: 46px; flex-shrink: 0; border-radius: 8px; }
.thumb .product-brand-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Settings: consistent section headings, field alignment, and responsive spacing. */
.settings-page { max-width: 1120px; margin-inline: auto; }
.settings-heading { display: flex; align-items: center; gap: 16px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid #e7e8ec; }
.settings-heading-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid #ead9e3; background: transparent; border-radius: 13px; color: var(--brand); font-size: 2.4rem; flex-shrink: 0; }
.settings-heading .page-title { font-size: 2.8rem; letter-spacing: -.5px; }
.settings-heading .page-sub { color: #727580; font-size: 1.4rem; line-height: 1.6; margin-top: 6px; }
.settings-form { display: grid; gap: 20px; }
.settings-section { display: grid; grid-template-columns: 240px minmax(0, 1fr); background: #fff; border: 1px solid #e7e8ed; border-radius: 12px; box-shadow: 0 3px 12px #19233303; overflow: hidden; }
.settings-section-heading { padding: 28px 26px; background: #fcfbfc; border-right: 1px solid #f0edf0; }
.settings-section-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #a0336c; background: transparent; font-size: 3.2rem; margin-bottom: 16px; }
.settings-image-icon::before { content: ""; width: 38px; height: 38px; background-color: currentColor; -webkit-mask: var(--settings-icon-url) center / contain no-repeat; mask: var(--settings-icon-url) center / contain no-repeat; }
.settings-section-heading h2 { font-size: 1.7rem; line-height: 1.4; font-weight: 600; color: #272d39; }
.settings-section-heading p { margin-top: 9px; color: #757986; font-size: 1.25rem; line-height: 1.75; max-width: 28ch; }
.settings-section-fields { padding: 28px; min-width: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; align-items: start; }
.settings-full { grid-column: 1 / -1; }
.settings-page .field { gap: 9px; min-width: 0; }
.settings-page .field > span { color: #3e4452; font-size: 1.3rem; font-weight: 600; }
.settings-page .field :is(input, textarea) { border: 1px solid #d1d5df; border-radius: 10px; padding: 13px 15px; font-size: 1.4rem; line-height: 1.6; background: #fcfcfe; color: #252c3b; width: 100%; min-width: 0; box-shadow: 0 1px 2px #20263505; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.settings-page .field :is(input, textarea):hover { border-color: #b7a7b3; background: #fff; }
.settings-page .field input { min-height: 48px; }
.settings-page .field textarea { resize: vertical; }
.settings-page .field :is(input, textarea):focus { border-color: var(--brand); background: #fff; outline: none; box-shadow: 0 0 0 4px var(--brand-tint); }
.settings-page .field [aria-invalid="true"], .settings-page .field [aria-invalid="true"]:hover { border-color: var(--bad-ink); }
.settings-hint { display: block; font-size: 1.15rem; color: #777d89; line-height: 1.6; }
.settings-stock-field { max-width: 340px; }
.settings-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 24px; padding: 13px 15px; border: 1px solid #ebe5e9; border-radius: 8px; background: #faf7f9; color: #796475; font-size: 1.2rem; line-height: 1.7; }
.settings-note ion-icon { font-size: 1.7rem; flex-shrink: 0; margin-top: 2px; }
.settings-save-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #fff; border: 1px solid #e7e8ed; border-radius: 12px; padding: 18px 24px; }
.settings-save-bar p { display: flex; align-items: center; gap: 8px; color: #7b808b; font-size: 1.2rem; line-height: 1.6; }
.settings-save-bar p ion-icon { color: #8f8a94; font-size: 1.7rem; flex-shrink: 0; }
.settings-save-bar .btn { border-radius: 10px; padding: 13px 24px; gap: 10px; min-height: 48px; font-size: 1.4rem; font-weight: 600; border: 1px solid var(--brand-dark); background: var(--brand); box-shadow: 0 3px 7px #a0336c26, inset 0 1px 0 #ffffff24; transition: background-color .18s ease, box-shadow .18s ease; }
.settings-save-bar .btn ion-icon { font-size: 1.8rem; }
.settings-save-bar .btn:hover { background: var(--brand-dark); box-shadow: 0 4px 10px #a0336c30; }
.settings-save-bar .btn:active { box-shadow: inset 0 2px 3px #00000015; }
@media (prefers-reduced-motion: reduce) { .settings-page .field :is(input, textarea), .settings-save-bar .btn { transition: none; } }
.settings-save-bar .btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (max-width: 900px) {
  .settings-section { grid-template-columns: 1fr; }
  .settings-section-heading { padding: 22px 24px; border-right: 0; border-bottom: 1px solid #efedf0; }
  .settings-section-icon { display: inline-grid; vertical-align: middle; margin: 0 9px 0 0; }
  .settings-section-heading h2 { display: inline; }
  .settings-section-heading p { max-width: none; margin-top: 10px; }
  .settings-section-fields { padding: 24px; }
}
@media (max-width: 575px) {
  .settings-heading { gap: 12px; align-items: flex-start; margin-bottom: 20px; padding-bottom: 20px; }
  .settings-heading-icon { width: 42px; height: 42px; font-size: 2rem; }
  .settings-heading .page-title { font-size: 2.4rem; }
  .settings-heading .page-sub { font-size: 1.25rem; }
  .settings-form { gap: 16px; }
  .settings-grid { grid-template-columns: 1fr; gap: 20px; }
  .settings-section-heading, .settings-section-fields { padding: 20px; }
  .settings-stock-field { max-width: none; }
  .settings-save-bar { flex-direction: column; align-items: stretch; padding: 18px 20px; gap: 14px; }
  .settings-save-bar .btn { width: 100%; }
}

/* Announcement editor: comfortable fields and clear publishing actions. */
.announcement-form { min-width: 0; border-color: #e4e5eb; border-radius: 14px; padding: 26px; }
.announcement-form-heading { padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid #eeedf1; }
.announcement-form-heading .card-title { font-size: 2rem; letter-spacing: -.3px; }
.announcement-form-heading p { margin-top: 8px; color: #787d88; font-size: 1.25rem; line-height: 1.6; }
.announcement-form .form-grid { gap: 20px; margin-bottom: 0; }
.announcement-form .field { gap: 8px; min-width: 0; }
.announcement-form .field > span { color: #3d4452; font-size: 1.3rem; font-weight: 600; line-height: 1.5; }
.announcement-form .field > span small { display: block; font-size: 1.1rem; font-weight: 400; margin-top: 3px; }
.announcement-form .field :is(input, textarea) { display: block; width: 100%; min-width: 0; max-width: 100%; border: 1px solid #d1d5df; border-radius: 10px; padding: 12px 14px; font-size: 1.35rem; line-height: 1.6; color: #252c3b; background: #fcfcfe; box-shadow: 0 1px 2px #20263505; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
.announcement-form .field input { min-height: 46px; }
.announcement-form .field textarea { min-height: 132px; resize: vertical; }
.announcement-form .field input::placeholder { color: #9297a3; font-size: 1.2rem; }
.announcement-form .field :is(input, textarea):hover { background: #fff; border-color: #b7a7b3; }
.announcement-form .field :is(input, textarea):focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.announcement-form .field:has(.error) :is(input, textarea) { border-color: var(--bad-ink); }
.announcement-form .checkbox { padding: 14px 0; border-top: 1px solid #eeedf1; gap: 11px; font-size: 1.3rem; font-weight: 500; }
.announcement-form .checkbox input { width: 19px; height: 19px; flex-shrink: 0; }
.announcement-form .btn-row { display: flex; gap: 10px; padding-top: 4px; }
.announcement-form .btn-row .btn { flex: 1 1 100%; min-height: 48px; border-radius: 10px; gap: 9px; font-size: 1.35rem; font-weight: 600; padding: 13px 16px; }
.announcement-form .btn-row .btn[type="submit"] { background: var(--brand); border-color: var(--brand-dark); box-shadow: 0 3px 7px #a0336c26, inset 0 1px 0 #ffffff24; }
.announcement-form .btn-row .btn[type="submit"]:hover { background: var(--brand-dark); box-shadow: 0 4px 10px #a0336c30; }
.announcement-form .btn-row .btn[type="submit"]:active { box-shadow: inset 0 2px 3px #00000015; }
.announcement-form .btn-row ion-icon { font-size: 1.8rem; }
.announcement-form .btn-row .btn-secondary { border-color: #dddfe6; background: #fff; color: #626a78; }
.announcement-form .btn-row .btn-secondary:hover { border-color: #b9bdc8; background: #f7f7fa; }
.announcement-form :is(button, a, input[type="checkbox"]):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
@media (max-width: 575px) { .announcement-form { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .announcement-form .field :is(input, textarea) { transition: none; } }

/* Skeleton loading: while the next admin page loads, the content area shows its shape (see admin.js). */
.content.is-loading > :not(.skeleton) { display: none; }
.skeleton { display: grid; gap: 24px; }
.skeleton .card + .card { margin-top: 0; }
.sk {
  display: block; max-width: 100%; height: 14px; border-radius: 4px;
  background: linear-gradient(90deg, hsl(220, 14%, 92%) 25%, hsl(220, 14%, 96.5%) 37%, hsl(220, 14%, 92%) 63%);
  background-size: 400% 100%;
  animation: sk-shimmer 1.4s ease infinite;
}
@keyframes sk-shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
.sk-stack { display: grid; gap: 12px; }
.sk-row { display: flex; align-items: center; gap: 14px; }
.sk-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sk-table { display: grid; }
.sk-table .sk-row { padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.sk-table .sk-row:last-child { border-bottom: none; }
.sk-bars { display: flex; align-items: flex-end; gap: 3%; height: 220px; }
.sk-bars .sk { flex: 1; border-radius: 4px 4px 0 0; }

/* Banner editor: keep long copy readable and make field boundaries clear. */
.banner-form .form-grid { gap: 22px 20px; grid-template-columns: minmax(0, 1fr); }
.banner-form .field { min-width: 0; gap: 9px; }
.banner-form .field > span { color: #252c3b; font-weight: 600; line-height: 1.5; }
.banner-form .field :is(input:not([type="range"]), select) {
  width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px;
  color: #1f2937; background: #f8fafc; border: 1px solid #94a3b8;
  border-radius: 8px; line-height: 1.5;
}
.banner-form .field :is(input:not([type="range"]), select):focus {
  outline: 2px solid var(--brand); outline-offset: 2px;
  border-color: var(--brand); background: #fff;
}
.banner-form .field input[type="range"] { width: 100%; min-height: 32px; padding: 0; accent-color: var(--brand); }
.banner-form .field .muted { color: #475569; line-height: 1.6; }
@media (min-width: 640px) {
  .banner-form .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner-form .banner-field-wide { grid-column: 1 / -1; }
}

/* Match the banner controls to the storefront's plum accents. */
.banner-form > .card { border-color: #eadfe6; box-shadow: 0 8px 28px #56243d06; }
.banner-form .field :is(input:not([type="range"]), select) { background: #fdfbfd; border-color: #cbbbc6; border-radius: 10px; }
.banner-form .field:has([data-banner-darkness]) { padding: 20px; border: 1px solid #eadfe6; border-radius: 12px; background: #fcf6f9; }
.banner-form [data-darkness-value] { display: inline-block; margin-left: 6px; padding: 3px 10px; border-radius: 20px; background: #f2deea; color: #842755; font-weight: 700; }
.banner-form .field input[type="range"] { cursor: pointer; }
.banner-form .image-drop { border-radius: 14px; }

/* ---------- Phones ---------- */
/* Filter bars: the search inputs share the row and never push the page wider than the screen. */
.filter-search { min-width: 0; }
@media (max-width: 640px) {
  .filter-search { flex: 1 1 100%; flex-wrap: wrap; justify-content: stretch; }
  .filter-search input { flex: 1 1 130px; max-width: none; }
  .filter-search .btn { flex: 0 0 auto; }
}

/* Tables become stacked cards: one row = one card, each cell shows its column label (labels set by admin.js). */
@media (max-width: 640px) {
  .table-wrap:has(> .table.stack) { overflow-x: visible; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack thead { display: none; }
  .table.stack tr { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
  .table.stack tr:last-child { border-bottom: none; }
  .table.stack td,
  .card.flush .table.stack td:first-child,
  .card.flush .table.stack td:last-child {
    display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 10px;
    padding: 5px 0; border: none; text-align: right; min-width: 0; overflow-wrap: anywhere;
  }
  .table.stack td br { display: none; }
  .table.stack td::before {
    content: attr(data-label); flex: none; max-width: 45%; margin-right: auto;
    color: var(--muted); font-size: 1.2rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-align: left;
  }
  .table.stack td[data-label=""]::before { content: none; }
  /* The first cell (name/thumbnail) is the card's heading. */
  .table.stack td:first-child { display: block; text-align: left; padding-bottom: 8px; }
  .table.stack td:first-child * { text-align: left; justify-content: flex-start; }
  .table.stack td:first-child::before { content: none; }
  .table.stack td[colspan] { display: block; text-align: center; padding: 18px 0; }
  .table.stack td[colspan]::before { content: none; }
  .table.stack .row-actions { justify-content: flex-end; }
}

/* Very small phones (320px): tighter page gutters and wrapping page headers. */
@media (max-width: 380px) {
  .content { padding-inline: 14px; }
  .card-head { flex-wrap: wrap; gap: 8px; }
  .chip { padding: 7px 11px; font-size: 1.4rem; }
  .stats { gap: 10px; }
  .stat { min-width: 0; padding: 16px 14px; }
  .stat-value { font-size: 2rem; overflow-wrap: anywhere; }
}
