/* ========================================================================
   진가 (Jinga) design system v3
   ========================================================================
   Dark-mode primary. Light mode extendable via [data-theme="light"].
   Typography: Pretendard for Korean, Geist Sans for Latin, Geist Mono for
   numbers and code. The brand mark stays modern and letter-based.
   Two accents:
     - seal (#C1272D) — vermillion 인장 red. Logo/brand identity only.
     - accent (#ff5a1f) — amber-coral. Data deltas, signals, interactive state.
   ======================================================================== */

/* ── Tokens: dark (default) ──────────────────────────────────────────── */
:root {
    /* Surfaces — subtle steps of charcoal, never pure black */
    --bg:                #0a0a0b;
    --bg-raised:         #111113;
    --surface:           #141417;
    --surface-hover:     #1a1a1e;
    --surface-sunk:      #0d0d0f;

    /* Borders — barely visible, rely on contrast with surface */
    --border:            #1f1f23;
    --border-strong:     #2e2e34;
    --border-accent:     #ff5a1f33;

    /* Text — near-white, never pure white. Each step keeps the next-
       smaller weight legible on the dark background: faint is the
       hint-level color and must still be readable at 14px. */
    --text:              #f5f5f7;
    --text-muted:        #b4b4ba;
    --text-subtle:       #8a8a92;
    --text-faint:        #6a6a72;

    /* Seal — vermillion 인장 red. Brand authenticity mark. Logo only. */
    --seal:              #C1272D;
    --seal-hover:        #D13540;
    --seal-on:           #ffffff;
    --seal-glow:         #C1272D22;

    /* Data accent — amber-coral. Numbers, deltas, interactive state. */
    --accent:            #ff5a1f;
    --accent-hover:      #ff6b36;
    --accent-on:         #ffffff;
    --accent-glow:       #ff5a1f22;

    /* Semantic — desaturated so they don't look like traffic lights */
    --positive:          #4ade80;
    --positive-dim:      #4ade8022;
    --negative:          #f87171;
    --negative-dim:      #f8717122;
    --warning:           #fbbf24;
    --warning-dim:       #fbbf2422;
    --info:              #60a5fa;
    --info-dim:          #60a5fa22;

    /* Radii — tight, technical */
    --radius-sm:         4px;
    --radius:            6px;
    --radius-lg:         10px;
    --radius-xl:         14px;

    /* Shadows — barely there, only in hover */
    --shadow-sm:         0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow:            0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg:         0 12px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow:       0 0 0 1px var(--accent-glow), 0 0 24px var(--accent-glow);

    /* Timing */
    --t-fast:            120ms;
    --t:                 180ms;
    --t-slow:            320ms;

    /* Fonts */
    --font-sans:         "Geist", "Pretendard", -apple-system, BlinkMacSystemFont,
                         system-ui, "Segoe UI", Roboto, sans-serif;
    --font-mono:         "Geist Mono", "SF Mono", Menlo, Monaco, Consolas,
                         "Liberation Mono", monospace;
}

/* ── Tokens: light mode alternate ────────────────────────────────────── */
[data-theme="light"] {
    --bg:                #fafafa;
    --bg-raised:         #ffffff;
    --surface:           #ffffff;
    --surface-hover:     #f4f4f5;
    --surface-sunk:      #f0f0f2;

    --border:            #e4e4e7;
    --border-strong:     #c8c8cd;
    --border-accent:     #ff5a1f44;

    --text:              #09090b;
    --text-muted:        #52525b;
    --text-subtle:       #71717a;
    --text-faint:        #a1a1aa;

    --seal:              #A81D23;
    --seal-hover:        #8F1A1F;
    --seal-on:           #ffffff;
    --seal-glow:         #A81D2322;

    --accent:            #e04410;
    --accent-hover:      #c93d0f;
    --accent-on:         #ffffff;
    --accent-glow:       #e0441022;

    --positive:          #16a34a;
    --positive-dim:      #16a34a14;
    --negative:          #dc2626;
    --negative-dim:      #dc262614;
    --warning:           #d97706;
    --warning-dim:       #d9770614;
    --info:              #2563eb;
    --info-dim:          #2563eb14;

    --shadow-sm:         0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow:            0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg:         0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ── Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color-scheme: dark;
}
[data-theme="light"] html { color-scheme: light; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    background: var(--bg);
    color: var(--text);
    font-feature-settings: "cv11", "ss01", "ss03";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* Numbers always in mono, tabular figures */
.num, code, kbd, samp, pre {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums lining-nums;
}

/* ── Typography utilities ────────────────────────────────────────────── */
.text-xs   { font-size: 11px; line-height: 1.35; }
.text-sm   { font-size: 13px; line-height: 1.45; }
.text-base { font-size: 15px; line-height: 1.5; }
.text-lg   { font-size: 17px; line-height: 1.4; }
.text-xl   { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.text-2xl  { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.text-3xl  { font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; }
.text-4xl  { font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

.label-upper {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.text-muted    { color: var(--text-muted); }
.text-subtle   { color: var(--text-subtle); }
.text-faint    { color: var(--text-faint); }

/* Screen-reader-only utility for headings or labels that should be
   announced to assistive tech but not painted on screen. Mirrors the
   widely-used "sr-only" / "visually-hidden" recipe. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.text-accent   { color: var(--accent); }
.text-positive { color: var(--positive); }
.text-negative { color: var(--negative); }
.text-warning  { color: var(--warning); }
.text-info     { color: var(--info); }

/* ── Card ────────────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--t), background var(--t);
}

.card-hover:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
}

.list-row-hover:hover {
    opacity: 0.75;
}

.card-inset {
    background: var(--surface-sunk);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--t-fast) ease;
    white-space: nowrap;
    user-select: none;
}
.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-on);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    color: var(--accent-on);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}
.btn-ghost:hover {
    background: var(--surface);
    color: var(--text);
}

.btn-lg { padding: 12px 20px; font-size: 14px; }
.btn-sm { padding: 4px 10px;  font-size: 12px; }

.btn-danger {
    background: var(--negative-dim);
    color: var(--negative);
    border-color: var(--negative);
}
.btn-danger:hover {
    background: var(--negative);
    color: #fff;
}

/* ── Input ───────────────────────────────────────────────────────────── */
.input {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
}
.input:hover { border-color: var(--text-faint); }
.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.input::placeholder { color: var(--text-faint); }

/* ── Badge ───────────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    border-radius: 999px;
    border: 1px solid transparent;
    font-variant-numeric: tabular-nums;
}
.badge-neutral  { background: var(--surface-sunk); color: var(--text-muted); border-color: var(--border); }
.badge-positive { background: var(--positive-dim); color: var(--positive);  border-color: var(--positive-dim); }
.badge-negative { background: var(--negative-dim); color: var(--negative);  border-color: var(--negative-dim); }
.badge-warning  { background: var(--warning-dim);  color: var(--warning);   border-color: var(--warning-dim); }
.badge-info     { background: var(--info-dim);     color: var(--info);      border-color: var(--info-dim); }
.badge-accent   { background: var(--accent-glow);  color: var(--accent);    border-color: var(--accent-glow); }

/* ── Delta indicator ─────────────────────────────────────────────────── */
.delta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.delta-down { color: var(--positive); }
.delta-up   { color: var(--negative); }

.delta::before { font-size: 10px; line-height: 1; }
.delta-down::before { content: "▾"; }
.delta-up::before   { content: "▴"; }

/* ── Data value (hero numbers) ───────────────────────────────────────── */
.data {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums lining-nums;
    letter-spacing: -0.02em;
}
.data-lg { font-size: 22px; font-weight: 600; line-height: 1.1; }
.data-xl { font-size: 32px; font-weight: 600; line-height: 1; }

/* ── Sparkline (inline mini chart) ───────────────────────────────────── */
.sparkline {
    display: inline-block;
    height: 24px;
    width: 80px;
    vertical-align: middle;
}
.sparkline path { stroke-width: 1.5; fill: none; }
.sparkline-down path { stroke: var(--positive); }
.sparkline-up   path { stroke: var(--negative); }
.sparkline-flat path { stroke: var(--text-faint); }

/* ── Divider ─────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Layout helpers ──────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
}

.stack-6  > * + * { margin-top: 6px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }

/* Section spacing — wraps a logical page block */
.section { margin-bottom: 32px; }
.section-sm { margin-bottom: 24px; }

/* Page header — standard top-of-page heading row */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* When a state-driven page title contains an inline count
   (e.g. "지금 확인할 상품 5개"), make the number do the visual work.
   Tabular-nums + accent + slightly larger weight turn the count
   into the headline anchor without inflating the surrounding text. */
.page-header h1 .num,
h1 .num.headline-num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums lining-nums;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.025em;
    margin: 0 2px;
}

/* Workbench header — lean title + status + actions row for /my/ pages */
.workbench-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: var(--rule-thin);
}
.workbench-header-title { flex: 1; min-width: 0; }
.workbench-header-title h1 {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    line-height: 1.2;
}
.workbench-header-title h1 .num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums lining-nums;
    font-size: 1.05em;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.025em;
}
.workbench-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.workbench-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
    padding-top: 4px;
}
@media (max-width: 560px) {
    .workbench-header { margin-bottom: 16px; }
    .workbench-header-actions { flex-basis: 100%; justify-content: flex-end; }
}

/* Card header — flex row inside a card: label + title on left, action on right */
.card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

/* Button row — inline buttons / action bar */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Margin helpers (most-used only) */
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* Text align */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

/* Flex helpers */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-1       { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-4  { gap: 4px; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.items-center   { align-items: center; }
.items-baseline { align-items: baseline; }
.items-end      { align-items: flex-end; }
.justify-end    { justify-content: flex-end; }
.ml-auto { margin-left: auto; }

/* Min-width guard for text truncation contexts */
.min-w-0 { min-width: 0; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 56px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--t-fast), background var(--t-fast);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.nav-link:hover { color: var(--text); background: var(--surface); }

/* Active nav state: leading 5px accent dot before the label.
   Bespoke alternative to a colored underline / pill — same as the
   pattern in the design kit's dashboard topbar. The dot only renders
   on .active so unrelated nav-link uses (icon-only bell, etc.) stay
   visually unchanged. */
.nav-link.active { color: var(--text); background: var(--surface); }
.nav-link.active::before {
    content: "";
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 999px;
    background: var(--accent);
    flex-shrink: 0;
}

/* ── Logo wordmark ───────────────────────────────────────────────────── */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.015em;
    color: var(--text);
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--seal);
    color: var(--seal-on);
    border-radius: 6px;
    flex-shrink: 0;
}

/* ── Scrollbar ───────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ── Focus ring baseline ─────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ── Selection ───────────────────────────────────────────────────────── */
::selection { background: var(--accent); color: var(--accent-on); }

/* ── Line clamp ──────────────────────────────────────────────────────── */
.line-clamp-1, .line-clamp-2, .line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* ── Gradient text ───────────────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Animation utilities ─────────────────────────────────────────────── */
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.animate-pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(
        90deg,
        var(--surface) 0%,
        var(--surface-hover) 50%,
        var(--surface) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite linear;
    border-radius: var(--radius);
}

/* ── Live dot (pulse) ────────────────────────────────────────────────── */
.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--positive);
    box-shadow: 0 0 0 4px var(--positive-dim);
    animation: pulse-soft 2s ease-in-out infinite;
}

/* ── Grid helpers ────────────────────────────────────────────────────── */
/* gap: 12px for dense product card grids; 16px for stat/metric card grids */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.grid-cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-cols-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) {
    .grid-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-5 {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 640px) {
    .grid-cards { grid-template-columns: 1fr; }
}

/* ── Table row hover (replaces onmouseover/onmouseout anti-pattern) ─── */
.tbl-row-hover { transition: background var(--t-fast); }
.tbl-row-hover:hover { background: var(--surface-hover); }

/* ── Verdict card (product detail) ──────────────────────────────────── */
/* Variant applied to the verdict summary box. Uses color-mix for the
   border so it inherits the semantic color at reduced opacity without
   requiring hard-coded rgba values. */
.verdict-card {
    flex-shrink: 0;
    padding: 16px 20px;
    border-radius: var(--radius);
    min-width: 220px;
    border: 1px solid var(--border);
    background: var(--surface-sunk);
}
.verdict-buy   { background: var(--positive-dim); border-color: color-mix(in srgb, var(--positive) 35%, transparent); }
.verdict-watch { background: var(--warning-dim);  border-color: color-mix(in srgb, var(--warning)  35%, transparent); }
.verdict-wait  { background: var(--accent-glow);  border-color: color-mix(in srgb, var(--accent)   35%, transparent); }

/* ── Export card (settings page download links) ─────────────────────── */
.export-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--surface-sunk);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--t-fast);
    color: inherit;
    text-decoration: none;
}
.export-card:hover {
    border-color: var(--border-strong);
    color: inherit;
}

/* ── Timeline ───────────────────────────────────────────────────────── */
/* Feed event row: absolute-positioned timeline dot lives in a relative parent */
.feed-event {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: transparent;
    transition: background var(--t-fast);
    color: inherit;
    text-decoration: none;
}
.feed-event:hover {
    background: var(--surface-hover);
    color: inherit;
}

/* ── Insights ───────────────────────────────────────────────────────── */
.insights-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.insights-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: 28px;
}

.insights-hero-title {
    margin: 0 0 10px;
}

.insights-hero-copy {
    margin: 0;
    max-width: 62ch;
}

.insights-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.insights-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--surface-sunk);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
}

.signal-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.signal-dot-buy {
    background: var(--positive);
    box-shadow: 0 0 0 4px var(--positive-dim);
}

.signal-dot-wait {
    background: var(--negative);
    box-shadow: 0 0 0 4px var(--negative-dim);
}

.signal-dot-neutral {
    background: var(--text-faint);
    box-shadow: 0 0 0 4px var(--border);
}

.insights-hero-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.insights-range-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.insights-range-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.insights-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    padding: 20px;
}

.metric-card .label-upper {
    margin-bottom: 8px;
}

.metric-card-value {
    margin-bottom: 6px;
}

.metric-card-copy {
    margin: 0;
    max-width: 28ch;
}

.signal-panel,
.trend-panel {
    padding: 24px;
}

.signal-panel-head,
.trend-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.signal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-muted);
}

.signal-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.signal-title-row .text-xl,
.trend-panel-title {
    margin: 0;
}

.signal-copy,
.trend-panel-copy {
    margin: 0;
    max-width: 64ch;
}

.signal-panel-note {
    padding-top: 4px;
    font-size: 12px;
    color: var(--text-faint);
    white-space: nowrap;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.signal-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    color: var(--text);
}

.signal-card:hover {
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.signal-card-media {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-sunk);
    overflow: hidden;
    flex-shrink: 0;
}

.signal-card-media-empty::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: var(--surface-sunk);
}

.signal-media-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.signal-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.signal-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.signal-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.signal-brand {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.signal-meta-chip,
.signal-state,
.trend-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 11px;
    line-height: 1.3;
}

.signal-meta-chip,
.trend-chip {
    background: var(--surface-sunk);
    color: var(--text-muted);
}

.signal-state-buy {
    background: var(--positive-dim);
    border-color: transparent;
    color: var(--positive);
}

.signal-state-wait {
    background: var(--negative-dim);
    border-color: transparent;
    color: var(--negative);
}

.signal-state-neutral {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
    color: var(--accent);
}

.insight-decision-guide,
.timeline-decision-strip,
.market-decision-strip {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
    gap: 18px;
    align-items: stretch;
    padding: 22px;
}

.insight-decision-guide h2,
.timeline-decision-copy h2,
.market-decision-copy h2 {
    margin: 6px 0 8px;
}

.insight-decision-guide p,
.timeline-decision-copy p,
.market-decision-copy p {
    margin: 0;
}

.insight-decision-grid,
.timeline-decision-grid,
.market-decision-grid {
    display: grid;
    gap: 10px;
}

.insight-decision-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-decision-grid,
.market-decision-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-decision-card,
.timeline-decision-item,
.market-decision-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-sunk);
    color: var(--text);
    text-decoration: none;
}

.insight-decision-card:hover,
.timeline-decision-item:hover,
.market-decision-link:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface);
}

.timeline-decision-item strong {
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.operator-warning-panel {
    padding: 0;
}

.operator-warning-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.operator-warning-head h2 {
    margin: 4px 0 0;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.operator-warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.operator-warning-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface-sunk) 86%, transparent), transparent),
        var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color var(--t), background var(--t), transform var(--t);
}

.operator-warning-card:hover {
    color: var(--text);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

/* Tone signaled by the leading dot + a low-opacity full-edge border —
   never a left-accent bar. The dot is the loudest indicator; the
   border-edge tint is just a subtle reinforcement. */
.operator-warning-card.is-critical {
    border-color: color-mix(in srgb, var(--negative) 30%, var(--border));
}

.operator-warning-card.is-warning {
    border-color: color-mix(in srgb, var(--warning) 30%, var(--border));
}

.operator-warning-card.is-info {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.operator-warning-card.is-ok {
    border-color: color-mix(in srgb, var(--positive) 30%, var(--border));
}

.operator-warning-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.operator-warning-top strong {
    margin-left: auto;
    color: var(--text);
}

.admin-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--text-faint);
    box-shadow: 0 0 0 4px var(--border);
    flex-shrink: 0;
}

.is-critical .admin-status-dot {
    background: var(--negative);
    box-shadow: 0 0 0 4px var(--negative-dim);
}

.is-warning .admin-status-dot {
    background: var(--warning);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 18%, transparent);
}

.is-info .admin-status-dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.is-ok .admin-status-dot {
    background: var(--positive);
    box-shadow: 0 0 0 4px var(--positive-dim);
}

.operator-warning-card h3 {
    margin: 0;
    font-size: 15px;
    letter-spacing: -0.02em;
}

.operator-warning-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.55;
}

.operator-warning-action {
    margin-top: auto;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

.next-action-strip {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.5fr);
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 16px;
    border-color: color-mix(in srgb, var(--accent) 18%, var(--border));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34%),
        var(--surface);
}

.next-action-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.next-action-copy h2 {
    margin: 4px 0 0;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.next-action-copy p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.next-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.next-action-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color var(--t), transform var(--t), background var(--t);
}

.next-action-card:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface-hover);
    transform: translateY(-1px);
}

/* Tone signaled by the kicker dot ONLY — full-edge accent border at
   low opacity for hover cohesion. Never a left-accent bar. */
.next-action-card.is-positive { border-color: color-mix(in srgb, var(--positive) 22%, var(--border)); }
.next-action-card.is-warning  { border-color: color-mix(in srgb, var(--warning)  22%, var(--border)); }
.next-action-card.is-negative { border-color: color-mix(in srgb, var(--negative) 22%, var(--border)); }
.next-action-card.is-accent   { border-color: color-mix(in srgb, var(--accent)   22%, var(--border)); }
.next-action-card.is-neutral  { border-color: var(--border); }

.next-action-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.next-action-kicker::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--text-faint);
}
.is-positive .next-action-kicker::before {
    background: var(--positive);
    box-shadow: 0 0 0 3px var(--positive-dim);
}
.is-warning .next-action-kicker::before {
    background: var(--warning);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--warning) 18%, transparent);
}
.is-negative .next-action-kicker::before {
    background: var(--negative);
    box-shadow: 0 0 0 3px var(--negative-dim);
}
.is-accent .next-action-kicker::before {
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.is-positive .next-action-kicker { color: var(--positive); }
.is-warning  .next-action-kicker { color: var(--warning); }
.is-negative .next-action-kicker { color: var(--negative); }
.is-accent   .next-action-kicker { color: var(--accent); }

.next-action-card strong {
    font-size: 14px;
    line-height: 1.35;
}

.next-action-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.next-action-cta {
    margin-top: auto;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 720px) {
    .next-action-strip {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .next-action-grid {
        grid-template-columns: 1fr;
    }
}

.signal-card-title {
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

.signal-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.signal-price {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.signal-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.signal-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.signal-stat-label {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.signal-stat-value {
    color: var(--text-muted);
    line-height: 1.3;
}

.insights-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.trend-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trend-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-sunk);
    color: var(--text);
    transition: border-color var(--t), background var(--t), transform var(--t);
}

.trend-row:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface);
    transform: translateY(-1px);
}

.trend-thumb {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    object-fit: cover;
}

.trend-thumb-empty {
    background: var(--surface);
}

.trend-row-copy {
    min-width: 0;
}

.trend-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.trend-name {
    color: var(--text);
    font-weight: 500;
}

.trend-prices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.trend-old {
    text-decoration: line-through;
}

.trend-new {
    color: var(--text);
}

.trend-empty {
    padding: 20px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-sunk);
    color: var(--text);
    transition: border-color var(--t), background var(--t), transform var(--t);
}

.category-card:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface);
    transform: translateY(-1px);
}

.category-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.category-meter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.category-meter-track {
    height: 6px;
    border-radius: 999px;
    background: var(--surface);
    overflow: hidden;
}

.category-meter-fill {
    height: 100%;
    border-radius: 999px;
}

.category-meter-fill-cool { background: var(--positive); }
.category-meter-fill-mid  { background: var(--warning); }
.category-meter-fill-hot  { background: var(--negative); }

.insights-empty {
    padding: 56px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 960px) {
    .insights-hero,
    .insight-decision-guide,
    .timeline-decision-strip,
    .market-decision-strip,
    .insights-split-grid {
        grid-template-columns: 1fr;
    }

    .insights-hero-controls {
        align-items: flex-start;
    }

    .insights-range-switch {
        justify-content: flex-start;
    }

    .insights-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .insight-decision-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .signal-panel-head,
    .trend-panel-head {
        flex-direction: column;
    }

    .signal-panel-note {
        white-space: normal;
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .insights-page {
        gap: 20px;
    }

    .insights-hero,
    .signal-panel,
    .trend-panel {
        padding: 18px;
    }

    .insights-metrics-grid {
        grid-template-columns: 1fr;
    }

    .signal-grid,
    .category-grid,
    .insight-decision-grid,
    .timeline-decision-grid,
    .market-decision-grid {
        grid-template-columns: 1fr;
    }

    .signal-card {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    .signal-card-media {
        width: 56px;
        height: 56px;
    }

    .signal-price {
        font-size: 21px;
    }

    .signal-stat-grid {
        gap: 8px;
    }
}

/* ── Keyboard hint ───────────────────────────────────────────────────── */
.kbd {
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-subtle);
    background: var(--surface-sunk);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: var(--radius-sm);
}

/* Search hit highlight — used by the |highlight Jinja filter on
   the browse page so matched tokens are visible without dominating
   the row. Theme-friendly: mixes the accent colour with a soft
   surface so light + dark themes both stay readable. */
mark {
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

/* ============================================================
   Operator console chrome (v3.5 — editorial / terminal feel)
   ────────────────────────────────────────────────────────────
   Three sticky bands replace the old single-row nav:
     - .topbar   (52px) brand · main nav · ⌘K · bell · avatar
     - .status   (32px) FX ticker, source count, last/next snap
     - .bottombar (30px) plan · uptime · keyboard hint
   Layout grammar lives on .wrap (max 1480, gutter 32→20).
   ============================================================ */

:root {
    --gutter-x: 32px;
    --rule-thin: 1px solid var(--border);
    --rule-strong: 1px solid var(--border-strong);
    --rule-thick: 2px solid var(--text);
    --max-w: 1480px;
}
@media (max-width: 1100px) { :root { --gutter-x: 20px; } }

/* Wide editorial wrap. .container (max 1200) stays for legacy pages —
   .wrap is only used by base.html chrome and the editorial pages that
   opt into the new spread (dashboard, product_detail). */
.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter-x);
}

/* ── Hairline rules ─────────────────────────────────────────── */
.hr        { height: 1px; background: var(--border);        margin: 0; border: 0; }
.hr-2      { height: 1px; background: var(--border-strong); margin: 0; border: 0; }
.hr-thick  { height: 2px; background: var(--text);          margin: 0; border: 0; }

/* ── Mono eyebrow / kicker (replaces .label-upper for editorial heads) ── */
.ey {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
    font-weight: 500;
}
.ey b   { color: var(--text);   font-weight: 600; }
.ey.ink { color: var(--text); }
.ey.acc { color: var(--accent); }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: 52px;
    background: color-mix(in srgb, var(--bg-raised) 92%, transparent);
    border-bottom: var(--rule-thin);
    display: flex;
    align-items: center;
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.topbar .wrap { display: flex; align-items: center; gap: 0; width: 100%; }
.topbar .brand {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-right: 18px;
    margin-right: 18px;
    border-right: var(--rule-thin);
    text-decoration: none;
    color: inherit;
}
.topbar .brand:hover { color: inherit; }
.topbar .brand .mark {
    width: 26px; height: 26px;
    border-radius: 6px;
    background: var(--seal);
    color: var(--seal-on);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -0.02em;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--seal) 35%, transparent);
}
.topbar .brand .name {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.015em;
    color: var(--text);
}

.topbar nav.topbar-nav {
    display: flex;
    gap: 2px;
    align-items: center;
}
.topbar nav.topbar-nav a,
.topbar nav.topbar-nav button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    font-family: inherit;
    transition: color var(--t-fast), background var(--t-fast);
}
.topbar nav.topbar-nav a:hover,
.topbar nav.topbar-nav button:hover {
    color: var(--text);
    background: var(--surface-hover);
}
.topbar nav.topbar-nav a.on {
    color: var(--text);
    background: var(--surface);
}
.topbar nav.topbar-nav a.on::before {
    content: "";
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 999px;
    background: var(--accent);
    flex-shrink: 0;
}
.topbar nav.topbar-nav .nav-count {
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 0 5px;
    line-height: 14px;
    min-width: 14px;
    text-align: center;
    border-radius: 7px;
    color: var(--text-faint);
    background: var(--surface-sunk);
}
.topbar nav.topbar-nav .nav-count.acc {
    color: var(--accent-on);
    background: var(--accent);
}

.topbar .spacer { flex: 1; }

/* ⌘K command bar trigger — the central search/command affordance */
.cmd-bar {
    height: 32px;
    min-width: 280px;
    max-width: 360px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    background: var(--surface-sunk);
    border: var(--rule-thin);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text-faint);
    cursor: pointer;
    font-family: inherit;
    transition: border-color var(--t-fast), color var(--t-fast);
}
.cmd-bar:hover {
    border-color: var(--border-strong);
    color: var(--text-muted);
}
.cmd-bar svg { color: var(--text-subtle); flex-shrink: 0; }
.cmd-bar .ph { flex: 1; text-align: left; }
.cmd-bar .hint { display: flex; gap: 3px; flex-shrink: 0; }

.topbar .right {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 14px;
    margin-left: 14px;
    border-left: var(--rule-thin);
}
.topbar .right .icon-btn {
    width: 30px; height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    border-radius: 5px;
    cursor: pointer;
    transition: color var(--t-fast), background var(--t-fast);
    position: relative;
}
.topbar .right .icon-btn:hover {
    color: var(--text);
    background: var(--surface-hover);
}
.topbar .right .icon-btn .dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--accent);
    border: 1.5px solid var(--bg-raised);
}
.topbar .right .icon-btn .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    border: 1px solid var(--bg-raised);
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.topbar .me {
    width: 28px; height: 28px;
    border-radius: 999px;
    background: var(--surface);
    border: var(--rule-thin);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ── Status ticker ──────────────────────────────────────────── */
.status {
    position: sticky;
    top: 52px;
    z-index: 78;
    background: var(--bg);
    border-bottom: var(--rule-thin);
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
}
.status .wrap {
    height: 32px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.status .wrap::-webkit-scrollbar { display: none; }
.status .seg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 32px;
    border-right: var(--rule-thin);
    flex-shrink: 0;
}
.status .seg:first-child { padding-left: 0; }
.status .seg.live { color: var(--text); padding-left: 0; }
.status .seg .lbl {
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 10px;
}
.status .v  { color: var(--text); }
.status .up { color: var(--positive); }
.status .dn { color: var(--negative); }
.status .pulse {
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--positive);
    box-shadow: 0 0 0 3px var(--positive-dim);
    animation: pulse-soft 2.4s ease-in-out infinite;
}
.status .right {
    margin-left: auto;
    padding-right: 0 !important;
    border-right: 0 !important;
}

/* ── Bottom status bar ──────────────────────────────────────── */
.bottombar {
    position: sticky;
    bottom: 0;
    z-index: 70;
    height: 30px;
    background: color-mix(in srgb, var(--bg-raised) 92%, transparent);
    border-top: var(--rule-thin);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.bottombar .wrap {
    display: flex;
    align-items: center;
    height: 30px;
}
.bottombar .seg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 30px;
    border-right: var(--rule-thin);
    flex-shrink: 0;
}
.bottombar .seg:first-child { padding-left: 0; }
.bottombar .seg .lbl { color: var(--text-faint); }
.bottombar .seg .ok { color: var(--positive); }
.bottombar .right { margin-left: auto; }
.bottombar .right .seg:last-child { border-right: 0; padding-right: 0; }

/* ── Verdict pills (compact, mono — distinct from badge so existing
      .badge-positive etc. are unchanged) ─────────────────────────── */
.verdict-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-transform: uppercase;
}
.verdict-pill.xs { font-size: 10px; padding: 2px 7px; gap: 4px; }
.v-buy   { background: var(--positive-dim); color: var(--positive); }
.v-hold  { background: var(--surface-sunk); color: var(--text-muted); border: var(--rule-thin); }
.v-wait  { background: var(--warning-dim);  color: var(--warning); }
.v-avoid { background: var(--negative-dim); color: var(--negative); }

/* ── Editorial page head ───────────────────────────────────── */
.page-head {
    padding: 28px 0 22px;
}
.page-head .crumb {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10.5px;
}
.page-head .crumb a { color: var(--text-muted); text-decoration: none; }
.page-head .crumb a:hover { color: var(--text); }
.page-head .crumb .sep { color: var(--text-faint); }
.page-head h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text);
}
.page-head h1 small {
    display: inline-block;
    margin-left: 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-faint);
    letter-spacing: 0;
}
.page-head .sub {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 70ch;
}
.page-head .actions {
    margin-top: 18px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Bigger data values, only used in masthead/hero ─────────── */
.data-2xl {
    font-size: 44px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
}

/* ── Command palette ──────────────────────────────────────── */
.palette-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    display: none;
    padding-top: 96px;
}
.palette-overlay.open { display: block; }
.palette {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-raised);
    border: var(--rule-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.palette .palette-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: var(--rule-thin);
}
.palette .palette-input input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 14px;
}
.palette .palette-input input::placeholder { color: var(--text-faint); }
.palette .group {
    padding: 8px 0;
    border-bottom: var(--rule-thin);
}
.palette .group:last-child { border-bottom: 0; }
.palette .group-h {
    padding: 4px 18px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
}
.palette .item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
}
.palette .item:hover,
.palette .item.active {
    background: var(--surface-hover);
    color: var(--text);
}
.palette .item .icon {
    color: var(--text-faint);
    width: 18px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
}
.palette .item .label { flex: 1; }
.palette .item .meta {
    color: var(--text-faint);
    font-size: 11px;
    font-family: var(--font-mono);
}
.palette-foot {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 8px 18px;
    border-top: var(--rule-thin);
    background: var(--bg);
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-faint);
}

/* ── Topbar / status responsive ────────────────────────────── */
@media (max-width: 1180px) {
    .topbar nav.topbar-nav .nav-label-secondary { display: none; }
}
@media (max-width: 1024px) {
    .cmd-bar { min-width: 200px; }
}
@media (max-width: 900px) {
    .topbar nav.topbar-nav { display: none; }
    .topbar .brand { border-right: 0; margin-right: 0; padding-right: 0; }
    .cmd-bar { min-width: 0; flex: 1; max-width: none; }
    .topbar .right { padding-left: 12px; margin-left: 8px; }
    .page-head h1 { font-size: 28px; }
}

/* ── Editorial masthead (product detail / dashboard hero) ── */
.masthead {
    padding: 28px 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    border-bottom: var(--rule-thin);
}
.masthead .stage {
    position: relative;
    background:
        radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 55%),
        var(--surface-sunk);
    border: var(--rule-thin);
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.masthead .stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Empty stage — fixed height ceiling so a missing image doesn't
   eat the entire viewport. Watermark uses the brand seal mark
   instead of "NO IMAGE" wireframe text. */
.masthead .stage.is-empty {
    aspect-ratio: auto;
    height: 220px;
    max-height: 30vh;
}
.masthead .stage.is-empty::after {
    content: "진";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-size: 96px;
    font-weight: 800;
    color: color-mix(in srgb, var(--seal) 16%, transparent);
    letter-spacing: -0.03em;
    pointer-events: none;
}
.masthead .stage .stage-meta {
    position: absolute;
    bottom: 12px;
    left: 14px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
}
.masthead .stage .stage-live {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.masthead .meta {
    padding: 8px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}
.masthead .meta .breadcrumb-line {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.masthead .meta .breadcrumb-line a { color: var(--text-muted); }
.masthead .meta .breadcrumb-line a:hover { color: var(--text); }
.masthead .meta .vendor {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
}
.masthead .meta .vendor b { color: var(--text); font-weight: 600; }
.masthead .meta h1 {
    margin: 0;
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text);
}
.masthead .meta .lede {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 60ch;
}
.masthead .meta .specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.masthead .meta .specs .chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--surface-sunk);
    border: var(--rule-thin);
    border-radius: 999px;
}
.masthead .meta .specs .chip b { color: var(--text); font-weight: 600; }

@media (max-width: 960px) {
    .masthead {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .masthead .meta h1 { font-size: 36px; }
}

/* ── Verdict hero (full-width band under masthead) ──────────── */
.verdict-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    padding: 32px 0;
    border-bottom: var(--rule-thin);
    align-items: end;
}
.verdict-hero .verdict-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.verdict-hero .verdict-side .verdict-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
}
.verdict-hero .verdict-side .verdict-line .bar {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.verdict-hero .verdict-side .verdict-shout {
    /* clamp lets the shout breathe on narrow viewports without needing
       a separate media query at every breakpoint. 56px floor keeps it
       a hero; 88px ceiling matches the original editorial scale. */
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--accent);
    margin: 0;
    text-wrap: balance;
}
.verdict-hero .verdict-side .verdict-shout.is-buy   { color: var(--positive); }
.verdict-hero .verdict-side .verdict-shout.is-watch { color: var(--warning); }
.verdict-hero .verdict-side .verdict-shout.is-wait  { color: var(--negative); }
.verdict-hero .price-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}
.verdict-hero .price-side .price-tag {
    font-family: var(--font-mono);
    font-size: 88px;
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: var(--text);
}
.verdict-hero .price-side .price-tag .currency {
    color: var(--text-muted);
    margin-right: 4px;
    font-weight: 500;
}
.verdict-hero .price-side .price-meta {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

@media (max-width: 960px) {
    .verdict-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 0;
    }
    .verdict-hero .verdict-side .verdict-shout { font-size: 56px; }
    .verdict-hero .price-side {
        align-items: flex-start;
        text-align: left;
    }
    .verdict-hero .price-side .price-tag { font-size: 56px; }
}

/* ── Quick-fact strip (between masthead and content) ────────── */
.factstrip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    border-top: var(--rule-thin);
    border-bottom: var(--rule-thin);
}
.factstrip .fact {
    padding: 16px 18px;
    border-right: var(--rule-thin);
    min-width: 0;
}
.factstrip .fact:last-child { border-right: 0; }
.factstrip .fact .lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 6px;
}
.factstrip .fact .val {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
}
.factstrip .fact .val .num-sub {
    color: var(--text-subtle);
    font-size: 12px;
    margin-left: 6px;
    font-weight: 400;
}
.detail-checklist {
    margin: 18px 0;
    padding: 20px;
    border: var(--rule-thin);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at bottom left, color-mix(in srgb, var(--positive) 8%, transparent), transparent 36%),
        var(--surface);
}
.detail-checklist-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.detail-checklist-head h2 {
    margin: 5px 0 5px;
    font-size: 22px;
    letter-spacing: -0.03em;
}
.detail-checklist-head p {
    margin: 0;
    max-width: 680px;
    color: var(--text-muted);
    font-size: 13px;
}
.detail-checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.detail-checklist-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid currentColor;
    border-radius: var(--radius);
    background: color-mix(in srgb, currentColor 4%, transparent);
}
.detail-checklist-item span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.detail-checklist-item strong {
    display: block;
    color: var(--text);
    font-size: 13px;
}
.detail-checklist-item p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.45;
}
@media (max-width: 720px) {
    .factstrip { grid-template-columns: repeat(2, 1fr); }
    .factstrip .fact:nth-child(2n) { border-right: 0; }
    .detail-checklist-head {
        flex-direction: column;
    }
    .detail-checklist-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Product hero — the single answer-moment ─────────────────────
   Replaces the masthead + verdict-hero + factstrip stack with one
   editorial split. Image left (smaller, since the verdict carries
   the message), answer-side right: identity → verdict → price → CTA.
   On narrow viewports the image collapses above the answer column. */
.product-hero {
    display: grid;
    /* Judgment column (wider) left, image right */
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 56px;
    padding: 32px 0 40px;
    border-bottom: var(--rule-thin);
    align-items: start;
}
.product-hero .stage {
    position: relative;
    background:
        radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 55%),
        var(--surface-sunk);
    border: var(--rule-thin);
    border-radius: var(--radius-lg);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin: 0;
}
.product-hero .stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-hero .stage.is-empty::after {
    content: "진";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand, 'Pretendard Variable', sans-serif);
    font-size: 96px;
    font-weight: 800;
    color: color-mix(in srgb, var(--seal) 16%, transparent);
    letter-spacing: -0.03em;
    pointer-events: none;
}
.product-hero .answer {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    order: 1;
}
/* Image goes to the right */
.product-hero .stage { order: 2; }
.product-hero .crumb {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.product-hero .crumb a { color: var(--text-muted); }
.product-hero .crumb a:hover { color: var(--text); }
.product-hero .crumb .ml-auto { margin-left: auto; }
.product-hero .vendor {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
}
.product-hero .vendor b { color: var(--text); font-weight: 600; }
/* Product identity — name + brand above the verdict */
.product-hero .product-identity {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.product-hero .product-brand {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
}
.product-hero .product-name-meta {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 56ch;
}

/* Verdict block */
.product-hero .verdict-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--text);
    text-wrap: balance;
}
.product-hero .verdict-stamp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
}
.product-hero .verdict-stamp .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.product-hero .verdict-shout {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text);
    text-wrap: balance;
    max-width: 22ch;
}
.product-hero .verdict-shout.is-buy   { color: var(--positive); }
.product-hero .verdict-shout.is-watch { color: var(--warning); }
.product-hero .verdict-shout.is-wait  { color: var(--negative); }
.product-hero .verdict-detail {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
    max-width: 56ch;
}
.product-hero .price-row {
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: var(--rule-thin);
}
.product-hero .price-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-hero .price-tag {
    font-family: var(--font-mono);
    font-size: clamp(40px, 5vw, 52px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--text);
}
.product-hero .price-tag .currency {
    color: var(--text-muted);
    margin-right: 4px;
    font-weight: 500;
}
.product-hero .price-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-top: 6px;
}
.product-hero .price-delta {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--positive);
    font-weight: 500;
    letter-spacing: 0;
    align-self: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--positive) 12%, transparent);
}
.product-hero .price-delta.is-up {
    color: var(--negative);
    background: color-mix(in srgb, var(--negative) 12%, transparent);
}
.product-hero .price-delta.is-flat {
    color: var(--text-muted);
    background: var(--surface-sunk);
}
.product-hero .actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.product-hero .specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.product-hero .specs .chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--surface-sunk);
    border: var(--rule-thin);
    border-radius: 999px;
    text-decoration: none;
}
.product-hero .specs .chip b { color: var(--text); font-weight: 600; }
.product-hero .specs .chip:hover { color: var(--text); }

/* Hero signals — minimal status chips, replaces .specs */
.product-hero .hero-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: -4px;
}
.signal-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 11px;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--surface-sunk);
    border: var(--rule-thin);
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}
.signal-chip svg { flex-shrink: 0; }
.signal-chip.signal-warning { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 30%, var(--border)); }
.signal-chip.signal-negative { color: var(--negative); border-color: color-mix(in srgb, var(--negative) 30%, var(--border)); }
.signal-chip.signal-accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }

@media (max-width: 960px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 16px 0 28px;
    }
    /* On mobile: image on top, judgment below */
    .product-hero .stage {
        order: 1;
        aspect-ratio: 16 / 9;
        max-height: 240px;
    }
    .product-hero .answer { order: 2; }
}

/* ── Editorial section breaks (typography, not cards) ──────────
   Sections under the hero use a hairline rule + heading instead of
   a bordered card. Forms, tables, and grids inside them keep their
   own surface chrome where useful — but the section frame itself
   is invisible. */
.detail-section {
    padding: 28px 0;
    border-bottom: var(--rule-thin);
    scroll-margin-top: 100px;
}
.detail-section:last-of-type { border-bottom: 0; }
.detail-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.detail-section-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--text);
}
.detail-section-head .micro {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-subtle);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.detail-section-head .micro a { color: var(--text-muted); }
.detail-section-head .micro a:hover { color: var(--text); }

/* ── Chart widget ─────────────────────────────────────────────────── */
.chart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.chart-range-btns {
    display: flex;
    gap: 2px;
    background: var(--surface-sunk);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px;
}
.chart-range-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: calc(var(--radius-sm) - 2px);
    cursor: pointer;
    transition: background var(--t), color var(--t);
}
.chart-range-btn:hover { color: var(--text); background: var(--surface); }
.chart-range-btn.active { background: var(--surface); color: var(--text); }
.chart-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
}
.chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.chart-wrap {
    position: relative;
    height: 400px;
}
.chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-faint);
    font-family: var(--font-mono);
}

/* Inline alert-recommendation pill — sits inside the alerts section
   instead of being its own card. Single row, label-text-button. */
.alert-recommendation {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: var(--rule-thin);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 5%, var(--surface-sunk));
}
.alert-recommendation .label-upper { color: var(--accent); flex-shrink: 0; }

/* ── Source / seller card row (post-promo landed-cost strip) ── */
.source-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    border-top: var(--rule-thin);
    border-bottom: var(--rule-thin);
}
.source-row .src {
    padding: 16px 18px 18px;
    border-right: var(--rule-thin);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.source-row .src:last-child { border-right: 0; }
.source-row .src.is-best {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--accent) 7%, transparent) 0%,
        transparent 80%);
    box-shadow: inset 2px 0 0 var(--accent);
}
.source-row .src .src-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.source-row .src .src-head .src-tag.acc { color: var(--accent); }
.source-row .src .src-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    min-width: 0;
}
.source-row .src .src-name .flag {
    width: 18px; height: 12px;
    border-radius: 2px;
    background: var(--surface-sunk);
    border: var(--rule-thin);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}
.source-row .src .src-eta {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-subtle);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.source-row .src .src-price {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}
.source-row .src .src-price .w {
    color: var(--text-subtle);
    font-weight: 400;
    margin-right: 2px;
}
.source-row .src .src-delta {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0;
}
.source-row .src dl.src-breakdown {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    row-gap: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}
.source-row .src dl.src-breakdown dt {
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 10px;
    align-self: baseline;
}
.source-row .src dl.src-breakdown dd {
    margin: 0;
    color: var(--text);
    text-align: right;
}

@media (max-width: 720px) {
    .source-row { grid-template-columns: 1fr; }
    .source-row .src { border-right: 0; border-bottom: var(--rule-thin); }
    .source-row .src:last-child { border-bottom: 0; }
}

/* ── Ad-supported free tier slots ─────────────────────────────── */
.ad-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 78px;
    padding: 14px 18px;
    border: var(--rule-thin);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 52%),
        var(--surface-sunk);
    color: var(--text-muted);
}
.ad-slot__eyebrow {
    margin-bottom: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.ad-slot__title {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}
.ad-slot__copy {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-subtle);
}
.ad-slot__cta {
    flex-shrink: 0;
    padding: 7px 10px;
    border: var(--rule-thin);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.ad-slot__cta:hover {
    border-color: var(--border-strong);
    background: var(--surface);
}
@media (max-width: 720px) {
    .ad-slot {
        align-items: stretch;
        flex-direction: column;
    }
    .ad-slot__cta {
        text-align: center;
    }
}

/* ── Layout adjustment so .topbar sticky works alongside legacy
      .nav. We keep .nav for any outside callers but neutralize
      its padding-top on body when topbar is present. The new
      base.html no longer renders .nav at all. ─────────────────── */
body.has-topbar > main { padding-top: 0; }

.empty-state {
    padding: 56px 24px;
    text-align: center;
    border: var(--rule-thin);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top, color-mix(in srgb, var(--accent) 6%, transparent), transparent 42%),
        var(--surface-sunk);
}
.empty-state-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: var(--radius);
    background: var(--seal);
    color: var(--seal-on);
    font-family: var(--font-brand);
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 0 0 4px var(--seal-glow);
}
.empty-state h3 {
    margin: 8px 0 6px;
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.empty-state p {
    max-width: 440px;
    margin: 0 auto 16px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}
.public-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
    gap: 48px;
    align-items: center;
}
.public-home-copy {
    max-width: 740px;
}
.public-judgement-demo,
.signup-signal-card {
    padding: 20px;
    border: var(--rule-thin);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--positive) 10%, transparent), transparent 42%),
        var(--surface);
}
.public-demo-verdict {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 16px;
}
.public-demo-verdict strong {
    color: var(--text);
    font-size: 17px;
    line-height: 1.3;
}
.public-demo-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-top: var(--rule-thin);
    border-bottom: var(--rule-thin);
}
.public-demo-price b {
    color: var(--text);
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.04em;
}
.public-demo-grid,
.signup-signal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
}
.public-demo-grid span,
.signup-signal-grid span {
    min-width: 0;
    padding: 10px;
    border: var(--rule-thin);
    border-radius: var(--radius);
    background: var(--surface-sunk);
}
.public-demo-grid b,
.signup-signal-grid b {
    display: block;
    margin-bottom: 3px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.public-demo-grid em,
.signup-signal-grid em {
    color: var(--text);
    font-size: 12px;
    font-style: normal;
}
.signup-signal-card {
    margin-bottom: 16px;
}

/* Home KPI inline row — replaces the 4-card grid strip */
.home-kpi-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    padding: 14px 0 28px;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    border-bottom: var(--rule-thin);
}
.home-kpi-item { display: flex; align-items: baseline; gap: 4px; }
.home-kpi-item .num { font-size: 13px; font-weight: 600; }
.home-kpi-sep { padding: 0 10px; color: var(--text-faint); }

/* ── public home rebuild ─────────────────────────────────────────── */
.home-hero {
    padding: 80px 0 60px;
}
.home-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    margin-bottom: 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
}
.home-h1 {
    margin: 0 0 20px;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.home-h1-sub {
    color: var(--text-muted);
    font-weight: 400;
}
.home-lead {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 0 36px;
    line-height: 1.65;
}
.home-lead strong { color: var(--text); }
.home-search {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin-bottom: 14px;
}
.home-search-input {
    flex: 1;
    font-size: 16px;
    height: 48px;
}
.home-search-hints {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--text-faint);
}
.home-search-hints a { color: var(--text-muted); text-decoration: none; }
.home-search-hints a:hover { color: var(--text); }
.home-kbd-hint { margin-left: 8px; }
.home-kpi-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.home-kpi-num {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}
.home-kpi-label {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 3px;
}

/* Home sections */
.home-section {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}
.home-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.home-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.home-section-title {
    margin: 0;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.home-section-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Unified product list rows — applies to featured, cross_border_wins, trending */
.home-product-list {
    display: flex;
    flex-direction: column;
}
.home-product-row,
.browse-product-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.1s;
}
.home-product-row:first-child,
.browse-product-row:first-child { border-top: 1px solid var(--border); }
.home-product-row:hover,
.browse-product-row:hover { opacity: 0.75; }
.home-product-img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--surface-sunk);
}
.home-product-img.is-empty { background: var(--surface-sunk); }
.home-product-body {
    flex: 1;
    min-width: 0;
}
.home-product-price {
    text-align: right;
    flex-shrink: 0;
}
.home-drop-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--positive-dim);
    color: var(--positive);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    min-width: 48px;
    text-align: center;
    justify-content: center;
}
.home-savings-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--positive-dim);
    color: var(--positive);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
}
.home-crossborder-prices {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 3px;
}
@media (max-width: 640px) {
    .home-hero { padding: 52px 0 40px; }
    .home-section { padding: 36px 0; }
    .home-crossborder-prices { display: none; } /* simplify on small screens */
}

/* ── Decision-first product UI ───────────────────────────────────── */
.topbar-add {
    margin-right: 6px;
}

.decision-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    padding: 2px 10px 2px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.005em;
    background: color-mix(in srgb, currentColor 8%, transparent);
}
.decision-badge.is-compact {
    gap: 5px;
    min-height: 20px;
    padding-inline: 8px;
    font-size: 11.5px;
}
.decision-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}
.decision-label {
    color: currentColor;
}
.decision-buy { color: var(--positive); }
.decision-watch { color: var(--warning); }
.decision-wait { color: var(--negative); }
.decision-neutral { color: var(--text-muted); }

.decision-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.decision-facts.is-compact {
    gap: 5px;
}
.decision-fact {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    padding: 5px 10px;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 9%, transparent);
    font-size: 12px;
    line-height: 1.3;
}
.decision-fact-label {
    color: color-mix(in srgb, currentColor 65%, var(--text-faint));
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.decision-fact-value {
    color: var(--text);
    font-weight: 500;
}

.decision-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    padding: 20px;
    margin-bottom: 16px;
    border: var(--rule-thin);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, color-mix(in srgb, currentColor 7%, transparent), transparent 58%),
        var(--surface);
}
.decision-panel h2 {
    margin: 6px 0 6px;
    font-size: clamp(24px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}
.decision-panel p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}
.decision-panel-buy { color: var(--positive); }
.decision-panel-watch { color: var(--warning); }
.decision-panel-wait { color: var(--negative); }
.decision-panel-neutral { color: var(--text-muted); }

.plan-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: var(--rule-thin);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 62%),
        var(--surface);
    color: inherit;
}
.plan-cta-card:hover {
    color: inherit;
    border-color: var(--accent);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%),
        var(--surface-hover);
}
.plan-cta-kicker {
    margin-bottom: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.plan-cta-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.plan-cta-card p {
    margin: 3px 0 8px;
    color: var(--text-muted);
    font-size: 12.5px;
}

/* ── Today product focus card (/my/products hero slot) ──────────────
   Compact tile — image left, signal+name+price right, single link target.
   No secondary actions: the click-through to /products/:id is the
   only action. Card budget: verdict pill + reason_line + name + price. */
.today-product-card {
    position: relative;
    display: flex;
    gap: 16px;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color var(--t), background var(--t),
                transform var(--t), box-shadow var(--t);
    min-width: 0;
    overflow: hidden;
}
.today-product-card::after {
    content: "→";
    position: absolute;
    right: 16px;
    bottom: 14px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 14px;
    transition: color var(--t-fast), transform var(--t-fast);
    opacity: 0;
}
.today-product-card:hover {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
    background: var(--surface);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--accent) 25%, transparent);
    color: var(--text);
}
.today-product-card:hover::after {
    opacity: 1;
    color: var(--accent);
    transform: translateX(2px);
}
.today-product-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.today-product-media {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 55%),
        var(--surface-sunk);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.today-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Empty image placeholder — subtle 진 watermark instead of a flat
   gray square. Anchors the visual weight even when no product photo. */
.today-product-media.is-empty,
.today-product-media-empty {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
        var(--surface-sunk);
    position: relative;
}
.today-product-media.is-empty::after,
.today-product-media-empty::after {
    content: "진";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-size: 22px;
    font-weight: 800;
    color: color-mix(in srgb, var(--seal) 32%, transparent);
}
.today-product-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 22px;
}
.today-product-signal {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.today-product-reason {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.today-product-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-top: 2px;
}
.today-product-price {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums lining-nums;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-top: 4px;
    letter-spacing: -0.01em;
}
.today-product-price .data {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}
/* Hero grid: up to 3 focus cards side-by-side, then stack */
.today-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
@media (max-width: 640px) {
    .today-products-grid {
        grid-template-columns: 1fr;
    }
    .today-product-card { padding: 14px; }
    .today-product-media { width: 60px; height: 60px; }
    .today-product-name { font-size: 14px; }
    .today-product-price { font-size: 16px; }
}

/* .decision-product-* + .target-progress-* removed with the dead
   _tracked_product_card.html partial. The current /my/products
   list uses _compact_product_row + _today_product_card. */

.card-price-signal {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--positive-dim);
    color: var(--positive);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

/* ── Add-product workspace (v2) ──────────────────────────────────── */
.add-workspace {
    padding-top: 28px;
    padding-bottom: 80px;
    max-width: 720px;
}

/* Hero */
.add-hero2 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 48px 0 28px;
}
.add-hero2-text h1 {
    margin: 0 0 10px;
    font-size: clamp(32px, 6vw, 60px);
    line-height: 1;
    letter-spacing: -0.04em;
}
.add-hero2-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

/* Slot meter (top-right) */
.add-slot-meter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    padding-top: 6px;
}
.add-slot-plan {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.add-slot-count {
    font-family: var(--font-mono);
    font-size: 36px;
    line-height: 1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
.add-slot-label {
    font-size: 11px;
    color: var(--text-faint);
}

/* Prefill notice */
.add-prefill2 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
    border: var(--rule-thin);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
    border-radius: var(--radius);
    background: var(--accent-glow);
}

/* Tab bar */
.add-tabs {
    display: flex;
    gap: 0;
    border-bottom: var(--rule-thin);
    margin-bottom: 28px;
}
.add-tab {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.12s, border-color 0.12s;
}
.add-tab:hover { color: var(--text); }
.add-tab.is-active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* URL form */
.add-url-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.add-url-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.add-url-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    font-size: 15px;
    border-radius: var(--radius);
}
.add-url-submit {
    height: 48px;
    padding: 0 22px;
    font-size: 14px;
    flex-shrink: 0;
    border-radius: var(--radius);
}
.add-url-detect {
    margin-top: 8px;
    min-height: 18px;
    font-size: 12px;
}

/* Secondary fields (expand after URL detection) */
.add-url-extras {
    margin-top: 18px;
    padding-top: 18px;
    border-top: var(--rule-thin);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.add-extras-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Suggestion cards */
.add-suggest-card {
    display: block;
    padding: 10px 12px;
    margin-bottom: 6px;
    border: var(--rule-thin);
    border-radius: var(--radius);
    background: var(--surface);
}
.add-suggest-card.border-warning {
    border-color: color-mix(in srgb, var(--warning) 40%, var(--border));
}

/* Success / error states */
.add-success-card {
    padding: 20px 22px;
    border: var(--rule-thin);
    border-color: color-mix(in srgb, var(--positive) 35%, var(--border));
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--positive) 6%, var(--surface));
}
.add-success-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.add-success-name {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}
.add-error-card {
    padding: 14px 16px;
    border: var(--rule-thin);
    border-color: color-mix(in srgb, var(--negative) 35%, var(--border));
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--negative) 6%, var(--surface));
}

/* Limit notice */
.add-limit-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border: var(--rule-thin);
    border-color: color-mix(in srgb, var(--warning) 40%, var(--border));
    border-radius: var(--radius);
    background: var(--warning-dim);
}

/* Info accordions */
.add-info-group {
    margin-top: 28px;
    border-top: var(--rule-thin);
}
.add-info-details {
    border-bottom: var(--rule-thin);
}
.add-info-details summary {
    padding: 13px 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.add-info-details summary::-webkit-details-marker { display: none; }
.add-info-details summary::after {
    content: '›';
    font-size: 16px;
    color: var(--text-faint);
    transition: transform 0.15s;
}
.add-info-details[open] summary::after { transform: rotate(90deg); }
.add-info-details summary:hover { color: var(--text); }
.add-info-body {
    padding: 4px 0 16px;
}

/* Flow steps inside accordion */
.add-flow-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.add-flow-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.add-flow-step .num {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-faint);
    padding-top: 2px;
    flex-shrink: 0;
    min-width: 22px;
}
.add-flow-step strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}
.add-flow-step p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Bulk form */
.add-bulk-form {
    margin-bottom: 4px;
}

.limit-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 10px;
    border: var(--rule-thin);
    border-color: color-mix(in srgb, var(--warning) 35%, var(--border));
    border-radius: var(--radius);
    background: var(--warning-dim);
}
.source-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.source-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: var(--rule-thin);
    color: var(--text-muted);
    font-size: 12px;
}
.source-list > div:last-child {
    border-bottom: 0;
}
.source-list small {
    display: block;
    margin-top: 2px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 10px;
}
.source-list b {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.rule-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.rule-row > .num {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: var(--rule-thin);
    border-radius: 999px;
    color: var(--accent);
    font-size: 10px;
    flex-shrink: 0;
}
.rule-row p {
    margin: 2px 0 0;
}
.tracking-setup-card {
    padding: 22px;
    margin-bottom: 16px;
    border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 10%, transparent), transparent 38%),
        var(--surface);
}
.tracking-setup-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}
.tracking-setup-head h2 {
    margin: 5px 0 5px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}
.tracking-setup-head p {
    max-width: 620px;
    margin: 0;
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.55;
}
.tracking-setup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.tracking-setup-signal {
    min-width: 0;
    padding: 12px;
    border: var(--rule-thin);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--surface-sunk) 78%, transparent);
}
.tracking-setup-label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.tracking-setup-signal strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    line-height: 1.25;
}
.tracking-setup-signal p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 11.5px;
    line-height: 1.45;
}

/* ── Price decision log (/my/inbox) ─────────────────────────────── */
.price-log-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: var(--rule-thin);
    border-radius: var(--radius-lg);
    background: var(--surface-sunk);
}
.price-log-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.price-log-card {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 18px;
}
.price-log-status-dot {
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 999px;
    background: transparent;
}
.price-log-status-dot.is-unread {
    background: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}
.price-log-main {
    min-width: 0;
}
.price-log-head,
.price-log-title,
.price-log-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-log-head {
    justify-content: space-between;
    margin-bottom: 10px;
}
.price-log-title {
    min-width: 0;
}
.price-log-product {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}
.price-log-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}
.price-log-message {
    margin: 5px 0 4px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}
.price-log-reason {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}
.price-log-next {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
    min-width: 132px;
}
.price-log-facts {
    margin-top: 12px;
}
.price-log-actions {
    margin-top: 12px;
}

/* ── Affiliate / partner CTA shell ──────────────────────────────── */
.affiliate-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0;
    padding: 18px 20px;
    border: var(--rule-thin);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 62%),
        var(--surface);
}
.affiliate-cta-card h2 {
    margin: 4px 0 5px;
    font-size: 18px;
    letter-spacing: -0.02em;
}
.affiliate-cta-card p {
    margin: 0 0 10px;
    max-width: 70ch;
    color: var(--text-muted);
    font-size: 13px;
}
.verdict-shout.decision-copy {
    max-width: 760px;
    font-size: clamp(34px, 6vw, 76px);
    letter-spacing: -0.06em;
    word-break: keep-all;
}

/* ── Pricing page decision framing ──────────────────────────────── */
.pricing-hero {
    padding: 80px 0 48px;
    text-align: center;
}
.pricing-signal-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.pricing-signal-row span {
    padding: 6px 10px;
    border: var(--rule-thin);
    border-radius: 999px;
    background: var(--surface-sunk);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
}
.pricing-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 880px;
    margin: 0 auto;
}
.pricing-plan-card {
    position: relative;
    padding: 28px;
}
.pricing-plan-card.is-pro {
    border: 2px solid var(--accent);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 64%),
        var(--surface);
}
.pricing-plan-ribbon {
    position: absolute;
    top: -11px;
    left: 22px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-on);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
}
.pricing-plan-copy {
    min-height: 40px;
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ── Phase 2: catalog, public product, alert settings ───────────── */
.product-signal-strip,
.alert-rule-strip,
.notification-channel-strip {
    margin-bottom: 18px;
}
.product-filter-row {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.public-browse-hero {
    padding: 48px 0 20px;
}
.public-browse-filter {
    padding: 16px;
}
.public-drop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.public-product-card {
    display: block;
    padding: 16px;
}
.public-product-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: var(--rule-thin);
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 10.5px;
}
.public-product-hero {
    padding: 32px 0 24px;
}
.public-product-intent {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.public-product-intent span {
    padding: 4px 8px;
    border: var(--rule-thin);
    border-radius: 999px;
    background: var(--surface-sunk);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
}
.public-decision-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 62%),
        var(--surface);
}

/* ── Public/private state and collection trust ───────────────────── */
.viewer-state-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-sunk);
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.3;
}

.viewer-state-badge span:first-child {
    color: var(--text);
    font-weight: 600;
}

.contextual-login-cta,
.public-private-notice,
.auth-gate {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0;
}

.contextual-login-cta h2,
.public-private-notice h2,
.auth-gate h1,
.auth-gate h2 {
    margin: 4px 0 6px;
    font-size: 17px;
    line-height: 1.35;
}

.contextual-login-cta p,
.public-private-notice p,
.auth-gate p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.contextual-login-cta__actions,
.auth-gate__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.public-teaser {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}

.collection-health-panel {
    padding: 20px 24px;
    margin-bottom: 16px;
}

.collection-health-panel.is-warning {
    border-color: color-mix(in srgb, var(--warning) 45%, var(--border));
}

.collection-health-panel.is-negative {
    border-color: color-mix(in srgb, var(--negative) 45%, var(--border));
}

.collection-health-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.collection-health-head h2 {
    margin: 4px 0 0;
    font-size: 17px;
    line-height: 1.35;
}

.collection-health-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.collection-health-grid > div {
    background: var(--surface-sunk);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
}

.collection-health-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    font-weight: 600;
}

.collection-health-warnings {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
}

.collection-health-warnings p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.decision-verify,
.decision-stock-risk {
    color: var(--warning);
}

.decision-back-in-stock {
    color: var(--positive);
}
.public-action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 22px;
}
.public-action-card.is-alert {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 70%),
        var(--surface);
}

.alert-upgrade-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 20px;
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.alert-rule-card {
    padding: 16px 18px;
}
.alert-rule-kicker {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 10.5px;
}
.channel-account-card {
    padding: 20px 24px;
    margin-bottom: 24px;
}
.notification-channel-card {
    padding: 24px;
    margin-bottom: 20px;
}
.notification-channel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .add-hero2 {
        flex-direction: column;
        gap: 16px;
        padding: 32px 0 20px;
    }
    .add-slot-meter {
        align-items: flex-start;
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }
    .add-slot-count { font-size: 24px; }
    .add-extras-grid {
        grid-template-columns: 1fr;
    }
    .public-product-card-foot {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .topbar-add {
        display: none;
    }
    .plan-cta-card,
    .affiliate-cta-card,
    .public-action-card,
    .alert-upgrade-note,
    .price-log-summary {
        align-items: stretch;
        flex-direction: column;
    }
    .decision-panel,
    .price-log-grid,
    .pricing-plan-grid {
        grid-template-columns: 1fr;
    }
    .price-log-next {
        align-items: flex-start;
    }
    .flow-steps {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .add-url-row {
        flex-direction: column;
    }
    .add-url-submit {
        width: 100%;
    }
    .public-home-hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .public-demo-price {
        align-items: flex-start;
        flex-direction: column;
    }
    .public-demo-grid,
    .signup-signal-grid {
        grid-template-columns: 1fr;
    }
    .tracking-setup-head {
        flex-direction: column;
    }
    .tracking-setup-grid {
        grid-template-columns: 1fr;
    }
    .pricing-hero {
        padding-top: 56px;
    }
    .public-browse-hero {
        padding-top: 36px;
    }
    .public-decision-card {
        padding: 20px;
    }
    .contextual-login-cta,
    .public-private-notice,
    .auth-gate,
    .collection-health-head {
        align-items: stretch;
        flex-direction: column;
    }
    .collection-health-grid {
        grid-template-columns: 1fr;
    }
    .notification-channel-card,
    .channel-account-card {
        padding: 18px;
    }
}

/* ── Security dashboard (/my/security) ─────────────────────────────
   Status tone is carried by an inline dot + corner tag, not the
   left-accent-bar pattern. Keeps the page calm (this is the page a
   user sees when they're worried). */

.security-status-strip {
    margin-top: 16px;
    margin-bottom: 24px;
    background: var(--surface-sunk);
}

.user-warning-panel {
    margin-bottom: 24px;
}
.user-warning-head {
    margin-bottom: 10px;
}
.user-warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}
.user-warning-card {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: border-color var(--t);
}
.user-warning-card.is-critical {
    background: color-mix(in srgb, var(--negative) 5%, var(--surface));
    border-color: color-mix(in srgb, var(--negative) 22%, var(--border));
}
.user-warning-card.is-warning {
    background: color-mix(in srgb, var(--warning) 5%, var(--surface));
    border-color: color-mix(in srgb, var(--warning) 22%, var(--border));
}
.user-warning-card.is-info {
    background: var(--surface);
    border-color: var(--border-strong);
}
.user-warning-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.user-warning-top strong {
    font-size: 14px;
    color: var(--text);
    flex: 1;
    min-width: 0;
}
.user-warning-tone-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--surface-sunk);
    color: var(--text-faint);
    flex-shrink: 0;
}
.is-critical .user-warning-tone-tag {
    background: var(--negative-dim);
    color: var(--negative);
}
.is-warning .user-warning-tone-tag {
    background: var(--warning-dim);
    color: var(--warning);
}
.user-warning-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--text-faint);
    box-shadow: 0 0 0 4px var(--border);
    flex-shrink: 0;
}
.is-critical .user-warning-dot {
    background: var(--negative);
    box-shadow: 0 0 0 4px var(--negative-dim);
}
.is-warning .user-warning-dot {
    background: var(--warning);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 18%, transparent);
}
.is-info .user-warning-dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.user-warning-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
}
.user-warning-action {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.user-warning-action:hover {
    color: var(--accent-hover);
}

.security-channels-card {
    padding: 18px 20px;
}
.security-channels-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}
.security-channel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.security-channel-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--surface-sunk);
    font-size: 12px;
    color: var(--text);
}
.security-channel-tag span {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-faint);
}
.security-channel-tag.is-on span {
    color: var(--positive);
}

.security-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.security-activity-current {
    font-family: var(--font-mono);
    text-align: right;
}
.security-activity-empty {
    margin: 0;
    padding: 24px 0;
    text-align: center;
}

.security-activity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.security-activity-table thead th {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    font-weight: 500;
}
.security-activity-table thead th.num-col {
    text-align: right;
}
.security-activity-table tbody tr {
    border-top: 1px solid var(--border);
}
.security-activity-table tbody td {
    padding: 8px;
    vertical-align: middle;
}
.security-activity-table td.num-col {
    text-align: right;
}
.security-activity-ua {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.security-result-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--surface-sunk);
    color: var(--text-faint);
}
.security-result-pill.is-ok {
    background: var(--positive-dim);
    color: var(--positive);
}
.security-result-pill.is-fail {
    background: var(--negative-dim);
    color: var(--negative);
}
.security-result-pill.is-info {
    background: var(--info-dim);
    color: var(--info);
    margin-left: 4px;
}

.security-password-form {
    display: grid;
    gap: 14px;
    max-width: 480px;
}
.security-password-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.security-password-field .input {
    width: 100%;
}
.security-password-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.security-password-feedback:empty {
    display: none;
}

.security-pivot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.security-pivot-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color var(--t), background var(--t), transform var(--t);
}
.security-pivot-card:hover,
.security-pivot-card:focus-visible {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface-hover);
    transform: translateY(-1px);
    outline: none;
}
.security-pivot-card strong {
    font-size: 14px;
    color: var(--text);
}
.security-pivot-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
}

@media (max-width: 720px) {
    .security-channels-row { flex-direction: column; }
    .security-activity-header { flex-direction: column; align-items: flex-start; }
    .security-activity-current { text-align: left; }
    .security-activity-ua { max-width: 140px; }
}

/* ── Notification settings (/my/notifications-settings) ────────── */

.notification-preference-strip {
    margin-top: 16px;
    margin-bottom: 8px;
    background: var(--surface-sunk);
}

.notification-flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--border);
}
.notification-flash.is-positive {
    background: color-mix(in srgb, var(--positive) 6%, var(--surface));
    border-color: color-mix(in srgb, var(--positive) 22%, var(--border));
}
.notification-flash.is-negative {
    background: color-mix(in srgb, var(--negative) 6%, var(--surface));
    border-color: color-mix(in srgb, var(--negative) 22%, var(--border));
}
.notification-flash-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex-shrink: 0;
}
.notification-flash.is-positive .notification-flash-dot {
    background: var(--positive);
    box-shadow: 0 0 0 4px var(--positive-dim);
}
.notification-flash.is-negative .notification-flash-dot {
    background: var(--negative);
    box-shadow: 0 0 0 4px var(--negative-dim);
}

.notification-channel-summary {
    padding: 18px 20px;
}
.notification-channel-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}
.notification-channel-mini-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.notification-channel-mini-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--surface-sunk);
    border-radius: 999px;
    font-size: 12px;
}
.notification-channel-mini-name {
    color: var(--text);
    font-weight: 500;
}
.notification-channel-mini-state {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 11px;
}
.notification-channel-mini-list li.is-on .notification-channel-mini-state {
    color: var(--positive);
}

.notification-rules-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.notification-rule-card {
    padding: 18px 20px;
}
.notification-rule-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}
.notification-rule-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}
.notification-rule-inputs .input {
    width: 84px;
}
.notification-rule-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.notification-pivot {
    margin-top: 32px;
}
.notification-pivot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.notification-pivot-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color var(--t), background var(--t), transform var(--t);
}
.notification-pivot-card:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface-hover);
    transform: translateY(-1px);
}
.notification-pivot-card strong {
    font-size: 14px;
    color: var(--text);
}
.notification-pivot-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
}

@media (max-width: 720px) {
    .notification-channel-summary-head {
        flex-direction: column;
    }
    .notification-rule-head {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ── Public brand page (/brand/{slug}) ──────────────────────────── */

.brand-breadcrumb-row {
    padding: 24px 0 0;
}
.brand-breadcrumb {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.brand-breadcrumb li,
.brand-breadcrumb li a {
    color: var(--text-subtle);
}
.brand-breadcrumb li[aria-hidden] {
    color: var(--text-faint);
}
.brand-breadcrumb li:last-child {
    color: var(--text-muted);
}

.brand-header-row {
    padding: 24px 0 24px;
}
.brand-summary-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-section {
    padding: 0 0 32px;
}
.brand-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.brand-section-head h2 {
    margin: 4px 0 0;
    letter-spacing: -0.02em;
}

.brand-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.brand-product-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color var(--t), background var(--t), transform var(--t);
}
.brand-product-card:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--surface-hover);
    transform: translateY(-1px);
}
.brand-product-image {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--surface-sunk);
    overflow: hidden;
    flex-shrink: 0;
}
.brand-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.brand-product-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.brand-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
}
.brand-product-drop {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--positive);
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--positive-dim);
}

.brand-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.brand-popular-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: background var(--t);
}
.brand-popular-row:hover {
    background: var(--surface-hover);
    color: var(--text);
}
.brand-popular-list li:first-child .brand-popular-row {
    border-top: 0;
}
.brand-popular-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.brand-category-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-sunk);
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}
.brand-category-chip .num {
    color: var(--text);
    font-weight: 600;
}

.brand-tier-cta {
    padding-bottom: 56px;
}
.brand-tier-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 22px 24px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    background: var(--surface);
}
.brand-tier-text {
    flex: 1;
    min-width: 0;
}
.brand-tier-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .brand-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .brand-tier-card {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ── Upgrade nudge card (dashboard) ────────────────────────────
   Replaces the previous accent-glow gradient blob. Hierarchy now
   comes from typography + a low-opacity full-edge accent border
   + a small kicker chip — not from a directional gradient. */
.upgrade-nudge-card {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 22px 24px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.upgrade-nudge-text {
    flex: 1;
    min-width: 280px;
}
.upgrade-nudge-kicker {
    display: inline-block;
    padding: 3px 10px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: var(--accent-glow);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.upgrade-nudge-counter {
    flex-shrink: 0;
    text-align: right;
}
.upgrade-nudge-counter .num {
    font-family: var(--font-mono);
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.025em;
}
.upgrade-nudge-counter-label {
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ── Savings report hero ───────────────────────────────────────
   Replaces the corner gradient with surface-sunk inset + the
   amount itself doing the visual work via type scale + tabular
   nums. */
.savings-hero-card {
    padding: 36px 32px;
    margin-bottom: 16px;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface-sunk);
}
.savings-hero-kicker {
    margin-bottom: 12px;
}
.savings-hero-amount {
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--positive);
    margin-bottom: 10px;
    font-family: var(--font-mono);
}
@media (max-width: 720px) {
    .savings-hero-amount { font-size: 36px; }
}

/* ── Detail page sticky section nav ─────────────────────────────
   Lives between the verdict factstrip and the body sections.
   Sticks once scrolled past, compresses to a single 36px row, and
   highlights the section currently in view via JS-driven .is-active.
   Pills, never tabs — the page is editorial, not a console. */
.detail-section-nav {
    position: sticky;
    /* Park below the .topbar (52px) + .status ticker (33px) so neither
       higher-z-index sticky element covers the section pills. */
    top: 85px;
    z-index: 7;
    margin: 0 0 16px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    transition: padding var(--t) var(--ease);
}
.detail-section-nav ul {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 6px 0;
    margin: 0;
    list-style: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.detail-section-nav ul::-webkit-scrollbar { display: none; }
.detail-section-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px 8px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--t-fast);
}
.detail-section-nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: center;
    transition: opacity var(--t-fast), transform var(--t) var(--ease);
}
.detail-section-nav a:hover {
    color: var(--text);
}
.detail-section-nav a.is-active {
    color: var(--accent);
}
.detail-section-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}
.detail-section-nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
@media print {
    .detail-section-nav { display: none; }
}

/* ── /my/products filter strip (segmented control) ────────────
   One filter axis (mutually-exclusive buckets), so segmented pills,
   not chips. Sticks to the top of the products list, scrolls
   horizontally on mobile. */
.my-products-status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: var(--surface-sunk);
    border-radius: var(--radius);
}
.my-products-status-strip .label-upper {
    margin-right: 4px;
}
.my-products-status-strip .badge .num {
    margin-left: 4px;
}

/* ── /my/products worklist layout ─────────────────────────────
   Replaces the heavier workbench-header with a compact single-line
   header that gets out of the way and puts products first. */
.worklist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 4px;
    border-bottom: var(--rule-thin);
}
.worklist-head-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}
.worklist-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
}
.worklist-title .num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums lining-nums;
}
.worklist-meta {
    font-size: 12px;
    color: var(--text-faint);
    font-family: var(--font-mono);
    white-space: nowrap;
}
.worklist-head-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Milestone toast — inline, non-blocking */
.milestone-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

/* Worklist filter — identical visual to my-products-filter but
   with the new class name for the rebuilt template */
.worklist-filter {
    margin: 12px 0 2px;
    border-bottom: 1px solid var(--border);
}
.worklist-filter ul {
    display: flex;
    gap: 2px;
    list-style: none;
    padding: 0 0 6px;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.worklist-filter ul::-webkit-scrollbar { display: none; }
.worklist-filter button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.worklist-filter button:hover { color: var(--text); background: var(--surface-hover); }
.worklist-filter button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.worklist-filter button.is-active {
    background: var(--surface);
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.worklist-filter button .num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-variant-numeric: tabular-nums lining-nums;
    color: var(--text-faint);
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--surface-sunk);
}
.worklist-filter button.is-active .num {
    color: var(--accent);
    background: var(--accent-glow);
}
.worklist-filter-empty {
    margin: 8px 0 0;
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface-sunk);
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/* Secondary modules — below-the-fold supplementary sections */
.secondary-module {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.secondary-module-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

/* Recommendation row (alert-target suggestion) */
.recommendation-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.recommendation-row-body {
    flex: 1;
    min-width: 0;
}
.recommendation-row-threshold {
    text-align: right;
    flex-shrink: 0;
}

.my-products-filter {
    margin: 0 0 12px;
    border-bottom: 1px solid var(--border);
}
.my-products-filter ul {
    display: flex;
    gap: 2px;
    list-style: none;
    padding: 0 0 6px;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.my-products-filter ul::-webkit-scrollbar { display: none; }
.my-products-filter button,
.my-products-filter a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast),
                border-color var(--t-fast);
}
.my-products-filter button:hover,
.my-products-filter a:hover {
    color: var(--text);
    background: var(--surface-hover);
}
.my-products-filter button:focus-visible,
.my-products-filter a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.my-products-filter button.is-active,
.my-products-filter a.is-active {
    background: var(--surface);
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.my-products-filter button .num,
.my-products-filter a .num {
    font-family: var(--font-mono);
    font-size: 11px;
    font-variant-numeric: tabular-nums lining-nums;
    color: var(--text-faint);
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--surface-sunk);
}
.my-products-filter button.is-active .num,
.my-products-filter a.is-active .num {
    color: var(--accent);
    background: var(--accent-glow);
}
.my-products-filter-empty {
    margin: 8px 0 0;
    padding: 14px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface-sunk);
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/* ── Compact product row (workbench list) ──────────────────────
   Single horizontal row per item — replaces the heavier card in
   list contexts. No standalone card chrome; rows are separated
   by a hairline. Hover reveals the row (subtle background shift)
   and surfaces the trailing arrow. */
.product-row-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}
.product-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto 16px;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: background var(--t-fast);
}
.product-row:first-child { border-top: 0; }
.product-row:hover {
    color: var(--text);
    background: var(--surface-hover);
}
.product-row:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
.product-row-media {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 60%),
        var(--surface-sunk);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.product-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-row-media:not(:has(img))::after,
.product-row-media.is-empty::after {
    content: "진";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 800;
    color: color-mix(in srgb, var(--seal) 28%, transparent);
}
.product-row-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-row-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.product-row-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.product-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    font-size: 12px;
    color: var(--text-faint);
    line-height: 1.4;
}
.product-row-meta > span:not([aria-hidden]) { color: var(--text-muted); }
.product-row-meta .text-positive { color: var(--positive); font-weight: 500; }
.product-row-meta .text-warning { color: var(--warning); font-weight: 500; }
.product-row-price {
    text-align: right;
    flex-shrink: 0;
}
.product-row-price-amount {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums lining-nums;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.015em;
}
.product-row-price-meta {
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-faint);
}
.product-row-action {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 14px;
    text-align: center;
    transition: color var(--t-fast), transform var(--t-fast);
}
.product-row:hover .product-row-action {
    color: var(--accent);
    transform: translateX(2px);
}
.product-row-inline-btn {
    padding: 4px 10px;
    border: 1px solid color-mix(in srgb, var(--negative) 38%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--negative) 8%, transparent);
    color: var(--negative);
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--t-fast), color var(--t-fast);
}
.product-row-inline-btn:hover {
     background: color-mix(in srgb, var(--negative) 16%, transparent);
}
.product-row-inline-btn--muted {
    border-color: var(--border-strong);
    background: transparent;
    color: var(--text-faint);
}
.product-row-inline-btn--muted:hover {
    background: color-mix(in srgb, var(--text) 6%, transparent);
    color: var(--text-secondary);
}

@media (max-width: 720px) {
    .product-row {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 10px 12px;
    }
    .product-row-action { display: none; }
    .product-row-media { width: 44px; height: 44px; }
}

/* ── Inbox timeline (/my/inbox) ────────────────────────────────
   Replaces the .notification-item card stack. Each row is a
   horizontal lane: tone-dot rail · body (product + message + reason)
   · trailing CTA + inline controls. No per-row card chrome — rows
   sit on a hairline rule and share a single soft container. */
.inbox-timeline {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.inbox-day-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
    padding-left: 4px;
}
.inbox-day-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.inbox-day-count {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums lining-nums;
    font-size: 11px;
    color: var(--text-faint);
}
.inbox-day-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}

.inbox-event {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    transition: background var(--t-fast);
}
.inbox-event:first-child { border-top: 0; }
.inbox-event:hover { background: var(--surface-hover); }

.inbox-event-rail {
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.inbox-event-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--text-faint);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--text-faint) 18%, transparent);
}
.inbox-event.tone-positive .inbox-event-dot {
    background: var(--positive);
    box-shadow: 0 0 0 4px var(--positive-dim);
}
.inbox-event.tone-warning .inbox-event-dot {
    background: var(--warning);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 18%, transparent);
}
.inbox-event.tone-negative .inbox-event-dot {
    background: var(--negative);
    box-shadow: 0 0 0 4px var(--negative-dim);
}
.inbox-event.tone-accent .inbox-event-dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}
.inbox-event.is-unread .inbox-event-dot {
    /* Pulse ring for unread state — read events sit calm. */
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 28%, transparent);
}
.inbox-event.is-unread .inbox-event-product {
    color: var(--text);
    font-weight: 600;
}

.inbox-event-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.inbox-event-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}
.inbox-event-product {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.inbox-event-product:hover { color: var(--accent); }
.inbox-event-product.is-system { color: var(--text-muted); cursor: default; }
.inbox-event-kind {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--surface-sunk);
}
.inbox-event-time {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-faint);
}
.inbox-event-message {
    margin: 0;
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.5;
}
.inbox-event-reason {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
}

.inbox-event-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.inbox-event-cta {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--t-fast), color var(--t-fast);
    white-space: nowrap;
}
.inbox-event-cta:hover {
    background: var(--accent);
    color: var(--accent-on);
}
.inbox-event-cta.is-static {
    background: var(--surface-sunk);
    color: var(--text-muted);
    cursor: default;
}
.inbox-event-controls {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity var(--t-fast);
}
.inbox-event:hover .inbox-event-controls,
.inbox-event:focus-within .inbox-event-controls {
    opacity: 1;
}
.inbox-event-control {
    background: none;
    border: 0;
    padding: 0;
    color: var(--text-faint);
    font-size: 11px;
    cursor: pointer;
}
.inbox-event-control:hover { color: var(--text); }
.inbox-event-control.is-danger:hover { color: var(--negative); }

@media (max-width: 720px) {
    .inbox-event {
        grid-template-columns: 20px minmax(0, 1fr);
        padding: 12px;
    }
    .inbox-event-action {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        margin-top: 4px;
    }
    .inbox-event-controls { opacity: 1; margin-left: auto; }
}

/* ═══════════════════════════════════════════════════════════════════
   ADMIN SHELL — "운영 지휘실" layout
   Wide layout: left side nav + main content area
   ═══════════════════════════════════════════════════════════════════ */

.workspace-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workspace-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.workspace-header-copy {
    margin: 8px 0 0;
    max-width: 780px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
}

.workspace-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.workspace-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}

.workspace-fact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-right: 1px solid var(--border);
}

.workspace-fact:last-child {
    border-right: 0;
}

.workspace-fact-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.workspace-fact-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.workspace-fact-copy {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}

.workspace-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.workspace-main,
.workspace-rail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.workspace-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 18px 18px 16px;
}

.workspace-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.workspace-panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.workspace-panel-copy {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
}

.workspace-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.workspace-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.workspace-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.workspace-row:last-child {
    padding-bottom: 0;
}

.workspace-row-main {
    min-width: 0;
}

.workspace-row-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.workspace-row-title a {
    color: inherit;
    text-decoration: none;
}

.workspace-row-title a:hover {
    color: var(--accent);
}

.workspace-row-copy {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}

.workspace-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-faint);
}

.workspace-row-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
    flex-shrink: 0;
}

.workspace-row-amount {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.workspace-row-subvalue {
    font-size: 11px;
    color: var(--text-faint);
}

.workspace-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.workspace-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--surface-sunk);
    color: var(--text-muted);
    font-size: 11px;
}

.workspace-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-faint);
}

.workspace-chart-board {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.workspace-chart-panel {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.workspace-chart-panel:first-child {
    border-top: 0;
    padding-top: 0;
}

.workspace-mini-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 96px;
}

.workspace-mini-bars > span {
    flex: 1;
    border-radius: 2px;
    min-height: 2px;
}

.workspace-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.workspace-table th,
.workspace-table td {
    padding: 10px 0;
    border-top: 1px solid var(--border);
    text-align: left;
}

.workspace-table th {
    padding-top: 0;
    border-top: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.workspace-table td:last-child,
.workspace-table th:last-child {
    text-align: right;
}

.admin-shell {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: calc(100vh - 100px);
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Side nav ─────────────────────────────────────────────────── */
.admin-sidenav {
    position: sticky;
    top: 64px; /* below main topbar */
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    padding: 20px 0 16px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.admin-sidenav-header {
    padding: 0 12px 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.admin-sidenav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.admin-sidenav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--t), background var(--t);
    margin: 1px 4px;
    position: relative;
}

.admin-sidenav-link svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.admin-sidenav-link:hover {
    color: var(--text);
    background: var(--surface-sunk);
}

.admin-sidenav-link.is-active {
    color: var(--text);
    background: var(--surface-sunk);
    font-weight: 600;
}

.admin-sidenav-link.is-active svg {
    opacity: 1;
}

.admin-sidenav-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--surface-base);
    border: 1px solid var(--border);
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-sidenav-badge.is-warn {
    background: color-mix(in srgb, var(--warning) 15%, var(--surface));
    border-color: color-mix(in srgb, var(--warning) 35%, var(--border));
    color: var(--warning);
}

.admin-sidenav-badge.is-crit {
    background: color-mix(in srgb, var(--negative) 15%, var(--surface));
    border-color: color-mix(in srgb, var(--negative) 35%, var(--border));
    color: var(--negative);
}

.admin-sidenav-footer {
    padding: 12px 12px 0;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* ── Main content ─────────────────────────────────────────────── */
.admin-main {
    padding: 20px 0 40px 24px;
    min-width: 0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.admin-topbar-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
}

.admin-topbar-copy {
    margin: 6px 0 0;
    max-width: 760px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
}

.admin-quickstrip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}

.admin-quickstrip-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-right: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: background var(--t-fast), color var(--t-fast);
}

.admin-quickstrip-link:last-child {
    border-right: 0;
}

.admin-quickstrip-link:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.admin-quickstrip-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.admin-quickstrip-value {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.admin-quickstrip-meta {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 960px) {
    .workspace-columns {
        grid-template-columns: 1fr;
    }

    .workspace-facts,
    .admin-quickstrip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .workspace-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .workspace-facts,
    .admin-quickstrip {
        grid-template-columns: 1fr;
    }

    .workspace-fact,
    .admin-quickstrip-link {
        border-right: 0;
        border-top: 1px solid var(--border);
    }

    .workspace-fact:first-child,
    .admin-quickstrip-link:first-child {
        border-top: 0;
    }

    .workspace-row {
        grid-template-columns: 1fr;
    }

    .workspace-row-value {
        align-items: flex-start;
        text-align: left;
    }
}

.admin-section {
    margin-bottom: 20px;
}

/* ── Issue Queue ──────────────────────────────────────────────── */
.issue-queue {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.issue-queue thead tr {
    border-bottom: 1px solid var(--border);
    background: var(--surface-sunk);
}

.issue-queue th {
    padding: 8px 12px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    white-space: nowrap;
}

.iq-col-sev   { width: 32px; }
.iq-col-name  { width: 30%; }
.iq-col-impact { }
.iq-col-count { width: 80px; text-align: right !important; }
.iq-col-action { width: 130px; text-align: right !important; }

.iq-group-header td {
    padding: 6px 12px 4px;
    background: var(--surface-sunk);
    border-top: 1px solid var(--border);
}

.iq-level-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.iq-level-critical {
    background: color-mix(in srgb, var(--negative) 12%, var(--surface-sunk));
    color: var(--negative);
}

.iq-level-warning {
    background: color-mix(in srgb, var(--warning) 12%, var(--surface-sunk));
    color: var(--warning);
}

.iq-level-info {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface-sunk));
    color: var(--accent);
}

.iq-row {
    border-top: 1px solid var(--border);
    transition: background var(--t);
}

.iq-row:hover {
    background: var(--surface-sunk);
}

.iq-row td {
    padding: 10px 12px;
    vertical-align: middle;
}

.iq-row-critical { background: color-mix(in srgb, var(--negative) 3%, var(--surface)); }
.iq-row-warning  { background: color-mix(in srgb, var(--warning) 2%, var(--surface)); }

.iq-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex-shrink: 0;
}

.iq-dot-critical { background: var(--negative); box-shadow: 0 0 0 3px var(--negative-dim); }
.iq-dot-warning  { background: var(--warning);  box-shadow: 0 0 0 3px color-mix(in srgb, var(--warning) 18%, transparent); }
.iq-dot-info     { background: var(--accent);   box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }

.iq-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.iq-kicker {
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.iq-metric {
    font-family: var(--font-mono, monospace);
    font-size: 14px;
    font-weight: 700;
    display: block;
    text-align: right;
}

.iq-metric-critical { color: var(--negative); }
.iq-metric-warning  { color: var(--warning); }
.iq-metric-info     { color: var(--accent); }

/* ── Compact metric strip ─────────────────────────────────────── */
.metric-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 10px 16px;
    background: var(--surface-sunk);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 12px;
}

.metric-strip-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 4px 14px;
}

.metric-strip-label {
    color: var(--text-faint);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.metric-strip-value {
    font-family: var(--font-mono, monospace);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.metric-strip-sep {
    width: 1px;
    height: 28px;
    background: var(--border);
    flex-shrink: 0;
}

/* ── Admin action row (single-issue inline callout) ──────────── */
.admin-action-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--warning) 30%, var(--border));
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    transition: background var(--t);
}

.admin-action-row:hover {
    background: var(--surface-sunk);
    color: inherit;
}

/* ── 4-panel ops grid ─────────────────────────────────────────── */
.admin-ops-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.admin-ops-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    min-width: 0;
}

.admin-ops-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.admin-ops-panel-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── Ops row (label + value pair) ────────────────────────────── */
.ops-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
    font-size: 12px;
}

.ops-row:last-of-type { border-bottom: none; }

.ops-row-label {
    color: var(--text-faint);
    flex-shrink: 0;
    min-width: 0;
}

.ops-row-value {
    font-weight: 500;
    color: var(--text);
    text-align: right;
    min-width: 0;
}

/* ── Compact ops table ────────────────────────────────────────── */
.ops-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.ops-table th {
    padding: 5px 6px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-faint);
    border-bottom: 1px solid var(--border);
}

.ops-table td {
    padding: 6px 6px;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent);
    vertical-align: middle;
}

.ops-table tr:last-child td { border-bottom: none; }
.ops-table tr:hover td { background: color-mix(in srgb, var(--surface-sunk) 60%, transparent); }

/* ── Sparkline in ops panel ──────────────────────────────────── */
.ops-sparkline-row {
    display: flex;
    gap: 12px;
}

.ops-sparkline-item {
    flex: 1;
}

/* ── Trend strip — compact, below fold ──────────────────────── */
.trend-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.trend-strip-cell {
    flex: 1;
    min-width: 110px;
    padding: 12px 14px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trend-strip-cell:last-child { border-right: none; }

.trend-strip-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-faint);
    margin-bottom: 3px;
}

.trend-strip-value {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.trend-strip-chart { margin-bottom: 3px; }

.trend-strip-delta {
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

/* ── Responsive: stack on narrow screens ─────────────────────── */
@media (max-width: 1100px) {
    .admin-ops-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }
    .admin-sidenav {
        position: static;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 8px 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .admin-sidenav-header { display: none; }
    .admin-sidenav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 2px;
    }
    .admin-sidenav-footer { display: none; }
    .admin-main { padding: 16px 0 32px; }
    .issue-queue th, .issue-queue td { padding: 8px; }
    .iq-col-impact { display: none; }
}
