/* === Arc Platform — Section Type Renderers, Collaboration, Gates === */
.sleek-card:hover { background: #fafbfc; }
/* Inside section-blocks (white containers), sleek-cards revert to grey fill */
.section-block .sleek-card {
    background: var(--bg-secondary, #f8f9fa); border: none;
}
.section-block .sleek-card:hover { background: var(--gray-6, #f1f3f5); }
.sleek-card-title {
    font-size: 11px; font-weight: 700; color: var(--text-muted);
    letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px;
    display: flex; align-items: center; gap: 0;
}
.sleek-card-title::before { display: none; }
.sleek-card .card-value { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; letter-spacing: -0.3px; }
.sleek-card .card-reasoning { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; font-weight: 400; }
.sleek-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }
.sleek-card ul { list-style: none; margin: 0; padding: 0; }
.sleek-card ul li {
    padding: 8px 0; font-size: 13px; color: var(--text-secondary);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex; align-items: flex-start; gap: 10px; line-height: 1.55;
}
.sleek-card ul li:last-child { border-bottom: none; }
.sleek-card ul li::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent, #E8833A);
    margin-top: 7px; flex-shrink: 0;
}
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 24px; }
.full-card { grid-column: 1 / -1; }
.card-value { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }

/* Recommendation card */
.recommendation-card {
    background: #fafbff;
    border-radius: 12px; padding: 24px 28px;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--gray-3);
    box-shadow: none;
    position: relative; overflow: hidden;
}
.recommendation-card::before { display: none; }
.recommendation-card .sleek-card-title { color: var(--text-primary); }
.recommendation-card p { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

/* ─── VALIDATE STAGE (matches reference) ─────────────────── */
.score-section {
    background: var(--surface); border-radius: 16px;
    padding: 24px 32px; border: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    display: flex; align-items: center; gap: 32px; margin-bottom: 28px;
}
.score-card {
    display: flex; align-items: center; gap: 16px;
    padding-right: 32px; border-right: 1px solid var(--border-light); flex-shrink: 0;
}
.score-ring-big { position: relative; width: 72px; height: 72px; }
.score-ring-big .ring-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.score-ring-big .score-big { font-size: 22px; }
.score-info { display: flex; flex-direction: column; gap: 6px; }
.score-verdict-badge {
    padding: 5px 12px; border-radius: 6px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.3px; width: fit-content;
}
.info-block { flex: 1; min-width: 0; }
.info-block + .info-block { padding-left: 32px; border-left: 1px solid var(--border-light); }
.info-block-label {
    font-size: 10px; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.6px; font-weight: 600; margin-bottom: 6px;
}
.info-block-value { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; line-height: 1.3; }
.info-block-meta { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.competitive-status { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.competitive-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.competitive-dot.green { background: var(--text-primary); }
.competitive-dot.yellow { background: var(--gray-2); }
.competitive-dot.red { background: var(--gray-3); }
.competitive-text { font-size: 14px; font-weight: 600; }
.competitive-text.green { color: var(--text-primary); }
.competitive-text.yellow { color: var(--text-secondary); }
.competitive-text.red { color: var(--text-muted); }

/* Tabs (pill style matching reference) */
.tabs-nav {
    display: flex; gap: 8px; margin-bottom: 28px;
    background: #f8fafc; padding: 8px; border-radius: 16px;
    width: fit-content; border: 1px solid var(--border-light);
}
.tab-btn {
    padding: 12px 28px; border-radius: 12px; font-size: 14px; font-weight: 600;
    color: var(--text-secondary); background: none; border: none;
    cursor: pointer; transition: all 0.25s ease;
}
.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.8); }
.tab-btn.active {
    background: var(--surface); color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Scoring criteria (matches reference) */
.scoring-category {
    background: var(--surface); border-radius: var(--radius-xl); padding: 28px;
    margin-bottom: 24px; border: 1px solid var(--border-light);
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.scoring-category-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 20px; margin-bottom: 20px; border-bottom: 2px solid var(--border-light);
}
.scoring-category-title {
    font-size: 17px; font-weight: 700; color: var(--text-primary);
    display: flex; align-items: center; gap: 10px;
}
.scoring-category-title::before {
    content: ''; width: 3px; height: 18px;
    background: var(--primary); border-radius: 2px;
}
.scoring-category-score {
    font-size: 16px; font-weight: 700; color: var(--primary);
    background: var(--primary-light); padding: 8px 16px; border-radius: var(--radius-md);
}
.scoring-criteria-list { display: flex; flex-direction: column; gap: 12px; }
.scoring-criteria-row {
    display: flex; align-items: flex-start; gap: 20px;
    padding: 16px 20px; background: #f8fafc; border-radius: var(--radius-lg);
    transition: all 0.2s ease; border: 1px solid transparent;
}
.scoring-criteria-row:hover {
    background: var(--surface); border-color: var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.scoring-criteria-ring { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.scoring-criteria-ring-value {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    font-size: 16px; font-weight: 800;
}
.scoring-criteria-content { flex: 1; min-width: 0; padding-top: 4px; }
.scoring-criteria-label { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.scoring-criteria-note { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Competitor table (matches reference) */
.competitor-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.competitor-table th {
    text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase; background: var(--border-light);
    border-radius: 8px 8px 0 0;
}
.competitor-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); }
.competitor-table tr:last-child td { border-bottom: none; }
.competitor-table .name { font-weight: 600; }
.threat-critical { color: var(--red-dark); font-weight: 600; }
.threat-high { color: var(--red); font-weight: 600; }
.threat-medium { color: var(--yellow-dark); font-weight: 600; }
.threat-low { color: var(--green); font-weight: 600; }

/* ─── SECTION RENDERERS ──────────────────────────────────── */

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat-item {
    text-align: center; padding: 16px 12px; background: var(--bg-secondary, #f8f9fa);
    border-radius: 12px; border: none; box-shadow: none; overflow: hidden; min-width: 0;
}
.stat-item-value { font-size: 20px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; line-height: 1.2; word-break: break-word; }
.stat-item-reasoning { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-top: 2px; font-weight: 400; }
.stat-item-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.stat-item-sublabel { font-size: 11px; color: var(--text-muted); font-style: normal; margin-top: 2px; }

/* Data table */
.table-wrapper { overflow-x: auto; border-radius: 12px; background: var(--bg-secondary, #f8f9fa); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left; padding: 10px 16px; font-size: 11px; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
    background: transparent; border-bottom: 2px solid var(--border-light);
}
.data-table td {
    padding: 12px 16px; font-size: 13px; color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light); vertical-align: middle;
}
.data-table td:first-child { font-weight: 600; color: var(--text-primary); }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: rgba(0,0,0,0.02); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Competitor matrix */
.competitor-matrix td { font-size: 13px; }
.depth-bar { display: flex; gap: 3px; align-items: center; }
.depth-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-light); }
.depth-dot.filled { background: var(--text-primary); }
td.threat-high, td.threat-critical { color: #dc2626; font-weight: 600; }
td.threat-medium, td.threat-moderate { color: #d97706; font-weight: 600; }
td.threat-low { color: #16a34a; font-weight: 600; }

/* Highlight list */
.highlight-list { display: grid; gap: 8px; }
.highlight-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px;
    background: var(--bg-secondary, #f8f9fa); border-radius: 10px;
    border: none; transition: background 0.15s;
}
.highlight-item:hover { background: var(--gray-6, #f1f3f5); }
.highlight-item.highlighted { background: rgba(232,131,58,0.06); }
.highlight-icon { display: none; }
.highlight-num {
    font-size: 13px; font-weight: 700; color: var(--text-muted);
    min-width: 20px; flex-shrink: 0; padding-top: 1px;
    font-variant-numeric: tabular-nums;
}
.highlight-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Smart text segmentation — breaks wall-of-text into labeled subsections */
/* Uses grayscale palette (grays/whites/blacks) with orange accent only where needed */
.seg { margin-top: 10px; padding: 8px 12px; border-radius: 6px; font-size: 13px; line-height: 1.6; }
.seg-lead { margin-top: 0; padding: 0 0 4px 0; font-weight: 600; color: var(--text-primary); border-radius: 0; }
.seg-label { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; margin-right: 4px; color: #555; }
.seg-concern { background: #fff7f0; border-left: 3px solid #e8750a; color: #333; }
.seg-concern .seg-label { color: #e8750a; }
.seg-response { background: #f7f8fa; border-left: 3px solid #888; color: #222; }
.seg-response .seg-label { color: #444; }
.seg-pivot { background: #f2f2f2; border-left: 3px solid #333; color: #222; }
.seg-pivot .seg-label { color: #222; }
.seg-context { background: #fafafa; border-left: 3px solid #aaa; color: #333; }
.seg-context .seg-label { color: #555; }
.seg-impact { background: #fff7f0; border-left: 3px solid #e8750a; color: #333; }
.seg-impact .seg-label { color: #e8750a; }
.seg-action { background: #f7f8fa; border-left: 3px solid #666; color: #222; }
.seg-action .seg-label { color: #444; }

/* Highlight card content (legacy) */
.highlight-card-content {
    background: #fafbff; border: 1px solid var(--border-light);
    border-left: 3px solid var(--primary);
    border-radius: 10px; padding: 20px 24px;
}
.highlight-card-content p { font-size: 14px; color: var(--text-primary); line-height: 1.7; }

/* ─── Structured Highlight Card ──────────────────────────── */
.highlight-card-structured {
    background: var(--bg-secondary, #f8f9fa);
    border: none;
    border-radius: 12px;
    padding: 22px 24px;
    display: flex; flex-direction: column; gap: 18px;
}
.hc-summary {
    font-size: 15px; font-weight: 600; color: var(--text-primary);
    line-height: 1.5; border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 14px;
}
.hc-metrics {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px;
}
.hc-metric {
    background: var(--surface); border-radius: 10px;
    padding: 14px 12px; text-align: center;
}
.hc-metric-value {
    font-size: 22px; font-weight: 800; color: var(--text-primary);
    letter-spacing: -0.02em; line-height: 1.2;
}
.hc-metric-label {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px;
}
.hc-bullet-group { }
.hc-bullet-heading {
    font-size: 12px; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
}
.hc-bullets {
    list-style: none; display: flex; flex-direction: column; gap: 6px;
    padding: 0; margin: 0;
}
.hc-bullets li {
    font-size: 14px; color: var(--text-primary); line-height: 1.5;
    padding-left: 18px; position: relative;
}
.hc-bullets li::before {
    content: ''; position: absolute; left: 0; top: 8px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary);
}
.hc-callout {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 18px; border-radius: 10px;
    font-size: 14px; line-height: 1.6; color: var(--text-primary);
}
.hc-callout.info { background: #EFF6FF; border-left: 3px solid #3B82F6; }
.hc-callout.warn { background: var(--primary-light); border-left: 3px solid var(--primary); }
.hc-callout.danger { background: #FEF2F2; border-left: 3px solid #EF4444; }
.hc-callout:not(.info):not(.warn):not(.danger) { background: var(--gray-6); border-left: 3px solid var(--gray-3); }
.hc-callout-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.hc-callout-text { flex: 1; }
.hc-paragraph {
    font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}

/* ─── Generation Progress Bar & Streaming ────────────────── */
.btn-cancel-gen {
    font-size: 13px; padding: 6px 16px; color: var(--text-secondary);
    border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
    cursor: pointer; transition: all 0.15s;
}
.btn-cancel-gen:hover { color: var(--red); border-color: var(--red); }
.gen-progress-bar-wrap {
    width: 100%; height: 4px; background: var(--gray-5);
    border-radius: 2px; margin: 16px 0 8px; overflow: hidden;
}
.gen-progress-bar {
    height: 100%; background: linear-gradient(90deg, var(--primary), #FB923C);
    border-radius: 2px; transition: width 0.4s ease;
}
.gen-progress-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; font-size: 13px; color: var(--text-muted);
}
#genSectionLabel { font-weight: 600; color: var(--text-secondary); }
#genSectionCount { font-variant-numeric: tabular-nums; }

/* Tab progress indicators during parallel generation */
.gen-tab-indicators {
    display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.gen-tab-ind {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
    background: var(--gray-6); color: var(--text-muted);
    transition: all 0.3s ease;
}
.gen-tab-ind.done {
    background: #ECFDF5; color: #059669;
}
.gen-tab-ind-spinner {
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--gray-4); border-top-color: var(--primary);
    animation: gen-spin 0.8s linear infinite;
}
@keyframes gen-spin { to { transform: rotate(360deg); } }
.gen-tab-ind.done .gen-tab-ind-spinner { display: none; }
.gen-tab-ind.done::before { content: '✓'; margin-right: -2px; }

.stage-status.generating {
    background: linear-gradient(90deg, var(--primary-light), var(--primary-light));
    color: var(--primary-dark); animation: gen-pulse 1.5s ease-in-out infinite;
}
@keyframes gen-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Section reveal animation */
.gen-section-reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.gen-section-reveal.revealed {
    opacity: 1; transform: translateY(0);
}

/* Checklist */
.checklist { display: grid; gap: 6px; }
.checklist-item {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
    border-radius: 8px; border: none;
    transition: background 0.15s;
}
.checklist-item:hover { background: rgba(0,0,0,0.02); }
.checklist-item.tested { background: rgba(22,163,74,0.05); }
.checklist-item.untested { background: var(--bg-secondary, #f8f9fa); }
.checklist-status { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.checklist-content { flex: 1; }
.checklist-text { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.checklist-result { font-size: 12px; color: var(--text-secondary); margin-top: 2px; font-style: normal; }

/* Persona cards */
.persona-card {
    background: var(--bg-secondary, #f8f9fa); border-radius: 12px; padding: 22px;
    border: none; box-shadow: none; margin-bottom: 12px;
}
.persona-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.persona-avatar {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; font-weight: 700; background: var(--text-primary); flex-shrink: 0;
}
.persona-info { flex: 1; min-width: 0; }
.persona-name { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.persona-title { font-size: 12px; color: var(--text-secondary); }
.persona-company { font-size: 11px; color: var(--text-muted); }
.persona-type {
    font-size: 10px; font-weight: 700; color: var(--accent, #E8833A);
    background: rgba(232,131,58,0.08); padding: 3px 10px; border-radius: 6px; display: inline-block;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.persona-demographics {
    font-size: 12px; color: var(--text-secondary); margin-bottom: 12px;
    padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.persona-context { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; line-height: 1.6; }
.persona-section { margin-bottom: 10px; }
.persona-section strong { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.persona-section ul { list-style: none; padding: 0; margin-top: 4px; }
.persona-section li { padding: 3px 0 3px 14px; font-size: 13px; color: var(--text-secondary); position: relative; line-height: 1.5; }
.persona-section li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent, #E8833A); position: absolute; left: 0; top: 8px; }
.persona-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.persona-card.compact { padding: 18px; }

/* Criteria list */
.criteria-list { display: grid; gap: 6px; }
.criteria-row {
    display: flex; align-items: center; gap: 14px; padding: 10px 16px;
    background: var(--bg-secondary, #f8f9fa); border: none; border-radius: 8px;
    transition: background 0.15s;
}
.criteria-row:hover { background: var(--gray-6, #f1f3f5); }
.criteria-label { font-size: 13px; font-weight: 600; color: var(--text-primary); min-width: 120px; }
.criteria-value { flex: 1; font-size: 13px; color: var(--text-secondary); }
.criteria-priority { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.3px; }
.criteria-priority.priority-must-have { background: rgba(220,38,38,0.08); color: #dc2626; }
.criteria-priority.priority-important { background: rgba(217,119,6,0.08); color: #d97706; }
.criteria-priority.priority-nice-to-have { background: rgba(22,163,74,0.08); color: #16a34a; }

/* Org chart */
.org-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.org-role-card {
    padding: 18px; background: var(--bg-secondary, #f8f9fa); border: none;
    border-radius: 12px; box-shadow: none; transition: background 0.15s;
}
.org-role-card:hover { background: var(--gray-6, #f1f3f5); }
.org-role-badge {
    display: inline-flex; padding: 3px 10px; border-radius: 20px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    background: rgba(29,29,31,0.06); color: var(--text-secondary); margin-bottom: 8px;
}
.org-role-name { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.org-role-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 8px; }
.org-role-engagement { font-size: 12px; color: var(--text-muted); font-style: normal; }

/* Strategy card */
.strategy-card {
    background: var(--bg-secondary, #f8f9fa); border-radius: 12px; padding: 24px;
    border: none; box-shadow: none;
}
.strategy-model { font-size: 18px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.strategy-card > p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }
.strategy-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.strategy-metric {
    text-align: center; padding: 12px; background: var(--surface);
    border-radius: 10px; border: none; overflow: hidden; min-width: 0;
}
.strategy-metric-target { font-size: 18px; font-weight: 800; color: var(--text-primary); word-break: break-word; }
.strategy-metric-reasoning { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin: 4px 0 6px; font-weight: 400; }
.strategy-metric-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Pricing table */
.pricing-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pricing-tier {
    background: var(--bg-secondary, #f8f9fa); border-radius: 12px; padding: 22px;
    border: none; box-shadow: none; transition: background 0.2s;
}
.pricing-tier:hover { background: var(--gray-6, #f1f3f5); }
.pricing-tier.highlighted { background: rgba(232,131,58,0.06); box-shadow: inset 0 0 0 2px rgba(232,131,58,0.2); }
.pricing-tier-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.pricing-tier-price { font-size: 26px; font-weight: 800; color: var(--text-primary); margin: 8px 0; letter-spacing: -0.5px; }
.pricing-tier-target { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600; }
.pricing-features { list-style: none; padding: 0; }
.pricing-features li {
    padding: 4px 0 4px 18px; font-size: 13px; color: var(--text-secondary); position: relative;
}
.pricing-features li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent, #E8833A); font-weight: 700; }

/* Funnel */
.funnel-viz { display: grid; gap: 6px; }
.funnel-stage { display: flex; align-items: center; gap: 14px; }
.funnel-bar {
    height: 36px; border-radius: 8px; display: flex; align-items: center;
    padding: 0 14px; transition: width 0.5s; min-width: 50px;
}
.funnel-count { font-size: 13px; font-weight: 700; color: #fff; }
.funnel-info { flex: 1; min-width: 0; overflow: hidden; }
.funnel-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel-metric { font-size: 12px; color: var(--text-secondary); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.funnel-conversion { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Company cards */
.company-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.company-card {
    background: var(--bg-secondary, #f8f9fa); border-radius: 12px; padding: 20px;
    border: none; box-shadow: none; transition: background 0.15s;
}
.company-card:hover { background: var(--gray-6, #f1f3f5); }
.company-name { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.company-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.company-fit { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 6px; }
.company-approach { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Journey maps */
.journey-maps { display: grid; gap: 16px; }
.journey-card {
    background: var(--bg-secondary, #f8f9fa); border-radius: 12px; padding: 22px;
    border: none; box-shadow: none;
}
.journey-name { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.journey-trigger { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.journey-phases { display: flex; gap: 0; overflow-x: auto; }
.journey-phase { flex: 1; min-width: 150px; padding: 12px; border-right: 1px solid rgba(0,0,0,0.05); }
.journey-phase:last-child { border-right: none; }
.journey-phase-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.journey-phase-num {
    font-size: 13px; font-weight: 700; color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.journey-phase-name { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.journey-emotion { font-size: 11px; color: var(--text-muted); margin-left: auto; font-style: normal; }
.journey-phase-action { font-size: 12px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 6px; }
.journey-phase-touchpoint { font-size: 11px; color: var(--text-muted); font-style: normal; }

/* JTBD cards */
.jtbd-cards { display: grid; gap: 10px; }
.jtbd-card {
    background: var(--bg-secondary, #f8f9fa); border-radius: 12px; padding: 20px;
    border: none; box-shadow: none; transition: background 0.15s;
}
.jtbd-card:hover { background: var(--gray-6, #f1f3f5); }
.jtbd-statement { font-size: 14px; color: var(--text-primary); line-height: 1.65; margin-bottom: 10px; }
.jtbd-when, .jtbd-want, .jtbd-so { font-weight: 700; color: var(--text-primary); }
.jtbd-meta { display: flex; gap: 8px; }
.jtbd-frequency { font-size: 11px; color: var(--text-secondary); background: rgba(0,0,0,0.04); padding: 3px 10px; border-radius: 20px; }
.jtbd-importance { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.3px; }
.jtbd-importance.importance-critical { background: rgba(29,29,31,0.08); color: #1D1D1F; }
.jtbd-importance.importance-high { background: rgba(29,29,31,0.05); color: #6E6E73; }
.jtbd-importance.importance-medium { background: rgba(29,29,31,0.03); color: #AEAEB2; }
.jtbd-context {
    margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.05);
    display: flex; flex-direction: column; gap: 4px;
}
.jtbd-context-row { display: flex; gap: 8px; font-size: 12px; line-height: 1.5; }
.jtbd-context-label {
    font-weight: 700; color: var(--text-muted); min-width: 110px; flex-shrink: 0; font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.04em; padding-top: 1px;
}
.jtbd-context-value { color: var(--text-secondary); font-size: 12px; }

/* Agent cards */
.agent-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.agent-card {
    background: var(--bg-secondary, #f8f9fa); border-radius: 12px; padding: 20px;
    border: none; box-shadow: none;
}
.agent-name { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.agent-purpose { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.agent-detail { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; line-height: 1.5; }
.agent-detail strong { color: var(--text-primary); font-weight: 600; }

/* Workflow ASCII */
.workflow-diagrams { display: grid; gap: 12px; }
.workflow-card {
    background: var(--bg-secondary, #f8f9fa); border-radius: 12px; padding: 20px;
    border: none; box-shadow: none;
}
.workflow-name { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.workflow-ascii {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 11px; line-height: 1.6; color: var(--text-secondary);
    background: var(--surface); padding: 16px; border-radius: 8px;
    overflow-x: auto; white-space: pre; border: none;
}

/* API endpoints */
.api-endpoints { display: grid; gap: 8px; }
.api-endpoint {
    background: var(--bg-secondary, #f8f9fa); border-radius: 10px; padding: 14px 18px;
    border: none; transition: background 0.15s;
}
.api-endpoint:hover { background: var(--gray-6, #f1f3f5); }
.api-method-path { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.api-method {
    padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700;
    font-family: monospace; text-transform: uppercase; letter-spacing: 0.3px;
}
.api-method.method-get { background: rgba(75,85,99,0.08); color: #4b5563; }
.api-method.method-post { background: rgba(232,117,10,0.08); color: #e8750a; }
.api-method.method-put { background: rgba(107,114,128,0.08); color: #6b7280; }
.api-method.method-delete { background: rgba(55,65,81,0.08); color: #374151; }
.api-path { font-family: monospace; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.api-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.api-params, .api-response { font-size: 12px; color: var(--text-muted); }
.api-params code, .api-response code {
    font-family: monospace; background: rgba(0,0,0,0.04); padding: 2px 6px;
    border-radius: 4px; font-size: 11px;
}

/* ─── COLLABORATION PANEL ────────────────────────────────── */
.collab-panel {
    background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md); padding: 24px; margin-top: 28px;
}
.collab-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.collab-comments { max-height: 300px; overflow-y: auto; margin-bottom: 16px; }
.collab-comment { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.collab-comment:last-child { border-bottom: none; }
.collab-avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.collab-comment-body { flex: 1; }
.collab-comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.collab-comment-header strong { font-size: 14px; }
.collab-date { font-size: 12px; color: var(--text-muted); }
.collab-comment-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.collab-empty { font-size: 14px; color: var(--text-muted); text-align: center; padding: 20px; }
.collab-add { display: flex; gap: 10px; }
.collab-input {
    flex: 1; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-md);
    font-size: 14px; outline: none; font-family: inherit;
}
.collab-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

/* ─── GATE WIDGET ────────────────────────────────────────── */
.gate-widget {
    background: var(--surface); border-radius: var(--radius-xl); border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md); padding: 24px; margin-top: 20px;
}
.gate-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gate-diamond-icon { font-size: 20px; }
.gate-diamond-icon.passed { color: var(--primary); }
.gate-diamond-icon.pending { color: var(--text-muted); }
.gate-diamond-icon.failed { color: var(--red); }
.gate-header h4 { font-size: 15px; font-weight: 600; }
.gate-widget p { font-size: 14px; color: var(--text-secondary); }
.gate-approvals { display: grid; gap: 8px; margin-bottom: 12px; }
.gate-approval-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; }
.gate-approval-item.approved { }
.gate-approval-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.gate-approval-name { font-weight: 500; color: var(--text-primary); }
.gate-approval-status { margin-left: 4px; }
.gate-approval-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.gate-status { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.gate-actions { display: flex; gap: 10px; }

/* ─── STRUCTURED GATE DECISIONS (Phase 2) ──────────────────── */
.gate-decided { background: var(--surface, #fff); }

.gate-decision-record { margin-top: 4px; }

.gate-decision-pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.gate-pill-approve { background: rgba(22, 163, 74, 0.1); color: #16a34a; border: 1px solid rgba(22, 163, 74, 0.2); }
.gate-pill-kill { background: rgba(220, 38, 38, 0.1); color: #dc2626; border: 1px solid rgba(220, 38, 38, 0.2); }
.gate-pill-revise { background: rgba(245, 158, 11, 0.1); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.2); }
.gate-pill-neutral { background: rgba(142, 142, 147, 0.08); color: #6e6e73; border: 1px solid rgba(142, 142, 147, 0.15); }

.gate-decision-comment {
    margin: 10px 0 6px;
    font-size: 13px;
    color: var(--text-secondary, #3a3a3c);
    line-height: 1.55;
    font-style: italic;
}

.gate-decision-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted, #8e8e93);
    margin-top: 6px;
}

.gate-snapshot {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.gate-snapshot-item {
    font-size: 11px;
    padding: 3px 8px;
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 4px;
    color: var(--text-secondary);
}
.gate-snapshot-total {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(249, 114, 22, 0.08);
    border-radius: 4px;
    color: var(--accent, #F97216);
    font-weight: 600;
}

/* Pending structured gate */
.gate-pending-structured .gate-comment-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    margin: 12px 0;
    background: var(--bg-card, #fff);
    transition: border-color 0.2s;
}
.gate-comment-input:focus {
    outline: none;
    border-color: var(--accent, #F97216);
    box-shadow: 0 0 0 3px rgba(249, 114, 22, 0.08);
}

.gate-decision-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.btn-gate-approve, .btn-gate-kill, .btn-gate-revise, .btn-gate-neutral {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-gate-approve { background: #16a34a; color: #fff; }
.btn-gate-approve:hover { background: #15803d; }
.btn-gate-kill { background: #dc2626; color: #fff; }
.btn-gate-kill:hover { background: #b91c1c; }
.btn-gate-revise { background: #f59e0b; color: #fff; }
.btn-gate-revise:hover { background: #d97706; }
.btn-gate-neutral { background: var(--bg-secondary, #f1f5f9); color: var(--text-primary); border: 1px solid var(--border); }
.btn-gate-neutral:hover { background: var(--bg-hover, #e5e7eb); }

/* Gate score summary in pending panel */
.gate-score-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin: 12px 0;
    padding: 12px;
    background: var(--bg-secondary, #f9fafb);
    border-radius: 8px;
}
.gate-score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.gate-score-name { color: var(--text-secondary); }
.gate-score-value {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.gate-score-value.high { color: #16a34a; background: rgba(22, 163, 74, 0.08); }
.gate-score-value.mid { color: #d97706; background: rgba(245, 158, 11, 0.08); }
.gate-score-value.low { color: #dc2626; background: rgba(220, 38, 38, 0.08); }

/* ─── MULTI-STAGE SCORING PANEL (Phase 2) ──────────────────── */
.stage-scoring-panel {
    margin-top: 20px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    background: var(--bg-card, #fff);
    overflow: hidden;
}

.stage-scoring-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    background: var(--bg-secondary, #f9fafb);
}

.stage-scoring-header h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary, #1d1d1f);
}

.stage-scoring-count {
    font-size: 12px;
    color: var(--text-muted, #8e8e93);
}

.stage-scoring-body {
    padding: 8px 18px;
}

.stage-scoring-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
}
.stage-scoring-row:last-child { border-bottom: none; }

.stage-scoring-left { flex: 1; min-width: 0; }
.stage-scoring-right { flex-shrink: 0; }

.stage-scoring-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #1d1d1f);
    margin-bottom: 4px;
}

.stage-scoring-desc {
    font-size: 11px;
    color: var(--text-muted, #8e8e93);
    margin-bottom: 6px;
    line-height: 1.4;
}

.stage-scoring-ai-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(249, 114, 22, 0.1);
    color: #F97216;
    vertical-align: middle;
    margin-left: 6px;
}

.stage-scoring-rubric {
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--bg-secondary, #f9fafb);
    border-radius: 6px;
    font-size: 11px;
}

.rubric-line {
    display: flex;
    gap: 8px;
    padding: 3px 0;
    line-height: 1.4;
}

.rubric-score {
    flex-shrink: 0;
    width: 16px;
    font-weight: 700;
    color: var(--text-primary, #1d1d1f);
    text-align: center;
}

.rubric-desc {
    color: var(--text-muted, #6e6e73);
}

/* ─── CONFIDENCE BADGES & VALIDATION NOTES ───────────────── */
.confidence-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.02em;
}
.confidence-high {
    background: rgba(52, 199, 89, 0.08);
    color: rgb(52, 199, 89);
    border: 1px solid rgba(52, 199, 89, 0.2);
}
.confidence-medium {
    background: rgba(255, 149, 0, 0.08);
    color: rgb(255, 149, 0);
    border: 1px solid rgba(255, 149, 0, 0.2);
}
.confidence-low {
    background: rgba(255, 59, 48, 0.08);
    color: rgb(255, 59, 48);
    border: 1px solid rgba(255, 59, 48, 0.2);
}
.validation-note {
    font-size: 12px;
    color: var(--text-muted, #8E8E93);
    margin-top: 4px;
    padding: 6px 10px;
    background: var(--bg-secondary, #F5F5F7);
    border-radius: 6px;
    border-left: 3px solid #FF9500;
    line-height: 1.5;
}

/* ─── MOBILE RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
    /* Tables: horizontal scroll */
    .section-block table,
    .data-table,
    .competitor-table,
    .competitor-matrix { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-wrapper { border-radius: 8px; }
    .data-table th, .data-table td { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
    .competitor-table th, .competitor-table td { padding: 10px 12px; font-size: 12px; }

    /* Card grids: single column */
    .card-grid { grid-template-columns: 1fr; gap: 10px; }
    .stats-grid { grid-template-columns: 1fr; gap: 8px; }
    .persona-gallery { grid-template-columns: 1fr; }
    .company-cards { grid-template-columns: 1fr; }
    .agent-cards { grid-template-columns: 1fr; }
    .org-chart { grid-template-columns: 1fr; }
    .pricing-table { grid-template-columns: 1fr; }
    .strategy-metrics { grid-template-columns: 1fr; gap: 8px; }
    .hc-metrics { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    /* Score section: stack vertically */
    .score-section { padding: 16px; gap: 16px; flex-direction: column; align-items: stretch; }
    .score-card { border-right: none; padding-right: 0; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
    .info-block + .info-block { padding-left: 0; border-left: none; }

    /* Tabs: horizontal scroll */
    .tabs-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding: 6px; gap: 4px; }
    .tab-btn { padding: 10px 18px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }

    /* Scoring categories */
    .scoring-category { padding: 16px; }
    .scoring-criteria-row { padding: 12px; gap: 12px; }

    /* Journey phases: scroll */
    .journey-phases { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .journey-phase { min-width: 140px; }

    /* Gate decision buttons: wrap */
    .gate-decision-buttons { flex-wrap: wrap; }
    .gate-score-summary { grid-template-columns: 1fr; }

    /* Collaboration panel */
    .collab-panel { padding: 16px; }
    .collab-add { flex-direction: column; }
    .collab-add .btn-primary { width: 100%; justify-content: center; }

    /* Gate widget */
    .gate-widget { padding: 16px; }
    .gate-actions { flex-wrap: wrap; }
}

