/* Bolt Gold Partner: readable, restrained product interface. */
:root {
  color-scheme: light;
  --bg: oklch(0.968 0.004 200);
  --surface: oklch(1 0 0);
  --surface-alt: oklch(0.979 0.005 200);
  --ink: oklch(0.235 0.015 200);
  --muted: oklch(0.465 0.018 200);
  --border: oklch(0.872 0.009 200);
  --border-strong: oklch(0.73 0.013 200);
  --primary: oklch(0.395 0.065 200);
  --primary-hover: oklch(0.335 0.052 200);
  --primary-soft: oklch(0.944 0.018 200);
  --sidebar: oklch(0.205 0.012 200);
  --sidebar-hover: oklch(0.278 0.018 200);
  --sidebar-active: oklch(0.34 0.03 200);
  --sidebar-text: oklch(0.9 0.007 200);
  --sidebar-muted: oklch(0.738 0.012 200);
  --gold: oklch(0.81 0.095 85);
  --success: oklch(0.375 0.075 155);
  --success-bg: oklch(0.951 0.028 155);
  --warning: oklch(0.43 0.078 75);
  --warning-bg: oklch(0.962 0.032 85);
  --danger: oklch(0.438 0.144 25);
  --danger-bg: oklch(0.959 0.017 25);
  --info: oklch(0.395 0.073 250);
  --info-bg: oklch(0.954 0.018 250);
  --radius: 10px;
  --radius-sm: 6px;
  --sidebar-width: 232px;
  --z-nav: 20;
  --z-sticky: 30;
  --z-modal: 50;
  --z-toast: 60;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--bg); font-size: .875rem; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select, textarea { accent-color: var(--primary); }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; }
button:disabled { opacity: .55; }
input:disabled, select:disabled, textarea:disabled { color: var(--muted); background: var(--surface-alt); }
::selection { color: var(--ink); background: oklch(0.885 0.04 200); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
[hidden] { display: none !important; }
img, canvas { max-width: 100%; }
img { display: block; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
hr { height: 1px; margin: 24px 0; border: 0; background: var(--border); }

/* App frame */
.app-shell { min-height: 100dvh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: var(--z-nav);
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 25px 16px 18px;
  color: var(--sidebar-text);
  background: var(--sidebar);
}
.brand { display: flex; gap: 11px; align-items: center; margin: 0 7px 35px; color: var(--sidebar-text); font-size: .9375rem; font-weight: 650; line-height: 1.3; text-decoration: none; }
.brand:hover { color: var(--sidebar-text); }
.brand-mark { display: grid; flex-shrink: 0; place-items: center; width: 35px; height: 35px; color: var(--sidebar); background: var(--gold); border-radius: 8px; font-size: 1rem; font-weight: 800; }
.brand small { display: block; margin-top: 3px; color: var(--sidebar-muted); font-size: .75rem; font-weight: 450; }
.brand > span:last-child > span { display: block; margin-top: 3px; color: var(--sidebar-muted); font-size: .75rem; font-weight: 450; }
.nav-list { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 44px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); color: var(--sidebar-muted); background: transparent; font-weight: 550; line-height: 1.3; text-align: left; text-decoration: none; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.nav-item svg { width: 19px; height: 19px; }
.nav-item:hover { color: var(--sidebar-text); background: var(--sidebar-hover); }
.nav-item.is-active, .nav-item[aria-current="page"] { color: var(--sidebar-text); background: var(--sidebar-active); }
.nav-item:focus-visible, .sidebar .btn:focus-visible { outline-color: var(--gold); }
.sidebar-footer { display: grid; gap: 14px; margin-top: auto; padding: 22px 7px 0; color: var(--sidebar-muted); font-size: .75rem; }
.sidebar-footer .btn { color: var(--sidebar-text); border-color: var(--sidebar-hover); background: transparent; }
.sidebar-footer .btn:hover { background: var(--sidebar-hover); }
.main { min-width: 0; min-height: 100dvh; margin-left: var(--sidebar-width); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 17px 36px; border-bottom: 1px solid var(--border); background: var(--surface); }
.topbar-title { min-width: 0; font-size: .875rem; font-weight: 550; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; flex-shrink: 0; place-items: center; width: 36px; height: 36px; color: var(--primary); background: var(--primary-soft); border-radius: 10px; font-size: .8125rem; font-weight: 700; }
.content { width: 100%; max-width: 1480px; margin: 0 auto; padding: 34px 36px 52px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: .8125rem; font-weight: 550; }
.page-title { margin: 0; font-size: 1.75rem; font-weight: 670; letter-spacing: -.025em; line-height: 1.25; overflow-wrap: anywhere; }
.page-subtitle { max-width: 70ch; margin: 10px 0 0; color: var(--muted); font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Action and form vocabulary */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 15px; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--ink); background: transparent; font-size: .8125rem; font-weight: 620; line-height: 1.4; text-align: center; text-decoration: none; transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { color: var(--surface); background: var(--primary); }
.btn-primary:hover { color: var(--surface); background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-hover); }
.btn-secondary { color: var(--ink); border-color: var(--border-strong); background: var(--surface); }
.btn-secondary:hover { color: var(--ink); border-color: var(--muted); background: var(--surface-alt); }
.btn-danger { color: var(--danger); border-color: oklch(0.81 0.05 25); background: var(--surface); }
.btn-danger:hover { color: var(--danger); background: var(--danger-bg); }
.btn-icon { width: 42px; padding: 10px; }
.btn-small { min-height: 34px; padding: 6px 11px; font-size: .75rem; }
.btn.is-loading, .btn[aria-busy="true"] { cursor: progress; }
.field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.field-label { color: var(--ink); font-size: .8125rem; font-weight: 600; }
.input, .select, .textarea, .search-input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; color: var(--ink); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: .875rem; line-height: 1.4; transition: border-color 160ms var(--ease-out); }
.input::placeholder, .textarea::placeholder, .search-input::placeholder { color: var(--muted); opacity: 1; }
.input:hover, .select:hover, .textarea:hover, .search-input:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus, .search-input:focus { outline: 2px solid var(--primary); outline-offset: 2px; border-color: var(--primary); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.textarea { min-height: 110px; resize: vertical; }
.field-hint { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.form-grid > .full-width { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.form-error { margin: 0; color: var(--danger); font-size: .8125rem; }
.copy-field { display: flex; gap: 9px; align-items: center; min-width: 0; }
.copy-field .input { flex: 1; }
.copy-field .btn { flex-shrink: 0; }

/* Data: one quiet summary strip, readable rows. */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat { min-width: 0; padding: 22px 24px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-label { margin: 0 0 10px; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.stat-value { margin: 0; color: var(--ink); font-size: 1.875rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-note { margin: 9px 0 0; color: var(--muted); font-size: .75rem; }
.panel { min-width: 0; margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; min-height: 70px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.panel-title { margin: 0; font-size: 1rem; font-weight: 630; line-height: 1.4; }
.panel-body { padding: 24px; }
.panel-body > :first-child { margin-top: 0; }
.panel-body > :last-child { margin-bottom: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.toolbar .search-input { width: min(100%, 320px); }
.toolbar .select { width: auto; }
.table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border-radius: 0 0 var(--radius) var(--radius); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 15px 24px; vertical-align: middle; }
th { color: var(--muted); background: var(--surface-alt); font-size: .75rem; font-weight: 600; white-space: nowrap; }
thead { border-bottom: 1px solid var(--border); }
tbody tr + tr { border-top: 1px solid var(--border); }
tbody tr { transition: background-color 160ms var(--ease-out); }
tbody tr:hover { background: var(--surface-alt); }
td { font-size: .8125rem; }
td:has(.actions) { white-space: nowrap; }
td .muted { display: block; margin-top: 3px; font-size: .75rem; }
td .btn { white-space: nowrap; }
.status, .badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 25px; padding: 3px 8px; border-radius: 5px; color: var(--muted); background: var(--surface-alt); font-size: .6875rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.status-pending { color: var(--warning); background: var(--warning-bg); }
.status-approved, .status-active { color: var(--success); background: var(--success-bg); }
.status-paid { color: var(--primary); background: var(--primary-soft); }
.status-declined { color: var(--danger); background: var(--danger-bg); }
.status-inactive { color: var(--muted); background: oklch(0.936 0.004 200); }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 42px 24px; text-align: center; }
.empty-state h2, .empty-state h3 { margin: 14px 0 0; font-size: 1rem; font-weight: 630; }
.empty-state p { max-width: 48ch; margin: 8px 0 20px; color: var(--muted); font-size: .8125rem; }
.empty-illustration { display: grid; place-items: center; width: 48px; height: 48px; color: var(--muted); background: var(--surface-alt); border-radius: 10px; }
.empty-illustration svg { width: 23px; height: 23px; }

/* Feedback has full borders, explicit copy and semantic color. */
.notice { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); background: var(--surface-alt); font-size: .8125rem; line-height: 1.55; }
.notice p { margin: 0; }
.notice svg { width: 18px; height: 18px; margin-top: 2px; }
.notice-warning { color: var(--warning); border-color: oklch(0.86 0.04 85); background: var(--warning-bg); }
.notice-success { color: var(--success); border-color: oklch(0.847 0.035 155); background: var(--success-bg); }
.notice-info { color: var(--info); border-color: oklch(0.853 0.027 250); background: var(--info-bg); }
.notice a { color: inherit; font-weight: 650; }

/* Authentication: task-focused, with a quiet contextual aside. */
.auth-page { min-height: 100dvh; background: var(--surface); }
.auth-layout { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); min-height: 100dvh; }
.auth-aside { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 48px; color: var(--sidebar-text); background: var(--sidebar); }
.auth-aside .brand { margin: 0; }
.auth-aside h2 { max-width: 14ch; margin: 0 0 20px; font-size: 2rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.auth-aside p { max-width: 45ch; margin: 0; color: var(--sidebar-muted); font-size: .875rem; line-height: 1.7; }
.auth-aside small { color: var(--sidebar-muted); font-size: .75rem; }
.auth-content { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 40px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-title { margin: 0; font-size: 1.625rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.25; }
.auth-description { max-width: 48ch; margin: 12px 0 28px; color: var(--muted); font-size: .875rem; }
.auth-card form { display: grid; gap: 20px; }
.auth-card .btn-primary { width: 100%; min-height: 46px; margin-top: 5px; }
.auth-card .form-error { margin: 0; }
.auth-card .form-actions { margin-top: 0; padding-top: 0; border: 0; }
.auth-card .brand { margin: 0 0 34px; color: var(--ink); }
.auth-card .brand > span:last-child > span { color: var(--muted); }

/* Individual link, offer and reusable communication supports. */
.offer-card { padding: 22px 24px; border: 1px solid oklch(0.818 0.026 200); border-radius: var(--radius); color: var(--primary); background: var(--primary-soft); }
.offer-card h2, .offer-card h3 { margin: 0 0 8px; color: var(--primary); font-size: 1rem; font-weight: 650; }
.offer-card p { max-width: 65ch; margin: 6px 0 0; }
.offer-card .strong { font-size: 1.625rem; font-weight: 700; letter-spacing: -.02em; }
.offer-card .badge { color: var(--primary); background: var(--surface); }
.auth-aside .offer-card { padding: 24px; color: var(--primary); border-color: oklch(0.818 0.026 200); background: var(--primary-soft); }
.auth-aside .offer-card > span, .auth-aside .offer-card > small { display: block; margin: 0 0 10px; color: var(--primary); font-size: .8125rem; font-weight: 600; line-height: 1.4; }
.auth-aside .offer-card > strong, .auth-aside .offer-card .strong { display: block; margin: 0 0 14px; color: var(--primary); font-size: 2.25rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.auth-aside .offer-card p { max-width: 38ch; margin: 6px 0 0; color: var(--primary); font-size: .875rem; line-height: 1.65; }
.auth-aside .offer-card p strong { color: inherit; }
.qr-preview { display: grid; place-items: center; width: min(100%, 224px); min-height: 224px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.qr-preview img, .qr-preview canvas, .qr-preview svg { width: 100%; max-width: 192px; height: auto; image-rendering: crisp-edges; }
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.support-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.support-preview { display: flex; align-items: center; justify-content: center; min-height: 250px; padding: 24px; border-bottom: 1px solid var(--border); background: oklch(0.935 0.007 200); }
.support-preview img, .support-preview iframe, .support-preview object { display: block; max-width: 100%; max-height: 300px; width: auto; height: auto; border: 0; object-fit: contain; }
.support-preview > svg { width: 100%; max-width: 220px; height: auto; }
.support-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px; }
.support-title { margin: 0; font-size: .9375rem; font-weight: 630; }
.support-description { margin: 7px 0 19px; color: var(--muted); font-size: .8125rem; }
.support-body .actions, .support-body > .btn { margin-top: auto; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .48fr); gap: 24px; align-items: start; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.meta-list { margin: 0; padding: 0; list-style: none; }
.meta-item { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: .8125rem; }
.meta-item:last-child { border-bottom: 0; }
.meta-item dt, .meta-item > :first-child { color: var(--muted); }
.meta-item dd { margin: 0; font-weight: 550; }
.inline-profile { display: inline-flex; gap: 10px; align-items: center; min-width: 0; }
.inline-profile .avatar { width: 32px; height: 32px; border-radius: 8px; font-size: .75rem; }

/* Tabs and focused surfaces. */
.tabs { display: flex; gap: 22px; max-width: 100%; margin: 0 0 24px; overflow-x: auto; border-bottom: 1px solid var(--border); }
.tab { position: relative; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; min-height: 44px; padding: 10px 1px 12px; border: 0; color: var(--muted); background: transparent; font-size: .8125rem; font-weight: 550; white-space: nowrap; text-decoration: none; }
.tab:hover { color: var(--ink); }
.tab.is-active, .tab[aria-selected="true"] { color: var(--primary); }
.tab.is-active::after, .tab[aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--primary); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 15px; color: var(--muted); font-size: .75rem; }
.breadcrumb a { color: var(--muted); }
.modal, dialog { width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink); background: var(--surface); overflow: auto; }
dialog { z-index: var(--z-modal); }
dialog::backdrop { background: oklch(0.19 0.01 200 / .56); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.dialog-header h2 { margin: 0; font-size: 1.125rem; font-weight: 630; }
.dialog-body { padding: 24px; }
.dialog-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px 24px; border-top: 1px solid var(--border); background: var(--surface-alt); }
.toast-container { position: fixed; z-index: var(--z-toast); right: 24px; bottom: 24px; display: grid; gap: 10px; width: min(390px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 15px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--ink); background: var(--surface); font-size: .8125rem; line-height: 1.5; pointer-events: auto; animation: toast-in 180ms var(--ease-out); }
.toast svg { width: 18px; height: 18px; margin-top: 1px; color: var(--primary); }
.progress-track { height: 6px; overflow: hidden; border-radius: 3px; background: var(--primary-soft); }
.progress-bar { height: 100%; border-radius: 3px; background: var(--primary); transition: width 200ms var(--ease-out); }
.skeleton { position: relative; overflow: hidden; min-height: 16px; border-radius: 4px; background: oklch(0.92 0.006 200); animation: skeleton-pulse 1.5s ease-in-out infinite; }
.loading { cursor: progress; }
.menu-toggle, .mobile-only { display: none; }
.desktop-only { display: initial; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .8125rem; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.strong { font-weight: 650; }
.divider { height: 1px; margin: 22px 0; background: var(--border); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

/* Tablet: preserve clear rows and two-column summaries. */
@media (max-width: 1120px) {
  :root { --sidebar-width: 212px; }
  .topbar { padding-inline: 26px; }
  .content { padding: 28px 26px 44px; }
  .stat { padding: 20px; }
  .stat-value { font-size: 1.625rem; }
  .split-layout { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { padding: 34px; }
  th, td { padding-inline: 20px; }
}

/* Phone: navigation remains reachable without a JavaScript drawer. */
@media (max-width: 800px) {
  .sidebar { position: sticky; inset: auto; top: 0; width: 100%; padding: 14px 18px 0; }
  .brand { width: fit-content; margin: 0 0 13px; font-size: .875rem; }
  .brand-mark { width: 31px; height: 31px; border-radius: 7px; }
  .brand small { display: none; }
  .nav-list { flex-direction: row; gap: 5px; margin: 0 -6px; padding: 0 6px 10px; overflow-x: auto; overscroll-behavior-x: contain; }
  .nav-list > * { flex-shrink: 0; }
  .nav-item { min-width: fit-content; gap: 7px; padding-inline: 11px; font-size: .75rem; white-space: nowrap; }
  .nav-item svg { width: 17px; height: 17px; }
  .sidebar-footer { display: none; }
  .main { min-height: auto; margin-left: 0; }
  .topbar { min-height: 62px; padding: 12px 20px; }
  .topbar-title { font-size: .8125rem; }
  .topbar-actions { gap: 9px; }
  .topbar-actions .avatar { width: 32px; height: 32px; border-radius: 8px; }
  .content { padding: 25px 20px 36px; }
  .page-head { flex-wrap: wrap; gap: 18px; margin-bottom: 22px; }
  .page-title { font-size: 1.5rem; }
  .page-subtitle { margin-top: 8px; font-size: .8125rem; }
  .page-head > .actions { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 22px; }
  .stat { padding: 18px 20px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .stat-label { font-size: .75rem; }
  .stat-value { font-size: 1.625rem; }
  .stat-note { font-size: .6875rem; }
  .panel { margin-bottom: 20px; }
  .panel-head { min-height: 65px; padding: 16px 20px; }
  .panel-body { padding: 20px; }
  .panel-title { font-size: .9375rem; }
  .btn, .btn-small, .btn-icon { min-height: 44px; }
  .btn-icon { width: 44px; }
  .toolbar { gap: 10px; }
  .toolbar .search-input { width: 100%; }
  .table-wrap table { min-width: 600px; }
  th, td { padding: 13px 18px; }
  .form-grid { gap: 18px; }
  .input, .select, .textarea, .search-input { font-size: 1rem; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { padding: 24px; }
  .auth-aside .brand { margin: 0; }
  .auth-aside > :not(.brand) { display: none; }
  .auth-content { align-items: flex-start; padding: 42px 24px; }
  .auth-card { max-width: 440px; }
  .auth-title { font-size: 1.5rem; }
  .detail-grid { gap: 18px; }
  .offer-card { padding: 20px; }
  .support-grid { gap: 18px; }
  .support-preview { min-height: 230px; padding: 20px; }
  .dialog-header, .dialog-body, .dialog-footer { padding-inline: 20px; }
  .toast-container { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .menu-toggle, .mobile-only { display: inline-flex; }
  .desktop-only { display: none !important; }
}

@media (max-width: 480px) {
  .sidebar { padding-inline: 16px; }
  .topbar { padding-inline: 16px; }
  .content { padding-inline: 16px; }
  .topbar-actions > .inline-profile > :not(.avatar) { display: none; }
  .page-head .actions .btn { flex: 1; }
  .stat { padding: 16px; }
  .stat-value { font-size: 1.5rem; }
  .panel-head, .panel-body { padding-inline: 16px; }
  .form-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { flex: 1; }
  .copy-field { flex-wrap: wrap; }
  .copy-field .input { flex-basis: 100%; }
  .copy-field .btn { flex: 1; }
  .modal, dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .dialog-body .form-grid { grid-template-columns: minmax(0, 1fr); }
  .dialog-footer .btn { flex: 1; }
  .qr-preview { margin-inline: auto; }
  .notice { padding: 13px 14px; }
}

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

@media print {
  body { color: oklch(0.15 0 0); background: white; }
  .sidebar, .topbar, .actions, .form-actions, .toast-container, .btn { display: none !important; }
  .main { margin: 0; }
  .content { max-width: none; padding: 0; }
  .panel, .stat, .support-card, .offer-card { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .table-wrap table { min-width: 0; }
}

/* Product previews: keep the offer legible at a glance. */
.support-preview > div > span{display:block;margin-bottom:8px;}
.support-preview > div > strong{display:block;font-size:36px;line-height:1.1;letter-spacing:-.025em;}
.inline-profile > span:last-child > strong,.inline-profile > span:last-child > span{display:block;}
@media(max-width:700px){.auth-aside{height:auto;min-height:0;padding:24px;gap:0}.auth-content{padding:32px 24px}.auth-aside>div,.auth-aside>p{display:none}}
