/* ── SPA Portfolio Review — Artifact-Based Workflow ── */

:root {
    --siemens-dark: #1B1534;
    --siemens-teal: #009999;
    --siemens-teal-dark: #00646E;
    --siemens-orange: #EC6602;
    --green: #4CAF50;
    --amber: #FF9800;
    --red: #f44336;
    --blue: #2196F3;
    --purple: #9C27B0;
    --gray-50: #f8f9fa;
    --gray-100: #f0f1f3;
    --gray-200: #e2e4e7;
    --gray-300: #c8ccd0;
    --gray-500: #879299;
    --gray-700: #4a5568;
    --gray-900: #1a202c;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 2px 10px rgba(0,0,0,0.06);
    --shadow-lg: 0 6px 20px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

/* ── Navbar ── */

.navbar {
    background: var(--siemens-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-brand a { color: white; text-decoration: none; font-weight: 700; font-size: 0.9em; }
.nav-links { display: flex; align-items: center; gap: 14px; }
.nav-link { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.84em; transition: color 0.2s; }
.nav-link:hover { color: white; }
.nav-user { color: var(--siemens-teal); font-size: 0.84em; font-weight: 600; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.2); }
.nav-logout { opacity: 0.5; }
.nav-logout:hover { opacity: 1; }

/* ── Login ── */

.login-page {
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
    background: linear-gradient(135deg, var(--siemens-dark) 0%, var(--siemens-teal-dark) 60%, var(--siemens-teal) 100%);
}
.login-card {
    background: white; border-radius: 16px; padding: 48px; max-width: 400px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center;
}
.login-card h1 { font-size: 1.4em; color: var(--siemens-dark); margin-bottom: 8px; }
.login-subtitle { color: var(--gray-500); font-size: 0.88em; margin-bottom: 24px; }

/* ── Forms ── */

.form-group { margin-bottom: 14px; text-align: left; }
.form-group label { display: block; font-size: 0.78em; font-weight: 600; color: var(--gray-700); margin-bottom: 3px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 8px 10px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
    font-size: 0.88em; font-family: inherit; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--siemens-teal); box-shadow: 0 0 0 3px rgba(0,153,153,0.1);
}

.btn {
    display: inline-block; padding: 8px 16px; border: none; border-radius: var(--radius-sm);
    font-size: 0.88em; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn-primary { background: var(--siemens-teal); color: white; }
.btn-primary:hover { background: var(--siemens-teal-dark); }
.btn-outline { background: transparent; color: var(--siemens-teal); border: 1.5px solid var(--siemens-teal); }
.btn-outline:hover { background: var(--siemens-teal); color: white; }
.btn-block { width: 100%; }
.btn-sm { padding: 4px 10px; font-size: 0.82em; border-radius: var(--radius-sm); }

/* ── Badges ── */

.badge {
    display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.74em; font-weight: 600;
}
.badge-draft { background: var(--gray-200); color: var(--gray-700); }
.badge-open { background: #E3F2FD; color: #1565C0; }
.badge-in_review { background: #E3F2FD; color: #1565C0; }
.badge-closed { background: var(--gray-200); color: var(--gray-700); }
.badge-consolidating { background: #FFF3E0; color: #E65100; }
.badge-redraft_proposed { background: #F3E5F5; color: #7B1FA2; }
.badge-approved { background: #E8F5E9; color: #2E7D32; }
.badge-archived { background: var(--gray-100); color: var(--gray-500); }
.badge-accepted { background: #E8F5E9; color: #2E7D32; }
.badge-rejected { background: #FFEBEE; color: #C62828; }
.badge-parked { background: #E0F7FA; color: #00695C; }
.badge-resolved { background: #E8F5E9; color: #2E7D32; }
.badge-strength { background: var(--gray-100); color: var(--gray-700); }

.count-badge {
    display: inline-block; background: var(--siemens-teal); color: white;
    padding: 1px 8px; border-radius: 10px; font-size: 0.7em; font-weight: 600; vertical-align: middle;
}

.text-muted { color: var(--gray-500); font-size: 0.88em; }

/* ── Page layouts ── */

.page-header {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 24px; flex-wrap: wrap;
}
.page-header h1 { font-size: 1.4em; color: var(--siemens-dark); }
.page-header > div { display: flex; align-items: center; gap: 10px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-state code { display: block; margin-top: 12px; background: var(--gray-100); padding: 10px; border-radius: var(--radius-sm); }

/* ── Dashboard ── */

.dashboard { max-width: 900px; margin: 0 auto; padding: 36px 24px; }

.stage-header { margin-bottom: 28px; }
.stage-label {
    display: inline-block; background: var(--siemens-teal); color: white;
    padding: 3px 14px; border-radius: 16px; font-size: 0.78em; font-weight: 700; margin-bottom: 8px;
}
.stage-header h1 { font-size: 1.6em; color: var(--siemens-dark); }
.stage-desc { color: var(--gray-700); margin-top: 4px; }

.version-card {
    background: white; border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow);
    margin-bottom: 28px; border-left: 4px solid var(--siemens-teal);
}
.vc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vc-version { font-size: 1.2em; font-weight: 700; color: var(--siemens-dark); margin-right: 8px; }
.vc-mission { margin-top: 12px; font-size: 0.88em; color: var(--gray-700); line-height: 1.5; }

.section-title { font-size: 1.1em; color: var(--siemens-dark); margin-bottom: 14px; }

/* Rounds */
.rounds-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }

.round-card {
    background: white; border-radius: var(--radius); padding: 20px 24px;
    box-shadow: var(--shadow); border-left: 4px solid var(--gray-300);
}
.round-card.round-draft { border-left-color: var(--gray-400); }
.round-card.round-in_review { border-left-color: var(--blue); }
.round-card.round-consolidating { border-left-color: #E65100; }
.round-card.round-redraft { border-left-color: #7B1FA2; }
.round-card.round-approved { border-left-color: var(--green); }

.rc-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rc-header > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-number { font-weight: 700; color: var(--siemens-teal); font-size: 0.9em; }
.rc-title { font-weight: 600; font-size: 0.95em; }
.rc-actions { display: flex; gap: 8px; }
.rc-objective { font-size: 0.88em; color: var(--gray-700); margin-top: 8px; }

.rc-stats { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.stat { font-size: 0.8em; color: var(--gray-500); }
.stat-open { color: var(--blue); font-weight: 600; }
.stat-accepted { color: var(--green); }
.stat-rejected { color: var(--red); }
.stat-parked { color: var(--siemens-teal); }
.stat-resolved { color: var(--green); }

.rc-focus { margin-top: 10px; }
.rc-focus summary { font-size: 0.84em; color: var(--gray-500); cursor: pointer; }
.rc-focus ul { margin-top: 6px; padding-left: 20px; font-size: 0.84em; color: var(--gray-700); }
.rc-focus li { margin-bottom: 3px; }

/* Workflow steps (legacy simple) */
.workflow-info {
    background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
    margin-top: 10px;
}
.workflow-info h3 { font-size: 1em; color: var(--siemens-dark); margin-bottom: 14px; }
.workflow-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ws {
    padding: 6px 16px; border-radius: 20px; font-size: 0.82em; font-weight: 600;
    background: var(--gray-100); color: var(--gray-500);
}
.ws-active { background: var(--siemens-teal); color: white; }
.ws-arrow { color: var(--gray-300); font-size: 1.2em; }
.workflow-note { font-size: 0.84em; color: var(--gray-700); }
.workflow-note em { color: var(--siemens-teal); font-style: normal; font-weight: 600; }

/* ── Workflow Stepper (reusable) ── */
.wf-stepper {
    background: white;
    border-radius: var(--radius);
    padding: 20px 28px 16px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.wf-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}
.wf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    position: relative;
}
.wf-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82em; font-weight: 700;
    background: var(--gray-100);
    color: var(--gray-400);
    border: 2px solid var(--gray-200);
    transition: all 0.2s;
}
.wf-step.wf-active .wf-circle {
    background: var(--siemens-teal);
    color: white;
    border-color: var(--siemens-teal);
    box-shadow: 0 0 0 4px rgba(0, 155, 164, 0.15);
}
.wf-step.wf-done .wf-circle {
    background: #e0f5f0;
    color: #00857a;
    border-color: #00857a;
}
.wf-label {
    margin-top: 6px;
    font-size: 0.75em;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.wf-step.wf-active .wf-label { color: var(--siemens-teal); }
.wf-step.wf-done .wf-label { color: #00857a; }

.wf-connector {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    margin-top: 18px; /* vertically center with circle */
    min-width: 24px;
    max-width: 80px;
}
.wf-connector-done {
    background: #00857a;
}

/* Iteration loop info */
.wf-iteration-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}
.wf-iter-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.78em;
    font-weight: 700;
    background: var(--siemens-teal);
    color: white;
}
.wf-iter-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76em;
    color: var(--gray-500);
}
.wf-loop-icon {
    color: var(--gray-400);
    flex-shrink: 0;
}

/* ── Portfolio Workspace ── */

.portfolio-page { max-width: 1000px; margin: 0 auto; padding: 36px 24px; }

.pf-section { margin-bottom: 36px; }
.pf-section h2 { font-size: 1.15em; color: var(--siemens-dark); margin-bottom: 14px; }

.mission-box {
    background: white; border-radius: var(--radius); padding: 20px 24px;
    box-shadow: var(--shadow); line-height: 1.6; font-size: 0.92em;
    border-left: 4px solid var(--siemens-teal);
}

.family-grid { display: flex; flex-direction: column; gap: 16px; }

.family-card {
    background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
    border-left: 4px solid var(--siemens-teal);
}
.fc-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fc-header h3 { font-size: 1.05em; color: var(--siemens-dark); }
.vol-badge {
    display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.72em; font-weight: 600;
}
.vol-hoch { background: #E8F5E9; color: #2E7D32; }
.vol-mittel { background: #FFF3E0; color: #E65100; }
.vol-niedrig { background: var(--gray-100); color: var(--gray-500); }

.fc-field { margin-bottom: 12px; }
.fc-field label { display: block; font-size: 0.76em; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.fc-field p { font-size: 0.9em; color: var(--gray-900); line-height: 1.5; }
.fc-meta { font-size: 0.82em; color: var(--gray-500); margin-top: 8px; }
.fc-badges { display: flex; gap: 8px; align-items: center; }

.evidence-badge {
    display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.76em;
    background: #E3F2FD; color: #1565C0; font-weight: 600;
}

.boundary-text { font-size: 0.88em; color: var(--gray-700); font-style: italic; }

.proof-point { margin-bottom: 8px; font-size: 0.9em; }
.proof-point strong { color: var(--gray-900); }
.proof-point p { margin: 2px 0 0; color: var(--gray-600); font-size: 0.92em; line-height: 1.45; }

/* Offer mappings table */
.ri-offers { margin: 12px 0; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.offers-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 14px; background: #E3F2FD; cursor: pointer; user-select: none;
}
.offers-header label { font-size: 0.8em; font-weight: 700; color: #1565C0; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; margin: 0; }
.offers-body { max-height: 400px; overflow-y: auto; }
.offers-table { width: 100%; border-collapse: collapse; font-size: 0.82em; }
.offers-table thead { background: var(--gray-50); position: sticky; top: 0; }
.offers-table th { padding: 6px 10px; text-align: left; font-weight: 600; color: var(--gray-600); font-size: 0.88em; border-bottom: 2px solid var(--gray-200); }
.offers-table td { padding: 5px 10px; border-bottom: 1px solid var(--gray-100); }
.offers-table tr:hover { background: #FFFDE7; }
.offer-spa { font-family: monospace; font-weight: 600; white-space: nowrap; }
.offer-name { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-customer { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gray-600); }
.offer-form { font-size: 0.92em; color: var(--gray-500); }
.offer-volume { font-family: monospace; white-space: nowrap; }
.text-right { text-align: right; }
.btn-xs { padding: 2px 6px; font-size: 0.78em; border-radius: 4px; }
.btn-confirm-map { background: #E8F5E9; border: 1px solid #4CAF50; color: #2E7D32; cursor: pointer; margin-right: 3px; }
.btn-confirm-map:hover { background: #C8E6C9; }
.btn-confirm-map.confirmed { background: #4CAF50; color: white; border-color: #388E3C; }
.btn-flag { background: #FFF3E0; border: 1px solid #FF9800; color: #E65100; cursor: pointer; }
.btn-flag:hover { background: #FFE0B2; }
.offer-actions { white-space: nowrap; }

.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
    display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.76em;
    background: var(--gray-100); color: var(--gray-700);
}
.tag-cap { background: #E8EAF6; color: #283593; }
.tag-sm { font-size: 0.72em; padding: 1px 8px; }
.tag-more { background: var(--gray-200); font-style: italic; }

.form-list { display: flex; flex-direction: column; gap: 12px; }
.form-card {
    background: white; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
.form-card h3 { font-size: 0.96em; color: var(--siemens-dark); margin-bottom: 6px; }
.form-card p { font-size: 0.88em; color: var(--gray-700); }
.form-scope { margin-top: 6px; font-size: 0.84em; color: var(--gray-500); }

.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.cap-card {
    background: white; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.cap-card h3 { font-size: 0.92em; color: var(--siemens-dark); margin-bottom: 6px; }
.competency-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

/* ── Review Workspace ── */

.review-page { max-width: 960px; margin: 0 auto; padding: 36px 24px; }

.round-objective {
    background: #E3F2FD; border-radius: var(--radius-sm); padding: 12px 16px;
    font-size: 0.9em; color: #1565C0; margin-bottom: 16px;
}

/* Round-focus styles removed — single comprehensive review per version */

.focus-areas { margin-bottom: 20px; }
.focus-areas summary { font-size: 0.88em; font-weight: 600; color: var(--siemens-dark); cursor: pointer; }
.focus-areas ul { margin-top: 6px; padding-left: 20px; }
.focus-areas li { font-size: 0.86em; color: var(--gray-700); margin-bottom: 3px; }

.review-stats { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.review-stats .stat { font-size: 0.88em; font-weight: 600; }

.section-divider {
    font-size: 1em; color: var(--siemens-dark); margin: 30px 0 14px;
    padding-bottom: 6px; border-bottom: 2px solid var(--gray-200);
}

/* Review items (accordion) */
.review-item {
    background: white; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px;
    border-left: 3px solid var(--gray-200);
}

.ri-header {
    display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
    cursor: pointer; user-select: none;
}
.ri-header:hover { background: var(--gray-50); border-radius: var(--radius); }
.ri-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ri-title h3 { font-size: 0.95em; color: var(--siemens-dark); }

.ri-type-badge {
    display: inline-block; padding: 1px 8px; border-radius: 8px; font-size: 0.7em; font-weight: 700;
    background: var(--gray-200); color: var(--gray-700); text-transform: uppercase; letter-spacing: 0.3px;
}
.ri-family { background: #E8F5E9; color: #2E7D32; }
.ri-form { background: #E3F2FD; color: #1565C0; }
.ri-cap { background: #E8EAF6; color: #283593; }

.ri-summary { display: flex; align-items: center; gap: 8px; }
.confirm-count {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; font-size: 0.72em; font-weight: 700;
    background: #E8F5E9; color: #2E7D32;
}
.issue-count {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; font-size: 0.72em; font-weight: 700;
    background: #FFF3E0; color: #E65100;
}
.expand-arrow { color: var(--gray-300); font-size: 0.7em; transition: transform 0.2s; }

.ri-body { padding: 0 18px 18px; }

.ri-content { margin-bottom: 16px; }
.ri-field { margin-bottom: 12px; }
.ri-field label { display: block; font-size: 0.74em; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.ri-field p { font-size: 0.9em; }

/* Feedback form */
.ri-feedback {
    background: var(--gray-50); border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
    border: 1px dashed var(--gray-200);
}
.feedback-form h4 { font-size: 0.92em; color: var(--siemens-dark); margin-bottom: 12px; }
.fb-types { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.type-btn {
    padding: 4px 10px; border: 2px solid var(--gray-200); border-radius: 16px;
    background: white; font-size: 0.76em; cursor: pointer; transition: all 0.15s;
}
.type-btn:hover { border-color: var(--accent, var(--siemens-teal)); }
.type-btn.active { border-color: var(--accent, var(--siemens-teal)); background: var(--accent, var(--siemens-teal)); color: white; }
.fb-row { display: flex; gap: 14px; }
.fb-row .form-group { flex: 1; }

/* Issue card */
.ri-issues { display: flex; flex-direction: column; gap: 8px; }

.issue-card {
    background: var(--gray-50); border-radius: var(--radius-sm); padding: 12px; border-left: 3px solid var(--gray-300);
}
.issue-card.issue-resolved { opacity: 0.55; }

.ic-header { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.ic-type {
    display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 0.7em; font-weight: 700; color: white;
}
.ic-field { font-size: 0.74em; color: var(--gray-500); }
.ic-severity { font-size: 0.72em; font-weight: 700; }
.ic-sev-minor { color: var(--gray-500); }
.ic-sev-major { color: var(--amber); }
.ic-sev-blocking { color: var(--red); }
.ic-parked {
    font-size: 0.72em; padding: 1px 8px; border-radius: 10px; background: #E0F7FA; color: #00695C;
}
.ic-status { margin-left: auto; }

.ic-proposed { font-size: 0.86em; padding: 8px 10px; background: #FFFDE7; border-radius: var(--radius-sm); margin-bottom: 6px; }
.ic-rationale { font-size: 0.88em; color: var(--gray-900); margin-bottom: 6px; line-height: 1.5; }
.ic-evidence { font-size: 0.82em; color: var(--gray-500); margin-bottom: 6px; }
.ic-resolution { font-size: 0.82em; color: var(--green); margin-bottom: 6px; padding: 6px 8px; background: #F1F8E9; border-radius: var(--radius-sm); }

.ic-footer { display: flex; align-items: center; gap: 10px; font-size: 0.76em; color: var(--gray-500); flex-wrap: wrap; }
.ic-author { font-weight: 600; color: var(--siemens-teal-dark); }
.ic-actions { display: flex; gap: 4px; margin-left: auto; }

.ic-actions .btn-sm { padding: 2px 8px; border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.76em; background: var(--gray-100); transition: background 0.2s; }
.ic-actions .btn-sm:hover { background: var(--gray-200); }
.ic-actions .btn-accept { color: var(--green); }
.ic-actions .btn-reject { color: var(--red); }
.ic-actions .btn-park { color: var(--siemens-teal); }
.ic-actions .btn-evidence { color: var(--amber); }
.ic-actions .btn-delete { color: var(--red); }

/* ── Consolidation ── */

.consolidate-page { max-width: 960px; margin: 0 auto; padding: 36px 24px; }

.consol-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.cs-card {
    background: white; border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow);
    text-align: center; flex: 1; min-width: 100px;
}
.cs-num { font-size: 1.8em; font-weight: 700; color: var(--siemens-dark); }
.cs-label { font-size: 0.78em; color: var(--gray-500); }
.cs-confirm .cs-num { color: var(--green); }
.cs-open .cs-num { color: var(--blue); }
.cs-accepted .cs-num { color: var(--green); }
.cs-rejected .cs-num { color: var(--red); }
.cs-parked .cs-num { color: var(--siemens-teal); }
.cs-evidence .cs-num { color: var(--amber); }

.consol-item { margin-bottom: 20px; }
.ci-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ci-header h3 { font-size: 0.95em; color: var(--siemens-dark); }

/* Contextual consolidation layout */
.consol-contextual .consol-section {
    background: white;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.consol-contextual .consol-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.consol-contextual .consol-section-header h3 {
    font-size: 1.05em;
    color: var(--siemens-dark);
    margin: 0;
}
.consol-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}
.consol-badges .accepted-count {
    font-size: 0.78em;
    font-weight: 600;
    color: #fff;
    background: var(--green);
    padding: 2px 8px;
    border-radius: 10px;
}
.consol-contextual .consol-field {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-left: 3px solid var(--gray-100);
    border-radius: 2px;
}
.consol-contextual .consol-field label {
    display: block;
    font-size: 0.76em;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}
.consol-contextual .consol-field p {
    font-size: 0.88em;
    color: var(--siemens-dark);
    margin: 0;
}
.consol-field-issues {
    margin-top: 8px;
    padding-left: 0;
}
.consol-field-issues .issue-card {
    border-left: 3px solid var(--siemens-teal);
    margin-bottom: 6px;
}
.consol-mapped-projects {
    margin-top: 10px;
}
.consol-mapped-projects summary {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
}

/* Editable proposal textarea in consolidation mode */
.ic-edit-textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px 10px;
    border: 2px solid var(--siemens-teal);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88em;
    color: var(--siemens-dark);
    background: #f0fffe;
    resize: vertical;
    margin-top: 4px;
    margin-bottom: 4px;
    box-sizing: border-box;
}
.ic-edit-textarea:focus {
    outline: none;
    border-color: #007a73;
    box-shadow: 0 0 0 3px rgba(0, 155, 164, 0.15);
}
.btn-sm.btn-edit-proposal {
    background: #E3F2FD;
    color: #1565C0;
    border: 1px solid #90CAF9;
}

/* ── Compare ── */

.compare-page { max-width: 960px; margin: 0 auto; padding: 36px 24px; }

.change-summary {
    background: #E3F2FD; border-radius: var(--radius-sm); padding: 12px 16px;
    font-size: 0.9em; color: #1565C0; margin-bottom: 24px;
}

.diff-list { display: flex; flex-direction: column; gap: 14px; }
.diff-card {
    background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.diff-added { border-left: 4px solid var(--green); }
.diff-removed { border-left: 4px solid var(--red); }
.diff-modified { border-left: 4px solid var(--amber); }

.dc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dc-change {
    display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 0.74em; font-weight: 700; color: white;
}
.dc-added { background: var(--green); }
.dc-removed { background: var(--red); }
.dc-modified { background: var(--amber); }
.dc-header h3 { font-size: 1em; color: var(--siemens-dark); }

.dc-fields { display: flex; flex-direction: column; gap: 14px; }
.dc-field label { display: block; font-size: 0.76em; font-weight: 700; color: var(--gray-500); text-transform: uppercase; margin-bottom: 4px; }
.dc-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dc-old { background: #FFEBEE; padding: 10px; border-radius: var(--radius-sm); }
.dc-new { background: #E8F5E9; padding: 10px; border-radius: var(--radius-sm); }
.dc-label { font-size: 0.72em; font-weight: 700; color: var(--gray-500); }
.dc-diff p { font-size: 0.86em; margin-top: 4px; word-break: break-word; }
.dc-detail { font-size: 0.88em; color: var(--gray-700); }

/* ── Strategy Heatmap ── */

.section-intro { color: var(--text-secondary); margin: 0 0 1rem; font-size: .95rem; }

.strategy-heatmap { overflow-x: auto; margin-bottom: 1rem; }
.heatmap-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.heatmap-table th { background: var(--bg-surface); padding: 8px 10px; text-align: center;
    font-weight: 600; border-bottom: 2px solid var(--border); font-size: .8rem; }
.heatmap-table th:first-child { text-align: left; min-width: 200px; }
.heatmap-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--border); }
.hm-family { text-align: left !important; font-weight: 500; font-size: .82rem;
    max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hm-cell { font-weight: 600; font-size: .78rem; text-transform: uppercase;
    border-radius: 4px; cursor: default; transition: transform .15s; }
.hm-cell:hover { transform: scale(1.05); }
.hm-strong   { background: #059669; color: #fff; }
.hm-moderate { background: #d97706; color: #fff; }
.hm-weak     { background: #9ca3af; color: #fff; }
.hm-none     { background: #f3f4f6; color: #9ca3af; }

/* Expandable rows */
.hm-row { cursor: pointer; }
.hm-row:hover td { filter: brightness(0.95); }
.hm-expand-icon { font-size: .65rem; color: var(--text-secondary); margin-left: 4px;
    display: inline-block; transition: transform .2s; }
.hm-row.expanded .hm-expand-icon { transform: rotate(90deg); }

.hm-detail-row td { padding: 12px 16px !important; background: var(--bg-surface);
    text-align: left !important; border-bottom: 2px solid var(--border); }

.hm-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px; margin-bottom: 10px; }
.hm-detail-item { background: #fff; border-radius: 6px; padding: 10px 12px;
    border: 1px solid var(--border); }
.hm-detail-label { display: inline-block; padding: 2px 8px; border-radius: 3px;
    font-size: .72rem; font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.hm-detail-rationale { font-size: .82rem; color: var(--text-secondary); margin: 0;
    line-height: 1.45; }

.hm-detail-summary { font-size: .85rem; color: var(--text-secondary); margin: 8px 0;
    font-style: italic; padding: 8px 12px; background: #fff; border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0; }

.hm-detail-evidence { margin-top: 8px; font-size: .82rem; }
.hm-detail-evidence strong { color: var(--text-primary); margin-right: 6px; }
.hm-evidence-tag { display: inline-block; background: var(--primary-light, #e0f2fe);
    color: var(--primary, #0369a1); padding: 2px 8px; border-radius: 10px;
    font-size: .78rem; margin: 2px 3px; font-weight: 500; }

/* ══════════════════════════════════════════════════════════════
   Review V2 — side-by-side layout, click-to-select, voting
   ══════════════════════════════════════════════════════════════ */

.review-page-v2 { max-width: 1440px; margin: 0 auto; padding: 32px 24px; }

/* Split layout */
.rv2-split {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.rv2-content { min-width: 0; }

/* Feedback panel — fixed to right side, vertically centered */
.rv2-panel { position: relative; }
.rv2-panel-sticky {
    position: fixed;
    right: max(24px, calc((100vw - 1440px) / 2 + 24px));
    top: 50%;
    transform: translateY(-50%);
    width: 360px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    z-index: 100;
}
.rv2-panel-header { margin-bottom: 12px; }
.rv2-panel-header h3 { margin: 0 0 4px; font-size: 1.05rem; }
.rv2-panel-hint { font-size: .82rem; color: #999; }

/* Context indicator */
.rv2-selected-context {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e8f0fe;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 12px;
    font-size: .85rem;
}
.rv2-ctx-item { font-weight: 600; color: #1a73e8; }
.rv2-ctx-arrow { color: #999; }
.rv2-ctx-field { color: #333; text-transform: capitalize; }
.rv2-ctx-clear {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
}
.rv2-ctx-clear:hover { color: #d32f2f; }

/* Sections */
.rv2-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}
.rv2-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.rv2-section-title { margin: 0; font-size: 1.1rem; }

.section-divider {
    margin: 28px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #1a73e8;
    font-size: 1.2rem;
    color: #1a73e8;
}
.section-intro { font-size: .85rem; color: #888; margin: 0 0 12px; }

/* Clickable fields */
.rv2-field {
    position: relative;
    padding: 10px 14px;
    margin: 6px 0;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
/* Name field: inline inside header row, compact padding */
.rv2-field.rv2-field-name {
    padding: 4px 10px;
    margin: 0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}
.rv2-field.rv2-field-name h3 { margin: 0; }
.rv2-field:hover {
    border-color: #c2d9f7;
    background: #f8fbff;
}
.rv2-field-active {
    border-color: #1a73e8 !important;
    background: #e8f0fe !important;
    box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}
.rv2-field label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 4px;
    pointer-events: none;
}
.rv2-field p, .rv2-field .tag-list, .rv2-field .proof-point {
    pointer-events: none;
}

/* Reviewed markers */
.rv2-approved {
    border-left: 4px solid #4CAF50 !important;
    background: #f5fdf6;
}
.rv2-approved::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    color: #4CAF50;
    font-size: .85rem;
    font-weight: 700;
}
.rv2-changed {
    border-left: 4px solid #FF9800 !important;
    background: #fffaf3;
}
.rv2-changed::after {
    content: '✎';
    position: absolute;
    top: 8px;
    right: 10px;
    color: #E65100;
    font-size: .85rem;
    font-weight: 700;
}

/* Inline change proposal */
.rv2-proposal {
    margin-top: 8px;
    padding: 8px 12px;
    background: #FFF8E1;
    border: 1px dashed #FFB74D;
    border-radius: 6px;
    font-size: .85rem;
    pointer-events: none;
}
.rv2-proposal-label {
    font-weight: 700;
    color: #E65100;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.rv2-proposal-value {
    margin-top: 4px;
    color: #333;
    white-space: pre-wrap;
    line-height: 1.45;
}
.rv2-proposal-note {
    margin-top: 4px;
    font-size: .8rem;
    color: #888;
    font-style: italic;
}

/* Inline issues */
.rv2-inline-issues { margin-top: 12px; }
.rv2-field-issues { margin-top: 6px; margin-bottom: 2px; padding-left: 12px; border-left: 3px solid #e0e0e0; }

/* Owner role badges & workflow controls */
.owner-badge, .vc-owner-badge {
    display: inline-block; font-size: .78rem; color: #6a1b9a; background: #f3e5f5;
    padding: 2px 8px; border-radius: 10px; font-weight: 600; margin-left: 6px;
}
.vc-owner-badge { margin-top: 8px; }
.owner-controls { display: inline-flex; gap: 6px; margin-left: 8px; }
.owner-hint { font-size: .8rem; color: #999; font-style: italic; }
.round-closed-banner {
    background: #fff3e0; border: 1px solid #ffe0b2; border-radius: 6px;
    padding: 10px 16px; margin-bottom: 16px; color: #e65100; font-size: .88rem;
}

/* Offers detail */
.rv2-offers-detail { margin-top: 10px; }
.rv2-offers-detail summary {
    font-size: .85rem;
    color: #666;
    cursor: pointer;
    padding: 4px 0;
}

/* Context-aware field hint */
.rv2-field-hint {
    background: #fffbe6;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: .82rem;
    color: #6d5e00;
    line-height: 1.4;
}
.rv2-field-hint strong { color: #5d4e00; }
.rv2-field-hint.hint-hidden { display: none; }

/* Inline project review buttons */
.proj-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    white-space: nowrap;
}
.proj-actions .proj-btn {
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    font-size: .75rem;
    cursor: pointer;
    transition: all .12s;
}
.proj-btn-ok { color: #2e7d32; border-color: #a5d6a7; }
.proj-btn-ok:hover, .proj-btn-ok.active { background: #c8e6c9; border-color: #4caf50; font-weight: 600; }
.proj-btn-wrong { color: #c62828; border-color: #ef9a9a; }
.proj-btn-wrong:hover, .proj-btn-wrong.active { background: #ffcdd2; border-color: #e53935; font-weight: 600; }
.offer-actions { position: relative; }
.proj-reassign { display: none; }
.proj-reassign.visible {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 50;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    min-width: 260px;
    white-space: normal;
}
.proj-reassign select {
    font-size: .82rem;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
}
.proj-reassign .proj-btn-submit {
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #1a73e8;
    background: #e8f0fe;
    color: #1a73e8;
    font-size: .82rem;
    cursor: pointer;
    font-weight: 600;
    align-self: flex-end;
}
.proj-reassign .proj-btn-submit:hover { background: #1a73e8; color: #fff; }
.proj-reviewed-ok td { background: #f1f8e9; }
.proj-reviewed-ok td:first-child { border-left: 3px solid #4caf50; }
.proj-reviewed-wrong td { background: #fff3e0; }
.proj-reviewed-wrong td:first-child { border-left: 3px solid #ff9800; }

/* Feedback form inside panel */
.rv2-feedback-form .form-group { margin-bottom: 10px; }
.rv2-feedback-form textarea,
.rv2-feedback-form input[type="text"],
.rv2-feedback-form select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .88rem;
    box-sizing: border-box;
}
.rv2-feedback-form textarea {
    resize: vertical;
    overflow-y: hidden;
}
.rv2-feedback-form textarea#txtRationale {
    max-height: 120px;
    overflow-y: auto;
}
.rv2-feedback-form label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 3px;
}
.fb-types {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

/* Approve button */
.fb-approve-btn {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #4caf50;
    border-radius: 8px;
    background: #f1f8e9;
    color: #2e7d32;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 14px;
    transition: all .15s;
}
.fb-approve-btn:hover:not(:disabled) { background: #4caf50; color: #fff; }
.fb-approve-btn.changes-detected {
    opacity: .35;
    cursor: not-allowed;
    border-color: #ccc;
    color: #999;
    background: #f8f8f8;
}
.fb-approve-btn:disabled {
    opacity: .4;
    cursor: default;
    border-color: #ccc;
    color: #999;
    background: #f8f8f8;
}

/* Submit changes button */
.fb-submit-btn {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #1a73e8;
    border-radius: 8px;
    background: #e8f0fe;
    color: #1a73e8;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all .15s;
}
.fb-submit-btn:hover:not(:disabled) { background: #1a73e8; color: #fff; }
.fb-submit-btn:disabled {
    opacity: .4;
    cursor: default;
    border-color: #ccc;
    color: #999;
    background: #f8f8f8;
}


.fb-row {
    display: flex;
    gap: 10px;
}
.fb-row .form-group { flex: 1; }

/* Vote button */
.ic-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 2px 8px;
    font-size: .82rem;
    cursor: pointer;
    color: #666;
    transition: all .15s;
    margin-left: auto;
}
.ic-vote-btn:hover { background: #e8f0fe; border-color: #1a73e8; color: #1a73e8; }
.ic-vote-btn.voted { background: #e8f0fe; border-color: #1a73e8; color: #1a73e8; font-weight: 600; }
.vote-count { font-weight: 600; }

/* Tag editor (interactive chips in feedback panel) */
.tag-editor, .pp-editor {
    display: none;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8fbff;
    border: 1px solid #e0e8f0;
    border-radius: 8px;
}
.tag-editor.active, .pp-editor.active { display: block; }
.tag-editor > label, .pp-editor > label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.tag-editor > label small, .pp-editor > label small { font-weight: 400; color: #999; }
.te-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}
.te-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px 3px 10px;
    background: #e8eaf6;
    border: 1px solid #c5cae9;
    border-radius: 14px;
    font-size: .78rem;
    color: #333;
    cursor: default;
    transition: all .15s;
}
.te-chip.removed {
    background: #ffebee;
    border-color: #ef9a9a;
    color: #c62828;
    text-decoration: line-through;
    opacity: .7;
}
.te-chip.added {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #2e7d32;
}
.te-chip-x {
    cursor: pointer;
    font-size: .65rem;
    color: #999;
    padding: 1px 3px;
    border-radius: 50%;
    line-height: 1;
    font-weight: 700;
}
.te-chip-x:hover { color: #c62828; background: #ffcdd2; }
.te-chip.removed .te-chip-x { color: #4caf50; }
.te-chip.removed .te-chip-x:hover { color: #2e7d32; background: #c8e6c9; }
.te-add-row {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}
.te-add-input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .82rem;
    font-family: inherit;
}
.te-add-input:focus { outline: none; border-color: #1a73e8; }
.te-add-btn {
    padding: 4px 10px;
    border: 1px solid #1a73e8;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 6px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1;
}
.te-add-btn:hover { background: #1a73e8; color: #fff; }

/* Proof-point editor items */
.pp-items { max-height: 200px; overflow-y: auto; }
.pp-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: .82rem;
    transition: all .15s;
}
.pp-item:last-child { border-bottom: none; }
.pp-item.removed { text-decoration: line-through; color: #c62828; background: #fff5f5; opacity: .7; }
.pp-item.added { color: #2e7d32; background: #f5fdf6; }
.pp-item-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pp-item-btn {
    cursor: pointer;
    border: none;
    background: none;
    font-size: .72rem;
    color: #999;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 700;
    flex-shrink: 0;
}
.pp-item-btn:hover { color: #c62828; background: #ffebee; }
.pp-item.removed .pp-item-btn:hover { color: #2e7d32; background: #e8f5e9; }

/* Project picker dropdown for proof points */
.pp-project-select {
    flex: 1;
    min-width: 0;
    padding: 5px 8px;
    font-size: .82rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
}
.pp-project-select:focus { border-color: #1976d2; outline: none; }
.pp-project-select option:disabled { color: #aaa; }

/* ── Responsive ── */

@media (max-width: 1100px) {
    .rv2-split { grid-template-columns: 1fr; }
    .rv2-panel-sticky {
        position: static;
        transform: none;
        width: 100%;
        max-height: none;
        right: auto;
        top: auto;
        box-shadow: 0 2px 12px rgba(0,0,0,.06);
    }
}

@media (max-width: 768px) {
    .dashboard, .portfolio-page, .review-page, .review-page-v2, .consolidate-page, .compare-page {
        padding: 20px 16px;
    }
    .dc-diff { grid-template-columns: 1fr; }
    .fb-row { flex-direction: column; gap: 0; }
    .rc-header, .vc-row { flex-direction: column; align-items: flex-start; }
    .consol-stats { flex-direction: column; }
}


/* ═══════════════════════════════════════════════════════════════════════════ */
/* GUIDE / ONBOARDING PAGE                                                    */
/* ═══════════════════════════════════════════════════════════════════════════ */

.guide {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Hero */
.guide-hero {
    background: linear-gradient(135deg, var(--siemens-dark) 0%, var(--siemens-teal-dark) 60%, var(--siemens-teal) 100%);
    color: #fff;
    padding: 48px 40px 40px;
    border-radius: var(--radius);
    margin-bottom: 36px;
    text-align: center;
}
.guide-hero h1 { font-size: 2em; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.guide-hero-sub { font-size: 1.05em; opacity: 0.85; }

/* Sections */
.guide-section {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 20px;
}
.guide-section h2 {
    font-size: 1.2em;
    color: var(--siemens-dark);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--siemens-teal);
}
.guide-section p { font-size: 0.92em; line-height: 1.65; color: var(--gray-700); margin-bottom: 10px; }
.guide-section ul { margin: 8px 0 12px 22px; font-size: 0.92em; line-height: 1.7; color: var(--gray-700); }
.guide-section li { margin-bottom: 2px; }

.guide-section--highlight {
    background: linear-gradient(135deg, rgba(0,153,153,0.04) 0%, rgba(0,100,110,0.06) 100%);
    border-color: var(--siemens-teal);
    border-width: 1.5px;
}

/* Blockquotes */
.guide-quote {
    background: var(--gray-50);
    border-left: 4px solid var(--siemens-teal);
    padding: 16px 20px;
    margin: 14px 0 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.92em;
    line-height: 1.6;
    color: var(--gray-700);
    font-style: italic;
}
.guide-quote--def {
    background: rgba(0,153,153,0.05);
    border-left-color: var(--siemens-teal-dark);
    font-style: normal;
    font-weight: 500;
    color: var(--siemens-dark);
}


/* ─── 4-Stage Visualization ─────────────────────────────────────────────── */

.guide-stages {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 20px 0 8px;
}
.guide-stage {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1.5px solid var(--gray-200);
    background: #fff;
    position: relative;
}
.guide-stage--active {
    border-color: var(--siemens-teal);
    background: rgba(0,153,153,0.04);
    box-shadow: 0 0 0 3px rgba(0,153,153,0.08);
}
.guide-stage--future {
    opacity: 0.65;
}
.guide-stage-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95em;
    flex-shrink: 0;
    background: var(--gray-200);
    color: var(--gray-700);
}
.guide-stage--active .guide-stage-num {
    background: var(--siemens-teal);
    color: #fff;
}
.guide-stage-body h3 { font-size: 1em; margin-bottom: 4px; color: var(--gray-900); }
.guide-stage-body p { font-size: 0.86em; margin-bottom: 4px; }
.guide-stage-q { color: var(--siemens-teal-dark) !important; font-weight: 600; font-style: italic; }
.guide-stage-badge {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 4px;
}
.guide-stage-badge--current {
    background: var(--siemens-teal);
    color: #fff;
}

.guide-stage-connector {
    width: 2px;
    height: 16px;
    background: var(--gray-300);
    margin-left: 37px;
}


/* ─── Iteration Flow ─────────────────────────────────────────────────────── */

.guide-iter-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}
.guide-iter-step {
    background: var(--siemens-dark);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.84em;
    font-weight: 600;
}
.guide-iter-step--final {
    background: var(--green);
}
.guide-iter-arrow {
    color: var(--gray-500);
    font-size: 1.1em;
}
.guide-iter-loop {
    font-size: 0.78em;
    color: var(--gray-500);
    font-style: italic;
    margin-left: auto;
}

/* ─── Not-list (crossed items) ───────────────────────────────────────────── */

.guide-not-list li {
    color: var(--gray-500);
    text-decoration: line-through;
    text-decoration-color: var(--red);
}

/* ─── Layers Grid ────────────────────────────────────────────────────────── */

.guide-layers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0 8px;
}
.guide-layer {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
}
.guide-layer h3 { font-size: 0.95em; color: var(--siemens-dark); margin-bottom: 4px; }
.guide-layer p { font-size: 0.84em; }
.guide-layer-q { color: var(--siemens-teal-dark) !important; font-weight: 600; font-style: italic; }

/* ─── Principles Grid ────────────────────────────────────────────────────── */

.guide-principles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0 8px;
}
.guide-principle {
    background: var(--gray-50);
    border-left: 3px solid var(--siemens-teal);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 16px;
}
.guide-principle h4 { font-size: 0.9em; color: var(--siemens-dark); margin-bottom: 4px; }
.guide-principle p { font-size: 0.84em; }

/* ─── Guiding Question Dimensions ────────────────────────────────────────── */

.guide-dims {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0 8px;
}
.guide-dim {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}
.guide-dim summary {
    cursor: pointer;
    font-size: 0.92em;
    padding: 2px 0 6px;
}
.guide-dim ul { margin: 6px 0 0 18px; font-size: 0.84em; }

/* ─── Scope In/Out ───────────────────────────────────────────────────────── */

.guide-scope {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 14px 0 8px;
}
.guide-scope-in, .guide-scope-out {
    padding: 18px 20px;
    border-radius: var(--radius-sm);
}
.guide-scope-in {
    background: rgba(76,175,80,0.06);
    border: 1px solid rgba(76,175,80,0.25);
}
.guide-scope-out {
    background: rgba(244,67,54,0.04);
    border: 1px solid rgba(244,67,54,0.2);
}
.guide-scope h4 { font-size: 0.92em; margin-bottom: 8px; color: var(--gray-900); }
.guide-scope ul { margin: 0 0 0 18px; font-size: 0.86em; line-height: 1.6; }
.guide-scope-note { font-size: 0.8em; color: var(--gray-500); margin-top: 10px; font-style: italic; }

/* ─── Success List ───────────────────────────────────────────────────────── */

.guide-success-list li {
    list-style: none;
    position: relative;
    padding-left: 6px;
}
.guide-success-list li::before {
    content: "✓";
    color: var(--green);
    font-weight: 700;
    position: absolute;
    left: -18px;
}

/* ─── Acknowledgment Bar ─────────────────────────────────────────────────── */

.guide-ack {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 2px solid var(--siemens-teal);
    padding: 20px 32px;
    margin: 32px -24px -80px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
}
.guide-ack form {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.guide-ack-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92em;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
}
.guide-ack-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--siemens-teal);
    cursor: pointer;
}
.guide-ack .btn { padding: 10px 28px; font-size: 0.95em; }
.guide-ack .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── Guide – Responsive ─────────────────────────────────────────────────── */

@media (max-width: 700px) {
    .guide { padding: 20px 14px 70px; }
    .guide-hero { padding: 32px 20px 28px; }
    .guide-hero h1 { font-size: 1.4em; }
    .guide-section { padding: 20px 18px; }
    .guide-layers, .guide-principles, .guide-dims, .guide-scope { grid-template-columns: 1fr; }
    .guide-ack { margin: 24px -14px -70px; padding: 16px 18px; }
}
