@import url('assets/fonts.css');

/* DESIGN-elevenlabs.md: editorial display, Inter UI, warm neutrals, ink pills. */
:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Waldenburg', 'EB Garamond', 'Times New Roman', serif;
  --text-body: 16px;
  --text-small: 15px;
  --text-caption: 14px;
  --text-label: 12px;
  --text-title: 20px;
  --text-display: 36px;
  --text-value: 32px;
  --bg: #f5f5f5;
  --canvas-soft: #fafafa;
  --surface: #ffffff;
  --surface-strong: #f0efed;
  --ink: #0c0a09;
  --primary: #292524;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --body: #4e4e4e;
  --muted: #777169;
  --muted-soft: #a8a29e;
  --line: #e7e5e4;
  --line-soft: #f0efed;
  --line-strong: #d6d3d1;
  --dark: #0c0a09;
  --dark-raised: #1c1917;
  --on-dark-muted: #d6d3d1;
  --success: #166534;
  --success-bg: #f0fdf4;
  --error: #b91c1c;
  --error-bg: #fef2f2;
  --warning: #92400e;
  --warning-bg: #fffbeb;
  --info: #1e40af;
  --info-bg: #eff6ff;
  --orb-mint: #a7e5d3;
  --orb-peach: #f4c5a8;
  --orb-lavender: #c8b8e0;
  --orb-sky: #a8c8e8;
  --chart-line: #57534e;
  --chart-grid: #e7e5e4;
  --chart-fill: #d6d3d1;
  --radius-card: 16px;
  --radius-input: 8px;
  --radius-pill: 9999px;
  --space-card: 24px;
  --sidebar: 272px;
  --soft-shadow: 0 4px 16px rgb(0 0 0 / 4%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .16px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; }
button svg { pointer-events: none; }
button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 4px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary); outline-offset: 1px;
}
h1, h2, h3, p { margin: 0; }
h1 {
  color: var(--ink); font-family: var(--font-display); font-size: var(--text-display);
  font-weight: 300; line-height: 1.17; letter-spacing: -.36px;
}
h2 { font-size: var(--text-title); font-weight: 500; line-height: 1.35; letter-spacing: 0; }
h3 { font-size: 18px; font-weight: 500; line-height: 1.44; letter-spacing: .18px; }
small { font-size: var(--text-caption); }
strong, b { font-weight: 500; }
.muted { color: var(--muted); }
.positive { color: var(--success); }
.negative { color: var(--error); }
.mono { font-variant-numeric: tabular-nums; }
.flex { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 4px; }
.gap20 { gap: 20px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mb16 { margin-bottom: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip { position: fixed; top: -60px; left: 24px; z-index: 100; padding: 12px 20px; background: var(--primary); color: var(--on-primary); border-radius: var(--radius-pill); }
.skip:focus { top: 12px; }

/* Workspace navigation */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 25;
  display: flex; flex-direction: column; padding: 28px 16px 16px;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--canvas-soft); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 12px; margin-bottom: 28px; }
.brand img { width: 132px; height: auto; object-fit: contain; }
.brand-divider { height: 32px; width: 1px; background: var(--line-strong); }
.brand-tag { font-size: 11px; font-weight: 500; line-height: 1.45; letter-spacing: 1.1px; color: var(--muted); }
.workspace-selector { display: flex; align-items: center; gap: 12px; padding: 14px 12px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.workspace-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; color: var(--primary); background: var(--surface-strong); border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-weight: 500; }
.workspace-selector strong { font-size: 15px; font-weight: 500; }
.workspace-selector small { font-size: 14px; color: var(--muted); }
.nav-label { font-size: var(--text-label); font-weight: 600; letter-spacing: .96px; color: var(--muted); padding: 0 12px; margin-bottom: 8px; }
.nav-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 28px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: var(--body); font-size: 15px; font-weight: 500; line-height: 1.4; }
.nav-item svg { width: 20px; height: 20px; color: var(--muted); }
.nav-item:hover { background: var(--surface-strong); color: var(--ink); }
.nav-item.active { background: var(--surface-strong); color: var(--ink); }
.nav-item.active svg { color: var(--primary); }
.nav-count { margin-left: auto; border-radius: var(--radius-pill); padding: 2px 8px; background: var(--surface-strong); color: var(--body); border: 1px solid var(--line); font-size: 12px; font-weight: 500; }
.nav-item.active .nav-count { background: var(--surface); }
.sidebar-bottom { margin-top: auto; padding-top: 16px; }
.growth-card { padding: 16px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.growth-card strong { display: block; font-size: 15px; line-height: 1.5; margin: 8px 0; }
.growth-card .eyebrow { font-size: 12px; }
.progress-track { height: 4px; margin: 16px 0 12px; overflow: hidden; border-radius: 4px; background: var(--line-soft); }
.progress-track span { display: block; height: 100%; background: var(--primary); }
.profile-button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 20px 8px 4px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface-strong); color: var(--body); font-size: 14px; font-weight: 500; }
.profile-button strong { display: block; font-size: 15px; }
.profile-button small { font-size: 14px; color: var(--muted); }
.profile-button > svg { margin-left: auto; }

/* Header and shared page layout */
.main-shell { margin-left: var(--sidebar); }
.topbar { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--canvas-soft); }
.breadcrumbs { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.breadcrumbs b { color: var(--primary); font-weight: 400; }
.topbar-tools { display: flex; align-items: center; gap: 16px; }
.global-search { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.global-search input { width: 176px; padding: 10px 0; border: 0; border-radius: 4px; background: transparent; color: var(--body); font-size: 14px; }
.global-search input::placeholder { color: var(--muted); }
.key-hint { font-size: 12px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; }
.icon-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--body); }
.icon-button > svg { width: 20px; height: 20px; }
.icon-button:hover { border-color: var(--line); background: var(--surface-strong); }
.notification-dot { position: absolute; width: 6px; height: 6px; top: 8px; right: 9px; background: var(--primary); border-radius: 50%; border: 1px solid var(--surface); }
.demo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--body); font-size: 12px; line-height: 1.4; white-space: nowrap; }
.demo-dot { height: 5px; width: 5px; background: var(--primary); border-radius: 50%; }
.role-select { max-width: 170px; padding: 10px 0; border: 0; background: transparent; color: var(--body); font-size: 14px; cursor: pointer; }
.mobile-menu { display: none; }
.content { max-width: 1280px; margin: 0 auto; padding: 40px 32px 24px; min-height: calc(100vh - 80px); }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-header > div:first-child { min-width: 0; }
.page-header p { max-width: 720px; margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--body); }
.eyebrow { margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .96px; text-transform: uppercase; }
.page-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
.btn > svg { width: 18px; height: 18px; }
.btn:hover { background: var(--surface-strong); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); }
.btn.inverse { background: var(--surface); border-color: var(--surface); color: var(--primary); }
.btn.inverse:hover { background: var(--surface-strong); border-color: var(--surface-strong); }
.btn.ghost { padding-left: 0; padding-right: 0; border-color: transparent; background: transparent; }
.btn.danger { color: var(--error); border-color: var(--line-strong); }
.btn.danger:hover { background: var(--error-bg); }
.btn.small { padding: 9px 16px; min-height: 40px; font-size: 14px; }
.btn.full { width: 100%; }
.select-control { min-height: 44px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--body); font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: var(--primary); font-size: 14px; font-weight: 500; line-height: 1.5; text-align: left; cursor: pointer; }
.text-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 24px 0; }
.card-head p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.card-body { padding: 24px; }
.card-footer { display: flex; align-items: flex-start; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.5; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; margin-bottom: 28px; }
.metric { padding: 24px; min-height: 172px; }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; align-items: flex-start; margin-bottom: 16px; color: var(--body); font-size: 15px; line-height: 1.47; }
.metric-label svg { width: 20px; height: 20px; color: var(--muted); }
.metric-value { font-family: var(--font-body); font-size: var(--text-value); font-weight: 500; line-height: 1.2; letter-spacing: -.8px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-value small { color: var(--muted); font-size: 22px; font-weight: 400; letter-spacing: -.3px; }
.metric-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.delta { font-size: 12px; line-height: 1.4; font-weight: 500; padding: 3px 8px; border-radius: var(--radius-pill); color: var(--body); background: var(--surface-strong); }
.dashboard-middle, .dashboard-bottom { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(320px,1fr); gap: 24px; margin-bottom: 28px; }
.chart-card { min-height: 388px; }
.chart-header-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; padding: 0 24px; margin-top: 20px; font-size: 28px; font-weight: 500; letter-spacing: -.56px; font-variant-numeric: tabular-nums; }
.chart-header-value span { color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.chart-wrap { padding: 24px; }
.chart-legend { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--chart-line); }
.sales-plot { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 16px; }
.chart-axis-y { display: flex; flex-direction: column; justify-content: space-between; height: 200px; padding: 6px 0; color: var(--muted); font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.chart-canvas { min-width: 0; }
.sales-chart { display: block; height: 200px; width: 100%; overflow: visible; }
.chart-axis-x { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.chart-axis-x span { white-space: nowrap; }
.balance-card { display: flex; flex-direction: column; position: relative; isolation: isolate; background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.balance-card::after { content: ''; position: absolute; z-index: -1; top: -150px; right: -150px; width: 300px; height: 300px; border: 1px solid rgb(255 255 255 / 5%); border-radius: 50%; box-shadow: 0 0 0 40px rgb(255 255 255 / 2%),0 0 0 80px rgb(255 255 255 / 1%); pointer-events: none; }
.balance-card .card-head { padding: 28px 28px 0; }
.balance-card .eyebrow { margin: 0; color: var(--on-dark-muted); font-size: 12px; }
.balance-card .card-body { display: flex; flex-direction: column; flex: 1; padding: 0 28px 28px; }
.balance-label { margin-top: 28px; color: var(--on-dark-muted); font-size: 15px; }
.balance-amount { margin-top: 8px; font-size: 40px; font-weight: 500; line-height: 1.2; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.balance-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 18%); }
.balance-mini small { display: block; margin-bottom: 8px; color: var(--on-dark-muted); font-size: 14px; }
.balance-mini strong { font-size: 18px; font-weight: 500; }
.balance-card .btn.full { margin-top: auto; }
.balance-card .fine { margin-top: 16px; color: var(--on-dark-muted); font-size: 14px; line-height: 1.5; text-align: center; }

/* Data tables preserve readable text and scroll locally when needed. */
.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; line-height: 1.47; font-variant-numeric: tabular-nums; }
.table th { padding: 16px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--canvas-soft); color: var(--muted); font-size: 12px; line-height: 1.4; letter-spacing: .6px; font-weight: 600; white-space: nowrap; }
.table td { padding: 20px 24px; border-bottom: 1px solid var(--line-soft); color: var(--body); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background-color: var(--canvas-soft); }
.table .text-link { font-size: 15px; }
.table td > .hint { display: block; margin-top: 6px; font-size: 14px; }
.table.compact th { padding: 16px 24px; }
.table.compact td { padding: 20px 24px; }
.store-cell { display: flex; align-items: center; gap: 12px; }
.store-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-strong); color: var(--body); font-size: 14px; font-weight: 500; }
.store-icon.tone-1, .store-icon.tone-2, .store-icon.tone-3 { background: var(--surface-strong); border-color: var(--line); color: var(--body); }
.store-name { display: block; font-size: 15px; line-height: 1.47; color: var(--primary); font-weight: 500; text-align: left; }
.store-name small { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); font-weight: 400; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--radius-pill); color: var(--body); background: var(--surface-strong); font-size: 12px; line-height: 1.4; letter-spacing: .25px; font-weight: 500; white-space: nowrap; }
.status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.green { color: var(--success); background: var(--success-bg); }
.status.amber { color: var(--warning); background: var(--warning-bg); }
.status.red { color: var(--error); background: var(--error-bg); }
.status.blue { color: var(--info); background: var(--info-bg); }
.status.gray { color: var(--body); background: var(--surface-strong); }
.table-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; }
.table-top h2 { font-size: 20px; }
.table-more { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.5; }
[data-page='stores'] > .card .table { min-width: 1120px; }
[data-page='orders'] > .card .table { min-width: 1080px; }
[data-page='commissions'] > .card .table { min-width: 1000px; }
[data-page='returns'] > .card .table { min-width: 1100px; }
[data-page='stores'] > .card .table td:first-child,
[data-page='orders'] > .card .table td:first-child,
[data-page='commissions'] > .card .table td:first-child,
[data-page='returns'] > .card .table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); border-right: 1px solid var(--line-soft); }
.tabs { display: flex; align-items: stretch; gap: 8px; padding: 0 24px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab { padding: 18px 12px; min-height: 56px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 15px; line-height: 1.4; white-space: nowrap; }
.tab.active { border-bottom-color: var(--primary); color: var(--primary); font-weight: 500; }
.tab span { margin-left: 8px; padding: 2px 7px; border-radius: var(--radius-pill); background: var(--surface-strong); font-size: 12px; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px; }
.filter-search { display: flex; align-items: center; gap: 8px; min-width: 300px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-input); color: var(--muted); background: var(--surface); }
.filter-search input { width: 100%; min-width: 0; padding: 12px 0; border: 0; background: transparent; color: var(--body); font-size: 15px; }
.filter-search input::placeholder { color: var(--muted); }
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.page-button { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--body); font-size: 14px; }
.page-button.active { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.activity-list { padding: 0 24px; }
.activity { display: flex; align-items: flex-start; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.activity:last-child { border-bottom: 0; }
.activity-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; color: var(--body); background: var(--surface-strong); }
.activity-icon svg { width: 18px; height: 18px; }
.activity-icon.amber { color: var(--warning); background: var(--warning-bg); }
.activity-icon.blue { color: var(--body); background: var(--surface-strong); }
.activity p { color: var(--body); font-size: 15px; line-height: 1.5; }
.activity strong { color: var(--primary); font-weight: 500; }
.activity small { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.referral-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; isolation: isolate; margin-top: 28px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--canvas-soft); }
.referral-strip::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 260px; border-radius: inherit; background: radial-gradient(ellipse at 25% 50%, var(--orb-mint), transparent 72%); opacity: .18; pointer-events: none; }
.referral-strip-icon { display: flex; padding: 12px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--body); }
.referral-strip h3 { font-size: 18px; }
.referral-strip p { margin-top: 8px; color: var(--body); font-size: 14px; line-height: 1.5; }
.referral-strip code { display: none; }
.page-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.page-foot > span { display: flex; align-items: flex-start; gap: 8px; }
.page-foot svg { margin-top: 3px; width: 14px; height: 14px; }

/* Secondary screens, forms and drawers */
.two-cols { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(320px,1fr); align-items: start; gap: 24px; }
.three-cols { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.insight-card { padding: 24px; }
.insight-card > svg { box-sizing: content-box; padding: 12px; margin-bottom: 20px; color: var(--primary); background: var(--surface-strong); border-radius: 50%; }
.insight-card h3 { margin-bottom: 12px; font-size: 20px; }
.insight-card p { color: var(--body); font-size: 16px; line-height: 1.5; }
.callout { display: flex; align-items: flex-start; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas-soft); color: var(--body); font-size: 15px; line-height: 1.5; }
.callout > svg { margin-top: 3px; width: 20px; height: 20px; color: var(--muted); }
.callout strong { display: block; margin-bottom: 4px; color: var(--primary); font-weight: 500; }
.callout.amber { background: var(--warning-bg); color: var(--warning); border-color: var(--line); }
.callout.amber strong, .callout.amber svg { color: var(--warning); }
.description-list { margin: 0; }
.description-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; line-height: 1.5; }
.description-list > div:last-child { border-bottom: 0; }
.description-list dt { color: var(--muted); }
.description-list dd { margin: 0; color: var(--primary); text-align: right; font-weight: 400; overflow-wrap: anywhere; }
.big-stat { margin: 16px 0; color: var(--ink); font-family: var(--font-body); font-size: 32px; font-weight: 500; line-height: 1.2; letter-spacing: -.64px; font-variant-numeric: tabular-nums; }
.legend-list { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.legend-row { display: flex; align-items: center; gap: 10px; color: var(--body); font-size: 14px; }
.legend-row strong { margin-left: auto; color: var(--primary); font-weight: 500; font-variant-numeric: tabular-nums; }
.legend-square { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; }
.rule-row { display: flex; align-items: flex-start; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.rule-row:last-child { border-bottom: 0; }
.step-num { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; color: var(--primary); background: var(--surface-strong); font-size: 14px; }
.rule-row strong { color: var(--primary); font-weight: 500; }
.rule-row p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.campaign-card { padding: 28px; margin-bottom: 24px; }
.campaign-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.campaign-title h3 { font-size: 20px; }
.campaign-title p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.link-box { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 24px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas-soft); }
.link-box code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 14px/1.5 var(--font-body); color: var(--body); }
.campaign-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.campaign-stats small { display: block; margin-bottom: 8px; font-size: 12px; line-height: 1.4; letter-spacing: .6px; color: var(--muted); }
.campaign-stats strong { color: var(--primary); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.field label { color: var(--primary); font-size: 15px; line-height: 1.4; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-input); background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 400; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:disabled, .field select:disabled { color: var(--muted); background: var(--canvas-soft); opacity: 1; }
.field small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.field textarea { min-height: 120px; resize: vertical; }
.field-error, .form-error { margin-bottom: 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--error-bg); color: var(--error); font-size: 14px; line-height: 1.5; }
.field-error:empty, .form-error:empty { display: none; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; top: 12px; left: 16px; color: var(--muted); font-size: 16px; }
.input-prefix input { padding-left: 32px; }
.check-row { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; color: var(--body); font-size: 15px; line-height: 1.5; }
.check-row input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row h3 { margin-bottom: 8px; font-size: 16px; font-weight: 500; }
.setting-row p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.setting-row > strong { white-space: nowrap; font-size: 16px; font-variant-numeric: tabular-nums; }
.empty-state { padding: 64px 24px; text-align: center; color: var(--muted); }
.empty-state > svg { margin-bottom: 20px; }
.empty-state h3 { margin-bottom: 12px; color: var(--primary); font-size: 20px; }
.empty-state p { font-size: 15px; line-height: 1.5; }
.empty-state .btn { margin-top: 24px; }
.overlay-backdrop { position: fixed; inset: 0; z-index: 60; background: rgb(12 10 9 / 35%); backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; z-index: 61; display: flex; flex-direction: column; width: min(600px,100%); background: var(--surface); box-shadow: -12px 0 48px rgb(12 10 9 / 8%); animation: slide .18s ease; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; line-height: 1.3; font-weight: 500; }
.drawer-head .eyebrow { font-size: 12px; margin-bottom: 8px; }
.drawer-body { flex: 1; min-height: 0; padding: 28px 32px; overflow-y: auto; }
.drawer-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding: 24px 32px; border-top: 1px solid var(--line); background: var(--canvas-soft); }
.drawer-footer .btn:first-child { margin-right: auto; }
.drawer .table th, .drawer .table td { padding: 16px; }
.drawer .table { font-size: 15px; }
.drawer .form-grid .metric { min-height: 144px; padding: 20px; }
.drawer .form-grid .metric-label { font-size: 14px; }
.drawer .metric-value { font-size: 28px; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 61; width: min(520px,calc(100% - 32px)); max-height: 90dvh; overflow-y: auto; border-radius: 16px; background: var(--surface); box-shadow: 0 20px 80px rgb(12 10 9 / 15%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 28px 0; }
.modal-head h2 { font-size: 24px; line-height: 1.3; font-weight: 500; }
.modal-body { padding: 24px 28px 28px; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; padding: 20px 28px; border-top: 1px solid var(--line); background: var(--canvas-soft); }
.stepper { display: flex; gap: 8px; margin-bottom: 28px; }
.stepper > div { flex: 1; height: 3px; border-radius: 4px; background: var(--line); }
.stepper > .active { background: var(--primary); }
.form-intro { margin-bottom: 28px; color: var(--body); font-size: 16px; line-height: 1.5; }
.review-block { margin-bottom: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.review-block h3 { margin-bottom: 16px; font-size: 18px; }
.review-block p { color: var(--body); font-size: 15px; line-height: 1.6; }
.timeline { margin: 28px 0; }
.timeline-item { position: relative; margin-left: 6px; padding: 0 0 28px 28px; border-left: 1px solid var(--line-strong); color: var(--primary); font-size: 15px; }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item::before { content: ''; position: absolute; top: 7px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--surface); }
.timeline-item p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.upload-area { position: relative; display: block; padding: 36px 24px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--canvas-soft); color: var(--body); text-align: center; cursor: pointer; }
.upload-area input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.upload-area svg { color: var(--muted); margin-bottom: 20px; }
.upload-area p { font-size: 16px; color: var(--primary); }
.upload-area small { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }
.file-preview { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--body); font-size: 14px; line-height: 1.7; }
.file-preview p { margin: 8px 0; }
.toast { position: fixed; bottom: 24px; left: calc(50% + var(--sidebar)/2); transform: translateX(-50%); z-index: 100; display: flex; align-items: flex-start; gap: 12px; max-width: min(580px,calc(100% - 32px)); padding: 16px 24px; border-radius: 12px; background: var(--primary); color: var(--on-primary); box-shadow: var(--soft-shadow); font-size: 15px; line-height: 1.5; }
.toast > svg { margin-top: 3px; }
.notification-panel { position: fixed; top: 72px; right: 24px; z-index: 50; width: 400px; max-width: calc(100% - 32px); box-shadow: var(--soft-shadow); }
.notification-panel .activity button { padding: 0; border: 0; background: transparent; text-align: left; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.5; }
.section-heading { margin: 28px 0 16px; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .96px; text-transform: uppercase; }
.security-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-strong); color: var(--primary); }
.otp-input { font-family: var(--font-body); font-size: 28px !important; letter-spacing: 10px; text-align: center; font-weight: 500 !important; }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 8px auto 24px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-strong); color: var(--primary); }
.success-state { padding: 12px 0; text-align: center; }
.success-state h2 { margin-bottom: 16px; font-size: 28px; font-weight: 500; }
.success-state p { color: var(--body); font-size: 16px; line-height: 1.5; }
.owner-banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 32px; border-bottom: 1px solid var(--line); background: var(--surface-strong); color: var(--body); font-size: 14px; line-height: 1.5; }
.owner-banner svg { width: 18px; height: 18px; margin-top: 2px; }
.bar-chart-row { display: grid; grid-template-columns: 120px minmax(40px,1fr) 88px; align-items: center; gap: 16px; margin: 24px 0; color: var(--body); font-size: 14px; line-height: 1.5; }
.bar-chart-track { height: 8px; border-radius: 4px; background: var(--surface-strong); overflow: hidden; }
.bar-chart-track span { display: block; height: 100%; border-radius: 4px; background: var(--chart-line); }
.bar-chart-row strong { color: var(--primary); font-size: 14px; font-weight: 500; text-align: right; }
.search-result { display: flex; align-items: center; gap: 16px; width: 100%; margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; }
.search-result:hover { background: var(--canvas-soft); }
.search-result strong { display: block; color: var(--primary); font-size: 16px; }
.search-result small { color: var(--muted); font-size: 14px; }

/* Sign-in and retailer activation use the reference's light editorial display. */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100dvh; background: var(--surface); }
.auth-story { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 48px 64px; background: var(--canvas-soft); color: var(--ink); border-right: 1px solid var(--line); }
.auth-story::after { content: ''; position: absolute; z-index: -1; right: -120px; bottom: -220px; width: 600px; height: 650px; background: radial-gradient(ellipse at 35% 35%,var(--orb-mint),transparent 54%),radial-gradient(ellipse at 70% 55%,var(--orb-peach),transparent 55%),radial-gradient(ellipse at 48% 70%,var(--orb-lavender),transparent 60%); opacity: .32; pointer-events: none; }
.auth-story .brand { padding: 0; margin-bottom: 80px; }
.auth-story .brand img { width: 152px; }
.auth-story .brand-tag { color: var(--muted); }
.auth-story h1 { max-width: 440px; font-family: var(--font-display); font-size: 48px; font-weight: 300; line-height: 1.08; letter-spacing: -.96px; }
.auth-story h1 em { font-style: normal; color: var(--primary); }
.auth-story > p { max-width: 400px; margin-top: 24px; color: var(--body); font-size: 16px; line-height: 1.5; }
.auth-proof { position: relative; margin-top: 40px; max-width: 400px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: rgb(255 255 255 / 65%); }
.auth-proof h3 { font-size: 18px; color: var(--primary); }
.auth-proof p { font-size: 15px; line-height: 1.5; color: var(--body); }
.auth-story-footer { margin-top: auto; padding-top: 64px; color: var(--muted); font-size: 14px; }
.auth-form-area { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 96px 40px 48px; }
.auth-back { position: absolute; top: 28px; right: 32px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form h1 { font-family: var(--font-display); font-size: 36px; font-weight: 300; line-height: 1.17; letter-spacing: -.36px; }
.auth-form > .muted { margin: 16px 0 32px; font-size: 16px; line-height: 1.5; color: var(--body); }
.auth-form .field { margin-bottom: 24px; }
.auth-bottom { margin-top: 28px; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.auth-form .demo-chip { margin-bottom: 24px; }
.auth-form .btn.full { min-height: 48px; }
.join-layout { min-height: 100dvh; padding: 32px; background: var(--bg); }
.join-wrap { max-width: 1040px; margin: 0 auto; }
.join-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.join-header img { width: 152px; height: auto; }
.join-card { display: grid; grid-template-columns: .82fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--soft-shadow); }
.join-aside { position: relative; isolation: isolate; overflow: hidden; padding: 40px 32px; background: var(--canvas-soft); color: var(--ink); border-right: 1px solid var(--line); }
.join-aside::after { content: ''; position: absolute; z-index: -1; left: -160px; bottom: -160px; width: 600px; height: 600px; background: radial-gradient(ellipse at 40% 45%,var(--orb-mint),transparent 65%),radial-gradient(ellipse at 75% 70%,var(--orb-peach),transparent 65%); opacity: .18; pointer-events: none; }
.join-aside h1 { margin: 24px 0; font-family: var(--font-display); font-size: 40px; font-weight: 300; line-height: 1.13; letter-spacing: -.4px; }
.join-aside p { font-size: 16px; color: var(--body); line-height: 1.5; }
.join-benefit { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; color: var(--body); font-size: 15px; line-height: 1.5; }
.join-benefit svg { width: 20px; height: 20px; margin-top: 2px; color: var(--primary); }
.join-form { padding: 40px; }
.join-form h2 { font-size: 24px; margin-bottom: 12px; }
.join-form > p { font-size: 16px; color: var(--body); line-height: 1.5; margin-bottom: 28px; }
.nav-scrim { display: none; }

@keyframes slide { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (max-height: 1100px) { .growth-card { display: none; } }
@media (max-width: 1400px) {
  .topbar-tools .demo-chip { display: none; }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .dashboard-bottom .activity-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
  .dashboard-bottom .activity { border-bottom: 0; }
  .dashboard-bottom .activity .text-link { align-items: flex-start; }
}
@media (max-width: 1200px) {
  :root { --sidebar: 248px; }
  .brand { gap: 10px; padding: 0 8px; }
  .brand img { width: 116px; }
  .brand-tag { font-size: 10px; }
  .breadcrumbs > span, .breadcrumbs > svg { display: none; }
  .global-search input { width: 152px; }
  .key-hint { display: none; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-middle { grid-template-columns: 1fr; }
  .balance-card .card-body { padding-top: 0; }
  .balance-card .balance-mini { margin: 24px 0; }
  .balance-card .btn.full { align-self: flex-start; width: auto; min-width: 260px; }
  .balance-card .fine { text-align: left; }
  .two-cols { grid-template-columns: 1fr; }
  .three-cols { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .referral-strip { align-items: flex-start; }
  .referral-strip .flex { align-items: flex-start; }
  .page-header { align-items: flex-start; flex-direction: column; gap: 24px; }
  .auth-story { padding: 40px; }
  .auth-story h1 { font-size: 44px; }
}
@media (max-width: 1000px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 272px; transform: translateX(-100%); transition: transform .18s ease; }
  .sidebar.open { transform: translateX(0); }
  .nav-scrim.open { display: block; position: fixed; inset: 0; z-index: 24; background: rgb(12 10 9 / 35%); backdrop-filter: blur(2px); }
  .mobile-menu { display: inline-flex; }
  .topbar { gap: 12px; }
  .breadcrumbs { margin-right: auto; }
  .brand img { width: 132px; }
  .brand-tag { font-size: 11px; }
  .page-header { flex-direction: row; align-items: flex-end; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .metric { padding: 20px; }
  .metric-label { font-size: 15px; }
  .metric-value { font-size: 30px; }
  .drawer { width: min(600px,100%); }
  .dashboard-bottom .activity-list { grid-template-columns: 1fr; gap: 0; }
  .dashboard-bottom .activity { border-bottom: 1px solid var(--line-soft); }
  .dashboard-bottom .activity:last-child { border-bottom: 0; }
}
@media (max-width: 800px) {
  .topbar { height: 72px; padding: 0 20px; }
  .topbar-tools { gap: 12px; }
  .global-search { display: none; }
  .content { padding: 32px 24px 24px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .page-header p { font-size: 16px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .metric { padding: 24px; min-height: 172px; }
  .metric-value { font-size: 32px; }
  .page-actions { flex-wrap: wrap; gap: 12px; }
  .referral-strip { flex-direction: column; gap: 24px; }
  .campaign-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  .owner-banner { padding: 12px 24px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-form-area { min-height: 100dvh; padding: 100px 28px 48px; }
  .auth-form { max-width: 440px; }
  .join-card { grid-template-columns: 1fr; }
  .join-aside { border-right: 0; border-bottom: 1px solid var(--line); }
  .join-benefit { display: none; }
  .join-aside h1 { font-size: 36px; }
  .join-aside h1 br { display: none; }
  .join-aside .callout { margin-top: 24px; }
}
@media (max-width: 640px) {
  :root { --text-display: 32px; }
  .topbar { gap: 8px; padding: 0 12px; }
  .topbar-tools { gap: 4px; }
  .breadcrumbs { font-size: 14px; }
  .role-select { max-width: 144px; font-size: 14px; }
  .content { padding: 28px 16px 24px; }
  .page-header { gap: 24px; margin-bottom: 28px; }
  .page-header h1 { font-size: 32px; }
  .page-header p { max-width: none; }
  .page-actions { width: 100%; }
  .page-actions .btn, .page-actions .select-control { flex: 1; }
  .metrics { gap: 12px; margin-bottom: 24px; }
  .metric { padding: 20px 16px; min-height: 178px; }
  .metric-label { align-items: flex-start; font-size: 15px; gap: 6px; }
  .metric-label svg { width: 18px; height: 18px; }
  .metric-value { font-size: 28px; letter-spacing: -.56px; }
  .metric-value small { font-size: 20px; }
  .metric-sub { margin-top: 12px; font-size: 14px; }
  .metric-sub .delta { font-size: 12px; }
  .dashboard-middle, .dashboard-bottom { gap: 24px; margin-bottom: 24px; }
  .card-head, .table-top { padding: 24px 20px 0; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .table-top { padding-bottom: 24px; }
  .card-body { padding: 24px 20px; }
  .card-footer { padding: 16px 20px; }
  .chart-wrap { padding: 24px 20px; }
  .chart-header-value { padding: 0 20px; font-size: 28px; }
  .sales-plot { grid-template-columns: 44px minmax(0,1fr); gap: 12px; }
  .chart-axis-x span:nth-child(2), .chart-axis-x span:nth-child(4) { display: none; }
  .chart-axis-y, .chart-axis-x { font-size: 14px; }
  .balance-card .card-head { padding: 24px 24px 0; }
  .balance-card .card-body { padding: 0 24px 24px; }
  .balance-amount { font-size: 36px; }
  .balance-mini { gap: 16px; }
  .balance-mini strong { font-size: 18px; }
  .balance-card .btn.full { width: 100%; min-width: 0; }
  .balance-card .fine { text-align: center; }
  .dashboard-bottom .table.compact { min-width: 640px; }
  .activity-list { padding: 0 20px; }
  .table-more { padding: 20px; }
  .table th, .table td { padding-left: 20px; padding-right: 20px; }
  .tabs { padding: 0 12px; gap: 4px; }
  .tab { padding: 16px 10px; font-size: 15px; }
  .filters { padding: 20px; }
  .filter-search { flex: 1; width: 100%; min-width: 100%; }
  .filters > .flex { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .drawer .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .drawer .metric-value { font-size: 24px; }
  .drawer .form-grid .metric { padding: 16px; }
  .drawer-head { padding: 24px; }
  .drawer-head h2, .modal-head h2 { font-size: 24px; }
  .drawer-body { padding: 24px; }
  .drawer-footer { padding: 20px 24px; }
  .drawer-footer .btn { white-space: normal; text-align: center; }
  .modal-head { padding: 24px 24px 0; }
  .modal-body { padding: 24px; }
  .modal-foot { padding: 20px 24px; }
  .modal-foot .btn { flex: 1; white-space: normal; text-align: center; }
  .three-cols { grid-template-columns: 1fr; }
  .setting-row { gap: 16px; }
  .setting-row .btn { flex-shrink: 0; }
  .campaign-card { padding: 24px; }
  .campaign-title { align-items: flex-start; }
  .campaign-title h3 { font-size: 18px; }
  .referral-strip { padding: 24px; }
  .referral-strip .btn { width: 100%; }
  .page-foot { align-items: flex-start; flex-direction: column; }
  .bar-chart-row { grid-template-columns: 112px minmax(24px,1fr) 84px; gap: 12px; }
  .join-layout { padding: 24px 16px; }
  .join-header { align-items: flex-start; flex-wrap: wrap; margin-bottom: 28px; }
  .join-header img { width: 132px; }
  .join-aside, .join-form { padding: 28px 24px; }
  .join-aside h1 { font-size: 32px; }
  .auth-back { top: 24px; right: 24px; }
  .owner-banner { padding: 12px 16px; }
}
@media (max-width: 440px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: 164px; padding: 24px; }
  .metric-value { font-size: 32px; }
  .metric-label { min-height: auto; }
  .role-select { max-width: 128px; }
  .breadcrumbs { display: none; }
  .topbar-tools { margin-left: auto; }
  .drawer .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
