/* Vanter design system
   Dark is the primary theme; light shares every token name. Colour is concentrated in the brand,
   the primary action, selection and a few highlights. Semantic colours (good / warn / danger) stay distinct. */

/* ---------- Tokens ---------- */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0C1A;
  --bg-veil: rgba(10, 12, 26, 0.86);
  --surface: #12152A;
  --surface-2: #171B33;
  --surface-3: #1F2441;
  --line: rgba(236, 237, 247, 0.08);
  --line-2: rgba(236, 237, 247, 0.15);
  --text: #ECEDF7;
  --text-2: #B6BAD2;
  --text-3: #8D93B1;
  --accent: #6D6AFF;
  --accent-strong: #5B57F5;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(109, 106, 255, 0.15);
  --accent-line: rgba(141, 138, 255, 0.55);
  --accent-text: #AEACFF;
  --violet: #A47BFF;
  --cyan: #5CD6F2;
  --cyan-soft: rgba(92, 214, 242, 0.12);
  --cyan-text: #8FE3F7;
  --magenta: #F06AC8;
  --good: #3DD68C;
  --good-soft: rgba(61, 214, 140, 0.12);
  --good-text: #74E2AD;
  --warn: #F5B84B;
  --warn-soft: rgba(245, 184, 75, 0.12);
  --warn-text: #F6C978;
  --danger: #FF6B7A;
  --danger-soft: rgba(255, 107, 122, 0.12);
  --danger-text: #FF97A2;
  --focus: #9C9AFF;
  --shadow-pop: 0 24px 60px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line-2);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --field-a: rgba(91, 87, 245, 0.55);
  --field-b: rgba(164, 123, 255, 0.40);
  --field-c: rgba(92, 214, 242, 0.30);
  --field-d: rgba(240, 106, 200, 0.22);
  --field-strength: 0.42;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F4F9;
  --bg-veil: rgba(244, 244, 249, 0.88);
  --surface: #FFFFFF;
  --surface-2: #F6F6FB;
  --surface-3: #ECEDF5;
  --line: rgba(18, 20, 42, 0.09);
  --line-2: rgba(18, 20, 42, 0.17);
  --text: #12142A;
  --text-2: #444A68;
  --text-3: #5F6584;
  --accent: #5652F0;
  --accent-strong: #4844E2;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(86, 82, 240, 0.09);
  --accent-line: rgba(86, 82, 240, 0.42);
  --accent-text: #423ED6;
  --cyan-soft: rgba(14, 140, 175, 0.10);
  --cyan-text: #0B6F8C;
  --good: #158552;
  --good-soft: rgba(21, 133, 82, 0.09);
  --good-text: #12744A;
  --warn: #A9660A;
  --warn-soft: rgba(214, 140, 20, 0.12);
  --warn-text: #8A5208;
  --danger: #C2304A;
  --danger-soft: rgba(194, 48, 74, 0.08);
  --danger-text: #AD2A42;
  --focus: #5652F0;
  --shadow-pop: 0 24px 60px -20px rgba(22, 24, 64, 0.28), 0 0 0 1px var(--line-2);
  --shadow-card: 0 1px 2px rgba(18, 20, 42, 0.04);
  --field-a: rgba(86, 82, 240, 0.30);
  --field-b: rgba(164, 123, 255, 0.26);
  --field-c: rgba(92, 214, 242, 0.26);
  --field-d: rgba(240, 106, 200, 0.16);
  --field-strength: 0.55;
}

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", "Inter Display", Inter, system-ui, sans-serif;
  --t-xs: 12px;
  --t-sm: 13px;
  --t-md: 14px;
  --t-lg: 16px;
  --t-xl: 20px;
  --t-2xl: 26px;
  --r-sm: 6px;
  --r-md: 9px;
  --r-lg: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 120ms;
  --mid: 200ms;
  --queue-w: 392px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--t-md)/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); }
h1, h2, h3, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--accent-soft); }
svg.i { width: 16px; height: 16px; flex: none; }
[hidden] { display: none !important; }

/* ---------- Ambient field ----------
   Soft colour fields that drift slowly. Strong on sign-in, faint and peripheral in the workspace,
   never behind text: panels are opaque. Paused with reduced motion, by the user, and when the tab is hidden. */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: var(--field-strength); }
.ambient .blob { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform; }
.ambient .f1 { left: -28vmax; top: -34vmax; background: radial-gradient(closest-side, var(--field-a), transparent 72%); animation: drift-a 46s var(--ease) infinite alternate; }
.ambient .f2 { right: -30vmax; top: -18vmax; background: radial-gradient(closest-side, var(--field-b), transparent 70%); animation: drift-b 58s var(--ease) infinite alternate; }
.ambient .f3 { right: -20vmax; bottom: -42vmax; background: radial-gradient(closest-side, var(--field-c), transparent 70%); animation: drift-c 52s var(--ease) infinite alternate; }
.ambient .f4 { left: -24vmax; bottom: -46vmax; background: radial-gradient(closest-side, var(--field-d), transparent 70%); animation: drift-d 64s var(--ease) infinite alternate; }
@keyframes drift-a { to { transform: translate3d(9vmax, 7vmax, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-10vmax, 9vmax, 0) scale(0.9); } }
@keyframes drift-c { to { transform: translate3d(-8vmax, -10vmax, 0) scale(1.1); } }
@keyframes drift-d { to { transform: translate3d(10vmax, -6vmax, 0) scale(1.06); } }
html[data-motion="paused"] .ambient .blob,
html.is-hidden .ambient .blob { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ambient .blob { animation: none; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { width: 24px; height: 20px; color: var(--text); }
.cut { fill: var(--accent); }
.brand-word { width: 74px; height: 14px; color: var(--text); }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 0 14px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font-weight: 550; font-size: var(--t-md); line-height: 1; white-space: nowrap;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { background: var(--surface-3); border-color: var(--line-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent-strong); border-color: transparent; color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); }
.btn-good { background: var(--good); border-color: transparent; color: #06140D; }
[data-theme="light"] .btn-good { color: #fff; }
.btn-good:hover { filter: brightness(1.06); background: var(--good); }
.btn-danger { color: var(--danger-text); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }
.btn-sm { min-height: 30px; padding: 0 10px; font-size: var(--t-sm); border-radius: var(--r-sm); }
.btn-lg { min-height: 44px; padding: 0 18px; }
.btn-block { width: 100%; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--text-2) transparent var(--text-2) transparent; animation: spin 800ms linear infinite; }
.btn-primary.busy::after { border-color: #fff transparent #fff transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--text-3); }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }

.input, .select, .textarea {
  width: 100%; min-height: 38px; padding: 8px 12px; border-radius: var(--r-md);
  border: 1px solid var(--line-2); background: var(--bg); color: var(--text);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--accent-line); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.textarea { resize: vertical; min-height: 64px; line-height: 1.4; }
.field { display: grid; gap: 6px; }
.field > label, .field-label { font-size: var(--t-sm); font-weight: 550; color: var(--text-2); }
.field-error { color: var(--danger-text); font-size: var(--t-sm); min-height: 0; }
.field-hint { color: var(--text-3); font-size: var(--t-xs); }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 64px; }
.password-wrap .reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 28px; padding: 0 8px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font-size: var(--t-sm); font-weight: 550; }
.password-wrap .reveal:hover { background: var(--surface-3); color: var(--text); }

.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-md); background: var(--surface-3); }
.segmented button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-weight: 550; font-size: var(--t-sm); }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--line); }

.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; font-size: 11px; font-weight: 600; color: var(--text-2); font-family: var(--font); }

/* ---------- App shell ---------- */
.app { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; height: 100vh; height: 100dvh; }
.topbar { position: relative; z-index: 20; min-width: 0; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 16px 0 20px; background: var(--bg-veil); border-bottom: 1px solid var(--line); backdrop-filter: saturate(140%) blur(12px); }
.store { display: flex; align-items: center; gap: 10px; padding-left: 14px; margin-left: 2px; border-left: 1px solid var(--line-2); min-width: 0; }
.store-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mode { font-size: var(--t-xs); font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn-text); white-space: nowrap; }
.mode.live { background: var(--good-soft); color: var(--good-text); }
.topbar-spacer { flex: 1; }
.sync { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: var(--t-sm); white-space: nowrap; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.sync.stale .sync-dot { background: var(--warn); }
.sync.error .sync-dot { background: var(--danger); }
.sync.error #sync-text { color: var(--danger-text); }
.sync.busy .sync-dot { background: var(--accent); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.account { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 4px; border: 0; border-radius: 999px; background: transparent; color: var(--text); }
.avatar-btn:hover, .avatar-btn[aria-expanded="true"] { background: var(--surface-2); }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.user-name { font-weight: 550; font-size: var(--t-sm); }

.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 248px; padding: 6px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-pop); animation: pop var(--mid) var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.menu-head { padding: 10px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-head strong { display: block; }
.menu-head span { display: block; color: var(--text-3); font-size: var(--t-sm); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text); text-align: left; font-size: var(--t-md); }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-2); outline: none; }
.menu-item .i { color: var(--text-3); }
.menu-item .end { margin-left: auto; color: var(--text-3); font-size: var(--t-sm); }
.menu-sep { height: 1px; margin: 4px 6px; background: var(--line); }

.banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; padding: 9px 20px; font-size: var(--t-sm); border-bottom: 1px solid var(--line); background: var(--warn-soft); color: var(--warn-text); }
.banner.error { background: var(--danger-soft); color: var(--danger-text); }
.banner.info { background: var(--accent-soft); color: var(--accent-text); }
.banner .btn { justify-self: end; }

/* ---------- Workspace ---------- */
.workspace { display: grid; grid-template-columns: var(--queue-w) minmax(0, 1fr); gap: 0; min-height: 0; }
.queue { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-right: 1px solid var(--line); }
.queue-head { padding: 16px 16px 12px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); }
.queue-summary { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.queue-summary .big { font: 650 var(--t-2xl)/1 var(--font-display); letter-spacing: -0.02em; }
.queue-summary .big-label { color: var(--text-2); }
.queue-summary .minor { width: 100%; color: var(--text-3); font-size: var(--t-sm); }
.queue-summary .minor strong { color: var(--text-2); font-weight: 600; }

.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 8px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-2); font-weight: 550; font-size: var(--t-sm); white-space: nowrap; }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-selected="true"] { color: var(--text); background: var(--surface-3); }
.tab-count { font-variant-numeric: tabular-nums; color: var(--text-3); font-weight: 500; }
.tab[aria-selected="true"] .tab-count { color: var(--accent-text); }

.search { position: relative; display: block; }
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search .input { padding-left: 34px; background: var(--surface-2); border-color: transparent; }
.search .input:hover { border-color: var(--line-2); }

.queue-list { list-style: none; margin: 0; padding: 0 0 12px; overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.queue-section { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; gap: 8px; padding: 12px 16px 6px; background: var(--surface); }
.queue-section-name { font-weight: 650; font-size: var(--t-sm); color: var(--text); }
.queue-section-count { font-variant-numeric: tabular-nums; color: var(--text-3); font-size: var(--t-sm); }
.queue-section-hint { margin-left: auto; color: var(--text-3); font-size: var(--t-xs); }

.lead-row { position: relative; display: grid; gap: 3px; margin: 0 8px; padding: 10px 12px 11px; border-radius: var(--r-md); cursor: pointer; transition: background var(--fast) var(--ease); }
.lead-row + .lead-row::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 1px; background: var(--line); }
.lead-row:hover { background: var(--surface-2); }
.lead-row:hover::before, .lead-row:hover + .lead-row::before, .lead-row[aria-selected="true"]::before, .lead-row[aria-selected="true"] + .lead-row::before { opacity: 0; }
.lead-row[aria-selected="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.lead-row.deferred { opacity: 0.62; }
.lead-row.deferred[aria-selected="true"] { opacity: 1; }
.row-top, .row-mid { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.lead-name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.lead-item { flex: 1; min-width: 0; color: var(--text-2); font-size: var(--t-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead-item .more { color: var(--text-3); }
.lead-age { font-size: var(--t-sm); color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lead-age.hot { color: var(--text); font-weight: 550; }
.row-meta { display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: 3px; font-size: var(--t-xs); color: var(--text-3); }
.row-meta .facts { display: flex; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; }
.fact { display: inline-flex; align-items: center; gap: 4px; }
.fact .i { width: 13px; height: 13px; }
.owner-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); white-space: nowrap; }
.owner-chip .mini-avatar { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); font-size: 9px; font-weight: 700; }
.owner-chip.me .mini-avatar { background: var(--accent-soft); color: var(--accent-text); }

.status { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: var(--t-xs); font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.status .i { width: 12px; height: 12px; }
.status.new { background: var(--accent-soft); color: var(--accent-text); }
.status.live { background: var(--cyan-soft); color: var(--cyan-text); }
.status.warn { background: var(--warn-soft); color: var(--warn-text); }
.status.good { background: var(--good-soft); color: var(--good-text); }
.status.danger { background: var(--danger-soft); color: var(--danger-text); }

.queue-empty { display: grid; justify-items: center; gap: 6px; padding: 56px 28px; text-align: center; color: var(--text-2); }
.queue-empty .i { width: 28px; height: 28px; color: var(--text-3); margin-bottom: 6px; }
.queue-empty h3 { font-size: var(--t-lg); color: var(--text); font-weight: 600; }
.queue-empty p { font-size: var(--t-sm); max-width: 32ch; }
.queue-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--t-xs); }
.queue-foot span { display: inline-flex; align-items: center; gap: 4px; }
.skeleton-row { height: 70px; margin: 6px 16px; border-radius: var(--r-md); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Detail ---------- */
.detail { position: relative; min-height: 0; overflow-y: auto; background: transparent; scroll-padding-top: 16px; }
.detail-inner { max-width: 920px; margin: 0 auto; padding: 24px 28px 64px; display: grid; gap: 16px; }
.detail-inner.enter { animation: enter var(--mid) var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }
.detail-empty { display: grid; place-items: center; height: 100%; padding: 40px; color: var(--text-3); text-align: center; }
.back-btn { display: none; }

.lead-hero { display: flex; align-items: flex-start; gap: 24px; padding: 4px 2px 6px; }
.lead-hero .who { flex: 1; min-width: 0; }
.lead-title { font: 650 var(--t-2xl)/1.15 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.reach-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; color: var(--text-2); font-size: var(--t-sm); }
.reach-line .fact .i { width: 14px; height: 14px; color: var(--text-3); }
.lead-amount { text-align: right; }
.lead-amount .amount { font: 650 var(--t-2xl)/1.15 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lead-amount .sub { margin-top: 8px; color: var(--text-3); font-size: var(--t-sm); white-space: nowrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-title { font-size: var(--t-md); font-weight: 650; }
.card-aside { margin-left: auto; color: var(--text-3); font-size: var(--t-sm); }
.card-body { padding: 16px 18px; }

/* Next step: the one strong surface on the page */
.next { position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-card); overflow: hidden; }
.next.wait { border-color: rgba(92, 214, 242, 0.45); box-shadow: 0 0 0 4px var(--cyan-soft); }
.next.quiet { border-color: var(--line-2); box-shadow: var(--shadow-card); }
.next.done { border-color: rgba(61, 214, 140, 0.45); box-shadow: 0 0 0 4px var(--good-soft); }
.next-head { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px 4px; }
.next-head h2 { font: 650 var(--t-xl)/1.25 var(--font-display); letter-spacing: -0.01em; }
.next-why { padding: 4px 20px 0; color: var(--text-2); max-width: 70ch; }
.attempts { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: var(--t-sm); white-space: nowrap; }
.attempt-dots { display: inline-flex; gap: 4px; }
.attempt-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.attempt-dots i.on { background: var(--accent); box-shadow: none; }
.attempt-dots.last i.on { background: var(--warn); }
.steps { display: grid; gap: 0; padding: 14px 20px 20px; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
.step + .step { border-top: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); font-size: var(--t-xs); font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 1px; }
.step.active .step-n { background: var(--accent-strong); color: var(--accent-ink); }
.step-title { font-size: var(--t-md); font-weight: 600; margin-bottom: 10px; }
.step-note { color: var(--text-3); font-size: var(--t-sm); margin-top: 10px; }

.contact-lines { display: grid; gap: 6px; }
.contact-line { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 6px 4px 12px; border-radius: var(--r-md); background: var(--surface-2); }
.contact-line .i { color: var(--text-3); }
.contact-line .value { font-weight: 600; font-size: var(--t-lg); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.contact-line .value.small { font-size: var(--t-md); font-weight: 550; }
.contact-line .tag { color: var(--text-3); font-size: var(--t-sm); }
.contact-line .actions { margin-left: auto; display: flex; gap: 4px; }
.channel { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-sm); font-weight: 550; }
.channel.yes { color: var(--good-text); }
.channel.no { color: var(--text-3); }

.record-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.record-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-md); border: 1px dashed var(--line-2); background: transparent; color: var(--text); font-weight: 550; }
.record-btn .i { color: var(--text-3); }
.record-btn:hover { border-style: solid; border-color: var(--accent-line); background: var(--accent-soft); }
.record-btn:hover .i { color: var(--accent-text); }
.record-btn.busy { opacity: 0.6; pointer-events: none; }

.outcome-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.outcome-pick button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-weight: 550; }
.outcome-pick button:hover { background: var(--surface-3); }
.outcome-pick button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.outcome-pick button[data-outcome="recovered"][aria-pressed="true"] { border-color: var(--good); background: var(--good-soft); }
.outcome-panel { margin-top: 12px; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); display: grid; gap: 12px; animation: enter var(--mid) var(--ease); }
.outcome-panel .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.outcome-panel p { color: var(--text-2); font-size: var(--t-sm); }
.money-input { display: flex; align-items: center; gap: 8px; width: 200px; padding-left: 12px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg); }
.money-input span { color: var(--text-3); font-size: var(--t-sm); }
.money-input .input { border: 0; padding-left: 0; background: transparent; box-shadow: none; }
.prompt-pulse { animation: prompt 1.2s var(--ease) 1; }
@keyframes prompt { 30% { box-shadow: 0 0 0 4px var(--accent-soft); } }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); font-size: var(--t-sm); }
.notice .i { margin-top: 1px; color: var(--text-3); }
.notice.warn { background: var(--warn-soft); color: var(--warn-text); }
.notice.warn .i { color: var(--warn); }
.notice.live { background: var(--cyan-soft); color: var(--cyan-text); }
.notice.live .i { color: var(--cyan); }
.notice.good { background: var(--good-soft); color: var(--good-text); }
.notice.good .i { color: var(--good); }
.notice.danger { background: var(--danger-soft); color: var(--danger-text); }
.notice .btn { margin-left: auto; }
.update-bar { position: sticky; top: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: var(--r-md); background: var(--surface-3); box-shadow: var(--shadow-pop); font-size: var(--t-sm); animation: enter var(--mid) var(--ease); }
.update-bar .btn { margin-left: auto; }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.info-grid > div { padding: 12px 18px; border-top: 1px solid var(--line); }
.info-grid > div:nth-child(-n + 2) { border-top: 0; }
.info-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.info-grid dt { color: var(--text-3); font-size: var(--t-xs); margin-bottom: 3px; }
.info-grid dd { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 550; overflow-wrap: anywhere; }
.info-grid dd .muted { color: var(--text-3); font-weight: 400; font-size: var(--t-sm); }
.gift-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 600; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.thumb { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-3); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-title { font-weight: 550; overflow-wrap: anywhere; }
.cart-variant { color: var(--text-3); font-size: var(--t-sm); }
.cart-price { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-price small { display: block; color: var(--text-3); font-weight: 400; font-size: var(--t-xs); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line-2); }
.cart-total strong { font-size: var(--t-lg); font-variant-numeric: tabular-nums; }
.basket-link { display: flex; gap: 8px; margin-top: 14px; }
.basket-link .input { font-size: var(--t-sm); color: var(--text-2); background: var(--surface-2); border-color: transparent; }
.code-chip { font-size: var(--t-xs); padding: 2px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); margin-left: 6px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 8px 0; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 12.5px; top: 34px; bottom: -6px; width: 1px; background: var(--line-2); }
.tl-item:last-child::before { display: none; }
.tl-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--text-3); }
.tl-icon .i { width: 13px; height: 13px; }
.tl-icon.good { background: var(--good-soft); color: var(--good); }
.tl-icon.warn { background: var(--warn-soft); color: var(--warn); }
.tl-icon.accent { background: var(--accent-soft); color: var(--accent-text); }
.tl-text { font-size: var(--t-md); overflow-wrap: anywhere; }
.tl-when { color: var(--text-3); font-size: var(--t-xs); margin-top: 1px; }
.note-form { display: flex; gap: 8px; margin-bottom: 12px; }
.show-more { margin-top: 6px; }

details.history > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; border-radius: var(--r-lg); }
details.history > summary::-webkit-details-marker { display: none; }
details.history > summary:hover { background: var(--surface-2); }
details.history > summary .chev { margin-left: auto; color: var(--text-3); transition: transform var(--mid) var(--ease); }
details.history[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
details.history[open] > summary .chev { transform: rotate(180deg); }
.history-sub { color: var(--text-3); font-size: var(--t-sm); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.stats > div { padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); }
.stats dt { color: var(--text-3); font-size: var(--t-xs); }
.stats dd { margin: 2px 0 0; font-weight: 600; font-size: var(--t-lg); display: flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; }
.sub-title { font-size: var(--t-sm); font-weight: 600; color: var(--text-2); margin: 14px 0 6px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.plain-list li { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); }
.plain-list .src { color: var(--text-3); }
.journey { list-style: none; margin: 0; padding: 0; }
.journey li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; font-size: var(--t-sm); }
.journey li + li { border-top: 1px solid var(--line); }
.journey .i { width: 14px; height: 14px; color: var(--text-3); }
.journey-when { display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); font-size: var(--t-xs); white-space: nowrap; }

/* Full-panel states (store unavailable, access denied) */
.state { display: grid; place-items: center; min-height: 60vh; padding: 40px 24px; text-align: center; }
.state-card { max-width: 420px; display: grid; gap: 12px; justify-items: center; }
.state-card h1 { font: 650 var(--t-xl)/1.25 var(--font-display); }
.state-card p { color: var(--text-2); }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop); width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
dialog::backdrop { background: rgba(5, 6, 14, 0.55); backdrop-filter: blur(3px); }
dialog[open] { animation: pop var(--mid) var(--ease); }
.dialog-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 6px; }
.dialog-head h2 { font: 650 var(--t-xl)/1.2 var(--font-display); }
.dialog-head .icon-btn { margin-left: auto; }
.dialog-body { padding: 8px 20px 20px; display: grid; gap: 18px; overflow-y: auto; }
.dialog-section { display: grid; gap: 10px; }
.dialog-section + .dialog-section { padding-top: 18px; border-top: 1px solid var(--line); }
.dialog-section h3 { font-size: var(--t-md); font-weight: 650; }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 20px; }
.profile-line { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; font-size: var(--t-sm); }
.profile-line dt { color: var(--text-3); }
.profile-line dd { margin: 0; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; font-size: var(--t-sm); }
.keys dt { display: flex; gap: 4px; }
.keys dd { margin: 0; color: var(--text-2); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; cursor: pointer; transition: background var(--fast) var(--ease); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform var(--mid) var(--ease), background var(--fast); }
.switch input:checked { background: var(--accent-strong); box-shadow: none; }
.switch input:checked::after { transform: translateX(16px); background: #fff; }
.switch span small { display: block; color: var(--text-3); font-size: var(--t-xs); }

/* ---------- Toasts ---------- */
.toast-region { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: min(560px, calc(100vw - 32px)); padding: 10px 10px 10px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: var(--t-sm); font-weight: 550; box-shadow: var(--shadow-pop); animation: toast-in var(--mid) var(--ease); }
.toast.error { background: var(--danger); color: #fff; }
.toast button { border: 0; border-radius: 8px; padding: 6px 10px; background: rgba(127, 127, 160, 0.22); color: inherit; font-weight: 650; font-size: var(--t-sm); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Account screens (sign in, recovery, signed out) ---------- */
.auth { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: 28px 32px; }
.auth-body { display: grid; place-items: center; padding: 24px 0; }
.auth-card { width: min(400px, 100%); padding: 32px 32px 28px; border-radius: 22px; background: var(--bg-veil); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); backdrop-filter: blur(24px) saturate(140%); }
.auth-card h1 { font: 650 28px/1.15 var(--font-display); letter-spacing: -0.02em; }
.auth-card .lede { margin-top: 8px; color: var(--text-2); }
.auth-form { display: grid; gap: 16px; margin-top: 24px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-btn { border: 0; background: none; padding: 2px 0; color: var(--accent-text); font-weight: 550; font-size: var(--t-sm); }
.text-btn:hover { text-decoration: underline; }
.auth-alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-md); font-size: var(--t-sm); background: var(--danger-soft); color: var(--danger-text); }
.auth-alert.info { background: var(--accent-soft); color: var(--accent-text); }
.auth-alert.warn { background: var(--warn-soft); color: var(--warn-text); }
.auth-alert .i { margin-top: 1px; }
.auth-foot { display: flex; justify-content: space-between; gap: 16px; color: var(--text-3); font-size: var(--t-xs); }
.auth-foot button { border: 0; background: none; color: var(--text-3); font-size: var(--t-xs); padding: 0; }
.auth-foot button:hover { color: var(--text); }
.auth .brand-mark { width: 30px; height: 25px; }
.auth .brand-word { width: 92px; height: 17px; }
.auth-steps { margin: 16px 0 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 6px; }
.caps-hint { color: var(--warn-text); font-size: var(--t-xs); }
body.auth-page { --field-strength: 1; }
[data-theme="light"] body.auth-page { --field-strength: 0.9; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --queue-w: 360px; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .user-name { display: none; }
}
@media (max-width: 900px) {
  .topbar { padding: 0 10px 0 14px; gap: 10px; }
  .brand-word { display: none; }
  .sync #sync-text { display: none; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .workspace[data-mode="list"] .detail { display: none; }
  .workspace[data-mode="detail"] .queue { display: none; }
  .queue { border-right: 0; }
  .detail-inner { padding: 12px 16px 48px; }
  .back-btn { display: inline-flex; justify-self: start; margin-left: -8px; }
  .lead-hero { flex-direction: column; gap: 10px; }
  .lead-amount { text-align: left; }
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .info-grid > div:nth-child(odd) { border-right: 0; }
  .info-grid > div:nth-child(2) { border-top: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .queue-foot { display: none; }
  .next-head { flex-direction: column; gap: 8px; }
  .attempts { margin-left: 0; }
  .lead-row { padding: 12px; }
  .auth { padding: 20px 16px; }
  .auth-card { padding: 26px 20px 22px; }
}
@media (max-width: 520px) {
  .store-name { max-width: 34vw; }
  #sync-now, .mode { display: none; }
  .banner { grid-template-columns: auto minmax(0, 1fr); padding: 8px 14px; font-size: var(--t-xs); }
  .banner .btn { grid-column: 2; justify-self: start; }
  .contact-line .value { font-size: var(--t-md); }
  .record-btn, .outcome-pick button { flex: 1 1 100%; justify-content: center; }
  .stats { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .lead-row[aria-selected="true"] { outline: 2px solid Highlight; }
  .status, .btn { border: 1px solid CanvasText; }
}

.basket-field { margin-top: 14px; }
.state-full { grid-column: 1 / -1; }
.stats dd.small { font-size: var(--t-md); }
.dialog-text { color: var(--text-2); }
.auth-form.flush { margin: 0; }
.outcome-panel .row .field-label { margin-right: 4px; }
.dnc-note { color: var(--warn-text); font-size: var(--t-sm); }
.steps > .row { display: flex; gap: 8px; }

/* ---------- Vanter Console (owner only) ---------- */
.console-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: var(--t-xs); font-weight: 650; letter-spacing: 0.02em; box-shadow: inset 0 0 0 1px var(--accent-line); }
.auth .console-tag { margin-left: 2px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }
.input.mono { font-size: var(--t-md); }
.narrow { max-width: 140px; }
.muted-text { color: var(--text-3); font-size: var(--t-sm); }
.stack { display: grid; gap: 12px; align-content: start; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; }

.store-row .status { flex: none; }
.store-row .lead-name { display: inline-flex; align-items: center; gap: 8px; }
.overview-row { margin-top: 8px; }
.overview-row .lead-name .i { color: var(--accent-text); }
.overview-row + .store-row::before { opacity: 1; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.fact.ext { color: var(--text-2); text-decoration: none; }
.fact.ext:hover { color: var(--text); text-decoration: underline; }
.fact.ext .i { width: 13px; height: 13px; }
.issue-list { display: grid; gap: 8px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.kpis > div { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); min-width: 0; }
.kpis dt { color: var(--text-3); font-size: var(--t-xs); font-weight: 550; }
.kpis dd { margin: 2px 0 0; font: 650 var(--t-2xl)/1.1 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.kpis dd.small { font: 600 var(--t-lg)/1.3 var(--font); letter-spacing: 0; }
.kpis dd.warn { color: var(--warn-text); }
.kpis dd.bad { color: var(--danger-text); }
.kpis span { color: var(--text-3); font-size: var(--t-xs); }
.kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn-quiet.btn-danger { color: var(--danger-text); }

.issue-stores { list-style: none; margin: 0; padding: 6px; }
.issue-store { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--text); text-align: left; }
.issue-store:hover { background: var(--surface-2); }
.issue-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-text { color: var(--warn-text); font-size: var(--t-sm); }
.issue-store .i { color: var(--text-3); }
.tl-detail { color: var(--text-3); }

.card-head > .i { color: var(--text-3); }
.card-head .btn { margin-left: 8px; }
.card-head .card-aside + .btn { margin-left: 12px; }
.mini-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: var(--t-sm); }
.mini-steps strong { color: var(--text); font-weight: 600; }

.team-list { list-style: none; margin: 0; padding: 4px 0; }
.team-list.flush { padding: 0; }
.team-row { display: grid; grid-template-columns: 32px minmax(0, 1.4fr) auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 18px; }
.team-list.flush .team-row { grid-template-columns: 32px minmax(0, 1fr) auto auto; padding: 10px 0; }
.team-row + .team-row { border-top: 1px solid var(--line); }
.team-row.off { opacity: 0.6; }
.team-who { display: grid; min-width: 0; }
.team-who strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-who span { color: var(--text-3); font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-role { display: flex; gap: 6px; }
.team-seen { color: var(--text-3); font-size: var(--t-sm); white-space: nowrap; }
.team-actions { display: flex; gap: 2px; justify-content: flex-end; flex-wrap: wrap; }

.settings-form { display: grid; gap: 16px; max-width: 640px; }
details.help { border-radius: var(--r-md); background: var(--surface-2); padding: 10px 12px; }
details.help summary { cursor: pointer; color: var(--accent-text); font-weight: 550; font-size: var(--t-sm); }
details.help[open] summary { margin-bottom: 10px; }
details.help .field-hint { margin-top: 8px; }
dialog.wide { width: min(600px, calc(100vw - 32px)); }
dialog form { display: contents; }
.form-error { white-space: pre-line; }

.secret { display: grid; gap: 0; margin: 0; border-radius: var(--r-md); border: 1px solid var(--line-2); overflow: hidden; }
.secret > div { display: grid; gap: 2px; padding: 10px 14px; }
.secret > div + div { border-top: 1px solid var(--line); }
.secret dt { color: var(--text-3); font-size: var(--t-xs); }
.secret dd { margin: 0; overflow-wrap: anywhere; }
.secret .big-secret { font-size: var(--t-xl); font-weight: 600; letter-spacing: 0.04em; color: var(--text); }

@media (max-width: 900px) {
  .hero-actions { justify-content: flex-start; }
  .team-row { grid-template-columns: 32px minmax(0, 1fr); row-gap: 6px; padding: 12px 16px; }
  .team-role, .team-seen, .team-actions { grid-column: 2; justify-content: flex-start; }
  .team-actions { margin-left: -10px; }
  .team-list.flush .team-row { grid-template-columns: 32px minmax(0, 1fr); }
  .issue-store { grid-template-columns: minmax(0, 1fr) auto; }
  .issue-text { grid-column: 1; }
  .issue-store .i { grid-row: 1 / span 2; grid-column: 2; }
}
@media (max-width: 520px) {
  #add-store span { display: none; }
  #add-store { padding: 0 9px; }
  .kpis, .kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis dd { font-size: var(--t-xl); }
}
