/* === Arc Platform — Pipeline Dashboard, Solution Table, Verdicts === */
.header-search span { font-size: 14px; opacity: 0.5; }
.header-search input {
    border: none; outline: none; font-size: 14px; background: transparent; width: 100%;
    font-family: inherit; color: var(--text-primary);
}
.header-search input::placeholder { color: var(--text-muted); }
.header-btn {
    padding: 9px 20px; border-radius: 50px; font-size: 13px; font-weight: 500;
    cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary);
    transition: all 0.25s ease; display: inline-flex; align-items: center; gap: 6px;
    font-family: inherit;
}
.header-btn:hover { border-color: var(--border); color: var(--text-primary); background: var(--gray-6); }
.header-btn.btn-accent {
    border: none; background: var(--primary);
    color: #fff; font-weight: 600;
}
.header-btn.btn-accent:hover { background: var(--primary-dark); box-shadow: none; }

/* ─── BREADCRUMBS ────────────────────────────────────────── */
.breadcrumbs { display: flex; align-items: center; font-size: 14px; color: var(--text-muted); min-width: 0; overflow: hidden; }
.breadcrumb-item { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.breadcrumb-item.arc-brand { overflow: visible; max-width: none; flex-shrink: 0; }
.breadcrumb-item.active { color: var(--text-primary); font-weight: 600; }

/* ─── ARC BRAND MARK (prominent header branding) ─────────── */
.arc-brand {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #0f172a !important;
    position: relative;
    line-height: 1;
}
.arc-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    margin-left: 2px;
    vertical-align: baseline;
    position: relative;
    top: 0px;
}

/* ─── CONTENT ────────────────────────────────────────────── */
.content { padding: 24px 32px 48px; }
.page-view { display: none; }
.page-view.active { display: block; animation: viewFadeIn 0.2s ease; }
@keyframes viewFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── PIPELINE KPI STRIP ────────────────────────────────── */
.pipeline-kpi-strip {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 14px 24px;
    margin-bottom: 16px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}
.pkpi-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.pkpi-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}
.pkpi-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}
.pkpi-spark {
    margin-left: auto;
    flex-shrink: 0;
}
.pkpi-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(249,114,22,0.08);
    color: var(--primary);
    white-space: nowrap;
    margin-left: auto;
}
.pkpi-badge.muted {
    background: rgba(142,142,147,0.1);
    color: #8E8E93;
}
.pkpi-badge.accent {
    background: rgba(249,114,22,0.1);
    color: var(--primary);
}
.pkpi-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    margin: 0 20px;
    flex-shrink: 0;
}

/* ─── PIPELINE BAR (Apple-neutral stepper) ──────────────── */
.pipeline-bar {
    display: flex; align-items: center; justify-content: center;
    padding: 24px 20px; margin-bottom: 28px;
    background: var(--surface); border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow-x: auto; gap: 0;
}
.pipeline-node {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer; position: relative; min-width: 64px;
}
.pipeline-node-circle {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; border: 2px solid var(--gray-3); transition: all 0.2s;
    position: relative; z-index: 2;
    background: var(--surface); color: var(--gray-1);
}
.pipeline-node:hover .pipeline-node-circle { transform: scale(1.08); color: var(--text-primary); }
.pipeline-node.active .pipeline-node-circle {
    border-color: var(--text-primary); color: var(--text-primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.pipeline-node-label {
    font-size: 10px; font-weight: 600; color: var(--gray-1);
    text-align: center; max-width: 70px; line-height: 1.2;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.pipeline-node.active .pipeline-node-label { color: var(--text-primary); }
.pipeline-node-count {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 50%; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    z-index: 3; color: #fff; background: var(--gray-2);
}
.pipeline-node.active .pipeline-node-count { background: var(--text-primary); }
.pipeline-connector {
    display: flex; align-items: center; min-width: 28px; flex: 0 1 48px; position: relative;
}
.pipeline-connector-line { height: 1px; flex: 1; background: var(--gray-4); }
.pipeline-gate {
    font-size: 12px; color: var(--gray-3); line-height: 1; margin: 0 -2px;
    position: relative; z-index: 2;
}
.pipeline-gate.auto { color: var(--gray-2); }
.pipeline-gate.complete { color: var(--gray-3); }

/* ─── STATS ROW (Apple-neutral) ──────────────────────────── */
/* ─── VERDICT FILTER TABS ────────────────────────────────── */
.solution-table-toolbar {
    padding: 16px 20px 0;
}
.verdict-filter-bar {
    display: flex; gap: 2px; margin-bottom: 0;
    background: var(--gray-6); border-radius: 10px; padding: 3px;
    width: fit-content;
}
.verdict-filter-tab {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 18px; border-radius: 8px;
    font-size: 13px; font-weight: 500; color: var(--text-secondary);
    background: transparent; border: none; cursor: pointer;
    transition: all 0.2s ease; white-space: nowrap;
}
.verdict-filter-tab:hover {
    color: var(--text-primary); background: rgba(255,255,255,0.5);
}
.verdict-filter-tab.active {
    color: var(--text-primary); background: var(--surface);
    font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.verdict-filter-count {
    font-size: 11px; font-weight: 600; background: rgba(0,0,0,0.06);
    padding: 1px 6px; border-radius: 4px; min-width: 18px; text-align: center;
}
.verdict-filter-tab.active .verdict-filter-count {
    background: rgba(0,0,0,0.08);
}

/* Legacy stats-row (kept for backward compat) */
.stats-row {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 28px;
}
.stat-card {
    background: var(--surface); border-radius: 14px; padding: 20px;
    border: 1px solid var(--border);
    text-align: center; cursor: pointer; transition: all 0.2s;
}
.stat-card:hover { border-color: var(--gray-3); }
.stat-value {
    font-size: 28px; font-weight: 700; color: var(--text-primary);
    letter-spacing: -1px; margin-bottom: 4px;
}
.stat-value.green, .stat-value.yellow, .stat-value.red, .stat-value.blue {
    color: var(--text-primary);
}
.stat-label {
    font-size: 11px; font-weight: 500; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px;
}
/* Small status dot on stat cards */
.stat-dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    margin-right: 6px; vertical-align: middle;
}

/* ─── SOLUTION GRID ──────────────────────────────────────── */
.solution-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px;
}
.solution-card {
    background: var(--surface); border-radius: var(--radius-xl); padding: 24px;
    box-shadow: var(--shadow-md); border: 1px solid var(--border-light);
    cursor: pointer; transition: all 0.2s;
}
.solution-card:hover {
    box-shadow: var(--shadow-lg); transform: translateY(-2px);
    border-color: var(--primary);
}
.solution-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.solution-card-rank {
    width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.solution-card-rank.top { background: #f0fdf4; color: #15803d; }
.solution-card-rank.mid { background: #fefce8; color: #a16207; }
.solution-card-rank.low { background: #fef2f2; color: #b91c1c; }
.solution-card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; line-height: 1.3; }
.solution-card-codename { font-size: 12px; color: var(--text-secondary); font-weight: 600; margin-bottom: 3px; }
.solution-card-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.solution-card-score { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.score-bar-track { flex: 1; height: 4px; background: var(--border-light); border-radius: 2px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 2px; transition: width 0.5s; }
.score-number { font-size: 18px; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.solution-card-footer { display: flex; justify-content: space-between; align-items: center; }
.stage-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.stage-progress-mini { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ─── VERDICT BADGE ──────────────────────────────────────── */
.verdict-badge {
    display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 8px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px;
}

/* ─── DETAIL VIEW ────────────────────────────────────────── */
.detail-hero { margin-bottom: 28px; }
.back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer; border: none; background: none;
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    font-family: inherit;
    transition: all 0.2s; margin-bottom: 16px;
    padding: 6px 0;
}
.back-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.back-btn:hover { color: var(--primary); }
.back-btn:hover svg { transform: translateX(-3px); transition: transform 0.2s; }
.detail-hero-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.detail-hero-left { flex: 1; }
.detail-hero-left h1 { font-size: 24px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px; margin-bottom: 4px; }
.detail-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-muted); margin-bottom: 8px;
}
.detail-meta .codename { font-weight: 600; color: var(--text-secondary); }
.detail-oneliner { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.detail-hero-right { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; gap: 12px; }
.score-ring-container { position: relative; width: 80px; height: 80px; }
.ring-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.score-big { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; color: var(--text-primary); }
.score-max { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ─── STAGE PROGRESS BAR (detail) ────────────────────────── */
.stage-progress-bar {
    display: flex; align-items: center; padding: 20px 16px; margin-bottom: 28px;
    background: var(--surface); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md); border: 1px solid var(--border-light); overflow-x: auto;
}
.stage-progress-node {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer; min-width: 60px; transition: all 0.15s;
}
.stage-progress-node:hover { transform: scale(1.05); }
.stage-progress-circle {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; border: 2.5px solid var(--border); background: var(--surface);
    transition: all 0.2s; z-index: 2;
}
.stage-progress-node.completed .stage-progress-circle {
    background: var(--surface); border-color: var(--gray-3); color: var(--text-primary); font-weight: 700;
}
.stage-progress-node.current .stage-progress-circle {
    border-color: var(--text-secondary); background: var(--surface); color: var(--text-secondary);
}
.stage-progress-node.locked .stage-progress-circle {
    border-color: var(--border-light); background: var(--surface); color: var(--text-muted); opacity: 0.5;
}
.stage-progress-node.active .stage-progress-circle {
    border-color: var(--accent, #E8833A) !important; background: var(--surface); color: var(--accent, #E8833A) !important;
    box-shadow: 0 0 0 4px rgba(232,131,58,0.15); animation: pulseOrange 2s infinite; opacity: 1 !important;
}
.stage-progress-label {
    font-size: 10px; font-weight: 600; color: var(--text-muted);
    text-align: center; max-width: 64px; line-height: 1.2;
}
.stage-progress-node.completed .stage-progress-label { color: var(--text-secondary); }
.stage-progress-node.current .stage-progress-label { color: var(--text-secondary); font-weight: 700; }
.stage-progress-node.active .stage-progress-label { color: var(--accent, #E8833A) !important; font-weight: 700; }
.stage-progress-connector { display: flex; align-items: center; min-width: 24px; flex: 1; max-width: 56px; }
.stage-progress-connector .connector-line { height: 2px; flex: 1; background: var(--border); }
.stage-progress-connector.completed .connector-line { background: var(--gray-3); }
.gate-diamond { font-size: 12px; margin: 0 -2px; z-index: 2; }
.gate-diamond.passed { color: var(--gray-2); }
.gate-diamond.pending { color: var(--text-muted); }
.gate-diamond.locked { color: var(--text-muted); opacity: 0.4; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(0,0,0,0.04); }
    50% { box-shadow: 0 0 0 8px rgba(0,0,0,0.02); }
}
@keyframes pulseOrange {
    0%, 100% { box-shadow: 0 0 0 4px rgba(232,131,58,0.15); }
    50% { box-shadow: 0 0 0 10px rgba(232,131,58,0.05); }
}

/* ─── STAGE CONTENT ──────────────────────────────────────── */
.stage-content-area { }
.stage-header-bar {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.stage-header-info { flex: 1; }
.stage-header-bar h2 { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.stage-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-secondary); flex-wrap: wrap; margin-top: 4px; }
.stage-status {
    display: inline-flex; padding: 5px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
}
.stage-status.completed { background: var(--gray-6); color: var(--text-primary); }
.stage-status.in-progress { background: var(--gray-6); color: var(--text-secondary); }
.stage-sections { }
.section-block {
    margin-bottom: 20px; background: #ffffff; border-radius: 14px;
    border: 1px solid var(--border-light, #e5e7eb); padding: 24px 28px;
}
.section-title {
    font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 16px;
    letter-spacing: 0.05em; text-transform: uppercase;
}

/* Locked stage */
.locked-stage-message { text-align: center; padding: 48px 24px; }
.locked-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.locked-stage-message h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.locked-stage-message p { font-size: 14px; color: var(--text-muted); }

/* Template preview */
.template-preview { margin-top: 24px; }
.template-preview h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.template-guide { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.template-sections { display: grid; gap: 12px; }
.template-section-card {
    padding: 18px 20px; background: #ffffff; border-radius: 10px;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--gray-3);
    box-shadow: none;
}
.template-section-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.template-section-prompt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.template-section-deliverable { font-size: 12px; color: var(--text-muted); font-style: italic; margin-top: 6px; }

/* Empty state */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); max-width: 400px; margin: 0 auto; }

/* ─── SLEEK CARDS (clean, minimal design) ───────────────── */
.sleek-card {
    background: #ffffff; border-radius: 12px; padding: 20px 24px;
    border: 1px solid var(--border-light, #e5e7eb);
    box-shadow: none;
    transition: all 0.2s ease;
}
/* ─── SOLUTION TABLE (dashboard, Apple-neutral) ──────────── */
.solution-table-wrap {
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.sol-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}
.sol-table thead th {
    text-align: left;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    background: var(--gray-6);
    white-space: nowrap;
}
.sol-th-deal { width: 44%; }
.sol-th-score { width: 12%; }
.sol-th-progress { width: 24%; }
.sol-th-verdict { width: 20%; }
.sol-th-sortable { cursor: pointer; user-select: none; transition: color 0.15s; }
.sol-th-sortable:hover { color: var(--primary); }
.sol-th-sorted { color: var(--primary); }
.sol-table-row {
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.sol-table-row:hover {
    background: var(--gray-6);
}
.sol-table-row:hover td:first-child {
    box-shadow: inset 3px 0 0 0 var(--primary);
}
.sol-table-row:hover .sol-deal-name {
    color: var(--text-primary);
}
.sol-table-row:active {
    background: #ECECF0;
}
.sol-table-row td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.sol-table-deal { white-space: normal; }
.sol-table-row:last-child td {
    border-bottom: none;
}
.sol-deal-row {
    display: flex; align-items: center; gap: 10px;
}
.sol-owner-avatar {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--gray-2), var(--gray-1));
    flex-shrink: 0; user-select: none;
}
.sol-deal-info { flex: 1; min-width: 0; }
.sol-deal-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sol-deal-sub {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Verdict stack: pill + context bar */
.sol-verdict-stack {
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.sol-ctx-bar { width: 80px; }
.sol-ctx-track {
    height: 3px; background: var(--gray-5); border-radius: 2px; overflow: hidden;
}
.sol-ctx-fill {
    height: 100%; border-radius: 2px; transition: width 0.4s ease;
}
.sol-table-score {}
.sol-score-ring-wrap {
    position: relative; width: 40px; height: 40px; display: flex;
    align-items: center; justify-content: center;
}
.sol-score-ring {
    position: absolute; top: 0; left: 0;
}
.sol-score-ring-value {
    font-size: 12px; font-weight: 700; color: var(--text-primary);
    position: relative; z-index: 1; line-height: 1;
}
.sol-score-ring circle:last-child {
    transition: stroke-dashoffset 0.6s ease;
}
.sol-table-progress {}
.sol-progress-segments {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 6px;
    height: 18px;
}
.sol-seg {
    width: 5px;
    height: 100%;
    border-radius: 2.5px;
    background: var(--gray-5);
    transition: background 0.3s ease, transform 0.2s ease;
}
.sol-seg.completed {
    background: var(--text-primary);
}
.sol-seg.current {
    background: var(--primary);
}
.sol-progress-segments.all-done .sol-seg {
    background: var(--text-primary);
}
.sol-table-row:hover .sol-seg.completed {
    background: var(--text-primary);
}
.sol-table-row:hover .sol-seg.current {
    background: var(--primary);
    transform: scaleY(1.1);
}
.sol-progress-stage-label {
    font-size: 12px; font-weight: 600; color: var(--text-primary);
    margin-bottom: 4px; white-space: nowrap;
}
.sol-table-row:hover .sol-progress-stage-label {
    color: var(--primary);
}
.sol-progress-label {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Verdict pills (Apple tinted, not saturated) */
.sol-table-verdict {
    text-align: right;
}
.sol-th-verdict {
    text-align: right !important;
}
.sol-verdict-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.sol-verdict-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ─── BULK ACTIONS ──────────────────────────────────────── */
.bulk-action-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 20px; background: var(--primary-light);
    border-bottom: 1px solid rgba(249,114,22,0.12);
    animation: slideDown 0.15s ease;
}
@keyframes slideDown {
    from { transform: translateY(-8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.bulk-count {
    font-size: 13px; font-weight: 600; color: var(--primary);
}
.bulk-actions {
    display: flex; gap: 6px; align-items: center;
}
.sol-table-row.bulk-checked {
    background: var(--primary-light);
}
.sol-table-row.bulk-checked td:first-child {
    box-shadow: inset 3px 0 0 0 var(--primary);
}
.btn-secondary.active {
    background: var(--primary-light); color: var(--primary); border-color: var(--primary);
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1200px) {
    .persona-gallery { grid-template-columns: repeat(2, 1fr); }
    .pricing-table { grid-template-columns: repeat(2, 1fr); }
    .score-section { flex-direction: column; align-items: stretch; }
    .score-card { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border-light); padding-bottom: 20px; }
    .info-block + .info-block { padding-left: 0; border-left: none; padding-top: 16px; border-top: 1px solid var(--border-light); }
    .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main { margin-left: 0; }
    .content { padding: 16px 16px 32px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: 1fr; }
    .persona-gallery { grid-template-columns: 1fr; }
    .pricing-table { grid-template-columns: 1fr; }
    .strategy-metrics { grid-template-columns: repeat(2, 1fr); }
    .admin-export-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .solution-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sol-table { min-width: 600px; table-layout: auto; }

    /* Entity detail header: stack vertically */
    .solution-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .solution-header-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
    .solution-header-actions .btn-primary,
    .solution-header-actions .btn-secondary,
    .solution-header-actions .btn-danger { font-size: 12px; padding: 7px 14px; }

    /* Stage progress bar: horizontal scroll */
    .stage-progress { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
    .stage-progress-bar { min-width: 500px; }

    /* Content section tabs: horizontal scroll */
    .tabs-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; flex-wrap: nowrap; }
    .tab-btn { white-space: nowrap; flex-shrink: 0; }

    /* Chat panel */
    .pdl-chat-panel { width: calc(100vw - 16px); right: 8px; bottom: 72px; height: 60vh; }
    .pdl-chat-fab { bottom: 16px; right: 16px; }
}
