/* === Arc Platform — Idea Coach, Analytics, Stage Tabs, Sync === */
/* ─── ANALYTICS DASHBOARD ────────────────────────────────── */
.ana-dashboard { display: flex; flex-direction: column; gap: 20px; }

/* KPI Row */
.ana-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ana-kpi-card {
    background: var(--surface); border-radius: 14px; padding: 20px;
    border: 1px solid var(--border-light); display: flex; align-items: center; gap: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03); transition: box-shadow 0.2s;
}
.ana-kpi-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.ana-kpi-icon {
    width: 42px; height: 42px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.ana-kpi-content { flex: 1; min-width: 0; }
.ana-kpi-value { font-size: 24px; font-weight: 800; color: var(--text-primary); line-height: 1.1; }
.ana-kpi-label { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.ana-kpi-spark { flex-shrink: 0; }
.ana-kpi-trend {
    font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap;
}
.ana-kpi-trend.up { background: rgba(249,114,22,0.1); color: var(--primary); }
.ana-kpi-trend.down { background: rgba(142,142,147,0.1); color: #8E8E93; }
.ana-kpi-badge {
    font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px;
    background: rgba(249,114,22,0.08); color: var(--primary); white-space: nowrap;
}

/* Card Base */
.ana-card {
    background: var(--surface); border-radius: 16px; padding: 24px;
    border: 1px solid var(--border-light); box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.ana-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ana-card-header h3 { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 0; }
.ana-card-badge {
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
    background: var(--gray-6); color: var(--text-secondary);
}

/* Main Row: Donut + Rankings + Radar */
.ana-main-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 16px; }

/* Donut Chart */
.ana-donut-container { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.ana-donut-chart { position: relative; display: flex; align-items: center; justify-content: center; }
.ana-donut-center {
    position: absolute; display: flex; flex-direction: column; align-items: center;
}
.ana-donut-number { font-size: 28px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.ana-donut-sub { font-size: 11px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.ana-donut-legend { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.ana-legend-item { display: flex; align-items: center; gap: 8px; }
.ana-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ana-legend-label { font-size: 13px; color: var(--text-secondary); flex: 1; }
.ana-legend-value { font-size: 13px; font-weight: 700; color: var(--text-primary); }

/* Score Rankings */
.ana-ranking-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.ana-ranking-row {
    display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px;
    cursor: pointer; transition: background 0.15s;
}
.ana-ranking-row:hover { background: var(--gray-6); }
.ana-rank-medal {
    font-size: 12px; font-weight: 800; min-width: 22px; height: 22px; display: flex;
    align-items: center; justify-content: center; border-radius: 50%; color: var(--text-muted);
}
.ana-rank-medal.gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; font-size: 11px; }
.ana-rank-medal.silver { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #fff; font-size: 11px; }
.ana-rank-medal.bronze { background: linear-gradient(135deg, #CD7F32, #A0522D); color: #fff; font-size: 11px; }
.ana-rank-ring { position: relative; width: 38px; height: 38px; flex-shrink: 0; }
.ana-rank-ring svg { display: block; }
.ana-rank-ring-score {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; color: var(--text-primary);
}
.ana-rank-info { flex: 1; min-width: 0; }
.ana-rank-name { font-size: 13px; font-weight: 600; color: var(--text-primary); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ana-rank-codename { font-size: 11px; color: var(--text-muted); display: block; margin-top: 1px; }
.ana-rank-verdict { font-size: 11px; font-weight: 700; flex-shrink: 0; }

/* Radar Chart */
.ana-radar-container { display: flex; justify-content: center; margin: -8px 0; }
.ana-radar-stats { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ana-radar-stat { display: flex; justify-content: space-between; align-items: center; }
.ana-radar-stat-name { font-size: 12px; color: var(--text-secondary); }
.ana-radar-stat-value { font-size: 13px; font-weight: 700; color: var(--primary); }

/* Bottom Row: Pipeline + Industry + Competitive — compact */
.ana-bottom-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 16px; }
.ana-bottom-row .ana-card { padding: 18px 20px; }
.ana-bottom-row .ana-card-header { margin-bottom: 12px; }

/* Pipeline Bars (Vertical bar chart — compact) */
.ana-pipeline-bars {
    display: flex; align-items: flex-end; justify-content: space-between;
    height: 110px; gap: 6px; padding-top: 8px;
}
.ana-pipeline-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.ana-pipeline-count { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.ana-pipeline-bar {
    width: 100%; max-width: 36px; border-radius: 5px 5px 2px 2px;
    transition: height 0.4s ease;
}
.ana-pipeline-label { font-size: 9px; font-weight: 600; color: var(--text-muted); text-align: center; }

/* Industry Stacked Bar */
.ana-industry-stacked { display: flex; flex-direction: column; gap: 14px; }
.ana-industry-bar-row {
    display: flex; height: 18px; border-radius: 9px; overflow: hidden; width: 100%;
}
.ana-industry-seg {
    height: 100%; min-width: 4px; transition: width 0.4s ease;
    position: relative;
}
.ana-industry-seg:first-child { border-radius: 9px 0 0 9px; }
.ana-industry-seg:last-child { border-radius: 0 9px 9px 0; }
.ana-industry-seg:only-child { border-radius: 9px; }
.ana-industry-seg:hover { opacity: 0.8; transform: scaleY(1.3); }
.ana-industry-labels {
    display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.ana-industry-label-item { display: flex; align-items: center; gap: 5px; }
.ana-industry-label-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ana-industry-label-text { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.ana-industry-label-count { font-size: 11px; font-weight: 700; color: var(--text-primary); }

/* Compact donut variant */
.ana-donut-compact { gap: 14px; }
.ana-donut-compact .ana-donut-legend { gap: 5px; }

/* Insights Row: Criteria + Heatmap */
.ana-insights-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px; }

/* Criteria Strengths/Gaps */
.ana-criteria-split { display: flex; gap: 0; }
.ana-criteria-col { flex: 1; }
.ana-criteria-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.ana-criteria-item { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ana-criteria-info { flex: 1; }
.ana-criteria-name { font-size: 12px; font-weight: 500; color: var(--text-secondary); display: block; margin-bottom: 4px; }
.ana-criteria-bar-track { height: 5px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.ana-criteria-bar { height: 100%; border-radius: 3px; transition: width 0.4s; }
.ana-criteria-score { font-size: 13px; font-weight: 700; min-width: 36px; text-align: right; }
.ana-criteria-divider { width: 1px; background: var(--border-light); margin: 0 20px; }

/* Heatmap */
.ana-heatmap-scroll { overflow-x: auto; }
.ana-heatmap-table { border-collapse: collapse; width: 100%; font-size: 11px; }
.ana-heatmap-table th, .ana-heatmap-table td { padding: 5px 4px; text-align: center; }
.ana-hm-corner { width: 80px; }
.ana-hm-cat { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; border-bottom: 2px solid var(--border-light); padding-bottom: 8px; }
.ana-hm-name { font-size: 11px; font-weight: 600; color: var(--text-primary); text-align: left; white-space: nowrap; padding-right: 8px; }
.ana-hm-cell {
    width: 24px; height: 24px; font-size: 11px; font-weight: 600; color: var(--text-primary);
    border-radius: 4px; margin: 1px;
}

/* Analytics Responsive */
@media (max-width: 1200px) {
    .ana-kpi-row { grid-template-columns: repeat(2, 1fr); }
    .ana-main-row { grid-template-columns: 1fr 1fr; }
    .ana-card-radar { grid-column: 1 / -1; }
    .ana-bottom-row { grid-template-columns: 1fr 1fr; }
    .ana-card-competitive { grid-column: 1 / -1; }
    .ana-insights-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .ana-kpi-row { grid-template-columns: 1fr; }
    .ana-main-row { grid-template-columns: 1fr; }
    .ana-bottom-row { grid-template-columns: 1fr; }
    .ana-criteria-split { flex-direction: column; }
    .ana-criteria-divider { width: 100%; height: 1px; margin: 16px 0; }
    .pipeline-kpi-strip { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
    .pkpi-divider { display: none; }
    .pkpi-item { min-width: 40%; }
}

/* ─── ANALYTICS TAB BAR ──────────────────────────────────── */
.ana-tab-bar {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-light, #e5e7eb);
}
.ana-tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-muted, #8e8e93);
    transition: all 0.15s;
}
.ana-tab-btn:hover { color: var(--text-primary, #1d1d1f); }
.ana-tab-btn.active {
    color: var(--primary, #F97216);
    border-bottom-color: var(--primary, #F97216);
    font-weight: 600;
}

/* ─── CROSS-WORKSPACE ANALYTICS ──────────────────────────── */
.ana-xws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.ana-xws-card {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.15s;
}
.ana-xws-card:hover {
    border-color: var(--primary, #F97216);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ana-xws-active {
    border-color: var(--primary, #F97216);
    border-left: 4px solid var(--primary, #F97216);
}
.ana-xws-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.ana-xws-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ana-xws-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1d1d1f);
}
.ana-xws-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(249,114,22,0.1);
    color: var(--primary, #F97216);
    margin-left: auto;
}
.ana-xws-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.ana-xws-stat {
    text-align: center;
}
.ana-xws-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1d1d1f);
}
.ana-xws-stat-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted, #8e8e93);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.ana-xws-bar-row { padding-top: 4px; }
.ana-xws-bar-track {
    height: 4px;
    background: var(--border-light, #f1f5f9);
    border-radius: 2px;
    overflow: hidden;
}
.ana-xws-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ─── Cross-workspace score comparison bars ────────────────── */
.ana-xws-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}
.ana-xws-score-name {
    font-size: 12px;
    font-weight: 600;
    min-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ana-xws-score-bar-track {
    flex: 1;
    height: 8px;
    background: var(--border-light, #f1f5f9);
    border-radius: 4px;
    overflow: hidden;
}
.ana-xws-score-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}
.ana-xws-score-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 32px;
    text-align: right;
}

/* ─── STAGE TABS ─────────────────────────────────────────── */
.stage-tabs,
.stage-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-light, #e5e7eb);
    margin-bottom: 24px;
    overflow-x: auto;
}
.stage-tab,
.stage-tab-btn {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted, #6b7280);
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
    font-family: inherit;
}
.stage-tab:hover,
.stage-tab-btn:hover {
    color: var(--text-primary, #374151);
    background: var(--bg-secondary, #f9fafb);
}
.stage-tab.active,
.stage-tab-btn.active {
    color: var(--stage-color, #F97216);
    border-bottom-color: var(--stage-color, #F97216);
    font-weight: 600;
}
.stage-tab-panel {
    display: none;
}
.stage-tab-panel.active {
    display: block;
}

/* ─── SVG STAGE ICONS ────────────────────────────────────── */
.stage-icon-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.stage-progress-circle .stage-icon-svg {
    width: 16px;
    height: 16px;
}
.stage-icon-lg {
    width: 28px;
    height: 28px;
}

/* ─── IDEA COACH ─────────────────────────────────────────────── */

/* Page Header */
.coach-page-header {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 32px; background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    height: 60px; box-sizing: border-box;
}
.coach-back-btn {
    width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
    background: transparent; cursor: pointer; display: flex; align-items: center;
    justify-content: center; color: var(--text-secondary); transition: all 0.2s;
}
.coach-back-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--gray-6); }
.coach-page-title h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text-primary); }
.coach-page-subtitle { font-size: 12px; color: var(--text-muted); }
.coach-readiness-badge {
    margin-left: auto; display: flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 700;
    background: var(--gray-6); color: var(--text-muted); transition: all 0.3s;
}
.coach-readiness-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); transition: background 0.3s;
}
.coach-readiness-badge.coach-readiness-weak { background: rgba(239,68,68,0.08); color: var(--red); }
.coach-readiness-badge.coach-readiness-weak .coach-readiness-dot { background: var(--red); }
.coach-readiness-badge.coach-readiness-developing { background: rgba(255,159,10,0.08); color: var(--amber); }
.coach-readiness-badge.coach-readiness-developing .coach-readiness-dot { background: var(--amber); }
.coach-readiness-badge.coach-readiness-good { background: rgba(52,199,89,0.08); color: var(--green); }
.coach-readiness-badge.coach-readiness-good .coach-readiness-dot { background: var(--green); }
.coach-readiness-badge.coach-readiness-excellent { background: rgba(249,114,22,0.08); color: var(--primary); }
.coach-readiness-badge.coach-readiness-excellent .coach-readiness-dot { background: var(--primary); }

/* Two-Panel Layout */
.coach-layout {
    display: grid; grid-template-columns: 55fr 45fr;
    height: calc(100vh - 60px); overflow: hidden;
}
.coach-form-panel {
    overflow-y: auto; background: var(--bg-primary);
    border-right: 1px solid var(--border-light);
}
.coach-form-scroll {
    padding: 28px 36px 40px; max-width: 720px;
}
.coach-chat-panel {
    display: flex; flex-direction: column; background: var(--surface);
    overflow: hidden;
}

/* Chat Header */
.coach-chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.coach-chat-header-left {
    display: flex; align-items: center; gap: 10px;
}
.coach-chat-header-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #F97216; animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.coach-chat-header-title {
    font-size: 13px; font-weight: 600; color: #e2e8f0;
}
.coach-chat-mode-badge {
    display: none; font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 50px;
    background: rgba(249,114,22,0.15); color: var(--primary);
}
.coach-chat-clear-btn {
    width: 28px; height: 28px; border-radius: 6px; border: none;
    background: transparent; color: #94a3b8; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.coach-chat-clear-btn:hover { background: rgba(255,255,255,0.08); color: #e2e8f0; }

/* Chat Messages */
.coach-chat-messages {
    flex: 1; overflow-y: auto; padding: 20px;
    display: flex; flex-direction: column; gap: 12px;
}

/* Chat Input */
.coach-chat-input-area {
    display: flex; align-items: flex-end; gap: 8px;
    padding: 12px 16px; border-top: 1px solid var(--border-light);
    background: var(--surface);
}
.coach-chat-input {
    flex: 1; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: 12px; font-size: 14px; font-family: inherit;
    resize: none; outline: none; max-height: 120px;
    color: var(--text-primary); background: var(--bg-primary);
    transition: border-color 0.15s;
}
.coach-chat-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,114,22,0.08); }
.coach-chat-send-btn {
    width: 38px; height: 38px; border-radius: 10px; border: none;
    background: var(--primary); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.2s;
}
.coach-chat-send-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.coach-chat-send-btn svg { width: 16px; height: 16px; }

/* Welcome State */
.coach-welcome, .coach-no-key {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center;
    padding: 40px 24px; flex: 1;
}
.coach-welcome-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: transparent; display: flex;
    align-items: center; justify-content: center; margin-bottom: 16px;
}
.coach-welcome-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; }
.coach-welcome h4, .coach-no-key h4 {
    font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0 0 8px;
}
.coach-welcome p, .coach-no-key p {
    font-size: 13px; color: var(--text-secondary); margin: 0 0 24px; max-width: 340px; line-height: 1.6;
}
.coach-no-key-actions { display: flex; gap: 10px; }

/* Mode Selection Chips */
.coach-mode-chips {
    display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 320px;
}
.coach-mode-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: 12px;
    border: 1px solid var(--border); background: var(--surface);
    font-size: 13px; font-weight: 500; color: var(--text-secondary);
    cursor: pointer; transition: all 0.2s; text-align: left;
    font-family: inherit;
}
.coach-mode-chip:hover {
    border-color: var(--primary); color: var(--primary); background: rgba(249,114,22,0.04);
    transform: translateY(-1px);
}
.coach-mode-chip svg { flex-shrink: 0; color: var(--text-muted); }
.coach-mode-chip:hover svg { color: var(--primary); }

/* Readiness Card */
.coach-readiness-card {
    margin-top: 24px; padding: 20px 24px;
    background: var(--surface); border-radius: 12px;
    border: 1px solid var(--border-light);
}
.coach-readiness-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.coach-readiness-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.coach-readiness-value { font-size: 15px; font-weight: 800; color: var(--text-primary); }
.coach-readiness-bar-track {
    height: 6px; background: var(--gray-6); border-radius: 3px; overflow: hidden;
}
.coach-readiness-bar {
    height: 100%; border-radius: 3px; background: var(--text-muted);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}
.coach-readiness-status {
    margin-top: 8px; font-size: 12px; color: var(--text-muted); line-height: 1.4;
}

/* Submit Row */
.coach-submit-row {
    display: flex; gap: 10px; margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--border-light);
}
.coach-submit-btn { min-width: 140px; }

/* Auto-Fill Preview */
.coach-autofill-preview {
    background: rgba(249,114,22,0.04); border: 1px solid rgba(249,114,22,0.2);
    border-radius: 12px; padding: 16px; margin-top: 4px;
}
.coach-autofill-header {
    font-size: 13px; color: var(--text-primary); margin-bottom: 12px;
}
.coach-autofill-field {
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px 0; border-bottom: 1px solid rgba(249,114,22,0.1);
}
.coach-autofill-field:last-of-type { border-bottom: none; }
.coach-autofill-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--primary);
}
.coach-autofill-value {
    font-size: 13px; color: var(--text-primary); line-height: 1.4;
}
.coach-autofill-actions {
    display: flex; gap: 8px; margin-top: 12px;
}

/* Chat Action Buttons (review offer, etc.) */
.coach-chat-action-row {
    display: flex; gap: 8px; padding: 8px 16px 12px; justify-content: flex-start;
}
.coach-chat-action-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; padding: 8px 16px; border-radius: 8px; cursor: pointer;
    font-weight: 600; transition: all 0.15s ease;
}
.coach-chat-action-btn.btn-primary {
    background: var(--primary); color: #fff; border: none;
}
.coach-chat-action-btn.btn-primary:hover { background: var(--primary-hover); }
.coach-chat-action-btn.btn-secondary {
    background: transparent; color: var(--text-secondary); border: 1px solid var(--border);
}
.coach-chat-action-btn.btn-secondary:hover { color: var(--text-primary); border-color: var(--text-muted); }

/* Field Animations */
@keyframes coachFieldFill {
    0% { background: rgba(249,114,22,0.12); border-color: var(--primary); }
    100% { background: transparent; border-color: var(--border); }
}
.coach-field-filling input,
.coach-field-filling textarea,
.coach-field-filling select {
    animation: coachFieldFill 0.8s ease-out;
    border-color: var(--primary) !important;
}
.coach-field-active {
    position: relative;
}
.coach-field-active::before {
    content: ''; position: absolute; left: -12px; top: 0; bottom: 0;
    width: 3px; border-radius: 2px; background: var(--primary);
}
.coach-field-filled-by-ai label::after {
    content: ' \2728'; font-size: 12px; opacity: 0.5;
}

/* ─── IDEA COACH RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
    .coach-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        height: calc(100vh - 60px);
    }
    .coach-form-panel {
        overflow-y: auto; border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .coach-form-scroll { padding: 20px 20px 32px; }
    .coach-chat-panel {
        min-height: 280px;
    }
}
@media (max-width: 700px) {
    .coach-page-header { padding: 12px 16px; }
    .coach-form-scroll { padding: 16px 16px 28px; }
    .coach-readiness-badge { display: none; }
}

/* ─── PRINT STYLES ────────────────────────────────────────── */
@media print {
    /* Hide chrome: sidebar, chat, modals, overlays, buttons */
    .sidebar,
    .pdl-chat-fab,
    .pdl-chat-panel,
    .modal-overlay,
    .notification-toast,
    .btn-ai-generate,
    .btn-cancel-gen,
    .btn-export-pdf,
    .btn-delete-solution,
    .generate-ai-card,
    .gen-error-recovery,
    .stage-header-actions,
    .verdict-filter-bar,
    .solution-table-toolbar,
    .pipeline-bar,
    .pipeline-kpi-strip,
    .header-bar,
    .coach-overlay { display: none !important; }

    /* Full-width content: remove sidebar margin */
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    /* Clean backgrounds */
    body, .main-content, .solution-table-wrap, .stage-sections {
        background: white !important;
        color: #1D1D1F !important;
    }

    /* Remove shadows/borders for cleaner print */
    .solution-table-wrap,
    .section-card,
    .sleek-card,
    .scoring-category {
        box-shadow: none !important;
        border: 1px solid #e5e5ea !important;
    }

    /* Prevent page breaks inside content blocks */
    .section-card,
    .sleek-card,
    .scoring-category,
    .print-subsection {
        page-break-inside: avoid;
    }

    /* Stage header stays with content */
    .stage-header-bar {
        page-break-after: avoid;
    }

    /* Score ring: ensure it prints */
    .sol-score-ring, svg { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

    /* Progress bar segments: force color */
    .sol-seg.completed { background: #1D1D1F !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    .sol-seg.current { background: var(--primary) !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }

    /* Verdict pills: force color */
    .sol-verdict-pill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

    /* Table rows: clean borders */
    .sol-table-row td { border-bottom: 1px solid #e5e5ea !important; }
    .sol-table-row:hover td:first-child { box-shadow: none !important; }

    /* Links: no underline decoration */
    a { text-decoration: none !important; color: #1D1D1F !important; }
}

/* ============================================================
   CLOUD SYNC STATUS INDICATOR
   ============================================================ */

.sync-status-indicator {
    position: fixed;
    bottom: 16px;
    left: 72px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    z-index: 1000;
    cursor: default;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: opacity 0.3s ease, transform 0.3s ease;
    user-select: none;
}

.sync-status-indicator:hover {
    opacity: 1 !important;
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.sync-dot.synced {
    background: #F97216;
    box-shadow: 0 0 6px rgba(249, 114, 22, 0.4);
}

.sync-dot.syncing {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
    animation: syncPulse 1.2s ease-in-out infinite;
}

.sync-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
}

.sync-label {
    white-space: nowrap;
}

@keyframes syncPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

