:root {
  --sidebar: #5cbf93;
  --sidebar-active: rgba(255, 255, 255, 0.16);
  --sidebar-text: rgba(255, 255, 255, 0.78);
  --sidebar-text-strong: #ffffff;
  --bg: #eef2f6;
  --card: #ffffff;
  --text: #1e2a37;
  --text-muted: #8993a4;
  --text-faint: #b7c0cc;
  --green: #3db880;
  --green-light: #e3f6ec;
  --teal: #57d9c4;
  --coral: #f2735a;
  --coral-light: #fdece7;
  --amber: #e0a540;
  --amber-light: #fbf1de;
  --border: #e8edf2;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -14px rgba(30, 42, 55, 0.18);
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button, select { font-family: inherit; }

a { color: inherit; text-decoration: none; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; flex-shrink: 0; }

/* Shell */
.shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #63c99b 0%, #52b588 100%);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 28px;
}

.sidebar-brand .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--sidebar-text-strong);
  letter-spacing: 0.2px;
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.sidebar-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 8px 8px 28px;
}

.sidebar-profile .sidebar-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-profile .sidebar-avatar-lg svg {
  width: 30px;
  height: 30px;
  color: #ffffff;
}

.sidebar-profile .profile-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--sidebar-text-strong);
}

.sidebar-profile .profile-role {
  font-size: 13px;
  color: var(--sidebar-text);
  margin-top: -6px;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-nav a svg { opacity: 0.85; }

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--sidebar-text-strong);
}

.sidebar-nav a.active {
  background: var(--sidebar-active);
  color: var(--sidebar-text-strong);
  box-shadow: inset 3px 0 0 #ffffff;
}

.sidebar-nav a.active svg { opacity: 1; }

.sidebar-spacer { flex: 1; }

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--sidebar-text);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--sidebar-text-strong);
}

/* Main */
.main {
  flex: 1;
  min-width: 0;
  padding: 28px 36px 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  min-height: 40px;
}

.breadcrumb {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb .current { color: var(--text); font-weight: 600; }

.merchant-select {
  position: relative;
}

.pill-select {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.pill-select svg { width: 14px; height: 14px; color: var(--text-muted); transition: transform .15s ease; }
.pill-select[aria-expanded="true"] svg { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 20;
}

.dropdown-menu.open { display: block; }

.dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}

.dropdown-menu button:hover { background: var(--bg); }

/* Grid */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}

.grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}

.col-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.card-fill {
  background: var(--green);
  color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-fill .big-number { color: #ffffff; }
.card-fill .stat-label { color: rgba(255, 255, 255, 0.85); }
.card-fill .stat-label strong { color: #ffffff; }

/* KPI card */
.kpi-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon svg { width: 24px; height: 24px; color: #ffffff; }

.kpi-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
}

.kpi-label { font-size: 14px; color: var(--text-muted); margin-top: 2px; }

.kpi-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--green);
  font-weight: 600;
  margin-top: 4px;
}

.kpi-change svg { width: 12px; height: 12px; }

/* Card header */
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 4px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.card-link svg { width: 14px; height: 14px; }

.legend-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-dot.round { border-radius: 50%; }

.chip-select {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.chip-select svg { width: 11px; height: 11px; color: var(--text-muted); }

.btn-pill {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-pill svg { width: 12px; height: 12px; }

/* Sales summary row */
.metric-strip {
  display: flex;
  gap: 40px;
  margin: 18px 0 20px;
  flex-wrap: wrap;
}

.metric-strip .metric {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-strip .metric-label {
  font-size: 12.5px;
  color: var(--text-faint);
  display: block;
}

.metric-strip .metric-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

/* Profile / settings list card */
.info-list { display: flex; flex-direction: column; gap: 14px; }

.info-list .line { font-size: 14px; color: var(--text); line-height: 1.5; }
.info-list .label { font-size: 12.5px; color: var(--text-faint); }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 13.5px;
  color: var(--text);
}

.setting-row span.val { color: var(--text-faint); }

/* Orders badge row */
.badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--coral-light);
  border-radius: 999px;
  padding: 10px 10px 10px 10px;
  margin-bottom: 18px;
}

.badge-row-left { display: flex; align-items: center; gap: 14px; }

.badge-count {
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 7px 16px;
}

.badge-row-left .badge-text {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-row-left .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.badge-row-right {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  padding-right: 8px;
}

.badge-row-right svg { width: 13px; height: 13px; }

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-tile {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.stat-tile .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.stat-tile .lbl { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

.donut-row {
  display: flex;
  align-items: center;
  gap: 28px;
}

.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 14px; }

.donut-legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.donut-legend-row .lbl-col { width: 128px; flex-shrink: 0; font-size: 13px; color: var(--text); }
.donut-legend-row .lbl-col strong { display: block; font-size: 11.5px; color: var(--text-faint); font-weight: 500; }
.donut-legend-row .bar-track { flex: 1; height: 7px; background: var(--border); border-radius: 999px; overflow: hidden; }
.donut-legend-row .bar-fill { height: 100%; border-radius: 999px; }
.donut-legend-row .val { width: 30px; text-align: right; font-size: 13px; font-weight: 600; color: var(--text); }

/* Big stat card (admin) */
.big-stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.1;
}

.big-stat .lbl { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.card-fill .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
}

.card-fill .lbl { font-size: 13.5px; margin-top: 4px; color: rgba(255,255,255,0.9); }
.card-fill .lbl strong { color: #fff; }

.pie-legend { display: flex; flex-direction: column; gap: 11px; }

.pie-legend-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text); }

/* Placeholder page */
.placeholder-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 80px 40px;
  min-height: 420px;
}

.placeholder-wrap svg { width: 56px; height: 56px; color: var(--text-faint); margin-bottom: 18px; }
.placeholder-wrap h1 { font-family: var(--font-display); font-size: 22px; margin: 0 0 8px; }
.placeholder-wrap p { font-size: 14.5px; color: var(--text-muted); max-width: 420px; margin: 0; line-height: 1.6; }
.placeholder-wrap a.back { margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--green); }

/* Orders page */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: 999px;
  padding: 10px 16px;
  flex: 1;
  min-width: 200px;
}

.search-input svg { width: 16px; height: 16px; color: var(--text-faint); flex-shrink: 0; }

.search-input input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
  width: 100%;
}

.search-input input::placeholder { color: var(--text-faint); }

.filter-bar .chip-select { background: var(--bg); }

.table-wrap { overflow-x: auto; }

.orders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.orders-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--border);
}

.orders-table td {
  padding: 14px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.orders-table tr:last-child td { border-bottom: none; }

.orders-table .order-id { font-weight: 600; font-family: var(--font-display); }
.orders-table .muted { color: var(--text-muted); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

.status-pill.completed { background: var(--green-light); color: var(--green); }
.status-pill.pending { background: var(--amber-light); color: var(--amber); }
.status-pill.refunded { background: var(--coral-light); color: var(--coral); }

.empty-row td {
  text-align: center;
  padding: 48px 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.table-count { font-size: 13px; color: var(--text-muted); }

.pagination { display: flex; align-items: center; gap: 6px; }

.pagination button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pagination button.active { background: var(--green); color: #fff; }
.pagination button:disabled { opacity: 0.4; cursor: default; }
.pagination button svg { width: 14px; height: 14px; }

/* Case study article */
.article-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px 100px;
}

.article-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.article-topbar .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
}

.article-back svg { width: 14px; height: 14px; }

.article-hero {
  text-align: center;
  padding: 36px 0 44px;
}

.article-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 38px;
  margin: 0 0 14px;
  color: var(--text);
}

.article-hero .dek {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.article-section {
  margin-bottom: 48px;
}

.article-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 14px;
  color: var(--text);
}

.article-section p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 14px;
}

.article-section p.muted { color: var(--text-muted); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.problem-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px;
}

.problem-card .n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral-light);
  color: var(--coral);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.problem-card h3 {
  font-size: 15px;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
}

.problem-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; line-height: 1.6; }

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.insight-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
}

.insight-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.figure {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 18px 0;
}

.figure img { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

.figure figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  padding: 0 4px;
}

.figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.iteration-track {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 22px;
}

.iteration-step { display: flex; gap: 18px; align-items: flex-start; }

.iteration-step .marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 4px;
}

.iteration-step .marker .pip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.iteration-step .marker .line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
}

.iteration-step:last-child .marker .line { display: none; }

.iteration-body { flex: 1; min-width: 0; }

.iteration-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.iteration-body h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 8px;
}

.iteration-body p { font-size: 14px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.6; }

.article-footer {
  text-align: center;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}

.article-footer a { color: var(--green); font-weight: 600; }

.competitor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.competitor-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 16px;
}

.competitor-card h3 {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  margin: 14px 0 4px;
}

.competitor-card p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.6; }

.mini-mockup {
  display: flex;
  gap: 6px;
  background: #eef1f4;
  border-radius: var(--radius-sm);
  padding: 10px;
  height: 108px;
  overflow: hidden;
}

.mini-mockup .mm-sidebar {
  width: 18%;
  background: #c3cbd4;
  border-radius: 5px;
}

.mini-mockup .mm-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-mockup .mm-row { display: flex; gap: 6px; }

.mini-mockup .mm-tile {
  flex: 1;
  background: #ffffff;
  border-radius: 4px;
}

.mini-mockup.pattern-cards .mm-row { height: 22px; }
.mini-mockup.pattern-cards .mm-chart { flex: 1; background: #ffffff; border-radius: 4px; }

.mini-mockup.pattern-table .mm-line { height: 10px; background: #ffffff; border-radius: 3px; margin-bottom: 6px; }
.mini-mockup.pattern-table .mm-line.short { width: 60%; }

.mini-mockup.pattern-chart .mm-chart-big {
  flex: 1;
  background: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 8px;
}

.mini-mockup.pattern-chart .mm-bar { flex: 1; background: #aab3bf; border-radius: 2px; }

.mini-mockup.pattern-minimal .mm-big-num {
  flex: 1;
  background: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-mockup.pattern-minimal .mm-big-num span {
  width: 40%;
  height: 14px;
  background: #c3cbd4;
  border-radius: 3px;
}

@media (max-width: 760px) {
  .problem-grid { grid-template-columns: 1fr; }
  .figure-pair { grid-template-columns: 1fr; }
  .competitor-grid { grid-template-columns: 1fr; }
  .article-hero h1 { font-size: 28px; }
}

/* Responsive */
@media (max-width: 1180px) {
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; flex-direction: row; flex-wrap: wrap; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar-spacer { display: none; }
  .kpi-row { grid-template-columns: 1fr; }
  .main { padding: 20px; }
}

@media (max-width: 560px) {
  .stat-tiles { grid-template-columns: 1fr; }
  .metric-strip { gap: 20px; }
}
