:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --text: #17202a;
    --muted: #667085;
    --border: #e3e8ef;
    --accent: #1f5f54;
    --accent-dark: #174a42;
    --soft: #eaf3f1;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a { color: inherit; }

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 18px;
    font-weight: 750;
    text-decoration: none;
}

.badge,
.status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--soft);
    color: var(--accent-dark);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.page-content { padding: 48px 0 72px; }

.hero,
.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(30px, 5vw, 44px); line-height: 1.1; }
h2 { margin-bottom: 16px; font-size: 20px; }
h3 { margin-bottom: 4px; font-size: 16px; }

.eyebrow {
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }

.dashboard-grid,
.documents-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.panel {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.documents-heading h2 { margin-bottom: 3px; }
.documents-heading p { margin-bottom: 0; }

.project-list,
.document-list { display: grid; gap: 10px; }

.project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.project-card:hover {
    border-color: #b8c8c4;
    transform: translateY(-1px);
}

.empty-state {
    padding: 42px 18px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 10px;
}

.form { display: grid; gap: 16px; }

label {
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
}

input {
    width: 100%;
    border: 1px solid #ccd5df;
    border-radius: 9px;
    padding: 11px 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

input:focus {
    outline: 2px solid rgba(31, 95, 84, 0.18);
    border-color: var(--accent);
}

.required { color: #b42318; }

button,
.button-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 9px;
    padding: 11px 16px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button-link:hover { background: var(--accent-dark); }

.button-small {
    padding: 8px 10px;
    font-size: 12px;
}

.button-danger {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid #fecdca;
}

.button-danger:hover { background: #fee4e2; }

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.tab {
    padding: 9px 13px;
    border-radius: 8px;
    background: #e8edf2;
    color: #495566;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.tab:not(.disabled):not(.active):hover { background: #dfe6eb; }
.tab.active { background: var(--accent); color: #fff; }
.tab.disabled { opacity: 0.55; }

.metric-card { min-height: 155px; }
.metric-label { margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.metric-value { margin-bottom: 6px; font-size: 34px; font-weight: 800; line-height: 1.15; }
.metric-text { font-size: 20px; }
.muted-card { background: #fbfcfd; }
.text-link { color: var(--accent); font-size: 13px; font-weight: 750; text-decoration: none; }
.next-step-panel { margin-top: 0; }

.document-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.document-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 8px;
    background: var(--soft);
    color: var(--accent-dark);
    font-size: 10px;
    font-weight: 850;
}

.document-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.document-info strong {
    overflow-wrap: anywhere;
}

.file-drop {
    padding: 22px;
    border: 1px dashed #aebdc9;
    border-radius: 10px;
    background: #fbfcfd;
    cursor: pointer;
}

.file-drop:hover { border-color: var(--accent); }
.file-drop-title { color: var(--accent); font-weight: 800; }
.file-drop input { margin-top: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.upload-note { margin: 18px 0 0; }

.alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #fecdca;
    border-radius: 10px;
    background: var(--danger-soft);
    color: #912018;
    font-size: 13px;
    font-weight: 650;
}

@media (max-width: 760px) {
    .dashboard-grid,
    .documents-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .page-content { padding-top: 32px; }

    .document-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .document-row form {
        grid-column: 1 / -1;
    }
}

/* MVP stap 3: document-intake */
.compact-header { margin-bottom: 24px; }

.intake-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.source-list {
    display: grid;
    gap: 8px;
    margin: 20px 0;
}

.source-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #fbfcfd;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
}

.intake-action { margin-top: 20px; }
button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
button:disabled:hover { background: var(--accent); }

.processing-card {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid #b8d8d2;
    border-radius: 12px;
    background: var(--soft);
}
.processing-card p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.spinner {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border: 3px solid rgba(31, 95, 84, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.run-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.run-status,
.proposal-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 800;
}
.run-completed, .status-proposed { background: #eaf7ee; color: #176b3a; }
.run-running, .run-queued, .status-needs_review { background: #fff6df; color: #8a5a00; }
.run-failed, .status-conflict { background: var(--danger-soft); color: var(--danger); }
.status-not_found { background: #eef1f4; color: #5c6674; }

.run-meta { display: grid; gap: 8px; margin: 0; }
.run-meta div { display: flex; justify-content: space-between; gap: 12px; }
.run-meta dt { color: var(--muted); font-size: 12px; }
.run-meta dd { margin: 0; font-size: 12px; font-weight: 700; text-align: right; }
.intake-error { margin-top: 18px; overflow-wrap: anywhere; }

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.summary-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}
.summary-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.summary-card strong { font-size: 28px; line-height: 1; }

.results-panel { margin-bottom: 20px; }
.proposal-list { display: grid; gap: 10px; }
.proposal-row {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}
.proposal-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.proposal-label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.proposal-value { display: block; font-size: 15px; white-space: pre-wrap; }
.proposal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}
.evidence-details {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.evidence-details summary {
    color: var(--accent);
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}
.evidence-list { display: grid; gap: 10px; margin-top: 10px; }
.evidence-item {
    padding: 10px 12px;
    border-left: 3px solid #bfd5d0;
    background: #f8fafb;
    font-size: 12px;
}
.evidence-item p { margin: 5px 0 0; white-space: pre-wrap; }
.notes-list { margin-bottom: 0; padding-left: 20px; font-size: 12px; }
.small-empty { padding: 24px 12px; }
.run-history-panel { margin-top: 20px; }
.run-history { display: grid; gap: 8px; }
.history-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}
.history-row:last-child { border-bottom: 0; }

@media (max-width: 760px) {
    .intake-grid,
    .summary-grid { grid-template-columns: 1fr; }
    .proposal-topline { flex-direction: column; }
}

/* MVP stap 4: menselijke review + definitieve intake */
.success-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #b8d8c2;
    border-radius: 10px;
    background: #eef9f1;
    color: #176b3a;
    font-size: 13px;
    font-weight: 650;
}

.review-progress-panel { margin-bottom: 20px; }
.review-progress-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.review-progress-heading h2 { margin-bottom: 5px; }
.review-progress-number {
    min-width: 90px;
    text-align: right;
}
.review-progress-number strong { display: block; font-size: 24px; }
.review-progress-number span { color: var(--muted); font-size: 11px; }
.progress-track {
    height: 8px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf0;
}
.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width .2s ease;
}

.proposal-reviewed { border-color: #b8d8d2; }
.proposal-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.reviewed-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 800;
}

.review-form {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}
.review-form fieldset { margin: 0; padding: 0; border: 0; }
.review-form legend {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}
.review-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 13px;
}
.review-choice {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfcfd;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.review-choice input { width: auto; margin: 0; }
.review-field {
    display: grid;
    gap: 5px;
    margin-top: 10px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}
.review-field em { color: var(--muted); font-style: normal; font-weight: 500; }
.review-field textarea { resize: vertical; min-height: 68px; }
.review-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}
.secondary-button {
    width: auto;
    padding: 9px 13px;
    background: #e6efed;
    color: var(--accent-dark);
}
.secondary-button:hover { background: #d7e7e3; }
.finalize-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}
.finalize-panel p { margin-bottom: 0; }
.finalize-panel form { flex: 0 0 auto; }
.finalize-panel code,
.success-alert code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #eef1f4;
    color: var(--text);
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .review-progress-heading,
    .finalize-panel,
    .review-form-footer { flex-direction: column; align-items: stretch; }
    .review-progress-number { text-align: left; }
    .proposal-badges { justify-content: flex-start; }
    .secondary-button { width: 100%; }
}

/* MVP 4.1: project verwijderen */
.danger-zone{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:20px;border-color:#e7c1c1}.danger-eyebrow{color:#a22d2d}.danger-button-link,.danger-button{display:inline-flex;align-items:center;justify-content:center;width:auto;padding:10px 14px;border:1px solid #b83535;border-radius:8px;background:#b83535;color:#fff;font-weight:750;text-decoration:none;cursor:pointer}.danger-button-link:hover,.danger-button:hover{background:#982929}.delete-page-card{max-width:760px}.delete-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}.delete-summary div{padding:14px;border:1px solid var(--border);border-radius:10px;background:#fafbfc}.delete-summary strong{display:block;font-size:24px}.delete-summary span{color:var(--muted);font-size:12px}.delete-warning,.error-alert{margin:18px 0;padding:14px;border:1px solid #e7c1c1;border-radius:10px;background:#fff5f5}.error-alert{color:#8d2626;font-size:13px;font-weight:650}.confirm-project-name{display:block;margin:5px 0 8px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:700}.delete-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.cancel-link-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);font-weight:700;text-decoration:none}@media(max-width:760px){.danger-zone,.delete-actions{flex-direction:column;align-items:stretch}.delete-summary{grid-template-columns:1fr}.danger-button-link,.danger-button,.cancel-link-button{width:100%}}

/* MVP 5: BLVC-generatie */
.blvc-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:20px;margin-bottom:20px}.ready-callout,.not-ready-callout{margin:16px 0;padding:14px;border:1px solid #b8d8c2;border-radius:10px;background:#eef9f1}.ready-callout strong,.not-ready-callout strong{display:block;margin-bottom:4px}.ready-callout p,.not-ready-callout p{margin:0;font-size:13px}.not-ready-callout{border-color:#ead6a5;background:#fff9ea}.blvc-generate-form{margin-top:18px}.validation-summary{display:grid;gap:4px;margin:16px 0;padding:12px;border:1px solid var(--border);border-radius:10px;background:#fafbfc}.validation-summary span,.validation-summary small{color:var(--muted);font-size:11px}.validation-summary strong{font-size:18px}.download-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.download-button,.secondary-download-button{display:inline-flex;align-items:center;justify-content:center;padding:10px 13px;border-radius:8px;font-size:12px;font-weight:800;text-decoration:none}.download-button{background:var(--accent);color:#fff}.download-button:hover{background:var(--accent-dark)}.secondary-download-button{border:1px solid var(--border);background:#fff;color:var(--accent-dark)}.blvc-history{display:grid;gap:8px}.blvc-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid var(--border)}.blvc-history-row:last-child{border-bottom:0}.blvc-history-row strong,.blvc-history-row span{display:block}.history-downloads{display:flex;gap:10px}.history-downloads a{color:var(--accent);font-size:12px;font-weight:750;text-decoration:none}.delete-summary{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:760px){.blvc-grid{grid-template-columns:1fr}.blvc-history-row{grid-template-columns:1fr}.download-actions,.history-downloads{align-items:stretch}.download-button,.secondary-download-button{width:100%}.delete-summary{grid-template-columns:1fr}}

/* MVP 5.1 — BLVC.nu huisstijl */
:root {
    --bg: #F3F4F6;
    --surface: #FFFFFF;
    --text: #1E2328;
    --muted: #6B7177;
    --border: #DDE1E5;
    --accent: #163B5C;
    --accent-dark: #0E2C46;
    --accent-orange: #F28C28;
    --accent-orange-dark: #D87516;
    --soft: #EAF0F5;
    --danger: #A92F2F;
    --danger-soft: #FFF2F1;
    --radius: 14px;
    --shadow: 0 10px 28px rgba(30, 35, 40, 0.07);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom-color: var(--border);
}

.brand-stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0 76%, var(--accent-orange) 76% 100%);
}

.header-inner { min-height: 70px; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
}
.brand-logo {
    display: block;
    width: 116px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
}
.brand-divider {
    width: 1px;
    height: 26px;
    background: var(--border);
}
.brand-label {
    font-size: 15px;
    font-weight: 750;
    letter-spacing: .01em;
}
.badge {
    background: #FFF0E1;
    color: #9B510D;
    border: 1px solid #FFD5AA;
}

h1, h2, h3 { color: var(--text); }
h1 { color: var(--accent); letter-spacing: -0.025em; }
.eyebrow { color: var(--accent-orange-dark); }

.panel { border-top: 3px solid transparent; }
.project-card:hover {
    border-color: #AFC0CF;
    box-shadow: 0 8px 18px rgba(22, 59, 92, .08);
}

button, .button-link, .download-button {
    background: var(--accent);
}
button:hover, .button-link:hover, .download-button:hover {
    background: var(--accent-dark);
}
input:focus, textarea:focus, select:focus {
    outline: 3px solid rgba(242, 140, 40, .18);
    border-color: var(--accent-orange);
}

.tab { background: #E8EDF2; color: #41505E; }
.tab:not(.disabled):not(.active):hover { background: #DDE6ED; color: var(--accent); }
.tab.active {
    background: var(--accent);
    color: #fff;
    box-shadow: inset 0 -3px 0 var(--accent-orange);
}

.text-link, .history-downloads a, .evidence-details summary { color: var(--accent); }
.file-drop-title { color: var(--accent); }
.document-icon { background: #EDF2F6; color: var(--accent); }
.progress-fill { background: linear-gradient(90deg, var(--accent), var(--accent-orange)); }
.secondary-button { background: #EDF2F6; color: var(--accent); }
.secondary-button:hover { background: #E1E9EF; }

.run-completed, .status-proposed {
    background: #EAF0F5;
    color: var(--accent);
}
.run-running, .run-queued, .status-needs_review {
    background: #FFF0E1;
    color: #8B4B0D;
}
.reviewed-badge, .status {
    background: #EAF0F5;
    color: var(--accent);
}
.success-alert, .ready-callout {
    border-color: #B9CAD8;
    background: #F0F5F8;
    color: var(--accent);
}
.not-ready-callout {
    border-color: #F2C48F;
    background: #FFF7EE;
}
.validation-summary {
    border-left: 4px solid var(--accent-orange);
    background: #FAFBFC;
}
.secondary-download-button {
    border-color: #B8C6D1;
    color: var(--accent);
}
.secondary-download-button:hover { border-color: var(--accent); background: #F3F7FA; }

.validation-details-panel { margin-bottom: 20px; }
.validation-issue-list { display: grid; gap: 9px; }
.validation-issue {
    border: 1px solid var(--border);
    border-left: 4px solid #9AA1A8;
    border-radius: 9px;
    background: #FBFCFD;
    overflow: hidden;
}
.validation-issue.validation-error { border-left-color: #A92F2F; }
.validation-issue.validation-warning { border-left-color: var(--accent-orange); }
.validation-issue.validation-info { border-left-color: var(--accent); }
.validation-issue summary {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    cursor: pointer;
    list-style-position: inside;
}
.validation-severity {
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
}
.validation-message { font-size: 13px; font-weight: 650; }
.validation-issue-body {
    padding: 0 14px 13px 146px;
    font-size: 12px;
}
.validation-issue-body p { margin: 6px 0 0; }
.validation-issue-body code { color: var(--accent); }

@media (max-width: 760px) {
    .brand-logo { width: 100px; }
    .brand-label, .brand-divider { display: none; }
    .validation-issue summary { grid-template-columns: 1fr; }
    .validation-issue-body { padding: 0 14px 13px; }
}

/* ========================================================================== */
/* MVP 7.1 - consolidated historical dashboard refinements.                  */
/* The blocks below preserve the former cascade order: 5.2 -> 6.2 -> 6.4 -> */
/* 6.5 -> 6.6. New styling should be maintained in this single file.         */
/* ========================================================================== */

/* --- Former mvp52.css --- */
/* ================================================================
   BLVC Dashboard — MVP 5.2 visual system
   Loaded AFTER style.css so this file deliberately wins conflicts.
   ================================================================ */

:root {
    --blvc-blue: #163B5C;
    --blvc-blue-2: #214D72;
    --blvc-blue-soft: #EAF0F5;
    --blvc-orange: #F28C28;
    --blvc-orange-soft: #FFF3E6;
    --blvc-bg: #F3F4F6;
    --blvc-surface: #FFFFFF;
    --blvc-text: #1E2328;
    --blvc-muted: #6B7177;
    --blvc-border: #D9DEE3;
    --blvc-border-strong: #C7D0D8;
    --blvc-success-soft: #EAF0F5;
    --blvc-warning-soft: #FFF6EA;
    --blvc-danger: #B64242;
    --blvc-danger-soft: #FFF1F1;
    --blvc-shadow: 0 10px 32px rgba(22, 59, 92, .07);
    --blvc-radius: 14px;
}

html, body {
    background: var(--blvc-bg) !important;
    color: var(--blvc-text) !important;
}
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* ---------- Header: fixed, compact and independent from old logo rules ---------- */
.blvc-site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: rgba(255,255,255,.98) !important;
    border-bottom: 1px solid var(--blvc-border) !important;
    box-shadow: 0 2px 14px rgba(22,59,92,.045) !important;
}
.blvc-topline {
    height: 4px !important;
    background: linear-gradient(90deg, var(--blvc-blue) 0 82%, var(--blvc-orange) 82% 100%) !important;
}
.blvc-header-inner {
    min-height: 64px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.blvc-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    height: 64px !important;
    width: auto !important;
    max-width: 360px !important;
    text-decoration: none !important;
    color: var(--blvc-text) !important;
    overflow: hidden !important;
}
.blvc-logo-frame {
    width: 118px !important;
    min-width: 118px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
}
.blvc-logo-frame img {
    display: block !important;
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    height: auto !important;
    max-height: 42px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}
.blvc-brand-divider {
    width: 1px !important;
    height: 28px !important;
    background: var(--blvc-border) !important;
    flex: 0 0 1px !important;
}
.blvc-brand-copy {
    display: grid !important;
    gap: 1px !important;
    line-height: 1.1 !important;
}
.blvc-brand-copy strong {
    color: var(--blvc-blue) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}
.blvc-brand-copy small {
    color: var(--blvc-muted) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
}
.blvc-version-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 9px !important;
    border-radius: 999px !important;
    background: var(--blvc-blue-soft) !important;
    border: 1px solid #D5E1EA !important;
    color: var(--blvc-blue) !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    letter-spacing: .02em !important;
}

/* ---------- Core visual language ---------- */
.blvc-page-content { padding-top: 30px !important; padding-bottom: 56px !important; }
h1, h2, h3 { color: var(--blvc-text) !important; }
h1 { letter-spacing: -.025em !important; }
.eyebrow {
    color: var(--blvc-blue) !important;
    font-weight: 850 !important;
    letter-spacing: .08em !important;
}
.muted { color: var(--blvc-muted) !important; }
.panel, .summary-card, .project-card, .processing-card {
    background: var(--blvc-surface) !important;
    border-color: var(--blvc-border) !important;
    border-radius: var(--blvc-radius) !important;
    box-shadow: var(--blvc-shadow) !important;
}
.panel { border-top: 1px solid var(--blvc-border) !important; }

/* Tabs */
.tabs { gap: 8px !important; }
.tab {
    border: 1px solid transparent !important;
    background: #E8EDF2 !important;
    color: #425564 !important;
    border-radius: 9px !important;
    font-weight: 750 !important;
    box-shadow: none !important;
}
.tab:not(.disabled):not(.active):hover {
    background: #DCE6ED !important;
    color: var(--blvc-blue) !important;
}
.tab.active {
    background: var(--blvc-blue) !important;
    color: #fff !important;
    border-color: var(--blvc-blue) !important;
    box-shadow: inset 0 -3px 0 var(--blvc-orange) !important;
}

/* Buttons and links: blue is primary; orange is accent, not main button color */
button,
.button-link,
.download-button,
.secondary-button,
.secondary-download-button {
    border-radius: 9px !important;
    font-weight: 800 !important;
}
button:not(.danger-button),
.button-link,
.download-button {
    background: var(--blvc-blue) !important;
    border-color: var(--blvc-blue) !important;
    color: #fff !important;
}
button:not(.danger-button):hover,
.button-link:hover,
.download-button:hover {
    background: #0F304B !important;
    border-color: #0F304B !important;
}
.secondary-button,
.secondary-download-button {
    background: #fff !important;
    border: 1px solid var(--blvc-border-strong) !important;
    color: var(--blvc-blue) !important;
}
.secondary-button:hover,
.secondary-download-button:hover {
    background: var(--blvc-blue-soft) !important;
    border-color: #9CB2C2 !important;
}
.text-link, .history-downloads a, .evidence-details summary {
    color: var(--blvc-blue) !important;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--blvc-orange) !important;
    outline: 3px solid rgba(242,140,40,.16) !important;
}

/* Statuses: no green primary language anymore */
.status,
.run-completed,
.reviewed-badge,
.status-proposed,
.run-status.run-completed,
.run-status.run-ready {
    background: var(--blvc-blue-soft) !important;
    color: var(--blvc-blue) !important;
    border-color: #D6E2EB !important;
}
.run-running,
.run-queued,
.status-needs_review,
.run-status.run-running,
.run-status.run-queued {
    background: var(--blvc-orange-soft) !important;
    color: #9B570F !important;
    border-color: #F4D1AA !important;
}
.progress-fill {
    background: linear-gradient(90deg, var(--blvc-blue), var(--blvc-orange)) !important;
}
.ready-callout,
.success-alert {
    background: #F2F6F9 !important;
    border: 1px solid #BED0DE !important;
    color: var(--blvc-blue) !important;
}
.not-ready-callout {
    background: var(--blvc-orange-soft) !important;
    border: 1px solid #F0C997 !important;
    color: #70400D !important;
}
.validation-summary {
    border: 1px solid var(--blvc-border) !important;
    border-left: 4px solid var(--blvc-orange) !important;
    background: #FAFBFC !important;
}

/* Destructive actions are the only place red stays prominent */
.danger-button, .danger-button-link {
    background: var(--blvc-danger) !important;
    border-color: var(--blvc-danger) !important;
    color: #fff !important;
}

/* ---------- MVP 5.2 validation dashboard ---------- */
.validation-workspace {
    margin-bottom: 22px !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.validation-workspace-header {
    padding: 22px 24px 18px !important;
    border-bottom: 1px solid var(--blvc-border) !important;
}
.validation-workspace-header h2 { margin: 3px 0 6px !important; }
.validation-workspace-header p { margin: 0 !important; max-width: 900px !important; }

.validation-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: 12px !important;
    padding: 18px 24px !important;
    background: #FAFBFC !important;
    border-bottom: 1px solid var(--blvc-border) !important;
}
.validation-kpi {
    min-height: 88px !important;
    padding: 14px 15px !important;
    border: 1px solid var(--blvc-border) !important;
    border-radius: 11px !important;
    background: #fff !important;
}
.validation-kpi-label {
    display: block !important;
    margin-bottom: 6px !important;
    color: var(--blvc-muted) !important;
    font-size: 11px !important;
    font-weight: 750 !important;
}
.validation-kpi strong {
    display: block !important;
    color: var(--blvc-text) !important;
    font-size: 25px !important;
    line-height: 1 !important;
}
.validation-kpi small {
    display: block !important;
    margin-top: 6px !important;
    color: var(--blvc-muted) !important;
    font-size: 10px !important;
}
.validation-kpi.is-warning { border-top: 3px solid var(--blvc-orange) !important; }
.validation-kpi.is-info { border-top: 3px solid var(--blvc-blue) !important; }
.validation-kpi.is-error { border-top: 3px solid var(--blvc-danger) !important; }
.validation-kpi.is-ok { border-top: 3px solid #8298AA !important; }

.validation-priority-section {
    padding: 22px 24px !important;
    border-bottom: 1px solid var(--blvc-border) !important;
}
.validation-section-heading {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 14px !important;
}
.validation-section-heading h3 { margin: 0 0 4px !important; font-size: 17px !important; }
.validation-section-heading p { margin: 0 !important; font-size: 12px !important; color: var(--blvc-muted) !important; }
.validation-count-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 28px !important;
    height: 28px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    background: var(--blvc-orange-soft) !important;
    color: #8B4A0A !important;
    font-size: 11px !important;
    font-weight: 850 !important;
}
.validation-action-list {
    display: grid !important;
    gap: 10px !important;
}
.validation-action-card {
    display: grid !important;
    grid-template-columns: 34px minmax(0,1fr) !important;
    gap: 12px !important;
    padding: 14px 15px !important;
    border: 1px solid var(--blvc-border) !important;
    border-radius: 11px !important;
    background: #fff !important;
}
.validation-action-icon {
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: var(--blvc-orange-soft) !important;
    color: #92500D !important;
    font-weight: 900 !important;
}
.validation-action-card.is-error .validation-action-icon {
    background: var(--blvc-danger-soft) !important;
    color: var(--blvc-danger) !important;
}
.validation-action-copy strong {
    display: block !important;
    margin-bottom: 4px !important;
    color: var(--blvc-text) !important;
    font-size: 13px !important;
}
.validation-action-copy p {
    margin: 0 !important;
    color: var(--blvc-muted) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}
.validation-action-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 8px !important;
}
.validation-action-meta span {
    display: inline-flex !important;
    padding: 4px 7px !important;
    border-radius: 6px !important;
    background: #F4F6F8 !important;
    color: var(--blvc-muted) !important;
    font-size: 10px !important;
    font-weight: 650 !important;
}

.validation-open-section { padding: 22px 24px 24px !important; }
.validation-open-grid {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    gap: 10px !important;
}
.validation-topic {
    border: 1px solid var(--blvc-border) !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
}
.validation-topic summary {
    list-style: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 68px !important;
    padding: 12px 13px !important;
}
.validation-topic summary::-webkit-details-marker { display:none !important; }
.validation-topic-title {
    display: grid !important;
    gap: 3px !important;
}
.validation-topic-title strong {
    color: var(--blvc-text) !important;
    font-size: 12px !important;
    text-transform: none !important;
}
.validation-topic-title span {
    color: var(--blvc-muted) !important;
    font-size: 10px !important;
}
.validation-topic-chevron {
    color: var(--blvc-blue) !important;
    font-size: 15px !important;
    line-height: 1 !important;
}
.validation-topic[open] .validation-topic-chevron { transform: rotate(45deg) !important; }
.validation-topic-body {
    padding: 0 13px 13px !important;
    border-top: 1px solid #EEF1F3 !important;
}
.validation-topic-body p {
    margin: 10px 0 0 !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
}
.validation-topic-body code {
    color: var(--blvc-blue) !important;
    background: var(--blvc-blue-soft) !important;
    border-radius: 5px !important;
    padding: 2px 5px !important;
}
.validation-topic-source {
    color: var(--blvc-muted) !important;
    font-size: 10px !important;
}
.validation-empty-state {
    padding: 14px !important;
    border-radius: 10px !important;
    background: var(--blvc-blue-soft) !important;
    color: var(--blvc-blue) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

/* Hide the old long accordion if older markup is still present elsewhere. */
.validation-details-panel { display: none !important; }

@media (max-width: 920px) {
    .validation-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    .validation-open-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 680px) {
    .blvc-header-inner { height: 58px !important; min-height: 58px !important; }
    .blvc-brand { height: 58px !important; }
    .blvc-logo-frame, .blvc-logo-frame img { width: 98px !important; min-width: 98px !important; max-width: 98px !important; }
    .blvc-brand-copy, .blvc-brand-divider { display: none !important; }
    .validation-kpi-grid,
    .validation-open-grid { grid-template-columns: 1fr !important; }
    .validation-workspace-header,
    .validation-kpi-grid,
    .validation-priority-section,
    .validation-open-section { padding-left: 16px !important; padding-right: 16px !important; }
}


/* --- Former mvp62.css --- */
/* MVP 6.2 – AI-verbruik en duurzaamheidsweergave */
.ai-impact-panel {
    margin-top: 22px;
    overflow: hidden;
}

.impact-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.impact-heading h2 {
    margin-bottom: 5px;
}

.impact-estimate-badge {
    flex: 0 0 auto;
    border: 1px solid #f4c38f;
    background: #fff5e9;
    color: #9a4d00;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.impact-grid {
    display: grid;
    gap: 12px;
}

.impact-grid-primary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-card {
    min-width: 0;
    border: 1px solid #d9e0e6;
    border-top: 3px solid #163B5C;
    border-radius: 14px;
    background: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.impact-card-cost,
.impact-card-energy {
    border-top-color: #F28C28;
}

.impact-card-carbon {
    border-top-color: #1E2328;
}

.impact-card > span {
    color: #6B7177;
    font-size: 12px;
    font-weight: 700;
}

.impact-card > strong {
    color: #163B5C;
    font-size: 21px;
    line-height: 1.15;
    margin-top: 3px;
}

.impact-card > small {
    color: #6B7177;
    line-height: 1.35;
}

.impact-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #F3F4F6;
    color: #163B5C;
    display: grid;
    place-items: center;
    margin-bottom: 5px;
}

.impact-card-cost .impact-icon,
.impact-card-energy .impact-icon {
    background: #fff2e3;
    color: #c86708;
}

.impact-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.impact-breakdown {
    margin-top: 18px;
    border-top: 1px solid #e2e7eb;
    padding-top: 16px;
}

.impact-breakdown-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.impact-bar {
    width: 100%;
    height: 12px;
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f4;
}

.impact-bar-intake {
    display: block;
    background: #163B5C;
}

.impact-bar-blvc {
    display: block;
    background: #F28C28;
}

.impact-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: #6B7177;
    font-size: 12px;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.legend-intake { background: #163B5C; }
.legend-blvc { background: #F28C28; }

.impact-method {
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid #e2e7eb;
    color: #47525d;
}

.impact-method summary {
    color: #163B5C;
    font-weight: 750;
    cursor: pointer;
}

.impact-method p {
    max-width: 1000px;
    margin: 10px 0 0;
    line-height: 1.55;
}

.mini-impact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 10px;
}

.mini-impact-row > span {
    min-width: 0;
    background: #F3F4F6;
    border-radius: 10px;
    padding: 9px 8px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 6px;
    row-gap: 1px;
    align-items: center;
}

.mini-impact-row b {
    grid-row: 1 / span 2;
    font-size: 15px;
}

.mini-impact-row strong {
    color: #163B5C;
    font-size: 12px;
    white-space: nowrap;
}

.mini-impact-row small {
    color: #6B7177;
    font-size: 10px;
}

.impact-inline-note {
    margin-top: 7px;
}

@media (max-width: 1100px) {
    .impact-grid-primary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .impact-grid-primary {
        grid-template-columns: 1fr 1fr;
    }
    .impact-heading,
    .impact-breakdown-title {
        display: block;
    }
    .impact-estimate-badge {
        display: inline-block;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .impact-grid-primary,
    .mini-impact-row {
        grid-template-columns: 1fr;
    }
}

/* MVP 6.3 — Smart Review */
.smart-review-progress {
    border-top: 3px solid #F28C28;
}

.smart-review-grid,
.trusted-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.smart-review-stat {
    min-width: 140px;
    border-radius: 14px;
    padding: 14px 18px;
    text-align: right;
    background: #fff4e8;
    border: 1px solid #ffd7ad;
}

.smart-review-stat strong {
    display: block;
    color: #163B5C;
    font-size: 26px;
    line-height: 1;
}

.smart-review-stat span,
.trusted-status-row {
    color: #6B7177;
    font-size: 12px;
}

.smart-action-list {
    margin-top: 20px;
}

.smart-review-done {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #eef7f1;
    color: #245c39;
    font-weight: 700;
}

.trusted-proposals-panel {
    border-top: 3px solid #163B5C;
}

.trusted-batch-form {
    flex: 0 0 auto;
}

.trusted-batch-form button {
    white-space: nowrap;
}

.trusted-status-row {
    display: flex;
    gap: 18px;
    margin-top: 14px;
}

.trusted-status-row strong {
    color: #163B5C;
}

.trusted-details {
    margin-top: 16px;
    border-top: 1px solid #e2e7eb;
    padding-top: 14px;
}

.trusted-details > summary {
    cursor: pointer;
    color: #163B5C;
    font-weight: 750;
}

.trusted-proposal-list {
    margin-top: 16px;
}

@media (max-width: 760px) {
    .smart-review-grid,
    .trusted-heading {
        display: block;
    }
    .smart-review-stat {
        margin-top: 14px;
        text-align: left;
    }
    .trusted-batch-form {
        margin-top: 16px;
    }
    .trusted-batch-form button {
        width: 100%;
        white-space: normal;
    }
}


/* --- Former mvp64.css --- */
/* MVP 6.4 — UI polish: consistente typografie + compact AI-verbruik */

:root {
    --ui-title-xl: 2rem;
    --ui-title-lg: 1.5rem;
    --ui-title-md: 1.125rem;
    --ui-body: 0.9375rem;
    --ui-small: 0.8125rem;
    --ui-label: 0.75rem;
    --ui-radius: 14px;
}

/* Gelijksoortige disclosure/sectieteksten exact dezelfde schaal */
.section-disclosure > summary,
.trusted-details > summary,
.technical-details > summary {
    font-size: var(--ui-body) !important;
    line-height: 1.4;
    font-weight: 750;
    color: #163B5C;
}

.trusted-status-row,
.smart-review-stat span,
.proposal-meta,
.proposal-meta span,
.technical-details .muted.small,
.trusted-proposals-panel .muted.small,
.smart-review-panel .muted.small {
    font-size: var(--ui-small);
    line-height: 1.5;
}

.proposal-label,
.proposal-status,
.reviewed-badge,
.ai-usage-kicker {
    font-size: var(--ui-label);
    line-height: 1.35;
}

.proposal-value {
    font-size: var(--ui-body);
    line-height: 1.45;
}

/* Zorg dat card-koppen op dezelfde visuele schaal zitten */
.smart-review-panel h2,
.trusted-proposals-panel h2,
.finalize-panel h2,
.review-progress-panel h2 {
    font-size: var(--ui-title-lg);
    line-height: 1.2;
}

/* Betrouwbare voorstellen / technische velden rustiger */
.trusted-details,
.technical-details {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #dfe5ea;
}

.technical-details .proposal-row {
    padding: 13px 14px;
}

.technical-details .proposal-label {
    font-size: var(--ui-body);
    font-weight: 700;
    color: #1E2328;
}

.technical-details .proposal-status {
    font-size: var(--ui-label);
}

/* --- AI usage card --- */
.ai-usage-compact {
    margin-top: 18px;
    border: 1px solid #d9e1e7;
    border-left: 4px solid #F28C28;
    border-radius: var(--ui-radius);
    background: #ffffff;
    padding: 16px 17px 14px;
}

.ai-usage-compact-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.ai-usage-kicker {
    display: block;
    color: #6B7177;
    font-weight: 750;
    letter-spacing: .02em;
    margin-bottom: 4px;
}

.ai-usage-total {
    display: inline-block;
    color: #163B5C;
    font-size: 1.65rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ai-usage-unit {
    margin-left: 5px;
    color: #6B7177;
    font-size: var(--ui-small);
    font-weight: 650;
}

.ai-cost-pill {
    flex: 0 0 auto;
    min-width: 150px;
    background: #fff6eb;
    border: 1px solid #f7d6b0;
    border-radius: 11px;
    padding: 9px 11px;
    text-align: right;
}

.ai-cost-pill span,
.ai-cost-pill small {
    display: block;
    color: #6B7177;
    font-size: 0.68rem;
    line-height: 1.35;
}

.ai-cost-pill strong {
    display: block;
    color: #163B5C;
    font-size: 0.96rem;
    line-height: 1.35;
    margin: 1px 0;
}

.ai-token-breakdown {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.ai-token-breakdown > span {
    background: #F3F4F6;
    border-radius: 9px;
    padding: 8px 9px;
    min-width: 0;
}

.ai-token-breakdown strong,
.ai-token-breakdown small {
    display: block;
}

.ai-token-breakdown strong {
    color: #163B5C;
    font-size: 0.82rem;
    line-height: 1.25;
}

.ai-token-breakdown small {
    color: #6B7177;
    font-size: 0.66rem;
    margin-top: 1px;
}

.ai-impact-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 9px;
}

.ai-impact-compact > div {
    border: 1px solid #e1e6ea;
    border-radius: 9px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}

.ai-impact-compact span {
    color: #6B7177;
    font-size: 0.68rem;
}

.ai-impact-compact strong {
    color: #163B5C;
    font-size: 0.78rem;
    white-space: nowrap;
}

.ai-impact-note {
    margin: 8px 0 0;
    color: #6B7177;
    font-size: 0.66rem;
    line-height: 1.45;
}

/* Oude mini-impact styling niet meer visueel laten domineren waar die elders nog voorkomt */
.mini-impact-row strong {
    font-size: var(--ui-small);
}

@media (max-width: 760px) {
    .ai-usage-compact-head {
        display: block;
    }
    .ai-cost-pill {
        margin-top: 12px;
        text-align: left;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .ai-token-breakdown,
    .ai-impact-compact {
        grid-template-columns: 1fr;
    }
}


/* --- Former mvp65.css --- */
/* MVP 6.5 — rustige AI-samenvatting + verfijnde reviewformulieren */

/* --- AI-verbruik: standaard alleen de kern, detail op verzoek --- */
.ai-usage-summary {
    margin-top: 20px;
    border: 1px solid #d8e0e6;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.ai-usage-summary-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 20px;
    border-left: 4px solid #F28C28;
}

.ai-usage-summary .ai-usage-kicker {
    display: block;
    margin: 0 0 5px;
    color: #6B7177;
    font-size: 0.75rem;
    line-height: 1.35;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.ai-usage-primary-value {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.ai-usage-primary-value strong {
    color: #163B5C;
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: -0.025em;
}

.ai-usage-primary-value span {
    color: #6B7177;
    font-size: 0.82rem;
    font-weight: 650;
}

.ai-usage-cost {
    min-width: 132px;
    text-align: right;
}

.ai-usage-cost span,
.ai-usage-cost strong {
    display: block;
}

.ai-usage-cost span {
    color: #6B7177;
    font-size: 0.72rem;
    margin-bottom: 3px;
}

.ai-usage-cost strong {
    color: #163B5C;
    font-size: 1rem;
    line-height: 1.25;
}

.ai-usage-details {
    border-top: 1px solid #e2e7eb;
}

.ai-usage-details > summary {
    cursor: pointer;
    list-style: none;
    padding: 11px 20px;
    color: #163B5C;
    font-size: 0.78rem;
    font-weight: 750;
    user-select: none;
}

.ai-usage-details > summary::-webkit-details-marker { display: none; }
.ai-usage-details > summary::before {
    content: '›';
    display: inline-block;
    margin-right: 7px;
    font-size: 1rem;
    transform: translateY(1px);
    transition: transform .16s ease;
}
.ai-usage-details[open] > summary::before { transform: rotate(90deg) translateX(1px); }
.ai-usage-details > summary:hover { background: #F8FAFB; }

.ai-usage-details-body {
    padding: 4px 20px 16px;
}

.ai-token-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid #e4e9ed;
    border-bottom: 1px solid #e4e9ed;
}

.ai-token-detail-grid > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
}
.ai-token-detail-grid > div:nth-child(odd) { padding-right: 18px; }
.ai-token-detail-grid > div:nth-child(even) { padding-left: 18px; border-left: 1px solid #e4e9ed; }
.ai-token-detail-grid > div:nth-child(n+3) { border-top: 1px solid #eef1f3; }

.ai-token-detail-grid span,
.ai-sustainability-line > span {
    color: #6B7177;
    font-size: 0.72rem;
}

.ai-token-detail-grid strong {
    color: #1E2328;
    font-size: 0.78rem;
}

.ai-sustainability-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0 2px;
}

.ai-sustainability-line > div {
    color: #6B7177;
    font-size: 0.72rem;
    text-align: right;
}
.ai-sustainability-line strong { color: #163B5C; font-size: 0.78rem; }
.ai-detail-separator { margin: 0 5px; color: #b0b7bd; }
.ai-usage-details .ai-impact-note { margin: 7px 0 0; }

/* --- Reviewkaart: duidelijke interne hiërarchie --- */
.review-form-refined {
    margin-top: 18px;
    border-top: 1px solid #dfe5ea;
    padding-top: 18px;
}

.review-form-refined fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.review-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 13px;
}

.review-section-heading > div > strong {
    display: block;
    color: #1E2328;
    font-size: 0.92rem;
    line-height: 1.35;
}

.review-section-kicker {
    display: block;
    color: #6B7177;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.review-saved-state {
    color: #2e6a57;
    background: #eef7f3;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.7rem;
    font-weight: 750;
    white-space: nowrap;
}

.review-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.review-choice-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-choice-card {
    position: relative;
    display: block;
    cursor: pointer;
    min-width: 0;
}

.review-choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-choice-card-content {
    display: block;
    min-height: 76px;
    padding: 13px 14px;
    border: 1px solid #d7dfe5;
    border-radius: 11px;
    background: #fff;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.review-choice-card-content strong,
.review-choice-card-content small {
    display: block;
}
.review-choice-card-content strong {
    color: #163B5C;
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 4px;
}
.review-choice-card-content small {
    color: #6B7177;
    font-size: 0.69rem;
    line-height: 1.45;
    font-weight: 500;
}

.review-choice-card:hover .review-choice-card-content {
    border-color: #9db2c2;
    background: #fbfcfd;
}

.review-choice-card input:checked + .review-choice-card-content {
    border-color: #163B5C;
    background: #f2f7fa;
    box-shadow: inset 0 0 0 1px #163B5C;
}

.review-choice-card input:focus-visible + .review-choice-card-content {
    outline: 3px solid rgba(242, 140, 40, .23);
    outline-offset: 2px;
}

.review-choice-card-muted input:checked + .review-choice-card-content {
    border-color: #6B7177;
    background: #F3F4F6;
    box-shadow: inset 0 0 0 1px #6B7177;
}

.review-edit-panel {
    margin-top: 14px;
    padding: 15px;
    border-radius: 11px;
    background: #F7F9FA;
    border: 1px solid #e0e6ea;
}

.review-edit-panel[hidden] { display: none !important; }

.review-field-refined {
    display: block;
    margin: 0;
}

.review-field-refined > span {
    display: block;
    margin-bottom: 7px;
    color: #1E2328;
    font-size: 0.76rem;
    font-weight: 750;
}

.review-field-refined textarea,
.review-field-refined input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfd8df;
    border-radius: 9px;
    background: #fff;
    color: #1E2328;
    font: inherit;
    font-size: 0.82rem;
    line-height: 1.45;
    padding: 10px 11px;
    resize: vertical;
}

.review-field-refined textarea:focus,
.review-field-refined input[type="text"]:focus {
    outline: none;
    border-color: #163B5C;
    box-shadow: 0 0 0 3px rgba(22, 59, 92, .10);
}

.review-note-details {
    margin-top: 12px;
    border-top: 1px solid #e4e9ed;
    padding-top: 10px;
}

.review-note-details > summary {
    cursor: pointer;
    list-style: none;
    color: #163B5C;
    font-size: 0.73rem;
    font-weight: 750;
    width: fit-content;
}
.review-note-details > summary::-webkit-details-marker { display: none; }
.review-note-details > summary::before { content: '+'; margin-right: 6px; color: #F28C28; }
.review-note-details[open] > summary::before { content: '−'; }
.review-note-details > summary span { color: #6B7177; font-weight: 500; }
.review-note-field { margin-top: 10px; }

.review-form-footer-refined {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 15px;
}

.review-last-saved {
    color: #6B7177;
    font-size: 0.68rem;
}

.review-save-button {
    min-width: 150px;
    padding: 9px 14px !important;
    border-radius: 9px !important;
    font-size: 0.78rem !important;
}

/* De oude, brede controls in reviewforms overrulen */
.review-form-refined .review-choice-row,
.review-form-refined > fieldset > legend { display: none !important; }

@media (max-width: 900px) {
    .review-choice-grid,
    .review-choice-grid-two { grid-template-columns: 1fr; }
    .review-choice-card-content { min-height: 0; }
}

@media (max-width: 640px) {
    .ai-usage-summary-main,
    .ai-sustainability-line,
    .review-section-heading,
    .review-form-footer-refined {
        display: block;
    }
    .ai-usage-cost { text-align: left; margin-top: 13px; }
    .ai-token-detail-grid { grid-template-columns: 1fr; }
    .ai-token-detail-grid > div,
    .ai-token-detail-grid > div:nth-child(odd),
    .ai-token-detail-grid > div:nth-child(even) {
        padding: 9px 0;
        border-left: 0;
    }
    .ai-token-detail-grid > div:nth-child(n+2) { border-top: 1px solid #eef1f3; }
    .ai-sustainability-line > div { text-align: left; margin-top: 5px; }
    .review-saved-state { display: inline-block; margin-top: 8px; }
    .review-save-button { margin-top: 12px; width: 100%; }
}


/* --- Former mvp66.css --- */
/* MVP 6.6 — finale verfijning reviewtitels + AI-sidebar */

/* ---------------------------------------------------------
   Reviewkaarten: veldnaam is de hoofdvraag van de kaart
   --------------------------------------------------------- */
.proposal-row .proposal-topline > div:first-child {
    min-width: 0;
}

.proposal-row .proposal-label {
    margin: 0 0 7px;
    color: #163B5C;
    font-size: 1.02rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.proposal-row .proposal-value {
    display: block;
    color: #1E2328;
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 650;
}

/* Niet-gevonden velden hebben geen betekenisvolle waarde; maak het streepje rustig. */
.proposal-row .proposal-value:only-child {
    color: #6B7177;
}

.proposal-row .proposal-badges {
    padding-top: 1px;
}

/* ---------------------------------------------------------
   AI-verbruik: ontworpen voor de smalle rechterkolom
   --------------------------------------------------------- */
.ai-usage-summary-main {
    display: block;
    padding: 18px 20px 16px;
}

.ai-usage-summary .ai-usage-kicker {
    margin-bottom: 5px;
}

.ai-usage-primary-value {
    gap: 7px;
    margin-bottom: 13px;
}

.ai-usage-primary-value strong {
    font-size: 1.82rem;
}

.ai-usage-cost {
    min-width: 0;
    text-align: left;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-top: 11px;
    border-top: 1px solid #e7ebee;
}

.ai-usage-cost span,
.ai-usage-cost strong {
    display: inline;
    margin: 0;
}

.ai-usage-cost span {
    font-size: 0.73rem;
}

.ai-usage-cost strong {
    font-size: 0.9rem;
    white-space: nowrap;
}

.ai-usage-details > summary {
    padding: 12px 20px;
}

.ai-usage-details-body {
    padding: 2px 20px 17px;
}

/* Oude 2-koloms detailgrid neutraliseren. */
.ai-token-detail-grid,
.ai-sustainability-line {
    display: none !important;
}

.ai-detail-list {
    border-top: 1px solid #e6ebee;
}

.ai-detail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 9px 0;
    border-bottom: 1px solid #eef1f3;
}

.ai-detail-row span {
    min-width: 0;
    color: #6B7177;
    font-size: 0.72rem;
    line-height: 1.35;
}

.ai-detail-row strong {
    flex: 0 0 auto;
    color: #163B5C;
    font-size: 0.78rem;
    line-height: 1.25;
    font-weight: 750;
    white-space: nowrap;
    text-align: right;
}

.ai-impact-section {
    margin-top: 16px;
}

.ai-detail-heading {
    display: block;
    margin: 0 0 7px;
    color: #163B5C;
    font-size: 0.72rem;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.ai-impact-list {
    border-top: 0;
    border: 1px solid #e2e8ec;
    border-radius: 9px;
    padding: 0 11px;
    background: #F8FAFB;
}

.ai-impact-list .ai-detail-row:last-child {
    border-bottom: 0;
}

.ai-impact-note {
    margin: 9px 0 0 !important;
    color: #6B7177;
    font-size: 0.67rem;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .ai-usage-cost,
    .ai-detail-row {
        display: flex;
    }
}



/* ==========================================================================
   MVP 7.1.1 visual guardrails
   Prevent oversized raster/SVG assets even if historical rules change later.
   ========================================================================== */
.blvc-logo-frame {
    flex: 0 0 118px !important;
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    height: 42px !important;
    overflow: hidden !important;
}

.blvc-logo-frame > img {
    display: block !important;
    width: 118px !important;
    min-width: 0 !important;
    max-width: 118px !important;
    height: 39px !important;
    max-height: 39px !important;
    object-fit: contain !important;
    object-position: left center !important;
}

.impact-icon {
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    overflow: hidden !important;
}

.impact-icon > svg {
    display: block !important;
    flex: 0 0 18px !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
}

@media (max-width: 760px) {
    .blvc-logo-frame {
        flex-basis: 98px !important;
        width: 98px !important;
        min-width: 98px !important;
        max-width: 98px !important;
    }
    .blvc-logo-frame > img {
        width: 98px !important;
        max-width: 98px !important;
    }
}
/* MVP 7.2 - modulaire rapportconfiguratie */
.preset-grid,.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.preset-card,.module-card{border:1px solid var(--border,#d9e0e7);border-radius:14px;padding:18px;background:#fff}.preset-card.selected{box-shadow:inset 0 0 0 2px #163b5c}.preset-card p,.module-card p{margin:.45rem 0 1rem;color:#647281;font-size:.92rem}.module-card.disabled{opacity:.58;background:#f7f8fa}.module-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.module-card label{display:flex;flex-direction:column;gap:6px;font-size:.84rem;font-weight:600}.module-card select{width:100%;padding:9px 10px;border:1px solid #cfd8e1;border-radius:8px;background:#fff}.switch-label{flex-direction:row!important;align-items:center;white-space:nowrap}.form-actions{margin-top:20px}.status.subtle{font-size:.75rem;background:#edf1f5;color:#536273}
.report-config-summary{display:flex;justify-content:space-between;align-items:center;gap:24px}.report-config-summary h2{margin:.15rem 0 .35rem}.report-config-summary p{margin:0}@media(max-width:720px){.report-config-summary{align-items:flex-start;flex-direction:column}}

/* MVP 7.3.1 — compacte rapportopzet + intakeadvies */
.report-page-head{margin-bottom:10px}.report-config-panel{padding:18px 20px}.compact-heading{margin-bottom:14px}.compact-heading h2{margin:.1rem 0 .25rem}.compact-heading p{margin:0}.report-advice-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:16px;align-items:center;margin:14px 0 16px;padding:17px 18px;border:1px solid #b9cedd;border-radius:14px;background:linear-gradient(135deg,#f4f9fc,#fff)}.report-advice-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#163b5c;color:#fff;font-size:1.05rem;font-weight:850}.report-advice-copy h2{margin:.1rem 0 .3rem;font-size:1.18rem}.report-advice-copy>p:last-of-type{margin:.25rem 0 0;color:#536273;font-size:.82rem}.report-advice-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.advice-score,.recommend-badge,.fixed-badge{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:4px 8px;font-size:.68rem;font-weight:800;line-height:1;background:#e7f0f5;color:#163b5c}.advice-score{text-transform:uppercase;letter-spacing:.035em}.advice-reasons{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.advice-reasons span{padding:5px 8px;border:1px solid #dce6ec;border-radius:999px;background:#fff;color:#51616e;font-size:.68rem;font-weight:650}.muted-advice{border-color:#e0e5e9;background:#f8f9fa}.muted-advice .report-advice-icon{background:#7d8a94}.compact-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.compact-presets .preset-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:6px 10px;align-items:end;padding:13px 14px;border-radius:11px;min-height:112px}.compact-presets .preset-card.selected{border-color:#163b5c;box-shadow:inset 0 0 0 1px #163b5c}.preset-card-copy{grid-column:1/-1}.preset-card-copy p{margin:.25rem 0 .4rem;font-size:.75rem;line-height:1.4}.preset-action{border:0;padding:0;background:transparent;color:#163b5c;font-weight:800;font-size:.74rem;cursor:pointer;text-align:left}.recommend-badge{justify-self:end}.small-badge{padding:3px 6px;font-size:.61rem}.core-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.core-config-row{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:14px;align-items:center;padding:11px 12px;border:1px solid #e2e7eb;border-radius:10px;background:#fff}.core-config-row strong{font-size:.82rem}.core-config-row p{margin:.2rem 0 0;color:#697681;font-size:.69rem;line-height:1.35}.compact-select-label{display:grid;gap:3px}.compact-select-label>span{color:#74808a;font-size:.61rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.compact-select-label select{width:100%;padding:7px 8px;border:1px solid #ccd6de;border-radius:8px;background:#fff;color:#263846;font-size:.75rem;font-weight:700}.core-config-row>.fixed-badge{justify-self:end}.refined-module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.refined-module-card{padding:13px 14px;border-radius:11px;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.refined-module-card.is-enabled{border-color:#a8c1d2;background:#fbfdff;box-shadow:0 1px 0 rgba(22,59,92,.04)}.refined-module-card.disabled{min-height:110px}.refined-module-card .module-card-head{align-items:center;gap:10px}.module-title-wrap{display:flex;align-items:center;gap:7px;min-width:0}.refined-module-card strong{font-size:.82rem}.refined-module-card>p{margin:.35rem 0 .45rem;font-size:.7rem;line-height:1.4}.module-advice-reason{color:#77838d!important;font-size:.64rem!important;line-height:1.35!important;border-top:1px solid #edf0f2;padding-top:7px}.module-level{grid-template-columns:44px minmax(0,110px);align-items:center;gap:7px;margin-top:7px}.module-level>span{font-size:.59rem}.module-status-text{margin-top:7px;background:#f0f3f5;color:#66737e}.toggle-switch{position:relative;display:inline-flex!important;flex-direction:row!important;align-items:center;cursor:pointer;flex:0 0 auto}.toggle-switch input{position:absolute;opacity:0;pointer-events:none}.toggle-track{display:block;width:38px;height:22px;padding:2px;border-radius:999px;background:#cbd4da;transition:background .16s ease,box-shadow .16s ease}.toggle-knob{display:block;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:transform .16s ease}.toggle-switch input:checked+.toggle-track{background:#163b5c}.toggle-switch input:checked+.toggle-track .toggle-knob{transform:translateX(16px)}.toggle-switch input:focus-visible+.toggle-track{box-shadow:0 0 0 3px rgba(22,59,92,.18)}.report-save-bar{position:sticky;bottom:10px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:11px 12px;border:1px solid #d8e0e6;border-radius:11px;background:rgba(255,255,255,.96);box-shadow:0 8px 28px rgba(30,50,65,.09);backdrop-filter:blur(8px)}.report-save-bar div{display:grid;gap:1px}.report-save-bar strong{font-size:.76rem}.report-save-bar span{color:#77838d;font-size:.67rem}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:800px){.compact-presets{grid-template-columns:1fr}.core-config-grid,.refined-module-grid{grid-template-columns:1fr}.report-advice-card{grid-template-columns:38px minmax(0,1fr)}.report-advice-action{grid-column:1/-1}.report-advice-action .button{width:100%}.report-save-bar{position:static;align-items:stretch;flex-direction:column}.report-save-bar .button{width:100%}}
@media(max-width:520px){.core-config-row{grid-template-columns:1fr}.core-config-row>.fixed-badge{justify-self:start}.module-level{grid-template-columns:44px minmax(0,1fr)}}

/* MVP 7.3.2 — preset actions + detailadvies */
.compact-presets .preset-card{display:flex;flex-direction:column;align-items:stretch;min-height:118px}
.compact-presets .preset-card-copy{flex:1}
.preset-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;min-height:30px}
button.preset-action{display:inline-flex!important;width:auto!important;min-width:0!important;flex:0 0 auto!important;justify-content:center!important;padding:7px 12px!important;border:1px solid #163b5c!important;border-radius:8px!important;background:#163b5c!important;color:#fff!important;font-size:.72rem!important;line-height:1!important;box-shadow:none!important}
button.preset-action:hover{background:#0f304c!important;border-color:#0f304c!important}
.preset-card-footer .recommend-badge{margin-right:auto;white-space:nowrap}
.module-level-advice{display:grid;grid-template-columns:auto auto;justify-content:start;align-items:center;gap:4px 7px;margin-top:7px;padding:7px 8px;border-radius:8px;background:#f2f7fa;color:#556571}
.module-level-advice span{font-size:.58rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.module-level-advice strong{font-size:.67rem!important;color:#163b5c}
.module-level-advice small{grid-column:1/-1;font-size:.61rem;line-height:1.35;color:#74818a}
@media(max-width:800px){.preset-card-footer{align-items:center}.module-level-advice{grid-template-columns:auto auto}}

/* MVP 7.4 — fasering & deelgebieden */
.structure-summary{display:flex;gap:12px;align-items:center;margin:0 0 18px;flex-wrap:wrap}.structure-summary>div{display:flex;gap:8px;align-items:baseline;background:#fff;border:1px solid #d9e3ea;border-radius:12px;padding:10px 14px}.structure-number{font-size:1.35rem;font-weight:800;color:#143f63}.structure-source{font-size:.86rem;font-weight:700;color:#526b7e}.structure-panel{margin-bottom:16px}.structure-list{display:grid;gap:10px}.structure-row{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(280px,1.6fr) 34px;gap:10px;align-items:end;padding:12px;border:1px solid #dbe4eb;border-radius:12px;background:#fbfcfd}.structure-row label,.phase-edit-table td{min-width:0}.structure-row label span,.phase-edit-table th{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#627b8e}.structure-row input,.phase-edit-table input,.phase-edit-table select,.phase-edit-table textarea{width:100%;box-sizing:border-box;border:1px solid #cbd9e3;border-radius:8px;padding:8px 9px;background:white;font:inherit}.icon-remove{border:0;background:#eef3f6;color:#4f6576;border-radius:8px;width:32px;height:32px;font-size:20px;line-height:1;cursor:pointer}.icon-remove:hover{background:#f7e8e5;color:#9f3f33}.phase-table-wrap{overflow-x:auto}.phase-edit-table{width:100%;border-collapse:separate;border-spacing:0 8px;min-width:980px}.phase-edit-table th{text-align:left;padding:0 8px}.phase-edit-table td{padding:9px 8px;background:#fbfcfd;border-top:1px solid #dbe4eb;border-bottom:1px solid #dbe4eb;vertical-align:top}.phase-edit-table td:first-child{border-left:1px solid #dbe4eb;border-radius:10px 0 0 10px}.phase-edit-table td:last-child{border-right:1px solid #dbe4eb;border-radius:0 10px 10px 0;width:38px}.phase-edit-table textarea{resize:vertical;min-height:58px}.date-pair{display:grid;gap:6px}.structure-reset{text-align:right;margin-top:-4px}.text-button{border:0;background:transparent;color:#587184;text-decoration:underline;cursor:pointer;font:inherit}.button.small{padding:8px 12px;font-size:.84rem}@media(max-width:800px){.structure-row{grid-template-columns:1fr 34px}.structure-row .wide{grid-column:1/2}.structure-summary{align-items:stretch}.structure-summary>div{flex:1;min-width:140px}}

/* MVP 7.5 — rustige projectstructuur en scenario's */
.structure-hero{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:0 0 18px;padding:15px 18px;border:1px solid #d9e3ea;border-radius:14px;background:linear-gradient(135deg,#fff,#f7fafc)}
.structure-stats{display:flex;gap:22px}.structure-stats>div{display:flex;align-items:baseline;gap:7px}.structure-stats strong{font-size:1.45rem;color:#163b5c}.structure-stats span{font-size:.82rem;color:#657987}.structure-origin{display:flex;align-items:center;gap:10px;max-width:430px}.structure-origin div{display:grid;gap:1px}.structure-origin strong{font-size:.82rem;color:#163b5c}.structure-origin small{font-size:.68rem;line-height:1.35;color:#71808b}.status-dot{width:10px;height:10px;border-radius:50%;background:#8ba0ad;box-shadow:0 0 0 5px #edf2f5}.status-dot.manual{background:#f28c28;box-shadow:0 0 0 5px #fff0df}
.modern-structure-panel{padding:20px}.area-card-list,.phase-card-list{display:grid;gap:11px}.area-card{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:12px;align-items:center;padding:12px 13px;border:1px solid #dbe4eb;border-radius:12px;background:#fbfcfd}.area-icon,.phase-sequence{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eaf1f6;color:#163b5c;font-size:.75rem;font-weight:800}.area-fields{display:grid;grid-template-columns:minmax(210px,.75fr) minmax(300px,1.25fr);gap:10px}.area-fields label,.phase-card label{display:grid;gap:5px}.area-fields span,.phase-card label>span,.period-group>span,.scenario-card label>span{font-size:.64rem;font-weight:800;text-transform:uppercase;letter-spacing:.045em;color:#607788}.area-fields input,.phase-card input,.phase-card select,.phase-card textarea,.scenario-card input,.scenario-card select,.scenario-card textarea{width:100%;box-sizing:border-box;border:1px solid #cbd9e3;border-radius:8px;padding:8px 10px;background:#fff;font:inherit}.phase-card{padding:14px;border:1px solid #dbe4eb;border-radius:14px;background:#fbfcfd}.phase-card-head{display:grid;grid-template-columns:34px minmax(160px,.7fr) minmax(220px,1fr) 34px;gap:10px;align-items:end}.phase-meta-row{margin:11px 0 0 44px}.period-group{display:grid;gap:5px}.period-group>div{display:flex;align-items:end;gap:8px}.period-group label{display:grid;gap:3px;max-width:180px}.period-group small{font-size:.62rem;color:#71808b}.period-arrow{padding-bottom:9px;color:#8b9aa4}.phase-content-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:11px 0 0 44px}.phase-card textarea{resize:vertical;min-height:76px}.structure-save-bar{margin-top:15px}.structure-reset{margin:8px 0 0;text-align:right}
.scenario-summary-card{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;padding:13px 16px;border:1px solid #d9e3ea;border-radius:12px;background:#fff}.scenario-summary-card>div{display:flex;align-items:baseline;gap:7px}.scenario-summary-card p{margin:0;font-size:.76rem;color:#657987}.scenario-panel{padding:20px}.scenario-list{display:grid;gap:12px}.scenario-card{padding:14px;border:1px solid #dbe4eb;border-radius:14px;background:#fbfcfd}.scenario-card-head{display:grid;grid-template-columns:34px minmax(220px,1fr) 150px 34px;gap:10px;align-items:end}.scenario-index{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#163b5c;color:#fff;font-size:.74rem;font-weight:800}.scenario-description{display:grid;gap:5px;margin:11px 0}.scenario-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.scenario-grid label:last-child{grid-column:2}.scenario-card textarea{resize:vertical;min-height:64px}
@media(max-width:900px){.structure-hero{align-items:flex-start;flex-direction:column}.area-fields,.phase-content-grid,.scenario-grid{grid-template-columns:1fr}.phase-card-head,.scenario-card-head{grid-template-columns:34px 1fr 34px}.phase-area,.scenario-status{grid-column:2}.phase-meta-row,.phase-content-grid{margin-left:0}.scenario-grid label:last-child{grid-column:auto}}

.module-inline-link{display:inline-flex;margin:2px 0 7px;color:#163b5c;font-size:.69rem;font-weight:800;text-decoration:none}.module-inline-link:hover{text-decoration:underline;color:#f28c28}

/* MVP 7.5.2 — polish fasering en scenario-UX */
.section-action-row{display:flex;align-items:center;gap:12px;margin:14px 0 14px}.section-action-row .button{flex:0 0 auto}.action-hint{font-size:.72rem;line-height:1.35;color:#71808b}.modern-structure-panel .section-heading.compact-heading{margin-bottom:0}.modern-structure-panel .section-action-row{margin-top:13px;margin-bottom:14px}
.scenario-panel-modern{padding:22px}.scenario-panel-modern .section-heading.compact-heading{margin-bottom:0}.scenario-action-row{padding-bottom:2px}.scenario-summary-card{background:linear-gradient(135deg,#fff,#f8fafc);box-shadow:0 10px 28px rgba(22,59,92,.04)}
.scenario-empty-state{display:flex;align-items:center;gap:14px;padding:22px;border:1px dashed #c8d7e2;border-radius:14px;background:#f8fafc;color:#526b7e}.scenario-empty-state .empty-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#eaf1f6;color:#163b5c;font-size:1.25rem;font-weight:800}.scenario-empty-state strong{display:block;color:#163b5c;font-size:.9rem;margin-bottom:3px}.scenario-empty-state p{margin:0;font-size:.76rem;line-height:1.45}
.scenario-card-modern{padding:0;border:1px solid #d7e2ea;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(22,59,92,.05);overflow:hidden}.scenario-card-modern .scenario-card-head{padding:14px 16px;background:#f7fafc;border-bottom:1px solid #e1e8ed}.scenario-card-modern .scenario-index{background:#163b5c;box-shadow:0 4px 10px rgba(22,59,92,.12)}.scenario-card-modern .scenario-status select{font-weight:700;color:#163b5c;background:#fff}.scenario-card-modern .icon-remove{background:#eaf1f6;color:#163b5c}.scenario-card-modern .icon-remove:hover{background:#f8e9e6;color:#9f3f33}
.scenario-block{padding:16px;border-bottom:1px solid #edf1f4}.scenario-block:last-child{border-bottom:0}.scenario-core{background:#fff}.scenario-group-title{display:flex;align-items:baseline;gap:8px;margin-bottom:10px}.scenario-group-title span{font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.055em;color:#163b5c}.scenario-group-title small{font-size:.68rem;color:#7a8994}.scenario-card-modern label{display:grid;gap:5px}.scenario-card-modern label>span{font-size:.64rem;font-weight:800;text-transform:uppercase;letter-spacing:.045em;color:#607788}.scenario-card-modern input,.scenario-card-modern select,.scenario-card-modern textarea{border:1px solid #cbd9e3;border-radius:9px;padding:9px 10px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}.scenario-card-modern input:focus,.scenario-card-modern select:focus,.scenario-card-modern textarea:focus{outline:none;border-color:#6d91ad;box-shadow:0 0 0 3px rgba(22,59,92,.08)}.scenario-card-modern textarea{resize:vertical;min-height:78px}.scenario-description{margin:0}.scenario-execution-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.scenario-assessment-block{background:#fbfcfd}.scenario-assessment-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.scenario-positive textarea{border-left:3px solid #9eb9a4}.scenario-negative textarea{border-left:3px solid #d8a29a}.scenario-save-bar{margin-top:16px}
@media(max-width:1000px){.scenario-execution-grid{grid-template-columns:1fr 1fr}.scenario-execution-grid label:last-child{grid-column:1/-1}}@media(max-width:720px){.section-action-row{align-items:flex-start;flex-direction:column}.scenario-execution-grid,.scenario-assessment-grid{grid-template-columns:1fr}.scenario-card-modern .scenario-card-head{grid-template-columns:34px 1fr 34px}.scenario-card-modern .scenario-status{grid-column:2}}

/* MVP 7.5.4 — dynamische projectstructuur in intake */
.intake-structure-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:14px}.intake-structure-summary h2{margin:2px 0 4px}.intake-structure-summary>div:first-child{max-width:62%}.structure-stats.compact{flex-shrink:0}.structure-stats.compact>div{min-width:115px}@media(max-width:850px){.intake-structure-summary{align-items:flex-start;flex-direction:column}.intake-structure-summary>div:first-child{max-width:none}}

/* MVP 7.6.1 — Portal Foundation: intern/klant viewer */
.portal-header-actions{display:flex;align-items:center;gap:12px}.view-switch{display:flex;align-items:center;gap:3px;padding:4px;border:1px solid #d8e2e9;border-radius:999px;background:#f6f9fb}.view-switch>span{padding:0 7px;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.045em;color:#6c7f8d}.view-option{padding:6px 10px;border-radius:999px;color:#526b7e;font-size:.73rem;font-weight:800;text-decoration:none}.view-option:hover{background:#e9f0f5;color:#163b5c}.view-option.active{background:#163b5c;color:#fff;box-shadow:0 3px 8px rgba(22,59,92,.15)}
.client-preview-banner{border-bottom:1px solid #d8e3ea;background:#eef4f8}.client-preview-banner .container{display:flex;align-items:center;gap:10px;padding-top:8px;padding-bottom:8px;font-size:.72rem;color:#506a7c}.client-preview-banner strong{color:#163b5c}.client-dashboard-grid{grid-template-columns:1fr}.client-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.client-readonly-note{padding:14px;border:1px solid #d9e3ea;border-radius:12px;background:#f7fafc}.client-readonly-note strong{display:block;color:#163b5c;margin-bottom:4px}.client-readonly-note p{margin:0;color:#657987;font-size:.78rem;line-height:1.45}@media(max-width:900px){.portal-header-actions{align-items:flex-end;flex-direction:column;gap:6px}.client-overview-grid{grid-template-columns:1fr}}@media(max-width:650px){.blvc-header-inner{align-items:flex-start}.view-switch>span{display:none}.portal-header-actions{align-items:flex-end}.view-option{padding:5px 8px}}

/* MVP 7.6.2 — projectworkflow en klantgerichte voortgang */
.workflow-project-list{gap:10px}.workflow-project-card{display:block;padding:15px 16px}.workflow-project-main{display:flex;align-items:center;justify-content:space-between;gap:16px}.workflow-project-status{display:flex;align-items:flex-end;flex-direction:column;gap:5px;flex:0 0 auto}.workflow-status-badge{white-space:nowrap}.workflow-attention{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:#fff3df;color:#8a5a12;font-size:.61rem;font-weight:800}.workflow-card-progress{height:5px;margin-top:11px;border-radius:999px;background:#e8eef2;overflow:hidden}.workflow-card-progress>span{display:block;height:100%;border-radius:inherit;background:#163b5c;transition:width .2s ease}.workflow-control-panel,.workflow-journey-panel{margin-bottom:16px}.workflow-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.workflow-heading-row h2{margin:.12rem 0 .3rem}.workflow-heading-row p{margin:0;max-width:760px}.workflow-progress-number{display:grid;place-items:center;min-width:62px;height:44px;padding:0 10px;border-radius:12px;background:#eef4f8;color:#163b5c;font-size:.9rem;font-weight:900}.workflow-large-progress{height:7px;margin:15px 0 18px}.workflow-control-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);gap:14px}.workflow-status-form,.workflow-suggestion{padding:14px;border:1px solid #dbe4ea;border-radius:12px;background:#fafcfd}.workflow-status-form>label,.workflow-suggestion-label{display:block;margin-bottom:7px;color:#637887;font-size:.67rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.workflow-select-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.workflow-select-row select{min-width:0;padding:9px 10px;border:1px solid #cbd7df;border-radius:9px;background:#fff;color:#263b4b;font-weight:700}.workflow-status-form small{display:block;margin-top:7px;color:#7b8a95;font-size:.66rem}.workflow-suggestion strong{display:block;color:#163b5c;font-size:.94rem}.workflow-suggestion p{margin:.35rem 0 0;color:#687b89;font-size:.72rem;line-height:1.45}.workflow-suggestion.needs-attention{border-color:#e4c98f;background:#fffaf0}.workflow-updated{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#f0f4f7;color:#687b89;font-size:.65rem;font-weight:750}.client-journey{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));margin-top:20px;border-top:1px solid #dbe4ea}.journey-step{position:relative;display:flex;align-items:flex-start;gap:7px;padding:14px 7px 0 0;color:#85929b;font-size:.68rem;line-height:1.3}.journey-marker{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px;margin-top:-25px;border:2px solid #d6e0e6;border-radius:50%;background:#fff;color:#8a98a1;font-size:.64rem;font-weight:900}.journey-step.completed{color:#456578;font-weight:700}.journey-step.completed .journey-marker{border-color:#8fb0c4;background:#eaf2f7;color:#163b5c}.journey-step.current{color:#163b5c;font-weight:850}.journey-step.current .journey-marker{border-color:#163b5c;background:#163b5c;color:#fff}.journey-step.current:before,.journey-step.completed:before{content:"";position:absolute;top:-1px;left:0;width:100%;height:2px;background:#86a8bd}.journey-step.current:before{background:#163b5c}
@media(max-width:950px){.client-journey{grid-template-columns:1fr;border-top:0;margin-top:14px}.journey-step{padding:7px 0}.journey-marker{margin-top:0}.journey-step:before{display:none}.workflow-control-grid{grid-template-columns:1fr}}@media(max-width:650px){.workflow-project-main,.workflow-heading-row{align-items:flex-start;flex-direction:column}.workflow-project-status{align-items:flex-start}.workflow-select-row{grid-template-columns:1fr}.workflow-select-row button{width:100%}.workflow-updated{align-self:flex-start}}

/* MVP 7.6.3 — portal dashboard, centrale issues en klantdocumentflow */
.portal-project-header{padding:8px 0 4px}.project-header-status{display:flex;align-items:flex-end;flex-direction:column;gap:6px}.header-progress{font-size:.66rem;font-weight:750;color:#7b8b96}.portal-tabs{margin-bottom:18px}.tab-badge{display:inline-grid;place-items:center;min-width:17px;height:17px;margin-left:5px;padding:0 5px;border-radius:999px;background:#f28c28;color:#fff;font-size:.58rem;font-weight:900}
.portal-overview-hero{position:relative;padding:24px 26px 22px;overflow:hidden}.portal-overview-hero:after{content:"";position:absolute;right:-80px;top:-120px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(22,59,92,.08),rgba(22,59,92,0) 70%);pointer-events:none}.portal-overview-copy{max-width:720px}.portal-overview-copy h2{margin:.15rem 0 .4rem;font-size:1.45rem}.portal-overview-copy p{margin:0;color:#5f7483;line-height:1.55}.portal-overview-progress{position:absolute;right:28px;top:24px;display:flex;align-items:flex-end;flex-direction:column}.portal-overview-progress span{font-size:1.55rem;font-weight:900;color:#163b5c}.portal-overview-progress small{color:#7d8c97;font-size:.62rem}.portal-hero-progress{margin:20px 0 24px}.portal-action-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:16px;margin:16px 0}.portal-primary-action,.portal-summary-card{padding:22px}.portal-primary-action{display:grid;grid-template-columns:48px 1fr;gap:16px}.portal-card-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#eaf2f7;color:#163b5c;font-size:1.2rem;font-weight:900}.portal-primary-action h2,.portal-summary-card h2{margin:.2rem 0 .45rem}.portal-primary-action p{margin:.2rem 0 .8rem;color:#607684;line-height:1.5}.portal-cta{display:inline-flex}.portal-state-pill{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#edf3f7;color:#47677a;font-size:.63rem;font-weight:850;text-transform:capitalize}.portal-state-pill.waiting{background:#fff2dd;color:#875916}.portal-stat-list{display:grid;gap:0;margin:8px 0 12px}.portal-stat-list>a,.portal-stat-list>div{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #edf1f4;text-decoration:none;color:#516b7b}.portal-stat-list strong{font-size:1.15rem;color:#163b5c}.portal-summary-card>small{color:#84919a;font-size:.63rem}
.portal-issues-panel{padding:22px}.portal-section-heading{margin-bottom:14px}.portal-issue-list{display:grid;gap:8px}.portal-issue-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 13px;border:1px solid #e0e7ec;border-radius:12px;background:#fbfcfd}.portal-issue-row strong{color:#203b4d}.portal-issue-row p{margin:3px 0 0;color:#667a88;font-size:.72rem;line-height:1.45}.issue-dot{width:8px;height:8px;border-radius:50%;background:#8fa3b1}.severity-info{background:#79a1bb}.severity-attention{background:#dfaa4f}.severity-warning{background:#cc765d}.severity-blocking{background:#b94444}.portal-empty-good{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #dce8df;border-radius:12px;background:#f7fbf8}.portal-empty-good>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e2f1e6;color:#3f7650;font-weight:900}.portal-empty-good strong{display:block;color:#315c3e}.portal-empty-good p{margin:2px 0 0;color:#6d7f73;font-size:.72rem}
.internal-overview-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.65fr);gap:16px;margin-bottom:16px}.internal-workflow-card{padding:20px}.compact-control-grid{grid-template-columns:minmax(0,1.15fr) minmax(220px,.85fr)}.attention-center{padding:18px;background:linear-gradient(160deg,#fff,#f8fafc)}.attention-center.has-attention{border-color:#e4cfaa;background:linear-gradient(160deg,#fffdf8,#fff8ec)}.attention-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.attention-heading h2{margin:.15rem 0 .6rem}.attention-count{display:grid;place-items:center;min-width:34px;height:34px;padding:0 8px;border-radius:11px;background:#eaf1f6;color:#163b5c;font-weight:900}.has-attention .attention-count{background:#f28c28;color:#fff}.attention-item{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #e9eef1;color:#28485d;text-decoration:none}.attention-item>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e8f0f5;color:#163b5c;font-weight:900}.attention-item.urgent>span{background:#fff0d9;color:#995e0d}.attention-item strong,.attention-item small{display:block}.attention-item small{margin-top:2px;color:#7c8b95;font-size:.62rem}.attention-empty{display:flex;align-items:center;gap:9px;padding-top:8px;color:#71838e}.attention-empty span{color:#4c825d;font-weight:900}.attention-empty p{margin:0;font-size:.7rem}
/* MVP 7.7.8j — icon glyph system */
.icon-documents-folder,.icon-intake-inbox,.icon-report-sliders,.icon-blvc-doc,.icon-products-box,.icon-feedback-chat,.icon-issues-list,.icon-overview-grid,.icon-activity-history,.icon-sheet-grid,.icon-current-stack,.icon-lineage-branch,.icon-waiting-client,.icon-in-progress,.icon-upload-tray,.icon-add-document,.icon-team-folder{font-size:0;line-height:0}
.icon-documents-folder::before,.icon-intake-inbox::before,.icon-report-sliders::before,.icon-blvc-doc::before,.icon-products-box::before,.icon-feedback-chat::before,.icon-issues-list::before,.icon-overview-grid::before,.icon-activity-history::before,.icon-sheet-grid::before,.icon-current-stack::before,.icon-lineage-branch::before,.icon-waiting-client::before,.icon-in-progress::before,.icon-upload-tray::before,.icon-add-document::before,.icon-team-folder::before{content:"";display:block;width:18px;height:18px;background-color:currentColor;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}
.icon-documents-folder::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6.5A2.5 2.5 0 0 1 5.5 4H9l2 2h7.5A2.5 2.5 0 0 1 21 8.5v8A2.5 2.5 0 0 1 18.5 19h-13A2.5 2.5 0 0 1 3 16.5z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 6.5A2.5 2.5 0 0 1 5.5 4H9l2 2h7.5A2.5 2.5 0 0 1 21 8.5v8A2.5 2.5 0 0 1 18.5 19h-13A2.5 2.5 0 0 1 3 16.5z'/%3E%3C/svg%3E")}
.icon-intake-inbox::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h16v8h-4l-2 3h-4l-2-3H4zm0 10h5l1.5 2h3L15 15h5v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 5h16v8h-4l-2 3h-4l-2-3H4zm0 10h5l1.5 2h3L15 15h5v2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3C/svg%3E")}
.icon-report-sliders::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 6h14v2H5zm3 5h11v2H8zm-3 5h14v2H5zM6 4h2v6H6zm8 5h2v6h-2zm-4 5h2v6h-2z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 6h14v2H5zm3 5h11v2H8zm-3 5h14v2H5zM6 4h2v6H6zm8 5h2v6h-2zm-4 5h2v6h-2z'/%3E%3C/svg%3E")}
.icon-blvc-doc::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h7l5 5v13H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m6 1v5h5M9 12h6v2H9zm0 4h6v2H9z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h7l5 5v13H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m6 1v5h5M9 12h6v2H9zm0 4h6v2H9z'/%3E%3C/svg%3E")}
.icon-products-box::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l8 4v12l-8 4-8-4V6zm0 2.2L6 7l6 3 6-3zM5 8.7v8l6 3v-8zm14 0l-6 3v8l6-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l8 4v12l-8 4-8-4V6zm0 2.2L6 7l6 3 6-3zM5 8.7v8l6 3v-8zm14 0l-6 3v8l6-3z'/%3E%3C/svg%3E")}
.icon-feedback-chat::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 5h12a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-6l-4 3v-3H6a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3m2 5h8v2H8zm0 4h5v2H8z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 5h12a3 3 0 0 1 3 3v7a3 3 0 0 1-3 3h-6l-4 3v-3H6a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3m2 5h8v2H8zm0 4h5v2H8z'/%3E%3C/svg%3E")}
.icon-issues-list::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 6h3v3H4zm5 0h11v2H9zm-5 5h3v3H4zm5 0h11v2H9zm-5 5h3v3H4zm5 0h11v2H9z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 6h3v3H4zm5 0h11v2H9zm-5 5h3v3H4zm5 0h11v2H9zm-5 5h3v3H4zm5 0h11v2H9z'/%3E%3C/svg%3E")}
.icon-overview-grid::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E")}
.icon-activity-history::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5a7 7 0 1 1-6.7 9h2.1A5 5 0 1 0 12 7v3L7 6l5-4z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5a7 7 0 1 1-6.7 9h2.1A5 5 0 1 0 12 7v3L7 6l5-4z'/%3E%3C/svg%3E")}
.icon-sheet-grid::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 3h10l4 4v14H5zm9 1v4h4M8 11h8v2H8zm0 4h3v2H8zm5 0h3v2h-3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M5 3h10l4 4v14H5zm9 1v4h4M8 11h8v2H8zm0 4h3v2H8zm5 0h3v2h-3z'/%3E%3C/svg%3E")}
.internal-module-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.module-overview-card{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:11px;padding:16px;color:inherit;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease}.module-overview-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(22,59,92,.09)}.module-overview-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#edf3f7;color:#163b5c;font-size:.75rem;font-weight:900}.module-overview-card h3{margin:2px 0 4px;font-size:.95rem}.module-overview-card p:last-child{margin:0;color:#6d7e89;font-size:.67rem;line-height:1.35}.module-arrow{color:#93a2ab;font-weight:800}
.issue-center{padding:22px}.issue-center-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.issue-center-head h2{margin:.15rem 0 .25rem}.issue-total{padding:6px 9px;border-radius:999px;background:#edf3f7;color:#163b5c;font-size:.65rem;font-weight:850}.upload-request-stack{display:grid;gap:9px;margin-bottom:14px}.upload-request-card{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:13px;padding:14px;border:1px solid #e4c98f;border-radius:13px;background:#fffaf0}.request-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#fff0d1;color:#8b590f;font-size:1rem;font-weight:900}.request-copy>span{display:block;color:#a0691c;font-size:.58rem;font-weight:900;letter-spacing:.06em}.request-copy strong{display:block;margin:2px 0;color:#3f4e57}.request-copy p{margin:3px 0;color:#6e766f;font-size:.69rem;line-height:1.4}.request-copy small{color:#8b938c;font-size:.6rem}.request-actions{display:flex;gap:6px}.request-actions button{white-space:nowrap}.internal-issue-list{display:grid;gap:7px}.internal-issue-row{display:grid;grid-template-columns:10px minmax(0,1fr) 160px;align-items:center;gap:12px;padding:11px 12px;border:1px solid #e1e7eb;border-radius:11px;background:#fff}.internal-issue-row.is-resolved{opacity:.58;background:#f8fafb}.issue-title-line{display:flex;align-items:center;gap:7px}.issue-title-line>span{padding:2px 6px;border-radius:999px;background:#eef3f6;color:#667b89;font-size:.55rem;font-weight:800;text-transform:uppercase}.issue-main p{margin:3px 0;color:#657985;font-size:.68rem}.issue-main small{color:#89959d;font-size:.58rem}.internal-issue-row select{width:100%;padding:7px;border:1px solid #d5e0e6;border-radius:8px;background:#fff;color:#445c6b;font-size:.68rem}.compact-empty{margin:8px 0}.issue-add-details{margin-top:13px;padding-top:12px;border-top:1px solid #e8edf0}.issue-add-details summary{cursor:pointer;color:#163b5c;font-size:.72rem;font-weight:850}.issue-add-form{display:grid;grid-template-columns:1.3fr .75fr .75fr auto;gap:10px;align-items:end;margin-top:12px}.issue-add-form label{display:grid;gap:5px}.issue-add-form label>span{font-size:.61rem;font-weight:800;color:#657b89;text-transform:uppercase}.issue-add-form input,.issue-add-form textarea,.issue-add-form select{width:100%;box-sizing:border-box;padding:8px 9px;border:1px solid #cfdae1;border-radius:8px;background:#fff}.issue-description-field{grid-column:1/-1}.portal-danger-zone{margin-top:16px}
.portal-documents-grid{grid-template-columns:minmax(0,1.5fr) minmax(300px,.65fr)}.document-library-panel,.portal-upload-panel{padding:20px}.modern-document-list{display:grid;gap:7px}.modern-document-list .document-row{border:1px solid #e2e8ec;border-radius:11px;padding:11px}.new-client-document{border-color:#e8bd7a!important;background:#fffaf2}.document-title-line{display:flex;align-items:center;gap:8px}.client-upload-badge{display:inline-flex;padding:3px 6px;border-radius:999px;background:#edf3f7;color:#496b7f;font-size:.55rem;font-weight:850}.new-client-document .client-upload-badge{background:#f28c28;color:#fff}.portal-upload-panel>.portal-card-icon{margin-bottom:12px}.permission-banner{margin:12px 0;padding:12px;border:1px solid #d9e2e8;border-radius:11px;background:#f8fafc}.permission-banner strong{display:block;color:#24475c}.permission-banner p{margin:4px 0 0;color:#667b88;font-size:.7rem;line-height:1.45}.permission-banner.waiting{border-color:#e5c98e;background:#fffaf0}.permission-banner.approved{border-color:#bfd7c6;background:#f5faf6}.client-file-drop{background:#f8fbfd}
.portal-dashboard-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.dashboard-notification-summary{display:flex;align-items:center;gap:10px;padding:10px 13px;border:1px solid #e4cb9e;border-radius:13px;background:#fffaf1}.dashboard-notification-summary>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#f28c28;color:#fff;font-weight:900}.dashboard-notification-summary strong,.dashboard-notification-summary small{display:block}.dashboard-notification-summary small{margin-top:2px;color:#7b807b;font-size:.6rem}.project-index-panel{padding:20px}.modern-project-list{display:grid;gap:9px}.modern-project-card{position:relative;overflow:hidden;padding:16px 17px 14px}.project-card-accent{position:absolute;left:0;top:0;bottom:0;width:3px;background:#dbe6ed}.modern-project-card:hover .project-card-accent{background:#163b5c}.portal-notification-badge{padding:3px 7px;border-radius:999px;background:#f28c28;color:#fff;font-size:.59rem;font-weight:900}.project-notification-line{display:flex;gap:12px;margin-top:8px;padding-top:8px;border-top:1px solid #edf1f4;color:#6f654f;font-size:.62rem;font-weight:750}.new-project-panel{padding:20px}
@media(max-width:1050px){.internal-module-grid{grid-template-columns:1fr 1fr}.portal-action-grid,.internal-overview-grid{grid-template-columns:1fr}.issue-add-form{grid-template-columns:1fr 1fr}.issue-add-form button{width:100%}.request-actions{flex-direction:column}}
@media(max-width:760px){.portal-overview-progress{position:static;align-items:flex-start;margin-top:12px}.portal-primary-action{grid-template-columns:1fr}.internal-module-grid{grid-template-columns:1fr}.upload-request-card{grid-template-columns:40px 1fr}.request-actions{grid-column:1/-1;flex-direction:row}.internal-issue-row{grid-template-columns:10px 1fr}.internal-issue-row form{grid-column:2}.issue-add-form{grid-template-columns:1fr}.issue-description-field{grid-column:auto}.portal-dashboard-hero{align-items:flex-start;flex-direction:column}.project-header-status{align-items:flex-start}.portal-project-header{align-items:flex-start;flex-direction:column}}

/* MVP 7.6.3a — uitlijning klantgerichte projectvoortgang */
@media (min-width: 951px) {
  .client-journey {
    position: relative;
    border-top: 1px solid #dbe4ea;
  }

  .journey-step {
    position: relative;
    display: block;
    padding: 15px 8px 0 0;
  }

  .journey-marker {
    position: absolute;
    z-index: 2;
    top: -10px;
    left: 0;
    margin: 0;
  }

  .journey-step > span:last-child {
    display: block;
    padding-top: 2px;
  }

  .journey-step.current::before,
  .journey-step.completed::before {
    top: -1px;
  }
}

/* MVP 7.6.3b — issue-acties en gerichte documentverzoeken */
.portal-issue-action-row{align-items:start}.portal-issue-content{min-width:0}.portal-issue-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.issue-action-badge{display:inline-flex;padding:3px 7px;border-radius:999px;background:#eaf2f7;color:#315d79;font-size:.57rem;font-weight:850;text-transform:uppercase;letter-spacing:.025em}.issue-inline-upload,.issue-inline-response{display:grid;gap:10px;margin-top:11px;padding:12px;border:1px solid #d8e3ea;border-radius:11px;background:#fff}.issue-inline-upload{grid-template-columns:minmax(0,1fr) auto auto;align-items:end}.issue-inline-upload p{margin:2px 0!important;color:#435f70!important}.issue-inline-upload small,.issue-inline-response small{color:#788993;font-size:.62rem;line-height:1.4}.compact-file-input{position:relative;display:inline-flex;align-items:center}.compact-file-input>span{display:inline-flex;align-items:center;min-height:36px;padding:0 11px;border:1px dashed #9fb7c7;border-radius:9px;background:#f7fafc;color:#315a74;font-size:.66rem;font-weight:800;cursor:pointer}.compact-file-input input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.issue-inline-response label{display:grid;gap:5px}.issue-inline-response label>span{font-size:.62rem;font-weight:800;color:#536d7d}.issue-inline-response textarea{width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid #cad8e1;border-radius:9px;resize:vertical}.issue-inline-response button{justify-self:start}.client-action-complete{display:flex;align-items:flex-start;gap:9px;margin-top:10px;padding:10px 11px;border:1px solid #d4e5d9;border-radius:10px;background:#f6faf7}.client-action-complete>span{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#dff0e4;color:#39704a;font-weight:900}.client-action-complete strong{font-size:.72rem;color:#315c3e}.client-action-complete p{margin:2px 0!important}.client-action-complete small{color:#718078;font-size:.61rem}.internal-client-action{display:flex;align-items:flex-start;gap:8px;margin:8px 0;padding:8px 9px;border-radius:9px;background:#f3f7fa;border:1px solid #e0e8ed}.internal-client-action>span{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:#e3edf3;color:#234e68;font-weight:900}.internal-client-action strong{display:block;color:#36596e;font-size:.66rem}.internal-client-action p{margin:2px 0!important;font-size:.63rem!important}.internal-client-action a{color:#164e72;font-weight:750}.issue-add-form label small{color:#82909a;font-size:.57rem;line-height:1.3}.issue-document-request{grid-column:1/3}.requested-issue-badge{display:inline-flex;padding:3px 6px;border-radius:999px;background:#e8f0f5;color:#496a7f;font-size:.55rem;font-weight:850;text-decoration:none}.requested-issue-badge:hover{background:#dce9f0;color:#244e69}
@media(max-width:900px){.issue-inline-upload{grid-template-columns:1fr}.issue-inline-upload button{justify-self:start}.issue-document-request{grid-column:auto}}

/* MVP 7.6.3c — issue composer */
.issue-composer{margin-top:16px;padding:0;border:1px solid #dde6eb;border-radius:14px;background:#f9fbfc;overflow:hidden}.issue-composer>summary{display:flex;align-items:center;gap:11px;padding:13px 15px;list-style:none;background:#fff;cursor:pointer}.issue-composer>summary::-webkit-details-marker{display:none}.issue-composer>summary::marker{content:""}.issue-composer-plus{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:9px;background:#eaf2f7;color:#174866;font-size:1rem;font-weight:900}.issue-composer>summary strong{display:block;color:#183e58;font-size:.74rem}.issue-composer>summary small{display:block;margin-top:2px;color:#7a8b95;font-size:.6rem;font-weight:500}.issue-composer[open]>summary{border-bottom:1px solid #e3eaee}.issue-composer-form{display:grid!important;grid-template-columns:1.15fr .85fr!important;gap:12px!important;align-items:stretch!important;margin:0!important;padding:14px!important}.issue-form-section{padding:14px;border:1px solid #e0e7eb;border-radius:12px;background:#fff}.issue-form-primary{grid-row:span 2}.issue-form-section-head{display:flex;align-items:flex-start;gap:9px;margin-bottom:12px}.issue-form-step{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:7px;background:#edf3f7;color:#174765;font-size:.61rem;font-weight:900}.issue-form-section-head strong{display:block;color:#243f50;font-size:.7rem}.issue-form-section-head small{display:block;margin-top:2px;color:#84929a;font-size:.58rem;font-weight:500;line-height:1.35}.issue-form-stack{display:grid;gap:11px}.issue-form-two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.issue-composer-form label{display:grid;gap:5px}.issue-composer-form label>span{font-size:.58rem;font-weight:850;letter-spacing:.035em;text-transform:uppercase;color:#667c89}.issue-composer-form input,.issue-composer-form textarea,.issue-composer-form select{width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid #ccd8df;border-radius:9px;background:#fbfcfd;color:#243f50;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.issue-composer-form input:focus,.issue-composer-form textarea:focus,.issue-composer-form select:focus{outline:none;border-color:#7199b2;background:#fff;box-shadow:0 0 0 3px rgba(70,126,160,.1)}.issue-composer-form textarea{min-height:105px;resize:vertical}.issue-composer-form label small{color:#88969e;font-size:.56rem;line-height:1.35}.issue-form-client-action{background:linear-gradient(180deg,#fff,#fbfdfe)}.issue-document-request[hidden]{display:none!important}.issue-form-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:3px 2px 0}.issue-form-footer>span{color:#7d8d96;font-size:.59rem}.issue-form-footer button{min-width:165px}.issue-add-form.issue-composer-form .issue-description-field,.issue-add-form.issue-composer-form .issue-document-request{grid-column:auto}
@media(max-width:950px){.issue-composer-form{grid-template-columns:1fr!important}.issue-form-primary{grid-row:auto}.issue-form-footer{grid-column:auto}}
@media(max-width:650px){.issue-form-two-col{grid-template-columns:1fr}.issue-form-footer{align-items:stretch;flex-direction:column}.issue-form-footer button{width:100%}}

/* MVP 7.6.4 — centrale artifact/productlaag */
.subtle-badge{background:#e9f0f5!important;color:#375d74!important}.artifacts-page-header{margin-bottom:14px}.artifact-register-intro{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;align-items:start;margin-bottom:14px;padding:17px 18px;background:linear-gradient(135deg,#f7fafc,#fff)}.artifact-register-intro h2{margin:.15rem 0 .3rem}.artifact-register-intro p:last-child{margin:0;color:#667b88;font-size:.74rem;line-height:1.5}.artifact-intro-icon,.artifact-empty-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#163b5c;color:#fff;font-size:0;font-weight:900}.artifact-grid{display:grid;gap:12px}.client-artifact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.artifact-card{padding:17px 18px}.artifact-card-top{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:13px;align-items:start}.artifact-file-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#eef4f7;color:#184765;font-size:0;font-weight:900}.artifact-card-copy h2{margin:.1rem 0 .35rem;font-size:1rem}.artifact-meta-row{display:flex;flex-wrap:wrap;gap:6px 11px;color:#758793;font-size:.62rem}.artifact-meta-row span+span:before{content:"·";margin-right:11px;color:#a4b0b8}.artifact-client-badge{display:inline-flex;padding:5px 8px;border-radius:999px;background:#e8f3eb;color:#356647;font-size:.58rem;font-weight:850}.artifact-actions-row{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-top:15px;padding-top:13px;border-top:1px solid #e8edf0}.artifact-download-button{flex:0 0 auto}.artifact-settings-form{display:grid;grid-template-columns:minmax(120px,1fr) minmax(130px,1fr) auto;gap:8px;align-items:end;max-width:510px;width:100%}.artifact-settings-form label{display:grid;gap:4px}.artifact-settings-form label>span{color:#6d818e;font-size:.56rem;font-weight:850;text-transform:uppercase;letter-spacing:.035em}.artifact-settings-form select{width:100%;padding:8px 9px;border:1px solid #ccd9e1;border-radius:8px;background:#fff;font-size:.69rem}.artifact-settings-form button{min-height:35px}.artifact-internal-meta{display:flex;flex-wrap:wrap;gap:6px 9px;margin-top:10px;color:#82919a;font-size:.57rem}.artifact-internal-meta span{padding:3px 6px;border-radius:999px;background:#f2f5f7}.artifact-empty-state{text-align:center;padding:34px 24px}.artifact-empty-state .artifact-empty-icon{margin:0 auto 12px}.artifact-empty-state h2{margin:.2rem 0 .4rem}.artifact-empty-state p{max-width:610px;margin:0 auto 14px;color:#6c7f8b;font-size:.75rem;line-height:1.5}.artifact-module-card .module-overview-icon{background:#e7f0f5;color:#163b5c}
@media(max-width:900px){.client-artifact-grid{grid-template-columns:1fr}.artifact-actions-row{align-items:stretch;flex-direction:column}.artifact-settings-form{max-width:none}}
@media(max-width:650px){.artifact-card-top{grid-template-columns:38px minmax(0,1fr)}.artifact-client-badge{grid-column:2;justify-self:start}.artifact-settings-form{grid-template-columns:1fr}.artifact-download-button{width:100%;justify-content:center}.artifact-register-intro{grid-template-columns:1fr}.artifact-intro-icon{width:36px;height:36px}}

/* MVP 7.6.4a — productfamilies en compacte versiehistorie */
.artifact-register-summary{margin-bottom:14px}.artifact-family-list{display:grid;gap:14px}.artifact-family-card{padding:18px}.artifact-family-heading{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:13px;align-items:start}.artifact-family-title{min-width:0}.artifact-title-line{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.artifact-title-line h2{margin:.12rem 0 .35rem;font-size:1.02rem}.artifact-family-icon{margin-top:1px}.artifact-latest-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#e6f1f7;color:#174e70;font-size:.57rem;font-weight:900;white-space:nowrap}.artifact-current-meta{align-items:center}.artifact-version-chip{padding:3px 7px;border-radius:999px;background:#163b5c;color:#fff;font-weight:850}.artifact-current-actions{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-top:16px;padding-top:14px;border-top:1px solid #e5ecef}.artifact-current-settings{max-width:520px}.artifact-current-technical-meta{display:flex;flex-wrap:wrap;gap:6px 9px;margin-top:10px;color:#83919a;font-size:.56rem}.artifact-current-technical-meta span{padding:3px 6px;border-radius:999px;background:#f2f5f7}.artifact-version-history{margin-top:14px;border-top:1px solid #e8edf0;padding-top:11px}.artifact-version-history>summary{display:flex;align-items:center;gap:8px;width:max-content;cursor:pointer;color:#244c67;font-size:.68rem;font-weight:850;list-style:none}.artifact-version-history>summary::-webkit-details-marker{display:none}.artifact-version-history>summary:before{content:"▸";font-size:.7rem;transition:transform .15s ease}.artifact-version-history[open]>summary:before{transform:rotate(90deg)}.artifact-history-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#edf2f5;color:#617884;font-size:.56rem}.artifact-history-list{display:grid;gap:7px;margin-top:10px}.artifact-history-row{display:grid;grid-template-columns:minmax(135px,.8fr) minmax(170px,1fr) auto auto;gap:12px;align-items:center;padding:10px 11px;border:1px solid #e4eaee;border-radius:10px;background:#fafcfd}.artifact-history-version{display:flex;align-items:baseline;gap:9px}.artifact-history-version strong{color:#173f5d;font-size:.72rem}.artifact-history-version span,.artifact-history-state{color:#748692;font-size:.6rem}.artifact-history-state{display:flex;gap:8px}.artifact-history-state span{padding:3px 6px;border-radius:999px;background:#eef3f5}.artifact-history-download{font-size:.64rem;white-space:nowrap}.artifact-history-manage{position:relative}.artifact-history-manage>summary{cursor:pointer;color:#536d7c;font-size:.61rem;font-weight:800;list-style:none}.artifact-history-manage>summary::-webkit-details-marker{display:none}.artifact-history-manage[open]>summary{color:#163b5c}.artifact-history-manage form{display:grid;grid-template-columns:1fr 1fr auto;gap:7px;align-items:end;margin-top:8px;padding:9px;border:1px solid #dce6ec;border-radius:9px;background:#fff;min-width:390px}.artifact-history-manage label{display:grid;gap:3px}.artifact-history-manage label span{font-size:.52rem;font-weight:850;text-transform:uppercase;color:#738691}.artifact-history-manage select{min-width:120px;padding:7px 8px;border:1px solid #ccd9e1;border-radius:7px;background:#fff;font-size:.64rem}.artifact-history-manage button{padding:8px 10px}.client-artifact-family-list{grid-template-columns:repeat(2,minmax(0,1fr))}.client-artifact-family-list .artifact-family-card{height:100%}
@media(max-width:900px){.client-artifact-family-list{grid-template-columns:1fr}.artifact-current-actions{align-items:stretch;flex-direction:column}.artifact-current-settings{max-width:none}.artifact-history-row{grid-template-columns:1fr auto}.artifact-history-state{grid-column:1}.artifact-history-manage{grid-column:2;grid-row:1/3}.artifact-history-manage form{min-width:0;grid-template-columns:1fr}}
@media(max-width:650px){.artifact-family-heading{grid-template-columns:38px minmax(0,1fr)}.artifact-family-heading>.artifact-client-badge{grid-column:2;justify-self:start}.artifact-title-line{display:block}.artifact-latest-badge{margin-top:5px}.artifact-current-actions .artifact-download-button{width:100%;justify-content:center}.artifact-history-row{grid-template-columns:1fr}.artifact-history-state,.artifact-history-manage{grid-column:1;grid-row:auto}.artifact-history-manage form{grid-template-columns:1fr}.artifact-history-download{justify-self:start}}

/* MVP 7.6.4b — portal UX polish */
.viewer-internal {
    background:
        radial-gradient(circle at 8% 14%, rgba(242,140,40,.055) 0 110px, transparent 111px),
        radial-gradient(circle at 91% 32%, rgba(22,59,92,.045) 0 170px, transparent 171px),
        #f3f6f8;
}
.viewer-client {
    background:
        radial-gradient(circle at 92% 18%, rgba(22,59,92,.045) 0 150px, transparent 151px),
        #f4f7f9;
}
.portal-project-header {
    position:relative;
    overflow:hidden;
    padding:22px 24px;
    border:1px solid #d8e4eb;
    border-radius:18px;
    background:linear-gradient(118deg,#f7fbfd 0%,#edf5f9 66%,#fff8ee 100%);
    box-shadow:0 12px 32px rgba(22,59,92,.055);
}
.portal-project-header:after {
    content:"";
    position:absolute;
    right:-34px;
    bottom:-56px;
    width:180px;
    height:180px;
    border:22px solid rgba(242,140,40,.09);
    border-radius:50%;
    pointer-events:none;
}
.portal-project-header>*, .portal-dashboard-hero>* {position:relative;z-index:1}
.portal-tabs {margin-top:-5px}
.viewer-internal .internal-workflow-card {
    position:relative;
    overflow:hidden;
    border-color:#cbdde8;
    background:linear-gradient(135deg,#ffffff 0%,#f6fbfe 72%,#edf6fa 100%);
}
.viewer-internal .internal-workflow-card:before {
    content:"";
    position:absolute;
    left:0;top:0;bottom:0;
    width:5px;
    background:linear-gradient(#163b5c,#2d6c91);
}
.viewer-internal .internal-workflow-card:after {
    content:"";
    position:absolute;
    right:-45px;top:-45px;
    width:150px;height:150px;
    border-radius:50%;
    background:repeating-radial-gradient(circle,rgba(22,59,92,.045) 0 3px,transparent 4px 12px);
    pointer-events:none;
}
.viewer-internal .attention-center {
    border-color:#e6d8bf;
    background:linear-gradient(145deg,#fffdf8,#fff6e8);
}
.viewer-internal .attention-center:not(.has-attention) .attention-count {
    background:#fff0dc;
    color:#9a5c12;
}
.viewer-internal .internal-module-grid .module-overview-card {
    position:relative;
    overflow:hidden;
    border-color:#dce5ea;
}
.viewer-internal .internal-module-grid .module-overview-card:before {
    content:"";
    position:absolute;
    left:0;right:0;top:0;
    height:4px;
    background:#87a9bd;
}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(2):before {background:#6aa084}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(3):before {background:#c2a24f}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(4):before {background:#d77f4a}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(5):before {background:#7d78a8}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(1) .module-overview-icon {background:#e8f2f8;color:#205978}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(2) .module-overview-icon {background:#e8f4ed;color:#397053}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(3) .module-overview-icon {background:#fbf4df;color:#806a2b}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(4) .module-overview-icon {background:#fff0e7;color:#955526}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(5) .module-overview-icon {background:#f0edf8;color:#5c5685}
.viewer-internal .issue-center {
    background:linear-gradient(180deg,#fff 0%,#fbfcfd 100%);
    border-top:4px solid #dbe8ef;
}
.upload-permission-active {
    display:grid;
    grid-template-columns:40px minmax(0,1fr) auto;
    align-items:center;
    gap:13px;
    margin-bottom:12px;
    padding:14px;
    border:1px solid #a9cdb5;
    border-radius:13px;
    background:linear-gradient(135deg,#f5fbf7,#eef8f2);
}
.upload-permission-active .request-icon {background:#dff1e5;color:#36704b}
.upload-permission-active .request-copy>span {color:#4e7d5f}
.portal-dashboard-hero {
    position:relative;
    overflow:hidden;
    margin-bottom:20px;
    padding:24px 26px;
    border:1px solid #d8e4eb;
    border-radius:18px;
    background:linear-gradient(115deg,#eef6fa 0%,#f8fbfd 60%,#fff4e5 100%);
    box-shadow:0 12px 32px rgba(22,59,92,.05);
}
.portal-dashboard-hero:after {
    content:"";
    position:absolute;
    right:18%;top:-70px;
    width:210px;height:210px;
    border-radius:50%;
    background:repeating-radial-gradient(circle,rgba(22,59,92,.04) 0 2px,transparent 3px 11px);
}
.viewer-internal .project-index-panel {border-top:4px solid #769db5}
.viewer-internal .new-project-panel {
    border-top:4px solid #f0a24f;
    background:linear-gradient(160deg,#fff,#fffaf3);
}
.modern-project-card {background:linear-gradient(90deg,#fff,#fbfdfe)}
.modern-project-card:nth-child(3n+1) .project-card-accent {background:#6e9db8}
.modern-project-card:nth-child(3n+2) .project-card-accent {background:#6f9d82}
.modern-project-card:nth-child(3n+3) .project-card-accent {background:#d99a50}
#finalize-intake {scroll-margin-top:28px}
@media(max-width:760px){
    .portal-project-header,.portal-dashboard-hero{padding:18px}
    .upload-permission-active{grid-template-columns:40px 1fr}
    .upload-permission-active form{grid-column:1/-1}
}

/* MVP 7.6.4c — richer portal visual identity */
:root {
    --portal-blue: #163b5c;
    --portal-blue-2: #245f82;
    --portal-blue-soft: #eaf4f9;
    --portal-sky: #dceef6;
    --portal-orange: #f28c28;
    --portal-orange-soft: #fff1df;
    --portal-green-soft: #edf7f1;
    --portal-lilac-soft: #f3f0f8;
    --portal-ink-soft: #eff4f7;
}

body.viewer-internal,
body.viewer-client {
    background-color:#eef3f6;
    background-image:
        radial-gradient(circle at 7% 9%, rgba(66,145,184,.15) 0 105px, transparent 106px),
        radial-gradient(circle at 90% 16%, rgba(242,140,40,.12) 0 150px, transparent 151px),
        radial-gradient(circle at 78% 72%, rgba(84,151,119,.075) 0 180px, transparent 181px),
        linear-gradient(rgba(22,59,92,.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22,59,92,.026) 1px, transparent 1px),
        linear-gradient(180deg,#f4f8fa 0%,#edf3f6 52%,#f6f8f8 100%);
    background-size:auto,auto,auto,36px 36px,36px 36px,auto;
    background-attachment:fixed;
}
body.viewer-client {
    background-image:
        radial-gradient(circle at 89% 10%, rgba(66,145,184,.13) 0 140px, transparent 141px),
        radial-gradient(circle at 6% 58%, rgba(242,140,40,.08) 0 125px, transparent 126px),
        linear-gradient(rgba(22,59,92,.023) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22,59,92,.023) 1px, transparent 1px),
        linear-gradient(180deg,#f5f9fb 0%,#eef5f7 60%,#f8f9f8 100%);
    background-size:auto,auto,40px 40px,40px 40px,auto;
}

.blvc-page-content {position:relative;isolation:isolate}
.blvc-page-content:before,
.blvc-page-content:after {
    content:"";
    position:fixed;
    z-index:-1;
    pointer-events:none;
    opacity:.75;
}
.blvc-page-content:before {
    left:-120px;
    top:34vh;
    width:260px;
    height:260px;
    border-radius:52% 48% 63% 37%;
    background:linear-gradient(145deg,rgba(35,102,139,.08),rgba(35,102,139,0));
    transform:rotate(18deg);
}
.blvc-page-content:after {
    right:-75px;
    bottom:3vh;
    width:220px;
    height:220px;
    border:28px solid rgba(242,140,40,.055);
    border-radius:50%;
}

.site-header.blvc-site-header {
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(12px);
    box-shadow:0 6px 24px rgba(22,59,92,.045);
}

/* Surfaces become tinted instead of uniformly white. */
.viewer-internal .panel,
.viewer-client .panel {
    border-color:rgba(184,203,214,.78);
    box-shadow:0 12px 30px rgba(22,59,92,.065);
}
.viewer-internal .panel {
    background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(249,252,253,.96));
}
.viewer-client .panel {
    background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(247,252,253,.96));
}

/* Main content panels get their own identity. */
.viewer-internal .documents-grid > .panel:first-child,
.viewer-internal .project-index-panel,
.viewer-internal .artifact-register-summary,
.viewer-internal .issue-center {
    background:
        linear-gradient(145deg,rgba(255,255,255,.98),rgba(240,248,252,.92));
}
.viewer-internal .documents-grid > .panel:last-child,
.viewer-internal .new-project-panel {
    background:
        radial-gradient(circle at 100% 0,rgba(242,140,40,.10),transparent 38%),
        linear-gradient(150deg,#fffdf9,#f7fbfd);
}

.document-row {
    background:linear-gradient(90deg,#fff 0%,#fbfdfe 68%,#f5fafc 100%);
    border-color:#d9e5eb;
    box-shadow:0 2px 0 rgba(22,59,92,.025);
    transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease;
}
.document-row:hover {
    transform:translateY(-1px);
    border-color:#bfd3df;
    box-shadow:0 8px 18px rgba(22,59,92,.06);
}
.document-row:nth-child(3n+2){background:linear-gradient(90deg,#fff,#fbfdfb)}
.document-row:nth-child(3n+3){background:linear-gradient(90deg,#fff,#fffaf4)}
.document-icon {
    background:linear-gradient(145deg,#edf6fa,#e4eff5)!important;
    border:1px solid #d7e6ee;
}

/* Give navigation more depth while retaining the strong active state. */
.portal-tabs,.tabs {gap:9px}
.tab {
    border:1px solid rgba(214,225,232,.7);
    background:rgba(235,242,246,.9);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
    transition:transform .14s ease,background .14s ease,box-shadow .14s ease;
}
.tab:not(.active):not(.disabled):hover {
    transform:translateY(-1px);
    background:#f5f9fb;
    box-shadow:0 5px 12px rgba(22,59,92,.055);
}
.tab.active {
    border-color:#163b5c;
    background:linear-gradient(145deg,#19486a,#123752);
    box-shadow:0 4px 0 rgba(242,140,40,.95),0 8px 16px rgba(22,59,92,.12);
}

/* Dashboard/module cards alternate soft brand tints. */
.viewer-internal .internal-module-grid .module-overview-card:nth-child(1){background:linear-gradient(150deg,#fff,#eef7fb)}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(2){background:linear-gradient(150deg,#fff,#eef8f2)}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(3){background:linear-gradient(150deg,#fff,#fff8e8)}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(4){background:linear-gradient(150deg,#fff,#fff1e8)}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(5){background:linear-gradient(150deg,#fff,#f4f1fa)}

/* Upload/action cards feel like designed workspaces rather than blank boxes. */
.documents-grid > aside.panel,
.documents-grid > .panel:last-child {
    position:relative;
    overflow:hidden;
}
.documents-grid > aside.panel:after,
.documents-grid > .panel:last-child:after {
    content:"";
    position:absolute;
    right:-45px;
    top:-45px;
    width:140px;
    height:140px;
    border-radius:50%;
    border:18px solid rgba(242,140,40,.07);
    pointer-events:none;
}
.dropzone,
.upload-dropzone {
    background:
        linear-gradient(rgba(22,59,92,.028) 1px,transparent 1px),
        linear-gradient(90deg,rgba(22,59,92,.028) 1px,transparent 1px),
        linear-gradient(145deg,#fbfdfe,#f1f7fa)!important;
    background-size:20px 20px,20px 20px,auto!important;
    border-color:#a8c5d5!important;
}

/* Project cards/index acquire colored edge details. */
.modern-project-card,
.project-card {
    position:relative;
    overflow:hidden;
    background:linear-gradient(105deg,#fff 0%,#f9fcfd 76%,#eef7fb 100%);
}
.modern-project-card:after,
.project-card:after {
    content:"";
    position:absolute;
    right:-26px;
    top:-26px;
    width:72px;
    height:72px;
    border:10px solid rgba(242,140,40,.06);
    border-radius:50%;
}

/* Client-facing cards use warmer / softer differentiation. */
.viewer-client .metric-card:nth-child(3n+1){background:linear-gradient(145deg,#fff,#eef7fb)}
.viewer-client .metric-card:nth-child(3n+2){background:linear-gradient(145deg,#fff,#eef8f2)}
.viewer-client .metric-card:nth-child(3n+3){background:linear-gradient(145deg,#fff,#fff7e9)}
.viewer-client .client-progress-card,
.viewer-client .portal-progress-card {
    background:
        radial-gradient(circle at 96% 12%,rgba(242,140,40,.08),transparent 28%),
        linear-gradient(145deg,#fff,#f1f8fb);
}

/* Form areas subtly separate from cards. */
input,textarea,select {
    background:rgba(255,255,255,.92);
}
.viewer-internal form label input,
.viewer-internal form label textarea,
.viewer-internal form label select {
    box-shadow:inset 0 1px 2px rgba(22,59,92,.025);
}

@media (max-width:760px) {
    body.viewer-internal,body.viewer-client {
        background-size:auto,auto,auto,28px 28px,28px 28px,auto;
    }
    .blvc-page-content:before,.blvc-page-content:after {display:none}
}

/* MVP 7.6.4d — premium software dashboard visual pass */
:root {
    --premium-navy:#0f2f4a;
    --premium-navy-2:#163f60;
    --premium-blue:#2676a6;
    --premium-cyan:#49a7c8;
    --premium-orange:#f28c28;
    --premium-teal:#3c8f80;
    --premium-violet:#7567a8;
    --premium-gold:#c79a43;
    --premium-shadow:0 18px 46px rgba(15,47,74,.12);
}

body.viewer-internal,
body.viewer-client {
    background-color:#eaf1f5;
    background-image:
        radial-gradient(ellipse at 10% 7%, rgba(54,137,179,.20) 0%, rgba(54,137,179,0) 28%),
        radial-gradient(ellipse at 92% 13%, rgba(242,140,40,.17) 0%, rgba(242,140,40,0) 25%),
        radial-gradient(ellipse at 75% 82%, rgba(70,143,128,.12) 0%, rgba(70,143,128,0) 25%),
        linear-gradient(120deg,rgba(255,255,255,.65),rgba(232,241,246,.35)),
        linear-gradient(rgba(15,47,74,.025) 1px,transparent 1px),
        linear-gradient(90deg,rgba(15,47,74,.025) 1px,transparent 1px);
    background-size:auto,auto,auto,auto,32px 32px,32px 32px;
    background-attachment:fixed;
}

/* Slightly more application-like chrome. */
.site-header.blvc-site-header {
    border-bottom:1px solid rgba(15,47,74,.08);
    background:rgba(249,252,253,.90);
    box-shadow:0 10px 34px rgba(15,47,74,.08);
}
.blvc-topline {
    background:linear-gradient(90deg,var(--premium-navy) 0 55%,var(--premium-blue) 55% 82%,var(--premium-orange) 82% 100%)!important;
}
.blvc-version-badge {
    background:linear-gradient(145deg,#eaf3f8,#dcebf3)!important;
    border:1px solid #c8dce8!important;
    color:var(--premium-navy)!important;
    box-shadow:0 5px 15px rgba(15,47,74,.06);
}
.view-switch {
    background:rgba(242,247,250,.94)!important;
    border-color:#cedde6!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 5px 15px rgba(15,47,74,.05);
}

/* Stronger application canvas hierarchy. */
.blvc-page-content {
    padding-top:34px!important;
}
.viewer-internal .panel,
.viewer-client .panel {
    border:1px solid rgba(161,188,204,.64);
    box-shadow:var(--premium-shadow);
}

/* Keep the successful project title bars but give them more polish. */
.portal-project-header,
.portal-dashboard-hero {
    border-color:rgba(157,190,208,.7)!important;
    background:
        radial-gradient(circle at 91% 18%,rgba(242,140,40,.15),transparent 27%),
        radial-gradient(circle at 12% 110%,rgba(73,167,200,.14),transparent 31%),
        linear-gradient(112deg,#f7fcff 0%,#eaf5fa 58%,#fff8ef 100%)!important;
    box-shadow:0 20px 48px rgba(15,47,74,.10)!important;
}
.portal-project-header:before,
.portal-dashboard-hero:before {
    content:"";
    position:absolute;
    inset:auto auto -36px 38%;
    width:220px;
    height:78px;
    border-radius:50%;
    background:radial-gradient(ellipse,rgba(38,118,166,.08),transparent 70%);
    pointer-events:none;
}

/* Tabs should look like an application navigation rail, not generic pills. */
.portal-tabs,.tabs {
    padding:5px;
    width:max-content;
    max-width:100%;
    border:1px solid rgba(181,202,214,.72);
    border-radius:14px;
    background:rgba(237,244,248,.78);
    backdrop-filter:blur(10px);
    box-shadow:0 10px 26px rgba(15,47,74,.065);
}
.tab {
    border:1px solid transparent;
    background:transparent;
    border-radius:10px;
    color:#36566b;
    box-shadow:none;
}
.tab:not(.active):not(.disabled):hover {
    background:rgba(255,255,255,.78);
    border-color:rgba(180,202,214,.65);
    box-shadow:0 5px 14px rgba(15,47,74,.06);
}
.tab.active {
    background:linear-gradient(145deg,#194c70,#0e304c)!important;
    border-color:#0f334f!important;
    box-shadow:0 4px 0 var(--premium-orange),0 9px 20px rgba(15,47,74,.19)!important;
}

/* Internal dashboard: workflow becomes the command centre. */
.viewer-internal .internal-workflow-card {
    position:relative;
    overflow:hidden;
    color:#f6fbfe;
    border-color:#183f5d;
    background:
        radial-gradient(circle at 90% 4%,rgba(73,167,200,.20),transparent 30%),
        radial-gradient(circle at 16% 115%,rgba(242,140,40,.13),transparent 33%),
        linear-gradient(135deg,#102f49 0%,#174967 65%,#1b5573 100%)!important;
    box-shadow:0 24px 58px rgba(10,37,58,.24)!important;
}
.viewer-internal .internal-workflow-card .eyebrow,
.viewer-internal .internal-workflow-card h2,
.viewer-internal .internal-workflow-card .workflow-heading-row p {
    color:#fff!important;
}
.viewer-internal .internal-workflow-card .workflow-heading-row p {opacity:.78}
.viewer-internal .internal-workflow-card .workflow-progress-number {
    color:#fff;
    border:1px solid rgba(255,255,255,.16);
    background:rgba(255,255,255,.11);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
}
.viewer-internal .internal-workflow-card .workflow-card-progress {
    background:rgba(255,255,255,.14);
}
.viewer-internal .internal-workflow-card .workflow-card-progress>span {
    background:linear-gradient(90deg,#67bedc,#f2a04c);
}
.viewer-internal .internal-workflow-card .workflow-status-form,
.viewer-internal .internal-workflow-card .workflow-suggestion {
    border-color:rgba(255,255,255,.14);
    background:rgba(255,255,255,.94);
    box-shadow:0 10px 24px rgba(4,28,44,.13);
}
.viewer-internal .internal-workflow-card .workflow-status-form>label,
.viewer-internal .internal-workflow-card .workflow-suggestion-label,
.viewer-internal .internal-workflow-card .workflow-status-form small,
.viewer-internal .internal-workflow-card .workflow-suggestion p {
    color:#677e8d;
}
.viewer-internal .internal-workflow-card .workflow-suggestion strong {color:var(--premium-navy)}
.viewer-internal .internal-workflow-card .workflow-suggestion.needs-attention {
    background:linear-gradient(145deg,#fffaf1,#fff4df);
    border-color:#e7b968;
}

/* Attention panel feels like a live application status widget. */
.viewer-internal .attention-center {
    position:relative;
    overflow:hidden;
    border-color:#d9c6a2;
    background:
        radial-gradient(circle at 100% 0,rgba(242,140,40,.22),transparent 38%),
        linear-gradient(150deg,#fffaf2,#f8f4ec)!important;
}
.viewer-internal .attention-center:after {
    content:"";
    position:absolute;
    right:-32px;
    bottom:-50px;
    width:130px;
    height:130px;
    border:18px solid rgba(242,140,40,.08);
    border-radius:50%;
}
.viewer-internal .attention-center .attention-count {
    background:linear-gradient(145deg,#173f5f,#0f2f4a);
    color:#fff;
    box-shadow:0 8px 18px rgba(15,47,74,.14);
}
.viewer-internal .attention-center.has-attention .attention-count {
    background:linear-gradient(145deg,#f4a245,#df7719);
}

/* Module tiles become colourful product modules. */
.viewer-internal .internal-module-grid {
    gap:16px;
}
.viewer-internal .internal-module-grid .module-overview-card {
    min-height:136px;
    align-content:center;
    border-width:1px;
    border-color:rgba(149,181,198,.58);
    box-shadow:0 16px 34px rgba(15,47,74,.09);
    transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.viewer-internal .internal-module-grid .module-overview-card:hover {
    transform:translateY(-4px);
    box-shadow:0 23px 42px rgba(15,47,74,.14);
    filter:saturate(1.06);
}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(1) {
    background:linear-gradient(145deg,#f8fdff,#dceff8)!important;
}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(2) {
    background:linear-gradient(145deg,#fbfffd,#dff2e8)!important;
}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(3) {
    background:linear-gradient(145deg,#fffef8,#f7edc8)!important;
}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(4) {
    background:linear-gradient(145deg,#fffaf7,#f9ddcb)!important;
}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(5) {
    background:linear-gradient(145deg,#fcfbff,#e6e0f3)!important;
}
.viewer-internal .internal-module-grid .module-overview-icon {
    width:46px;
    height:46px;
    border-radius:14px;
    color:#fff!important;
    box-shadow:0 10px 22px rgba(15,47,74,.15);
}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(1) .module-overview-icon {background:linear-gradient(145deg,#438db4,#236887)!important}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(2) .module-overview-icon {background:linear-gradient(145deg,#5ca184,#34735f)!important}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(3) .module-overview-icon {background:linear-gradient(145deg,#d1ab55,#9b782c)!important}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(4) .module-overview-icon {background:linear-gradient(145deg,#e28d58,#b8602d)!important}
.viewer-internal .internal-module-grid .module-overview-card:nth-child(5) .module-overview-icon {background:linear-gradient(145deg,#8a7ab7,#61558d)!important}
.module-overview-card .module-arrow {
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    border-radius:9px;
    background:rgba(255,255,255,.58);
    color:#31556c;
}

/* Document workspace: dossier and upload become distinct application zones. */
.viewer-internal .document-library-panel,
.viewer-client .document-library-panel {
    background:
        radial-gradient(circle at 4% 0,rgba(73,167,200,.10),transparent 30%),
        linear-gradient(145deg,#f7fcff,#eaf4f8)!important;
    border-color:#b9d2df!important;
}
.viewer-internal .portal-upload-panel,
.viewer-client .portal-upload-panel {
    color:#f5fbff;
    border-color:#163f60!important;
    background:
        radial-gradient(circle at 100% 0,rgba(73,167,200,.20),transparent 34%),
        radial-gradient(circle at 12% 112%,rgba(242,140,40,.16),transparent 35%),
        linear-gradient(150deg,#102f49,#174d6c)!important;
    box-shadow:0 24px 50px rgba(10,37,58,.20)!important;
}
.portal-upload-panel .eyebrow,
.portal-upload-panel h2 {color:#fff!important}
.portal-upload-panel .muted,
.portal-upload-panel .small,
.portal-upload-panel .tiny,
.portal-upload-panel .upload-note {color:rgba(235,247,252,.73)!important}
.portal-upload-panel .portal-card-icon {
    background:rgba(255,255,255,.12)!important;
    color:#fff!important;
    border:1px solid rgba(255,255,255,.14);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.portal-upload-panel .file-drop,
.portal-upload-panel .client-file-drop {
    border-color:rgba(159,213,235,.55)!important;
    background:
        linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px),
        rgba(255,255,255,.08)!important;
    background-size:18px 18px,18px 18px,auto!important;
    color:#fff;
}
.portal-upload-panel .file-drop-title {color:#fff}
.portal-upload-panel button {
    background:linear-gradient(135deg,#f3a14a,#e47d1d);
    color:#fff;
    box-shadow:0 10px 22px rgba(231,126,29,.24);
}
.portal-upload-panel button:hover {background:linear-gradient(135deg,#f6aa57,#dc7113)}
.portal-upload-panel .permission-banner {
    border-color:rgba(255,255,255,.16);
    background:rgba(255,255,255,.09);
}
.portal-upload-panel .permission-banner strong,
.portal-upload-panel .permission-banner p {color:#fff!important}
.portal-upload-panel .permission-banner.approved {background:rgba(73,162,117,.18)}
.portal-upload-panel .permission-banner.waiting {background:rgba(242,170,70,.18)}

/* Document rows become glass cards inside the dossier panel. */
.modern-document-list {gap:10px!important}
.modern-document-list .document-row {
    border-color:rgba(174,201,215,.70)!important;
    background:rgba(255,255,255,.78)!important;
    backdrop-filter:blur(8px);
    box-shadow:0 8px 20px rgba(15,47,74,.055)!important;
}
.modern-document-list .document-row:hover {
    background:#fff!important;
    border-color:#91b9cd!important;
    box-shadow:0 14px 28px rgba(15,47,74,.10)!important;
}
.modern-document-list .document-icon {
    color:#fff!important;
    background:linear-gradient(145deg,#3c7fa3,#205b7b)!important;
    border-color:transparent!important;
}
.modern-document-list .new-client-document {
    background:linear-gradient(90deg,#fffaf2,#fff3df)!important;
    border-color:#e5b46a!important;
}

/* Product register gets a premium catalogue treatment. */
.artifact-register-intro,
.artifact-register-summary {
    background:
        radial-gradient(circle at 98% 10%,rgba(73,167,200,.14),transparent 30%),
        linear-gradient(145deg,#f8fdff,#eaf5f9)!important;
}
.artifact-family-card {
    position:relative;
    overflow:hidden;
    background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(239,247,251,.94))!important;
}
.artifact-family-card:after {
    content:"";
    position:absolute;
    right:-65px;
    top:-65px;
    width:170px;
    height:170px;
    border:22px solid rgba(38,118,166,.055);
    border-radius:50%;
    pointer-events:none;
}
.artifact-family-icon,
.artifact-file-icon {
    color:#fff!important;
    background:linear-gradient(145deg,#397fa5,#1b5272)!important;
    box-shadow:0 9px 20px rgba(15,47,74,.16);
}
.artifact-latest-badge {
    background:linear-gradient(145deg,#e7f3f9,#d9edf6)!important;
    border:1px solid #c2dce8;
}

/* Open-points centre gets a recognisable collaboration colour. */
.viewer-internal .issue-center,
.viewer-client .portal-issues-panel {
    background:
        radial-gradient(circle at 98% 0,rgba(117,103,168,.10),transparent 30%),
        linear-gradient(145deg,#fbfbff,#f0eef8)!important;
    border-color:#d0c9e1!important;
}
.issue-composer {
    box-shadow:0 12px 28px rgba(77,65,124,.07);
}
.issue-composer-plus {
    color:#fff!important;
    background:linear-gradient(145deg,#8576b4,#65588f)!important;
    box-shadow:0 6px 14px rgba(101,88,143,.18);
}

/* Client overview: richer, more product-like cards. */
.viewer-client .portal-overview-hero {
    background:
        radial-gradient(circle at 91% 0,rgba(242,140,40,.16),transparent 30%),
        linear-gradient(120deg,#f9fdff,#e9f6fb 62%,#fff6e9)!important;
}
.viewer-client .portal-primary-action {
    background:linear-gradient(145deg,#f7fcff,#e5f3f9)!important;
    border-color:#bbd6e4!important;
}
.viewer-client .portal-summary-card {
    background:linear-gradient(145deg,#fffaf4,#f6ead9)!important;
    border-color:#e5c79d!important;
}
.viewer-client .portal-primary-action .portal-card-icon {
    color:#fff!important;
    background:linear-gradient(145deg,#3c86ad,#205f81)!important;
    box-shadow:0 9px 20px rgba(32,95,129,.18);
}

/* Inputs and controls get a slightly more refined software feel. */
input,textarea,select {
    border-color:#c3d2dc;
    box-shadow:inset 0 1px 2px rgba(15,47,74,.035);
}
input:focus,textarea:focus,select:focus {
    outline:none!important;
    border-color:#5c9bbb!important;
    box-shadow:0 0 0 4px rgba(56,131,171,.12),inset 0 1px 2px rgba(15,47,74,.03)!important;
}
button,.button-link {
    background:linear-gradient(145deg,#194f74,#103651);
    box-shadow:0 8px 18px rgba(15,47,74,.15);
    transition:transform .14s ease,box-shadow .14s ease,filter .14s ease;
}
button:hover,.button-link:hover {
    background:linear-gradient(145deg,#205f87,#123c5a);
    transform:translateY(-1px);
    box-shadow:0 11px 22px rgba(15,47,74,.20);
}
.button-danger {box-shadow:none}
.button-danger:hover {transform:none;box-shadow:none}

@media(max-width:760px) {
    .portal-tabs,.tabs {width:100%;border-radius:12px}
    .viewer-internal .internal-workflow-card {padding:18px}
    .viewer-internal .internal-module-grid .module-overview-card {min-height:auto}
}

/* =============================================================
   MVP 7.6.4e — Full premium workspace
   Intake / Phasing / Scenarios / Report config / BLVC generation
   ============================================================= */

/* Premium title bars for the remaining workspaces. */
.project-header:not(.portal-project-header) {
    position:relative;
    overflow:hidden;
    margin-bottom:20px;
    padding:26px 30px!important;
    border:1px solid rgba(124,171,194,.55)!important;
    border-radius:22px!important;
    background:
        radial-gradient(circle at 92% 0,rgba(242,140,40,.22),transparent 30%),
        linear-gradient(120deg,#eef8fc 0%,#e7f3f8 54%,#fff4e7 100%)!important;
    box-shadow:0 18px 40px rgba(15,47,74,.10)!important;
}
.project-header:not(.portal-project-header):after {
    content:"";
    position:absolute;
    right:-58px;
    bottom:-84px;
    width:230px;
    height:230px;
    border:26px solid rgba(242,140,40,.09);
    border-radius:50%;
    pointer-events:none;
}
.project-header:not(.portal-project-header) h1 {
    position:relative;
    z-index:1;
    margin:.15rem 0 .35rem;
    color:#122d45;
}
.project-header:not(.portal-project-header) .eyebrow,
.project-header:not(.portal-project-header) .muted,
.project-header:not(.portal-project-header) .status {position:relative;z-index:1}
.project-header:not(.portal-project-header) .status {
    border:1px solid rgba(37,104,142,.14);
    background:rgba(255,255,255,.62);
    backdrop-filter:blur(7px);
}

/* Make all remaining workspace panels feel like app surfaces rather than forms. */
.intake-grid > .panel,
.structure-panel,
.scenario-panel,
.report-config-panel,
.blvc-grid > .panel,
.ai-impact-panel,
.validation-details-panel,
.run-history-panel,
.report-config-summary {
    border-color:rgba(142,180,199,.58)!important;
    border-radius:18px!important;
    box-shadow:0 16px 38px rgba(15,47,74,.085)!important;
}

/* ---------------- Intake: data / review workspace ---------------- */
.intake-grid > .panel:first-child {
    background:
        radial-gradient(circle at 0 0,rgba(63,146,185,.13),transparent 35%),
        linear-gradient(145deg,#f7fcff,#eaf5f9)!important;
}
.intake-grid > .panel:nth-child(2) {
    background:
        radial-gradient(circle at 100% 0,rgba(112,94,166,.10),transparent 35%),
        linear-gradient(145deg,#fbfbff,#f1eff8)!important;
}
.intake-grid .panel-heading {
    padding-bottom:14px;
    border-bottom:1px solid rgba(151,184,201,.42);
}
.source-row,
.proposal-row {
    border-color:rgba(155,186,201,.62)!important;
    background:rgba(255,255,255,.78)!important;
    box-shadow:0 7px 18px rgba(15,47,74,.045);
}
.proposal-row:hover {box-shadow:0 11px 24px rgba(15,47,74,.08)}
.summary-grid .summary-card:nth-child(1){background:linear-gradient(145deg,#f1f9fd,#dceff7)!important}
.summary-grid .summary-card:nth-child(2){background:linear-gradient(145deg,#f5fbf7,#dff1e7)!important}
.summary-grid .summary-card:nth-child(3){background:linear-gradient(145deg,#fffaf1,#f5e9ce)!important}
.summary-grid .summary-card:nth-child(4){background:linear-gradient(145deg,#faf8ff,#e8e2f4)!important}
.intake-structure-summary {
    background:linear-gradient(145deg,#f8fdff,#e9f4f8)!important;
}
.ai-usage-summary {
    border:1px solid #183e5d!important;
    background:
        radial-gradient(circle at 100% 0,rgba(73,167,200,.20),transparent 35%),
        linear-gradient(150deg,#102e47,#184e6c)!important;
    color:#f4fbff!important;
    box-shadow:0 20px 42px rgba(10,37,58,.18);
}
.ai-usage-summary .muted,
.ai-usage-summary small,
.ai-usage-summary .ai-usage-kicker {color:rgba(232,247,253,.72)!important}
.ai-usage-summary strong,
.ai-usage-summary .ai-usage-primary-value {color:#fff!important}

/* ---------------- Phasing: spatial planning workspace ---------------- */
.structure-hero {
    border:1px solid #b9d5cf!important;
    border-radius:18px!important;
    background:
        radial-gradient(circle at 96% 0,rgba(77,156,127,.16),transparent 31%),
        linear-gradient(145deg,#f5fcf9,#e5f3ee)!important;
    box-shadow:0 14px 32px rgba(31,92,74,.07);
}
.structure-stats > div {
    border-color:#b9d7ce!important;
    background:rgba(255,255,255,.68)!important;
}
.structure-panel:nth-of-type(1) {
    background:linear-gradient(145deg,#f7fcff,#e8f4f8)!important;
}
.structure-panel:nth-of-type(2) {
    background:linear-gradient(145deg,#f7fcf9,#e5f2eb)!important;
}
.area-card,
.phase-card {
    border-color:rgba(147,185,178,.65)!important;
    background:rgba(255,255,255,.80)!important;
    box-shadow:0 9px 22px rgba(27,83,67,.055);
}
.area-icon,
.phase-sequence {
    color:#fff!important;
    background:linear-gradient(145deg,#4f9d82,#2e705c)!important;
    box-shadow:0 8px 18px rgba(46,112,92,.18);
}
.phase-card:nth-child(even) .phase-sequence {background:linear-gradient(145deg,#4389ad,#245e7e)!important}
.phase-content-grid {
    border-top:1px solid rgba(144,184,177,.42);
    padding-top:14px;
}

/* ---------------- Scenarios: comparison / decision workspace ---------------- */
.scenario-summary-card {
    border-color:#d2c9e4!important;
    background:
        radial-gradient(circle at 100% 0,rgba(122,103,173,.14),transparent 32%),
        linear-gradient(145deg,#fcfbff,#efecf7)!important;
    box-shadow:0 14px 32px rgba(80,65,130,.07)!important;
}
.scenario-panel-modern {
    background:
        radial-gradient(circle at 100% 0,rgba(242,159,67,.08),transparent 28%),
        linear-gradient(145deg,#fbfaff,#f0edf8)!important;
}
.scenario-card-modern {
    overflow:hidden;
    border-color:#cec5df!important;
    background:rgba(255,255,255,.84)!important;
    box-shadow:0 12px 28px rgba(75,61,119,.07);
}
.scenario-index {
    background:linear-gradient(145deg,#8777b8,#5e508e)!important;
    box-shadow:0 8px 18px rgba(94,80,142,.20);
}
.scenario-block {border-top:1px solid rgba(202,193,222,.55)!important}
.scenario-core {
    background:linear-gradient(90deg,rgba(118,100,171,.055),transparent)!important;
}
.scenario-assessment-block {
    background:linear-gradient(90deg,rgba(242,154,58,.055),transparent)!important;
}
.scenario-positive textarea {background:#f4fbf7!important;border-color:#b9d9c8!important}
.scenario-negative textarea {background:#fff8f1!important;border-color:#e4c7a4!important}

/* ---------------- Report setup: modular configuration workspace ---------------- */
.report-advice-card {
    border-color:#d7bb78!important;
    background:
        radial-gradient(circle at 100% 0,rgba(241,171,73,.20),transparent 34%),
        linear-gradient(145deg,#fffcf5,#f6ebd1)!important;
    box-shadow:0 15px 34px rgba(121,88,30,.08)!important;
}
.report-advice-icon {
    background:linear-gradient(145deg,#d6a34a,#a87424)!important;
    box-shadow:0 8px 18px rgba(168,116,36,.20);
}
.report-config-panel:nth-of-type(1) {
    background:linear-gradient(145deg,#fffdf7,#f5edd9)!important;
    border-color:#dac894!important;
}
.report-config-panel:nth-of-type(2) {
    background:linear-gradient(145deg,#f7fcff,#e7f3f8)!important;
}
.report-config-panel.modules-panel {
    background:
        radial-gradient(circle at 100% 0,rgba(85,146,178,.09),transparent 30%),
        linear-gradient(145deg,#f9fcfe,#edf5f8)!important;
}
.preset-card {
    border-color:#d8cba8!important;
    background:rgba(255,255,255,.76)!important;
    box-shadow:0 8px 20px rgba(90,72,31,.045);
}
.preset-card.selected {
    background:linear-gradient(145deg,#fff8e8,#f2e0b5)!important;
    border-color:#c89b43!important;
    box-shadow:0 11px 24px rgba(160,111,32,.10)!important;
}
.core-config-row {
    background:rgba(255,255,255,.78)!important;
    border-color:#bfd5e1!important;
}
.refined-module-card {
    border-color:#c7dce7!important;
    background:rgba(255,255,255,.78)!important;
}
.refined-module-card.is-enabled {
    background:linear-gradient(145deg,#f1f9fd,#dfedf5)!important;
    border-color:#83aec5!important;
    box-shadow:0 10px 24px rgba(36,96,128,.08)!important;
}
.refined-module-card:nth-child(4n+2).is-enabled {background:linear-gradient(145deg,#f5fbf7,#e1f0e8)!important;border-color:#9fc9b3!important}
.refined-module-card:nth-child(4n+3).is-enabled {background:linear-gradient(145deg,#fffbf3,#f3e7ca)!important;border-color:#d8bd7b!important}
.refined-module-card:nth-child(4n+4).is-enabled {background:linear-gradient(145deg,#faf8ff,#e9e4f4)!important;border-color:#b9add4!important}
.report-save-bar {
    border-color:rgba(94,132,154,.38)!important;
    background:rgba(245,250,252,.91)!important;
    box-shadow:0 14px 34px rgba(15,47,74,.14)!important;
}

/* ---------------- BLVC generation: production console ---------------- */
.report-config-summary {
    border-color:#b8d1de!important;
    background:
        radial-gradient(circle at 100% 0,rgba(74,158,193,.12),transparent 31%),
        linear-gradient(145deg,#f8fdff,#eaf5f9)!important;
}
.blvc-grid > .panel:first-child {
    position:relative;
    overflow:hidden;
    color:#f3f9fc;
    border-color:#163f60!important;
    background:
        radial-gradient(circle at 100% 0,rgba(73,167,200,.20),transparent 34%),
        radial-gradient(circle at 4% 110%,rgba(242,140,40,.15),transparent 34%),
        linear-gradient(150deg,#102f49,#174d6c)!important;
    box-shadow:0 24px 52px rgba(10,37,58,.20)!important;
}
.blvc-grid > .panel:first-child .eyebrow,
.blvc-grid > .panel:first-child h2,
.blvc-grid > .panel:first-child strong {color:#fff!important}
.blvc-grid > .panel:first-child .muted,
.blvc-grid > .panel:first-child .tiny,
.blvc-grid > .panel:first-child p {color:rgba(234,247,252,.75)!important}
.blvc-grid > .panel:first-child .ready-callout {
    border-color:rgba(134,211,174,.38)!important;
    background:rgba(91,170,130,.16)!important;
}
.blvc-grid > .panel:first-child .not-ready-callout {
    border-color:rgba(242,180,90,.42)!important;
    background:rgba(242,161,66,.14)!important;
}
.blvc-grid > .panel:first-child button {
    background:linear-gradient(135deg,#f3a14a,#df791c)!important;
    box-shadow:0 11px 24px rgba(226,124,28,.25)!important;
}
.blvc-grid > .panel:nth-child(2) {
    background:
        radial-gradient(circle at 100% 0,rgba(117,103,168,.08),transparent 31%),
        linear-gradient(145deg,#fbfbff,#f0eef7)!important;
    border-color:#d0c8e1!important;
}
.validation-summary {
    border-color:#d8cfaa!important;
    background:linear-gradient(145deg,#fffdf7,#f6ecd4)!important;
}
.ai-impact-panel {
    background:
        radial-gradient(circle at 100% 0,rgba(77,156,127,.10),transparent 30%),
        linear-gradient(145deg,#f8fcfa,#e8f3ed)!important;
    border-color:#bed8ca!important;
}
.impact-card {
    background:rgba(255,255,255,.78)!important;
    border-color:rgba(153,190,174,.62)!important;
    box-shadow:0 8px 19px rgba(33,96,74,.045);
}
.validation-details-panel {
    background:linear-gradient(145deg,#fffcf6,#f5ead6)!important;
    border-color:#dbc89e!important;
}
.validation-issue {
    background:rgba(255,255,255,.78)!important;
    box-shadow:0 6px 16px rgba(99,73,28,.04);
}
.run-history-panel {
    background:linear-gradient(145deg,#f7fbfd,#e9f3f7)!important;
}

/* Sticky action bars as premium application toolbars. */
.structure-save-bar,
.scenario-save-bar {
    border-color:rgba(93,132,154,.35)!important;
    background:rgba(246,250,252,.92)!important;
    backdrop-filter:blur(14px)!important;
    box-shadow:0 16px 34px rgba(15,47,74,.15)!important;
}

@media(max-width:760px){
    .project-header:not(.portal-project-header){padding:20px!important;border-radius:17px!important}
    .scenario-card-modern{padding:12px}
}


/* =============================================================
   MVP 7.6.4g — BLVC production console layout fix
   ============================================================= */
.blvc-grid {
    display:grid;
    grid-template-columns:minmax(0,1.55fr) minmax(320px,.75fr);
    align-items:start !important;
    gap:20px !important;
    margin-top:22px !important;
    margin-bottom:22px !important;
}
.blvc-grid > .panel {
    align-self:start !important;
    height:auto !important;
    min-height:0 !important;
}
.blvc-grid > .panel:first-child,
.blvc-grid > .panel:nth-child(2) {
    padding:24px !important;
}
.blvc-generation-context {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin:18px 0 4px;
}
.generation-context-item {
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
    padding:11px 12px;
    border:1px solid rgba(160,213,232,.20);
    border-radius:13px;
    background:rgba(255,255,255,.08);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.generation-context-item > span {
    display:grid;
    place-items:center;
    flex:0 0 30px;
    width:30px;
    height:30px;
    border-radius:9px;
    color:#fff;
    background:linear-gradient(145deg,rgba(79,174,207,.58),rgba(242,140,40,.50));
    font-size:10px;
    font-weight:850;
    letter-spacing:.04em;
}
.generation-context-item div {min-width:0}
.generation-context-item small {
    display:block;
    margin-bottom:2px;
    color:rgba(230,246,252,.60) !important;
    font-size:9px !important;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.generation-context-item strong {
    display:block;
    overflow:hidden;
    color:#fff !important;
    font-size:12px !important;
    line-height:1.25;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.blvc-generate-form {
    margin-top:16px !important;
}
.blvc-grid + .ai-impact-panel {
    margin-top:0 !important;
}

@media(max-width:980px){
    .blvc-grid{grid-template-columns:1fr}
    .blvc-generation-context{grid-template-columns:1fr}
}
@media(max-width:760px){
    .blvc-grid{margin-top:16px!important}
    .blvc-grid > .panel:first-child,
    .blvc-grid > .panel:nth-child(2){padding:18px!important}
}


/* =============================================================
   MVP 7.6.4h — navigation + structure-summary visual polish
   ============================================================= */
.portal-tabs,
.tabs {
    border-color:rgba(119,169,197,.62) !important;
    background:
        linear-gradient(180deg,rgba(247,252,255,.96),rgba(225,240,247,.92)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 10px 26px rgba(15,47,74,.085) !important;
}
.tab {
    color:#294e67 !important;
    background:rgba(255,255,255,.20) !important;
}
.tab:not(.active):not(.disabled):hover {
    color:#163f60 !important;
    background:rgba(255,255,255,.80) !important;
    border-color:rgba(125,171,196,.48) !important;
}
.tab.active {
    color:#fff !important;
    background:linear-gradient(145deg,#1d5579,#103653) !important;
}

/* Summary chips should blend into the tinted structure bar rather than
   looking like white form fields. */
.structure-summary > div {
    border:1px solid rgba(83,151,145,.24) !important;
    background:linear-gradient(145deg,rgba(237,250,247,.88),rgba(221,242,239,.72)) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.58) !important;
}
.structure-summary > div:nth-child(2) {
    border-color:rgba(66,137,174,.22) !important;
    background:linear-gradient(145deg,rgba(239,248,252,.90),rgba(219,238,247,.74)) !important;
}
.structure-number {
    color:#124867 !important;
}
.structure-source {
    color:#55717d !important;
}

/* =============================================================
   MVP 7.6.4i — structure counter background fix
   ============================================================= */
.structure-hero .structure-stats > div {
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    padding:0 !important;
    border-radius:0 !important;
}
.structure-hero .structure-stats > div + div {
    padding-left:18px !important;
    border-left:1px solid rgba(55,129,112,.20) !important;
}
.structure-hero .structure-stats strong {
    color:#124867 !important;
}
.structure-hero .structure-stats span {
    color:#55717d !important;
}

/* MVP 7.7.1 — Review workspace */
.review-page-header {
    background:
        radial-gradient(circle at 88% 22%, rgba(127, 94, 246, .18), transparent 30%),
        radial-gradient(circle at 72% 110%, rgba(255, 143, 31, .18), transparent 36%),
        linear-gradient(120deg, #eff8ff 0%, #f5f2ff 56%, #fff4e8 100%);
}
.review-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, .72fr);
    gap: 22px;
    align-items: start;
    margin-top: 20px;
}
.review-document-panel,
.review-feedback-panel {
    border: 1px solid rgba(26, 69, 103, .14);
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(24, 53, 77, .10);
}
.review-document-panel {
    padding: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(237,247,255,.88));
}
.review-feedback-panel {
    position: sticky;
    top: 18px;
    padding: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(119, 90, 236, .13), transparent 30%),
        linear-gradient(165deg, #ffffff 0%, #f8f6ff 100%);
}
.review-document-toolbar,
.review-feedback-heading,
.review-comment-meta,
.review-comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.review-document-toolbar { margin-bottom: 18px; }
.review-document-toolbar h2,
.review-feedback-heading h2 { margin: 2px 0 0; }
.review-preview-shell {
    overflow: hidden;
    border: 1px solid rgba(24, 69, 103, .16);
    border-radius: 18px;
    background: #eef3f8;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.review-preview-topbar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    color: #657689;
    font-size: 12px;
    border-bottom: 1px solid rgba(24, 69, 103, .10);
    background: rgba(255,255,255,.78);
}
.review-preview-dot { width: 9px; height: 9px; border-radius: 50%; background: #b7c5d0; }
.review-preview-dot:nth-child(1) { background: #ff9d5c; }
.review-preview-dot:nth-child(2) { background: #f6ca63; }
.review-preview-dot:nth-child(3) { background: #79c5a6; }
.review-preview-title { margin-left: 6px; }
.review-report-outline { padding: 22px; }
.review-report-cover {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 34px;
    border-radius: 16px;
    color: white;
    background:
        radial-gradient(circle at 88% 15%, rgba(255,145,31,.92) 0 8%, transparent 8.5%),
        radial-gradient(circle at 100% 24%, rgba(255,255,255,.10) 0 23%, transparent 23.5%),
        linear-gradient(135deg, #0b3656, #185a77 62%, #126d75);
}
.review-report-cover:after {
    content: "";
    position: absolute;
    right: -44px; bottom: -56px;
    width: 210px; height: 210px;
    border: 28px solid rgba(255,255,255,.10);
    border-radius: 50%;
}
.review-cover-mark {
    display: inline-flex;
    padding: 6px 10px;
    margin-bottom: 38px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-weight: 800;
    letter-spacing: .1em;
}
.review-report-cover h3 { max-width: 80%; margin: 0 0 8px; font-size: clamp(24px, 3vw, 38px); color: #fff; }
.review-report-cover p { margin: 0 0 22px; color: rgba(255,255,255,.78); }
.review-report-cover > span:last-child { color: rgba(255,255,255,.66); font-size: 13px; }
.review-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px;
    margin-top: 14px;
}
.review-section-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid rgba(23, 72, 104, .10);
    border-radius: 13px;
    text-decoration: none;
    color: #173b56;
    background: rgba(255,255,255,.88);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.review-section-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 139, 31, .45);
    box-shadow: 0 10px 22px rgba(24, 53, 77, .08);
}
.review-section-number {
    display: grid; place-items: center;
    width: 31px; height: 31px;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg,#164e70,#1d7890);
    font-size: 11px; font-weight: 800;
}
.review-preview-note { margin: 13px 2px 0; color: #6d7c89; font-size: 12px; }
.review-count-badge {
    min-width: 50px;
    padding: 8px 11px;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    color: #593eaa;
    background: #eee9ff;
}
.review-comment-form {
    display: grid;
    gap: 13px;
    margin: 18px 0 20px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, #f1f7fb, #f2edff);
    border: 1px solid rgba(100, 76, 190, .13);
}
.review-comment-form label { display: grid; gap: 6px; }
.review-comment-form label > span { color: #40576b; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.review-comment-form textarea,
.review-comment-form select,
.review-quote-details textarea { width: 100%; }
.review-quote-details { padding-top: 2px; color: #5d6e7b; font-size: 12px; }
.review-quote-details summary { cursor: pointer; font-weight: 700; }
.review-quote-details textarea { margin-top: 9px; }
.review-submit-button { width: 100%; }
.review-comment-list { display: grid; gap: 12px; }
.review-comment-card {
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(30, 67, 95, .11);
    background: rgba(255,255,255,.88);
    box-shadow: 0 8px 18px rgba(30, 56, 78, .05);
}
.review-comment-card blockquote {
    margin: 12px 0;
    padding: 10px 12px;
    border-left: 3px solid #ff941e;
    border-radius: 0 8px 8px 0;
    color: #62717e;
    background: #fff7e9;
    font-size: 12px;
}
.review-comment-card p { margin: 12px 0; }
.review-comment-meta { align-items: flex-start; font-size: 11px; color: #71808c; }
.review-comment-meta > div { display: flex; align-items: center; gap: 8px; }
.review-author-badge { padding: 4px 7px; border-radius: 999px; font-weight: 800; }
.review-author-badge.client { color: #5f3f9c; background: #eee8ff; }
.review-author-badge.internal { color: #0b5974; background: #e4f4f9; }
.review-comment-status { padding: 5px 8px; border-radius: 999px; background: #edf2f6; color: #536575; font-size: 11px; font-weight: 700; }
.review-comment-footer select { min-width: 135px; padding: 7px 9px; font-size: 11px; }
.review-comment-resolved { opacity: .74; }
.review-comment-rejected { opacity: .68; }
.review-empty-comments {
    display: grid;
    place-items: center;
    padding: 26px 18px;
    text-align: center;
    border-radius: 15px;
    border: 1px dashed rgba(46, 101, 126, .22);
    color: #657685;
    background: rgba(238,248,248,.7);
}
.review-empty-comments > span { display:grid; place-items:center; width:34px; height:34px; margin-bottom:8px; border-radius:50%; color:#197452; background:#dff4e9; font-weight:900; }
.review-empty-comments p { margin: 4px 0 0; font-size: 12px; }
.review-close-form { display: grid; gap: 7px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(27, 67, 96, .10); }
.review-close-form small { color: #758390; }
.review-closed-state { margin: 18px 0; padding: 14px; border-radius: 13px; color: #596778; background: #edf1f5; }
.artifact-review-start-form { display: inline-flex; margin: 0; }
.artifact-review-button { white-space: nowrap; }
@media (max-width: 960px) {
    .review-workspace { grid-template-columns: 1fr; }
    .review-feedback-panel { position: static; }
}
@media (max-width: 680px) {
    .review-section-grid { grid-template-columns: 1fr; }
    .review-document-toolbar, .review-comment-meta, .review-comment-footer { align-items: flex-start; flex-direction: column; }
}

/* MVP 7.7.1a — premium review inbox */
.review-report-cover h3,
.review-report-cover h3 * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 16px rgba(0, 24, 42, .18);
}
.review-feedback-panel {
    padding: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(112, 84, 235, .16), transparent 29%),
        radial-gradient(circle at 0% 34%, rgba(26, 125, 161, .09), transparent 34%),
        linear-gradient(165deg, #fbfdff 0%, #f5f1ff 54%, #f9fbff 100%);
}
.review-feedback-subtitle {
    max-width: 290px;
    margin: 6px 0 0;
    color: #6c7c8c;
    font-size: 12px;
    line-height: 1.45;
}
.review-inbox-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0;
}
.review-inbox-stat {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 2px;
    min-height: 66px;
    padding: 11px 12px;
    border: 1px solid rgba(23, 65, 94, .10);
    border-radius: 14px;
    box-shadow: inset 0 1px rgba(255,255,255,.72);
}
.review-inbox-stat::after {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    right: -15px;
    top: -15px;
    border-radius: 50%;
    background: currentColor;
    opacity: .07;
}
.review-inbox-stat strong { font-size: 20px; line-height: 1; }
.review-inbox-stat span { color: #6c7b88; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.review-inbox-stat.is-open { color: #8a5a14; background: linear-gradient(145deg, #fff8e8, #fff3d8); }
.review-inbox-stat.is-done { color: #167052; background: linear-gradient(145deg, #effaf5, #e3f6ee); }
.review-inbox-stat.is-total { color: #4f3b9c; background: linear-gradient(145deg, #f5f2ff, #ece8ff); }
.review-compose-card {
    margin: 16px 0 20px;
    padding: 15px;
    border: 1px solid rgba(82, 67, 164, .14);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 148, 30, .10), transparent 31%),
        linear-gradient(145deg, rgba(240,248,253,.96), rgba(244,239,255,.96));
    box-shadow: 0 12px 28px rgba(32, 53, 82, .06), inset 0 1px rgba(255,255,255,.82);
}
.review-compose-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}
.review-compose-heading > div { display: grid; gap: 2px; }
.review-compose-heading strong { color: #183f5d; font-size: 13px; }
.review-compose-heading small { color: #73818e; font-size: 10px; }
.review-compose-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #184c70, #6c51c8);
    box-shadow: 0 7px 16px rgba(59, 66, 147, .18);
    font-size: 19px;
    font-weight: 600;
}
.review-comment-form-premium {
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.review-field { display: grid; gap: 7px; }
.review-field > span {
    color: #3d5870 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: .055em !important;
}
.review-comment-form-premium textarea,
.review-comment-form-premium select,
.review-quote-details-premium textarea,
.review-filter-select select,
.review-comment-footer select {
    appearance: none;
    border: 1px solid rgba(31, 82, 115, .17);
    border-radius: 12px;
    color: #1d3e57;
    background: rgba(255,255,255,.88);
    box-shadow: inset 0 1px 2px rgba(29, 60, 84, .035), 0 4px 12px rgba(28, 57, 80, .035);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.review-comment-form-premium textarea { min-height: 118px; padding: 12px 13px; line-height: 1.45; resize: vertical; }
.review-comment-form-premium select,
.review-filter-select select { min-height: 42px; padding: 9px 34px 9px 12px; }
.review-comment-form-premium textarea:focus,
.review-comment-form-premium select:focus,
.review-quote-details-premium textarea:focus,
.review-filter-select select:focus,
.review-comment-footer select:focus {
    outline: none;
    border-color: rgba(31, 111, 157, .56);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 127, 173, .10), 0 8px 18px rgba(33, 74, 105, .06);
}
.review-select-wrap,
.review-filter-select { position: relative; }
.review-select-wrap::after,
.review-filter-select::after {
    content: "⌄";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-56%);
    pointer-events: none;
    color: #60788b;
    font-size: 14px;
    font-weight: 800;
}
.review-quote-details-premium {
    padding: 10px 11px;
    border: 1px dashed rgba(58, 90, 113, .18);
    border-radius: 12px;
    background: rgba(255,255,255,.52);
}
.review-quote-details-premium summary { color: #496477; }
.review-quote-details-premium summary span { color: #8a97a2; font-size: 10px; font-weight: 600; }
.review-quote-details-premium textarea { margin-top: 10px; padding: 11px 12px; }
.review-inbox-section {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid rgba(31, 73, 102, .10);
}
.review-inbox-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.review-inbox-heading > div { display: grid; gap: 2px; }
.review-inbox-heading strong { color: #173d5b; font-size: 15px; }
.review-inbox-heading > span { color: #7a8995; font-size: 10px; }
.review-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(142px, .72fr);
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}
.review-filter-chips {
    display: flex;
    gap: 5px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.review-filter-chips::-webkit-scrollbar { display: none; }
.review-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 7px 9px;
    border: 1px solid rgba(35, 73, 100, .10);
    border-radius: 999px;
    color: #5b7080;
    background: rgba(255,255,255,.68);
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
}
.review-filter-chip span {
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: rgba(22, 67, 97, .08);
    font-size: 9px;
}
.review-filter-chip:hover { border-color: rgba(30, 102, 144, .25); color: #194d70; }
.review-filter-chip.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #184b6d, #6251ba);
    box-shadow: 0 6px 15px rgba(46, 65, 137, .15);
}
.review-filter-chip.active span { background: rgba(255,255,255,.16); }
.review-filter-select select { width: 100%; min-height: 34px; padding-top: 6px; padding-bottom: 6px; font-size: 10px; }
.review-comment-groups { display: grid; gap: 9px; }
.review-comment-group {
    overflow: hidden;
    border: 1px solid rgba(28, 70, 99, .11);
    border-radius: 15px;
    background: rgba(255,255,255,.70);
    box-shadow: 0 7px 18px rgba(34, 58, 79, .035);
}
.review-comment-group > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px;
    cursor: pointer;
    background: linear-gradient(115deg, rgba(239,247,251,.85), rgba(246,242,255,.78));
}
.review-comment-group > summary::-webkit-details-marker { display: none; }
.review-comment-group > summary::after {
    content: "+";
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    color: #466578;
    background: rgba(255,255,255,.72);
    font-size: 16px;
    line-height: 1;
}
.review-comment-group[open] > summary::after { content: "−"; }
.review-comment-group-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.review-comment-group-title > div { display: grid; gap: 1px; min-width: 0; }
.review-comment-group-title strong { overflow: hidden; color: #183f5d; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.review-comment-group-title small { color: #84919b; font-size: 9px; }
.review-group-number {
    display: grid;
    place-items: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #1a5779, #2f8392);
    font-size: 9px;
    font-weight: 900;
}
.review-comment-group-counts { display: flex; gap: 5px; margin-left: auto; }
.review-comment-group-counts span { padding: 4px 6px; border-radius: 999px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.review-comment-group-counts .active { color: #875719; background: #fff0ce; }
.review-comment-group-counts .done { color: #176e52; background: #e1f5ec; }
.review-comment-group .review-comment-list {
    gap: 0;
    padding: 0 10px 10px;
    border-top: 1px solid rgba(29, 70, 99, .07);
}
.review-comment-group .review-comment-card {
    margin-top: 9px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: none;
}
.review-comment-card p { color: #263e50; line-height: 1.45; }
.review-comment-status.status-open { color: #865411; background: #fff0d1; }
.review-comment-status.status-in_progress { color: #3156a2; background: #e9efff; }
.review-comment-status.status-resolved { color: #187053; background: #e4f6ed; }
.review-comment-status.status-rejected { color: #7b6060; background: #f1eaea; }
.review-comment-footer {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(35, 74, 101, .08);
}
.review-comment-footer > span { color: #7b8993; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.review-comment-footer select { min-width: 128px; padding: 6px 28px 6px 9px; font-size: 10px; }
.review-empty-filter { min-height: 126px; }
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
@media (max-width: 1180px) {
    .review-workspace-refined { grid-template-columns: minmax(0, 1.3fr) minmax(330px, .82fr); }
    .review-filter-bar { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .review-inbox-stats { grid-template-columns: repeat(3, 1fr); }
    .review-comment-group-counts { display: none; }
    .review-filter-bar { grid-template-columns: 1fr; }
}

/* MVP 7.7.1c — review filter spacing */
.review-filter-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
}
.review-filter-chips {
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 6px;
}
.review-filter-chip {
    min-height: 36px;
    padding-inline: 11px;
}
.review-filter-select {
    width: 100%;
}
.review-filter-select select {
    width: 100%;
}

/* MVP 7.7.2 — AI change proposals */
.change-proposal-panel {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(91, 75, 180, .16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(246, 244, 255, .96), rgba(238, 247, 255, .92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.change-proposal-panel.has-proposal { border-color: rgba(91,75,180,.28); }
.change-proposal-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px; }
.change-proposal-heading strong { display:block; color:#153f61; font-size:15px; }
.change-proposal-panel > p { margin: 0 0 12px; color:#667789; font-size:13px; line-height:1.55; }
.change-proposal-status { padding:6px 9px; border-radius:999px; font-size:11px; font-weight:800; white-space:nowrap; }
.change-proposal-status.status-draft { background:#fff1c8; color:#8b5b00; }
.change-proposal-status.status-accepted { background:#dff5e9; color:#24704b; }
.change-proposal-status.status-rejected { background:#f7e4e8; color:#934052; }
.change-proposal-generate { width:100%; }
.change-proposal-source { margin:10px 0; border-radius:14px; background:rgba(255,255,255,.66); padding:10px 12px; }
.change-proposal-source summary { cursor:pointer; color:#39566d; font-size:12px; font-weight:800; }
.change-proposal-source blockquote { max-height:180px; overflow:auto; margin:10px 0 0; white-space:pre-wrap; font-size:12px; color:#536879; }
.change-proposal-rationale { margin:10px 0 12px; padding:11px 12px; border-left:3px solid #7a64c9; background:rgba(255,255,255,.58); border-radius:0 12px 12px 0; }
.change-proposal-rationale span { display:block; font-size:10px; text-transform:uppercase; letter-spacing:.08em; font-weight:900; color:#6b5caf; }
.change-proposal-rationale p { margin:4px 0 0; font-size:12px; line-height:1.5; color:#4e6375; }
.change-proposal-review-form { display:grid; gap:10px; }
.change-proposal-review-form label > span { display:block; margin-bottom:5px; font-size:11px; text-transform:uppercase; letter-spacing:.06em; font-weight:850; color:#536a7d; }
.change-proposal-review-form textarea { width:100%; box-sizing:border-box; border:1px solid rgba(22,76,111,.18); border-radius:14px; padding:12px 13px; background:rgba(255,255,255,.88); color:#18384f; resize:vertical; line-height:1.5; }
.change-proposal-review-form textarea:focus { outline:none; border-color:#6f59c1; box-shadow:0 0 0 3px rgba(111,89,193,.10); }
.change-proposal-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.change-proposal-accept { background:linear-gradient(135deg,#164c6f,#276b8c); }
.change-proposal-reject { color:#8d4150; border-color:rgba(141,65,80,.24); }
.change-proposal-reviewed { padding:9px 11px; border-radius:12px; background:rgba(255,255,255,.55); color:#667789; font-size:11px; }
@media (max-width: 900px) { .change-proposal-actions { grid-template-columns:1fr; } }
.proposal-error-banner { margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(167,74,80,.22); border-radius: 14px; background: #fff0f1; color: #8b3f47; font-size: 13px; font-weight: 700; }

/* MVP 7.7.2b — Compact AI proposal workspace */
.proposal-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 11px;
    border: 1px solid rgba(77, 91, 176, .15);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(247,247,255,.96), rgba(239,244,255,.88));
}
.proposal-compact.has-proposal { border-color: rgba(92, 75, 184, .24); }
.proposal-compact.status-accepted { background: linear-gradient(145deg, rgba(239,250,245,.96), rgba(232,247,239,.9)); border-color: rgba(42,128,93,.20); }
.proposal-compact.status-rejected { background: linear-gradient(145deg, rgba(250,244,246,.96), rgba(247,238,241,.9)); border-color: rgba(150,78,91,.18); }
.proposal-compact-copy { display:flex; align-items:center; gap:9px; min-width:0; }
.proposal-compact-copy > div { display:grid; gap:1px; min-width:0; }
.proposal-compact-copy .eyebrow { margin:0; font-size:8px; color:#6875a5; }
.proposal-compact-copy strong { color:#183f5d; font-size:11px; line-height:1.25; }
.proposal-compact-copy small { color:#778694; font-size:9px; line-height:1.35; }
.proposal-compact-icon {
    display:grid; place-items:center; width:30px; height:30px; flex:0 0 30px;
    border-radius:10px; color:#fff; font-size:9px; font-weight:900; letter-spacing:.04em;
    background:linear-gradient(135deg,#5746aa,#2b7893);
    box-shadow:0 7px 16px rgba(67,73,156,.16);
}
.proposal-compact-action { min-height:34px; padding:7px 10px; border-radius:10px; font-size:9px; white-space:nowrap; }

.proposal-dialog {
    width:min(780px, calc(100vw - 40px));
    max-width:780px;
    max-height:86vh;
    padding:0;
    border:0;
    border-radius:24px;
    overflow:hidden;
    background:transparent;
    box-shadow:0 28px 80px rgba(17,48,71,.30);
}
.proposal-dialog::backdrop {
    background:rgba(12,31,46,.58);
    backdrop-filter:blur(6px);
}
.proposal-dialog-shell { background:linear-gradient(145deg,#f8fbff,#f5f2ff); color:#173d5b; }
.proposal-dialog-header {
    display:flex; justify-content:space-between; gap:20px; align-items:flex-start;
    padding:22px 24px 18px;
    background:linear-gradient(125deg,#143f5f 0%,#1d5877 68%,#5c4eb0 135%);
    color:#fff;
}
.proposal-dialog-header .eyebrow { color:#b9dcf0; margin:0 0 5px; }
.proposal-dialog-header h3 { margin:0; color:#fff; font-size:24px; line-height:1.15; }
.proposal-dialog-header p { margin:7px 0 0; max-width:620px; color:rgba(255,255,255,.78); font-size:13px; line-height:1.5; }
.proposal-dialog-close {
    display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px;
    border:1px solid rgba(255,255,255,.24); border-radius:12px;
    background:rgba(255,255,255,.12); color:#fff; font-size:24px; line-height:1; cursor:pointer;
}
.proposal-dialog-close:hover { background:rgba(255,255,255,.20); }
.proposal-dialog-body {
    display:grid; grid-template-columns:minmax(220px,.72fr) minmax(0,1.45fr);
    gap:18px; padding:20px 22px 22px; max-height:calc(86vh - 116px); overflow:auto;
}
.proposal-dialog-summary { display:grid; align-content:start; gap:12px; }
.proposal-dialog-status-row { display:flex; align-items:center; justify-content:space-between; gap:8px; color:#758391; font-size:10px; }
.proposal-rationale-compact,
.proposal-context-compact {
    border:1px solid rgba(75,77,164,.14); border-radius:16px; background:rgba(255,255,255,.72); padding:12px 13px;
}
.proposal-rationale-compact > span { display:block; margin-bottom:5px; color:#6658a7; font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.07em; }
.proposal-rationale-compact p { margin:0; color:#4e6374; font-size:11px; line-height:1.55; }
.proposal-context-compact summary { cursor:pointer; color:#365b74; font-size:10px; font-weight:800; }
.proposal-context-compact blockquote { max-height:210px; overflow:auto; margin:10px 0 0; padding:0; border:0; white-space:pre-wrap; color:#667785; font-size:10px; line-height:1.5; }
.proposal-editor {
    display:grid; align-content:start; gap:13px; padding:16px;
    border:1px solid rgba(27,82,116,.14); border-radius:18px; background:rgba(255,255,255,.82);
    box-shadow:0 12px 28px rgba(35,65,89,.06);
}
.proposal-editor-field { display:grid; gap:6px; }
.proposal-editor-field > span { color:#244d69; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.055em; }
.proposal-editor-field > small { color:#89949e; font-size:9px; }
.proposal-editor-field textarea {
    width:100%; box-sizing:border-box; min-height:160px; padding:13px 14px;
    border:1px solid rgba(25,79,112,.17); border-radius:14px;
    background:#fbfdff; color:#1d3c51; font:inherit; font-size:12px; line-height:1.55; resize:vertical;
}
.proposal-editor-field textarea:focus { outline:none; border-color:#6959bd; box-shadow:0 0 0 3px rgba(105,89,189,.10); }
.proposal-note-field textarea { min-height:70px; }
.proposal-dialog-actions { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.proposal-dialog-actions .button, .proposal-dialog-actions .button-secondary { min-height:40px; }
.proposal-accept { background:linear-gradient(135deg,#154d70,#24789a); }
.proposal-reject { color:#8d4150; border-color:rgba(141,65,80,.24); }
.proposal-reviewed-note { padding:10px 12px; border-radius:12px; color:#687887; background:#f2f6f8; font-size:10px; }

@media (max-width: 760px) {
    .proposal-compact { grid-template-columns:1fr; }
    .proposal-compact-action { width:100%; }
    .proposal-dialog { width:calc(100vw - 22px); max-height:92vh; }
    .proposal-dialog-body { grid-template-columns:1fr; max-height:calc(92vh - 120px); }
    .proposal-dialog-header { padding:18px; }
    .proposal-dialog-header h3 { font-size:20px; }
}

/* MVP 7.7.2c — review control, ownership & retry polish */
.review-round-control {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:14px;
    margin:12px 0 14px;
    padding:13px 14px;
    border:1px solid rgba(32,91,126,.14);
    border-radius:16px;
    background:linear-gradient(145deg,rgba(247,251,255,.96),rgba(241,246,252,.92));
}
.review-round-control .eyebrow { margin:0 0 2px; font-size:8px; color:#607f95; }
.review-round-control strong { display:block; color:#193f5d; font-size:12px; }
.review-round-control p { margin:3px 0 0; color:#71818d; font-size:10px; line-height:1.45; }
.review-round-control.status-client_submitted { border-color:rgba(37,132,92,.18); background:linear-gradient(145deg,#f4fbf7,#edf7f2); }
.review-round-control.status-reopen_requested { border-color:rgba(224,157,45,.25); background:linear-gradient(145deg,#fffaf0,#fff4df); }
.review-round-control.status-closed { opacity:.82; }
.review-finalize-button { min-height:38px; padding:9px 13px; background:linear-gradient(135deg,#174b6e,#276f91); }
.review-reopen-actions { display:flex; gap:7px; flex-wrap:wrap; }

.review-owner-edit {
    margin:10px 0 2px;
    border-top:1px solid rgba(31,77,107,.09);
    padding-top:8px;
}
.review-owner-edit > summary {
    width:max-content;
    cursor:pointer;
    color:#526d80;
    font-size:9px;
    font-weight:850;
}
.review-owner-edit-form {
    display:grid;
    gap:8px;
    margin-top:9px;
    padding:11px;
    border:1px solid rgba(31,79,111,.11);
    border-radius:13px;
    background:rgba(255,255,255,.62);
}
.review-owner-edit-form label { display:grid; gap:4px; }
.review-owner-edit-form label > span { color:#61798a; font-size:8px; font-weight:900; text-transform:uppercase; letter-spacing:.05em; }
.review-owner-edit-form select,
.review-owner-edit-form textarea {
    width:100%; box-sizing:border-box; padding:9px 10px;
    border:1px solid rgba(31,79,111,.15); border-radius:10px;
    background:#fbfdff; color:#213f54; font:inherit; font-size:10px;
}
.review-owner-edit-form textarea { resize:vertical; line-height:1.45; }
.review-owner-edit-actions { display:flex; justify-content:flex-end; }
.review-delete-own {
    margin-top:7px; padding:0; background:transparent !important; color:#9a4c5a !important;
    font-size:9px; font-weight:800; text-decoration:underline; box-shadow:none !important;
}
.review-delete-own:hover { color:#7f3542 !important; }

.proposal-regenerate { border-color:rgba(139,78,91,.18); color:#874656; background:rgba(255,255,255,.72); }
.proposal-dialog-header h3,
.proposal-dialog-header h3 * { color:#fff !important; }
.proposal-dialog-close {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:0 !important;
    line-height:1 !important;
}
.proposal-dialog-close > span {
    display:block;
    font-size:18px;
    line-height:1;
    transform:translateY(0);
}

@media (max-width: 760px) {
    .review-round-control { grid-template-columns:1fr; }
    .review-round-control form > button { width:100%; }
}


/* MVP 7.7.2d — review interaction polish */
.proposal-dialog-header .eyebrow,
.proposal-dialog-header .eyebrow *,
.proposal-dialog-header h3,
.proposal-dialog-header h3 *,
.proposal-dialog-header p,
.proposal-dialog-header p * {
    color:#fff !important;
    text-shadow:0 1px 1px rgba(0,0,0,.08);
}
.proposal-dialog-header .eyebrow { opacity:.72; }
.proposal-dialog-close {
    display:grid !important;
    place-items:center !important;
    padding:0 !important;
}
.proposal-dialog-close > span {
    display:grid !important;
    place-items:center !important;
    width:100%; height:100%;
    line-height:1 !important;
    transform:none !important;
}
.proposal-generate-button {
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
}
.proposal-generate-button[disabled] { cursor:wait; opacity:.88; }
.proposal-loading {
    display:none; width:14px; height:14px; flex:0 0 14px; box-sizing:border-box;
    border:2px solid rgba(24,72,102,.20); border-top-color:#1d607f; border-radius:50%;
    animation:proposal-spin .75s linear infinite;
}
.proposal-generate-button.is-loading .proposal-loading { display:inline-block; }
.proposal-generate-button.is-loading.proposal-regenerate .proposal-loading { border-color:rgba(135,70,86,.22); border-top-color:#874656; }
@keyframes proposal-spin { to { transform:rotate(360deg); } }

/* MVP 7.7.3 — feedback resolution & delta reanalysis */
.review-round-control-premium{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:center;padding:22px 24px;background:linear-gradient(135deg,rgba(239,247,252,.96),rgba(248,244,255,.96));border:1px solid rgba(33,88,122,.16);border-radius:22px;box-shadow:0 18px 48px rgba(36,66,92,.08)}
.review-round-control-premium .review-round-copy{min-width:0;max-width:560px}.review-round-copy strong{display:block;font-size:1.08rem;color:#153f5e;margin:3px 0 6px}.review-round-copy p{margin:0;color:#66798a;line-height:1.5}
.review-round-action{display:flex;align-items:center}.review-finalize-button{min-width:220px;white-space:nowrap}.review-round-approved{padding-left:16px;border-left:4px solid #45a079}
.review-client-approval-form{width:min(420px,100%);display:grid;gap:10px}.review-client-approval-form textarea{width:100%;border:1px solid #c9dbe7;border-radius:14px;padding:11px 13px;background:rgba(255,255,255,.82);resize:vertical}.review-client-approval-actions{display:flex;gap:9px;flex-wrap:wrap}
.review-delete-own{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 15px;border-radius:12px;border:1px solid rgba(185,72,72,.25);background:#fff4f4;color:#a33f47;font-weight:700;font-size:.86rem;line-height:1.2;cursor:pointer}.review-delete-own:hover{background:#ffeaea;border-color:rgba(185,72,72,.4)}
.review-resolution-card{margin:14px 0 4px;padding:14px 16px;border-radius:16px;background:linear-gradient(135deg,#f3f8fb,#f8f5ff);border:1px solid rgba(65,110,140,.15)}.review-resolution-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:7px}.review-resolution-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e3f3eb;color:#34745d;font-weight:800;font-size:.72rem}.review-resolution-card.resolution-new_project_info_needed,.review-resolution-card.resolution-reanalysis_needed{background:linear-gradient(135deg,#fff7e7,#f6f1ff);border-color:rgba(220,160,55,.22)}.review-resolution-card.resolution-new_project_info_needed .review-resolution-badge,.review-resolution-card.resolution-reanalysis_needed .review-resolution-badge{background:#fff0c9;color:#875b0d}.review-resolution-text{margin-top:9px}.review-resolution-text summary{cursor:pointer;color:#1d577a;font-weight:750}.review-resolution-text blockquote{margin:10px 0 0;padding:12px 14px;border-left:3px solid #2d82aa;background:rgba(255,255,255,.72);border-radius:0 12px 12px 0;white-space:pre-wrap}
.review-resolution-editor{margin:13px 0;padding:12px 14px;border:1px solid rgba(51,100,132,.15);border-radius:15px;background:rgba(245,250,253,.76)}.review-resolution-editor>summary{cursor:pointer;font-weight:800;color:#234f6c}.review-resolution-editor form{display:grid;gap:10px;margin-top:12px}.review-resolution-editor label{display:grid;gap:6px;font-size:.75rem;font-weight:800;color:#667b8a;text-transform:uppercase;letter-spacing:.04em}.review-resolution-editor select,.review-resolution-editor textarea{width:100%;border:1px solid #cbdde8;border-radius:12px;background:#fff;padding:10px 12px;font:inherit;color:#183d58;text-transform:none;letter-spacing:normal}.review-resolution-editor textarea{resize:vertical}
.proposal-impact-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e9f3f8;color:#28627f;font-size:.72rem;font-weight:850}.proposal-impact-badge.impact-new_project_info_needed,.proposal-impact-badge.impact-reanalysis_needed{background:#fff0c8;color:#84580c}.proposal-impact-summary{margin-top:13px;padding:13px 14px;border-radius:14px;background:linear-gradient(135deg,#eef7fb,#fff7e8);border:1px solid rgba(80,130,155,.16)}.proposal-impact-summary strong{display:block;color:#174966}.proposal-impact-summary p{margin:5px 0 8px;color:#5e7383}.proposal-impact-summary span{display:inline-flex;padding:5px 9px;border-radius:999px;background:#fff0c6;color:#835b11;font-size:.72rem;font-weight:800}.proposal-reanalysis-callout{padding:18px;border-radius:17px;background:linear-gradient(135deg,#fff7df,#f1edff);border:1px solid rgba(211,158,61,.26)}.proposal-reanalysis-callout strong{display:block;color:#6d4e15;margin-bottom:5px}.proposal-reanalysis-callout p{margin:0;color:#6d6c7e;line-height:1.55}
.review-resolution-actions{display:grid;gap:12px;margin-top:18px;padding:18px;border-radius:20px;background:linear-gradient(135deg,#eaf4f9,#f4efff);border:1px solid rgba(48,98,130,.15)}.review-resolution-actions form{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;align-items:center}.review-resolution-actions small{color:#657988;line-height:1.45}.review-resolution-pending{padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.66)}.review-resolution-pending strong{display:block;color:#214d68}.review-resolution-pending p{margin:4px 0 0;color:#677a89}.review-reanalysis-button{background:linear-gradient(135deg,#174968,#2b6e8c)}
@media(max-width:900px){.review-round-control-premium{grid-template-columns:1fr}.review-round-action,.review-client-approval-form{width:100%}.review-finalize-button{width:100%}.review-resolution-actions form{grid-template-columns:1fr}.review-client-approval-actions>*{flex:1 1 180px}}

/* MVP 7.7.3a — feedback action polish */
.review-round-control-premium.status-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px;
}
.review-round-control-premium.status-open .review-round-copy {
    max-width: none;
    padding-right: 2px;
}
.review-round-control-premium.status-open .review-round-copy strong {
    font-size: 1.12rem;
    line-height: 1.25;
}
.review-round-control-premium.status-open .review-round-copy p {
    max-width: 34rem;
    font-size: .92rem;
    line-height: 1.55;
}
.review-round-control-premium.status-open .review-round-action {
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(33,88,122,.12);
}
.review-round-control-premium.status-open .review-finalize-button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(23,75,110,.16);
}

.review-owner-edit-form .review-owner-edit-actions {
    margin-top: 4px;
}
.review-owner-edit-form .review-owner-edit-actions .button-secondary {
    width: 100%;
    min-height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg,#174b6e,#2c6789) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(23,75,110,.14);
}
.review-owner-edit > .review-delete-form {
    margin-top: 10px;
}
.review-delete-own {
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 16px !important;
    border-radius: 13px !important;
    border: 1px solid rgba(174,64,72,.22) !important;
    background: rgba(255,247,247,.82) !important;
    color: #9a3f47 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font-weight: 750 !important;
    font-size: .88rem !important;
}
.review-delete-own:hover {
    background: #fff0f0 !important;
    border-color: rgba(174,64,72,.38) !important;
    color: #7f3038 !important;
    transform: none !important;
}

/* MVP 7.7.3b — proposal card polish */
.proposal-dialog-meta {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(180px, 1.45fr) minmax(105px, .75fr);
  gap: 10px;
  margin-bottom: 14px;
}
.proposal-meta-card {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(27, 76, 112, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 22px rgba(33, 70, 103, .05);
}
.proposal-meta-card.meta-status { background: linear-gradient(145deg, rgba(255,248,226,.96), rgba(255,255,255,.82)); }
.proposal-meta-card.meta-route { background: linear-gradient(145deg, rgba(235,247,251,.98), rgba(255,255,255,.84)); }
.proposal-meta-card.meta-reference { background: linear-gradient(145deg, rgba(245,242,255,.98), rgba(255,255,255,.84)); }
.proposal-meta-label {
  display: block;
  margin-bottom: 6px;
  color: #7890a2;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.proposal-meta-card .change-proposal-status,
.proposal-meta-card .proposal-impact-badge {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  color: #173f5d;
  font-size: .88rem;
  font-weight: 850;
  line-height: 1.28;
  white-space: normal;
  overflow-wrap: anywhere;
}
.proposal-meta-card .change-proposal-status.status-draft { color: #8b5b00; }
.proposal-meta-card .change-proposal-status.status-accepted { color: #24704b; }
.proposal-meta-card .change-proposal-status.status-rejected { color: #934052; }
.proposal-meta-card .proposal-impact-badge.impact-new_project_info_needed,
.proposal-meta-card .proposal-impact-badge.impact-reanalysis_needed { color: #875b09; }
.proposal-meta-card.meta-reference strong {
  display: block;
  color: #4c5c83;
  font-size: .88rem;
  line-height: 1.28;
}
.proposal-impact-summary {
  padding: 16px 17px;
}
.proposal-impact-summary .proposal-impact-nextstep {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(255, 224, 145, .48);
  color: #785314;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.35;
  white-space: normal;
}
.proposal-dialog-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}
.proposal-dialog-actions .button,
.proposal-dialog-actions .button-secondary {
  min-height: 50px;
  height: auto;
  padding: 12px 18px;
  line-height: 1.18;
  white-space: normal;
  text-align: center;
}
.proposal-dialog-actions .proposal-accept { min-width: 0; }
.proposal-dialog-actions .proposal-reject { min-width: 118px; }

@media (max-width: 820px) {
  .proposal-dialog-meta { grid-template-columns: 1fr 1fr; }
  .proposal-meta-card.meta-route { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .proposal-dialog-meta { grid-template-columns: 1fr; }
  .proposal-meta-card.meta-route { grid-column: auto; }
  .proposal-dialog-actions { grid-template-columns: 1fr; }
  .proposal-dialog-actions .proposal-reject { min-width: 0; }
}


/* MVP 7.7.3c — compact proposal modal metadata */
.proposal-dialog-meta {
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: 7px;
  margin-bottom: 4px;
}
.proposal-meta-card {
  padding: 8px 10px;
  border-radius: 11px;
  box-shadow: 0 5px 14px rgba(33, 70, 103, .035);
}
.proposal-meta-card.meta-route {
  grid-column: 1 / -1;
}
.proposal-meta-label {
  margin-bottom: 3px;
  font-size: .57rem;
  letter-spacing: .065em;
}
.proposal-meta-card .change-proposal-status,
.proposal-meta-card .proposal-impact-badge,
.proposal-meta-card.meta-reference strong {
  font-size: .76rem;
  line-height: 1.22;
  overflow-wrap: normal;
  word-break: normal;
}
.proposal-impact-summary {
  padding: 12px 13px;
  border-radius: 13px;
}
.proposal-impact-summary strong {
  font-size: .93rem;
}
.proposal-impact-summary p {
  margin: 4px 0 7px;
  font-size: .78rem;
  line-height: 1.45;
}
.proposal-impact-summary .proposal-impact-nextstep {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin-top: 3px;
  padding: 6px 8px;
  border-radius: 9px;
  font-size: .68rem;
  line-height: 1.25;
}
.proposal-dialog-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}
.proposal-dialog-actions .button,
.proposal-dialog-actions .button-secondary {
  min-height: 42px;
  height: auto;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: .86rem !important;
  line-height: 1.15;
  white-space: normal;
}
.proposal-dialog-actions .proposal-accept {
  flex: 1 1 auto;
  min-width: 0;
}
.proposal-dialog-actions .proposal-reject {
  flex: 0 0 auto;
  min-width: 96px;
}

@media (max-width: 620px) {
  .proposal-dialog-meta { grid-template-columns: 1fr; }
  .proposal-meta-card.meta-route { grid-column: auto; }
  .proposal-dialog-actions { flex-wrap: wrap; }
  .proposal-dialog-actions .proposal-accept,
  .proposal-dialog-actions .proposal-reject { flex: 1 1 100%; min-width: 0; }
}

/* MVP 7.7.4 — versioned project basis */
.intake-basis-panel{margin:18px 0 22px;padding:22px 24px;background:linear-gradient(135deg,rgba(234,247,252,.96),rgba(245,241,255,.96));border:1px solid rgba(25,92,126,.18)}
.intake-basis-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.intake-basis-head h2{margin:.15rem 0 .35rem}.basis-active-badge{display:inline-flex;padding:8px 13px;border-radius:999px;background:#dff5e9;color:#17694e;font-weight:800;font-size:.78rem}
.basis-candidate-list{display:grid;gap:10px;margin-top:16px}.basis-candidate-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border-radius:15px;background:rgba(255,255,255,.68);border:1px solid rgba(73,88,125,.12)}.basis-candidate-row small{display:block;margin-top:3px;color:#718193}
.intake-rerun-options{margin-top:17px;border-top:1px solid rgba(38,75,103,.12);padding-top:14px}.intake-rerun-options>summary{cursor:pointer;font-weight:800;color:#194563}.intake-rerun-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:13px}.intake-rerun-grid form{padding:16px;border-radius:16px;background:rgba(255,255,255,.62);border:1px solid rgba(48,93,126,.12)}.intake-rerun-grid p{min-height:3.8em;color:#65798b;font-size:.88rem;line-height:1.45}
@media(max-width:800px){.intake-rerun-grid{grid-template-columns:1fr}.basis-candidate-row,.intake-basis-head{align-items:stretch;flex-direction:column}}

/* MVP 7.7.4a – explicit historical intake source for BLVC generation */
.blvc-source-select {
    width: 100%;
    margin: .45rem 0 .35rem;
    padding: .78rem .9rem;
    border-radius: 14px;
    border: 1px solid rgba(36, 93, 129, .22);
    background: rgba(255,255,255,.92);
    color: #153b5a;
    font: inherit;
    font-weight: 650;
}
.blvc-source-select:focus {
    outline: 3px solid rgba(246, 139, 31, .18);
    border-color: #f68b1f;
}


/* =============================================================
   MVP 7.7.4b — intake reanalysis correctness polish
   ============================================================= */
.intake-structure-summary .structure-stats.compact > div {
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    padding:0 !important;
    border-radius:0 !important;
}
.intake-structure-summary .structure-stats.compact > div + div {
    padding-left:18px !important;
    border-left:1px solid rgba(37,100,133,.16) !important;
}
.info-alert {
    margin:14px 0; padding:13px 16px; border-radius:14px;
    border:1px solid rgba(49,116,157,.20);
    background:linear-gradient(135deg,rgba(233,247,253,.92),rgba(241,245,255,.92));
    color:#31566d; font-size:.88rem; line-height:1.55;
}

/* =============================================================
   MVP 7.7.4c — review handoff & client approval polish
   ============================================================= */
.review-resolution-editor > summary {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}
.review-resolution-editor > summary span { font-weight:800; }
.review-resolution-editor > summary small {
    color:#7b8d9b;
    font-size:.68rem;
    font-weight:700;
    text-transform:none;
    letter-spacing:0;
}
.review-resolution-editor.is-recorded {
    background:linear-gradient(135deg,rgba(239,249,245,.92),rgba(243,247,252,.9));
    border-color:rgba(55,143,105,.20);
}
.review-resolution-editor.is-recorded > summary span::before {
    content:"✓";
    display:inline-grid;
    place-items:center;
    width:20px;
    height:20px;
    margin-right:7px;
    border-radius:50%;
    background:#dff4e9;
    color:#247457;
    font-size:.72rem;
}

.review-resolution-actions .review-send-resolution-form {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:14px !important;
    align-items:stretch !important;
}
.review-send-resolution-copy {
    min-width:0;
    padding:2px 2px 0;
}
.review-send-resolution-copy strong {
    display:block;
    margin:3px 0 5px;
    color:#173f5c;
    font-size:1rem;
}
.review-send-resolution-copy p {
    margin:0;
    color:#657a8a;
    font-size:.82rem;
    line-height:1.5;
}
.review-send-resolution-button {
    width:100%;
    min-height:48px;
}

.review-round-control-premium.status-client_approval {
    grid-template-columns:1fr !important;
    align-items:stretch;
}
.review-round-control-premium.status-client_approval .review-round-copy {
    max-width:none;
}
.review-client-approval-box {
    display:grid;
    gap:14px;
    padding:16px;
    border-radius:18px;
    background:rgba(255,255,255,.62);
    border:1px solid rgba(41,91,126,.14);
}
.review-client-approval-intro {
    display:flex;
    gap:11px;
    align-items:flex-start;
}
.review-client-approval-icon {
    flex:0 0 30px;
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:#dff4e9;
    color:#26785b;
    font-weight:900;
}
.review-client-approval-intro strong {
    display:block;
    color:#153f5d;
    margin-bottom:3px;
}
.review-client-approval-intro p {
    margin:0;
    color:#6a7d8c;
    font-size:.79rem;
    line-height:1.48;
}
.review-client-approval-form {
    width:100% !important;
    display:grid;
    gap:11px;
}
.review-client-approval-form textarea {
    min-height:92px;
}
.review-client-approval-actions {
    display:grid !important;
    grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr);
    gap:9px;
}
.review-client-approval-actions .button,
.review-client-approval-actions .button-secondary {
    width:100%;
    min-width:0;
    white-space:normal;
    line-height:1.2;
}
@media(max-width:700px){
    .review-client-approval-actions{grid-template-columns:1fr}
}

/* A8-CB3-UI3 — completed review next-version action */
.review-next-version-action{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    min-height:44px;
    box-sizing:border-box;
    padding:11px 16px;
    border:1px solid rgba(20,76,110,.10);
    border-radius:13px;
    background:linear-gradient(145deg,#194f74,#103651);
    color:#fff;
    box-shadow:0 8px 18px rgba(15,47,74,.15);
    font:inherit;
    font-weight:800;
    line-height:1.2;
    text-align:center;
    text-decoration:none;
    transition:transform .14s ease,box-shadow .14s ease,filter .14s ease;
}
.review-next-version-action:hover{
    background:linear-gradient(145deg,#205f87,#123c5a);
    color:#fff;
    transform:translateY(-1px);
    box-shadow:0 11px 22px rgba(15,47,74,.20);
    text-decoration:none;
}
.review-next-version-action span{font-size:1.05em;line-height:1}
@media(max-width:700px){.review-next-version-action{width:100%}}

/* MVP 7.7.4d — review workflow polish & dashboard confirmations */
.review-resolution-step{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
    align-items:stretch !important;
    padding:14px 15px;
    border-radius:16px;
    background:rgba(255,255,255,.62);
    border:1px solid rgba(38,88,123,.12);
}
.review-resolution-step-copy{display:grid;gap:4px;min-width:0}
.review-resolution-step-copy strong{color:#173f5c;font-size:.92rem}
.review-resolution-step-copy small{display:block;color:#647988;line-height:1.48;font-size:.79rem}
.review-resolution-step .button,.review-resolution-step .button-secondary{width:100%;min-width:0;white-space:normal}

/* AI is an input to the internal decision, so keep it visually before resolution capture. */
.proposal-compact{margin-top:12px;margin-bottom:12px}
.review-resolution-editor{margin-top:0}

.app-confirm-dialog{
    width:min(92vw,520px);
    padding:0;
    border:0;
    border-radius:24px;
    background:transparent;
    box-shadow:0 28px 80px rgba(10,35,54,.28);
}
.app-confirm-dialog::backdrop{background:rgba(18,39,54,.58);backdrop-filter:blur(4px)}
.app-confirm-shell{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:16px;
    padding:24px;
    border:1px solid rgba(37,88,123,.14);
    border-radius:24px;
    background:linear-gradient(145deg,#f8fbfd,#f5f1ff);
}
.app-confirm-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:#fff0cf;color:#8c5d09;font-size:1.25rem;font-weight:900}
.app-confirm-copy{min-width:0}.app-confirm-copy .eyebrow{color:#65798a}.app-confirm-copy h3{margin:3px 0 7px;color:#163f5d;font-size:1.35rem}.app-confirm-copy p{margin:0;color:#657988;line-height:1.55}
.app-confirm-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.25fr;gap:10px;margin-top:4px}.app-confirm-actions>*{width:100%}.app-confirm-actions .is-danger{background:#b84646;border-color:#b84646;color:#fff}.app-confirm-actions .is-danger:hover{background:#9f3434;border-color:#9f3434}
@media(max-width:560px){.app-confirm-shell{grid-template-columns:1fr}.app-confirm-icon{width:38px;height:38px}.app-confirm-actions{grid-template-columns:1fr}}

/* MVP 7.7.4f — review permissions & classifier polish */
.review-round-control-premium.status-client_submitted {
    grid-template-columns: 1fr !important;
    align-items: stretch;
    gap: 16px;
}
.review-round-control-premium.status-client_submitted .review-round-copy {
    max-width: none;
}
.review-round-control-premium.status-client_submitted .review-reopen-request-action {
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid rgba(33,88,122,.12);
}
.review-round-control-premium.status-client_submitted .review-reopen-request-action .button-secondary {
    width: 100%;
    min-height: 46px;
    white-space: normal;
}
.review-resolution-heading {
    align-items: flex-start;
}
.review-resolution-badge,
.proposal-impact-badge,
.proposal-impact-summary span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
    text-align: left;
}
.review-resolution-badge {
    flex: 0 1 auto;
    justify-content: flex-start;
}
@media (max-width: 720px) {
    .review-resolution-heading {
        flex-direction: column;
    }
    .review-resolution-badge {
        align-self: flex-start;
    }
}

/* MVP 7.7.4j — intake version history UI */
.basis-latest-candidate{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-top:18px;
    padding:17px 18px;
    border:1px solid rgba(25,92,126,.17);
    border-radius:17px;
    background:linear-gradient(115deg,rgba(255,255,255,.88),rgba(242,248,252,.8));
    box-shadow:0 10px 28px rgba(25,61,88,.05);
}
.basis-latest-candidate-copy{display:grid;gap:3px;min-width:0}
.basis-latest-candidate-copy strong{font-size:1.02rem;color:#172f45}
.basis-latest-candidate-copy small{color:#718193}
.basis-section-label{font-size:.62rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#4d7188}
.intake-version-archive-panel,.technical-run-history-panel{padding:0;overflow:hidden}
.intake-version-archive>summary,.technical-run-history>summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:20px 24px;
    cursor:pointer;
    list-style:none;
    color:#173f5d;
}
.intake-version-archive>summary::-webkit-details-marker,.technical-run-history>summary::-webkit-details-marker{display:none}
.intake-version-archive>summary:before,.technical-run-history>summary:before{content:"▸";font-size:.82rem;font-weight:900;transition:transform .16s ease}
.intake-version-archive[open]>summary:before,.technical-run-history[open]>summary:before{transform:rotate(90deg)}
.intake-version-archive>summary>span:first-of-type{display:grid;gap:2px;flex:1}
.intake-version-archive>summary strong{font-size:1.02rem}
.intake-version-archive>summary .eyebrow{margin:0;font-size:.58rem}
.intake-version-count{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 9px;border-radius:999px;background:#e9f1f5;color:#315a73;font-size:.68rem;font-weight:900}
.intake-version-archive-intro{margin:0 24px 14px;padding-top:14px;border-top:1px solid rgba(34,78,105,.1)}
.intake-version-history{display:grid;gap:8px;padding:0 24px 22px}
.intake-version-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 14px;border:1px solid rgba(43,80,108,.11);border-radius:13px;background:rgba(250,252,253,.84)}
.intake-version-row.is-active{background:linear-gradient(115deg,rgba(234,249,241,.92),rgba(247,252,250,.92));border-color:rgba(45,140,101,.18)}
.intake-version-main{display:grid;gap:3px;min-width:0}.intake-version-main strong{font-size:.86rem;color:#193c56}.intake-version-meta{font-size:.65rem;color:#748693}
.intake-version-actions{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0}
.basis-active-badge.compact{padding:6px 10px;font-size:.66rem}
.button-compact{padding:9px 12px!important;font-size:.67rem!important;min-height:0!important}
.technical-run-history>summary{font-size:.8rem;font-weight:850}
.technical-run-history .run-history{padding:0 24px 20px}
.technical-run-history-panel{margin-top:16px}
@media(max-width:760px){
    .basis-latest-candidate,.intake-version-row{align-items:stretch;flex-direction:column}
    .basis-latest-candidate form,.basis-latest-candidate button,.intake-version-actions,.intake-version-actions form,.intake-version-actions button{width:100%}
    .intake-version-actions{justify-content:stretch}
}


/* =============================================================
   MVP 7.7.4m — overview alignment + intake spacing polish
   ============================================================= */
.viewer-internal .internal-module-grid .module-overview-card{
    grid-template-columns:46px minmax(0,1fr) 32px!important;
    align-items:center!important;
    column-gap:14px!important;
    padding:18px 16px!important;
}
.viewer-internal .internal-module-grid .module-overview-card>div:nth-child(2){
    display:grid;
    align-content:center;
    gap:2px;
    min-width:0;
}
.viewer-internal .internal-module-grid .module-overview-card .eyebrow{
    margin:0 0 1px!important;
    line-height:1.15!important;
}
.viewer-internal .internal-module-grid .module-overview-card h3{
    margin:0!important;
    line-height:1.2!important;
}
.viewer-internal .internal-module-grid .module-overview-card p:last-child{
    margin:2px 0 0!important;
    line-height:1.35!important;
}
.viewer-internal .internal-module-grid .module-arrow{
    align-self:center!important;
    justify-self:end!important;
}

.intake-page-stack{
    display:flex;
    flex-direction:column;
    gap:22px;
    margin-top:0;
}
.intake-page-stack>.panel,
.intake-page-stack>.intake-grid,
.intake-page-stack>.summary-grid,
.intake-page-stack>.alert,
.intake-page-stack>.success-alert,
.intake-page-stack>.info-alert{
    margin-top:0!important;
    margin-bottom:0!important;
}
.intake-page-stack .intake-version-archive-panel,
.intake-page-stack .technical-run-history-panel{
    margin-top:0!important;
}
.intake-page-stack .finalize-panel{
    margin-bottom:0!important;
}
@media(max-width:760px){
    .intake-page-stack{gap:16px}
    .viewer-internal .internal-module-grid .module-overview-card{
        grid-template-columns:44px minmax(0,1fr) 30px!important;
        padding:15px!important;
    }
}

/* =============================================================
   MVP 7.7.4n — report configuration panel spacing
   ============================================================= */
.report-advice-card{
    margin-bottom:22px!important;
}
.report-config-panel{
    margin-top:0!important;
}
.report-config-panel:not(.modules-panel){
    margin-bottom:22px!important;
}
#report-config-form{
    display:grid;
    gap:22px;
    margin:0;
}
#report-config-form>.report-config-panel{
    margin-top:0!important;
    margin-bottom:0!important;
}
#report-config-form>.modules-panel{
    margin-bottom:0!important;
}
@media(max-width:760px){
    .report-advice-card{margin-bottom:16px!important}
    .report-config-panel:not(.modules-panel){margin-bottom:16px!important}
    #report-config-form{gap:16px}
}

/* MVP 7.7.5a — canonieke review-lifecycle */
.review-round-control.status-processing,
.review-round-control-premium.status-processing {
    border-color: rgba(22, 59, 92, .18);
    background: linear-gradient(145deg, #f4f8fb, #edf4f8);
}
.review-round-control.status-reanalysis,
.review-round-control-premium.status-reanalysis {
    border-color: rgba(224, 157, 45, .24);
    background: linear-gradient(145deg, #fffaf0, #fff5e3);
}

/* =============================================================
   MVP 7.7.5b — centrale interne feedbackwerkvoorraad
   ============================================================= */
.review-register-entry{
    display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;
    margin-bottom:14px;padding:17px 18px;background:linear-gradient(135deg,#f7fafc,#fff);
}
.review-register-entry.has-attention{border-color:#e2bd73;background:linear-gradient(135deg,#fffaf0,#fff)}
.review-register-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#163b5c;color:#fff;font-size:0;font-weight:900}
.review-register-entry h2{margin:.12rem 0 .25rem;font-size:1rem}.review-register-entry p:last-child{margin:0;color:#667b88;font-size:.72rem;line-height:1.45}
.review-queue-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 18px}
.review-queue-summary-card{display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:center;padding:15px 16px}
.review-queue-summary-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#eaf2f6;color:#163b5c;font-weight:900}
.review-queue-summary-card div{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:end}.review-queue-summary-card .eyebrow{grid-column:1/-1;margin-bottom:2px}.review-queue-summary-card strong{font-size:1.35rem;color:#163b5c;line-height:1}.review-queue-summary-card small{color:#71828d;font-size:.64rem;line-height:1.3}
.review-queue-section{margin-top:18px}.review-queue-section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:10px}.review-queue-section-heading h2{margin:.1rem 0 0}.review-queue-section-heading>span{display:grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:#e9f0f4;color:#244d67;font-size:.65rem;font-weight:900}
.review-queue-list{display:grid;gap:10px}.review-queue-card{padding:16px 17px;display:grid;grid-template-columns:minmax(0,1.45fr) auto auto;gap:18px;align-items:center}.review-queue-card.needs-attention{border-left:4px solid #dda84a}.review-queue-card-main{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;align-items:start}.review-queue-round-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#163b5c;color:#fff;font-size:.69rem;font-weight:900}.review-queue-title-row{display:flex;justify-content:space-between;gap:12px;align-items:start}.review-queue-title-row h2{margin:.08rem 0 .25rem;font-size:.92rem}.review-queue-status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#edf3f6;color:#31566c;font-size:.55rem;font-weight:900;white-space:nowrap}.review-queue-status.status-client_submitted,.review-queue-status.status-reopen_requested{background:#fff2d8;color:#885b12}.review-queue-status.status-processing,.review-queue-status.status-reanalysis{background:#eaf2f7;color:#174a68}.review-queue-status.status-closed{background:#e8f4ed;color:#2f6b49}.review-queue-meta{display:flex;flex-wrap:wrap;gap:5px 12px;color:#7b8a94;font-size:.57rem}.review-queue-meta span+span:before{content:"·";margin-right:12px;color:#a9b4ba}
.review-queue-workload{display:flex;gap:8px}.review-queue-workload>div{min-width:72px;padding:8px 9px;border-radius:9px;background:#f4f7f9;text-align:center;display:grid;gap:2px}.review-queue-workload strong{color:#183f5d;font-size:.85rem}.review-queue-workload span{color:#788791;font-size:.5rem;line-height:1.15}.review-queue-workload .review-queue-reanalysis{background:#fff6e5}.review-queue-actions{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:148px}.review-queue-actions .text-link{font-size:.57rem;display:inline-flex;justify-content:flex-end;text-align:right}.review-queue-attention-label,.review-queue-ready-label{font-size:.54rem;font-weight:900;text-transform:uppercase;letter-spacing:.035em}.review-queue-attention-label{color:#9a6816}.review-queue-ready-label{color:#31704f}.review-queue-empty{display:flex;gap:12px;align-items:center;padding:20px}.review-queue-empty>span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e9f5ee;color:#31704f;font-weight:900}.review-queue-empty h3{margin:0 0 3px}.review-queue-empty p{margin:0;color:#70818c;font-size:.7rem}.review-history-section>details>summary{display:flex;align-items:center;gap:8px;cursor:pointer;color:#294e66;font-size:.7rem;font-weight:850;list-style:none;width:max-content}.review-history-section>details>summary::-webkit-details-marker{display:none}.review-history-list{margin-top:10px;opacity:.94}.review-module-card .module-overview-icon{background:#fff2d8;color:#835815}
@media(max-width:980px){.review-queue-card{grid-template-columns:1fr}.review-queue-actions{align-items:flex-start}.review-queue-workload{justify-content:flex-start}}
@media(max-width:700px){.review-register-entry{grid-template-columns:42px 1fr}.review-register-entry>a{grid-column:1/-1;width:100%;justify-content:center}.review-queue-summary-grid{grid-template-columns:1fr}.review-queue-title-row{display:grid}.review-queue-workload{display:grid;grid-template-columns:repeat(2,1fr)}.review-queue-actions{grid-template-columns:1fr}.review-queue-actions .button-secondary{width:100%;justify-content:center}}

/* =========================================================
   MVP 7.7.5c — simplified client review + premium review UI
   ========================================================= */
.client-review-hero{
    background:
        radial-gradient(circle at 90% 8%,rgba(255,150,42,.15),transparent 27%),
        radial-gradient(circle at 77% 120%,rgba(70,143,176,.15),transparent 35%),
        linear-gradient(125deg,#f7fbfd 0%,#eef7fb 52%,#fff8ed 100%);
}
.client-review-journey{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin:0 0 18px;
}
.client-review-step{
    position:relative;
    overflow:hidden;
    display:grid;
    grid-template-columns:34px minmax(0,1fr);
    gap:11px;
    align-items:center;
    min-height:74px;
    padding:13px 14px;
    border:1px solid rgba(31,78,108,.10);
    border-radius:16px;
    background:rgba(255,255,255,.78);
    box-shadow:0 10px 25px rgba(29,57,78,.045);
}
.client-review-step:before{
    content:"";
    position:absolute;
    left:0;top:0;bottom:0;
    width:3px;
    background:#d8e3e9;
}
.client-review-step>span{
    display:grid;
    place-items:center;
    width:32px;height:32px;
    border-radius:10px;
    color:#6b7e89;
    background:#edf2f5;
    font-size:.68rem;
    font-weight:900;
}
.client-review-step>div{display:grid;gap:3px;min-width:0}
.client-review-step strong{color:#24485f;font-size:.76rem}
.client-review-step small{color:#778791;font-size:.59rem;line-height:1.35}
.client-review-step.is-current{
    border-color:rgba(36,101,137,.20);
    background:linear-gradient(145deg,#fff,#edf7fb);
    box-shadow:0 12px 28px rgba(29,72,100,.075);
}
.client-review-step.is-current:before{background:#2f7897}
.client-review-step.is-current>span{background:#174764;color:#fff;box-shadow:0 6px 14px rgba(23,71,100,.16)}
.client-review-step.is-done:before{background:#66a483}
.client-review-step.is-done>span{background:#e6f3eb;color:#3e7658}

.viewer-client .review-workspace-refined{gap:18px}
.viewer-client .review-document-panel,
.viewer-client .review-feedback-panel{
    border-color:rgba(32,78,106,.11);
    box-shadow:0 18px 45px rgba(25,55,76,.075);
}
.viewer-client .review-document-panel{
    background:
        radial-gradient(circle at 100% 0%,rgba(98,168,191,.10),transparent 30%),
        linear-gradient(145deg,#fff,#f5fafc);
}
.viewer-client .review-feedback-panel{
    background:
        radial-gradient(circle at 100% 0%,rgba(255,154,45,.10),transparent 27%),
        linear-gradient(165deg,#fff,#f7fbfd);
}
.client-review-feedback-heading .review-feedback-subtitle{max-width:340px}
.viewer-client .review-count-badge{color:#174b68;background:#e8f3f8;min-width:96px;flex:0 0 auto;white-space:nowrap;padding:9px 14px}
.viewer-client .review-round-control-premium{
    border:1px solid rgba(38,89,119,.12);
    box-shadow:0 10px 26px rgba(28,61,83,.05);
}
.viewer-client .review-round-control-premium.status-open{
    background:linear-gradient(145deg,#eef8fb,#fff8eb);
}
.viewer-client .review-round-control-premium.status-client_submitted,
.viewer-client .review-round-control-premium.status-processing,
.viewer-client .review-round-control-premium.status-reanalysis{
    background:linear-gradient(145deg,#edf6fa,#f8fbfc);
}
.viewer-client .review-compose-card{
    border-color:rgba(33,91,124,.13);
    background:
        radial-gradient(circle at 100% 0%,rgba(255,149,35,.09),transparent 30%),
        linear-gradient(145deg,#f4fafc,#fff);
}
.viewer-client .review-compose-icon{background:linear-gradient(135deg,#154a69,#2f8197)}
.viewer-client .review-comment-card{
    border-color:rgba(29,75,103,.10);
    background:#fff;
    box-shadow:0 7px 18px rgba(28,57,78,.04);
    opacity:1;
}
.viewer-client .review-comment-card blockquote{background:#fff8ec;border-left-color:#e79b3c}
.viewer-client .review-author-badge.client{color:#245b73;background:#e8f3f7}
.client-review-filter-bar{grid-template-columns:minmax(180px,280px);justify-content:end}
.client-review-filter-bar .review-filter-select{max-width:280px;width:100%;justify-self:end}

/* 7.7.5b work queue: bring new components onto the premium portal language. */
.viewer-internal .review-register-entry{
    position:relative;
    overflow:hidden;
    grid-template-columns:46px minmax(0,1fr) auto;
    gap:14px;
    align-items:center;
    padding:17px 18px;
    border:1px solid rgba(31,79,109,.11);
    background:
        radial-gradient(circle at 94% -5%,rgba(76,145,173,.14),transparent 28%),
        linear-gradient(145deg,#fff,#f3f9fb);
    box-shadow:0 14px 34px rgba(25,55,76,.06);
}
.viewer-internal .review-register-entry:before{
    content:"";
    position:absolute;
    left:0;top:0;bottom:0;
    width:4px;
    background:#3c829f;
}
.viewer-internal .review-register-entry.has-attention{
    border-color:rgba(210,153,61,.25);
    background:
        radial-gradient(circle at 94% -5%,rgba(239,178,76,.16),transparent 30%),
        linear-gradient(145deg,#fff,#fff9ed);
}
.viewer-internal .review-register-entry.has-attention:before{background:#d69a3e}
.viewer-internal .review-register-icon{
    width:42px;height:42px;border-radius:12px;
    background:linear-gradient(135deg,#173f5d,#2d7893);
    box-shadow:0 8px 18px rgba(24,67,92,.16);
}
.viewer-internal .review-register-entry h2{font-size:1.02rem;color:#173e59}
.viewer-internal .review-register-entry .button-secondary{white-space:nowrap}

.review-inbox-page-header{
    background:
        radial-gradient(circle at 91% 0%,rgba(85,160,188,.16),transparent 29%),
        radial-gradient(circle at 72% 120%,rgba(244,166,67,.12),transparent 31%),
        linear-gradient(125deg,#f7fbfd,#edf7fb 58%,#fff8ed);
}
.review-queue-summary-grid{gap:14px;margin:16px 0 20px}
.review-queue-summary-card{
    position:relative;
    overflow:hidden;
    min-height:88px;
    padding:17px 18px;
    border:1px solid rgba(29,74,102,.10);
    background:linear-gradient(145deg,#fff,#f6fafc);
    box-shadow:0 12px 28px rgba(27,57,78,.05);
}
.review-queue-summary-card:after{
    content:"";
    position:absolute;
    right:-25px;top:-28px;
    width:82px;height:82px;
    border:14px solid rgba(39,107,139,.055);
    border-radius:50%;
}
.review-queue-summary-card:nth-child(2){background:linear-gradient(145deg,#fff,#f2f8fb)}
.review-queue-summary-card:nth-child(3){background:linear-gradient(145deg,#fff,#f2f9f5)}
.review-queue-summary-icon{
    width:40px;height:40px;border-radius:12px;
    background:linear-gradient(135deg,#e8f2f7,#dcebf2);
    box-shadow:inset 0 1px rgba(255,255,255,.8);
}
.review-queue-summary-card strong{font-size:1.5rem}
.review-queue-card{
    position:relative;
    overflow:hidden;
    padding:18px 19px;
    border:1px solid rgba(28,74,102,.105);
    background:linear-gradient(145deg,#fff,#f8fbfc);
    box-shadow:0 12px 30px rgba(27,56,77,.05);
    transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
.review-queue-card:hover{transform:translateY(-1px);box-shadow:0 16px 36px rgba(27,56,77,.075);border-color:rgba(37,99,132,.18)}
.review-queue-card.needs-attention{
    border-left:0;
    border-color:rgba(211,157,67,.27);
    background:linear-gradient(145deg,#fff,#fffaf1);
}
.review-queue-card.needs-attention:before{
    content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#d7a04a;
}
.review-queue-round-icon{
    width:38px;height:38px;border-radius:11px;
    background:linear-gradient(135deg,#173f5d,#2c7892);
    box-shadow:0 7px 16px rgba(24,64,90,.14);
}
.review-queue-workload>div{
    min-width:76px;
    padding:9px 10px;
    border:1px solid rgba(28,75,104,.06);
    border-radius:11px;
    background:rgba(241,246,248,.86);
}
.review-queue-actions .button-secondary{box-shadow:0 6px 14px rgba(28,63,86,.055)}
.review-queue-empty{
    border:1px dashed rgba(46,105,132,.18);
    background:linear-gradient(145deg,#fff,#f4faf7);
}

@media(max-width:900px){
    .client-review-journey{grid-template-columns:1fr}
    .client-review-filter-bar{grid-template-columns:1fr}
    .client-review-filter-bar .review-filter-select{max-width:none;justify-self:stretch}
}
@media(max-width:700px){
    .viewer-internal .review-register-entry{grid-template-columns:42px minmax(0,1fr)}
    .viewer-internal .review-register-entry .button-secondary{grid-column:1/-1;width:100%;justify-content:center}
}

/* MVP 7.7.5e — documentreview in context */
.review-document-reader{
    background:
        radial-gradient(circle at 100% 0%,rgba(60,145,177,.10),transparent 30%),
        linear-gradient(180deg,#eef5f8 0%,#e6eef3 100%);
}
.review-reader-topbar{
    min-height:54px;
    gap:11px;
    padding:11px 14px;
    background:
        radial-gradient(circle at 92% -45%,rgba(255,161,67,.15),transparent 42%),
        linear-gradient(110deg,rgba(255,255,255,.98),rgba(239,247,251,.96));
}
.review-preview-docmark{
    display:grid;
    place-items:center;
    flex:0 0 auto;
    width:31px;
    height:31px;
    border-radius:9px;
    background:linear-gradient(145deg,#174d6d,#287d99);
    color:#fff;
    box-shadow:0 7px 15px rgba(25,80,108,.18);
    font-size:.69rem;
    font-weight:950;
}
.review-preview-heading{display:grid;gap:1px;min-width:0}
.review-preview-heading strong{color:#173f5c;font-size:.68rem;line-height:1.2}
.review-preview-heading span{color:#758692;font-size:.56rem;line-height:1.25}
.review-preview-live{
    margin-left:auto;
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:5px 9px;
    border-radius:999px;
    background:#e8f5ed;
    color:#337151;
    font-size:.57rem;
    font-weight:900;
    letter-spacing:.025em;
    text-transform:uppercase;
}
.review-preview-live:before{content:"";width:6px;height:6px;border-radius:50%;background:#63a27f}
.review-reader-navigation{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:8px;
    padding:14px;
    border-bottom:1px solid rgba(28,69,96,.09);
    background:
        radial-gradient(circle at 100% 0%,rgba(255,163,70,.08),transparent 28%),
        linear-gradient(135deg,rgba(255,255,255,.96),rgba(239,247,251,.94));
}
.review-reader-nav{
    appearance:none;
    display:flex;
    align-items:center;
    gap:8px;
    width:100%;
    min-width:0;
    min-height:42px;
    padding:7px 10px 7px 7px;
    border:1px solid rgba(26,69,103,.11);
    border-radius:11px;
    background:rgba(255,255,255,.88);
    color:#365970;
    box-shadow:0 4px 12px rgba(27,60,82,.035);
    font:inherit;
    font-size:.61rem;
    font-weight:820;
    line-height:1.2;
    text-align:left;
    cursor:pointer;
    transition:.16s ease;
}
.review-reader-nav span{
    display:grid;
    place-items:center;
    flex:0 0 auto;
    min-width:27px;
    height:27px;
    padding:0 4px;
    border-radius:8px;
    background:linear-gradient(145deg,#edf4f7,#e4eef3);
    color:#244d67;
    font-size:.51rem;
    font-weight:950;
    box-shadow:inset 0 0 0 1px rgba(28,73,100,.035);
}
.review-reader-nav:hover{
    border-color:rgba(40,111,143,.25);
    background:#fff;
    box-shadow:0 7px 17px rgba(27,66,91,.075);
    transform:translateY(-1px);
}
.review-reader-nav.is-active{
    border-color:#174967;
    background:linear-gradient(135deg,#123f5e,#1c6682);
    color:#fff;
    box-shadow:0 8px 19px rgba(23,73,103,.18);
}
.review-reader-nav.is-active span{background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.review-reader-status{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding:13px 18px;
    border-bottom:1px solid rgba(28,69,96,.09);
    background:linear-gradient(90deg,#f7fbfd,#fffaf3);
}
.review-reader-status>div{display:grid;gap:1px}
.review-reader-status .eyebrow{margin:0;font-size:.5rem}
.review-reader-status strong{color:#173f5c;font-size:.83rem}
.review-reader-status small{max-width:390px;color:#71818d;font-size:.58rem;line-height:1.45;text-align:right}
.review-reader-page{
    max-height:72vh;
    overflow:auto;
    margin:18px;
    padding:42px clamp(24px,5vw,58px) 54px;
    border:1px solid rgba(27,58,77,.08);
    background:#fff;
    box-shadow:0 14px 32px rgba(34,57,74,.10);
    scroll-behavior:smooth;
}
.review-reader-page [hidden]{display:none !important}
.review-reader-eyebrow{
    margin:1.8rem 0 .3rem;
    color:#2b6d89;
    font-size:.58rem;
    font-weight:950;
    letter-spacing:.085em;
    text-transform:uppercase;
}
.review-reader-h1{
    margin:2.35rem 0 .9rem;
    padding-bottom:.55rem;
    border-bottom:2px solid #dfeaf0;
    color:#123b58;
    font-size:1.42rem;
    line-height:1.16;
}
.review-reader-h1:first-child{margin-top:0}
.review-reader-h2{margin:1.65rem 0 .6rem;color:#174d69;font-size:1.02rem;line-height:1.25}
.review-reader-h3{margin:1.35rem 0 .5rem;color:#245b72;font-size:.88rem}
.review-reader-paragraph{
    margin:.56rem 0;
    color:#344f60;
    font-size:.76rem;
    line-height:1.68;
    white-space:pre-line;
}
.review-reader-caption{margin:1.1rem 0 .35rem;color:#67808f;font-size:.58rem;font-weight:850}
.review-reader-table-wrap{overflow-x:auto;margin:.55rem 0 1.35rem;border:1px solid #dce6eb;border-radius:10px}
.review-reader-table{width:100%;border-collapse:collapse;background:#fff;font-size:.65rem;line-height:1.38}
.review-reader-table td{min-width:110px;padding:8px 10px;border-right:1px solid #e5ecef;border-bottom:1px solid #e5ecef;vertical-align:top;color:#385366}
.review-reader-table tr:first-child td{background:#edf5f8;color:#173f5c;font-weight:850}
.review-reader-table tr:last-child td{border-bottom:0}
.review-reader-table td:last-child{border-right:0}
.review-preview-unavailable{margin-top:14px;padding:18px;border-radius:14px;background:#fff;color:#526b79;text-align:center}
.review-preview-unavailable strong{display:block;margin-bottom:4px;color:#214b65}
.review-preview-unavailable p{margin:0;font-size:.68rem;line-height:1.5}
.viewer-client .review-document-panel{min-width:0}
.viewer-client .review-feedback-panel{align-self:start}
@media (min-width:1181px){
    .viewer-client .review-workspace-refined{grid-template-columns:minmax(0,1.55fr) minmax(360px,.72fr)}
}
@media (max-width:820px){
    .review-reader-status{display:grid}
    .review-reader-status small{text-align:left;max-width:none}
    .review-reader-page{max-height:none;margin:12px;padding:28px 20px 38px}
    .review-reader-navigation{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 12px}
    .review-preview-live{display:none}
}
@media (max-width:520px){
    .review-reader-navigation{grid-template-columns:1fr}
    .review-reader-nav{min-height:40px}
}

/* MVP 7.7.5g — premium review navigation polish */
.review-document-reader{
    position:relative;
    overflow:hidden;
    border-color:rgba(36,92,124,.17);
    box-shadow:
        0 24px 58px rgba(26,61,84,.105),
        inset 0 1px 0 rgba(255,255,255,.82);
    background:
        radial-gradient(circle at 92% 2%,rgba(238,160,75,.13),transparent 27%),
        radial-gradient(circle at 4% 24%,rgba(71,155,188,.13),transparent 31%),
        linear-gradient(180deg,#edf6fa 0%,#e7f0f5 100%);
}
.review-reader-topbar{
    min-height:61px;
    padding:13px 16px;
    border-bottom:1px solid rgba(31,81,110,.10);
    background:
        radial-gradient(circle at 91% -35%,rgba(242,161,69,.23),transparent 38%),
        radial-gradient(circle at 6% 140%,rgba(54,142,178,.14),transparent 45%),
        linear-gradient(115deg,#ffffff 0%,#f2f9fc 62%,#fff8ee 100%);
}
.review-preview-docmark{
    width:34px;
    height:34px;
    border-radius:11px;
    background:
        radial-gradient(circle at 30% 18%,rgba(255,255,255,.22),transparent 36%),
        linear-gradient(145deg,#123f60,#287f9c);
    box-shadow:
        0 9px 19px rgba(21,76,105,.21),
        inset 0 1px 0 rgba(255,255,255,.18);
}
.review-preview-heading strong{font-size:.71rem;letter-spacing:-.01em}
.review-preview-heading span{color:#718692}
.review-preview-live{
    padding:6px 10px;
    border:1px solid rgba(72,145,104,.10);
    background:linear-gradient(135deg,#ecf8f0,#e2f3e9);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}
.review-reader-navigation{
    position:relative;
    gap:10px;
    padding:16px;
    border-bottom:1px solid rgba(32,82,111,.11);
    background:
        radial-gradient(circle at 100% 0%,rgba(238,158,66,.15),transparent 30%),
        radial-gradient(circle at 0% 100%,rgba(60,147,183,.11),transparent 37%),
        linear-gradient(130deg,#f7fbfd 0%,#edf7fb 58%,#fff8ed 100%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.82);
}
.review-reader-navigation:before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:3px;
    background:linear-gradient(180deg,#2b86a8 0%,#5eabc3 53%,#e6a04b 100%);
    opacity:.78;
}
.review-reader-nav{
    position:relative;
    isolation:isolate;
    overflow:hidden;
    gap:10px;
    min-height:50px;
    padding:9px 12px 9px 9px;
    border:1px solid rgba(30,79,108,.13);
    border-radius:14px;
    background:
        radial-gradient(circle at 105% -20%,rgba(238,167,89,.10),transparent 42%),
        linear-gradient(145deg,rgba(255,255,255,.98),rgba(243,249,252,.97));
    color:#284e66;
    box-shadow:
        0 7px 17px rgba(27,65,88,.065),
        inset 0 1px 0 rgba(255,255,255,.9);
    font-size:.62rem;
    font-weight:850;
    letter-spacing:-.004em;
    transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease,background .17s ease;
}
.review-reader-nav:after{
    content:"";
    position:absolute;
    z-index:-1;
    inset:auto -24px -34px auto;
    width:72px;
    height:72px;
    border-radius:50%;
    background:rgba(77,158,190,.075);
    transition:.18s ease;
}
.review-reader-nav span{
    min-width:31px;
    height:31px;
    border-radius:10px;
    background:
        linear-gradient(145deg,#e6f2f7,#dbeaf1);
    color:#174b68;
    box-shadow:
        inset 0 0 0 1px rgba(32,82,110,.055),
        0 3px 8px rgba(37,83,109,.06);
    font-size:.52rem;
}
.review-reader-nav:hover{
    border-color:rgba(37,111,146,.27);
    background:
        radial-gradient(circle at 103% -18%,rgba(239,164,79,.14),transparent 42%),
        linear-gradient(145deg,#fff,#f2f9fc);
    box-shadow:
        0 11px 24px rgba(25,70,96,.11),
        inset 0 1px 0 rgba(255,255,255,.95);
    transform:translateY(-2px);
}
.review-reader-nav:hover:after{transform:scale(1.18);background:rgba(68,151,185,.11)}
.review-reader-nav.is-active{
    border-color:rgba(18,66,94,.86);
    background:
        radial-gradient(circle at 100% 0%,rgba(239,164,75,.24),transparent 39%),
        radial-gradient(circle at 0% 100%,rgba(66,155,190,.20),transparent 44%),
        linear-gradient(135deg,#123d5c 0%,#174f6e 56%,#1d6984 100%);
    color:#fff;
    box-shadow:
        0 12px 27px rgba(18,64,91,.22),
        inset 0 1px 0 rgba(255,255,255,.13),
        inset 0 -2px 0 rgba(236,165,77,.32);
    transform:translateY(-1px);
}
.review-reader-nav.is-active:before{
    content:"";
    position:absolute;
    left:0;
    top:10px;
    bottom:10px;
    width:3px;
    border-radius:0 3px 3px 0;
    background:linear-gradient(180deg,#76c0d5,#f0ab55);
}
.review-reader-nav.is-active:after{
    background:rgba(255,255,255,.055);
    transform:scale(1.28);
}
.review-reader-nav.is-active span{
    background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(226,241,247,.95));
    color:#164966;
    box-shadow:
        0 5px 12px rgba(5,33,50,.16),
        inset 0 0 0 1px rgba(255,255,255,.45);
}
.review-reader-nav:first-child:not(.is-active) span{
    background:linear-gradient(145deg,#fff0d9,#f9dfb9);
    color:#835918;
}
.review-reader-status{
    padding:14px 18px;
    border-bottom:1px solid rgba(30,79,107,.10);
    background:
        radial-gradient(circle at 100% 40%,rgba(239,164,74,.10),transparent 31%),
        linear-gradient(90deg,#f7fbfd 0%,#f1f8fb 66%,#fffaf3 100%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.82);
}
.review-reader-status .eyebrow{color:#2a6985}
.review-reader-status strong{font-size:.87rem;color:#123f5d}
.review-reader-page{
    margin:19px;
    border:1px solid rgba(28,73,100,.10);
    box-shadow:
        0 17px 38px rgba(31,57,75,.11),
        0 2px 7px rgba(31,57,75,.055);
}
@media (max-width:820px){
    .review-reader-navigation{gap:8px;padding:12px}
    .review-reader-nav{min-height:47px}
}
@media (max-width:520px){
    .review-reader-nav{min-height:46px;padding:8px 10px 8px 8px}
}

/* MVP 7.7.5h — chapter card alignment polish */
.review-reader-nav{
    display:grid;
    grid-template-columns:36px minmax(0,1fr);
    align-items:center;
    column-gap:10px;
    min-height:52px;
    padding:9px 12px 9px 10px;
}
.review-reader-nav span{
    width:32px;
    min-width:32px;
    max-width:32px;
    height:32px;
    padding:0;
    justify-self:start;
    align-self:center;
    line-height:1;
}
.review-reader-nav > *:not(span){
    min-width:0;
}
/* Button text nodes have no wrapper; preserve a fixed text start by using the
   second grid track. Anonymous grid items are placed after the badge. */
.review-reader-nav{
    text-align:left;
    line-height:1.14;
}
@media (max-width:820px){
    .review-reader-nav{
        grid-template-columns:34px minmax(0,1fr);
        min-height:50px;
        padding:8px 10px 8px 9px;
        column-gap:9px;
    }
    .review-reader-nav span{
        width:30px;
        min-width:30px;
        max-width:30px;
        height:30px;
    }
}

/* MVP 7.7.5i — document-driven chapter navigation */
.review-reader-nav b{
    display:block;
    min-width:0;
    margin:0;
    color:inherit;
    font:inherit;
    font-weight:900;
    line-height:1.14;
    overflow-wrap:anywhere;
}
.review-reader-nav span{
    font-size:.48rem;
    letter-spacing:-.01em;
}

/* MVP 7.7.6 — centrale ProjectIssue-werkvoorraad */
.issue-module-card .module-overview-icon{background:linear-gradient(145deg,#153f61,#2e7fa3);box-shadow:0 10px 24px rgba(20,72,104,.2)}
.issue-center-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.compact-button{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;white-space:nowrap}
.issue-work-header{position:relative;overflow:hidden;background:linear-gradient(115deg,#f7fbfd 0%,#eef8fc 57%,#fff4e6 100%)}
.issue-work-header:after{content:"";position:absolute;right:-70px;top:-90px;width:260px;height:260px;border:28px solid rgba(230,159,70,.09);border-radius:50%;pointer-events:none}
.issue-work-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.issue-summary-card{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:12px;min-height:92px;padding:16px 17px;border:1px solid #dce8ef;border-radius:16px;background:linear-gradient(145deg,#fff,#f4f9fb);box-shadow:0 13px 28px rgba(28,63,85,.08);overflow:hidden}
.issue-summary-card:after{content:"";position:absolute;right:-24px;bottom:-40px;width:110px;height:110px;border-radius:50%;background:rgba(34,116,151,.055)}
.issue-summary-card.is-total{background:linear-gradient(135deg,#153f61,#245f82);border-color:#1c5272;color:#fff}.issue-summary-card.is-total:after{background:rgba(255,255,255,.07)}
.issue-summary-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e8f4f8;color:#184c6b;font-weight:900;box-shadow:inset 0 0 0 1px rgba(24,76,107,.07)}.is-total .issue-summary-icon{background:rgba(255,255,255,.14);color:#fff}
.issue-summary-card small{display:block;font-size:.56rem;font-weight:900;letter-spacing:.08em;color:#66808f}.is-total small{color:#cfe2ec}.issue-summary-card strong{display:block;margin:1px 0;font-size:1.35rem;line-height:1;color:#183d58}.is-total strong{color:#fff}.issue-summary-card p{margin:4px 0 0;font-size:.64rem;color:#718691}.is-total p{color:#d6e5ed}
.issue-work-panel{padding:0;overflow:hidden;border-color:#d8e6ed;background:linear-gradient(180deg,#fff 0,#f7fbfd 100%)}
.issue-work-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 24px 18px;background:linear-gradient(110deg,#f8fcfe,#eff8fb 68%,#fff5e8)}.issue-work-toolbar h2{margin:.12rem 0 .25rem}
.issue-work-add{position:relative}.issue-work-add>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;padding:10px 14px;border-radius:11px;background:#173f5e;color:#fff;font-size:.72rem;font-weight:900;box-shadow:0 9px 20px rgba(20,63,94,.18)}.issue-work-add>summary::-webkit-details-marker{display:none}.issue-work-add[open]>summary{background:#235f81}
.issue-quick-form{position:absolute;z-index:15;right:0;top:46px;width:min(680px,82vw);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;padding:18px;border:1px solid #cddde6;border-radius:15px;background:#fff;box-shadow:0 24px 60px rgba(24,54,74,.22)}.issue-quick-form label{display:grid;gap:5px}.issue-quick-form label>span,.issue-filter-bar label>span,.issue-work-state label>span{font-size:.55rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#69808e}.issue-quick-form input,.issue-quick-form textarea,.issue-quick-form select,.issue-filter-bar select,.issue-work-state select{width:100%;box-sizing:border-box;border:1px solid #cfdee6;border-radius:9px;background:#fff;padding:9px 10px;color:#24485f;font:inherit;font-size:.68rem}.issue-quick-form .wide{grid-column:1/-1}.issue-quick-actions{display:flex;justify-content:flex-end}
.issue-filter-bar{display:flex;align-items:flex-end;gap:11px;padding:13px 24px;border-top:1px solid rgba(208,224,232,.75);border-bottom:1px solid #dbe7ed;background:#fbfdfe}.issue-filter-bar label{display:grid;gap:4px;min-width:170px}.issue-filter-result{margin-left:auto;padding:6px 9px;border-radius:999px;background:#edf5f8;color:#507080;font-size:.61rem;font-weight:800}
.issue-work-list{display:grid;gap:10px;padding:18px 20px 22px}.issue-work-item{position:relative;display:grid;grid-template-columns:5px minmax(0,1fr) 180px;gap:15px;min-height:120px;border:1px solid #dce7ed;border-radius:15px;background:#fff;box-shadow:0 7px 20px rgba(29,61,80,.055);overflow:hidden;transition:transform .16s ease,box-shadow .16s ease}.issue-work-item:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(29,61,80,.09)}.issue-work-accent{background:#3b82a5}.issue-work-item.severity-info .issue-work-accent{background:#6aa4bd}.issue-work-item.severity-warning .issue-work-accent{background:#e3a342}.issue-work-item.severity-blocking .issue-work-accent{background:#c86656}.issue-work-item.is-resolved{opacity:.7;background:#f7fafb}
.issue-work-content{padding:15px 0}.issue-work-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:7px;color:#78909c;font-size:.57rem;font-weight:750}.issue-source-pill,.issue-client-pill{padding:3px 7px;border-radius:999px;background:#eaf4f8;color:#26617e;font-weight:900}.issue-client-pill{background:#fff0da;color:#8b621d}.issue-work-content h3{margin:0;color:#183f59;font-size:.84rem}.issue-work-content>p{max-width:850px;margin:5px 0;color:#5f7582;font-size:.69rem;line-height:1.48}.issue-lineage{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px;font-size:.58rem;color:#81919a}.issue-lineage a{color:#286b8f;font-weight:850;text-decoration:none}
.issue-response-box,.issue-resolution-box{margin-top:9px;padding:9px 11px;border-radius:10px;background:#f2f8fa;border:1px solid #dbe9ef}.issue-resolution-box{background:#f5f8f3;border-color:#dfe8d9}.issue-response-box small,.issue-resolution-box small{display:block;margin-bottom:3px;color:#56798b;font-size:.52rem;font-weight:900;letter-spacing:.06em}.issue-response-box p,.issue-resolution-box p{margin:0;color:#526b78;font-size:.65rem;line-height:1.4}
.issue-work-state{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:9px;padding:14px 15px 14px 0}.issue-severity-label,.issue-status-readonly{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:999px;background:#edf4f7;color:#3f667a;font-size:.56rem;font-weight:900}.issue-severity-label.severity-warning{background:#fff3df;color:#8b5f13}.issue-severity-label.severity-blocking{background:#fcebe8;color:#9d4338}.issue-severity-label.severity-info{background:#eaf5f9;color:#2f6d88}.issue-status-readonly{background:#eef1f8;color:#52677e}.issue-open-source{font-size:.62rem;text-align:center;text-decoration:none}.issue-work-empty{margin:18px 20px 22px}
@media(max-width:980px){.issue-work-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.issue-work-item{grid-template-columns:5px minmax(0,1fr)}.issue-work-state{grid-column:2;padding:0 15px 15px 0;display:grid;grid-template-columns:minmax(0,160px) minmax(0,180px);justify-content:start}.issue-work-state .issue-open-source{align-self:end}}
@media(max-width:680px){.issue-work-summary{grid-template-columns:1fr}.issue-work-toolbar{flex-direction:column}.issue-work-add{width:100%}.issue-work-add>summary{justify-content:center;width:100%;box-sizing:border-box}.issue-quick-form{position:static;width:100%;box-sizing:border-box;margin-top:10px;grid-template-columns:1fr}.issue-quick-form .wide{grid-column:auto}.issue-filter-bar{align-items:stretch;flex-direction:column}.issue-filter-bar label{min-width:0}.issue-filter-result{margin-left:0;align-self:flex-start}.issue-work-list{padding:12px}.issue-work-item{grid-template-columns:4px minmax(0,1fr)}.issue-work-state{grid-template-columns:1fr;padding-right:12px}.issue-work-content{padding-right:12px}}

/* MVP 7.7.6b — dashboard work-queue polish */
.review-module-card,.issue-module-card{
    position:relative;
    overflow:hidden;
    border-color:#d7e5ec;
    background:linear-gradient(145deg,#ffffff 0%,#f7fbfd 56%,#eef7fb 100%);
    box-shadow:0 10px 26px rgba(27,67,91,.075);
}
.review-module-card:before,.issue-module-card:before{
    content:"";
    position:absolute;
    left:0;top:0;right:0;
    height:3px;
    background:linear-gradient(90deg,#2e799c,#7bb8cf 70%,#e7a94f);
}
.review-module-card:after,.issue-module-card:after{
    content:"";
    position:absolute;
    width:120px;height:120px;
    right:-46px;bottom:-66px;
    border-radius:50%;
    background:rgba(38,116,151,.055);
    pointer-events:none;
}
.review-module-card .module-overview-icon{
    background:linear-gradient(145deg,#d9a541,#f1c66e);
    color:#fff;
    box-shadow:0 10px 22px rgba(182,128,31,.20);
}
.issue-module-card .module-overview-icon{
    background:linear-gradient(145deg,#153f61,#2e7fa3);
    color:#fff;
    box-shadow:0 10px 24px rgba(20,72,104,.20);
}
.review-module-card .module-arrow,.issue-module-card .module-arrow{
    display:grid;
    place-items:center;
    width:30px;height:30px;
    border-radius:10px;
    background:rgba(255,255,255,.76);
    border:1px solid rgba(172,198,212,.55);
    color:#245875;
    box-shadow:0 5px 14px rgba(27,67,91,.06);
}
.review-module-card:hover,.issue-module-card:hover{
    border-color:#bfd7e3;
    box-shadow:0 16px 34px rgba(27,67,91,.12);
}
.issue-center-more{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    margin-top:9px;
    padding:10px 12px;
    border:1px dashed #cbdde6;
    border-radius:11px;
    background:linear-gradient(90deg,#f8fbfd,#f2f8fb);
    color:#245875;
    text-decoration:none;
}
.issue-center-more span{font-size:.65rem;font-weight:900}.issue-center-more small{font-size:.6rem;color:#738894}.issue-center-more strong{font-size:.85rem}
.issue-center-more:hover{border-style:solid;border-color:#a9c9d8;background:#eef7fb}

/* =============================================================
   MVP 7.7.6c — consistente projectnavigatie + modulekaart-alignment
   ============================================================= */
/* One stable navigation on every internal project screen. */
.project-primary-tabs{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
}
.viewer-internal .project-primary-tabs .tab{
    white-space:nowrap;
}

/* Review and issue modules use the exact same visual system as the
   established dashboard modules; only their palette is unique. */
.viewer-internal .internal-module-grid .review-module-card,
.viewer-internal .internal-module-grid .issue-module-card{
    position:relative;
    overflow:hidden;
    border-width:1px!important;
    border-color:rgba(149,181,198,.58)!important;
    box-shadow:0 16px 34px rgba(15,47,74,.09)!important;
}
.viewer-internal .internal-module-grid .review-module-card{
    background:linear-gradient(145deg,#fffdf8,#f8edcf)!important;
}
.viewer-internal .internal-module-grid .issue-module-card{
    background:linear-gradient(145deg,#f8fdff,#dceff8)!important;
}
.viewer-internal .internal-module-grid .review-module-card:before,
.viewer-internal .internal-module-grid .issue-module-card:before,
.viewer-internal .internal-module-grid .review-module-card:after,
.viewer-internal .internal-module-grid .issue-module-card:after{
    content:none!important;
    display:none!important;
}
.viewer-internal .internal-module-grid .review-module-card .module-overview-icon{
    background:linear-gradient(145deg,#d1ab55,#9b782c)!important;
    color:#fff!important;
    box-shadow:0 10px 22px rgba(15,47,74,.15)!important;
}
.viewer-internal .internal-module-grid .issue-module-card .module-overview-icon{
    background:linear-gradient(145deg,#438db4,#236887)!important;
    color:#fff!important;
    box-shadow:0 10px 22px rgba(15,47,74,.15)!important;
}
.viewer-internal .internal-module-grid .review-module-card .module-arrow,
.viewer-internal .internal-module-grid .issue-module-card .module-arrow{
    width:30px!important;
    height:30px!important;
    border:0!important;
    border-radius:9px!important;
    background:rgba(255,255,255,.58)!important;
    color:#31556c!important;
    box-shadow:none!important;
}
.viewer-internal .internal-module-grid .review-module-card:hover,
.viewer-internal .internal-module-grid .issue-module-card:hover{
    transform:translateY(-4px);
    border-color:rgba(149,181,198,.58)!important;
    box-shadow:0 23px 42px rgba(15,47,74,.14)!important;
    filter:saturate(1.06);
}


/* MVP 7.7.6d — restore premium accent bars on review/issue dashboard cards */
.viewer-internal .internal-module-grid .review-module-card:before,
.viewer-internal .internal-module-grid .issue-module-card:before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    left:0!important;
    right:0!important;
    top:0!important;
    height:4px!important;
}
.viewer-internal .internal-module-grid .review-module-card:before{
    background:#c2a24f!important;
}
.viewer-internal .internal-module-grid .issue-module-card:before{
    background:#87a9bd!important;
}


/* MVP 7.7.6e — review chapter readability + clean chapter boundaries */
.review-reader-navigation{
    grid-template-columns:repeat(auto-fit,minmax(165px,1fr));
}
.review-reader-nav{
    grid-template-columns:40px minmax(0,1fr);
    column-gap:11px;
    min-height:56px;
    padding:10px 13px 10px 10px;
}
.review-reader-nav span{
    width:36px;
    min-width:36px;
    max-width:36px;
    height:36px;
    font-size:.56rem;
    font-weight:900;
}
.review-reader-nav b{
    font-size:.68rem;
    line-height:1.18;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
}
@media (max-width:820px){
    .review-reader-navigation{grid-template-columns:repeat(2,minmax(0,1fr));}
    .review-reader-nav{grid-template-columns:38px minmax(0,1fr);min-height:54px;}
    .review-reader-nav span{width:34px;min-width:34px;max-width:34px;height:34px;font-size:.54rem;}
    .review-reader-nav b{font-size:.66rem;}
}
@media (max-width:520px){
    .review-reader-navigation{grid-template-columns:1fr;}
}

/* MVP 7.7.6f — allow the quick-add issue form to escape the work panel */
.issue-work-panel{
    overflow:visible;
}
.issue-work-toolbar{
    position:relative;
    z-index:2;
    border-top-left-radius:inherit;
    border-top-right-radius:inherit;
}
.issue-work-add[open]{
    z-index:30;
}
.issue-quick-form{
    z-index:40;
}


/* =============================================================
   MVP 7.7.7 — artifact- en versietijdlijn
   ============================================================= */
.history-page-header{position:relative;overflow:hidden;background:linear-gradient(115deg,#eef9fd 0%,#f9fcfd 58%,#fff1df 100%)}
.history-page-header:after{content:"";position:absolute;right:-58px;top:-92px;width:270px;height:270px;border:30px solid rgba(223,151,61,.10);border-radius:50%;pointer-events:none}
.history-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.history-summary-card{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr);align-items:center;gap:12px;min-height:98px;padding:16px 17px;border:1px solid #d9e7ee;border-radius:16px;background:linear-gradient(145deg,#fff,#f4f9fb);box-shadow:0 13px 30px rgba(25,59,82,.075);overflow:hidden}
.history-summary-card:after{content:"";position:absolute;right:-30px;bottom:-48px;width:120px;height:120px;border-radius:50%;background:rgba(40,121,157,.055)}
.history-summary-card.is-primary{background:linear-gradient(135deg,#173f5e,#286b8f);border-color:#235d7d;color:#fff}.history-summary-card.is-primary:after{background:rgba(255,255,255,.07)}
.history-summary-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#e7f3f8;color:#1b5876;font-size:.78rem;font-weight:950;box-shadow:inset 0 0 0 1px rgba(27,88,118,.06)}.is-primary .history-summary-icon{background:rgba(255,255,255,.14);color:#fff}
.history-summary-card small{display:block;color:#68808e;font-size:.55rem;font-weight:900;letter-spacing:.075em}.is-primary small{color:#cee2ec}.history-summary-card strong{display:block;margin:2px 0;color:#173e59;font-size:1.28rem;line-height:1}.is-primary strong{color:#fff}.history-summary-card p{margin:5px 0 0;color:#708590;font-size:.63rem;line-height:1.3}.is-primary p{color:#d8e7ee}
.history-lineage-panel,.history-timeline-panel{padding:0;overflow:hidden;border-color:#d8e5ec;background:linear-gradient(180deg,#fff,#f8fbfc)}
.history-lineage-panel{margin-bottom:16px}.history-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:21px 24px 17px;background:linear-gradient(110deg,#f8fcfe,#eef8fb 68%,#fff5e8);border-bottom:1px solid #dbe8ee}.history-section-heading h2{margin:.12rem 0 .25rem}.history-section-heading .muted{margin:0;max-width:800px;font-size:.7rem;line-height:1.45}.history-event-count{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#eaf4f8;color:#315f78;font-size:.6rem;font-weight:850}
.history-lineage-list{display:grid;gap:9px;padding:17px 20px 21px}.history-lineage-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 15px;border:1px solid #dce8ee;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(27,61,82,.045)}.history-lineage-row.is-current{border-color:#98bfd1;background:linear-gradient(120deg,#f5fbfe,#fff 74%,#fff5e8);box-shadow:0 10px 24px rgba(31,82,111,.09)}
.history-version-badge{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:linear-gradient(145deg,#194969,#2b789c);color:#fff;font-size:.78rem;font-weight:950;box-shadow:0 8px 18px rgba(23,71,101,.16)}.history-lineage-row.is-current .history-version-badge{background:linear-gradient(145deg,#e1ab46,#bd7f22)}
.history-lineage-main{min-width:0}.history-lineage-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.history-lineage-title strong{color:#183e59;font-size:.82rem}.history-lineage-title span{padding:4px 7px;border-radius:999px;background:#e7f4eb;color:#3c7250;font-size:.53rem;font-weight:900}
.history-chain{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:8px}.history-chain>b{color:#96a8b2;font-size:.7rem}.history-chain-node{display:inline-flex;align-items:center;padding:5px 8px;border-radius:8px;background:#edf5f8;color:#32647d;font-size:.59rem;font-weight:850}.history-chain-node.intake-node{background:#edf6f0;color:#397158}.history-chain-node.review-node{background:#fff3dd;color:#8a621f}.history-chain-node.result-node{background:#f0edf8;color:#62558a}.history-lineage-meta{margin:8px 0 0;color:#7a8e99;font-size:.57rem}.history-lineage-actions{display:grid;justify-items:end;gap:6px;min-width:118px}.history-lineage-actions .text-link{font-size:.59rem}
.history-timeline{position:relative;padding:18px 22px 24px}.history-timeline:before{content:"";position:absolute;left:48px;top:18px;bottom:24px;width:2px;background:linear-gradient(#9bc6d8,#dceaf0 82%,transparent)}
.history-event{position:relative;display:grid;grid-template-columns:54px minmax(0,1fr);gap:13px;margin-bottom:10px}.history-event:last-child{margin-bottom:0}.history-event-rail{position:relative;z-index:2;display:flex;justify-content:center;padding-top:13px}.history-event-marker{display:grid;place-items:center;width:34px;height:34px;border:4px solid #f8fbfc;border-radius:11px;background:#2a7498;color:#fff;font-size:.62rem;font-weight:950;box-shadow:0 5px 12px rgba(28,80,108,.14)}
.history-event-intake .history-event-marker{background:#4d9275}.history-event-review .history-event-marker{background:#c89636}.history-event-reanalysis .history-event-marker{background:#796aaa}.history-event.is-current .history-event-marker{outline:2px solid rgba(222,158,55,.34)}
.history-event-card{padding:14px 16px;border:1px solid #dce7ed;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(28,61,81,.045)}.history-event.is-current .history-event-card{border-color:#b8d3df;background:linear-gradient(110deg,#fff,#f4fafc 76%,#fff6e7)}
.history-event-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.history-event-top .eyebrow{margin:0 0 3px}.history-event-top h3{margin:0;color:#183f5a;font-size:.82rem}.history-event-top time{display:grid;justify-items:end;color:#607b8a;font-size:.61rem;font-weight:850;white-space:nowrap}.history-event-top time small{margin-top:1px;color:#95a4ac;font-size:.54rem}.history-event-card>p{margin:6px 0;color:#607682;font-size:.67rem;line-height:1.45}.history-event-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.history-event-meta span{padding:4px 7px;border-radius:999px;background:#eef4f7;color:#577482;font-size:.54rem;font-weight:800}.history-event-link{display:inline-flex;margin-top:9px;font-size:.59rem}.history-empty{margin:18px 20px 22px}
@media(max-width:980px){.history-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-lineage-row{grid-template-columns:52px minmax(0,1fr)}.history-lineage-actions{grid-column:2;display:flex;justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:680px){.history-summary-grid{grid-template-columns:1fr}.history-section-heading{flex-direction:column}.history-lineage-list{padding:12px}.history-lineage-row{grid-template-columns:42px minmax(0,1fr);gap:10px;padding:12px}.history-version-badge{width:40px;height:40px}.history-lineage-actions{grid-column:1/-1}.history-timeline{padding:14px 12px 18px}.history-timeline:before{left:29px}.history-event{grid-template-columns:35px minmax(0,1fr);gap:9px}.history-event-marker{width:28px;height:28px;border-radius:9px}.history-event-top{flex-direction:column;gap:5px}.history-event-top time{justify-items:start}}


/* =============================================================
   MVP 7.7.7a — compact project history
   Preserve full lineage, reduce vertical footprint.
   ============================================================= */
.history-page-header{padding-top:24px!important;padding-bottom:22px!important}
.history-page-header h1{margin:.08rem 0 .18rem!important}
.history-page-header .muted{margin:.2rem 0 0!important}
.history-summary-grid{gap:9px!important;margin:12px 0!important}
.history-summary-card{
    grid-template-columns:36px minmax(0,1fr)!important;
    gap:9px!important;
    min-height:68px!important;
    padding:10px 12px!important;
    border-radius:13px!important;
    box-shadow:0 8px 20px rgba(25,59,82,.06)!important;
}
.history-summary-card:after{width:88px!important;height:88px!important;right:-30px!important;bottom:-40px!important}
.history-summary-icon{width:34px!important;height:34px!important;border-radius:10px!important;font-size:.66rem!important}
.history-summary-card small{font-size:.49rem!important;letter-spacing:.065em!important}
.history-summary-card strong{display:inline-block!important;margin:1px 6px 0 0!important;font-size:1rem!important}
.history-summary-card p{display:inline!important;margin:0!important;font-size:.56rem!important;line-height:1.2!important}
.history-lineage-panel{margin-bottom:12px!important}
.history-section-heading{padding:14px 18px 12px!important;align-items:center!important}
.history-section-heading h2{font-size:1.08rem!important;margin:.08rem 0 .14rem!important}
.history-section-heading .muted{font-size:.62rem!important;line-height:1.35!important}
.history-event-count{padding:4px 7px!important;font-size:.54rem!important}
.history-lineage-list{gap:6px!important;padding:10px 12px 13px!important}
.history-lineage-row{
    grid-template-columns:38px minmax(0,1fr) auto!important;
    gap:10px!important;
    min-height:0!important;
    padding:8px 10px!important;
    border-radius:11px!important;
    box-shadow:0 3px 10px rgba(27,61,82,.035)!important;
}
.history-version-badge{width:34px!important;height:34px!important;border-radius:10px!important;font-size:.64rem!important;box-shadow:0 5px 12px rgba(23,71,101,.12)!important}
.history-lineage-title strong{font-size:.73rem!important}
.history-lineage-title span{padding:3px 6px!important;font-size:.47rem!important}
.history-chain{gap:5px!important;margin-top:4px!important}
.history-chain>b{font-size:.57rem!important}
.history-chain-node{padding:3px 6px!important;border-radius:6px!important;font-size:.51rem!important}
.history-lineage-meta{margin:4px 0 0!important;font-size:.5rem!important}
.history-lineage-actions{gap:3px!important;min-width:102px!important}.history-lineage-actions .text-link{font-size:.52rem!important}

/* Timeline as a compact activity log rather than large stacked cards. */
.history-timeline{padding:9px 14px 13px!important}
.history-timeline:before{left:31px!important;top:10px!important;bottom:14px!important;width:1px!important}
.history-event{grid-template-columns:36px minmax(0,1fr)!important;gap:8px!important;margin-bottom:4px!important}
.history-event-rail{padding-top:8px!important}
.history-event-marker{width:23px!important;height:23px!important;border-width:3px!important;border-radius:8px!important;font-size:.48rem!important;box-shadow:0 3px 8px rgba(28,80,108,.11)!important}
.history-event-card{
    display:grid!important;
    grid-template-columns:minmax(180px,.85fr) minmax(0,1.35fr) auto!important;
    align-items:center!important;
    column-gap:12px!important;
    padding:7px 10px!important;
    border-radius:10px!important;
    box-shadow:none!important;
}
.history-event-top{display:block!important;min-width:0!important}
.history-event-top .eyebrow{margin:0 0 1px!important;font-size:.48rem!important}
.history-event-top h3{font-size:.68rem!important;line-height:1.2!important}
.history-event-top time{position:absolute!important;right:10px!important;top:7px!important;display:flex!important;gap:4px!important;align-items:center!important;font-size:.52rem!important}
.history-event-top time small{margin:0!important;font-size:.48rem!important}
.history-event-card{position:relative!important;padding-right:92px!important}
.history-event-card>p{margin:0!important;font-size:.58rem!important;line-height:1.3!important}
.history-event-meta{margin:0!important;gap:4px!important}
.history-event-meta span{padding:3px 5px!important;font-size:.47rem!important}
.history-event-link{margin:0!important;font-size:.5rem!important;white-space:nowrap!important}

@media(max-width:980px){
    .history-lineage-row{grid-template-columns:38px minmax(0,1fr)!important}
    .history-lineage-actions{grid-column:2!important;display:flex!important;gap:10px!important}
    .history-event-card{grid-template-columns:1fr!important;gap:4px!important;padding-right:92px!important}
    .history-event-meta{margin-top:2px!important}
    .history-event-link{margin-top:2px!important}
}
@media(max-width:680px){
    .history-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    .history-summary-card{grid-template-columns:30px minmax(0,1fr)!important;padding:9px!important}
    .history-summary-icon{width:29px!important;height:29px!important}
    .history-section-heading{padding:12px!important}
    .history-lineage-list{padding:8px!important}
    .history-lineage-row{grid-template-columns:32px minmax(0,1fr)!important;padding:8px!important}
    .history-version-badge{width:30px!important;height:30px!important}
    .history-lineage-actions{grid-column:1/-1!important}
    .history-timeline{padding:8px!important}
    .history-timeline:before{left:22px!important}
    .history-event{grid-template-columns:28px minmax(0,1fr)!important;gap:6px!important}
    .history-event-marker{width:21px!important;height:21px!important}
    .history-event-card{padding:7px 8px!important}
    .history-event-top time{position:static!important;margin-top:2px!important;justify-content:flex-start!important}
}


/* =============================================================
   MVP 7.7.7b — collapsible compact history panels
   ============================================================= */
.history-heading-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.history-collapse-toggle{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #c8dce6;border-radius:9px;background:rgba(255,255,255,.82);color:#285b76;font:inherit;font-size:.56rem;font-weight:900;cursor:pointer;box-shadow:0 3px 10px rgba(27,61,82,.045);transition:background .15s ease,border-color .15s ease,transform .15s ease}
.history-collapse-toggle:hover{background:#fff;border-color:#9fc2d3;transform:translateY(-1px)}
.history-collapse-toggle b{font-size:.72rem;line-height:1;transition:transform .18s ease}
.history-collapsible:not(.is-collapsed) .history-collapse-toggle b{transform:rotate(180deg)}
.history-collapsible.is-collapsed .history-lineage-list .history-lineage-row:nth-child(n+2){display:none}
.history-collapsible.is-collapsed .history-timeline .history-event:nth-child(n+4){display:none}
.history-collapsible.is-collapsed .history-lineage-list{padding-bottom:10px!important}
.history-collapsible.is-collapsed .history-timeline{padding-bottom:10px!important}
.history-collapsible.is-collapsed .history-timeline:before{bottom:14px!important}
@media(max-width:680px){.history-heading-actions{width:100%;justify-content:space-between}.history-collapse-toggle{font-size:.54rem}}


/* =============================================================
   MVP 7.7.7c — rich history panels + collapsible overview
   Restore the richer 7.7.7 presentation while keeping 7.7.7b's
   default collapsed state (1 BLVC version / 3 timeline events).
   ============================================================= */
.history-page-header{
    padding-top:32px!important;
    padding-bottom:30px!important;
}
.history-page-header h1{margin:.12rem 0 .25rem!important}
.history-page-header .muted{margin:.25rem 0 0!important}

.history-summary-grid{
    gap:12px!important;
    margin:18px 0!important;
}
.history-summary-card{
    grid-template-columns:46px minmax(0,1fr)!important;
    gap:12px!important;
    min-height:98px!important;
    padding:16px 17px!important;
    border-radius:16px!important;
    box-shadow:0 13px 30px rgba(25,59,82,.075)!important;
}
.history-summary-card:after{
    width:120px!important;
    height:120px!important;
    right:-30px!important;
    bottom:-48px!important;
}
.history-summary-icon{
    width:44px!important;
    height:44px!important;
    border-radius:13px!important;
    font-size:.78rem!important;
}
.history-summary-card small{font-size:.55rem!important;letter-spacing:.075em!important}
.history-summary-card strong{display:block!important;margin:2px 0!important;font-size:1.28rem!important}
.history-summary-card p{display:block!important;margin:5px 0 0!important;font-size:.63rem!important;line-height:1.3!important}

.history-lineage-panel{margin-bottom:16px!important}
.history-section-heading{
    padding:21px 24px 17px!important;
    align-items:flex-start!important;
}
.history-section-heading h2{font-size:initial!important;margin:.12rem 0 .25rem!important}
.history-section-heading .muted{font-size:.7rem!important;line-height:1.45!important}
.history-event-count{padding:6px 9px!important;font-size:.6rem!important}
.history-collapse-toggle{
    padding:7px 10px!important;
    border-radius:10px!important;
    font-size:.6rem!important;
}
.history-lineage-list{gap:9px!important;padding:17px 20px 21px!important}
.history-lineage-row{
    grid-template-columns:52px minmax(0,1fr) auto!important;
    gap:14px!important;
    min-height:0!important;
    padding:14px 15px!important;
    border-radius:14px!important;
    box-shadow:0 6px 18px rgba(27,61,82,.045)!important;
}
.history-lineage-row.is-current{box-shadow:0 10px 24px rgba(31,82,111,.09)!important}
.history-version-badge{
    width:46px!important;
    height:46px!important;
    border-radius:13px!important;
    font-size:.78rem!important;
    box-shadow:0 8px 18px rgba(23,71,101,.16)!important;
}
.history-lineage-title strong{font-size:.82rem!important}
.history-lineage-title span{padding:4px 7px!important;font-size:.53rem!important}
.history-chain{gap:7px!important;margin-top:8px!important}
.history-chain>b{font-size:.7rem!important}
.history-chain-node{padding:5px 8px!important;border-radius:8px!important;font-size:.59rem!important}
.history-lineage-meta{margin:8px 0 0!important;font-size:.57rem!important}
.history-lineage-actions{gap:6px!important;min-width:118px!important}
.history-lineage-actions .text-link{font-size:.59rem!important}

.history-timeline{padding:18px 22px 24px!important}
.history-timeline:before{
    left:48px!important;
    top:18px!important;
    bottom:24px!important;
    width:2px!important;
}
.history-event{
    grid-template-columns:54px minmax(0,1fr)!important;
    gap:13px!important;
    margin-bottom:10px!important;
}
.history-event-rail{padding-top:13px!important}
.history-event-marker{
    width:34px!important;
    height:34px!important;
    border-width:4px!important;
    border-radius:11px!important;
    font-size:.62rem!important;
    box-shadow:0 5px 12px rgba(28,80,108,.14)!important;
}
.history-event-card{
    position:relative!important;
    display:block!important;
    padding:14px 16px!important;
    border-radius:14px!important;
    box-shadow:0 6px 18px rgba(28,61,81,.045)!important;
}
.history-event-top{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important}
.history-event-top .eyebrow{margin:0 0 3px!important;font-size:inherit!important}
.history-event-top h3{font-size:.82rem!important;line-height:normal!important}
.history-event-top time{
    position:static!important;
    display:grid!important;
    justify-items:end!important;
    gap:0!important;
    font-size:.61rem!important;
}
.history-event-top time small{margin-top:1px!important;font-size:.54rem!important}
.history-event-card>p{margin:6px 0!important;font-size:.67rem!important;line-height:1.45!important}
.history-event-meta{margin-top:8px!important;gap:5px!important}
.history-event-meta span{padding:4px 7px!important;font-size:.54rem!important}
.history-event-link{display:inline-flex!important;margin-top:9px!important;font-size:.59rem!important;white-space:normal!important}

/* Keep the collapsed behaviour from 7.7.7b. */
.history-collapsible.is-collapsed .history-lineage-list .history-lineage-row:nth-child(n+2){display:none!important}
.history-collapsible.is-collapsed .history-timeline .history-event:nth-child(n+4){display:none!important}
.history-collapsible.is-collapsed .history-lineage-list{padding-bottom:17px!important}
.history-collapsible.is-collapsed .history-timeline{padding-bottom:18px!important}
.history-collapsible.is-collapsed .history-timeline:before{bottom:24px!important}

@media(max-width:980px){
    .history-lineage-row{grid-template-columns:52px minmax(0,1fr)!important}
    .history-lineage-actions{grid-column:2!important;display:flex!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:10px!important}
    .history-event-card{display:block!important;padding:14px 16px!important}
}
@media(max-width:680px){
    .history-page-header{padding-top:24px!important;padding-bottom:22px!important}
    .history-summary-grid{grid-template-columns:1fr!important}
    .history-summary-card{grid-template-columns:42px minmax(0,1fr)!important;padding:13px!important;min-height:84px!important}
    .history-summary-icon{width:40px!important;height:40px!important}
    .history-section-heading{padding:15px!important}
    .history-heading-actions{width:100%;justify-content:space-between}
    .history-lineage-list{padding:12px!important}
    .history-lineage-row{grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important;padding:12px!important}
    .history-version-badge{width:40px!important;height:40px!important}
    .history-lineage-actions{grid-column:1/-1!important}
    .history-timeline{padding:14px 12px 18px!important}
    .history-timeline:before{left:29px!important;top:14px!important;bottom:18px!important}
    .history-event{grid-template-columns:35px minmax(0,1fr)!important;gap:9px!important;margin-bottom:9px!important}
    .history-event-marker{width:28px!important;height:28px!important;border-radius:9px!important}
    .history-event-card{padding:12px 13px!important}
    .history-event-top{flex-direction:column!important;gap:5px!important}
    .history-event-top time{justify-items:start!important}
}


/* MVP 7.7.7d — compact current-state + mini timeline on project overview */
.overview-history-strip{
    display:grid;
    grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);
    gap:0;
    margin-bottom:16px;
    padding:0!important;
    overflow:hidden;
    border-color:#d7e5ec;
    background:linear-gradient(135deg,#ffffff 0%,#f7fbfd 58%,#eef7fb 100%);
    box-shadow:0 14px 32px rgba(20,58,82,.075);
}
.overview-history-current{padding:18px 20px 17px}
.overview-history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:13px}
.overview-history-heading h2,.overview-mini-history-head h3{margin:.12rem 0 0}
.overview-current-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.overview-current-item{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;min-height:58px;padding:9px 10px;border:1px solid rgba(198,216,226,.8);border-radius:11px;background:rgba(255,255,255,.78)}
.overview-current-marker{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;color:#fff;font-size:.63rem;font-weight:900;box-shadow:0 6px 14px rgba(24,61,84,.12)}
.overview-current-marker.intake{background:linear-gradient(145deg,#5ca184,#34735f)}
.overview-current-marker.blvc{background:linear-gradient(145deg,#438db4,#236887)}
.overview-current-marker.review{background:linear-gradient(145deg,#d1ab55,#9b782c)}
.overview-current-item small{display:block;color:#748894;font-size:.55rem;font-weight:850;text-transform:uppercase;letter-spacing:.045em}
.overview-current-item strong{display:block;margin-top:1px;color:#173e59;font-size:.93rem}
.overview-mini-history{padding:17px 18px;border-left:1px solid #dce8ee;background:linear-gradient(150deg,rgba(240,248,252,.76),rgba(255,248,236,.55))}
.overview-mini-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:9px}
.overview-mini-history-head>span{display:inline-flex;padding:4px 7px;border-radius:999px;background:#fff;color:#6c8290;font-size:.52rem;font-weight:850;border:1px solid #dbe6eb}
.overview-mini-timeline{display:grid;gap:5px}
.overview-mini-event{display:grid;grid-template-columns:29px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:43px;padding:6px 8px;border-radius:9px;color:inherit;text-decoration:none;transition:background .15s ease,transform .15s ease}
.overview-mini-event:hover{background:rgba(255,255,255,.82);transform:translateX(2px)}
.overview-mini-marker{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#eaf2f6;color:#315f78;font-size:.52rem;font-weight:900}
.overview-mini-marker.kind-intake{background:#e7f3ec;color:#397053}
.overview-mini-marker.kind-artifact{background:#e5f1f7;color:#276581}
.overview-mini-marker.kind-review{background:#fbf1d8;color:#826a28}
.overview-mini-marker.kind-reanalysis{background:#f1eafa;color:#685890}
.overview-mini-event strong{display:block;color:#24495f;font-size:.68rem;line-height:1.2}
.overview-mini-event small{display:block;margin-top:2px;color:#7b8d97;font-size:.53rem}
.overview-mini-arrow{color:#7892a0;font-weight:850;font-size:.72rem}
.overview-mini-empty{padding:12px;border:1px dashed #cbdde6;border-radius:9px;color:#718591;font-size:.65rem;background:rgba(255,255,255,.55)}
@media(max-width:980px){.overview-history-strip{grid-template-columns:1fr}.overview-mini-history{border-left:0;border-top:1px solid #dce8ee}.overview-current-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.overview-current-grid{grid-template-columns:1fr}.overview-history-heading{align-items:flex-start;flex-direction:column}.overview-history-current,.overview-mini-history{padding:15px}}


/* MVP 7.7.7e — functional project moment on overview */
.overview-project-moment{
    position:relative;
    margin-bottom:16px;
    padding:0!important;
    overflow:hidden;
    border-color:rgba(149,181,198,.58)!important;
    background:linear-gradient(145deg,#ffffff 0%,#f7fbfd 60%,#fff7ea 100%)!important;
    box-shadow:0 16px 34px rgba(15,47,74,.09)!important;
}
.overview-project-moment:before{
    content:"";
    position:absolute;
    left:0;right:0;top:0;
    height:4px;
    background:linear-gradient(90deg,#438db4 0 36%,#5ca184 36% 64%,#d1ab55 64% 82%,#e28d58 82% 100%);
}
.overview-project-moment:after{
    content:"";
    position:absolute;
    right:-68px;top:-104px;
    width:250px;height:250px;
    border:26px solid rgba(224,161,61,.07);
    border-radius:50%;
    pointer-events:none;
}
.overview-moment-head{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:19px 20px 13px}
.overview-moment-head h2{margin:.12rem 0 0;font-size:1.12rem}
.overview-moment-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 20px 15px}
.overview-moment-block{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:center;min-height:76px;padding:12px 13px;border:1px solid rgba(199,216,226,.85);border-radius:13px;background:rgba(255,255,255,.8);box-shadow:0 5px 14px rgba(24,61,84,.04)}
.overview-moment-block.needs-action{border-color:#e2c487;background:linear-gradient(145deg,#fffdf8,#fff4df)}
.overview-moment-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:#fff;font-size:.68rem;font-weight:950;box-shadow:0 8px 18px rgba(24,61,84,.12)}
.overview-moment-icon.current{background:linear-gradient(145deg,#5ca184,#34735f)}
.overview-moment-icon.latest{background:linear-gradient(145deg,#438db4,#236887)}
.overview-moment-icon.action{background:linear-gradient(145deg,#d1ab55,#9b782c)}
.overview-moment-copy{min-width:0}.overview-moment-copy small{display:block;margin-bottom:2px;color:#728794;font-size:.54rem;font-weight:900;letter-spacing:.055em;text-transform:uppercase}.overview-moment-copy strong,.overview-moment-event{display:block;color:#173e59;font-size:.76rem;font-weight:900;line-height:1.25}.overview-moment-event{text-decoration:none}.overview-moment-event:hover{text-decoration:underline}.overview-moment-copy p{margin:3px 0 0;color:#6e818d;font-size:.58rem;line-height:1.35}
.overview-moment-trail{position:relative;z-index:1;display:flex;align-items:center;gap:8px;min-width:0;padding:10px 20px 12px;border-top:1px solid rgba(207,222,230,.78);background:rgba(244,249,252,.64);overflow:hidden}
.overview-moment-trail-label{flex:0 0 auto;color:#748995;font-size:.53rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.overview-moment-trail a{display:inline-flex;align-items:center;gap:5px;min-width:0;padding:4px 7px;border-radius:999px;background:rgba(255,255,255,.72);color:#4e6878;font-size:.55rem;font-weight:750;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overview-moment-trail a:hover{background:#fff;color:#244f68}.overview-moment-trail-dot{flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:#7da4b8}.overview-moment-trail-dot.kind-intake{background:#5a9a7e}.overview-moment-trail-dot.kind-artifact{background:#438db4}.overview-moment-trail-dot.kind-review{background:#c89b3d}.overview-moment-trail-dot.kind-reanalysis{background:#796aaa}
@media(max-width:980px){.overview-moment-grid{grid-template-columns:1fr}.overview-moment-block{min-height:64px}.overview-moment-trail{flex-wrap:wrap}}
@media(max-width:680px){.overview-moment-head{flex-direction:column;padding:17px 15px 12px}.overview-moment-grid{padding:0 15px 13px}.overview-moment-trail{padding:10px 15px 12px}}

/* =============================================================
   MVP 7.7.8a — customer home: status, current product, recent activity
   ============================================================= */
.viewer-client .client-home-focus{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    min-height:116px;
    margin:16px 0;
    padding:22px 24px;
    overflow:hidden;
    border-color:#bfd7e4;
    background:linear-gradient(120deg,#f8fdff 0%,#e8f5fa 63%,#fff4e5 100%);
    box-shadow:0 18px 42px rgba(20,63,94,.09);
}
.viewer-client .client-home-focus:before{
    content:"";
    position:absolute;
    left:0;top:0;bottom:0;
    width:5px;
    background:#4c91b2;
}
.viewer-client .client-home-focus:after{
    content:"";
    position:absolute;
    right:-54px;top:-78px;
    width:210px;height:210px;
    border:24px solid rgba(222,153,67,.09);
    border-radius:50%;
    pointer-events:none;
}
.viewer-client .client-home-focus-attention:before{background:#dfa33e}
.viewer-client .client-home-focus-waiting:before{background:#5b92ad}
.viewer-client .client-home-focus-calm:before{background:#68a080}
.client-home-focus-main{position:relative;z-index:1;display:grid;grid-template-columns:48px minmax(0,1fr);gap:15px;align-items:center;max-width:790px}
.client-home-focus-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:linear-gradient(145deg,#276789,#174562);color:#fff;font-size:1rem;font-weight:950;box-shadow:0 10px 24px rgba(24,73,101,.18)}
.client-home-focus-attention .client-home-focus-icon{background:linear-gradient(145deg,#e0af4c,#aa7b23)}
.client-home-focus-calm .client-home-focus-icon{background:linear-gradient(145deg,#64a283,#37755e)}
.client-home-focus h2{margin:.12rem 0 .3rem;font-size:1.25rem;color:#153d59}
.client-home-focus p:last-child{margin:0;color:#5f7786;font-size:.76rem;line-height:1.5}
.client-home-primary-cta{position:relative;z-index:1;flex:0 0 auto;white-space:nowrap}
.client-home-no-action{position:relative;z-index:1;display:inline-flex;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.72);border:1px solid rgba(116,157,178,.24);color:#497082;font-size:.62rem;font-weight:900}

.client-home-grid{display:grid;grid-template-columns:1.15fr .85fr 1.1fr;gap:14px;margin:14px 0}
.client-home-card{position:relative;min-height:208px;padding:19px 20px;overflow:hidden;border-color:#d4e3eb;box-shadow:0 14px 32px rgba(21,58,80,.075)}
.client-home-card:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:#81aabd}
.client-home-product{background:linear-gradient(145deg,#fbfeff,#e8f5fa)}
.client-home-product:before{background:#4d91b0}
.client-home-project-card{background:linear-gradient(145deg,#fffefb,#f8efd7)}
.client-home-project-card:before{background:#c5a049}
.client-home-activity-card{background:linear-gradient(145deg,#fff,#f3f7f9)}
.client-home-activity-card:before{background:#6d94aa}
.client-home-card:after{content:"";position:absolute;width:115px;height:115px;right:-48px;bottom:-64px;border-radius:50%;background:rgba(54,122,153,.045);pointer-events:none}
.client-home-card-head{position:relative;z-index:1;display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:center;margin-bottom:13px}
.client-home-card-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:#fff;font-size:0;font-weight:950;box-shadow:0 8px 18px rgba(23,63,88,.14)}
.client-home-card-icon.product{background:linear-gradient(145deg,#438db4,#236887)}
.client-home-card-icon.project{background:linear-gradient(145deg,#d1ab55,#9b782c)}
.client-home-card-icon.activity{background:linear-gradient(145deg,#7199ad,#416f88)}
.client-home-card h2{margin:.1rem 0 0;font-size:1rem;color:#183e59}
.client-home-product-version{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #cfe2eb;border-radius:11px;background:rgba(255,255,255,.72)}
.client-home-product-version strong{color:#173f5d;font-size:1.02rem}
.client-home-product-version span{padding:5px 8px;border-radius:999px;background:#e8f2f6;color:#39657b;font-size:.58rem;font-weight:850}
.client-home-product>p{margin:10px 0;color:#657b88;font-size:.68rem;line-height:1.45}
.client-home-card-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.client-home-card-actions .button-link{padding:8px 11px;font-size:.66rem}
.client-home-card-actions .text-link{font-size:.62rem}
.client-home-metrics{display:grid;gap:0;border-top:1px solid rgba(192,210,220,.65)}
.client-home-metrics a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 2px;border-bottom:1px solid rgba(211,224,231,.78);color:#526c7b;text-decoration:none;font-size:.68rem}
.client-home-metrics a:hover span{color:#1f5f82}
.client-home-metrics strong{color:#173f5d;font-size:1rem}
.client-home-project-card>small{display:block;margin-top:9px;color:#89969e;font-size:.57rem}
.client-home-activity-list{display:grid;gap:0}
.client-home-activity-item{display:grid;grid-template-columns:9px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 0;border-bottom:1px solid #e5edf1}
.client-home-activity-item:last-child{border-bottom:0}
.activity-mark{display:block;width:8px;height:8px;border-radius:50%;background:#7da5b8}
.activity-mark.review{background:#d3a346}.activity-mark.blvc{background:#4e91b0}.activity-mark.document{background:#65a080}
.client-home-activity-item div{display:grid;gap:2px;min-width:0}
.client-home-activity-item strong{color:#284e66;font-size:.64rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.client-home-activity-item small{color:#85949d;font-size:.54rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.client-home-activity-item time{color:#87959d;font-size:.53rem;white-space:nowrap}
.client-home-empty-copy{padding:12px;border:1px solid #dce8ee;border-radius:10px;background:rgba(255,255,255,.64)}
.client-home-empty-copy strong{color:#31566d;font-size:.72rem}.client-home-empty-copy p{margin:4px 0 0;color:#748691;font-size:.63rem;line-height:1.4}
.client-home-issues{margin-top:14px}
.client-home-all-clear{display:flex;align-items:center;gap:10px;margin:13px 0;padding:11px 14px;border:1px solid #d9e8dd;border-radius:12px;background:#f7fbf8;color:#587061}
.client-home-all-clear>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#e4f2e8;color:#43805a;font-weight:900}
.client-home-all-clear p{margin:0;font-size:.65rem}.client-home-all-clear strong{color:#376246}

@media(max-width:1040px){.client-home-grid{grid-template-columns:1fr 1fr}.client-home-activity-card{grid-column:1/-1;min-height:auto}}
@media(max-width:720px){.viewer-client .client-home-focus{align-items:flex-start;flex-direction:column}.client-home-focus-main{grid-template-columns:40px minmax(0,1fr)}.client-home-focus-icon{width:38px;height:38px;border-radius:11px}.client-home-primary-cta{width:100%;box-sizing:border-box;text-align:center}.client-home-grid{grid-template-columns:1fr}.client-home-activity-card{grid-column:auto}.client-home-card{min-height:auto}}

/* =============================================================
   MVP 7.7.8b — klantnavigatie + Vragen & punten
   ============================================================= */
.viewer-client .project-primary-tabs{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    width:min(760px,100%);
}
.viewer-client .project-primary-tabs .tab{
    text-align:center;
    justify-content:center;
    white-space:nowrap;
}

.client-home-contact-strip{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    margin-top:16px;
    padding:18px 20px;
    overflow:hidden;
    border-color:#c9dfe9;
    background:linear-gradient(120deg,#f7fcfe 0%,#e8f5fa 65%,#fff4df 100%);
    box-shadow:0 14px 32px rgba(22,59,92,.08);
}
.client-home-contact-strip:before{
    content:"";
    position:absolute;
    left:0;right:0;top:0;
    height:4px;
    background:linear-gradient(90deg,#2b789d,#7eb8cf 70%,#d7a445);
}
.client-home-contact-main{display:flex;align-items:center;gap:14px;min-width:0}
.client-home-contact-icon{
    display:grid;place-items:center;flex:0 0 auto;
    width:44px;height:44px;border-radius:13px;
    background:linear-gradient(145deg,#438db4,#236887);
    color:#fff;font-size:1rem;font-weight:950;
    box-shadow:0 9px 20px rgba(30,100,135,.18);
}
.client-home-contact-main h2{margin:.1rem 0 .25rem;font-size:1rem}
.client-home-contact-main p:last-child{margin:0;color:#637b89;font-size:.69rem}
.client-home-contact-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.client-home-contact-count{padding:5px 9px;border-radius:999px;background:#fff;color:#315b73;font-size:.6rem;font-weight:900;box-shadow:0 4px 12px rgba(23,63,94,.06)}

.client-questions-header{margin-bottom:14px}
.client-communication-grid{
    display:grid;
    grid-template-columns:minmax(0,1.65fr) minmax(280px,.7fr);
    gap:16px;
    margin:16px 0;
}
.client-message-compose,.client-communication-explainer,.client-shared-actions,.client-message-history{
    position:relative;
    overflow:hidden;
    border-color:#d3e3ea;
    box-shadow:0 15px 34px rgba(24,61,83,.075);
}
.client-message-compose:before,.client-message-history:before,.client-shared-actions:before{
    content:"";position:absolute;left:0;right:0;top:0;height:4px;background:#70a9c2;
}
.client-message-compose{padding:22px;background:linear-gradient(145deg,#fff,#f3fafd)}
.client-message-compose:before{background:linear-gradient(90deg,#2d789b,#78b5cc)}
.client-message-compose-head{display:grid;grid-template-columns:46px minmax(0,1fr);gap:14px;align-items:start;margin-bottom:18px}
.client-message-compose-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#438db4,#236887);color:#fff;font-size:1.15rem;font-weight:900;box-shadow:0 9px 20px rgba(30,100,135,.2)}
.client-message-compose h2,.client-communication-explainer h2,.client-message-history h2{margin:.1rem 0 .3rem}
.client-message-compose-head p:last-child{margin:0;color:#667e8b;font-size:.7rem;line-height:1.45}
.client-message-form{display:grid;gap:13px}
.client-message-form>label{display:grid;gap:5px}
.client-message-form>label>span{color:#587383;font-size:.59rem;font-weight:900;letter-spacing:.055em;text-transform:uppercase}
.client-message-form input[type="text"],.client-message-form textarea{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #cbdde6;border-radius:10px;background:#fff;color:#1d435d;font:inherit;font-size:.72rem;outline:none;transition:border-color .15s ease,box-shadow .15s ease}
.client-message-form input[type="text"]:focus,.client-message-form textarea:focus{border-color:#6da8c1;box-shadow:0 0 0 3px rgba(67,141,180,.11)}
.client-message-kind{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.client-message-kind label{position:relative;cursor:pointer}
.client-message-kind input{position:absolute;opacity:0;pointer-events:none}
.client-message-kind span{display:grid;gap:2px;min-height:58px;padding:11px 12px;border:1px solid #d7e4ea;border-radius:11px;background:#fff;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.client-message-kind strong{color:#204b66;font-size:.72rem}
.client-message-kind small{color:#758894;font-size:.59rem;line-height:1.35}
.client-message-kind input:checked+span{border-color:#5f9ebc;background:#eef8fc;box-shadow:inset 0 0 0 1px rgba(67,141,180,.12)}
.client-message-submit{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:4px}
.client-message-submit small{max-width:390px;color:#7a8d98;font-size:.59rem;line-height:1.4}

.client-communication-explainer{padding:22px;background:linear-gradient(145deg,#fffdf8,#f9eed4)}
.client-communication-explainer:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:#c8a14a}
.client-communication-explainer-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:14px;border-radius:13px;background:linear-gradient(145deg,#d1ab55,#9b782c);color:#fff;font-weight:950;box-shadow:0 9px 20px rgba(155,120,44,.18)}
.client-communication-steps{display:grid;gap:12px;margin-top:18px}
.client-communication-steps>div{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:start}
.client-communication-steps>div>span{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:rgba(255,255,255,.72);color:#82631e;font-size:.6rem;font-weight:950;border:1px solid rgba(184,145,55,.2)}
.client-communication-steps p{display:grid;gap:2px;margin:0}
.client-communication-steps strong{font-size:.69rem;color:#274b61}
.client-communication-steps small{font-size:.59rem;color:#75858e;line-height:1.4}

.client-shared-actions,.client-message-history{margin-top:16px;background:linear-gradient(180deg,#fff,#f8fbfd)}
.client-shared-actions:before{background:#d3a347}
.client-message-history:before{background:#7f9fb1}
.client-question-count{display:grid;place-items:center;min-width:30px;height:30px;padding:0 8px;border-radius:999px;background:#eaf4f8;color:#285f7b;font-size:.64rem;font-weight:950}
.client-message-history-head{align-items:center}
.client-message-list{display:grid;gap:9px;padding:0 20px 20px}
.client-message-item{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:12px;align-items:start;padding:14px 15px;border:1px solid #dae6eb;border-radius:13px;background:#fff;box-shadow:0 6px 18px rgba(27,64,84,.04)}
.client-message-item.is-answered{background:#fbfdfb;border-color:#dbe8dc}
.client-message-item-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#e7f4f9;color:#236585;font-weight:950}
.client-message-item.is-answered .client-message-item-mark{background:#e9f5ec;color:#3b7450}
.client-message-item-meta{display:flex;align-items:center;gap:8px;color:#78909b;font-size:.55rem;font-weight:750}
.client-message-item-meta span{color:#35647e;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.client-message-item h3{margin:4px 0 4px;color:#173f5b;font-size:.79rem}
.client-message-item-copy>p{margin:0;color:#5f7784;font-size:.66rem;line-height:1.48}
.client-message-status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#eef4f7;color:#4d6f80;font-size:.55rem;font-weight:900;white-space:nowrap}
.client-message-status.status-resolved{background:#e8f4eb;color:#3a714c}
.client-message-status.status-in_progress{background:#fff1d8;color:#8b6119}
.client-message-answer{margin-top:10px;padding:10px 11px;border:1px solid #d9e9dc;border-radius:10px;background:#f4faf5}
.client-message-answer small{display:block;margin-bottom:3px;color:#47745a;font-size:.51rem;font-weight:950;letter-spacing:.06em}
.client-message-answer p{margin:0;color:#476657;font-size:.66rem;line-height:1.45}
.client-message-empty{margin:0 20px 20px}

.issue-client-answer-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end;margin-top:11px;padding:11px;border:1px solid #d5e6ed;border-radius:11px;background:#f5fafc}
.issue-client-answer-form label{display:grid;gap:4px}
.issue-client-answer-form label>span{color:#55778a;font-size:.54rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.issue-client-answer-form textarea{width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid #c9dce5;border-radius:8px;background:#fff;font:inherit;font-size:.66rem}
.issue-client-answer-form button{white-space:nowrap}

@media(max-width:900px){
    .client-communication-grid{grid-template-columns:1fr}
    .client-home-contact-strip{align-items:flex-start;flex-direction:column}
    .client-home-contact-actions{width:100%;justify-content:space-between}
    .issue-client-answer-form{grid-template-columns:1fr}
}
@media(max-width:680px){
    .viewer-client .project-primary-tabs{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
    .client-message-kind{grid-template-columns:1fr}
    .client-message-submit{align-items:stretch;flex-direction:column}
    .client-message-submit button{width:100%}
    .client-message-item{grid-template-columns:34px minmax(0,1fr)}
    .client-message-status{grid-column:2;justify-self:start}
    .client-home-contact-actions{align-items:stretch;flex-direction:column}
    .client-home-contact-actions .button-link{text-align:center}
}
.activity-mark.question{background:#c39a3d}


/* MVP 7.7.8c — editable business project number */
.project-number-settings{width:max-content;max-width:100%;margin:-8px 0 14px 4px;position:relative;z-index:2}.project-number-settings>summary{list-style:none;display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:#526f82;font-size:.64rem;font-weight:800}.project-number-settings>summary::-webkit-details-marker{display:none}.project-number-settings>summary strong{display:inline-flex;padding:3px 7px;border-radius:999px;background:#eaf4f8;color:#184c6b}.project-number-settings>summary span{color:#7c8e99;font-weight:650}.project-number-settings[open]>summary{color:#184c6b}.project-number-form{position:absolute;top:28px;left:0;z-index:30;display:grid;grid-template-columns:150px auto;gap:9px;align-items:end;width:340px;max-width:calc(100vw - 56px);padding:13px;border:1px solid #cfdfe7;border-radius:12px;background:#fff;box-shadow:0 18px 42px rgba(22,59,92,.17)}.project-number-form label{display:grid;gap:4px}.project-number-form label>span{font-size:.55rem;font-weight:900;text-transform:uppercase;letter-spacing:.055em;color:#66808f}.project-number-form input{width:100%;box-sizing:border-box;padding:8px 9px;border:1px solid #cad9e2;border-radius:8px;font:inherit}.project-number-form small{grid-column:1/-1;color:#798a94;font-size:.58rem}.project-number-alert{margin-top:-4px;margin-bottom:12px}@media(max-width:520px){.project-number-form{position:fixed;left:16px;right:16px;top:auto;width:auto;grid-template-columns:1fr}.project-number-form small{grid-column:auto}}

/* =============================================================
   MVP 7.7.8d — client question threads + unread answer notice
   ============================================================= */
.client-answer-notice{
    display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:16px;
    margin-bottom:14px;padding:17px 19px;text-decoration:none;color:inherit;
    border-color:#b9d9c9!important;background:linear-gradient(120deg,#f8fffb 0%,#eaf7f0 62%,#fff6e8 100%)!important;
    border-top:4px solid #58a47c!important;box-shadow:0 14px 32px rgba(31,91,65,.10)!important;
}
.client-answer-notice-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(145deg,#5da884,#34765c);color:#fff;font-size:1rem;font-weight:900;box-shadow:0 9px 20px rgba(52,118,92,.20)}
.client-answer-notice h2{margin:.12rem 0 .28rem;font-size:1rem}.client-answer-notice p:last-child{margin:0;color:#607b6d;font-size:.7rem;line-height:1.45}
.client-answer-notice-cta{padding:8px 11px;border-radius:10px;background:#fff;color:#28634a;font-size:.67rem;font-weight:900;border:1px solid #cde2d6;white-space:nowrap}
.client-answer-notice:hover{transform:translateY(-1px);box-shadow:0 18px 38px rgba(31,91,65,.14)!important}
.client-home-focus-answer{border-color:#b9d9c9!important;background:linear-gradient(120deg,#f7fffb,#ebf7f0 70%,#fff7eb)!important}

.client-thread-list{display:grid;gap:12px;padding:0 18px 20px}
.client-thread-card{position:relative;padding:16px 17px;border:1px solid #d9e6ed;border-radius:15px;background:linear-gradient(145deg,#fff,#f8fbfd);box-shadow:0 8px 22px rgba(25,60,82,.055)}
.client-thread-card.has-new-answer{border-color:#a9d0bb;box-shadow:0 10px 26px rgba(44,112,79,.10)}
.client-thread-card.has-new-answer:before{content:"";position:absolute;left:0;top:15px;bottom:15px;width:4px;border-radius:0 4px 4px 0;background:#58a47c}
.client-thread-head{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:start}
.client-thread-title h3{margin:.15rem 0 0;font-size:.88rem;color:#183f59}.client-thread-title .client-message-item-meta{margin:0}
.client-thread-latest{margin:13px 0 0 49px;padding:12px 13px;border-radius:12px;border:1px solid #dbe7ed;background:#f4f8fa}
.client-thread-latest.is-internal{background:linear-gradient(145deg,#f1faf5,#e7f5ed);border-color:#cee5d8}.client-thread-latest.is-client{background:#f4f8fa}
.client-thread-message-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:5px}.client-thread-message-meta strong{font-size:.58rem;text-transform:uppercase;letter-spacing:.055em;color:#42697c}.client-thread-message-meta time{font-size:.56rem;color:#8998a1}
.client-thread-latest p,.client-thread-bubble p{margin:0;color:#526a78;font-size:.69rem;line-height:1.5;white-space:pre-wrap}
.client-thread-history{margin:9px 0 0 49px}.client-thread-history>summary{display:flex;align-items:center;gap:8px;width:max-content;cursor:pointer;list-style:none;color:#2e6786;font-size:.63rem;font-weight:850}.client-thread-history>summary::-webkit-details-marker{display:none}.client-thread-history>summary small{color:#87969f;font-weight:650}.client-thread-history>summary b{transition:transform .15s ease}.client-thread-history[open]>summary b{transform:rotate(180deg)}
.client-thread-history-list{display:grid;gap:7px;margin-top:8px}.client-thread-bubble{padding:10px 11px;border-radius:10px;border:1px solid #e0e8ed;background:#fafcfd}.client-thread-bubble.is-internal{background:#f3faf6;border-color:#d7e9df}
.client-thread-reply{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end;margin:12px 0 0 49px;padding-top:12px;border-top:1px solid #e7edf0}.client-thread-reply label{display:grid;gap:4px}.client-thread-reply label>span{font-size:.55rem;font-weight:900;letter-spacing:.055em;text-transform:uppercase;color:#627d8c}.client-thread-reply textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:58px;padding:9px 10px;border:1px solid #cadce5;border-radius:10px;background:#fff;font:inherit;font-size:.68rem;color:#294b5f}.client-thread-reply button{min-height:38px;white-space:nowrap}

.internal-thread-preview{display:grid;gap:7px;margin-top:10px;padding:10px;border:1px solid #dce8ed;border-radius:11px;background:#f8fbfc;max-height:310px;overflow:auto}.internal-thread-message{padding:9px 10px;border-radius:9px;background:#fff;border:1px solid #e2eaee}.internal-thread-message.is-internal{background:#f2f8f5;border-color:#d9e9df}.internal-thread-message small{display:block;margin-bottom:3px;color:#69818e;font-size:.51rem;font-weight:900;letter-spacing:.045em}.internal-thread-message p{margin:0!important;font-size:.64rem!important;line-height:1.45!important;color:#526c79!important;white-space:pre-wrap}

@media(max-width:700px){.client-answer-notice{grid-template-columns:42px minmax(0,1fr)}.client-answer-notice-cta{grid-column:2;width:max-content}.client-thread-head{grid-template-columns:34px minmax(0,1fr)}.client-thread-head>.client-message-status{grid-column:2;justify-self:start}.client-thread-latest,.client-thread-history,.client-thread-reply{margin-left:0}.client-thread-reply{grid-template-columns:1fr}.client-thread-reply button{justify-self:start}}


/* MVP 7.7.8e — show latest customer question together with latest answer */
.client-thread-latest.is-preview-question{margin-bottom:8px;border-style:dashed}

/* =============================================================
   MVP 7.7.8f — customer Documents + BLVC plan polish
   ============================================================= */
.client-doc-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.client-doc-summary-card{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:center;min-height:84px;padding:14px 16px;border:1px solid #d7e5ec;border-radius:15px;background:linear-gradient(145deg,#fff,#f5fafc);box-shadow:0 10px 24px rgba(22,59,92,.065);overflow:hidden}
.client-doc-summary-card:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:#85aac0}.client-doc-summary-card.is-client:before{background:#6ba184}.client-doc-summary-card.is-upload:before{background:#c7a24a}
.client-doc-summary-card>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,#438db4,#236887);color:#fff;font-weight:900}.client-doc-summary-card.is-client>span{background:linear-gradient(145deg,#5ca184,#34735f)}.client-doc-summary-card.is-upload>span{background:linear-gradient(145deg,#d1ab55,#9b782c)}
.client-doc-summary-card .eyebrow{margin:0}.client-doc-summary-card strong{display:block;margin:1px 0;font-size:1.05rem;color:#173f5d}.client-doc-summary-card small{display:block;color:#718590;font-size:.62rem}
.client-document-workspace{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}.client-document-dossier{grid-column:1/span 2;padding:0;overflow:hidden}.client-document-heading{padding:20px 22px 15px;background:linear-gradient(110deg,#f8fcfe,#eef8fb 66%,#fff6eb);border-bottom:1px solid #dae7ed}.client-document-group{padding:18px 20px}.client-document-group+.client-document-group{border-top:1px solid #e4ecef}.client-document-group-title{display:flex;align-items:center;gap:10px;margin-bottom:10px}.client-document-source-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e5f2f7;color:#25617e;font-size:.65rem;font-weight:900}.client-document-source-mark.is-client{background:#e7f4ec;color:#397155}.client-document-group-title strong{display:block;color:#173f5d;font-size:.78rem}.client-document-group-title small{display:block;color:#7c8e98;font-size:.57rem}.client-document-list{display:grid;gap:7px}.client-document-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:11px;align-items:center;padding:10px 11px;border:1px solid #dfe8ed;border-radius:11px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}.client-document-row:hover{border-color:#bdd4df;box-shadow:0 7px 18px rgba(25,63,84,.06)}.client-document-row.is-client-upload{background:linear-gradient(90deg,#fbfefc,#f3faf6)}.client-document-row .document-icon{width:34px;height:34px;border-radius:9px;font-size:.52rem}.client-document-row strong{display:block;color:#234c64;font-size:.72rem;overflow-wrap:anywhere}.client-document-row small{display:block;margin-top:2px;color:#80919a;font-size:.56rem}.client-document-download{padding:6px 9px;border-radius:8px;background:#edf5f8;color:#27617f;text-decoration:none;font-size:.6rem;font-weight:850}.client-document-download:hover{background:#dfedf3}.client-document-empty{margin:18px 20px}.client-document-upload-card{grid-column:3;position:relative;overflow:hidden;height:100%;padding:20px;background:linear-gradient(145deg,#fffdf8,#f6ecd3);border-color:#dfcfaa;box-sizing:border-box}.client-document-upload-card:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:#c6a14b}.client-document-upload-card:after{content:"";position:absolute;width:150px;height:150px;right:-75px;bottom:-85px;border-radius:50%;background:rgba(201,159,65,.07);pointer-events:none}.client-document-upload-icon{display:grid;place-items:center;width:43px;height:43px;margin-bottom:12px;border-radius:13px;background:linear-gradient(145deg,#d1ab55,#9b782c);color:#fff;font-weight:900}.client-document-upload-card h2{margin:.15rem 0 .35rem}.client-document-upload-form{margin-top:12px}.client-document-upload-card .upload-note{position:relative;margin-top:13px;z-index:1}

.client-blvc-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:16px;align-items:start;margin-top:16px}.client-blvc-current{padding:0;overflow:hidden;border-color:#cfe0e8}.client-blvc-current-head{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:13px;align-items:start;padding:20px 21px;background:linear-gradient(110deg,#f8fcfe 0%,#eef8fb 62%,#fff3df 100%);border-bottom:1px solid #d9e6ec}.client-blvc-word-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#235f82,#153f61);color:#fff;font-size:0;font-weight:900;box-shadow:0 9px 20px rgba(21,63,97,.16)}.client-blvc-current-head h2{margin:.12rem 0 .25rem;font-size:1.08rem}.client-blvc-current-head>div>p:last-child{margin:0;color:#70848f;font-size:.65rem}.client-blvc-current-badge{align-self:start;padding:6px 9px;border-radius:999px;background:#e5f3ea;color:#397051;font-size:.58rem;font-weight:900}.client-blvc-status-band{display:grid;grid-template-columns:38px minmax(0,1fr);gap:11px;align-items:center;margin:17px 20px 0;padding:13px 14px;border:1px solid #dbe7ed;border-radius:13px;background:#f5f9fb}.client-blvc-status-band>span{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#e7f1f6;color:#245f7e;font-weight:900}.client-blvc-status-band.needs-action{background:#fff8e9;border-color:#ecd69f}.client-blvc-status-band.needs-action>span{background:#f4d98d;color:#755515}.client-blvc-status-band.is-processing{background:#eef8f3;border-color:#cfe3d9}.client-blvc-status-band.is-processing>span{background:#dcefe4;color:#3e7658}.client-blvc-status-band .eyebrow{margin:0}.client-blvc-status-band strong{display:block;margin:2px 0;color:#173f5d;font-size:.8rem}.client-blvc-status-band small{display:block;color:#71848f;font-size:.61rem;line-height:1.4}.client-blvc-actions{display:flex;flex-wrap:wrap;gap:9px;padding:16px 20px 20px}.client-blvc-primary{box-shadow:0 9px 20px rgba(20,63,94,.14)}.client-blvc-explainer{position:relative;overflow:hidden;padding:20px;background:linear-gradient(145deg,#fff,#f4f8fa);border-color:#d8e5eb}.client-blvc-explainer:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:#87a9bd}.client-blvc-explainer-icon{display:grid;place-items:center;width:43px;height:43px;margin-bottom:12px;border-radius:13px;background:linear-gradient(145deg,#438db4,#236887);color:#fff;font-size:0;font-weight:900}.client-blvc-explainer h2{margin:.12rem 0 .35rem}.client-blvc-explainer>p:last-of-type{color:#667d89;font-size:.68rem;line-height:1.5}.client-blvc-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:14px}.client-blvc-facts>div{padding:9px;border:1px solid #dbe6eb;border-radius:10px;background:rgba(255,255,255,.72)}.client-blvc-facts span{display:block;color:#7b8e99;font-size:.51rem;text-transform:uppercase;font-weight:850}.client-blvc-facts strong{display:block;margin-top:2px;color:#214c66;font-size:.72rem}.client-blvc-history{margin-top:13px;padding:0;overflow:hidden}.client-blvc-history>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;list-style:none;padding:14px 18px;background:linear-gradient(90deg,#fbfdfe,#f4f8fa)}.client-blvc-history>summary::-webkit-details-marker{display:none}.client-blvc-history>summary .eyebrow{margin:0}.client-blvc-history>summary strong{display:block;margin:1px 0;color:#1d4761;font-size:.76rem}.client-blvc-history>summary small{display:block;color:#81919a;font-size:.56rem}.client-blvc-history>summary>span{color:#2d6685;font-size:.62rem;font-weight:900}.client-blvc-history-list{display:grid;gap:0;border-top:1px solid #e1e9ed}.client-blvc-history-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;padding:10px 17px;border-bottom:1px solid #edf1f3}.client-blvc-history-row:last-child{border-bottom:0}.client-blvc-history-row>div strong{display:block;color:#31556b;font-size:.67rem}.client-blvc-history-row>div small{display:block;color:#87969f;font-size:.55rem}.client-blvc-history-row>a{color:#2e6786;font-size:.6rem;font-weight:850;text-decoration:none}.client-blvc-empty{display:grid;grid-template-columns:50px minmax(0,1fr);gap:14px;align-items:start;margin-top:16px;padding:22px;background:linear-gradient(145deg,#fff,#f5f9fb)}.client-blvc-empty h2{margin:.1rem 0 .3rem}.client-blvc-empty p:last-child{margin:0;color:#70848f;font-size:.68rem}

@media(max-width:900px){.client-doc-summary-grid{grid-template-columns:1fr 1fr}.client-doc-summary-card.is-upload{grid-column:1/-1}.client-document-workspace,.client-blvc-layout{grid-template-columns:1fr}.client-document-dossier,.client-document-upload-card{grid-column:auto}.client-blvc-explainer{order:-1}}
@media(max-width:620px){.client-doc-summary-grid{grid-template-columns:1fr}.client-doc-summary-card.is-upload{grid-column:auto}.client-document-row{grid-template-columns:34px minmax(0,1fr)}.client-document-download{grid-column:2;width:max-content}.client-blvc-current-head{grid-template-columns:42px minmax(0,1fr)}.client-blvc-current-badge{grid-column:2;width:max-content}.client-blvc-facts{grid-template-columns:1fr}.client-blvc-history-row{grid-template-columns:auto minmax(0,1fr)}.client-blvc-history-row>a{grid-column:2;width:max-content}.client-blvc-actions{flex-direction:column;align-items:stretch}.client-blvc-actions a{text-align:center}}

/* MVP 7.7.8g — customer-facing version labels and aligned client dossier layout */
.client-blvc-facts>div strong{line-height:1.3}


/* =============================================================
   MVP 7.7.8i — customer acceptance / responsive hardening
   ============================================================= */
.viewer-client .client-home-card,
.viewer-client .client-document-dossier,
.viewer-client .client-document-upload-card,
.viewer-client .client-blvc-current,
.viewer-client .client-blvc-explainer,
.viewer-client .client-message-compose,
.viewer-client .client-communication-explainer,
.viewer-client .client-message-history{min-width:0}
.viewer-client .client-document-row>div,
.viewer-client .client-thread-title,
.viewer-client .client-thread-latest,
.viewer-client .client-home-activity-item>div{min-width:0}
.viewer-client .client-document-row strong,
.viewer-client .client-thread-card p,
.viewer-client .client-home-card p{overflow-wrap:break-word;word-break:normal}

@media(max-width:760px){
    .viewer-client .portal-project-header{align-items:flex-start;gap:14px}
    .viewer-client .portal-project-header .project-header-status{align-items:flex-start}
    .viewer-client .client-doc-summary-grid{grid-template-columns:1fr}
    .viewer-client .client-doc-summary-card.is-upload{grid-column:auto}
    .viewer-client .client-document-workspace,
    .viewer-client .client-blvc-layout,
    .viewer-client .client-communication-grid{grid-template-columns:1fr}
    .viewer-client .client-document-dossier,
    .viewer-client .client-document-upload-card{grid-column:auto}
    .viewer-client .client-document-upload-card,
    .viewer-client .client-blvc-explainer{order:0}
    .viewer-client .client-document-row{grid-template-columns:36px minmax(0,1fr)}
    .viewer-client .client-document-download{grid-column:2;width:max-content;min-height:38px;display:inline-flex;align-items:center}
    .viewer-client .client-blvc-current-head{grid-template-columns:42px minmax(0,1fr)}
    .viewer-client .client-blvc-current-badge{grid-column:2;width:max-content}
    .viewer-client .client-blvc-actions{display:grid;grid-template-columns:1fr}
    .viewer-client .client-blvc-actions a{justify-content:center;text-align:center;min-height:42px;box-sizing:border-box}
    .viewer-client .client-message-submit button,
    .viewer-client .client-thread-reply button,
    .viewer-client .client-home-primary-cta,
    .viewer-client .client-home-contact-actions .button-link{min-height:42px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
}

@media(max-width:480px){
    .viewer-client .project-primary-tabs{grid-template-columns:1fr 1fr;gap:4px}
    .viewer-client .project-primary-tabs .tab{min-height:42px;padding-left:8px;padding-right:8px}
    .viewer-client .client-home-focus,
    .viewer-client .client-home-card,
    .viewer-client .client-document-upload-card,
    .viewer-client .client-message-compose,
    .viewer-client .client-communication-explainer{padding-left:16px;padding-right:16px}
    .viewer-client .client-home-product-version{align-items:flex-start;flex-direction:column}
    .viewer-client .client-thread-head{grid-template-columns:34px minmax(0,1fr)}
    .viewer-client .client-thread-head>.client-message-status{grid-column:2;justify-self:start}
    .viewer-client .client-thread-latest,
    .viewer-client .client-thread-history,
    .viewer-client .client-thread-reply{margin-left:0}
}

.module-overview-icon::before{width:20px;height:20px}.client-home-card-icon::before,.client-blvc-word-icon::before,.client-blvc-explainer-icon::before,.review-register-icon::before,.artifact-intro-icon::before,.artifact-file-icon::before{width:19px;height:19px}

/* MVP 7.7.8k — remove remaining letter badges from dashboard summaries */
.overview-moment-icon.current,.history-summary-icon,.issue-summary-icon,.review-queue-summary-icon,.client-doc-summary-card>span,.client-document-source-mark{font-size:0}
.overview-moment-icon.current::before,.history-summary-icon::before,.issue-summary-icon::before,.review-queue-summary-icon::before,.client-doc-summary-card>span::before{width:19px;height:19px}
.client-document-source-mark::before{width:15px;height:15px}

/* MVP 7.7.8l — reliable inline SVGs for summary icons that rendered as blocks */
.ui-icon{display:block;width:19px;height:19px;flex:0 0 auto;color:currentColor}
.client-document-source-mark .ui-icon{width:15px;height:15px}

/* =============================================================
   MVP 7.7.9c1 — customer self-service branding
   ============================================================= */
.branding-page-header{background:linear-gradient(110deg,#edf8fc 0%,#f7fbfc 58%,#fff1df 100%)}
.branding-selfservice-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.65fr);gap:16px;align-items:start;margin-top:16px}.branding-settings-card{padding:0;overflow:hidden}.branding-card-head{display:grid;grid-template-columns:46px minmax(0,1fr);gap:14px;align-items:start;padding:21px 22px 18px;background:linear-gradient(110deg,#f7fcfe,#eef8fb 62%,#fff4e4);border-bottom:1px solid #dbe7ed}.branding-card-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#438db4,#236887);color:#fff;box-shadow:0 9px 20px rgba(32,95,129,.16)}.branding-card-icon svg{width:21px;height:21px}.branding-card-head h2{margin:.12rem 0 .3rem}.branding-card-head p:last-child{margin:0;color:#6c818d;font-size:.68rem}.branding-form-section{padding:20px 22px;border-bottom:1px solid #e4ecef}.branding-form-section h3{margin:.1rem 0 .3rem}.branding-color-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.branding-color-field{display:grid;gap:7px;padding:14px;border:1px solid #dce7ec;border-radius:13px;background:#fbfdfe}.branding-color-field>span{color:#274f68;font-size:.67rem;font-weight:900}.branding-color-field>div{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px}.branding-color-field input[type=color]{width:48px;height:42px;padding:3px;border:1px solid #cbdbe3;border-radius:9px;background:#fff}.branding-color-field input[type=text]{width:100%;min-width:0;text-transform:uppercase;font-weight:850;color:#214b65}.branding-color-field small{color:#82929b;font-size:.56rem}.branding-logo-section{display:grid;gap:13px}.branding-current-logo{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 14px;align-items:center;padding:12px;border:1px solid #dce7ec;border-radius:12px;background:#fafcfd}.branding-current-logo>span{font-size:.6rem;font-weight:900;color:#647d8c}.branding-current-logo>div{display:flex;justify-content:flex-end}.branding-current-logo img{display:block;max-width:160px;max-height:62px;object-fit:contain}.branding-remove-logo{grid-column:1/-1;display:flex;align-items:center;gap:7px;color:#6f7f88;font-size:.62rem}.branding-logo-drop{display:grid;place-items:center;gap:3px;padding:18px;border:1.5px dashed #b9ced9;border-radius:13px;background:#f7fbfd;cursor:pointer;text-align:center}.branding-logo-drop:hover{border-color:#6f9eb5;background:#f1f8fb}.branding-logo-drop-title{font-weight:900;color:#214c66}.branding-logo-drop span:last-of-type{font-size:.6rem;color:#7c8f9a}.branding-logo-drop input{margin-top:8px;max-width:100%;font-size:.65rem}.branding-policy-note{margin:18px 22px 0;padding:13px 14px;border:1px solid #ead5ab;border-radius:12px;background:#fff9ed}.branding-policy-note strong{display:block;color:#76551c}.branding-policy-note p{margin:4px 0 0;color:#6d7479;font-size:.64rem;line-height:1.45}.branding-save-button{margin:16px 22px 22px;box-shadow:0 9px 20px rgba(20,63,94,.14)}
.branding-current-card{position:relative;overflow:hidden;padding:20px;background:linear-gradient(145deg,#fff,#f7fafb);border-color:#d5e3e9}.branding-current-card:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,var(--brand-primary),var(--brand-accent))}.branding-current-card h2{margin:.1rem 0 14px}.branding-mini-cover{position:relative;overflow:hidden;aspect-ratio:.72;border:1px solid #dbe5ea;border-radius:13px;background:#fff;box-shadow:0 10px 25px rgba(23,63,88,.08)}.branding-mini-top{position:absolute;left:18px;right:18px;top:18px;z-index:3;height:45px;display:flex;align-items:flex-start;justify-content:flex-end}.branding-mini-top img{max-width:95px;max-height:42px;object-fit:contain}.branding-logo-placeholder{font-size:.5rem;text-transform:uppercase;color:#9ba7ae;font-weight:850}.branding-mini-copy{position:absolute;left:22px;right:75px;bottom:48px;z-index:4}.branding-mini-copy span{display:block;margin-bottom:4px;color:var(--brand-accent);font-size:.56rem;text-transform:uppercase;font-weight:950}.branding-mini-copy strong{display:block;color:var(--brand-primary);font-size:1.05rem;line-height:1.1}.branding-mini-copy small{display:block;margin-top:5px;color:#7d8b93;font-size:.55rem}.branding-mini-shape{position:absolute;border-radius:50%;opacity:.94}.branding-mini-shape.one{width:185px;height:185px;right:-98px;bottom:-25px;background:var(--brand-primary)}.branding-mini-shape.two{width:150px;height:150px;right:-55px;bottom:55px;border:26px solid var(--brand-accent);background:transparent}.branding-mini-shape.three{width:120px;height:120px;right:-72px;top:92px;background:color-mix(in srgb,var(--brand-primary) 18%,white)}.branding-mini-blvc{position:absolute;right:17px;bottom:14px;z-index:5;color:#8999a3;font-size:.55rem;font-weight:900}.branding-color-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:13px 0}.branding-color-summary>div{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;padding:8px;border:1px solid #e0e8ec;border-radius:10px}.branding-color-summary>div>span{width:28px;height:28px;border-radius:8px}.branding-color-summary p{margin:0;color:#788b95;font-size:.53rem}.branding-color-summary strong{display:block;margin-top:2px;color:#31546a;font-size:.63rem}
@media(max-width:900px){.branding-selfservice-grid{grid-template-columns:1fr}.branding-current-card{order:-1}.branding-mini-cover{max-width:320px;margin:0 auto}.branding-color-summary{max-width:420px}}
@media(max-width:620px){.branding-color-grid{grid-template-columns:1fr}.branding-card-head{grid-template-columns:40px minmax(0,1fr);padding:18px}.branding-card-icon{width:40px;height:40px}.branding-form-section{padding:18px}.branding-policy-note{margin:16px 18px 0}.branding-save-button{margin:15px 18px 20px;width:calc(100% - 36px)}}


/* =============================================================
   MVP 7.7.9c2b — five client tabs stay on one desktop row
   ============================================================= */
.viewer-client .project-primary-tabs{
    grid-template-columns:repeat(5,minmax(0,1fr));
    width:min(980px,100%);
}
@media(max-width:760px){
    .viewer-client .project-primary-tabs{
        grid-template-columns:repeat(2,minmax(0,1fr));
        width:100%;
    }
}


/* MVP 7.7.9c2c — roomy locked-branding state */
.branding-locked-card{overflow:hidden;background:#fff}
.branding-locked-card .branding-lock-head{padding:28px 28px 24px;grid-template-columns:52px minmax(0,1fr);gap:18px;background:linear-gradient(112deg,#f7fcfe 0%,#eef8fb 58%,#fff5e7 100%)}
.branding-locked-card .branding-lock-icon{width:50px;height:50px;border-radius:15px}
.branding-locked-card .branding-lock-icon svg{width:23px;height:23px}
.branding-locked-card .branding-card-head h2{margin:.18rem 0 .55rem;font-size:1.35rem;line-height:1.15}
.branding-locked-card .branding-card-head p:last-child{max-width:760px;font-size:.78rem;line-height:1.62;color:#657d8b}
.branding-locked-card .permission-banner{margin:22px 28px 0;padding:16px 17px;border-radius:13px}
.branding-permission-actions{padding:22px 28px 26px;background:#fff}
.branding-permission-actions button{min-height:48px;padding:0 22px;border-radius:13px;box-shadow:0 10px 22px rgba(20,63,94,.13)}
@media(max-width:620px){.branding-locked-card .branding-lock-head{padding:22px 20px;grid-template-columns:44px minmax(0,1fr);gap:14px}.branding-locked-card .branding-lock-icon{width:44px;height:44px}.branding-locked-card .permission-banner{margin:18px 20px 0}.branding-permission-actions{padding:18px 20px 22px}.branding-permission-actions button{width:100%}}


/* =============================================================
   MVP 7.7.9c2d — integrated permission states
   ============================================================= */
/* Give pending/rejected permission states their own breathing room inside
   the locked card instead of letting the inset panel touch the card edge. */
.branding-locked-card .permission-banner{margin:24px 28px 28px;padding:17px 19px;border-radius:14px}
/* Approved state lives in the editable form, whose outer card has no
   horizontal padding. Keep it aligned with the policy note and save button. */
form.branding-settings-card>.permission-banner.approved{margin:16px 22px 0;padding:15px 17px;border-radius:13px}
@media(max-width:620px){
  .branding-locked-card .permission-banner{margin:20px 20px 22px}
  form.branding-settings-card>.permission-banner.approved{margin:15px 18px 0}
}

/* MVP 7.7.9c2e — active branding permission */
.branding-permission-active-panel{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:0 0 22px;padding:24px 28px;border:1px solid rgba(74,143,111,.28);border-radius:20px;background:linear-gradient(135deg,rgba(238,248,243,.96),rgba(255,251,242,.96));box-shadow:0 12px 32px rgba(22,59,92,.07)}
.branding-permission-active-panel .eyebrow{margin:0 0 5px}.branding-permission-active-panel h2{margin:0 0 5px;font-size:1.25rem}.branding-permission-active-panel p:last-child{margin:0;color:var(--muted)}.branding-permission-active-panel form{flex:0 0 auto}.branding-permission-active-panel button{white-space:nowrap;min-height:44px}
@media(max-width:760px){.branding-permission-active-panel{align-items:stretch;flex-direction:column;gap:18px}.branding-permission-active-panel button{width:100%}}

/* MVP 7.7.9c2f — aligned client-permission controls */
.permission-active-stack{display:grid;gap:12px;margin-bottom:12px}
.permission-active-stack .upload-permission-active{margin-bottom:0}
.branding-permission-inline .request-icon,.branding-request-card .request-icon{background:#eef0f8;color:#5f5a91}
.branding-permission-inline .request-copy>span,.branding-request-card .request-copy>span{color:#6b6597}
.branding-request-card{border-color:#d9d5ec;background:linear-gradient(135deg,#fbfaff,#f6f4fc)}
.request-actions,.branding-request-decision{display:flex;align-items:center;gap:12px}
.branding-request-decision{justify-content:flex-end;flex-wrap:wrap}
.branding-request-decision button{min-width:112px}
.upload-active-permission-panel{margin-top:12px}
@media(max-width:1050px){.request-actions,.branding-request-decision{gap:10px}}
@media(max-width:760px){.branding-request-decision{justify-content:flex-start}.branding-request-decision button{min-width:0}}
.issue-work-state .branding-request-decision{flex-direction:column;align-items:stretch;gap:10px}
.issue-work-state .branding-request-decision button{width:100%;min-width:0}

/* =============================================================
   MVP 7.7.9c2g — compact internal project navigation
   ============================================================= */
.viewer-internal .project-primary-tabs{
    flex-wrap:nowrap;
    gap:6px;
    overflow:visible;
}
.viewer-internal .project-primary-tabs>.tab{
    flex:0 1 auto;
    min-width:0;
    padding-left:15px;
    padding-right:15px;
}
.project-more-menu{
    position:relative;
    flex:0 0 auto;
    margin:0;
}
.project-more-menu>summary{list-style:none;cursor:pointer;user-select:none}
.project-more-menu>summary::-webkit-details-marker{display:none}
.project-more-summary{display:flex!important;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.project-more-summary svg{width:15px;height:15px;flex:0 0 auto;transition:transform .18s ease}
.project-more-menu[open] .project-more-summary svg{transform:rotate(180deg)}
.project-more-menu.active>.project-more-summary,
.project-more-menu[open]>.project-more-summary{
    background:#1c5578;
    color:#fff;
    box-shadow:inset 0 -4px 0 #f28c28,0 8px 20px rgba(22,59,92,.12);
}
.project-more-popover{
    position:absolute;
    z-index:80;
    top:calc(100% + 10px);
    right:0;
    width:245px;
    padding:10px;
    border:1px solid #cfe0e8;
    border-radius:14px;
    background:rgba(255,255,255,.98);
    box-shadow:0 18px 42px rgba(24,57,78,.18);
}
.project-more-popover:before{
    content:"";
    position:absolute;
    right:24px;
    top:-6px;
    width:11px;
    height:11px;
    transform:rotate(45deg);
    border-left:1px solid #cfe0e8;
    border-top:1px solid #cfe0e8;
    background:#fff;
}
.project-more-popover a{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    min-height:38px;
    padding:8px 11px;
    border-radius:9px;
    color:#244d67;
    font-size:.76rem;
    font-weight:800;
    text-decoration:none;
}
.project-more-popover a:hover{background:#edf7fb}
.project-more-popover a.active{background:#e5f2f8;color:#163b5c;box-shadow:inset 3px 0 0 #f28c28}
.project-more-label{display:block;padding:5px 10px 4px;color:#8093a0;font-size:.55rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.project-more-label-secondary{margin-top:6px;padding-top:10px;border-top:1px solid #e5edf1}
@media(max-width:1050px){
    .viewer-internal .project-primary-tabs{flex-wrap:wrap}
    .viewer-internal .project-primary-tabs>.tab{flex:1 1 auto}
    .project-more-menu{flex:1 1 auto}
    .project-more-summary{width:100%}
}
@media(max-width:680px){
    .project-more-menu{flex-basis:100%}
    .project-more-popover{left:0;right:0;width:auto}
    .project-more-popover:before{right:28px}
}

/* MVP 7.7.9d1 — refined branding permissions + logo card */
.branding-permission-actions{display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;max-width:100%;overflow:hidden}
.branding-permission-actions button{width:auto!important;max-width:100%;min-width:0;box-sizing:border-box;white-space:normal;font-size:.88rem;line-height:1.15;padding:0 20px}
.branding-current-logo{display:grid;grid-template-columns:150px minmax(0,1fr);grid-template-areas:"preview copy" "remove remove";gap:14px 18px;align-items:center;padding:16px;border:1px solid #d7e5eb;border-radius:15px;background:linear-gradient(135deg,#fbfdfe,#f5fafc);box-shadow:0 8px 20px rgba(24,73,101,.05)}
.branding-current-logo-preview{grid-area:preview;display:grid;place-items:center;min-height:104px;padding:13px;border:1px solid #e1eaee;border-radius:12px;background:linear-gradient(135deg,#fff,#f4f8fa)}
.branding-current-logo-preview img{display:block;width:100%;max-width:132px;max-height:78px;object-fit:contain}
.branding-current-logo-copy{grid-area:copy;display:grid;gap:5px;align-content:center}
.branding-current-logo-copy .eyebrow{margin:0;font-size:.58rem}
.branding-current-logo-copy strong{color:#173f5f;font-size:.86rem;line-height:1.2}
.branding-current-logo-copy small{max-width:480px;color:#718792;font-size:.6rem;line-height:1.45}
.branding-remove-logo{grid-area:remove;display:flex;align-items:center;gap:11px;padding:11px 13px;border:1px solid #e1e9ed;border-radius:11px;background:#fff;color:#4f6978;cursor:pointer}
.branding-remove-logo input{width:17px;height:17px;margin:0;accent-color:#163b5c;flex:0 0 auto}
.branding-remove-logo>span{display:grid;gap:2px}.branding-remove-logo strong{font-size:.66rem;color:#244e67}.branding-remove-logo small{font-size:.55rem;color:#80919a}
@media(max-width:620px){.branding-current-logo{grid-template-columns:1fr;grid-template-areas:"preview" "copy" "remove"}.branding-current-logo-preview{min-height:90px}.branding-permission-actions button{font-size:.82rem}}

/* =============================================================
   MVP 7.7.9d2 — branding reset, report preview, product controls
   ============================================================= */
.branding-form-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:16px 22px 22px}
.branding-form-actions .branding-save-button{margin:0;width:auto}.branding-reset-open{min-height:44px}
.branding-report-preview{overflow:hidden;border:1px solid #d9e5eb;border-radius:14px;background:#fff;box-shadow:0 10px 24px rgba(24,73,101,.07)}
.branding-preview-header{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:12px 14px;border-bottom:1px solid #e4ecef;background:#fbfdfe}
.branding-preview-header img{max-width:70px;max-height:28px;object-fit:contain}.branding-preview-header img.client{max-width:82px}.branding-preview-header em{font-size:.5rem;color:#9aa7af;font-style:normal;font-weight:800;text-transform:uppercase}
.branding-preview-body{padding:18px}.branding-preview-eyebrow{display:block;margin-bottom:5px;color:var(--brand-accent);font-size:.55rem;font-weight:950;text-transform:uppercase;letter-spacing:.04em}.branding-preview-body>strong{display:block;color:var(--brand-primary);font-size:1rem}.branding-preview-body>p{margin:7px 0 14px;color:#71838e;font-size:.61rem;line-height:1.45}
.branding-preview-table{border:1px solid color-mix(in srgb,var(--brand-primary) 34%,#dce5ea);border-radius:9px;overflow:hidden}.branding-preview-table>div{display:grid;grid-template-columns:1fr .55fr}.branding-preview-table>div+div{border-top:1px solid #e8eef1}.branding-preview-table b,.branding-preview-table span{padding:7px 9px;font-size:.54rem}.branding-preview-table b{color:var(--brand-primary);background:color-mix(in srgb,var(--brand-primary) 7%,white)}.branding-preview-table span{color:#566f7d}
.branding-reset-dialog{width:min(560px,calc(100vw - 32px));padding:0;border:0;border-radius:20px;background:#fff;box-shadow:0 28px 80px rgba(13,42,61,.28)}.branding-reset-dialog::backdrop{background:rgba(16,39,54,.48);backdrop-filter:blur(3px)}.branding-reset-shell{position:relative;padding:26px}.branding-reset-shell h2{margin:.15rem 0 .55rem}.branding-reset-shell>p:not(.eyebrow){color:#677d89;line-height:1.55}.branding-reset-close{position:absolute;right:16px;top:14px;border:0;background:transparent;color:#6f818b;font-size:1.5rem;cursor:pointer}.branding-purge-option{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;margin:20px 0;padding:14px;border:1px solid #ead9c4;border-radius:13px;background:#fff8ee;cursor:pointer}.branding-purge-option input{width:18px;height:18px;margin-top:2px;accent-color:#163b5c}.branding-purge-option span{display:grid;gap:4px}.branding-purge-option strong{color:#6f4a1d;font-size:.72rem}.branding-purge-option small{color:#806d59;font-size:.59rem;line-height:1.45}.branding-reset-actions{display:flex;justify-content:flex-end;gap:10px}
.artifact-client-visibility-action{display:inline-flex}.artifact-history-visibility{margin:0}.artifact-history-visibility button{border:0;background:transparent;padding:0;cursor:pointer}.artifact-current-actions{row-gap:10px}.review-queue-actions form{margin:0}
@media(max-width:620px){.branding-form-actions{flex-direction:column;align-items:stretch;padding:15px 18px 20px}.branding-form-actions>*{width:100%!important}.branding-reset-actions{flex-direction:column-reverse}.branding-reset-actions button{width:100%}}
/* MVP 7.7.9d2 — preserve navigation overlay after branding stylesheet merge */
.viewer-internal .project-primary-tabs{position:relative;z-index:1000}
.project-more-menu{z-index:1001}.project-more-popover{z-index:1010}

/* =============================================================
   MVP 7.7.9e — controlled dynamic client portal branding
   ============================================================= */
.client-portal-brand-lockup{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
    padding:5px 9px 5px 6px;
    border:1px solid #dbe5ea;
    border-radius:12px;
    background:rgba(255,255,255,.82);
    box-shadow:0 5px 14px rgba(21,58,80,.06);
}
.client-portal-logo-frame{
    display:grid;
    place-items:center;
    width:42px;
    height:30px;
    padding:3px 5px;
    border-radius:8px;
    background:#fff;
}
.client-portal-logo-frame img{max-width:100%;max-height:100%;object-fit:contain}
.client-portal-brand-name{
    max-width:145px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#536c7a;
    font-size:.63rem;
    font-weight:850;
}

.viewer-client.portal-client-branded .blvc-topline{
    background:linear-gradient(90deg,var(--client-primary),var(--client-accent));
}
.viewer-client.portal-client-branded .client-preview-banner{
    border-bottom-color:var(--client-primary-soft-strong);
    background:linear-gradient(90deg,var(--client-primary-soft),#fff 70%);
}
.viewer-client.portal-client-branded .client-preview-banner strong{color:var(--client-primary)}
.viewer-client.portal-client-branded .client-portal-brand-lockup{
    border-color:var(--client-primary-soft-strong);
    background:linear-gradient(135deg,#fff,var(--client-primary-soft));
}
.viewer-client.portal-client-branded .client-portal-brand-name{color:var(--client-primary)}

/* De gekozen huisstijl markeert de actieve plek, niet de hele interface. */
.viewer-client.portal-client-branded .project-primary-tabs .tab.active{
    background:var(--client-primary)!important;
    color:var(--client-primary-ink)!important;
    box-shadow:inset 0 -4px 0 var(--client-accent),0 8px 20px rgba(26,52,72,.12)!important;
}
.viewer-client.portal-client-branded .project-primary-tabs .tab:not(.active):hover{
    color:var(--client-primary);
    background:var(--client-primary-soft);
}
.viewer-client.portal-client-branded .portal-project-header{
    border-color:var(--client-primary-soft-strong);
    background:linear-gradient(118deg,#fff 0%,var(--client-primary-soft) 66%,var(--client-accent-soft) 100%);
}
.viewer-client.portal-client-branded .portal-project-header:after{
    border-color:var(--client-accent-soft-strong);
}
.viewer-client.portal-client-branded .portal-project-header h1{color:var(--client-primary)}
.viewer-client.portal-client-branded .portal-project-header .eyebrow{color:var(--client-accent)}
.viewer-client.portal-client-branded .workflow-status-badge{
    border-color:var(--client-primary-soft-strong);
    background:var(--client-primary-soft);
    color:var(--client-primary);
}

.viewer-client.portal-client-branded .client-home-focus-icon,
.viewer-client.portal-client-branded .client-home-card-icon.product,
.viewer-client.portal-client-branded .client-home-contact-icon{
    background:var(--client-primary);
    color:var(--client-primary-ink);
}
.viewer-client.portal-client-branded .client-home-card-icon.project{
    background:var(--client-accent);
    color:var(--client-accent-ink);
}
.viewer-client.portal-client-branded .client-home-card-icon.activity{
    background:linear-gradient(145deg,var(--client-primary),var(--client-accent));
    color:#fff;
}
.viewer-client.portal-client-branded .client-home-product:before{background:var(--client-primary)}
.viewer-client.portal-client-branded .client-home-project-card:before{background:var(--client-accent)}
.viewer-client.portal-client-branded .client-home-activity-card:before{background:linear-gradient(90deg,var(--client-primary),var(--client-accent))}
.viewer-client.portal-client-branded .client-home-product-version strong,
.viewer-client.portal-client-branded .client-home-metrics strong,
.viewer-client.portal-client-branded .client-home-card h2,
.viewer-client.portal-client-branded .client-home-contact-main h2{color:var(--client-primary)}
.viewer-client.portal-client-branded .client-home-metrics a:hover span{color:var(--client-accent)}
.viewer-client.portal-client-branded .client-home-contact-strip:before{background:linear-gradient(90deg,var(--client-primary),var(--client-accent))}

/* Belangrijkste klantacties volgen de primaire kleur met automatisch leesbare tekst. */
.viewer-client.portal-client-branded .client-home-primary-cta,
.viewer-client.portal-client-branded .client-home-contact-actions .button-link,
.viewer-client.portal-client-branded .client-document-download,
.viewer-client.portal-client-branded .client-blvc-actions .button-link,
.viewer-client.portal-client-branded .client-message-submit button,
.viewer-client.portal-client-branded .client-thread-reply button,
.viewer-client.portal-client-branded .branding-save-button{
    border-color:var(--client-primary)!important;
    background:var(--client-primary)!important;
    color:var(--client-primary-ink)!important;
}
.viewer-client.portal-client-branded .client-home-primary-cta:hover,
.viewer-client.portal-client-branded .client-home-contact-actions .button-link:hover,
.viewer-client.portal-client-branded .client-document-download:hover,
.viewer-client.portal-client-branded .client-blvc-actions .button-link:hover{
    filter:brightness(.94);
}

/* Subpagina's krijgen alleen subtiele merkaccenten. */
.viewer-client.portal-client-branded .client-doc-summary-card,
.viewer-client.portal-client-branded .client-blvc-current,
.viewer-client.portal-client-branded .client-message-compose,
.viewer-client.portal-client-branded .client-communication-explainer{
    border-color:var(--client-primary-soft-strong);
}
.viewer-client.portal-client-branded .client-blvc-current:before,
.viewer-client.portal-client-branded .client-message-compose:before{
    background:linear-gradient(90deg,var(--client-primary),var(--client-accent));
}
.viewer-client.portal-client-branded a.text-link{color:var(--client-primary)}
.viewer-client.portal-client-branded a.text-link:hover{color:var(--client-accent)}

@media(max-width:1050px){
    .client-portal-brand-name{display:none}
    .client-portal-brand-lockup{padding-right:6px}
}
@media(max-width:760px){
    .client-portal-brand-lockup{display:none}
}
/* Preserve the 7.7.9c2h stacking guarantee after later stylesheet patches. */
.viewer-internal .project-primary-tabs .project-more-popover{z-index:1200}

/* MVP 7.7.9g1 — custom template onboarding / structure analysis */
.template-onboarding-card{margin-top:22px;padding:0;overflow:hidden;border:1px solid #d9e6eb;background:linear-gradient(180deg,#fff,#fbfdfe);box-shadow:0 16px 38px rgba(22,59,92,.08)}
.template-onboarding-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:26px 28px 22px;border-bottom:1px solid #e7eef1;background:linear-gradient(135deg,#fbfdff,#f6fafc)}
.template-onboarding-head h2{margin:.1rem 0 .45rem}.template-onboarding-head p:last-child{max-width:820px;margin:0;color:#697f8c;line-height:1.55}
.template-onboarding-step{flex:0 0 auto;padding:8px 11px;border-radius:999px;background:#eef5f8;color:#315a70;font-size:.66rem;font-weight:900;letter-spacing:.02em}
.template-onboarding-card>.success-alert,.template-onboarding-card>.error-alert{margin:18px 28px 0}
.template-upload-form{display:flex;align-items:stretch;gap:12px;padding:22px 28px}
.template-upload-drop{flex:1;display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:center;padding:14px 16px;border:1.5px dashed #cbdde5;border-radius:14px;background:#fbfdfe;cursor:pointer;position:relative;overflow:hidden}
.template-upload-drop:hover{border-color:#8db1c2;background:#f8fbfc}.template-upload-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}.template-upload-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:#edf5f8;color:#285a71}.template-upload-icon svg{width:20px;height:20px}.template-upload-drop>span:nth-child(2){display:grid;gap:3px}.template-upload-drop strong{font-size:.75rem;color:#234d64}.template-upload-drop small{font-size:.58rem;color:#7c909b}.template-upload-form>button{flex:0 0 auto;min-width:170px;border-radius:13px}
.template-onboarding-locked{margin:22px 28px;padding:17px 18px;border:1px solid #ead9c2;border-radius:14px;background:#fff8ee;color:#6e5738}.template-onboarding-locked strong{font-size:.72rem}.template-onboarding-locked p{margin:5px 0 0;font-size:.62rem;line-height:1.5;color:#806c52}
.template-analysis-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 28px 20px}.template-analysis-summary>div{padding:14px 15px;border:1px solid #e0eaee;border-radius:12px;background:#fff}.template-analysis-summary span{display:block;color:#7b8e99;font-size:.55rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.template-analysis-summary strong{display:block;margin-top:4px;color:#173f5f;font-size:1.15rem}
.template-analysis-file{display:flex;justify-content:space-between;gap:18px;align-items:end;margin:0 28px 18px;padding:14px 16px;border:1px solid #e2ebef;border-radius:12px;background:#f8fbfc}.template-analysis-file>div{display:grid;gap:3px}.template-analysis-file .eyebrow{margin:0}.template-analysis-file strong{font-size:.72rem;color:#244d64;overflow-wrap:anywhere}.template-analysis-file small{max-width:430px;color:#758995;font-size:.57rem;line-height:1.45;text-align:right}
.template-analysis-warnings{margin:0 28px 18px;padding:13px 15px;border:1px solid #eadfc9;border-radius:12px;background:#fffaf1}.template-analysis-warnings p{margin:0;color:#725f43;font-size:.61rem;line-height:1.5}.template-analysis-warnings p+p{margin-top:5px}
.template-mapping-list{border-top:1px solid #e8eef1}.template-mapping-title{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:22px 28px 16px}.template-mapping-title h3{margin:.1rem 0 0}.template-mapping-title>small{max-width:380px;color:#7b8d97;font-size:.56rem;line-height:1.4;text-align:right}
.template-map-row{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);gap:22px;padding:17px 28px;border-top:1px solid #eef2f4;background:#fff}.template-map-row:nth-child(odd){background:#fcfdfe}.template-map-heading{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start}.template-map-heading>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#edf4f7;color:#4e7182;font-size:.62rem;font-weight:900}.template-map-heading>div{display:grid;gap:3px}.template-map-heading strong{font-size:.7rem;line-height:1.35;color:#254d63}.template-map-heading small{font-size:.52rem;color:#93a0a8}.template-map-result{min-width:0}.template-map-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:.52rem;font-weight:900}.template-map-badge.good{background:#edf7f1;color:#42765a}.template-map-badge.combined{background:#eef2fb;color:#526a9b}.template-map-badge.check{background:#fff6e8;color:#91662c}.template-map-badge.unknown{background:#fff0ed;color:#9a5449}.template-map-modules{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}.template-map-modules span{padding:5px 7px;border-radius:7px;background:#f1f5f7;color:#4f6c7b;font-size:.52rem;font-weight:800}.template-map-result>p{margin:8px 0 0;color:#657a86;font-size:.61rem;line-height:1.5}.template-map-help{display:grid;gap:3px;margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff8f6;border:1px solid #f0ddd7}.template-map-help strong{font-size:.56rem;color:#8b574d}.template-map-help span{font-size:.56rem;color:#786b67;line-height:1.4}
.template-reference-note{margin:20px 28px 28px;padding:16px 18px;border:1px solid #d7e4ef;border-radius:13px;background:linear-gradient(135deg,#f7fbff,#fbfdfe)}.template-reference-note strong{color:#315c78;font-size:.68rem}.template-reference-note p{margin:5px 0 0;color:#6d808b;font-size:.6rem;line-height:1.5}
@media(max-width:880px){.template-analysis-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.template-map-row{grid-template-columns:1fr}.template-mapping-title{align-items:start;flex-direction:column}.template-mapping-title>small{text-align:left}.template-analysis-file{align-items:start;flex-direction:column}.template-analysis-file small{text-align:left}}
@media(max-width:620px){.template-onboarding-head{padding:22px 20px;flex-direction:column}.template-onboarding-card>.success-alert,.template-onboarding-card>.error-alert{margin:16px 20px 0}.template-upload-form{padding:18px 20px;flex-direction:column}.template-upload-form>button{width:100%}.template-analysis-summary{padding:0 20px 18px}.template-analysis-file,.template-analysis-warnings,.template-reference-note{margin-left:20px;margin-right:20px}.template-mapping-title,.template-map-row{padding-left:20px;padding-right:20px}.template-analysis-summary{grid-template-columns:1fr 1fr}}

/* MVP 7.7.9g1a — calmer grouped custom-template analysis */
.template-upload-drop.has-file,.template-upload-drop:has(input:valid){border-style:solid}
.template-upload-drop strong[data-template-file-label]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.template-mapping-groups{display:grid;gap:12px;padding:0 28px 28px}
.template-map-group{border:1px solid #dfe9ed;border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 7px 20px rgba(22,59,92,.035)}
.template-map-group>summary{list-style:none;display:grid;grid-template-columns:34px minmax(0,1fr) auto 18px;gap:12px;align-items:center;padding:15px 16px;cursor:pointer;background:#fbfdfe}
.template-map-group>summary::-webkit-details-marker{display:none}.template-map-group>summary::marker{display:none}
.template-map-group>summary:hover{background:#f7fbfc}.template-map-group>summary>div{display:grid;gap:2px}.template-map-group>summary strong{color:#234d64;font-size:.72rem}.template-map-group>summary small{color:#758995;font-size:.57rem;line-height:1.4}
.template-map-group-icon{width:34px;height:34px;border-radius:10px;display:block;position:relative}.template-map-group-icon:before{content:"";position:absolute;inset:9px;border-radius:50%;border:2px solid currentColor}.template-map-group-icon:after{content:"";position:absolute;left:16px;top:9px;width:2px;height:16px;background:currentColor;border-radius:2px}
.template-map-group.tone-good .template-map-group-icon{background:#edf7f1;color:#47785c}.template-map-group.tone-combined .template-map-group-icon{background:#eef2fb;color:#596fa4}.template-map-group.tone-check .template-map-group-icon{background:#fff6e8;color:#946a30}.template-map-group.tone-unknown .template-map-group-icon{background:#fff0ed;color:#9a584d}
.template-map-group-count{min-width:32px;height:28px;padding:0 9px;display:grid;place-items:center;border-radius:999px;background:#eef5f7;color:#3e6375;font-size:.58rem;font-weight:900}.template-map-group-chevron{font-size:.9rem;color:#6d8794;transition:transform .18s ease}.template-map-group[open] .template-map-group-chevron{transform:rotate(180deg)}
.template-map-group-body{border-top:1px solid #e9eff2}.template-map-group .template-map-row{padding:15px 16px;border-top:1px solid #edf2f4}.template-map-group .template-map-row:first-child{border-top:0}.template-map-group .template-map-row:nth-child(odd){background:#fff}.template-map-group .template-map-row:nth-child(even){background:#fcfdfe}.template-map-group .template-map-badge{display:none}
.template-map-group .template-map-modules{margin-top:0}
@media(max-width:620px){.template-mapping-groups{padding-left:20px;padding-right:20px}.template-map-group>summary{grid-template-columns:30px minmax(0,1fr) auto 14px;gap:9px;padding:13px}.template-map-group-icon{width:30px;height:30px}.template-map-group-icon:before{inset:8px}.template-map-group-icon:after{left:14px;top:8px;height:14px}.template-map-group .template-map-row{padding:14px}}

/* MVP 7.7.9g1c — premium template-analysis visual hierarchy */
.template-mapping-list{background:linear-gradient(180deg,#fbfdff 0%,#f7fafc 100%)}
.template-mapping-title{padding-top:26px;padding-bottom:18px}
.template-mapping-title h3{font-size:1.22rem;color:#183f5e}
.template-mapping-title .eyebrow{color:#6b8290}
.template-mapping-groups{gap:16px;padding-bottom:34px}
.template-map-group{--group:#50768a;--group-soft:#eef5f8;--group-border:#dce9ee;border:1px solid var(--group-border);border-radius:18px;box-shadow:0 12px 30px rgba(22,59,92,.07);background:#fff;overflow:hidden}
.template-map-group.tone-good{--group:#34765a;--group-soft:#edf8f1;--group-border:#cfe7d8}
.template-map-group.tone-combined{--group:#536da7;--group-soft:#eef2fc;--group-border:#d7dff3}
.template-map-group.tone-check{--group:#9a6a27;--group-soft:#fff6e7;--group-border:#efdfbd}
.template-map-group.tone-unknown{--group:#a45c50;--group-soft:#fff0ed;--group-border:#efd4cf}
.template-map-group>summary{position:relative;grid-template-columns:46px minmax(0,1fr) auto 22px;gap:14px;padding:18px 20px;background:linear-gradient(100deg,var(--group-soft),#fff 72%);border-left:5px solid var(--group);transition:background .18s ease,box-shadow .18s ease}
.template-map-group>summary:hover{background:linear-gradient(100deg,var(--group-soft),#fbfdff 72%)}
.template-map-group[open]>summary{box-shadow:0 7px 18px rgba(22,59,92,.05)}
.template-map-group>summary strong{font-size:.8rem;color:#173f5f}.template-map-group>summary small{margin-top:2px;font-size:.6rem;color:#667f8c;line-height:1.45}
.template-map-group-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#fff!important;color:var(--group)!important;box-shadow:0 5px 14px rgba(22,59,92,.08);border:1px solid color-mix(in srgb,var(--group) 22%,#fff)}
.template-map-group-icon:before,.template-map-group-icon:after{display:none!important}.template-map-group-icon svg{width:24px;height:24px;display:block}
.template-map-group-count{height:30px;min-width:34px;background:#fff;color:var(--group);border:1px solid color-mix(in srgb,var(--group) 18%,#fff);box-shadow:0 3px 10px rgba(22,59,92,.04)}
.template-map-group-chevron{width:20px;height:20px;display:grid;place-items:center;color:var(--group)}.template-map-group-chevron svg{width:18px;height:18px}.template-map-group[open] .template-map-group-chevron{transform:rotate(180deg)}
.template-map-group-body{padding:12px;background:color-mix(in srgb,var(--group-soft) 58%,#fff);border-top:1px solid var(--group-border)}
.template-map-group .template-map-row{position:relative;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);gap:24px;margin:0 0 10px;padding:17px 18px;border:1px solid #e6edf0!important;border-radius:14px;background:#fff!important;box-shadow:0 4px 13px rgba(22,59,92,.035)}
.template-map-group .template-map-row:last-child{margin-bottom:0}.template-map-group .template-map-row:before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:0 3px 3px 0;background:var(--group)}
.template-map-heading{display:block}.template-map-heading-copy{display:grid;gap:8px;padding-left:4px}.template-map-heading-copy>strong{font-size:.76rem;line-height:1.35;color:#173f5f}
.template-map-level-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.template-map-level{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:999px;background:var(--group-soft);color:var(--group);font-size:.52rem;font-weight:900;letter-spacing:.025em}.template-map-level.is-subchapter{background:#f3f6f8;color:#657f8d}.template-map-style{font-size:.5rem;color:#90a0a8}
.template-map-result{display:grid;align-content:start;gap:8px;padding-top:2px}.template-map-group .template-map-modules{display:flex;align-items:center;gap:6px;margin:0}.template-map-modules-label{background:transparent!important;padding-left:0!important;color:#8597a1!important;text-transform:uppercase;letter-spacing:.04em;font-size:.48rem!important}.template-map-modules span:not(.template-map-modules-label){background:var(--group-soft);color:var(--group);border:1px solid color-mix(in srgb,var(--group) 12%,#fff);border-radius:999px;padding:5px 8px}
.template-map-result>p{margin:0;font-size:.62rem;color:#617985;line-height:1.55}.template-map-help{margin-top:2px;border-color:var(--group-border);background:var(--group-soft)}
.template-analysis-summary>div{position:relative;overflow:hidden;box-shadow:0 8px 22px rgba(22,59,92,.045)}.template-analysis-summary>div:after{content:"";position:absolute;right:-14px;bottom:-16px;width:58px;height:58px;border-radius:50%;background:#edf5f8}.template-analysis-summary strong,.template-analysis-summary span{position:relative;z-index:1}
@media(max-width:880px){.template-map-group .template-map-row{grid-template-columns:1fr}.template-map-result{padding-top:0}}
@media(max-width:620px){.template-map-group>summary{grid-template-columns:38px minmax(0,1fr) auto 18px;padding:15px 14px;border-left-width:4px}.template-map-group-icon{width:36px;height:36px;border-radius:11px}.template-map-group-icon svg{width:21px;height:21px}.template-map-group-body{padding:9px}.template-map-group .template-map-row{padding:15px 14px;margin-bottom:8px}.template-map-heading-copy>strong{font-size:.72rem}}

/* MVP 7.7.9g1c — premium template-analysis visual hierarchy */
.template-mapping-list{background:linear-gradient(180deg,#fbfdff 0%,#f7fafc 100%)}
.template-mapping-title{padding-top:26px;padding-bottom:18px}
.template-mapping-title h3{font-size:1.22rem;color:#183f5e}
.template-mapping-title .eyebrow{color:#6b8290}
.template-mapping-groups{gap:16px;padding-bottom:34px}
.template-map-group{--group:#50768a;--group-soft:#eef5f8;--group-border:#dce9ee;border:1px solid var(--group-border);border-radius:18px;box-shadow:0 12px 30px rgba(22,59,92,.07);background:#fff;overflow:hidden}
.template-map-group.tone-good{--group:#34765a;--group-soft:#edf8f1;--group-border:#cfe7d8}
.template-map-group.tone-combined{--group:#536da7;--group-soft:#eef2fc;--group-border:#d7dff3}
.template-map-group.tone-check{--group:#9a6a27;--group-soft:#fff6e7;--group-border:#efdfbd}
.template-map-group.tone-unknown{--group:#a45c50;--group-soft:#fff0ed;--group-border:#efd4cf}
.template-map-group>summary{position:relative;grid-template-columns:46px minmax(0,1fr) auto 22px;gap:14px;padding:18px 20px;background:linear-gradient(100deg,var(--group-soft),#fff 72%);border-left:5px solid var(--group);transition:background .18s ease,box-shadow .18s ease}
.template-map-group>summary:hover{background:linear-gradient(100deg,var(--group-soft),#fbfdff 72%)}
.template-map-group[open]>summary{box-shadow:0 7px 18px rgba(22,59,92,.05)}
.template-map-group>summary strong{font-size:.8rem;color:#173f5f}.template-map-group>summary small{margin-top:2px;font-size:.6rem;color:#667f8c;line-height:1.45}
.template-map-group-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#fff!important;color:var(--group)!important;box-shadow:0 5px 14px rgba(22,59,92,.08);border:1px solid rgba(22,59,92,.08)}
.template-map-group-icon:before,.template-map-group-icon:after{display:none!important}.template-map-group-icon svg{width:24px;height:24px;display:block}
.template-map-group-count{height:30px;min-width:34px;background:#fff;color:var(--group);border:1px solid rgba(22,59,92,.08);box-shadow:0 3px 10px rgba(22,59,92,.04)}
.template-map-group-chevron{width:20px;height:20px;display:grid;place-items:center;color:var(--group)}.template-map-group-chevron svg{width:18px;height:18px}.template-map-group[open] .template-map-group-chevron{transform:rotate(180deg)}
.template-map-group-body{padding:12px;background:var(--group-soft);border-top:1px solid var(--group-border)}
.template-map-group .template-map-row{position:relative;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);gap:24px;margin:0 0 10px;padding:17px 18px;border:1px solid #e6edf0!important;border-radius:14px;background:#fff!important;box-shadow:0 4px 13px rgba(22,59,92,.035)}
.template-map-group .template-map-row:last-child{margin-bottom:0}.template-map-group .template-map-row:before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;border-radius:0 3px 3px 0;background:var(--group)}
.template-map-heading{display:block}.template-map-heading-copy{display:grid;gap:8px;padding-left:4px}.template-map-heading-copy>strong{font-size:.76rem;line-height:1.35;color:#173f5f}
.template-map-level-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.template-map-level{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:999px;background:var(--group-soft);color:var(--group);font-size:.52rem;font-weight:900;letter-spacing:.025em}.template-map-level.is-subchapter{background:#f3f6f8;color:#657f8d}.template-map-style{font-size:.5rem;color:#90a0a8}
.template-map-result{display:grid;align-content:start;gap:8px;padding-top:2px}.template-map-group .template-map-modules{display:flex;align-items:center;gap:6px;margin:0}.template-map-modules-label{background:transparent!important;padding-left:0!important;color:#8597a1!important;text-transform:uppercase;letter-spacing:.04em;font-size:.48rem!important}.template-map-modules span:not(.template-map-modules-label){background:var(--group-soft);color:var(--group);border:1px solid rgba(22,59,92,.06);border-radius:999px;padding:5px 8px}
.template-map-result>p{margin:0;font-size:.62rem;color:#617985;line-height:1.55}.template-map-help{margin-top:2px;border-color:var(--group-border);background:var(--group-soft)}
.template-analysis-summary>div{position:relative;overflow:hidden;box-shadow:0 8px 22px rgba(22,59,92,.045)}.template-analysis-summary>div:after{content:"";position:absolute;right:-14px;bottom:-16px;width:58px;height:58px;border-radius:50%;background:#edf5f8}.template-analysis-summary strong,.template-analysis-summary span{position:relative;z-index:1}
@media(max-width:880px){.template-map-group .template-map-row{grid-template-columns:1fr}.template-map-result{padding-top:0}}
@media(max-width:620px){.template-map-group>summary{grid-template-columns:38px minmax(0,1fr) auto 18px;padding:15px 14px;border-left-width:4px}.template-map-group-icon{width:36px;height:36px;border-radius:11px}.template-map-group-icon svg{width:21px;height:21px}.template-map-group-body{padding:9px}.template-map-group .template-map-row{padding:15px 14px;margin-bottom:8px}.template-map-heading-copy>strong{font-size:.72rem}}

/* MVP 7.7.9g1d — shareable template-analysis export */
.template-analysis-file-actions{display:flex;align-items:flex-end;gap:14px;justify-content:flex-end;min-width:0}.template-analysis-file-actions>small{max-width:390px}.template-export-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}.template-export-actions>span{font-size:.56rem;font-weight:800;color:#718794;text-transform:uppercase;letter-spacing:.055em;margin-right:2px}.template-export-actions>a{display:inline-flex;align-items:center;justify-content:center;min-height:31px;padding:0 11px;border:1px solid #cfe0e8;border-radius:9px;background:#fff;color:#1a4a68;text-decoration:none;font-size:.62rem;font-weight:800;box-shadow:0 5px 14px rgba(22,59,92,.05)}.template-export-actions>a:hover{background:#eef7fb;border-color:#abd2e2}.template-export-actions>a:first-of-type{background:#173f5f;color:#fff;border-color:#173f5f}.template-export-actions>a:first-of-type:hover{background:#205575}
@media(max-width:880px){.template-analysis-file-actions{align-items:flex-start;flex-direction:column}.template-export-actions{flex-wrap:wrap}.template-analysis-file-actions>small{text-align:left}}

/* MVP 7.7.9g2 — interactieve template-mapping */
.mapping-review-shell{max-width:1380px;margin:0 auto 60px}.mapping-review-hero{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px;align-items:end;padding:30px 34px;margin:20px 0;background:linear-gradient(120deg,#eef9fd 0%,#fff 58%,#fff5e9 100%);border:1px solid #b9dbea;border-radius:22px;box-shadow:0 18px 42px rgba(22,59,92,.08)}.mapping-back{display:inline-flex;margin-bottom:18px;color:#627c89;text-decoration:none;font-size:.68rem;font-weight:700}.mapping-review-hero h1{margin:.2rem 0 .55rem;font-size:2rem;line-height:1.08}.mapping-review-hero p:not(.eyebrow){max-width:830px;margin:0;color:#667d89;line-height:1.6}.mapping-progress-card{padding:18px 20px;background:#173f5f;color:#fff;border-radius:17px;box-shadow:0 14px 28px rgba(23,63,95,.18)}.mapping-progress-card>span{display:block;font-size:.58rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;opacity:.7}.mapping-progress-card>strong{display:block;margin:5px 0 10px;font-size:1.6rem}.mapping-progress-track{height:7px;border-radius:999px;background:rgba(255,255,255,.16);overflow:hidden}.mapping-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#74c8de,#f39a35)}.mapping-progress-card small{display:block;margin-top:9px;font-size:.58rem;line-height:1.4;opacity:.78}.mapping-save-alert{margin:0 0 16px}.mapping-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}.mapping-legend>div{display:grid;grid-template-columns:10px minmax(0,1fr);gap:2px 10px;align-items:center;padding:14px 16px;background:#fff;border:1px solid #deeaef;border-radius:14px;box-shadow:0 7px 18px rgba(22,59,92,.04)}.mapping-legend>div>span{grid-row:1/3;width:9px;height:32px;border-radius:999px}.mapping-legend strong{font-size:.67rem;color:#173f5f}.mapping-legend small{font-size:.54rem;color:#7b8f99}.mapping-legend .is-good>span{background:#4d9571}.mapping-legend .is-combined>span{background:#637cbb}.mapping-legend .is-check>span{background:#c58a36}.mapping-legend .is-unknown>span{background:#bf6f61}.mapping-review-form{display:grid;gap:16px}.mapping-chapter{background:#fff;border:1px solid #dce8ed;border-radius:20px;overflow:hidden;box-shadow:0 11px 28px rgba(22,59,92,.055)}.mapping-chapter.needs-attention{border-color:#efd7ae}.mapping-chapter-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:19px 24px;background:linear-gradient(100deg,#f3f9fb,#fff 72%);border-bottom:1px solid #e4edf1}.mapping-chapter-head>div>span{display:block;margin-bottom:2px;font-size:.52rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em;color:#79909c}.mapping-chapter-head h2{margin:0;font-size:1rem;color:#173f5f}.mapping-resolution{display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border-radius:999px;background:#eef4f7;color:#55707e;font-size:.56rem;font-weight:850}.mapping-resolution.resolution-accepted{background:#edf8f1;color:#34765a}.mapping-resolution.resolution-custom{background:#eef2fc;color:#536da7}.mapping-resolution.resolution-skip{background:#f3f4f5;color:#69777d}.mapping-resolution.resolution-review,.mapping-resolution.resolution-needs_input{background:#fff3df;color:#91611e}.mapping-section-stack{display:grid;gap:10px;padding:12px}.mapping-edit-card{--map:#52788b;--soft:#eef5f8;display:grid;grid-template-columns:minmax(0,.8fr) minmax(420px,1.2fr);gap:24px;padding:18px 20px;border:1px solid #e5edf0;border-radius:15px;background:#fff;box-shadow:0 3px 11px rgba(22,59,92,.025)}.mapping-edit-card.mapping-type-direct{--map:#34765a;--soft:#edf8f1}.mapping-edit-card.mapping-type-combined{--map:#536da7;--soft:#eef2fc}.mapping-edit-card.mapping-type-check{--map:#9a6a27;--soft:#fff6e7}.mapping-edit-card.mapping-type-needs_information{--map:#a45c50;--soft:#fff0ed}.mapping-edit-meta{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.mapping-edit-meta span,.mapping-edit-meta b{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:.5rem}.mapping-edit-meta span{background:#f2f5f6;color:#718590}.mapping-edit-meta b{background:var(--soft);color:var(--map)}.mapping-edit-copy h3{margin:9px 0 9px;font-size:.82rem;color:#173f5f}.mapping-source-pills{display:flex;gap:6px;flex-wrap:wrap}.mapping-source-pills span{padding:5px 8px;border-radius:8px;background:var(--soft);color:var(--map);font-size:.54rem;font-weight:800}.mapping-edit-copy p{margin:10px 0 0;color:#697f8a;font-size:.61rem;line-height:1.55}.mapping-synthesis-note{padding:9px 11px;border-left:3px solid var(--map);background:var(--soft);border-radius:0 9px 9px 0}.mapping-edit-controls{display:grid;gap:10px;align-content:start}.mapping-confirm,.mapping-skip{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #dfe9ed;border-radius:11px;background:#fafcfd}.mapping-confirm input,.mapping-skip input{margin-top:3px}.mapping-confirm strong{display:block;color:#173f5f;font-size:.63rem}.mapping-confirm small{display:block;color:#7a8f9a;font-size:.52rem;margin-top:1px}.mapping-skip span{font-size:.57rem;color:#647c88}.mapping-module-picker{border:1px solid #dfe9ed;border-radius:11px;background:#fbfdfe}.mapping-module-picker>summary{padding:10px 12px;cursor:pointer;font-size:.59rem;font-weight:850;color:#214e6b}.mapping-module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0 10px 10px}.mapping-module-grid label{position:relative}.mapping-module-grid input{position:absolute;opacity:0;pointer-events:none}.mapping-module-grid span{display:flex;min-height:34px;align-items:center;padding:7px 9px;border:1px solid #e0e8ec;border-radius:8px;background:#fff;color:#5f7681;font-size:.53rem;font-weight:750;cursor:pointer}.mapping-module-grid input:checked+span{border-color:var(--map);background:var(--soft);color:var(--map);box-shadow:inset 0 0 0 1px var(--map)}.mapping-note{display:grid;gap:5px}.mapping-note>span{font-size:.55rem;font-weight:800;color:#617984}.mapping-note textarea{width:100%;min-height:72px;resize:vertical;padding:10px 11px;border:1px solid #d8e5ea;border-radius:10px;font:inherit;font-size:.61rem;line-height:1.45;color:#294b5f;background:#fff}.mapping-sticky-actions{position:sticky;bottom:14px;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:15px 18px;margin-top:4px;border:1px solid #cadde6;border-radius:15px;background:rgba(255,255,255,.95);box-shadow:0 16px 35px rgba(22,59,92,.16);backdrop-filter:blur(12px)}.mapping-sticky-actions strong{display:block;color:#173f5f;font-size:.65rem}.mapping-sticky-actions small{display:block;margin-top:2px;color:#7a8e98;font-size:.53rem}.mapping-sticky-actions button{min-width:160px}.template-mapping-next{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 28px 22px;padding:16px 18px;border:1px solid #cfe2ea;border-radius:14px;background:linear-gradient(110deg,#edf8fc,#fff)}.template-mapping-next strong{display:block;color:#173f5f;font-size:.7rem}.template-mapping-next p{margin:3px 0 0;color:#6c818c;font-size:.56rem}.template-mapping-next .button-primary{white-space:nowrap;text-decoration:none}
@media(max-width:980px){.mapping-review-hero{grid-template-columns:1fr}.mapping-progress-card{max-width:360px}.mapping-legend{grid-template-columns:1fr 1fr}.mapping-edit-card{grid-template-columns:1fr}.mapping-module-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.mapping-review-hero{padding:23px 20px}.mapping-review-hero h1{font-size:1.55rem}.mapping-legend{grid-template-columns:1fr}.mapping-chapter-head{align-items:flex-start;flex-direction:column}.mapping-edit-card{padding:15px 14px}.mapping-module-grid{grid-template-columns:1fr}.mapping-sticky-actions,.template-mapping-next{align-items:stretch;flex-direction:column}.mapping-sticky-actions button,.template-mapping-next .button-primary{width:100%}.template-mapping-next{margin-left:20px;margin-right:20px}}

/* MVP 7.7.9g2a — interne templatebeoordeling + gerichte klantvragen */
.template-client-status-card{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:18px;align-items:center;margin:24px 28px;padding:20px 22px;border:1px solid #d6e5eb;border-radius:18px;background:linear-gradient(110deg,#f1f9fc,#fff);box-shadow:0 10px 26px rgba(22,59,92,.06)}
.template-client-status-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#e8f3f7;color:#245a75;font-size:1.1rem;font-weight:900}.template-client-status-card h3{margin:.12rem 0 .3rem;color:#183f5e}.template-client-status-card p:not(.eyebrow){margin:0;max-width:760px;color:#687f8b;line-height:1.55}.template-client-status-card.status-client_review{border-color:#ecd8ae;background:linear-gradient(110deg,#fff7e9,#fff)}.template-client-status-card.status-client_review .template-client-status-icon{background:#fff0ce;color:#976318}.template-client-status-card.status-client_submitted,.template-client-status-card.status-approved{border-color:#cde4d5;background:linear-gradient(110deg,#eef9f2,#fff)}.template-client-status-card.status-client_submitted .template-client-status-icon,.template-client-status-card.status-approved .template-client-status-icon{background:#dff2e6;color:#377454}.template-client-file-row{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:0 28px 24px;padding:13px 16px;border:1px solid #e2eaee;border-radius:13px;background:#fbfdfe}.template-client-file-row strong{color:#244e65;font-size:.68rem}.template-internal-review-preview{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:20px;align-items:center;margin:20px 28px 24px;padding:19px 20px;border:1px solid #cfe1e9;border-radius:16px;background:linear-gradient(110deg,#eef8fc,#fff 68%)}.template-internal-review-preview h3{margin:.1rem 0 .3rem}.template-internal-review-preview p:not(.eyebrow){margin:0;color:#6b818d;font-size:.62rem;line-height:1.5}.template-internal-status{display:grid;gap:2px;text-align:right}.template-internal-status span{font-size:.52rem;color:#82949d}.template-internal-status strong{font-size:.72rem;color:#183f5e}.template-reanalyse-form{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 28px 24px;padding-top:17px;border-top:1px solid #e7eef1}.template-reanalyse-form label{display:flex;align-items:center;gap:12px;color:#637c89;font-size:.6rem;font-weight:800}.template-reanalyse-form input{font-size:.58rem}
.mapping-client-return{margin:0 0 16px;padding:15px 18px;border:1px solid #d4e5ec;border-radius:14px;background:#f2f9fc}.mapping-client-return strong{display:block;color:#18415f}.mapping-client-return p{margin:4px 0 0;color:#6c818c;font-size:.62rem}.mapping-client-return.waiting{border-color:#ecd9b4;background:#fff7e9}.mapping-client-return.approved{border-color:#cde4d5;background:#eef9f2}.mapping-client-response{display:grid;gap:4px;margin-top:12px;padding:11px 13px;border-left:4px solid #5f7db8;border-radius:0 10px 10px 0;background:#f0f4fc}.mapping-client-response>span{font-size:.5rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#667db0}.mapping-client-response strong{font-size:.61rem;color:#294b64}.mapping-client-response p{margin:0;color:#526d7c;font-size:.61rem;line-height:1.5}.mapping-resolution.resolution-client_response{background:#eef2fc;color:#536da7}.mapping-next-step-panel{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:18px;padding:20px 22px;border:1px solid #cfe1e9;border-radius:17px;background:linear-gradient(110deg,#eef8fc,#fff 70%);box-shadow:0 9px 24px rgba(22,59,92,.05)}.mapping-next-step-panel h2{margin:.12rem 0 .35rem;font-size:1rem}.mapping-next-step-panel p{margin:0;color:#6a808c;font-size:.62rem;line-height:1.5}.mapping-next-step-panel form{margin:0}.mapping-next-step-panel button{white-space:nowrap}
.template-client-review-shell{max-width:1120px;margin:0 auto 60px}.template-client-review-hero{padding:30px 34px;margin:18px 0;border:1px solid #b9dbea;border-radius:22px;background:linear-gradient(120deg,#edf8fc,#fff 60%,#fff6ea);box-shadow:0 16px 40px rgba(22,59,92,.08)}.template-client-review-hero h1{margin:.15rem 0 .5rem;font-size:1.8rem}.template-client-review-hero p:not(.eyebrow){max-width:820px;margin:0;color:#667e8a;line-height:1.6}.template-client-question-form{display:grid;gap:14px}.template-client-question-card{padding:20px 22px;border:1px solid #dce8ed;border-radius:17px;background:#fff;box-shadow:0 9px 24px rgba(22,59,92,.05)}.template-client-question-head{display:grid;gap:5px;margin-bottom:13px}.template-client-question-head>span{width:max-content;padding:4px 8px;border-radius:999px;background:#edf5f8;color:#56788a;font-size:.5rem;font-weight:900}.template-client-question-head h2{margin:0;font-size:.95rem;color:#173f5f}.template-client-proposal{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:10px 12px;border-radius:11px;background:#f6f9fa}.template-client-proposal>span{font-size:.53rem;font-weight:850;color:#718792}.template-client-proposal>div{display:flex;gap:6px;flex-wrap:wrap}.template-client-proposal b{padding:5px 8px;border-radius:999px;background:#e9f2f6;color:#315d73;font-size:.52rem}.template-client-confirm{display:flex;gap:11px;align-items:flex-start;margin:10px 0;padding:11px 12px;border:1px solid #dce7eb;border-radius:11px;background:#fbfdfe}.template-client-confirm input{margin-top:3px}.template-client-confirm strong{display:block;font-size:.63rem;color:#214c64}.template-client-confirm small{display:block;margin-top:2px;color:#7d9099;font-size:.53rem}.template-client-question-copy{margin:0 0 11px;color:#657d88;font-size:.63rem;line-height:1.55}.template-reference-client-note{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;padding:15px 17px;border:1px solid #e7d8b8;border-radius:14px;background:#fff8eb}.template-reference-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#fff0cf;color:#986a25;font-weight:900}.template-reference-client-note strong{color:#745321;font-size:.64rem}.template-reference-client-note p{margin:4px 0 0;color:#7b6b50;font-size:.58rem;line-height:1.5}.template-client-submit{position:sticky;bottom:14px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:15px 18px;border:1px solid #cadde6;border-radius:15px;background:rgba(255,255,255,.96);box-shadow:0 16px 35px rgba(22,59,92,.15);backdrop-filter:blur(12px)}.template-client-submit strong{display:block;color:#173f5f;font-size:.64rem}.template-client-submit small{display:block;margin-top:2px;color:#7b8f99;font-size:.53rem}.template-client-submitted{padding:22px 24px;border:1px solid #cde4d5;border-radius:17px;background:#eef9f2}.template-client-submitted strong{font-size:.78rem;color:#32694b}.template-client-submitted p{margin:5px 0 0;color:#617d6d;font-size:.62rem}
@media(max-width:860px){.template-client-status-card,.template-internal-review-preview{grid-template-columns:1fr}.template-internal-status{text-align:left}.mapping-next-step-panel,.template-client-submit{align-items:stretch;flex-direction:column}.mapping-next-step-panel button,.template-client-submit button{width:100%}.template-reanalyse-form{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.template-client-status-card,.template-client-file-row,.template-internal-review-preview,.template-reanalyse-form{margin-left:20px;margin-right:20px}.template-client-review-hero{padding:23px 20px}.template-client-review-hero h1{font-size:1.45rem}.template-client-question-card{padding:17px 16px}}

/* MVP 7.7.9g2b — expliciete hoofdstukbeoordeling en klantcontrole */
.mapping-edit-card{position:relative;overflow:hidden;border-color:color-mix(in srgb,var(--map) 22%,#e5edf0);background:linear-gradient(100deg,var(--soft) 0,rgba(255,255,255,.96) 13%,#fff 100%);box-shadow:0 9px 24px rgba(22,59,92,.055)}
.mapping-edit-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:var(--map)}
.mapping-edit-card.mapping-type-direct{box-shadow:0 10px 26px rgba(52,118,90,.07)}
.mapping-edit-card.mapping-type-combined{box-shadow:0 10px 26px rgba(83,109,167,.08)}
.mapping-edit-card.mapping-type-check{box-shadow:0 10px 26px rgba(154,106,39,.09)}
.mapping-edit-card.mapping-type-needs_information{box-shadow:0 10px 28px rgba(164,92,80,.11);border-color:#efcfc9}
.mapping-edit-card.is-approved{box-shadow:0 10px 28px rgba(52,118,90,.13);border-color:#b9dcc8}
.mapping-edit-card.is-client-check{box-shadow:0 10px 28px rgba(83,109,167,.13);border-color:#c5d2ed}
.mapping-edit-meta{gap:8px}.mapping-edit-meta span{padding:5px 9px;background:rgba(255,255,255,.78);border:1px solid #e2e9ec;color:#6f838d;font-weight:800}
.mapping-edit-meta .mapping-category-badge{padding:7px 10px;border-radius:999px;background:var(--soft);color:var(--map);font-size:.56rem;font-weight:900;letter-spacing:.005em;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--map) 16%,transparent)}
.mapping-edit-meta .mapping-reviewed-badge{padding:6px 9px;border-radius:999px;background:#e9f7ee;color:#2f7657;font-size:.52rem;font-weight:900}
.mapping-edit-meta .mapping-client-check-badge{padding:6px 9px;border-radius:999px;background:#eef2fc;color:#536da7;font-size:.52rem;font-weight:900}
.mapping-edit-copy h3{font-size:.9rem;margin-top:12px}.mapping-edit-copy p{font-size:.63rem}
.mapping-review-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mapping-approval-choice,.mapping-client-choice,.mapping-static-choice{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);gap:11px;align-items:center;padding:13px 14px;border:1px solid #dce7eb;border-radius:13px;background:#fff;cursor:pointer;transition:.18s ease;box-shadow:0 4px 12px rgba(22,59,92,.035)}
.mapping-approval-choice:hover,.mapping-client-choice:hover,.mapping-static-choice:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(22,59,92,.07)}
.mapping-approval-choice input,.mapping-client-choice input,.mapping-static-choice input{position:absolute;opacity:0;pointer-events:none}
.mapping-choice-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;font-size:.84rem;font-weight:900}
.mapping-approval-choice .mapping-choice-icon{background:#eaf7ef;color:#34765a}.mapping-client-choice .mapping-choice-icon{background:#eef2fc;color:#536da7}.mapping-static-choice .mapping-choice-icon{background:#f1f4f5;color:#657980}
.mapping-approval-choice strong,.mapping-client-choice strong,.mapping-static-choice strong{display:block;color:#173f5f;font-size:.62rem}.mapping-approval-choice small,.mapping-client-choice small,.mapping-static-choice small{display:block;margin-top:3px;color:#70858f;font-size:.53rem;line-height:1.4}
.mapping-approval-choice:has(input:checked){border-color:#78b391;background:#eef9f2;box-shadow:inset 0 0 0 1px #78b391,0 7px 18px rgba(52,118,90,.08)}
.mapping-client-choice:has(input:checked){border-color:#91a7d5;background:#f1f4fc;box-shadow:inset 0 0 0 1px #91a7d5,0 7px 18px rgba(83,109,167,.08)}
.mapping-static-choice{margin-top:2px;background:#f8fafb}.mapping-static-choice:has(input:checked){border-color:#9aabb2;background:#f1f4f5;box-shadow:inset 0 0 0 1px #9aabb2}
.mapping-static-choice:has(input:checked) .mapping-choice-icon{background:#687a82;color:#fff}
.mapping-confirm{background:#fff9ec;border-color:#ecdcb9}.mapping-confirm strong{color:#7d5b22}
.mapping-module-picker,.mapping-note textarea{box-shadow:0 2px 8px rgba(22,59,92,.025)}
.mapping-chapter.needs-attention .mapping-chapter-head{background:linear-gradient(100deg,#fff8ee,#fff 72%)}
.mapping-chapter-head{padding:20px 24px}.mapping-chapter-head h2{font-size:1.05rem}
.mapping-resolution{font-size:.58rem;font-weight:900}
.mapping-next-step-panel{border-radius:19px;padding:22px 24px}
@media(max-width:980px){.mapping-review-choice-grid{grid-template-columns:1fr}}
@media(max-width:620px){.mapping-approval-choice,.mapping-client-choice,.mapping-static-choice{grid-template-columns:34px minmax(0,1fr);padding:12px}.mapping-choice-icon{width:32px;height:32px}}

/* MVP 7.7.9g2c — reference BLVC upload + simplified chapter approval */
.template-reference-upload-card{display:grid;gap:16px;margin:0 0 18px;padding:20px 22px;border:1px solid #cfe0e7;border-radius:18px;background:linear-gradient(115deg,#f4fbfd 0%,#fff 60%,#fff8ee 100%);box-shadow:0 10px 26px rgba(22,59,92,.055)}
.template-reference-upload-copy{display:grid;grid-template-columns:46px minmax(0,1fr);gap:14px;align-items:start}.template-reference-upload-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#e7f3f8;color:#245d79;font-size:1rem;font-weight:900}.template-reference-upload-copy .eyebrow{margin:1px 0 3px}.template-reference-upload-copy h2{margin:0 0 5px;font-size:1rem;color:#173f5f}.template-reference-upload-copy p:not(.eyebrow){margin:0;max-width:820px;color:#687f8a;font-size:.64rem;line-height:1.55}
.template-reference-current{display:flex;gap:8px 10px;align-items:center;flex-wrap:wrap;margin-top:12px;padding:10px 12px;border:1px solid #cfe7d8;border-radius:11px;background:#f1faf4}.template-reference-current strong{color:#34765a;font-size:.58rem;text-transform:uppercase;letter-spacing:.04em}.template-reference-current span{color:#214f68;font-size:.62rem;font-weight:800}.template-reference-current small{width:100%;color:#708891;font-size:.52rem}
.template-reference-upload-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:stretch}.template-reference-file-picker{position:relative;display:grid;align-content:center;gap:3px;min-height:64px;padding:12px 15px;border:1px dashed #a9c9d7;border-radius:13px;background:rgba(255,255,255,.8);cursor:pointer}.template-reference-file-picker input{position:absolute;inset:0;opacity:0;cursor:pointer}.template-reference-file-picker>span{color:#214f68;font-size:.65rem;font-weight:850}.template-reference-file-picker>small{color:#7d9099;font-size:.53rem}.template-reference-upload-form button{min-width:140px}.template-reference-upload-alert{margin:0}.mapping-reference-received{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;align-items:center;margin:0 0 16px;padding:13px 15px;border:1px solid #cfe5d8;border-radius:13px;background:#f2faf5}.mapping-reference-received strong{color:#34765a;font-size:.62rem}.mapping-reference-received span{color:#214f68;font-size:.62rem;font-weight:800}.mapping-reference-received small{grid-column:1/-1;color:#718790;font-size:.53rem}
@media(max-width:620px){.template-reference-upload-card{padding:17px 16px}.template-reference-upload-copy{grid-template-columns:38px minmax(0,1fr)}.template-reference-upload-icon{width:36px;height:36px}.template-reference-upload-form{grid-template-columns:1fr}.template-reference-upload-form button{width:100%}}

/* MVP 7.7.9g2d — reference-driven remapping */
.mapping-reference-remap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 18px 0 20px;
  padding: 18px 20px;
  border: 1px solid rgba(41, 111, 159, .24);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(231, 245, 252, .95), rgba(248, 251, 253, .98) 62%, rgba(255, 244, 229, .9));
  box-shadow: 0 10px 28px rgba(20, 59, 92, .08);
}
.mapping-reference-remap-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e1f1f8;
  color: #1c5f86;
  font-size: 24px;
  font-weight: 800;
}
.mapping-reference-remap strong { display: block; color: #153c5c; font-size: 18px; margin: 3px 0 3px; }
.mapping-reference-remap p { margin: 0; color: #637b8c; line-height: 1.45; }
.mapping-reference-remap-count {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #31546d;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(41,111,159,.15);
}
.mapping-edit-card.is-reference-remapped {
  box-shadow: 0 0 0 2px rgba(43, 119, 164, .12), 0 14px 32px rgba(20, 59, 92, .08);
}
.mapping-reference-context {
  margin-top: 13px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f5f9fb;
  border: 1px solid #dbe8ef;
}
.mapping-reference-context.changed {
  background: linear-gradient(135deg, #edf8fb, #fff8ec);
  border-color: #c9e0ea;
}
.mapping-reference-context > span {
  display: block;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 10px;
  font-weight: 900;
  color: #3b718f;
}
.mapping-reference-context strong { color: #173f5f; font-size: 13px; }
.mapping-reference-context p { margin: 4px 0 0; color: #6a7d89; font-size: 12px; line-height: 1.45; }
@media (max-width: 760px) {
  .mapping-reference-remap { grid-template-columns: auto 1fr; }
  .mapping-reference-remap-count { grid-column: 2; justify-self: start; }
}

/* MVP 7.7.9g3 — automatisch opgebouwd klanttemplate */
.mapping-adaptation-ready { max-width: 760px; }
.mapping-adaptation-ready > p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.mapping-adaptation-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mapping-adaptation-stats span { display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 12px; border: 1px solid rgba(43, 92, 119, .14); border-radius: 12px; background: rgba(239, 248, 252, .8); color: #506878; font-size: .85rem; }
.mapping-adaptation-stats strong { color: var(--navy, #163b5c); font-size: 1rem; }
.mapping-adaptation-added { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(242, 140, 40, .10); border: 1px solid rgba(242, 140, 40, .24); }
.mapping-adaptation-added strong { display: block; color: #8d5918; margin-bottom: 2px; }
.mapping-adaptation-added p { margin: 0; color: #6f6559; }
.mapping-adaptation-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.mapping-adaptation-actions form { margin: 0; }
@media (max-width: 860px) { .mapping-adaptation-actions { width: 100%; justify-content: flex-start; } }

/* MVP 7.7.9g4 — referentie-BLVC als schrijf- en structuurprofiel */
.mapping-reference-profile-summary{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-top:18px;padding:16px 18px;border:1px solid #cfe2ea;border-radius:15px;background:linear-gradient(120deg,#f0f9fc,#fff 70%)}
.mapping-reference-profile-summary h3{margin:3px 0 5px;color:#173f5f;font-size:.92rem}.mapping-reference-profile-summary p{max-width:760px;margin:0;color:#697f8a;font-size:.62rem;line-height:1.5}
.mapping-reference-profile-fallback{white-space:nowrap;padding:7px 10px;border-radius:999px;background:#fff5e8;border:1px solid #efdbc0;color:#8c5e25;font-size:.55rem;font-weight:850}
.mapping-reference-profile-details{margin-top:11px;border:1px solid #dbe8ed;border-radius:14px;background:#fff;overflow:hidden}.mapping-reference-profile-details>summary{cursor:pointer;padding:12px 15px;color:#28536e;font-size:.63rem;font-weight:850;background:#f8fbfc}
.mapping-reference-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.mapping-reference-profile-grid article{padding:13px 14px;border:1px solid #e0e9ed;border-radius:12px;background:#fbfdfe}.mapping-reference-profile-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.mapping-reference-profile-head strong{color:#173f5f;font-size:.67rem}.mapping-reference-profile-head span{white-space:nowrap;color:#3f755c;background:#edf8f1;border-radius:999px;padding:4px 7px;font-size:.48rem;font-weight:850}.mapping-reference-profile-grid article>small{display:block;margin-top:4px;color:#7b8e97;font-size:.5rem}.mapping-reference-profile-grid article>p{margin:8px 0 0;color:#647985;font-size:.56rem;line-height:1.45}.mapping-reference-profile-grid article>p b{color:#385c71}.mapping-reference-profile-cues{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}.mapping-reference-profile-cues span{padding:4px 7px;border-radius:999px;background:#edf5f8;color:#426779;font-size:.48rem;font-weight:750}
@media(max-width:820px){.mapping-reference-profile-summary{display:grid}.mapping-reference-profile-fallback{justify-self:start}.mapping-reference-profile-grid{grid-template-columns:1fr}}

/* MVP 7.7.9g4.1 — compacte referentieprofielen + eenduidige voortgang */
.mapping-next-step-panel:has(.mapping-adaptation-ready){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:18px 28px;padding:24px 28px}
.mapping-next-step-panel:has(.mapping-adaptation-ready) .mapping-adaptation-ready{grid-column:1;grid-row:1}
.mapping-next-step-panel:has(.mapping-adaptation-ready) .mapping-reference-profile-summary{grid-column:1/-1;grid-row:2}
.mapping-next-step-panel:has(.mapping-adaptation-ready) .mapping-adaptation-actions{grid-column:2;grid-row:1;align-self:end;max-width:300px}

.mapping-reference-profile-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,360px);gap:20px;align-items:stretch;margin-top:0;padding:18px;border:1px solid #cfe2ea;border-radius:16px;background:linear-gradient(120deg,#f0f9fc,#fff 70%)}
.mapping-reference-profile-copy{min-width:0;padding:2px 4px}
.mapping-reference-profile-summary h3{margin:4px 0 6px;color:#173f5f;font-size:.96rem;line-height:1.35}
.mapping-reference-profile-summary p{max-width:760px;margin:0;color:#697f8a;font-size:.62rem;line-height:1.55}
.mapping-reference-profile-fallback{display:inline-flex;margin-top:10px;white-space:normal;padding:6px 9px;border-radius:999px;background:#fff5e8;border:1px solid #efdbc0;color:#8c5e25;font-size:.53rem;font-weight:850}

.mapping-reference-profile-details{margin:0;border:1px solid #c9dfe8;border-radius:14px;background:rgba(255,255,255,.92);overflow:hidden;box-shadow:0 7px 18px rgba(22,59,92,.045)}
.mapping-reference-profile-details>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;height:100%;min-height:88px;padding:15px 17px;cursor:pointer;list-style:none;color:#1f4c69;background:linear-gradient(145deg,#fff,#f5fafc);transition:.18s ease}
.mapping-reference-profile-details>summary::-webkit-details-marker{display:none}
.mapping-reference-profile-details>summary:hover{background:#f3f9fc}
.mapping-reference-profile-details>summary span{display:grid;gap:3px;min-width:0}
.mapping-reference-profile-details>summary b{font-size:.67rem;color:#173f5f}
.mapping-reference-profile-details>summary small{font-size:.52rem;color:#748994;line-height:1.35}
.mapping-reference-profile-details>summary i{font-style:normal;font-size:1rem;line-height:1;color:#315f79;transition:transform .18s ease}
.mapping-reference-profile-details[open]>summary i{transform:rotate(180deg)}

.mapping-reference-profile-groups{display:grid;gap:8px;padding:10px;background:#f8fbfc;border-top:1px solid #e0eaee}
.mapping-reference-profile-group{border:1px solid #dfe9ed;border-radius:11px;background:#fff;overflow:hidden}
.mapping-reference-profile-group>summary{display:grid;grid-template-columns:minmax(0,1fr) auto 16px;gap:10px;align-items:center;padding:11px 13px;cursor:pointer;list-style:none;background:#fff}
.mapping-reference-profile-group>summary::-webkit-details-marker{display:none}
.mapping-reference-profile-group>summary:hover{background:#f8fbfc}
.mapping-reference-profile-group>summary span{font-size:.62rem;font-weight:850;color:#214f68}
.mapping-reference-profile-group>summary small{font-size:.5rem;color:#7b8e97}
.mapping-reference-profile-group>summary i{font-style:normal;color:#6c8794;transition:transform .16s ease}
.mapping-reference-profile-group[open]>summary{border-bottom:1px solid #e5edf0;background:#f8fbfc}
.mapping-reference-profile-group[open]>summary i{transform:rotate(180deg)}

.mapping-reference-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:10px}
.mapping-reference-profile-grid article{min-width:0;padding:12px 13px;border:1px solid #e0e9ed;border-radius:11px;background:#fbfdfe}
.mapping-reference-profile-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
.mapping-reference-profile-head strong{min-width:0;color:#173f5f;font-size:.64rem;line-height:1.35;overflow-wrap:anywhere}
.mapping-reference-profile-head span{white-space:nowrap;color:#3f755c;background:#edf8f1;border-radius:999px;padding:4px 7px;font-size:.46rem;font-weight:850}
.mapping-reference-profile-grid article>small{display:block;margin-top:4px;color:#7b8e97;font-size:.49rem;line-height:1.4;overflow-wrap:anywhere}
.mapping-reference-profile-grid article>p{margin:7px 0 0;color:#647985;font-size:.54rem;line-height:1.45}
.mapping-reference-profile-cues{display:flex;gap:4px;flex-wrap:wrap;margin-top:8px}
.mapping-reference-profile-cues span{max-width:100%;padding:3px 6px;border-radius:999px;background:#edf5f8;color:#426779;font-size:.45rem;font-weight:750;overflow-wrap:anywhere}

@media(max-width:1050px){
  .mapping-next-step-panel:has(.mapping-adaptation-ready){grid-template-columns:1fr}
  .mapping-next-step-panel:has(.mapping-adaptation-ready) .mapping-adaptation-ready,.mapping-next-step-panel:has(.mapping-adaptation-ready) .mapping-reference-profile-summary,.mapping-next-step-panel:has(.mapping-adaptation-ready) .mapping-adaptation-actions{grid-column:1;grid-row:auto}
  .mapping-next-step-panel:has(.mapping-adaptation-ready) .mapping-adaptation-actions{max-width:none;justify-content:flex-start}
  .mapping-reference-profile-summary{grid-template-columns:1fr}
  .mapping-reference-profile-details>summary{min-height:0}
}
@media(max-width:720px){
  .mapping-reference-profile-grid{grid-template-columns:1fr}
  .mapping-reference-profile-group>summary{grid-template-columns:minmax(0,1fr) auto 14px}
}


/* MVP 7.7.9g4.2 — compact review chapters + reference profile expansion fix */
.mapping-chapter{overflow:hidden}
.mapping-chapter>summary.mapping-chapter-head{list-style:none;cursor:pointer;user-select:none}
.mapping-chapter>summary.mapping-chapter-head::-webkit-details-marker{display:none}
.mapping-chapter-head-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.mapping-chapter-chevron{font-style:normal;color:#527487;font-size:1rem;line-height:1;transition:transform .18s ease}
.mapping-chapter[open] .mapping-chapter-chevron{transform:rotate(180deg)}
.mapping-chapter:not([open])>summary.mapping-chapter-head{border-bottom:0}
.mapping-chapter:not([open])>summary.mapping-chapter-head:hover{background:rgba(247,251,252,.85)}
.mapping-chapter:not([open]) .mapping-section-stack{display:none}

/* The profile details used to stretch to the full height of the parent grid row,
   leaving the actual expanded content far below the visible summary. */
.mapping-reference-profile-summary{align-items:start}
.mapping-reference-profile-details{align-self:start;height:auto;min-height:0}
.mapping-reference-profile-details>summary{height:auto;min-height:88px}
.mapping-reference-profile-details[open]>summary{min-height:0;border-bottom:1px solid #e0eaee}
.mapping-reference-profile-details[open] .mapping-reference-profile-groups{display:grid}

@media(max-width:820px){
  .mapping-chapter-head-actions{gap:6px}
  .mapping-chapter-chevron{font-size:.9rem}
}

/* MVP 7.7.9g4.3 — review spacing + readable reference profiles */
.mapping-chapter-head{
  padding-right:32px;
}
.mapping-chapter-head-actions{
  gap:14px;
  padding-left:10px;
}
.mapping-chapter-chevron{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  flex:0 0 20px;
}

/* Keep the profile CTA compact while closed; once opened, let the reference
   content use the full card width so headings and guidance can breathe. */
.mapping-reference-profile-summary:has(.mapping-reference-profile-details[open]){
  grid-template-columns:1fr;
}
.mapping-reference-profile-summary:has(.mapping-reference-profile-details[open]) .mapping-reference-profile-copy{
  max-width:900px;
}
.mapping-reference-profile-details[open]{
  width:100%;
}
.mapping-reference-profile-details[open]>summary{
  min-height:0;
  padding:13px 16px;
}
.mapping-reference-profile-details[open] .mapping-reference-profile-groups{
  padding:12px;
  gap:10px;
}
.mapping-reference-profile-details[open] .mapping-reference-profile-group>summary{
  padding:13px 15px;
}
.mapping-reference-profile-details[open] .mapping-reference-profile-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  padding:12px;
}
.mapping-reference-profile-details[open] .mapping-reference-profile-grid article{
  padding:15px 16px;
  border-radius:13px;
}
.mapping-reference-profile-details[open] .mapping-reference-profile-head{
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
}
.mapping-reference-profile-details[open] .mapping-reference-profile-head strong{
  font-size:.69rem;
  line-height:1.4;
  overflow-wrap:break-word;
  word-break:normal;
}
.mapping-reference-profile-details[open] .mapping-reference-profile-grid article>small{
  margin-top:6px;
  font-size:.52rem;
  line-height:1.45;
  overflow-wrap:break-word;
  word-break:normal;
}
.mapping-reference-profile-details[open] .mapping-reference-profile-grid article>p{
  margin-top:9px;
  font-size:.57rem;
  line-height:1.55;
}
.mapping-reference-profile-details[open] .mapping-reference-profile-cues{
  margin-top:10px;
  gap:6px;
}
.mapping-reference-profile-details[open] .mapping-reference-profile-cues span{
  font-size:.48rem;
  line-height:1.3;
  padding:4px 7px;
  overflow-wrap:break-word;
  word-break:normal;
}

@media(max-width:820px){
  .mapping-chapter-head{padding-right:22px}
  .mapping-chapter-head-actions{gap:8px;padding-left:4px}
  .mapping-reference-profile-details[open] .mapping-reference-profile-grid{grid-template-columns:1fr}
}

/* MVP 7.7.9g4.4 — dashboard disclosure consistency + mapping readability */
.mapping-chapter-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) 190px;
  gap:20px;
  align-items:center;
  padding-right:26px;
}
.mapping-chapter-head-actions{
  width:100%;
  justify-content:flex-end;
  gap:12px;
  padding-left:0;
  padding-right:4px;
}
.mapping-chapter-head-actions .mapping-resolution{
  justify-content:center;
  min-width:92px;
}
.mapping-chapter-chevron{
  margin-left:4px;
}

/* Reference profiles should be comfortably readable at ordinary laptop zoom. */
.mapping-reference-profile-details>summary b{font-size:.72rem}
.mapping-reference-profile-details>summary small{font-size:.58rem;line-height:1.45}
.mapping-reference-profile-group>summary span{font-size:.69rem}
.mapping-reference-profile-group>summary small{font-size:.56rem}
.mapping-reference-profile-details[open] .mapping-reference-profile-head strong{
  font-size:.76rem;
  line-height:1.42;
}
.mapping-reference-profile-details[open] .mapping-reference-profile-head span{
  font-size:.52rem;
  padding:5px 8px;
}
.mapping-reference-profile-details[open] .mapping-reference-profile-grid article>small{
  font-size:.59rem;
  line-height:1.5;
}
.mapping-reference-profile-details[open] .mapping-reference-profile-grid article>p{
  font-size:.65rem;
  line-height:1.6;
}
.mapping-reference-profile-details[open] .mapping-reference-profile-cues span{
  font-size:.54rem;
  line-height:1.35;
  padding:5px 8px;
}

@media(max-width:820px){
  .mapping-chapter-head{
    grid-template-columns:minmax(0,1fr) auto;
    padding-right:20px;
  }
  .mapping-chapter-head-actions{width:auto;padding-right:0}
  .mapping-chapter-head-actions .mapping-resolution{min-width:0}
}

/* MVP 7.7.9g4.4.1 — vertically center review status text */
.mapping-chapter-head-actions .mapping-resolution{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:30px;
  min-height:30px;
  padding-top:0;
  padding-bottom:0;
  line-height:1;
}

/* MVP 7.7.9g5 — klantreview definitieve hoofdstukopbouw */
.mapping-client-final-review{margin-top:18px;padding:20px 22px;border:1px solid #cfe0e8;border-radius:17px;background:#fbfdfe;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 22px;align-items:center}.mapping-client-final-review h3{margin:.15rem 0 .35rem;font-size:1rem;color:#173f5f}.mapping-client-final-review p{margin:0;color:#647d89;font-size:.76rem;line-height:1.55}.mapping-client-final-review button{white-space:nowrap}.mapping-client-final-review.status-shared{background:#fffaf0;border-color:#ead9b3}.mapping-client-final-review.status-submitted{background:#f6fbff;border-color:#bddbeb}.mapping-client-final-review.status-accepted{background:#f2faf5;border-color:#c5e2cf}.mapping-client-final-review-responses{grid-column:1/-1;display:grid;gap:8px;padding-top:4px}.mapping-client-final-review-responses article{padding:11px 13px;border:1px solid #dce8ed;border-radius:11px;background:#fff}.mapping-client-final-review-responses article>div{display:flex;align-items:center;justify-content:space-between;gap:16px}.mapping-client-final-review-responses strong{font-size:.78rem;color:#173f5f}.mapping-client-final-review-responses span{padding:4px 8px;border-radius:999px;background:#edf7f0;color:#3f7858;font-size:.64rem;font-weight:800}.mapping-client-final-review-responses .has-note span{background:#fff2dc;color:#8a6225}.mapping-client-final-review-responses p{margin:7px 0 0;font-size:.75rem;color:#536f7d}

.template-structure-review-shell{max-width:1120px;margin:0 auto 70px}.template-structure-review-hero{margin:18px 0 20px;padding:32px 36px;border:1px solid #b9dbea;border-radius:22px;background:linear-gradient(120deg,#edf8fc,#fff 62%,#fff6ea);box-shadow:0 16px 40px rgba(22,59,92,.08)}.template-structure-review-hero h1{margin:.18rem 0 .6rem;font-size:2rem;line-height:1.12;color:#18252d}.template-structure-review-hero>p:not(.eyebrow){max-width:850px;margin:0;color:#617986;font-size:.95rem;line-height:1.65}.template-structure-review-note{display:flex;gap:10px 14px;align-items:baseline;flex-wrap:wrap;margin-top:20px;padding:13px 15px;border-radius:13px;background:#f7fafb;border:1px solid #dce8ed}.template-structure-review-note strong{font-size:.8rem;color:#244f67}.template-structure-review-note span{font-size:.8rem;color:#657d89;line-height:1.5}.template-structure-review-form{display:grid;gap:12px}.template-structure-review-chapter{border:1px solid #d8e6ec;border-radius:17px;background:#fff;box-shadow:0 8px 22px rgba(22,59,92,.045);overflow:hidden}.template-structure-review-chapter>summary{min-height:76px;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;cursor:pointer;list-style:none}.template-structure-review-chapter>summary::-webkit-details-marker{display:none}.template-structure-review-chapter>summary span:first-child{display:grid;gap:3px}.template-structure-review-chapter>summary small{font-size:.65rem;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:#6f8996}.template-structure-review-chapter>summary strong{font-size:1rem;color:#173f5f}.template-structure-review-chapter-meta{display:flex;align-items:center;gap:12px;color:#718894;font-size:.75rem}.template-structure-review-chapter-meta i{font-style:normal;font-size:.9rem}.template-structure-review-chapter[open] .template-structure-review-chapter-meta i{transform:rotate(180deg)}.template-structure-review-body{padding:18px 20px 22px;border-top:1px solid #e2ebef;background:#fbfdfe;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:20px}.template-structure-review-sections{display:grid;gap:10px}.template-structure-review-section{padding:15px 16px;border:1px solid #dce8ed;border-radius:13px;background:#fff}.template-structure-review-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.template-structure-review-section-head h3{margin:0;font-size:.9rem;line-height:1.35;color:#173f5f}.template-structure-review-section-head>span{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#edf5f8;color:#4f7182;font-size:.65rem;font-weight:800}.template-structure-review-section>p{margin:9px 0 0;color:#5f7783;font-size:.8rem;line-height:1.55}.template-structure-review-topics{margin-top:12px}.template-structure-review-topics>small{display:block;margin-bottom:6px;color:#78909b;font-size:.67rem}.template-structure-review-topics>div{display:flex;flex-wrap:wrap;gap:6px}.template-structure-review-topics span{padding:5px 8px;border-radius:999px;background:#eef6f9;color:#315e74;font-size:.67rem}.template-structure-review-answer{align-self:start;position:sticky;top:18px;display:grid;gap:13px;padding:15px;border:1px solid #d6e5eb;border-radius:14px;background:#fff}.template-structure-review-confirm{display:flex;align-items:flex-start;gap:11px;padding:12px;border:1px solid #cfe3d7;border-radius:11px;background:#f4fbf6}.template-structure-review-confirm input{margin-top:3px}.template-structure-review-confirm strong{display:block;color:#2f6547;font-size:.8rem}.template-structure-review-confirm small{display:block;margin-top:3px;color:#698275;font-size:.7rem;line-height:1.45}.template-structure-review-answer>label:not(.template-structure-review-confirm){display:grid;gap:6px}.template-structure-review-answer>label>span{font-size:.74rem;font-weight:800;color:#3b6175}.template-structure-review-answer textarea{width:100%;min-height:105px;padding:10px 11px;border:1px solid #cfdde4;border-radius:9px;font:inherit;font-size:.78rem;line-height:1.5;resize:vertical}.template-structure-review-submit{position:sticky;bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:6px;padding:16px 18px;border:1px solid #c9dce5;border-radius:15px;background:rgba(255,255,255,.97);box-shadow:0 16px 35px rgba(22,59,92,.15);backdrop-filter:blur(12px)}.template-structure-review-submit strong{display:block;color:#173f5f;font-size:.82rem}.template-structure-review-submit small{display:block;margin-top:3px;color:#718791;font-size:.7rem;line-height:1.45}.template-structure-review-submitted{display:flex;gap:13px;align-items:center;margin:0 0 16px;padding:17px 19px;border:1px solid #cbe3d4;border-radius:15px;background:#f0f9f3}.template-structure-review-submitted>span{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#dff1e5;color:#397051;font-weight:900}.template-structure-review-submitted strong{font-size:.86rem;color:#31694b}.template-structure-review-submitted p{margin:3px 0 0;color:#607d6d;font-size:.76rem}
@media(max-width:800px){.mapping-client-final-review{grid-template-columns:1fr}.mapping-client-final-review-responses{grid-column:auto}.template-structure-review-hero{padding:25px 22px}.template-structure-review-hero h1{font-size:1.6rem}.template-structure-review-body{grid-template-columns:1fr}.template-structure-review-answer{position:static}.template-structure-review-submit{align-items:stretch;flex-direction:column}.template-structure-review-submit button{width:100%}}

/* MVP 7.7.9g5.1 – klantreview routing + template action polish */
.template-portal-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 17px;border:1px solid #173f5f;border-radius:11px;background:#173f5f;color:#fff!important;text-decoration:none!important;font-size:.68rem;font-weight:850;line-height:1;white-space:nowrap;box-shadow:0 9px 20px rgba(23,63,95,.15);transition:transform .14s ease,box-shadow .14s ease,background .14s ease}
.template-portal-action:hover{background:#214f70;box-shadow:0 11px 24px rgba(23,63,95,.19);transform:translateY(-1px)}
.template-portal-action:focus-visible{outline:3px solid rgba(38,106,242,.2);outline-offset:2px}
.template-portal-action.is-secondary{border-color:#cddde5;background:#fff;color:#214e6b!important;box-shadow:none}
.template-portal-action.is-secondary:hover{background:#f4f9fb;border-color:#b7cfda}
.template-internal-review-preview>.template-portal-action{justify-self:end}
.template-client-status-card>.template-portal-action{justify-self:end}
.template-reanalyse-form{display:grid;grid-template-columns:minmax(230px,1fr) minmax(300px,1.15fr) auto;align-items:center;gap:18px;margin:0 28px 24px;padding:18px 19px;border:1px solid #dce8ed;border-radius:15px;background:#fbfdfe}
.template-reanalyse-copy{display:grid;gap:3px;min-width:0}.template-reanalyse-copy strong{color:#173f5f;font-size:.7rem}.template-reanalyse-copy small{color:#7a8f9a;font-size:.55rem;line-height:1.45}.template-reanalyse-copy .eyebrow{margin:0;color:#6d8794}
.template-reanalyse-picker{display:block;min-width:0}.template-reanalyse-picker input{width:100%;padding:7px 8px;border:1px solid #d5e3e9;border-radius:10px;background:#fff;color:#526d7b;font-size:.58rem}
.template-reanalyse-picker input::file-selector-button{margin-right:10px;padding:7px 10px;border:1px solid #cbdce4;border-radius:8px;background:#eef5f8;color:#214e6b;font:inherit;font-weight:800;cursor:pointer}
.template-reanalyse-form>.template-portal-action{border:0;cursor:pointer;font-family:inherit}
@media(max-width:860px){.template-reanalyse-form{grid-template-columns:1fr}.template-reanalyse-form>.template-portal-action,.template-client-status-card>.template-portal-action,.template-internal-review-preview>.template-portal-action{justify-self:stretch;width:100%}}

/* =============================================================
   MVP 7.7.9g5.2 — client-friendly structure review + premium branding
   ============================================================= */
/* Client structure review: readable language and a premium confirmation control. */
.template-structure-review-friendly-summary{
    margin:10px 0 0!important;
    color:#405f70!important;
    font-size:.86rem!important;
    line-height:1.62!important;
}
.template-structure-review-structure-note{
    display:flex;
    gap:8px;
    align-items:flex-start;
    margin-top:11px;
    padding:9px 11px;
    border-radius:10px;
    background:linear-gradient(135deg,#f6fafc,#eef7fa);
    color:#67808d;
}
.template-structure-review-structure-note>span{color:#4f8aa5;font-weight:900;line-height:1.35}
.template-structure-review-structure-note small{font-size:.7rem;line-height:1.5;color:#67808d}
.template-structure-review-confirm{
    position:relative;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr);
    align-items:center!important;
    gap:12px!important;
    min-height:88px;
    padding:14px 15px!important;
    border:1px solid #c8dfd1!important;
    border-radius:14px!important;
    background:linear-gradient(135deg,#f6fcf8 0%,#eef8f2 100%)!important;
    box-shadow:0 8px 20px rgba(48,102,74,.06);
    cursor:pointer;
    transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease;
}
.template-structure-review-confirm:hover{border-color:#8fc3a5!important;box-shadow:0 10px 24px rgba(48,102,74,.1);transform:translateY(-1px)}
.template-structure-review-confirm input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.template-structure-review-confirm-mark{
    width:36px;height:36px;border-radius:11px;
    display:grid;place-items:center;
    border:1.5px solid #b7d5c3;
    background:#fff;
    color:transparent;
    box-shadow:inset 0 0 0 3px #fff;
    transition:all .16s ease;
}
.template-structure-review-confirm-mark i{font-style:normal;font-size:1rem;font-weight:950}
.template-structure-review-confirm-copy{display:grid;gap:4px}
.template-structure-review-confirm-copy strong{font-size:.84rem!important;color:#285b41!important;line-height:1.25}
.template-structure-review-confirm-copy small{margin:0!important;font-size:.72rem!important;color:#648072!important;line-height:1.5!important}
.template-structure-review-confirm:has(input:checked){
    border-color:#75b48f!important;
    background:linear-gradient(135deg,#eff9f3,#e4f5ea)!important;
    box-shadow:0 10px 24px rgba(48,102,74,.12);
}
.template-structure-review-confirm:has(input:checked) .template-structure-review-confirm-mark{
    border-color:#3f9564;background:linear-gradient(145deg,#54aa78,#378b5c);color:#fff;box-shadow:0 7px 15px rgba(52,130,86,.2)
}
.template-structure-review-confirm:has(input:focus-visible){outline:3px solid rgba(38,106,242,.18);outline-offset:3px}

/* Branding page: bring the whole area in line with the portal's premium visual language. */
.branding-page-header{
    position:relative;
    overflow:hidden;
    border-color:#b7d9e8!important;
    background:
      radial-gradient(circle at 89% 18%,rgba(242,140,40,.18) 0 74px,transparent 76px),
      radial-gradient(circle at 84% 30%,rgba(38,106,242,.13) 0 118px,transparent 120px),
      linear-gradient(118deg,#eaf8fd 0%,#f9fcfd 55%,#fff2df 100%)!important;
    box-shadow:0 18px 44px rgba(22,59,92,.09)!important;
}
.branding-page-header:after{
    content:"";position:absolute;right:-38px;bottom:-62px;width:230px;height:230px;border:18px solid rgba(242,140,40,.08);border-radius:50%;pointer-events:none
}
.branding-selfservice-grid>.panel,
.template-onboarding-card{
    border-color:#cfe2ea!important;
    border-radius:20px!important;
    box-shadow:0 18px 42px rgba(22,59,92,.085)!important;
}
.branding-settings-card{background:linear-gradient(180deg,#fff 0%,#fbfdfe 100%)!important}
.branding-card-head{
    padding:24px 24px 21px!important;
    background:
      radial-gradient(circle at 94% 22%,rgba(242,140,40,.12),transparent 24%),
      linear-gradient(115deg,#edf9fd,#f8fcfd 64%,#fff3e4)!important;
}
.branding-card-icon{background:linear-gradient(145deg,#256b91,#163b5c)!important;box-shadow:0 11px 24px rgba(22,59,92,.18)!important}
.branding-form-section{background:rgba(255,255,255,.7)}
.branding-color-field{
    border-color:#cfe1e9!important;
    background:linear-gradient(145deg,#fff,#f6fbfd)!important;
    box-shadow:0 8px 20px rgba(22,59,92,.045)
}
.branding-color-field:hover{border-color:#a9ccd9!important;box-shadow:0 10px 24px rgba(22,59,92,.075)}
.branding-logo-drop{
    border-color:#acd0de!important;
    background:linear-gradient(135deg,#f6fbfd,#eef8fb)!important;
}
.branding-logo-drop:hover{background:linear-gradient(135deg,#eef8fb,#fff7ec)!important;border-color:#72abc0!important}
.branding-policy-note{background:linear-gradient(135deg,#fffaf0,#fff5e3)!important;box-shadow:0 7px 18px rgba(131,92,31,.05)}
.branding-report-preview{border-radius:17px!important;box-shadow:0 14px 32px rgba(24,73,101,.09)!important}

.template-onboarding-card{
    position:relative;
    background:
      radial-gradient(circle at 103% 9%,rgba(38,106,242,.07) 0 130px,transparent 132px),
      linear-gradient(180deg,#fff,#f8fcfe)!important;
}
.template-onboarding-card:before{
    content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#2b7ca3,#6f9fc0 55%,#f28c28);opacity:.9
}
.template-onboarding-head{
    background:linear-gradient(110deg,#f0f9fd,#fff 62%,#fff5e8)!important;
    border-bottom:1px solid #d9e8ee!important;
}
.template-onboarding-step{box-shadow:0 6px 16px rgba(22,59,92,.06)}
.template-client-status-card,
.template-internal-review-preview,
.template-analysis-file,
.template-reanalyse-form{
    border-radius:15px!important;
    border-color:#d3e3ea!important;
    background:linear-gradient(135deg,#fff,#f8fcfd)!important;
    box-shadow:0 8px 22px rgba(22,59,92,.045)
}
.template-client-status-card{background:linear-gradient(135deg,#f4fbf7,#fff 62%,#f7fbfd)!important}
.template-analysis-summary>div{
    border-radius:14px!important;
    border-color:#d3e3ea!important;
    background:linear-gradient(145deg,#fff,#f5fafc)!important;
    box-shadow:0 7px 18px rgba(22,59,92,.04)
}
.template-portal-action{
    border-radius:12px!important;
    font-weight:900!important;
    transition:transform .16s ease,box-shadow .16s ease,background .16s ease
}
.template-portal-action:hover{transform:translateY(-1px)}

/* Small screens keep the controls generous without wasting space. */
@media(max-width:800px){
  .template-structure-review-confirm{grid-template-columns:34px minmax(0,1fr);min-height:80px;padding:13px!important}
  .template-structure-review-confirm-mark{width:32px;height:32px}
}

/* =============================================================
   MVP 7.7.9g5.3 — client review visual polish
   ============================================================= */
/* Align the explanatory arrow with the copy instead of its first baseline. */
.template-structure-review-structure-note{
    align-items:center!important;
    min-height:42px;
    padding:10px 12px!important;
}
.template-structure-review-structure-note>span{
    flex:0 0 22px;
    width:22px;
    height:22px;
    display:grid;
    place-items:center;
    align-self:center;
    line-height:1!important;
    font-size:1rem;
    transform:translateY(-1px);
}
.template-structure-review-structure-note small{
    display:block;
    align-self:center;
    font-size:.74rem!important;
    line-height:1.55!important;
}

/* Bring the customer chapter review closer to the colourful premium portal language. */
.template-structure-review-shell{
    position:relative;
}
.template-structure-review-shell:before,
.template-structure-review-shell:after{
    content:"";
    position:absolute;
    z-index:-1;
    border-radius:50%;
    pointer-events:none;
    filter:blur(.1px);
}
.template-structure-review-shell:before{
    width:320px;height:320px;left:-230px;top:185px;
    border:28px solid rgba(38,106,242,.055);
}
.template-structure-review-shell:after{
    width:270px;height:270px;right:-205px;top:560px;
    border:24px solid rgba(242,140,40,.06);
}
.template-structure-review-hero{
    background:
      radial-gradient(circle at 91% 18%,rgba(242,140,40,.16) 0 72px,transparent 74px),
      radial-gradient(circle at 84% 35%,rgba(38,106,242,.11) 0 112px,transparent 114px),
      linear-gradient(118deg,#eaf8fd 0%,#f9fcfd 56%,#fff3e2 100%)!important;
    border-color:#b6dae8!important;
    box-shadow:0 18px 46px rgba(22,59,92,.095)!important;
}
.template-structure-review-note{
    background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(241,248,251,.92))!important;
    box-shadow:0 8px 20px rgba(22,59,92,.04);
}
.template-structure-review-chapter{
    --review-accent:#2b7ca3;
    --review-soft:rgba(43,124,163,.075);
    position:relative;
    border-color:#cee1e9!important;
    box-shadow:0 12px 30px rgba(22,59,92,.065)!important;
    transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.template-structure-review-chapter:nth-of-type(4n+2){--review-accent:#4d7b2a;--review-soft:rgba(77,123,42,.075)}
.template-structure-review-chapter:nth-of-type(4n+3){--review-accent:#6a78c7;--review-soft:rgba(106,120,199,.075)}
.template-structure-review-chapter:nth-of-type(4n+4){--review-accent:#cc7a2b;--review-soft:rgba(204,122,43,.075)}
.template-structure-review-chapter:before{
    content:"";
    position:absolute;
    left:0;top:0;bottom:0;
    width:4px;
    background:linear-gradient(180deg,var(--review-accent),rgba(255,255,255,.15));
    opacity:.85;
    pointer-events:none;
}
.template-structure-review-chapter>summary{
    padding-left:24px!important;
    background:
      radial-gradient(circle at 96% 20%,var(--review-soft),transparent 22%),
      linear-gradient(105deg,#fff 0%,#fbfdfe 70%,var(--review-soft) 100%);
}
.template-structure-review-chapter>summary strong{color:#173f5f!important}
.template-structure-review-chapter>summary small{color:var(--review-accent)!important}
.template-structure-review-chapter-meta i{color:var(--review-accent);font-weight:900}
.template-structure-review-chapter[open]{
    border-color:color-mix(in srgb,var(--review-accent) 32%,#d8e6ec)!important;
    box-shadow:0 17px 38px rgba(22,59,92,.09)!important;
}
.template-structure-review-body{
    background:
      linear-gradient(180deg,rgba(248,252,253,.96),rgba(255,255,255,.98)),
      radial-gradient(circle at 100% 0,var(--review-soft),transparent 34%)!important;
    padding:20px 22px 24px!important;
}
.template-structure-review-section{
    position:relative;
    overflow:hidden;
    border-color:#d6e6ec!important;
    border-radius:15px!important;
    background:linear-gradient(145deg,#fff 0%,#fbfdfe 72%,var(--review-soft) 125%)!important;
    box-shadow:0 8px 20px rgba(22,59,92,.045);
}
.template-structure-review-section:after{
    content:"";
    position:absolute;
    right:-35px;top:-42px;
    width:90px;height:90px;
    border:13px solid var(--review-soft);
    border-radius:50%;
    pointer-events:none;
}
.template-structure-review-section-head>span{
    border:1px solid color-mix(in srgb,var(--review-accent) 18%,#d9e6eb);
    background:color-mix(in srgb,var(--review-soft) 82%,#fff)!important;
    color:color-mix(in srgb,var(--review-accent) 78%,#315e74)!important;
}
.template-structure-review-structure-note{
    border:1px solid color-mix(in srgb,var(--review-accent) 14%,#dce8ed);
    background:linear-gradient(135deg,#f7fbfc,color-mix(in srgb,var(--review-soft) 72%,#f7fbfc))!important;
}
.template-structure-review-structure-note>span{color:var(--review-accent)!important}
.template-structure-review-answer{
    border-color:#cfe1e8!important;
    border-radius:16px!important;
    background:
      radial-gradient(circle at 100% 0,rgba(242,140,40,.065),transparent 32%),
      linear-gradient(145deg,#fff,#f8fcfd)!important;
    box-shadow:0 12px 28px rgba(22,59,92,.07);
}
.template-structure-review-answer textarea{
    border-color:#c9dce4!important;
    background:linear-gradient(145deg,#fff,#fbfdfe);
    transition:border-color .16s ease,box-shadow .16s ease;
}
.template-structure-review-answer textarea:focus{
    outline:none;
    border-color:#72abc0!important;
    box-shadow:0 0 0 3px rgba(43,124,163,.11);
}
.template-structure-review-submit{
    border-color:#bad7e3!important;
    background:
      radial-gradient(circle at 93% 0,rgba(242,140,40,.11),transparent 27%),
      linear-gradient(110deg,rgba(255,255,255,.98),rgba(240,249,252,.98))!important;
}

@media(max-width:800px){
  .template-structure-review-shell:before,.template-structure-review-shell:after{display:none}
  .template-structure-review-body{padding:16px!important}
}

/* MVP 7.7.9g6.1 — inspecteerbaar generatiecontract vóór Word-rendering */
.mapping-test-generation {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(36, 108, 159, .20);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(244, 148, 46, .12), transparent 25%),
    linear-gradient(135deg, rgba(232, 247, 252, .96), rgba(255, 255, 255, .98) 58%, rgba(249, 244, 232, .92));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}
.mapping-test-generation.is-ready { border-color: rgba(60, 138, 92, .28); }
.mapping-test-generation h3 { margin: 4px 0 8px; }
.mapping-test-generation p { margin: 0; max-width: 820px; }
.mapping-test-generation-stats { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.mapping-test-generation-stats span {
  padding: 8px 12px;
  border: 1px solid rgba(29, 85, 121, .14);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  font-size: .9rem;
}
.mapping-test-generation-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.mapping-test-generation-actions form { margin: 0; }
@media (max-width: 900px) {
  .mapping-test-generation { grid-template-columns: 1fr; }
  .mapping-test-generation-actions { justify-content: flex-start; }
}


/* MVP 7.7.9g6.1.2 — concepttemplate stack & vervolgstap layout fix */
.mapping-next-step-panel.is-concepttemplate{
  display:block;
  padding:22px 22px 24px;
}
.mapping-concepttemplate-shell{
  display:grid;
  gap:18px;
}
.mapping-concepttemplate-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px 26px;
  align-items:start;
}
.mapping-adaptation-ready{
  max-width:none;
  min-width:0;
}
.mapping-adaptation-ready > h2{
  margin:.14rem 0 .45rem;
}
.mapping-adaptation-ready > p{
  max-width:860px;
}
.mapping-adaptation-actions{
  display:grid;
  gap:10px;
  align-content:start;
  justify-items:end;
  min-width:240px;
  max-width:300px;
}
.mapping-adaptation-actions .button,
.mapping-adaptation-actions button{
  width:100%;
  text-align:center;
}
.mapping-concepttemplate-shell > .mapping-reference-profile-summary,
.mapping-concepttemplate-shell > .mapping-client-final-review,
.mapping-concepttemplate-shell > .mapping-test-generation{
  margin-top:0;
}
.mapping-concepttemplate-shell > .mapping-client-final-review,
.mapping-concepttemplate-shell > .mapping-test-generation{
  position:relative;
  z-index:0;
}
.mapping-test-generation{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
}
.mapping-test-generation-actions{
  align-self:center;
}
@media (max-width: 980px) {
  .mapping-concepttemplate-top{
    grid-template-columns:1fr;
  }
  .mapping-adaptation-actions{
    min-width:0;
    max-width:none;
    width:100%;
    justify-items:start;
  }
}

/* MVP 7.7.9g6.2 — Word proefrender status */
.mapping-test-render-result{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 14px;
  margin-top:2px;
  padding:12px 14px;
  border:1px solid #c9e2d2;
  border-radius:13px;
  background:linear-gradient(135deg,#f1faf4,#fbfefd);
  color:#315f47;
}
.mapping-test-render-result strong{font-size:.78rem}
.mapping-test-render-result span{font-size:.72rem;color:#527363}
.mapping-test-render-result small{flex-basis:100%;font-size:.67rem;color:#6a8175}
.mapping-test-render-result.status-needs_review{border-color:#ead8af;background:linear-gradient(135deg,#fff9ed,#fffdf8);color:#785b28}


/* MVP 7.7.9g6.2.1 — zichtbare renderstatus */
.mapping-test-generation-message{grid-column:1/-1;display:grid;gap:3px;padding:12px 14px;border-radius:13px;border:1px solid #cfe1e8;background:#f6fbfd;font-size:.76rem;line-height:1.45}.mapping-test-generation-message strong{color:#173f5f}.mapping-test-generation-message span{color:#5f7885}.mapping-test-generation-message.success{border-color:#c5e2cf;background:#f1faf4}.mapping-test-generation-message.success strong{color:#3b7654}.mapping-test-generation-message.error{border-color:#ecc9bf;background:#fff6f2}.mapping-test-generation-message.error strong{color:#a04d3d}


/* MVP 7.7.9g6.2.3 — rapportstijl per BLVC-run */
.blvc-report-style-help{margin:8px 0 2px;padding:10px 12px;border:1px solid rgba(125,178,199,.25);border-radius:12px;background:rgba(255,255,255,.08);font-size:.74rem;line-height:1.45}
.blvc-report-style-help span{display:block}.blvc-report-style-help strong{color:inherit}
.mapping-structure-proof-link{font-size:.76rem;font-weight:800;color:#567684;text-decoration:underline;text-underline-offset:3px}
.mapping-test-generation-actions{row-gap:10px}


/* MVP 7.7.9g6.2.4 / g6.3 — rustige testgeneratiekaart */
.mapping-test-generation{
  display:block!important;
  padding:24px 26px!important;
}
.mapping-test-generation>div:first-child{max-width:900px}
.mapping-test-generation h3{font-size:1.04rem!important;line-height:1.35}
.mapping-test-generation p{max-width:900px!important;font-size:.76rem!important;line-height:1.55!important}
.mapping-test-generation-stats{display:flex!important;gap:9px!important;margin:16px 0 0!important}
.mapping-test-generation-stats span{min-width:0!important;white-space:nowrap}
.mapping-test-generation-message,.mapping-test-render-result{margin-top:16px!important}
.mapping-test-generation-actions{
  display:flex!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:10px 12px!important;
  padding-top:18px!important;
  margin-top:18px!important;
  border-top:1px solid rgba(29,85,121,.12);
}
.mapping-test-generation-actions form{margin:0!important}
.mapping-test-generation-actions .button,
.mapping-test-generation-actions button{width:auto!important;white-space:nowrap}
.mapping-structure-proof-link{margin-left:auto!important;white-space:nowrap}
@media(max-width:900px){
 .mapping-test-generation-actions{align-items:stretch!important}
 .mapping-test-generation-actions .button,.mapping-test-generation-actions button{width:100%!important}
 .mapping-structure-proof-link{margin-left:0!important}
}


/* MVP 7.7.9g6.3.2 — visible confirmations for prepare/activate actions */
.mapping-action-confirmation{
  grid-column:1/-1;
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 16px;
  margin-top:14px;
  border:1px solid #c5e2cf;
  border-radius:15px;
  background:linear-gradient(135deg,#f1faf4 0%,#f7fcf9 58%,#eef8ff 100%);
  box-shadow:0 10px 28px rgba(31,76,66,.08);
}
.mapping-action-confirmation-icon{
  display:grid;
  place-items:center;
  flex:0 0 30px;
  width:30px;
  height:30px;
  border-radius:10px;
  background:#dff3e6;
  color:#2f7650;
  font-weight:900;
  line-height:1;
}
.mapping-action-confirmation>div{display:grid;gap:3px;min-width:0}
.mapping-action-confirmation strong{color:#285f46;font-size:.82rem}
.mapping-action-confirmation span:not(.mapping-action-confirmation-icon){color:#5f7885;font-size:.75rem;line-height:1.45}
.mapping-generation-state-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}
.mapping-generation-state{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;border:1px solid #d5e4ea;background:#f8fbfc;color:#55717d;font-size:.69rem;font-weight:800;letter-spacing:.01em}
.mapping-generation-state:before{content:"";width:7px;height:7px;border-radius:50%;background:#7fa4b4}
.mapping-generation-state.is-ready{border-color:#c9e1d1;background:#f2faf5;color:#3d7154}
.mapping-generation-state.is-ready:before{background:#52a46f}
.mapping-generation-state.is-active{border-color:#c8d9ef;background:#f2f7fd;color:#315d8a}
.mapping-generation-state.is-active:before{background:#4d83c5}

/* MVP 7.7.9g6.4 — interne custom-template QA en fallback */
.custom-template-qa{margin:16px 0;padding:16px;border:1px solid #c9dbe7;border-radius:16px;background:linear-gradient(135deg,#f7fbfd 0%,#fff 60%,#fff7ed 100%)}
.custom-template-qa.qa-passed{border-color:#b9ddc6;background:linear-gradient(135deg,#f2fbf5,#fff)}
.custom-template-qa.qa-blocked{border-color:#efb4aa;background:linear-gradient(135deg,#fff5f2,#fff)}
.custom-template-qa-head{display:flex;gap:16px;justify-content:space-between;align-items:flex-start}
.custom-template-qa-head>div{display:grid;gap:3px}.custom-template-qa-head .eyebrow{margin:0}.custom-template-qa-head strong{font-size:1.08rem}
.custom-template-qa-badge{white-space:nowrap;border-radius:999px;padding:7px 11px;background:#eaf3f7;font-size:.78rem;font-weight:800;color:#173f5e}
.qa-passed .custom-template-qa-badge{background:#e8f6ed;color:#21643b}.qa-blocked .custom-template-qa-badge{background:#fde9e5;color:#9a3628}
.custom-template-qa-details{margin-top:12px;border-top:1px solid rgba(22,59,92,.12);padding-top:10px}.custom-template-qa-details summary{cursor:pointer;font-weight:750;color:#173f5e}
.custom-template-qa-list{display:grid;gap:8px;margin-top:10px}.qa-issue{padding:11px 12px;border-radius:11px;background:#fff;border:1px solid #dce7ed}.qa-issue p{margin:4px 0}.qa-issue small{display:block;color:#5d7180}.qa-issue-error{border-left:4px solid #c45b4a}.qa-issue-warning{border-left:4px solid #d99b31}.qa-issue-info{border-left:4px solid #6486c4}
.blvc-custom-template-note{display:grid;grid-template-columns:1fr auto;gap:4px 14px;align-items:center;margin:10px 0 14px;padding:12px 14px;border-radius:13px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.18)}
.blvc-custom-template-note strong,.blvc-custom-template-note span{grid-column:1}.blvc-custom-template-note a{grid-column:2;grid-row:1/3;color:inherit;font-weight:750}
@media(max-width:760px){.custom-template-qa-head{display:grid}.blvc-custom-template-note{grid-template-columns:1fr}.blvc-custom-template-note a{grid-column:1;grid-row:auto}}

/* MVP 7.7.9g6.4.1 — standalone Word-QA workspace */
.word-qa-workspace{margin-top:22px;padding:24px 26px;border:1px solid #c7dce7;background:linear-gradient(135deg,#f3fbff 0%,#ffffff 58%,#fff7ed 100%)}
.word-qa-workspace.qa-passed{border-color:#b8dfc7;background:linear-gradient(135deg,#f1fbf5,#fff)}
.word-qa-workspace.qa-blocked{border-color:#efb7ad;background:linear-gradient(135deg,#fff4f1,#fff)}
.word-qa-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:start}.word-qa-heading h2{margin:.18rem 0 .4rem}.word-qa-heading .eyebrow{margin:0}
.word-qa-status{display:grid;justify-items:end;gap:8px;text-align:right}.word-qa-status strong{font-size:.86rem;color:#38566a}
.word-qa-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.word-qa-summary-grid article{display:grid;gap:4px;padding:15px 16px;border:1px solid #d9e7ed;border-radius:14px;background:rgba(255,255,255,.82)}.word-qa-summary-grid span{font-size:.72rem;font-weight:800;color:#5c7482;text-transform:uppercase;letter-spacing:.04em}.word-qa-summary-grid strong{font-size:1.05rem;color:#173f5e}.word-qa-summary-grid small{color:#6b7f89;line-height:1.45}
.word-qa-autofix{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:17px 18px;border:1px solid #bddcc8;border-radius:15px;background:linear-gradient(135deg,#eefaf2,#fff)}.word-qa-autofix>div{display:grid;gap:4px}.word-qa-autofix span{font-size:.78rem;color:#5c7666;line-height:1.5}.word-qa-autofix form{margin:0}.word-qa-autofix button{white-space:nowrap}
.word-qa-confirmation{display:grid;gap:3px;margin-top:16px;padding:12px 14px;border-radius:12px;border:1px solid #d5e2e8;background:#f8fbfc}.word-qa-confirmation span{font-size:.78rem;color:#637985}.word-qa-confirmation.success{border-color:#bee0c9;background:#f0faf3}.word-qa-confirmation.success strong{color:#316b48}.word-qa-confirmation.error{border-color:#edc0b7;background:#fff5f2}.word-qa-confirmation.error strong{color:#9b4638}
.word-qa-workspace .custom-template-qa-details{margin-top:18px}.qa-issue-title-row{display:flex;gap:10px;justify-content:space-between;align-items:flex-start}.qa-issue-title-row span{flex:0 0 auto;padding:4px 7px;border-radius:999px;background:#e9f6ee;color:#35704d;font-size:.66rem;font-weight:800}
@media(max-width:900px){.word-qa-heading,.word-qa-autofix{grid-template-columns:1fr}.word-qa-status{justify-items:start;text-align:left}.word-qa-summary-grid{grid-template-columns:1fr}.word-qa-autofix button{width:100%}}


/* MVP 7.7.9g6.4.2 — QA clarity, stable scroll & test-generation action polish */
.mapping-test-generation-actions .mapping-structure-proof-button{
  margin-left:0!important;
  width:auto!important;
  white-space:nowrap;
  text-decoration:none;
}
@media(max-width:900px){
  .mapping-test-generation-actions .mapping-structure-proof-button{width:100%!important;text-align:center}
}

/* MVP 7.7.9g6.4.3 — premium QA styling + template review action layout polish */
.word-qa-workspace{
  position:relative;
  overflow:hidden;
  border-radius:22px;
  border:1px solid rgba(54,125,160,.20);
  background:
    radial-gradient(circle at 92% 10%, rgba(243,148,53,.13), transparent 22%),
    radial-gradient(circle at 8% 100%, rgba(74,173,203,.10), transparent 24%),
    linear-gradient(135deg, rgba(238,249,253,.98) 0%, rgba(255,255,255,.98) 56%, rgba(252,246,236,.96) 100%);
  box-shadow:0 20px 44px rgba(22,59,92,.09);
}
.word-qa-workspace:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg,#2a7dbc,#6cd3e4 52%, #f39a35 100%);
  opacity:.9;
}
.word-qa-workspace.qa-passed{
  border-color:rgba(76,154,111,.28);
  background:
    radial-gradient(circle at 92% 12%, rgba(243,148,53,.10), transparent 22%),
    radial-gradient(circle at 10% 100%, rgba(104,198,142,.11), transparent 26%),
    linear-gradient(135deg, rgba(241,251,245,.98) 0%, rgba(255,255,255,.98) 58%, rgba(247,252,249,.95) 100%);
}
.word-qa-workspace.qa-blocked{
  border-color:rgba(195,84,68,.24);
  background:
    radial-gradient(circle at 90% 10%, rgba(243,148,53,.10), transparent 20%),
    linear-gradient(135deg, rgba(255,245,242,.98) 0%, rgba(255,255,255,.98) 62%, rgba(255,249,246,.95) 100%);
}
.word-qa-heading{gap:28px;align-items:center}
.word-qa-heading h2{font-size:1.6rem;line-height:1.14;margin:.2rem 0 .45rem}
.word-qa-heading .muted.small{max-width:920px;color:#627b87;line-height:1.62}
.word-qa-status strong{font-size:.98rem;color:#214a67}
.word-qa-status .custom-template-qa-badge{
  padding:9px 14px;
  border:1px solid rgba(52,118,90,.12);
  box-shadow:0 8px 18px rgba(22,59,92,.06);
}
.word-qa-confirmation{
  border-radius:15px;
  padding:14px 16px;
  border-color:#c8e0cf;
  background:linear-gradient(135deg,#f0faf3 0%, #f7fcf9 56%, #edf8ff 100%);
  box-shadow:0 12px 26px rgba(31,76,66,.06);
}
.word-qa-summary-grid{gap:14px;margin:22px 0}
.word-qa-summary-grid article{
  position:relative;
  overflow:hidden;
  padding:17px 18px;
  border-radius:16px;
  border:1px solid rgba(33,89,121,.12);
  background:rgba(255,255,255,.86);
  box-shadow:0 12px 24px rgba(22,59,92,.05);
}
.word-qa-summary-grid article:before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:4px;
  background:linear-gradient(180deg,#74c8de,#2b7ca3);
  opacity:.95;
}
.word-qa-summary-grid article:nth-child(2):before{background:linear-gradient(180deg,#6fb98e,#3b8a61)}
.word-qa-summary-grid article:nth-child(3):before{background:linear-gradient(180deg,#f4b561,#d38c28)}
.word-qa-summary-grid strong{font-size:1.2rem}
.word-qa-autofix{
  padding:18px 20px;
  border-radius:17px;
  border:1px solid rgba(100,173,127,.28);
  background:linear-gradient(135deg,#eef9f1 0%, #f7fcf8 58%, #ffffff 100%);
  box-shadow:0 12px 24px rgba(58,107,79,.06);
}
.word-qa-autofix strong{font-size:.92rem;color:#22553e}
.word-qa-autofix button{min-height:46px}
.word-qa-workspace .custom-template-qa-details{
  border-top:1px solid rgba(29,85,121,.12);
  padding-top:14px;
}
.word-qa-workspace .custom-template-qa-details summary{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:1rem;
  font-weight:850;
  color:#173f5e;
}
.word-qa-workspace .custom-template-qa-details summary::marker,
.word-qa-workspace .custom-template-qa-details summary::-webkit-details-marker{color:#537489}
.word-qa-workspace .custom-template-qa-list{gap:12px;margin-top:14px}
.word-qa-workspace .qa-issue{
  border-radius:16px;
  padding:14px 15px 13px;
  background:linear-gradient(135deg,#ffffff,#fbfdfe);
  box-shadow:0 10px 22px rgba(22,59,92,.04);
}
.word-qa-workspace .qa-issue p{font-size:.98rem;line-height:1.6;color:#213f54}
.word-qa-workspace .qa-issue small{font-size:.84rem;line-height:1.55;color:#617987}
.word-qa-workspace .qa-issue-title-row strong{font-size:1.02rem;line-height:1.35;color:#143d5b}
.mapping-sticky-actions{
  padding:18px 20px;
  border-radius:18px;
  background:linear-gradient(110deg, rgba(242,250,253,.97), rgba(255,255,255,.98) 62%, rgba(252,245,235,.95));
  box-shadow:0 16px 34px rgba(22,59,92,.13);
}
.mapping-sticky-copy{display:grid;gap:4px;max-width:860px}
.mapping-sticky-actions strong{font-size:.92rem;line-height:1.2}
.mapping-sticky-actions small{font-size:.74rem;line-height:1.55;color:#617987}
.mapping-sticky-actions button{min-width:220px}
.mapping-test-generation-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  gap:14px 20px!important;
  align-items:start!important;
}
.mapping-test-generation-downloads,
.mapping-test-generation-workflow-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px 12px;
  align-items:center;
}
.mapping-test-generation-downloads{
  min-width:0;
}
.mapping-test-generation-workflow-actions{
  justify-content:flex-end;
}
.mapping-test-generation-downloads .button,
.mapping-test-generation-downloads button,
.mapping-test-generation-workflow-actions .button,
.mapping-test-generation-workflow-actions button{
  min-height:44px;
}
.mapping-download-action,
.mapping-structure-proof-button{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  padding:11px 16px!important;
  border-radius:12px!important;
  border:1px solid rgba(41,97,127,.17)!important;
  background:rgba(255,255,255,.88)!important;
  box-shadow:0 8px 18px rgba(22,59,92,.05);
  text-decoration:none!important;
}
.mapping-download-action:hover,
.mapping-structure-proof-button:hover{
  border-color:rgba(41,97,127,.28)!important;
  background:#f7fbfd!important;
}
.mapping-test-generation-actions .mapping-structure-proof-button,
.mapping-test-generation-actions .mapping-download-action{
  margin-left:0!important;
}
@media(max-width:980px){
  .mapping-test-generation-actions{grid-template-columns:1fr!important}
  .mapping-test-generation-workflow-actions{justify-content:flex-start}
}
@media(max-width:900px){
  .mapping-test-generation-downloads,
  .mapping-test-generation-workflow-actions{display:grid;grid-template-columns:1fr;align-items:stretch}
  .mapping-test-generation-downloads .button,
  .mapping-test-generation-downloads button,
  .mapping-test-generation-workflow-actions .button,
  .mapping-test-generation-workflow-actions button{width:100%!important}
  .mapping-sticky-actions{flex-direction:column;align-items:stretch}
  .mapping-sticky-actions button{width:100%;min-width:0}
}

/* MVP 7.7.9g6.4.4 — QA signal intelligence + client-share readiness */
.word-qa-share-card.status-review:before{background:linear-gradient(180deg,#f2a43e,#d27e18)!important}
.word-qa-share-card.status-ready:before{background:linear-gradient(180deg,#6ec58f,#3c8e62)!important}
.word-qa-share-card.status-blocked:before{background:linear-gradient(180deg,#d97968,#b84e3d)!important}
.qa-issue-title-row{align-items:flex-start}
.qa-issue-tags{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.qa-issue-title-row .qa-issue-tags span{padding:4px 7px;border-radius:999px;background:#eef4f7;color:#54717f;font-size:.66rem;font-weight:800}
.qa-issue-title-row .qa-issue-tags .is-content{background:#eef2fc;color:#536da7}
.qa-issue-title-row .qa-issue-tags .is-share{background:#fff2df;color:#93611d}
.qa-issue-title-row .qa-issue-tags .is-fix{background:#e9f6ee;color:#35704d}
@media(max-width:760px){.qa-issue-title-row{display:grid}.qa-issue-tags{justify-content:flex-start}}

/* MVP 7.7.9g6.5 — final custom-template workflow closure */
.run-provenance-card{margin:14px 0;padding:14px 15px;border:1px solid rgba(55,112,143,.14);border-radius:14px;background:linear-gradient(135deg,#f5fbfd,#fff 64%,#fff9f0)}
.run-provenance-card>span{display:block;margin-bottom:10px;font-size:.7rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#41677b}
.run-provenance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.run-provenance-grid>div{padding:9px 10px;border-radius:10px;background:rgba(255,255,255,.82);border:1px solid rgba(45,96,124,.10)}
.run-provenance-grid small{display:block;color:#718692;font-size:.65rem}.run-provenance-grid strong{display:block;margin-top:2px;color:#173f5f;font-size:.78rem;line-height:1.35}
.template-workflow-closure{margin-top:16px;padding:16px 17px;border:1px solid rgba(70,153,105,.22);border-radius:16px;background:linear-gradient(120deg,#effaf3,#fff 60%,#fff8ef)}
.template-workflow-closure-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.template-workflow-closure-head .eyebrow{margin:0}.template-workflow-closure-head strong{color:#295f45;font-size:.86rem}
.template-workflow-steps{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 9px}.template-workflow-steps span{padding:7px 10px;border-radius:999px;border:1px solid #dce7eb;background:#fff;color:#617985;font-size:.69rem;font-weight:800}.template-workflow-steps .done{border-color:#c7e2d0;background:#f0faf3;color:#367253}.template-workflow-steps .pending{border-color:#ead8b5;background:#fff8ea;color:#8a642a}.template-workflow-closure>small{color:#687f8a;line-height:1.45}
@media(max-width:720px){.run-provenance-grid{grid-template-columns:1fr}.template-workflow-closure-head{align-items:flex-start;flex-direction:column}}

/* MVP 7.7.9g6.5.1 — compact premium run provenance */
.run-provenance-card{
  position:relative;
  overflow:hidden;
  margin:15px 0 17px;
  padding:0;
  border:1px solid rgba(52,104,134,.14);
  border-radius:16px;
  background:
    radial-gradient(circle at 96% 0,rgba(243,154,53,.09),transparent 28%),
    linear-gradient(135deg,#f7fbfd 0%,#ffffff 72%);
  box-shadow:0 9px 22px rgba(22,59,92,.045);
}
.run-provenance-card:before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:3px;
  background:linear-gradient(180deg,#70c5dc,#2e7da5 58%,#ef9a39);
}
.run-provenance-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  padding:13px 14px 10px 16px;
  border-bottom:1px solid rgba(48,100,129,.10);
}
.run-provenance-head>span{
  font-size:.69rem;
  font-weight:900;
  letter-spacing:.045em;
  text-transform:uppercase;
  color:#254f69;
}
.run-provenance-head>small{
  font-size:.58rem;
  color:#81939c;
  white-space:nowrap;
}
.run-provenance-list{display:grid;padding:3px 13px 7px 15px}
.run-provenance-row{
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:9px 0;
  border-bottom:1px solid rgba(46,91,116,.08);
}
.run-provenance-row:last-child{border-bottom:0}
.run-provenance-index{
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  border-radius:10px;
  background:linear-gradient(135deg,#eef7fa,#fff8eb);
  border:1px solid rgba(58,112,140,.12);
  color:#477184;
  font-size:.58rem;
  font-weight:900;
  letter-spacing:.03em;
}
.run-provenance-row>div{min-width:0;display:grid;gap:1px}
.run-provenance-row small{color:#7a8f99;font-size:.58rem;font-weight:750;line-height:1.2}
.run-provenance-row strong{color:#173f5f;font-size:.78rem;line-height:1.35}
.run-provenance-row em{margin-top:2px;color:#6c818b;font-size:.61rem;font-style:normal;line-height:1.35}
@media(max-width:720px){
  .run-provenance-head{align-items:flex-start;flex-direction:column;gap:2px}
  .run-provenance-head>small{white-space:normal}
}

/* MVP 7.7.9g7.1 — branding/template entitlements + commercial request flow */
.branding-product-access{
  margin:22px 0;
  padding:24px 26px;
  border:1px solid rgba(43,111,148,.18);
  border-radius:22px;
  background:
    radial-gradient(circle at 92% 8%,rgba(243,148,53,.12),transparent 24%),
    radial-gradient(circle at 8% 100%,rgba(78,174,202,.10),transparent 25%),
    linear-gradient(135deg,#eef9fd 0%,#fff 58%,#fff8ee 100%);
  box-shadow:0 18px 42px rgba(22,59,92,.08);
}
.branding-product-access-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:18px}
.branding-product-access-head h2{margin:.18rem 0 .42rem}.branding-product-access-head p:last-child{margin:0;max-width:820px;color:#667d89;line-height:1.55}
.branding-product-admin-badge{flex:0 0 auto;padding:8px 11px;border-radius:999px;border:1px solid #c8dce6;background:#f7fbfd;color:#315b72;font-size:.7rem;font-weight:850}.branding-product-admin-badge.client{border-color:#d7e8dc;background:#f3faf5;color:#3b7352}
.branding-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.branding-product-card{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;gap:8px 12px;min-height:172px;padding:17px 18px;border:1px solid #dbe7ec;border-radius:17px;background:rgba(255,255,255,.9);box-shadow:0 10px 24px rgba(22,59,92,.045)}
.branding-product-card.is-enabled,.branding-product-card.is-included{border-color:#c2dfcc;background:linear-gradient(145deg,#f4fbf6,#fff)}
.branding-product-card.is-pending{border-color:#ead9b8;background:linear-gradient(145deg,#fff9ee,#fff)}
.branding-product-card.is-premium{border-color:#d9e3ed;background:linear-gradient(145deg,#f7faff,#fff)}
.branding-product-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,#163f5f,#2d6f93);color:#fff;font-size:.7rem;font-weight:900;box-shadow:0 8px 18px rgba(23,63,95,.14)}
.branding-product-card.is-included .branding-product-icon,.branding-product-card.is-enabled .branding-product-icon{background:linear-gradient(145deg,#39775a,#58a275)}
.branding-product-kicker{display:block;margin-bottom:3px;color:#718994;font-size:.61rem;font-weight:900;text-transform:uppercase;letter-spacing:.055em}.branding-product-card h3{margin:0 0 5px;color:#173f5f;font-size:1rem}.branding-product-card p{margin:0;color:#657d89;font-size:.76rem;line-height:1.5}.branding-product-card small{display:block;margin-top:7px;color:#738891;font-size:.67rem;line-height:1.4}
.branding-product-action{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:12px;border-top:1px solid rgba(29,85,121,.10);flex-wrap:wrap}.branding-product-action form{margin:0}.branding-product-action-static{align-items:center}
.branding-product-status{display:inline-flex;align-items:center;justify-content:center;min-height:38px;min-width:120px;padding:0 14px;border-radius:999px;font-size:.76rem;font-weight:850;white-space:nowrap}.branding-product-status.is-ready{background:#e9f7ee;color:#2f704c}.branding-product-status.is-pending{background:#fff1d8;color:#895d1e}.branding-product-inline-note{color:#6d818d;font-size:.72rem;line-height:1.45}
.branding-product-action button{min-height:40px;padding:9px 14px}.branding-product-secondary-action{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 14px;border-radius:12px;border:1px solid #cfe0e8;background:#fff;color:#2a5b77;font-size:.77rem;font-weight:800;box-shadow:none}.branding-product-secondary-action:hover{background:#f5fafd}.branding-product-card:target{outline:0;box-shadow:0 0 0 3px rgba(43,113,175,.18),0 14px 30px rgba(22,59,92,.08)}
.branding-commercial-requests{display:grid;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid rgba(29,85,121,.12)}.branding-commercial-requests>div>strong{display:block;color:#173f5f}.branding-commercial-requests article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:13px 14px;border:1px solid #d9e6eb;border-radius:14px;background:rgba(255,255,255,.82)}.branding-commercial-requests article strong{display:block;color:#173f5f}.branding-commercial-requests article small{display:block;margin-top:2px;color:#748994}.branding-commercial-requests article p{margin:6px 0 0;color:#667d89}.branding-commercial-request-actions{display:flex;gap:8px}.branding-commercial-request-actions form{margin:0}
.branding-commercial-locked-card{background:linear-gradient(135deg,#f7faff,#fff 65%,#fff8ee);border-color:#d5e3ec}.branding-product-jump{display:inline-flex;align-items:center;gap:8px;margin:0 24px 22px;padding:11px 15px;border-radius:12px;border:1px solid #cfe0e8;background:rgba(255,255,255,.86);color:#275d7a;font-size:.8rem;font-weight:800;text-decoration:none;box-shadow:0 8px 18px rgba(22,59,92,.06)}.branding-product-jump:hover{background:#fff;transform:translateY(-1px)}.template-onboarding-card.is-commercial-locked{border-color:#d9e3ed}.template-commercial-lock{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:22px 28px;padding:19px 20px;border:1px solid #d8e3ee;border-radius:16px;background:linear-gradient(135deg,#f7faff,#fff 60%,#fff8ef)}.template-commercial-lock h3{margin:.15rem 0 .35rem;color:#173f5f}.template-commercial-lock p{margin:0;max-width:820px;color:#657d89;line-height:1.5}.template-commercial-lock .branding-product-jump{margin:0;white-space:nowrap;align-self:center}
@media(max-width:980px){.branding-product-grid{grid-template-columns:1fr}.branding-commercial-requests article,.template-commercial-lock{grid-template-columns:1fr;display:grid}.branding-commercial-request-actions{justify-content:flex-start}.template-commercial-lock .branding-product-jump{white-space:normal}}
@media(max-width:680px){.branding-product-access{padding:20px}.branding-product-access-head{display:grid}.branding-product-admin-badge{justify-self:start}.branding-commercial-request-actions{display:grid}.branding-commercial-request-actions button{width:100%}.branding-product-action,.branding-product-action-static{align-items:flex-start}.branding-product-status{min-width:0}}


/* MVP 7.7.9g7.2 — commercial UX & status copy polish */
.branding-commercial-locked-card .branding-commercial-lock-actions{
  display:flex;
  align-items:center;
  min-height:70px;
  padding:14px 24px 16px;
  border-top:1px solid #dbe7ed;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(249,252,253,.98));
}
.branding-commercial-locked-card .branding-commercial-lock-actions .branding-product-jump{
  margin:0!important;
}
.template-commercial-lock .branding-commercial-lock-actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  align-self:stretch;
}
.template-commercial-lock .branding-commercial-lock-actions .branding-product-jump{
  margin:0!important;
  align-self:center;
}
@media(max-width:980px){
  .template-commercial-lock .branding-commercial-lock-actions{align-self:auto}
}
@media(max-width:680px){
  .branding-commercial-locked-card .branding-commercial-lock-actions{padding:13px 18px 15px;min-height:64px}
}

/* MVP 7.7.9g7.2.1 — betaalbevestiging en consistente premium-aanvraagflow */
.branding-commercial-request-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 15px;
  border-radius:12px;
  font-size:.8rem;
  font-weight:850;
  white-space:nowrap;
}
.branding-commercial-lock-actions .branding-commercial-request-trigger{
  min-width:150px;
}
.branding-commercial-dialog{
  width:min(640px,calc(100vw - 32px));
  max-width:none;
  padding:0;
  border:0;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 32px 84px rgba(17,47,70,.30);
}
.branding-commercial-dialog::backdrop{background:rgba(18,42,59,.50);backdrop-filter:blur(7px)}
.branding-commercial-dialog-shell{
  position:relative;
  display:grid;
  background:
    radial-gradient(circle at 92% 2%,rgba(243,148,53,.12),transparent 22%),
    linear-gradient(135deg,#f1fafd 0%,#fff 55%,#fff7ed 100%);
}
.branding-commercial-dialog-close{
  position:absolute;top:16px;right:16px;z-index:2;
  display:grid;place-items:center;width:38px;height:38px;min-height:0;padding:0;
  border:0;border-radius:12px;background:#173f5f;color:#fff;box-shadow:0 8px 18px rgba(23,63,95,.16);font-size:1.1rem;
}
.branding-commercial-dialog-head{
  display:grid;grid-template-columns:58px minmax(0,1fr);gap:18px;align-items:center;
  padding:28px 64px 20px 28px;border-bottom:1px solid rgba(29,85,121,.10);
}
.branding-commercial-dialog-icon{
  display:grid;place-items:center;width:58px;height:58px;border-radius:18px;
  background:linear-gradient(145deg,#17486a,#2e7ca3);color:#fff;font-size:1.25rem;font-weight:900;
  box-shadow:0 12px 24px rgba(23,63,95,.17);
}
.branding-commercial-dialog-head .eyebrow{margin:0 0 4px}.branding-commercial-dialog-head h2{margin:0;color:#173f5f;font-size:1.52rem;line-height:1.2}
.branding-commercial-dialog-intro{margin:5px 0 0!important;color:#6c818d!important;font-size:.84rem;line-height:1.45}
.branding-commercial-dialog-body{display:grid;gap:16px;padding:22px 28px 20px}
.branding-commercial-dialog-price{
  display:grid;grid-template-columns:1fr;gap:6px;align-items:start;
  padding:15px 16px;border:1px solid #e8d2a2;border-radius:15px;background:linear-gradient(135deg,#fff9ed,#fffdf9);
}
.branding-commercial-dialog-price span{font-size:.72rem;font-weight:900;color:#80643b;text-transform:uppercase;letter-spacing:.05em;line-height:1.35}
.branding-commercial-dialog-price strong{display:block;font-size:1rem;color:#68491e;text-align:left;line-height:1.45;overflow-wrap:anywhere}
.branding-commercial-dialog-description{margin:0;color:#5f7885;line-height:1.6}
.branding-commercial-dialog-benefit{
  display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start;
  padding:15px 16px;border:1px solid #c9e1d2;border-radius:15px;background:linear-gradient(135deg,#eff9f2,#fff);
}
.branding-commercial-dialog-benefit>span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#dff2e6;color:#33714f;font-weight:950}
.branding-commercial-dialog-benefit strong{display:block;color:#2b6547}.branding-commercial-dialog-benefit p{margin:4px 0 0;color:#617c6c;line-height:1.55;font-size:.8rem}
.branding-commercial-consent{
  position:relative;display:grid;grid-template-columns:24px 34px minmax(0,1fr);gap:10px;align-items:start;
  padding:14px 15px;border:1px solid #cfdfe7;border-radius:15px;background:#fff;cursor:pointer;
}
.branding-commercial-consent input{margin:5px 0 0;width:17px;height:17px}
.branding-commercial-consent-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eef5f8;color:#79909c;font-weight:900}
.branding-commercial-consent:has(input:checked){border-color:#acd3bc;background:#f5fbf7}.branding-commercial-consent:has(input:checked) .branding-commercial-consent-mark{background:#dff2e6;color:#2f704c}
.branding-commercial-consent strong{display:block;font-size:.84rem;line-height:1.45;color:#173f5f}.branding-commercial-consent small{display:block;margin-top:4px;color:#71858f;line-height:1.45}
.branding-commercial-dialog-actions{
  display:flex;justify-content:flex-end;gap:10px;padding:16px 28px 22px;border-top:1px solid rgba(29,85,121,.10);background:rgba(255,255,255,.58)
}
.branding-commercial-dialog-actions button{min-width:140px;min-height:44px}
@media(max-width:640px){
  .branding-commercial-dialog-head{grid-template-columns:48px minmax(0,1fr);padding:22px 56px 18px 20px}.branding-commercial-dialog-icon{width:48px;height:48px;border-radius:15px}
  .branding-commercial-dialog-head h2{font-size:1.28rem}.branding-commercial-dialog-body{padding:18px 20px}.branding-commercial-dialog-price{grid-template-columns:1fr}.branding-commercial-dialog-price strong{text-align:left}
  .branding-commercial-consent{grid-template-columns:22px minmax(0,1fr)}.branding-commercial-consent-mark{display:none}
  .branding-commercial-dialog-actions{display:grid;grid-template-columns:1fr;padding:14px 20px 20px}.branding-commercial-dialog-actions button{width:100%}
}

/* MVP 7.7.9g7.3b — premium internal portfolio dashboard */
.portfolio-hero {
    min-height:205px;
    align-items:center;
    background:
        radial-gradient(circle at 84% 8%,rgba(242,140,40,.24),transparent 30%),
        radial-gradient(circle at 55% 118%,rgba(73,167,200,.19),transparent 34%),
        linear-gradient(118deg,#f8fcff 0%,#e8f5fb 48%,#fff6e9 100%)!important;
}
.portfolio-hero-copy {max-width:750px}
.portfolio-hero h1 {margin-bottom:7px;font-size:2rem;letter-spacing:-.035em;color:#102f49}
.portfolio-hero .muted {max-width:690px;font-size:.86rem;line-height:1.65;color:#587083}
.portfolio-hero-meta {display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}
.portfolio-hero-pill {display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid rgba(133,171,193,.48);border-radius:999px;background:rgba(255,255,255,.72);box-shadow:0 6px 18px rgba(15,47,74,.05);font-size:.66rem;font-weight:750;color:#426276;backdrop-filter:blur(8px)}
.portfolio-hero-pill strong {font-size:.76rem;color:#163b5c}
.portfolio-hero-pill.is-attention {border-color:#f1c590;background:rgba(255,247,235,.88);color:#8d5927}
.portfolio-hero-pill.is-attention strong {color:#c36d1b}
.portfolio-hero-pill.is-calm {border-color:#b9d9c5;background:rgba(241,250,244,.9);color:#467458}
.portfolio-hero-orbit {position:relative;flex:0 0 176px;width:176px;height:150px;margin-right:12px}
.portfolio-hero-orbit .orbit {position:absolute;border-radius:50%;border:1px solid rgba(35,104,141,.18);transform:rotate(-16deg)}
.portfolio-hero-orbit .orbit-one {inset:20px 0}
.portfolio-hero-orbit .orbit-two {inset:35px 14px;border-color:rgba(242,140,40,.28);transform:rotate(20deg)}
.portfolio-hero-orbit .orbit-three {inset:49px 28px;border-style:dashed;border-color:rgba(60,143,128,.28);transform:rotate(52deg)}
.orbit-core {position:absolute;inset:50%;display:grid;place-items:center;width:66px;height:66px;transform:translate(-50%,-50%);border-radius:22px;background:linear-gradient(145deg,#1d628c,#123751);box-shadow:0 15px 30px rgba(15,47,74,.22),inset 0 1px 0 rgba(255,255,255,.24);color:#fff;font-size:.72rem;font-weight:900;letter-spacing:.08em}

.portfolio-kpi-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0 0 18px}
.portfolio-kpi-card {position:relative;overflow:hidden;display:flex;align-items:center;gap:13px;min-height:126px;padding:18px;border:1px solid rgba(161,188,204,.64);border-radius:17px;box-shadow:0 15px 34px rgba(15,47,74,.085);transition:transform .16s ease,box-shadow .16s ease}
.portfolio-kpi-card:hover {transform:translateY(-2px);box-shadow:0 20px 40px rgba(15,47,74,.12)}
.portfolio-kpi-card:after {content:"";position:absolute;right:-27px;top:-29px;width:92px;height:92px;border:16px solid rgba(255,255,255,.33);border-radius:50%}
.portfolio-kpi-card.kpi-action {background:linear-gradient(145deg,#fffaf4,#f8e6d2)}
.portfolio-kpi-card.kpi-client {background:linear-gradient(145deg,#f8fcff,#dfeff8)}
.portfolio-kpi-card.kpi-commercial {background:linear-gradient(145deg,#fbf9ff,#e9e4f5)}
.portfolio-kpi-card.kpi-qa {background:linear-gradient(145deg,#f8fdf9,#dfeee5)}
.portfolio-kpi-icon {position:relative;z-index:1;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:14px;font-weight:950;font-size:.78rem;box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 9px 18px rgba(15,47,74,.10)}
.kpi-action .portfolio-kpi-icon {background:linear-gradient(145deg,#f5aa58,#e67e19);color:#fff}
.kpi-client .portfolio-kpi-icon {background:linear-gradient(145deg,#58a7cf,#2676a6);color:#fff}
.kpi-commercial .portfolio-kpi-icon {background:linear-gradient(145deg,#8a7fb1,#665b91);color:#fff}
.kpi-qa .portfolio-kpi-icon {background:linear-gradient(145deg,#63a98b,#397c67);color:#fff}
.portfolio-kpi-copy {position:relative;z-index:1;min-width:0}
.portfolio-kpi-copy>span,.portfolio-kpi-copy>strong,.portfolio-kpi-copy>small {display:block}
.portfolio-kpi-copy>span {font-size:.67rem;font-weight:850;color:#4f6677}
.portfolio-kpi-copy>strong {margin:3px 0 2px;font-size:1.7rem;line-height:1;color:#102f49;letter-spacing:-.045em}
.portfolio-kpi-copy>small {font-size:.57rem;line-height:1.4;color:#71818c}

.portfolio-workspace-grid {display:grid;grid-template-columns:minmax(0,1.72fr) minmax(285px,.72fr);gap:18px;margin-bottom:18px;align-items:stretch}
.portfolio-attention-panel,.portfolio-new-project,.portfolio-project-panel {border-radius:18px!important}
.portfolio-attention-panel {padding:22px;background:radial-gradient(circle at 92% 8%,rgba(73,167,200,.09),transparent 29%),linear-gradient(145deg,#fff,#f4fafc)!important;border-top:4px solid #3b8eb7!important}
.portfolio-section-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:15px}
.portfolio-section-heading h2 {margin:2px 0 4px;color:#163b5c}
.portfolio-count-badge {flex:none;padding:6px 9px;border-radius:999px;background:linear-gradient(145deg,#245f82,#163b5c);color:#fff;font-size:.61rem;font-weight:900;box-shadow:0 7px 15px rgba(22,59,92,.15)}
.portfolio-attention-list {display:grid;gap:8px}
.portfolio-attention-item {position:relative;display:grid;grid-template-columns:5px minmax(0,1fr) 24px;align-items:center;gap:12px;padding:12px 12px 12px 10px;border:1px solid #dbe7ed;border-radius:13px;background:rgba(255,255,255,.84);color:inherit;text-decoration:none;box-shadow:0 5px 14px rgba(15,47,74,.035);transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}
.portfolio-attention-item:hover {transform:translateY(-1px);border-color:#b8ceda;box-shadow:0 11px 22px rgba(15,47,74,.075)}
.portfolio-attention-marker {align-self:stretch;border-radius:99px;background:#7ba8be}
.attention-word_qa .portfolio-attention-marker {background:linear-gradient(#5aa081,#3f8068)}
.attention-review_feedback .portfolio-attention-marker {background:linear-gradient(#ed9f47,#d67618)}
.attention-client_interaction .portfolio-attention-marker {background:linear-gradient(#4ba0c8,#2676a6)}
.attention-commercial_request .portfolio-attention-marker {background:linear-gradient(#8f82b5,#62588c)}
.attention-workflow_status .portfolio-attention-marker {background:linear-gradient(#9aafbb,#708b9a)}
.portfolio-attention-topline {display:flex;align-items:center;gap:6px;margin-bottom:4px}
.portfolio-attention-badge,.portfolio-attention-count {display:inline-flex;padding:3px 6px;border-radius:999px;background:#edf4f7;color:#486779;font-size:.52rem;font-weight:900;text-transform:uppercase;letter-spacing:.035em}
.portfolio-attention-count {background:#f4f0e9;color:#7a6750}
.portfolio-attention-main>strong {display:block;font-size:.74rem;color:#173d5c}
.portfolio-attention-main>p {margin:3px 0;color:#627684;font-size:.63rem;line-height:1.45}
.portfolio-attention-main>small {display:block;color:#8a969e;font-size:.54rem;font-weight:700}
.portfolio-attention-arrow {display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#edf4f7;color:#315f7c;font-weight:900;transition:transform .14s ease}
.portfolio-attention-item:hover .portfolio-attention-arrow {transform:translateX(2px)}
.portfolio-overflow-note {margin:10px 0 0;color:#7c8c96;font-size:.58rem}
.portfolio-calm-state {display:flex;align-items:center;gap:13px;min-height:112px;padding:18px;border:1px solid #cbe2d3;border-radius:14px;background:linear-gradient(145deg,#f8fcf9,#edf8f1)}
.portfolio-calm-icon {display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#5ba27f,#39765d);color:#fff;font-size:1rem;font-weight:950;box-shadow:0 9px 19px rgba(57,118,93,.18)}
.portfolio-calm-state strong {display:block;color:#35684e;font-size:.78rem}
.portfolio-calm-state p {margin:4px 0 0;color:#6c8174;font-size:.62rem;line-height:1.48}

.portfolio-new-project {position:relative;overflow:hidden;padding:22px!important;border-top:4px solid #ee9b43!important;background:radial-gradient(circle at 100% 0,rgba(242,140,40,.18),transparent 34%),linear-gradient(155deg,#fffdf8,#f7fbfd)!important}
.portfolio-new-project:after {content:"";position:absolute;right:-42px;bottom:-56px;width:142px;height:142px;border:20px solid rgba(242,140,40,.06);border-radius:50%;pointer-events:none}
.portfolio-new-project>* {position:relative;z-index:1}
.portfolio-new-project-badge {position:absolute;right:20px;top:20px;display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(145deg,#f7a851,#e97f19);box-shadow:0 9px 18px rgba(233,127,25,.21);color:#fff;font-size:1rem;font-weight:900}
.portfolio-new-project h2 {margin:2px 0 6px;color:#163b5c}
.portfolio-new-project .form {margin-top:14px}
.portfolio-new-project .form label {font-size:.62rem}
.portfolio-new-project .form input {margin-top:4px}
.portfolio-new-project button {width:100%;margin-top:2px;background:linear-gradient(145deg,#1b567c,#0f344f);box-shadow:0 9px 20px rgba(15,52,79,.16)}

.portfolio-project-panel {padding:22px!important;border-top:4px solid #779fb5!important;background:radial-gradient(circle at 100% 0,rgba(73,167,200,.09),transparent 22%),linear-gradient(145deg,#fff,#f1f8fb)!important}
.portfolio-project-heading {align-items:center}
.portfolio-notification-summary {margin-left:auto;background:linear-gradient(145deg,#fff9ef,#fff3df)!important}
.portfolio-project-list {gap:10px}
.portfolio-project-card {padding:15px 17px 14px!important;border-color:#d5e3ea!important;background:linear-gradient(105deg,#fff 0%,#fbfdfe 72%,#edf7fb 100%)!important;box-shadow:0 7px 18px rgba(15,47,74,.045);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.portfolio-project-card:hover {transform:translateY(-2px);border-color:#a9c5d4!important;box-shadow:0 16px 30px rgba(15,47,74,.09)}
.portfolio-project-content {display:flex;align-items:center;justify-content:space-between;gap:18px}
.portfolio-project-identity {display:flex;align-items:center;gap:13px;min-width:0}
.portfolio-project-number {display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#edf6fa,#dfeef5);border:1px solid #d2e4ed;color:#286383;font-size:.7rem;font-weight:950;box-shadow:inset 0 1px 0 #fff}
.portfolio-project-identity h3 {margin:1px 0 3px;font-size:.86rem;color:#173d5c}
.portfolio-project-state {display:flex;align-items:flex-end;flex-direction:column;gap:6px;max-width:45%}
.portfolio-project-badges {display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px}
.portfolio-project-badge,.portfolio-project-clear {padding:3px 7px;border-radius:999px;font-size:.52rem;font-weight:850}
.portfolio-project-badge {background:#edf4f7;color:#4b697a;border:1px solid #dce8ed}
.portfolio-project-badge.badge-client {background:#eaf5fb;color:#2c7197;border-color:#cfe5f0}
.portfolio-project-badge.badge-feedback {background:#fff2df;color:#9a5d20;border-color:#f4d6ae}
.portfolio-project-badge.badge-qa {background:#eaf6ef;color:#3c7458;border-color:#cfe6d7}
.portfolio-project-badge.badge-workflow {background:#f0f3f5;color:#617785;border-color:#dce4e8}
.portfolio-project-badge.badge-more {background:#f4f0f7;color:#6b5f85;border-color:#e3ddec}
.portfolio-project-clear {background:#edf7f1;color:#4f7960}
.portfolio-project-footer {display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-top:12px;padding-top:10px;border-top:1px solid #e7eff3}
.portfolio-progress-wrap {flex:1;max-width:520px}
.portfolio-progress-label {display:flex;justify-content:space-between;margin-bottom:5px;color:#72838d;font-size:.53rem;font-weight:750}
.portfolio-progress-label strong {color:#496a7d}
.portfolio-project-card .workflow-card-progress {height:5px;margin:0;background:#e5eef2}
.portfolio-project-card .workflow-card-progress>span {background:linear-gradient(90deg,#2c7da8,#54a48a)}
.portfolio-project-link {flex:none;color:#2d6788;font-size:.61rem;font-weight:900}
.portfolio-project-link b {display:inline-block;margin-left:3px;transition:transform .14s ease}
.portfolio-project-card:hover .portfolio-project-link b {transform:translateX(3px)}

@media(max-width:1050px){
    .portfolio-kpi-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
    .portfolio-workspace-grid {grid-template-columns:1fr}
    .portfolio-new-project {max-width:none}
}
@media(max-width:760px){
    .portfolio-hero-orbit {display:none}
    .portfolio-hero h1 {font-size:1.7rem}
    .portfolio-kpi-grid {grid-template-columns:1fr}
    .portfolio-kpi-card {min-height:106px}
    .portfolio-section-heading,.portfolio-project-heading {flex-direction:column;align-items:flex-start}
    .portfolio-notification-summary {margin-left:0}
    .portfolio-project-content,.portfolio-project-footer {align-items:flex-start;flex-direction:column}
    .portfolio-project-state {align-items:flex-start;max-width:none}
    .portfolio-project-badges {justify-content:flex-start}
    .portfolio-progress-wrap {width:100%;max-width:none}
}


/* MVP 8.11.2.1 — BLVC dashboard brand and KPI icon refresh */
.orbit-core.orbit-core-logo{padding:10px;background:linear-gradient(145deg,#ffffff,#edf6fb)}
.orbit-core.orbit-core-logo img{display:block;max-width:100%;max-height:100%;width:44px;height:auto;filter:drop-shadow(0 3px 6px rgba(16,47,73,.12))}
.portfolio-kpi-icon svg{width:22px;height:22px;display:block}
.kpi-action .portfolio-kpi-icon svg{transform:translateY(.5px)}
.kpi-client .portfolio-kpi-icon svg{width:21px;height:21px}
.kpi-commercial .portfolio-kpi-icon svg{width:20px;height:20px}
.kpi-qa .portfolio-kpi-icon svg{width:21px;height:21px}

/* MVP 7.7.9g7.3b.1 · actionable Word-QA */
.qa-issue-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.qa-action-button{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border-radius:10px;text-decoration:none;font-size:.78rem;font-weight:800;color:#fff;background:linear-gradient(135deg,#245b82,#5478c8);box-shadow:0 7px 18px rgba(36,91,130,.16);transition:transform .16s ease,box-shadow .16s ease}
.qa-action-button:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(36,91,130,.22)}
.qa-action-button.secondary{color:#284f68;background:linear-gradient(135deg,#f6fafc,#edf3fa);border:1px solid #d7e4ec;box-shadow:none}

/* MVP 7.7.9g7.3b.1.2 — intake AI usage details contrast */
.ai-usage-summary .ai-usage-details {
    border-top-color: rgba(232, 247, 253, .22) !important;
}

.ai-usage-summary .ai-usage-details > summary {
    color: #f4fbff !important;
    background: rgba(255, 255, 255, .035);
}

.ai-usage-summary .ai-usage-details > summary::before {
    color: #8fd4e8;
}

.ai-usage-summary .ai-usage-details > summary:hover,
.ai-usage-summary .ai-usage-details > summary:focus-visible {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .10) !important;
}

.ai-usage-summary .ai-usage-details > summary:focus-visible {
    outline: 2px solid rgba(143, 212, 232, .9);
    outline-offset: -2px;
}

/* MVP 7.7.9g7.3c · commerciële werkvoorraad op intern portefeuille-dashboard */
.portfolio-commercial-panel{position:relative;overflow:hidden;margin-bottom:18px;padding:22px!important;border-radius:18px!important;border-top:4px solid #7f72aa!important;background:radial-gradient(circle at 96% 5%,rgba(121,104,168,.18),transparent 28%),radial-gradient(circle at 4% 95%,rgba(239,157,71,.10),transparent 25%),linear-gradient(145deg,#fff,#f7f5fc)!important}
.portfolio-commercial-panel:after{content:"";position:absolute;right:-58px;top:-72px;width:190px;height:190px;border:24px solid rgba(114,98,157,.055);border-radius:50%;pointer-events:none}
.portfolio-commercial-heading{position:relative;z-index:1;align-items:center}
.portfolio-commercial-count{flex:none;padding:7px 10px;border-radius:999px;background:linear-gradient(145deg,#8e80b5,#65588f);color:#fff;font-size:.6rem;font-weight:900;box-shadow:0 8px 17px rgba(82,69,124,.18)}
.portfolio-commercial-list{position:relative;z-index:1;display:grid;gap:10px}
.portfolio-commercial-card{position:relative;display:grid;grid-template-columns:5px minmax(0,1fr) auto;gap:14px;align-items:center;padding:15px 15px 15px 11px;border:1px solid #ddd8eb;border-radius:15px;background:linear-gradient(105deg,rgba(255,255,255,.94),rgba(250,248,254,.94));box-shadow:0 8px 20px rgba(53,43,88,.055)}
.portfolio-commercial-accent{align-self:stretch;border-radius:999px;background:linear-gradient(180deg,#9d8bc3,#695b93 64%,#ec9c49)}
.portfolio-commercial-main{min-width:0}
.portfolio-commercial-topline{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:5px}
.portfolio-commercial-product,.portfolio-commercial-scope{display:inline-flex;padding:3px 7px;border-radius:999px;font-size:.52rem;font-weight:900}
.portfolio-commercial-product{background:#eee9f7;color:#65568d;border:1px solid #ddd3ef}
.portfolio-commercial-scope{background:#fff3e5;color:#956020;border:1px solid #f1d8b8}
.portfolio-commercial-main h3{margin:0 0 3px;color:#173d5c;font-size:.82rem}
.portfolio-commercial-main>p{margin:0;color:#637583;font-size:.62rem;line-height:1.48}
.portfolio-commercial-meta{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:7px;color:#87939c;font-size:.54rem;font-weight:700}
.portfolio-commercial-meta a{color:#5b5685;text-decoration:none;font-weight:850}
.portfolio-commercial-meta a:hover{text-decoration:underline}
.portfolio-commercial-message{margin-top:8px;padding:8px 10px;border-radius:10px;background:#f5f2fa;border:1px solid #e6e0f0;color:#665f78;font-size:.58rem;line-height:1.45}
.portfolio-commercial-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.portfolio-commercial-actions form{margin:0}
.portfolio-commercial-actions button{margin:0;min-height:34px;padding:7px 11px;border-radius:10px;font-size:.58rem;font-weight:900;white-space:nowrap}
.portfolio-commercial-approve{border:0!important;background:linear-gradient(145deg,#326f73,#23555f)!important;color:#fff!important;box-shadow:0 8px 16px rgba(35,85,95,.17)}
.portfolio-commercial-approve:hover{filter:brightness(1.06)}
.portfolio-commercial-reject{border:1px solid #d9cfdf!important;background:linear-gradient(145deg,#fff,#f4eff7)!important;color:#6c5874!important;box-shadow:none!important}
.portfolio-commercial-reject:hover{background:#eee7f3!important;border-color:#cbbbd5!important}
@media(max-width:900px){.portfolio-commercial-card{grid-template-columns:5px minmax(0,1fr)}.portfolio-commercial-actions{grid-column:2;justify-content:flex-start}}
@media(max-width:620px){.portfolio-commercial-actions{align-items:stretch;flex-direction:column}.portfolio-commercial-actions form,.portfolio-commercial-actions button{width:100%}.portfolio-commercial-count{align-self:flex-start}}

/* MVP 7.7.9g8.3 — retained pricing helpers after compact-settings cleanup */
.portfolio-product-settings-note{position:relative;z-index:1;display:flex;gap:9px;align-items:flex-start;margin-top:12px;padding:10px 12px;border:1px solid #dce7e9;border-radius:12px;background:rgba(255,255,255,.72)}
.portfolio-product-settings-note>span{display:flex;align-items:center;justify-content:center;flex:none;width:20px;height:20px;border-radius:50%;background:#e7f4f5;color:#2b747c;font-size:.56rem;font-weight:950}
.portfolio-product-settings-note p{margin:0;color:#6d7d85;font-size:.53rem;line-height:1.5}
.portfolio-product-settings-note strong{color:#315867}
.portfolio-commercial-price{padding:3px 7px;border-radius:999px;background:#edf7f7;color:#2e6d74;font-weight:900!important}

/* MVP 7.7.9g7.4.1 · compact platform pricing launcher + modal */
.portfolio-settings-launcher{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;margin:0 0 18px;padding:15px 17px;border:1px solid #dbe6e8;border-radius:16px;background:radial-gradient(circle at 88% 15%,rgba(83,153,162,.13),transparent 26%),linear-gradient(135deg,#ffffff,#f6fbfb 58%,#f7f4fc);box-shadow:0 10px 26px rgba(35,70,91,.07);overflow:hidden}
.portfolio-settings-launcher:after{content:"";position:absolute;right:155px;top:-54px;width:120px;height:120px;border:18px solid rgba(120,96,166,.045);border-radius:50%;pointer-events:none}
.portfolio-settings-launcher-copy{position:relative;z-index:1;display:flex;gap:12px;align-items:center;min-width:0}
.portfolio-settings-launcher-icon{display:flex;align-items:center;justify-content:center;flex:none;width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#327c85,#245d69 58%,#695b93);color:#fff;font-size:.82rem;font-weight:950;box-shadow:0 8px 17px rgba(42,94,104,.18)}
.portfolio-settings-launcher .eyebrow{margin:0 0 2px}
.portfolio-settings-launcher h2{margin:0;color:#173d5b;font-size:.91rem}
.portfolio-settings-launcher-copy p:last-child{margin:3px 0 0;color:#75848d;font-size:.58rem;line-height:1.4}
.portfolio-settings-launcher-summary{position:relative;z-index:1;display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.portfolio-settings-launcher-summary span{display:inline-flex;gap:4px;align-items:center;padding:6px 8px;border:1px solid #e2e7ef;border-radius:999px;background:rgba(255,255,255,.78);color:#687985;font-size:.52rem;font-weight:800;white-space:nowrap}
.portfolio-settings-launcher-summary strong{color:#315f6a}
.portfolio-settings-launcher-button{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;margin:0;min-height:46px;padding:10px 16px;border:0;border-radius:14px;background:linear-gradient(145deg,#255a78,#1d4c67 68%,#60739c);color:#fff;font-size:.68rem;font-weight:900;letter-spacing:.01em;box-shadow:0 10px 24px rgba(26,65,94,.18);white-space:nowrap}
.portfolio-settings-launcher-button:hover{filter:brightness(1.06)}
.portfolio-settings-launcher-button span{margin-left:4px}

.portfolio-product-settings-dialog{width:min(1040px,calc(100vw - 28px));max-height:calc(100vh - 34px);padding:0;border:0;border-radius:22px;background:transparent;box-shadow:0 28px 80px rgba(22,48,70,.28);overflow:hidden}
.portfolio-product-settings-dialog::backdrop{background:rgba(14,36,54,.50);backdrop-filter:blur(4px)}
.portfolio-product-settings-dialog-shell{display:flex;flex-direction:column;max-height:calc(100vh - 34px);background:linear-gradient(145deg,#f9fcfd,#f7f5fb);color:#173d5b}
.portfolio-product-settings-dialog-head{position:relative;display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:21px 23px;background:radial-gradient(circle at 88% 10%,rgba(158,129,196,.24),transparent 31%),linear-gradient(135deg,#173f5e,#205b70 56%,#62558b);color:#fff;overflow:hidden}
.portfolio-product-settings-dialog-head:after{content:"";position:absolute;right:-35px;bottom:-70px;width:170px;height:170px;border:24px solid rgba(255,255,255,.055);border-radius:50%}
.portfolio-product-settings-dialog-title{position:relative;z-index:1;display:flex;gap:13px;align-items:center}
.portfolio-product-settings-dialog-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border-radius:14px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.19);font-size:.88rem;font-weight:950}
.portfolio-product-settings-dialog-head .eyebrow{margin:0 0 3px;color:#bee5ec}
.portfolio-product-settings-dialog-head h2{margin:0;color:#fff;font-size:1.15rem}
.portfolio-product-settings-dialog-head p:last-child{margin:4px 0 0;color:rgba(255,255,255,.78);font-size:.61rem}
.portfolio-product-settings-dialog-close{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;width:36px;height:36px;margin:0;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:11px;background:rgba(255,255,255,.10);color:#fff;font-size:1.1rem;line-height:1;box-shadow:none}
.portfolio-product-settings-dialog-close:hover{background:rgba(255,255,255,.18)}
.portfolio-product-settings-dialog-body{overflow:auto;padding:20px 22px 22px}
.portfolio-pricing-group{padding:0 0 18px}
.portfolio-pricing-group+.portfolio-pricing-group{padding-top:18px;border-top:1px solid #dde6ea}
.portfolio-pricing-group-heading{display:flex;justify-content:space-between;gap:14px;align-items:flex-end;margin-bottom:11px}
.portfolio-pricing-group-kicker{display:inline-flex;margin-bottom:4px;padding:4px 8px;border-radius:999px;font-size:.51rem;font-weight:900}
.portfolio-pricing-group-kicker.is-report{background:#e6f4f5;color:#286d74;border:1px solid #d2e9eb}
.portfolio-pricing-group-kicker.is-organization{background:#f0ebf8;color:#66558f;border:1px solid #e1d8ef}
.portfolio-pricing-group-heading h3{margin:0;color:#183f5d;font-size:.88rem}
.portfolio-pricing-group-heading p{margin:4px 0 0;max-width:760px;color:#7a8991;font-size:.56rem;line-height:1.45}
.portfolio-pricing-compact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.portfolio-pricing-compact-grid.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.portfolio-pricing-compact-card{padding:13px;border:1px solid #dde5e8;border-radius:14px;background:linear-gradient(140deg,#fff,#f8fbfc);box-shadow:0 7px 18px rgba(41,74,93,.05)}
.portfolio-pricing-compact-card.report-card-2{border-color:#d7e6df;background:linear-gradient(140deg,#fff,#f6fbf8)}
.portfolio-pricing-compact-card.report-card-3,.portfolio-pricing-compact-card.is-template{border-color:#e1daeb;background:linear-gradient(140deg,#fff,#faf8fd)}
.portfolio-pricing-compact-card.is-branding{border-color:#d4e8e9;background:linear-gradient(140deg,#fff,#f5fbfb)}
.portfolio-pricing-compact-head{display:flex;gap:10px;justify-content:space-between;align-items:flex-start}
.portfolio-pricing-type{display:block;color:#839096;font-size:.48rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.portfolio-pricing-compact-head h4{margin:2px 0 0;color:#173d5b;font-size:.75rem}
.portfolio-pricing-current{max-width:52%;color:#2c6870;font-size:.57rem;line-height:1.3;text-align:right}
.portfolio-pricing-compact-card.report-card-3 .portfolio-pricing-current,.portfolio-pricing-compact-card.is-template .portfolio-pricing-current{color:#685990}
.portfolio-pricing-compact-card>p{min-height:32px;margin:8px 0 10px;color:#73838d;font-size:.54rem;line-height:1.42}
.portfolio-pricing-inline-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end;margin:0;padding-top:9px;border-top:1px solid #e7edef}
.portfolio-pricing-inline-form label{margin:0;color:#465f6c;font-size:.51rem;font-weight:850}
.portfolio-pricing-inline-form input{width:100%;min-height:34px;margin-top:4px;padding:6px 8px;border:1px solid #ccdadd;border-radius:9px;background:#fff;color:#173d5b;font-size:.59rem;font-weight:750;box-sizing:border-box}
.portfolio-pricing-inline-form input:focus{outline:none;border-color:#4b9299;box-shadow:0 0 0 3px rgba(75,146,153,.12)}
.portfolio-pricing-inline-form button{min-height:34px;margin:0;padding:7px 10px;border:0;border-radius:9px;background:linear-gradient(145deg,#337b83,#245d68);color:#fff;font-size:.54rem;font-weight:900;box-shadow:0 6px 13px rgba(43,100,109,.13)}
.portfolio-pricing-compact-card.report-card-3 .portfolio-pricing-inline-form button,.portfolio-pricing-compact-card.is-template .portfolio-pricing-inline-form button{background:linear-gradient(145deg,#8877af,#63548e)}
.portfolio-pricing-inline-form small{grid-column:1/-1;color:#8c979d;font-size:.47rem;line-height:1.35}
.portfolio-product-settings-note.is-dialog-note{margin-top:0;background:linear-gradient(135deg,#f1f8f9,#f8f7fc)}

@media(max-width:900px){
  .portfolio-settings-launcher{grid-template-columns:minmax(0,1fr) auto}.portfolio-settings-launcher-summary{display:none}
  .portfolio-pricing-compact-grid.is-three{grid-template-columns:1fr}.portfolio-pricing-compact-grid{grid-template-columns:1fr 1fr}
  .portfolio-pricing-compact-card>p{min-height:0}
}
@media(max-width:660px){
  .portfolio-settings-launcher{grid-template-columns:1fr}.portfolio-settings-launcher-button{width:100%}
  .portfolio-pricing-compact-grid{grid-template-columns:1fr}
  .portfolio-product-settings-dialog{width:calc(100vw - 18px);max-height:calc(100vh - 18px)}
  .portfolio-product-settings-dialog-shell{max-height:calc(100vh - 18px)}
  .portfolio-product-settings-dialog-head{padding:17px}.portfolio-product-settings-dialog-body{padding:16px}
  .portfolio-product-settings-dialog-title{align-items:flex-start}.portfolio-product-settings-dialog-icon{width:38px;height:38px}
  .portfolio-pricing-inline-form{grid-template-columns:1fr}.portfolio-pricing-inline-form button{width:100%}
  .portfolio-pricing-current{max-width:48%}
}

/* MVP 7.7.9g7.4.2b · clearer pricing modal + internal report proposal */
.portfolio-product-settings-dialog-head .eyebrow{display:inline-flex;align-items:center;margin:0 0 7px;padding:5px 9px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font-size:.64rem;font-weight:950;letter-spacing:.055em;box-shadow:0 5px 13px rgba(12,38,57,.12)}
.portfolio-product-settings-dialog-head h2{font-size:1.3rem}
.portfolio-product-settings-dialog-head p:last-child{font-size:.72rem;line-height:1.45}
.portfolio-pricing-group-kicker{font-size:.62rem;padding:5px 9px}
.portfolio-pricing-group-heading h3{font-size:1rem}
.portfolio-pricing-group-heading p{font-size:.67rem;line-height:1.5}
.portfolio-pricing-type{font-size:.58rem}
.portfolio-pricing-compact-head h4{font-size:.88rem}
.portfolio-pricing-current{font-size:.68rem}
.portfolio-pricing-compact-card>p{font-size:.65rem;line-height:1.48}
.portfolio-pricing-inline-form label{font-size:.62rem}
.portfolio-pricing-inline-form input{min-height:39px;font-size:.69rem;padding:8px 10px}
.portfolio-pricing-inline-form button{min-height:39px;font-size:.63rem;padding:8px 12px}
.portfolio-pricing-inline-form small{font-size:.57rem}
.portfolio-product-settings-note p{font-size:.62rem;line-height:1.5}

.report-commercial-proposal{position:relative;margin:18px 0;padding:20px;border:1px solid #d7e5e8;border-radius:19px;background:radial-gradient(circle at 92% 8%,rgba(126,104,177,.13),transparent 30%),radial-gradient(circle at 8% 92%,rgba(61,145,154,.11),transparent 28%),linear-gradient(145deg,#fff,#f7fbfc 58%,#faf8fd);box-shadow:0 14px 34px rgba(35,72,94,.08);overflow:hidden}
.report-commercial-proposal:after{content:"";position:absolute;right:-62px;bottom:-78px;width:180px;height:180px;border:24px solid rgba(82,135,148,.045);border-radius:50%;pointer-events:none}
.report-commercial-proposal-head{position:relative;z-index:1;display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:15px}
.report-commercial-proposal-head h2{margin:2px 0 5px;color:#173d5b;font-size:1.16rem}
.report-commercial-proposal-head>div>p:last-child{max-width:780px;margin:0;color:#71818a;font-size:.7rem;line-height:1.5}
.report-commercial-status{flex:none;padding:7px 10px;border:1px solid #d6e4e8;border-radius:999px;background:#fff;color:#52717d;font-size:.61rem;font-weight:900}
.report-commercial-status.is-pending{border-color:#f0d9aa;background:#fff7e7;color:#9a6216}
.report-commercial-status.is-confirmed{border-color:#cfe5d8;background:#edf8f1;color:#2c7350}
.report-commercial-proposal-grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:13px}
.report-commercial-advice-card{padding:15px;border:1px solid #d8e6e8;border-radius:15px;background:linear-gradient(140deg,#fff,#f4fbfb);box-shadow:0 8px 20px rgba(38,82,99,.05)}
.report-commercial-kicker{display:inline-flex;margin-bottom:7px;padding:4px 8px;border-radius:999px;background:#e8f5f6;color:#286c74;font-size:.57rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.report-commercial-advice-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.report-commercial-advice-title>div{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.report-commercial-advice-title strong{color:#173f5d;font-size:1rem}
.report-commercial-advice-title>div>span{color:#72828b;font-size:.64rem;font-weight:750}
.report-commercial-recommended{padding:5px 8px;border-radius:999px;background:linear-gradient(145deg,#2f7e87,#24606b);color:#fff;font-size:.57rem;font-weight:900}
.report-commercial-advice-card>p{margin:8px 0 10px;color:#667b85;font-size:.68rem;line-height:1.5}
.report-commercial-reasons{display:flex;gap:6px;flex-wrap:wrap}
.report-commercial-reasons span{padding:5px 7px;border:1px solid #dce8ea;border-radius:999px;background:rgba(255,255,255,.82);color:#4c6975;font-size:.56rem;font-weight:800}
.report-commercial-price-options{display:grid;gap:8px}
.report-commercial-price-option{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 12px;border:1px solid #e0e6ea;border-radius:12px;background:rgba(255,255,255,.84)}
.report-commercial-price-option.is-recommended{border-color:#bcdde0;background:linear-gradient(135deg,#f0fafb,#f7f5fb);box-shadow:0 7px 16px rgba(53,115,124,.08)}
.report-commercial-price-option>div{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.report-commercial-price-option span{color:#244a63;font-size:.68rem;font-weight:900}
.report-commercial-price-option small{padding:3px 6px;border-radius:999px;background:#e4f3f4;color:#2c747c;font-size:.52rem;font-weight:900}
.report-commercial-price-option strong{color:#173f5d;font-size:.73rem;white-space:nowrap}
.report-commercial-proposal-footer{position:relative;z-index:1;display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:13px;padding-top:13px;border-top:1px solid #e0e8eb}
.report-commercial-proposal-footer>div{display:flex;flex-direction:column;gap:2px}
.report-commercial-proposal-footer strong{color:#244b63;font-size:.68rem}
.report-commercial-proposal-footer span{color:#71818a;font-size:.61rem;line-height:1.45}
.report-commercial-send,.report-commercial-settings-link{flex:none;white-space:nowrap}
.report-commercial-missing-prices strong{color:#8f5a15}
.report-commercial-confirmed-copy strong{color:#2c7350}
.report-commercial-empty{position:relative;z-index:1;display:flex;flex-direction:column;gap:3px;padding:12px 13px;border:1px dashed #d7e2e6;border-radius:12px;background:rgba(255,255,255,.66)}
.report-commercial-empty strong{color:#31566b;font-size:.7rem}.report-commercial-empty span{color:#75858d;font-size:.62rem}
@media(max-width:900px){.report-commercial-proposal-grid{grid-template-columns:1fr}.report-commercial-proposal-footer{align-items:flex-start;flex-direction:column}.report-commercial-send,.report-commercial-settings-link{width:100%;text-align:center}.report-commercial-proposal-head{flex-direction:column}.report-commercial-status{align-self:flex-start}}

/* MVP 7.7.9g7.4.2c · klantbevestiging rapportniveau op overzicht */
.client-report-choice-workspace{margin:18px 0 22px;padding:21px;border:1px solid #d7e5e8;border-radius:20px;background:radial-gradient(circle at 92% 6%,rgba(128,105,181,.13),transparent 28%),radial-gradient(circle at 8% 92%,rgba(65,148,157,.12),transparent 30%),linear-gradient(145deg,#fff,#f7fbfc 58%,#faf8fd);box-shadow:0 16px 36px rgba(35,72,94,.09);position:relative;overflow:hidden}
.client-report-choice-workspace:after{content:"";position:absolute;right:-70px;bottom:-95px;width:220px;height:220px;border:26px solid rgba(73,132,145,.045);border-radius:50%;pointer-events:none}
.client-report-choice-heading{position:relative;z-index:1;display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:15px}
.client-report-choice-heading h2{margin:2px 0 5px;color:#173d5b;font-size:1.2rem}.client-report-choice-heading>div>p:last-child{max-width:780px;margin:0;color:#6f818b;font-size:.72rem;line-height:1.55}
.client-report-choice-count{flex:none;padding:7px 10px;border:1px solid #f0d9aa;border-radius:999px;background:#fff7e7;color:#976017;font-size:.62rem;font-weight:900}
.client-report-choice-list{position:relative;z-index:1;display:grid;gap:14px}.client-report-choice-card{padding:17px;border:1px solid #dbe6e9;border-radius:17px;background:rgba(255,255,255,.9);box-shadow:0 9px 24px rgba(39,78,96,.06);scroll-margin-top:110px}
.client-report-choice-project{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding-bottom:12px;border-bottom:1px solid #e4ecef}.client-report-choice-kicker{display:block;margin-bottom:3px;color:#2d7680;font-size:.59rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.client-report-choice-project h3{margin:0;color:#173d5b;font-size:1rem}.client-report-choice-project p{margin:3px 0 0;color:#77878f;font-size:.65rem}.client-report-choice-status{padding:6px 9px;border-radius:999px;background:linear-gradient(145deg,#fff5df,#fff9ed);border:1px solid #eed7a9;color:#986117;font-size:.58rem;font-weight:900}
.client-report-choice-advice{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:12px;align-items:start;margin:12px 0}.client-report-choice-advice>div:first-child{padding:12px;border:1px solid #d7e8e9;border-radius:13px;background:linear-gradient(140deg,#f1fafb,#fbf9fe)}.client-report-choice-advice>div:first-child>span{display:block;color:#54727d;font-size:.56rem;font-weight:850;text-transform:uppercase;letter-spacing:.035em}.client-report-choice-advice strong{display:inline-block;margin-top:3px;color:#173f5d;font-size:.93rem}.client-report-choice-advice small{margin-left:7px;color:#72838c;font-size:.59rem;font-weight:750}.client-report-choice-reasons{display:flex;gap:6px;flex-wrap:wrap;padding-top:2px}.client-report-choice-reasons span{padding:6px 8px;border:1px solid #dce8ea;border-radius:999px;background:#fff;color:#536f7a;font-size:.57rem;font-weight:800}
.client-report-choice-form fieldset{margin:0;padding:0;border:0}.client-report-choice-form legend{margin-bottom:8px;color:#274e64;font-size:.68rem;font-weight:900}.client-report-choice-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.client-report-choice-option{position:relative;display:flex;flex-direction:column;gap:7px;min-height:126px;padding:12px 12px 11px;border:1px solid #dce5e8;border-radius:14px;background:linear-gradient(145deg,#fff,#fafcfd);cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.client-report-choice-option:hover{transform:translateY(-1px);border-color:#bdd8dc;box-shadow:0 8px 18px rgba(44,92,108,.07)}.client-report-choice-option.is-recommended{border-color:#add8dc;background:linear-gradient(145deg,#eefafb,#faf8fd);box-shadow:0 8px 20px rgba(48,116,126,.08)}.client-report-choice-option input{position:absolute;top:11px;right:11px;accent-color:#2f7d86}.client-report-choice-option-main{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;padding-right:20px}.client-report-choice-option-title{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.client-report-choice-option-title strong{color:#173f5d;font-size:.76rem}.client-report-choice-option-title small{padding:3px 6px;border-radius:999px;background:#dff1f2;color:#2d737b;font-size:.5rem;font-weight:900}.client-report-choice-option-main>b{color:#173f5d;font-size:.73rem;white-space:nowrap}.client-report-choice-description{color:#697d87;font-size:.59rem;line-height:1.48}.client-report-choice-warning{margin-top:auto;padding:6px 7px;border-radius:8px;background:#fff5e8;color:#945f1d;font-size:.54rem;font-weight:800;line-height:1.4}
.client-report-choice-message{display:block;margin-top:11px;color:#35596d;font-size:.62rem;font-weight:900}.client-report-choice-message>span{color:#87949a;font-weight:700}.client-report-choice-message textarea{width:100%;box-sizing:border-box;margin-top:5px;padding:9px 10px;border:1px solid #cfdddf;border-radius:11px;background:#fff;color:#173d5b;font:inherit;font-size:.67rem;line-height:1.45;resize:vertical}.client-report-choice-message textarea:focus{outline:none;border-color:#4b9299;box-shadow:0 0 0 3px rgba(75,146,153,.12)}
.client-report-choice-footer{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:11px;padding-top:11px;border-top:1px solid #e4ecef}.client-report-choice-footer p{max-width:720px;margin:0;color:#71818a;font-size:.59rem;line-height:1.5}.client-report-choice-footer p strong{color:#365e70}.client-report-choice-footer button{flex:none;margin:0;padding:10px 14px;border:0;border-radius:10px;background:linear-gradient(145deg,#2f7e87,#245f6a);color:#fff;font-size:.64rem;font-weight:900;box-shadow:0 8px 17px rgba(42,103,112,.17)}.client-report-choice-footer button:hover{filter:brightness(1.04)}
.report-choice-attention{background:#fff5e5!important;color:#936019!important}.workflow-report-confirmed{padding:4px 7px;border-radius:999px;background:#edf8f2;color:#347054;font-size:.56rem;font-weight:850}
@media(max-width:900px){.client-report-choice-options{grid-template-columns:1fr}.client-report-choice-advice{grid-template-columns:1fr}.client-report-choice-heading,.client-report-choice-footer{flex-direction:column;align-items:flex-start}.client-report-choice-footer button{width:100%}.client-report-choice-count{align-self:flex-start}}
@media(max-width:650px){.client-report-choice-workspace{padding:15px}.client-report-choice-project{flex-direction:column}.client-report-choice-status{align-self:flex-start}}
.client-report-choice-project-overview{margin-top:16px}.client-report-confirmed-strip{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:16px 0;padding:17px 19px;border-color:#cfe4d7;background:radial-gradient(circle at 90% 10%,rgba(116,173,136,.13),transparent 32%),linear-gradient(145deg,#fff,#f4fbf7);box-shadow:0 10px 24px rgba(42,93,69,.06)}.client-report-confirmed-strip h2{margin:2px 0 3px;color:#245c43;font-size:1rem}.client-report-confirmed-strip p{margin:0;color:#6d8076;font-size:.65rem}.client-report-confirmed-strip>strong{padding:8px 11px;border-radius:999px;background:#e9f6ee;color:#2b6c4c;font-size:.72rem;white-space:nowrap}
@media(max-width:650px){.client-report-confirmed-strip{align-items:flex-start;flex-direction:column}}

/* MVP 7.7.9g8.3 — consolidated customer report-choice presentation */
.client-report-choice-option input[type="radio"]{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;opacity:0!important;pointer-events:none;overflow:hidden}
.client-report-choice-option{transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}
.client-report-choice-option.is-recommended{border-color:#c3dfe2;background:linear-gradient(145deg,#f5fbfb,#fbfafd);box-shadow:0 7px 18px rgba(48,116,126,.055)}
.client-report-choice-option:has(input[type="radio"]:checked){transform:translateY(-2px);border-color:#3d8e97;background:radial-gradient(circle at 90% 10%,rgba(242,140,40,.09),transparent 32%),linear-gradient(145deg,#edf9fa,#fff 58%,#f8f5fc);box-shadow:0 0 0 2px rgba(61,142,151,.15),0 14px 30px rgba(35,104,116,.14),0 0 28px rgba(75,146,153,.10)}
.client-report-choice-option:has(input[type="radio"]:focus-visible){outline:3px solid rgba(242,140,40,.22);outline-offset:3px}
.client-report-choice-description{font-size:.64rem;line-height:1.55;color:#627984}
.client-report-choice-warning{font-size:.59rem;line-height:1.48}
.client-report-choice-advice{grid-template-columns:minmax(230px,.72fr) minmax(0,1.28fr);gap:12px;align-items:stretch}
.client-report-advice-card,.client-report-choice-reason-block{min-height:104px;padding:14px 15px!important;box-sizing:border-box;border:1px solid #d7e8e9;border-radius:14px;background:linear-gradient(145deg,#f6fbfc,#fbf9fd)}
.client-report-advice-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.client-report-advice-kicker{display:block;margin:0 0 6px!important;color:#54727d!important;font-size:.58rem!important;font-weight:900!important;text-transform:uppercase;letter-spacing:.04em}
.client-report-advice-card strong{display:block;margin:0 0 5px;color:#173f5d;font-size:1rem}
.client-report-advice-card p{margin:0;max-width:310px;color:#657b86;font-size:.63rem;line-height:1.5}
.client-report-choice-reason-block{display:flex;flex-direction:column;justify-content:center;gap:5px}
.client-report-choice-reasons{display:block;padding:0}
.client-report-choice-reasons p{margin:0;padding:5px 0;color:#58717c;font-size:.61rem;font-weight:700;line-height:1.45}
.client-report-choice-reasons p + p{border-top:1px solid rgba(205,222,225,.72)}
@media(max-width:900px){.client-report-choice-advice{grid-template-columns:1fr}.client-report-advice-card,.client-report-choice-reason-block{min-height:0}}

.client-cost-overview{
    margin:16px 0 22px;
    padding:18px 20px;
    border:1px solid #d5e3e6;
    background:radial-gradient(circle at 92% 12%,rgba(242,140,40,.10),transparent 28%),radial-gradient(circle at 9% 90%,rgba(66,148,157,.10),transparent 30%),linear-gradient(145deg,#fff,#f8fbfc 62%,#fbf9fd);
    box-shadow:0 12px 28px rgba(34,76,96,.07);
    overflow:hidden;
}
.client-cost-overview-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:22px;
    padding-bottom:13px;
    border-bottom:1px solid #dfe9eb;
}
.client-cost-overview-head h2{margin:2px 0 4px;color:#173d5b;font-size:1.05rem}
.client-cost-overview-head>div:first-child>p:last-child{margin:0;max-width:650px;color:#6e8089;font-size:.65rem;line-height:1.5}
.client-cost-total{
    flex:none;
    min-width:170px;
    padding:10px 12px;
    border:1px solid #d2e5e6;
    border-radius:13px;
    background:rgba(255,255,255,.82);
    text-align:right;
}
.client-cost-total span{display:block;color:#6a7f88;font-size:.56rem;font-weight:850;text-transform:uppercase;letter-spacing:.035em}
.client-cost-total strong{display:block;margin-top:3px;color:#1b5364;font-size:.88rem}
.client-cost-lines{display:grid;margin-top:4px}
.client-cost-line{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:11px 2px;
}
.client-cost-line + .client-cost-line{border-top:1px solid #e3ebed}
.client-cost-line>div:first-child{display:grid;gap:2px}
.client-cost-line>div:first-child strong{color:#234d64;font-size:.69rem}
.client-cost-line>div:first-child span{color:#71828a;font-size:.61rem;line-height:1.4}
.client-cost-line-value{display:grid;justify-items:end;gap:2px;text-align:right;white-space:nowrap}
.client-cost-line-value strong{color:#173f5d;font-size:.7rem}
.client-cost-line-value small{color:#6d838b;font-size:.55rem;font-weight:800}
.client-cost-line-pending .client-cost-line-value strong{color:#966117}
.client-cost-line-included .client-cost-line-value strong{color:#39715b}
.client-cost-note{margin-top:5px;padding:8px 10px;border-radius:10px;background:#fff7e9;color:#80602c;font-size:.59rem;line-height:1.45}
@media(max-width:900px){
    .client-report-choice-advice{grid-template-columns:1fr}
    .client-report-advice-card,.client-report-choice-reason-block{min-height:0}
    .client-cost-overview-head{flex-direction:column}
    .client-cost-total{width:100%;box-sizing:border-box;text-align:left}
    .client-cost-line-value{justify-items:start;text-align:left}
    .client-cost-line{align-items:flex-start;flex-direction:column;gap:6px}
}

/* MVP 7.7.9g7.4.2d — commercial report agreement vs. internal report setup */
.commercial-generation-contract {
    margin: 18px 0 20px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(87, 103, 224, .18);
    background: linear-gradient(135deg, rgba(245, 247, 255, .96), rgba(251, 248, 255, .96));
    box-shadow: 0 12px 30px rgba(32, 46, 90, .07);
}
.commercial-generation-contract.is-confirmed {
    border-color: rgba(31, 153, 112, .2);
    background: linear-gradient(135deg, rgba(244, 252, 249, .98), rgba(246, 248, 255, .98));
}
.commercial-generation-contract-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.commercial-generation-contract-head div { display: grid; gap: 3px; }
.commercial-generation-contract-head small {
    color: #65708a;
    font-size: .78rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.commercial-generation-contract-head strong { color: #19243f; font-size: 1.02rem; }
.commercial-generation-contract-head a { font-weight: 750; font-size: .87rem; white-space: nowrap; }
.commercial-generation-contract > p { margin: 11px 0 0; color: #5f6980; line-height: 1.55; }
.commercial-scope-warning {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 247, 229, .9);
    border: 1px solid rgba(223, 155, 44, .25);
}
.commercial-scope-warning strong { color: #8b5b0a; }
.commercial-scope-warning p { margin: 5px 0 8px; color: #705c38; }
.commercial-scope-warning ul { margin: 0; padding-left: 20px; color: #705c38; font-size: .88rem; }
.commercial-override-box {
    margin: 16px 0 2px;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px dashed rgba(224, 147, 45, .4);
    background: rgba(255, 249, 238, .76);
    display: grid;
    gap: 12px;
}
.commercial-override-check {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    cursor: pointer;
}
.commercial-override-check input { margin-top: 3px; }
.commercial-override-check span { display: grid; gap: 2px; }
.commercial-override-check strong { color: #583f13; }
.commercial-override-check small { color: #7d6a49; line-height: 1.45; }
.commercial-override-box > label:not(.commercial-override-check) { display: grid; gap: 6px; color: #5c667d; font-size: .84rem; font-weight: 700; }
.commercial-override-box textarea {
    width: 100%;
    min-height: 66px;
    resize: vertical;
    border: 1px solid rgba(91, 105, 137, .22);
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}
.report-commercial-confirmed-copy small {
    display: block;
    margin-top: 5px;
    max-width: 680px;
    color: #667089;
    line-height: 1.45;
}
@media (max-width: 760px) {
    .commercial-generation-contract-head { flex-direction: column; }
    .commercial-generation-contract-head a { white-space: normal; }
}

/* MVP 7.7.9g7.4.2d.1 — restore contrast inside the light commercial agreement card */
.blvc-grid > .panel:first-child .commercial-generation-contract small {
    color: #65708a !important;
}
.blvc-grid > .panel:first-child .commercial-generation-contract strong {
    color: #19243f !important;
}
.blvc-grid > .panel:first-child .commercial-generation-contract > p {
    color: #5f6980 !important;
}
.blvc-grid > .panel:first-child .commercial-generation-contract-head a {
    color: #174d6c !important;
    text-decoration-color: rgba(23,77,108,.35);
}
.blvc-grid > .panel:first-child .commercial-generation-contract-head a:hover {
    color: #0f6d86 !important;
}
.blvc-grid > .panel:first-child .commercial-generation-contract .commercial-scope-warning strong {
    color: #8b5b0a !important;
}
.blvc-grid > .panel:first-child .commercial-generation-contract .commercial-scope-warning p,
.blvc-grid > .panel:first-child .commercial-generation-contract .commercial-scope-warning li {
    color: #705c38 !important;
}

/* MVP 7.7.9g8.2 — branding/template product experience polish */
.branding-product-card .branding-internal-note{margin-top:8px;padding:6px 9px;border-radius:9px;background:#eef5f8;color:#526e7c;font-size:.62rem;font-weight:700}
.template-workflow-progress{display:grid;grid-template-columns:minmax(150px,.55fr) minmax(0,1.45fr);gap:24px;align-items:center;padding:16px 28px;border-bottom:1px solid #e4edf1;background:linear-gradient(135deg,#f8fbfd,#f2f8fb 48%,#fbfaf4)}
.template-workflow-progress-copy{display:grid;gap:2px}.template-workflow-progress-copy .eyebrow{margin:0}.template-workflow-progress-copy strong{color:#173f5f;font-size:.82rem}
.template-workflow-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0;padding:0}.template-workflow-steps li{position:relative;display:flex;align-items:center;gap:8px;min-width:0;color:#81939d;font-size:.64rem;font-weight:800}.template-workflow-steps li:not(:last-child):after{content:"";position:absolute;left:31px;right:8px;top:13px;height:2px;background:#dce7eb;z-index:0}.template-workflow-step-dot{position:relative;z-index:1;flex:0 0 27px;width:27px;height:27px;display:grid;place-items:center;border:2px solid #d6e3e8;border-radius:50%;background:#fff;color:#78909b;font-size:.62rem;font-weight:900}.template-workflow-steps li.is-done{color:#44725b}.template-workflow-steps li.is-done .template-workflow-step-dot{border-color:#8fc3a3;background:#e8f6ed;color:#397054}.template-workflow-steps li.is-done:not(:last-child):after{background:linear-gradient(90deg,#8fc3a3,#b8d9c4)}.template-workflow-steps li.is-active{color:#245b78}.template-workflow-steps li.is-active .template-workflow-step-dot{border-color:#4b91b3;background:linear-gradient(145deg,#eaf7fc,#fff);color:#245b78;box-shadow:0 0 0 4px rgba(75,145,179,.11)}
.template-client-state-pill{display:inline-flex;align-items:center;width:max-content;margin:0 0 6px;padding:5px 9px;border-radius:999px;background:#eef4f7;color:#58717d;font-size:.55rem;font-weight:900;letter-spacing:.035em;text-transform:uppercase}.template-client-state-pill.needs-action{background:#fff0d7;color:#8d5b16}.template-client-state-pill.is-ready{background:#e5f5eb;color:#397052}.template-client-state-pill.is-waiting{background:#edf4f8;color:#456b7e}
.template-internal-analysis-label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 28px 10px}.template-internal-analysis-label .eyebrow{margin:0}.template-internal-analysis-label strong{color:#294f65;font-size:.72rem}.template-analysis-summary{padding-top:0}
.template-onboarding-step{background:linear-gradient(135deg,#edf6fa,#fff8eb);border:1px solid #d7e6ec;color:#2d607a}
.template-client-file-row{background:linear-gradient(120deg,#fbfdfe,#f7fbf9)}
.template-commercial-lock .eyebrow,.branding-commercial-locked-card .eyebrow{color:#7e5c21}
@media(max-width:900px){.template-workflow-progress{grid-template-columns:1fr;gap:12px}.template-workflow-steps{grid-template-columns:1fr 1fr;gap:10px 14px}.template-workflow-steps li:not(:last-child):after{display:none}}
@media(max-width:620px){.template-workflow-progress{padding:16px 20px}.template-workflow-steps{grid-template-columns:1fr}.template-workflow-steps li{font-size:.69rem}}

/* MVP 7.7.9g8.2.1 — legacy entitlement + template stepper polish */
.branding-product-status-stack{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.branding-existing-use-badge{display:inline-flex;align-items:center;min-height:30px;padding:5px 10px;border:1px solid #d6e4ea;border-radius:999px;background:#f4f8fa;color:#526f7d;font-size:.68rem;font-weight:800;line-height:1.2;white-space:nowrap}
.template-workflow-progress{grid-template-columns:minmax(155px,.5fr) minmax(0,1.5fr)}
.template-workflow-steps{align-items:stretch;gap:10px}
.template-workflow-steps li{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:10px;min-height:42px;padding:6px 12px 6px 8px;border:1px solid #dfe8ed;border-radius:13px;background:#fff;color:#758b96;font-size:.66rem;font-weight:800;line-height:1.25;z-index:1}
.template-workflow-steps li>span:last-child{display:flex;align-items:center;justify-content:center;min-height:28px;width:100%;text-align:center;line-height:1.2}
.template-workflow-steps li:not(:last-child):after{content:"";position:absolute;left:100%;right:auto;top:50%;width:10px;height:2px;transform:translateY(-50%);background:#dce7eb;z-index:-1}
.template-workflow-step-dot{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;flex:none;width:27px;height:27px;line-height:1;text-align:center}
.template-workflow-steps li.is-done{border-color:#cfe2d6;background:#f7fcf8;color:#44725b}
.template-workflow-steps li.is-done:not(:last-child):after{background:#a8cfb7}
.template-workflow-steps li.is-active{border-color:#8fc2d8;background:linear-gradient(145deg,#f2fbfe,#fff);color:#245b78;box-shadow:0 8px 20px rgba(56,126,157,.08)}
@media(max-width:900px){.template-workflow-steps{gap:10px 14px}.template-workflow-steps li:not(:last-child):after{display:none}}
@media(max-width:680px){.branding-product-status-stack{align-items:flex-start;flex-direction:column}.branding-existing-use-badge{white-space:normal}}


/* MVP 7.7.9g8.3 — dashboard hierarchy + responsive cleanup */
.portfolio-project-panel + .portfolio-settings-launcher{margin-top:18px}
.portfolio-settings-launcher{padding:12px 14px;box-shadow:0 6px 18px rgba(35,70,91,.045);background:linear-gradient(135deg,#fbfdfd,#f7fafb 62%,#f8f6fb)}
.portfolio-settings-launcher-icon{width:38px;height:38px;border-radius:12px}
.portfolio-settings-launcher h2{font-size:.84rem}
.portfolio-settings-launcher-copy p:last-child{font-size:.55rem}
.client-report-choice-project-overview{margin-top:14px}
.client-report-choice-project-overview + .client-cost-overview{margin-top:14px}
@media(max-width:760px){
  .portfolio-settings-launcher{gap:12px;padding:12px}
  .portfolio-settings-launcher-copy{align-items:flex-start}
  .portfolio-settings-launcher-icon{width:36px;height:36px}
}

/* MVP 7.7.10c — internal UX acceptance: product access + version provenance */
.branding-product-action{min-height:58px;align-items:center}
.branding-product-access-state{display:flex;align-items:center;gap:9px;min-width:0;color:#274f64}
.branding-product-state-dot{flex:0 0 9px;width:9px;height:9px;border-radius:50%;background:#9eb0b8;box-shadow:0 0 0 4px rgba(117,143,155,.10)}
.branding-product-state-dot.is-ready{background:#4c9870;box-shadow:0 0 0 4px rgba(76,152,112,.11)}
.branding-product-access-state>div{display:grid;gap:2px;min-width:0}
.branding-product-access-state strong{color:#2f704c;font-size:.73rem;line-height:1.2}
.branding-product-access-state small{margin:0;color:#718690;font-size:.59rem;line-height:1.3}
.branding-product-admin-action{margin-left:auto!important}
.branding-product-secondary-action{min-width:132px;min-height:36px!important;padding:7px 11px!important;border-radius:10px!important;font-size:.7rem!important}
.history-generation-contract{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:7px;max-width:650px}
.history-generation-contract>span{display:grid;gap:1px;padding:6px 8px;border:1px solid #e0e9ed;border-radius:8px;background:#f8fbfc;min-width:0}
.history-generation-contract small{color:#7a8f99;font-size:.47rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
.history-generation-contract strong{color:#31596f;font-size:.58rem;line-height:1.3}
.history-generation-contract em{overflow:hidden;color:#70838c;font-size:.5rem;font-style:normal;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:680px){.branding-product-admin-action{margin-left:0!important;width:100%}.branding-product-admin-action .branding-product-secondary-action{width:100%}.history-generation-contract{grid-template-columns:1fr}}

/* =============================================================
   MVP 7.7.10d.1 — client template review note alignment hotfix
   ============================================================= */
/* Use a two-column grid and optical glyph correction so the explanatory
   arrow sits on the visual centreline of the accompanying copy. */
.template-structure-review-structure-note{
    display:grid!important;
    grid-template-columns:22px minmax(0,1fr);
    column-gap:8px!important;
    align-items:center!important;
}
.template-structure-review-structure-note>span{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:22px!important;
    height:22px!important;
    align-self:center!important;
    line-height:1!important;
    transform:translateY(-2px)!important;
}
.template-structure-review-structure-note small{
    align-self:center!important;
    margin:0!important;
}


/* =============================================================
   MVP 7.7.10e — responsive, accessibility, focus & disclosure polish
   ============================================================= */
/* One predictable keyboard focus language across the portal. */
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
    outline:3px solid rgba(38,106,242,.34)!important;
    outline-offset:3px!important;
}
:where(input,select,textarea):focus-visible{
    border-color:#4b91b3!important;
    box-shadow:0 0 0 3px rgba(38,106,242,.10)!important;
}
:where(summary){border-radius:8px}
.project-primary-tabs a[aria-current="page"],
.project-more-popover a[aria-current="page"]{
    text-decoration:none;
}
/* Touch targets stay usable without visually inflating desktop controls. */
@media (pointer:coarse){
    :where(button,.button,.button-link,.download-button,.tab,summary){min-height:44px}
    :where(input[type="checkbox"],input[type="radio"]){min-width:18px;min-height:18px}
}
/* Reduce decorative motion when the OS asks for it. */
@media (prefers-reduced-motion:reduce){
    *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
/* Header and project navigation remain usable on narrow screens. */
@media(max-width:760px){
    .blvc-header-inner{height:auto!important;min-height:58px!important;padding-top:8px!important;padding-bottom:8px!important;gap:8px}
    .blvc-brand-copy small{display:none}
    .portal-header-actions{max-width:58%;gap:5px}
    .view-switch{max-width:100%;box-sizing:border-box}
    .blvc-version-badge{font-size:.58rem}
    .project-primary-tabs{align-items:stretch!important}
    .viewer-internal .project-primary-tabs>.tab,
    .viewer-client .project-primary-tabs>.tab,
    .project-more-summary{display:flex!important;align-items:center!important;justify-content:center!important;min-height:42px;box-sizing:border-box;text-align:center;white-space:normal!important;line-height:1.2}
    .project-more-popover a{min-height:42px}
    .history-lineage-row{grid-template-columns:46px minmax(0,1fr)}
    .history-lineage-actions{grid-column:1/-1;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));justify-items:stretch;min-width:0}
    .history-lineage-actions a,.history-lineage-actions form,.history-lineage-actions button{width:100%;box-sizing:border-box;text-align:center}
}
@media(max-width:520px){
    .blvc-brand-divider,.blvc-brand-copy{display:none}
    .portal-header-actions{max-width:68%}
    .view-option{padding:6px 8px}
    .client-preview-banner .container{align-items:flex-start;flex-direction:column;gap:2px}
    .viewer-internal .project-primary-tabs>.tab{flex:1 1 calc(50% - 6px)}
    .project-more-menu{flex-basis:100%}
    .app-confirm-shell{padding:18px!important}
    .app-confirm-actions{align-items:stretch!important;flex-direction:column-reverse!important}
    .app-confirm-actions button{width:100%}
}

/* =============================================================
   MVP 7.7.10e.1 — narrow-screen document/product/review hotfix
   Keep complex two-column workspaces readable on phone widths.
   ============================================================= */
@media(max-width:960px){
    /* This rule intentionally comes after the refined review breakpoint:
       later .review-workspace-refined declarations must not reintroduce
       the desktop two-column layout on tablets/phones. */
    .review-workspace.review-workspace-refined,
    .viewer-client .review-workspace-refined,
    .viewer-internal .review-workspace-refined{
        grid-template-columns:minmax(0,1fr)!important;
        gap:16px!important;
    }
    .review-document-panel,
    .review-feedback-panel{
        min-width:0!important;
        width:100%!important;
        box-sizing:border-box;
    }
    .review-feedback-panel{
        position:static!important;
        top:auto!important;
    }

    /* portal-documents-grid is declared after the generic documents mobile
       breakpoint in older CSS; force a single-column workspace here. */
    .documents-grid.portal-documents-grid{
        grid-template-columns:minmax(0,1fr)!important;
        gap:16px!important;
    }
    .document-library-panel,
    .portal-upload-panel{
        min-width:0!important;
        width:100%!important;
        box-sizing:border-box;
    }
}

@media(max-width:650px){
    /* Never let filenames, controls or upload content widen the document card. */
    .modern-document-list .document-row{
        grid-template-columns:38px minmax(0,1fr)!important;
        gap:10px!important;
        min-width:0;
    }
    .modern-document-list .document-info,
    .modern-document-list .document-title-line{
        min-width:0;
        max-width:100%;
    }
    .modern-document-list .document-title-line{
        align-items:flex-start;
        flex-direction:column;
        gap:5px;
    }
    .modern-document-list .document-info strong,
    .modern-document-list .document-title-line strong{
        overflow-wrap:anywhere;
        word-break:break-word;
    }
    .portal-upload-panel .file-drop,
    .portal-upload-panel .client-file-drop{
        min-width:0;
        padding:16px!important;
        box-sizing:border-box;
    }
    .portal-upload-panel input[type="file"]{
        max-width:100%;
        min-width:0;
        overflow:hidden;
    }

    /* Give the latest-version label and version metadata their own rhythm. */
    .artifact-family-card{
        min-width:0;
        padding:16px!important;
    }
    .artifact-family-heading,
    .artifact-family-title,
    .artifact-title-line{
        min-width:0;
    }
    .artifact-title-line h2{
        overflow-wrap:anywhere;
    }
    .artifact-latest-badge{
        margin-top:7px!important;
        margin-bottom:9px!important;
    }
    .artifact-current-meta{
        margin-top:0!important;
        row-gap:8px!important;
    }
    .artifact-current-actions{
        min-width:0;
    }
    .artifact-current-actions>a,
    .artifact-current-actions>form,
    .artifact-current-actions>form>button{
        max-width:100%;
        box-sizing:border-box;
    }

    /* The document reader should remain a readable full-width card instead
       of being squeezed beside the feedback inbox. */
    .review-workspace.review-workspace-refined{
        margin-top:14px!important;
        gap:14px!important;
    }
    .review-document-panel,
    .review-feedback-panel{
        padding:16px!important;
        border-radius:17px!important;
    }
    .review-reader-page{
        min-width:0!important;
        width:auto!important;
        max-width:none!important;
        margin:10px 0!important;
        padding:20px 15px 28px!important;
        box-sizing:border-box;
    }
    .review-document-reader,
    .review-reader-topbar,
    .review-reader-navigation,
    .review-reader-status{
        min-width:0!important;
        max-width:100%!important;
        box-sizing:border-box;
    }
    .review-reader-table-wrap{
        max-width:100%;
        overflow-x:auto;
    }
    .review-feedback-heading{
        align-items:flex-start;
        flex-direction:column;
    }
    .review-count-badge{
        align-self:flex-start;
    }
}

/* MVP 7.7.10f.1 — calmer BLVC generation panel */
.blvc-grid > .panel:first-child .blvc-ready-compact{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:13px 15px!important;
}
.blvc-grid > .panel:first-child .blvc-ready-compact p{margin:0!important;font-size:.78rem!important;line-height:1.45}
.blvc-agreement-compact{padding:14px 16px;margin:15px 0 17px}
.blvc-agreement-compact .commercial-generation-contract-head{align-items:center}
.blvc-agreement-compact .commercial-generation-contract-head small{font-size:.66rem!important}
.blvc-agreement-compact .commercial-generation-contract-head strong{font-size:.88rem!important}
.blvc-agreement-compact .commercial-generation-contract-head a{font-size:.74rem!important}
.blvc-generate-form-refined{display:grid;gap:6px}
.blvc-generate-form-heading{display:grid;gap:3px;margin:1px 0 5px}
.blvc-grid > .panel:first-child .blvc-generate-form-heading .eyebrow{margin:0;color:rgba(235,247,252,.78)!important;font-size:.63rem!important}
.blvc-grid > .panel:first-child .blvc-generate-form-heading p{margin:0!important;font-size:.73rem!important;line-height:1.45;color:rgba(234,247,252,.65)!important}
.blvc-generate-form-refined .field-label{margin-top:9px}
.blvc-generate-form-refined .blvc-report-style-help{margin-top:5px;padding:9px 12px!important;border-radius:11px!important}
.blvc-generate-form-refined .blvc-report-style-help span{font-size:.69rem!important;line-height:1.45!important}
.blvc-custom-template-note-compact{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px!important;margin-top:7px!important}
.blvc-grid > .panel:first-child .blvc-custom-template-note-compact span{font-size:.7rem!important;line-height:1.4}
.blvc-custom-template-note-compact a{white-space:nowrap;font-size:.7rem!important}
.blvc-generate-form-refined > button[type="submit"]{margin-top:10px;width:max-content;min-width:230px}
.blvc-generation-footnote{margin:6px 0 0!important}
@media(max-width:760px){
  .blvc-grid > .panel:first-child .blvc-ready-compact{align-items:flex-start;flex-direction:column;gap:4px}
  .blvc-custom-template-note-compact{align-items:flex-start;flex-direction:column}
  .blvc-generate-form-refined > button[type="submit"]{width:100%;min-width:0}
}


/* MVP 7.7.11c — document delen / terugroepen */
.document-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.document-row-actions form{margin:0}
.document-access-action{background:#edf5f8;color:#275f7a;border:1px solid #d2e3ea}
.document-access-action:hover{background:#e1eef3;color:#214f66}
.document-download-action{background:#f6f8f9;color:#506874;border:1px solid #e0e7ea}
.document-download-action:hover{background:#edf2f4;color:#344f5c}
@media(max-width:760px){
  .modern-document-list .document-row-actions{grid-column:1/-1;justify-content:flex-start;width:100%}
  .modern-document-list .document-row-actions>*{flex:1 1 auto}
  .modern-document-list .document-row-actions button,
  .modern-document-list .document-row-actions .button-link{width:100%;box-sizing:border-box}
}


/* MVP 7.7.11c.1 — calmer document upload panel + robust file selection label */
.viewer-internal .portal-upload-panel,
.viewer-client .portal-upload-panel {
    color:#173f5d;
    border-color:#b9d2df!important;
    background:
        radial-gradient(circle at 100% 0,rgba(73,167,200,.10),transparent 34%),
        radial-gradient(circle at 10% 110%,rgba(242,140,40,.08),transparent 34%),
        linear-gradient(150deg,#f7fcff,#eaf4f8)!important;
    box-shadow:0 18px 38px rgba(20,60,84,.10)!important;
}
.portal-upload-panel .eyebrow {color:#1d5f82!important}
.portal-upload-panel h2 {color:#173f5d!important}
.portal-upload-panel .muted,
.portal-upload-panel .small,
.portal-upload-panel .tiny,
.portal-upload-panel .upload-note {color:#657f8d!important}
.portal-upload-panel .portal-card-icon {
    background:linear-gradient(145deg,#2c7da4,#1f5d7d)!important;
    color:#fff!important;
    border:0;
    box-shadow:0 8px 18px rgba(31,93,125,.16);
}
.portal-upload-panel .file-drop,
.portal-upload-panel .client-file-drop {
    position:relative;
    display:grid;
    gap:6px;
    border:1.5px dashed #8fb7c9!important;
    background:rgba(255,255,255,.72)!important;
    background-size:auto!important;
    color:#173f5d;
    transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
.portal-upload-panel .file-drop:hover,
.portal-upload-panel .client-file-drop:hover {
    border-color:#4d91ad!important;
    background:#fff!important;
    box-shadow:0 8px 18px rgba(24,78,105,.06);
}
.portal-upload-panel .file-drop-title {color:#1f5d7d!important}
.portal-upload-panel .document-file-picker input[type="file"] {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    opacity:0;
    cursor:pointer;
}
.portal-upload-panel .file-selection-status {
    display:block;
    min-width:0;
    margin-top:4px;
    padding:8px 10px;
    border-radius:9px;
    background:#edf5f8;
    color:#4d6d7d;
    font-size:.62rem;
    font-weight:750;
    line-height:1.35;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.portal-upload-panel .document-file-picker.has-selection .file-selection-status {
    background:#eaf5ee;
    color:#397154;
}
.portal-upload-panel button {
    background:linear-gradient(135deg,#205b7d,#174565);
    color:#fff;
    box-shadow:0 9px 18px rgba(23,69,101,.16);
}
.portal-upload-panel button:hover {background:linear-gradient(135deg,#286b8e,#16405e)}
.portal-upload-panel .permission-banner {
    border-color:#c8dce5;
    background:rgba(255,255,255,.76);
}
.portal-upload-panel .permission-banner strong {color:#24475c!important}
.portal-upload-panel .permission-banner p {color:#667b88!important}
.portal-upload-panel .permission-banner.approved {background:#f3faf6}
.portal-upload-panel .permission-banner.waiting {background:#fff9ee}
@media(max-width:650px){
    .portal-upload-panel .file-selection-status{
        white-space:normal;
        overflow-wrap:anywhere;
        text-overflow:clip;
    }
}

/* MVP 7.7.11c.2 — extended project file types */
.project-file-capability{
    display:inline-flex;
    align-items:center;
    width:max-content;
    max-width:100%;
    margin-top:5px;
    padding:3px 7px;
    border-radius:999px;
    font-size:.55rem;
    font-weight:800;
    line-height:1.25;
}
.project-file-capability.is-readable{
    background:#eaf6ef;
    border:1px solid #cfe6d8;
    color:#397154;
}
.project-file-capability.is-stored{
    background:#eef4f7;
    border:1px solid #d7e3e8;
    color:#58717f;
}
@media(max-width:650px){
    .project-file-capability{white-space:normal}
}


/* MVP 7.7.11c.3 — consistent document status badges */
.document-title-line{align-items:flex-start;flex-wrap:wrap}
.document-status-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:5px 0 3px}
.document-status-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:132px;min-height:24px;padding:4px 10px;box-sizing:border-box;border-radius:999px;border:1px solid #d5e3ea;font-size:.55rem;font-weight:800;line-height:1;white-space:nowrap;text-align:center}
.document-status-badge.is-shared{background:#eaf6ef;color:#357054;border-color:#cbe4d5}
.document-status-badge.is-internal{background:#f1f5f7;color:#607681;border-color:#dbe4e8}
.document-status-badge.is-supporting{background:#f5f8fa;color:#5f7481;border-color:#d9e4e9}
.client-upload-badge{white-space:nowrap}
.project-file-capability{opacity:.88;font-weight:760}
@media(max-width:650px){
    .document-status-badges{gap:6px}
    .document-status-badge{min-width:0;width:max-content;max-width:100%}
}

/* MVP 7.7.11c.4 — keep product/review actions aligned after sharing */
.artifact-review-start-form,
.artifact-client-visibility-action{
    flex:0 0 auto;
    margin:0;
    align-self:flex-end;
}
.artifact-review-button,
.artifact-client-visibility-action>button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    height:44px;
    box-sizing:border-box;
    white-space:nowrap;
    line-height:1;
}
.artifact-client-visibility-action>button{
    min-width:max-content;
}
@media(max-width:900px){
    .artifact-review-start-form,
    .artifact-client-visibility-action{
        align-self:stretch;
    }
    .artifact-review-button,
    .artifact-client-visibility-action>button{
        width:100%;
    }
}

/* MVP 7.7.11c.5 — product action baseline + calm badge hierarchy */
.artifact-current-meta{
    display:flex;
    align-items:center;
    gap:7px!important;
    margin-top:2px;
}
.artifact-current-meta > span + span:before{
    content:none!important;
    margin:0!important;
}
.artifact-meta-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:22px;
    padding:3px 8px;
    box-sizing:border-box;
    border-radius:999px;
    white-space:nowrap;
    font-size:.56rem;
    font-weight:820;
    line-height:1;
}
.artifact-version-chip{
    background:#163b5c!important;
    color:#fff!important;
    border:1px solid #163b5c;
}
.artifact-status-chip{
    background:#edf3f6;
    color:#526f7f;
    border:1px solid #dbe5ea;
}
.artifact-visibility-chip.is-shared{
    background:#eaf6ef;
    color:#357054;
    border:1px solid #cbe4d5;
}
.artifact-visibility-chip.is-internal{
    background:#f2f5f7;
    color:#607681;
    border:1px solid #dce5e9;
}
.artifact-meta-date{
    color:#748692;
    font-size:.59rem;
    white-space:nowrap;
}
.artifact-latest-badge{
    min-height:24px;
    padding:4px 9px!important;
    box-sizing:border-box;
    line-height:1!important;
}

/* Download/review are deliberately quiet text actions, but share one baseline. */
.artifact-current-actions > a.artifact-download-button,
.artifact-current-actions > a.artifact-review-button{
    display:inline-flex!important;
    align-items:center!important;
    align-self:flex-end!important;
    min-height:44px!important;
    height:44px!important;
    padding:0!important;
    box-sizing:border-box!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#203f55!important;
    font-size:.78rem!important;
    font-weight:500!important;
    line-height:1.2!important;
    text-decoration:underline!important;
    white-space:nowrap;
}
.artifact-current-actions > a.artifact-download-button:hover,
.artifact-current-actions > a.artifact-review-button:hover{
    color:#0f5c82!important;
    background:transparent!important;
}
@media(max-width:900px){
    .artifact-current-actions > a.artifact-download-button,
    .artifact-current-actions > a.artifact-review-button{
        align-self:flex-start!important;
        width:auto!important;
        min-height:38px!important;
        height:38px!important;
        justify-content:flex-start!important;
    }
}
@media(max-width:650px){
    .artifact-current-meta{align-items:flex-start}
    .artifact-meta-date{flex-basis:100%;margin-top:1px}
}

/* MVP 7.7.11c.6 — unify document status badges on Documents page */


/* MVP 7.7.11d — document feedback and empty states */
.document-page-feedback{display:grid;gap:9px;margin-bottom:14px}
.document-page-feedback:empty{display:none}
.document-feedback{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid;border-radius:13px;background:#fff;box-shadow:0 8px 20px rgba(27,65,87,.05)}
.document-feedback>span{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:8px;font-size:.78rem;font-weight:900}
.document-feedback strong{display:block;margin:1px 0 2px;font-size:.76rem}
.document-feedback p{margin:0;font-size:.68rem;line-height:1.45}
.document-feedback.is-success{border-color:#c9e2d1;background:#f5fbf7;color:#315f42}
.document-feedback.is-success>span{background:#dff1e5;color:#327049}
.document-feedback.is-warning{border-color:#ead7ad;background:#fffaf0;color:#74571e}
.document-feedback.is-warning>span{background:#f8e9c6;color:#8a6214}
.document-feedback.is-error{border-color:#e6c2c2;background:#fff7f7;color:#7a3737}
.document-feedback.is-error>span{background:#f5dddd;color:#8a3e3e}
.document-empty-state{display:flex;align-items:flex-start;gap:12px;text-align:left}
.document-empty-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#e8f3f8;color:#236786;font-weight:900;font-size:1rem}
.document-empty-state h3{margin:1px 0 4px}
.document-empty-state p{margin:0!important;max-width:560px}
@media(max-width:650px){.document-feedback{padding:11px 12px}.document-feedback p{font-size:.66rem}}

/* MVP 8.5 — Project Knowledge search workspace */
.knowledge-module-icon{display:grid!important;place-items:center}.knowledge-module-icon .ui-icon{width:22px;height:22px}
.knowledge-feedback{display:grid;gap:9px;margin:0 0 14px}.knowledge-feedback:empty{display:none}
.knowledge-hero-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.7fr);gap:16px;margin:18px 0}
.knowledge-search-panel,.knowledge-status-panel,.knowledge-results-panel,.knowledge-sources-panel{border:1px solid #dce7ec;box-shadow:0 12px 30px rgba(28,66,88,.06)}
.knowledge-search-panel{padding:24px;background:linear-gradient(145deg,#f8fcfe,#eef7fb 58%,#f7fbfd)}
.knowledge-search-heading,.knowledge-results-heading,.knowledge-status-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.knowledge-search-heading h2,.knowledge-status-head h2,.knowledge-results-heading h2{margin:2px 0 5px}
.knowledge-provider-badge{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border:1px solid #cfe0e8;border-radius:999px;background:rgba(255,255,255,.8);color:#58717f;font-size:.58rem;font-weight:800;white-space:nowrap}
.knowledge-search-form{margin-top:22px}.knowledge-search-form>label{display:block;margin-bottom:7px;color:#35566b;font-size:.66rem;font-weight:800}
.knowledge-search-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:6px;border:1px solid #bfd4df;border-radius:14px;background:#fff;box-shadow:0 8px 18px rgba(26,70,95,.06)}
.knowledge-search-control input{min-width:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:11px 12px!important;font-size:.83rem}.knowledge-search-control button{min-width:104px;border-radius:10px}
.knowledge-status-panel{padding:20px;background:#fff}.knowledge-status-ring{display:grid;place-items:center;min-width:54px;height:38px;padding:0 9px;border-radius:12px;background:#e9f4f8;color:#245f7a;font-size:.76rem;font-weight:900}
.knowledge-stats{display:grid;gap:0;margin:14px 0 16px}.knowledge-stats>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #edf2f4}.knowledge-stats dt{font-size:.66rem;color:#647c89}.knowledge-stats dd{margin:0;font-size:.76rem;font-weight:850;color:#24475c}.knowledge-index-button{width:100%}
.knowledge-search-error{margin:14px 0;padding:14px 16px;border:1px solid #e6c2c2;border-radius:13px;background:#fff7f7;color:#7a3737}.knowledge-search-error strong{display:block;font-size:.76rem}.knowledge-search-error p{margin:4px 0 0;font-size:.68rem}
.knowledge-results-panel,.knowledge-sources-panel{padding:22px;margin:16px 0}.knowledge-results-heading>span{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:999px;background:#edf4f7;color:#58717f;font-size:.61rem;font-weight:800;white-space:nowrap}
.knowledge-result-list{display:grid;gap:12px;margin-top:18px}.knowledge-result-card{padding:16px;border:1px solid #dce7ec;border-radius:14px;background:linear-gradient(180deg,#fff,#fbfdfe)}
.knowledge-result-topline,.knowledge-result-actions,.knowledge-source-line{display:flex;align-items:center}.knowledge-result-topline{justify-content:space-between;gap:14px}.knowledge-source-line{gap:10px;min-width:0}.knowledge-source-line>div{min-width:0}.knowledge-source-line strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#24475c;font-size:.72rem}.knowledge-source-line small{display:block;margin-top:2px;color:#718590;font-size:.59rem}.knowledge-source-icon{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:10px;background:#eaf4f8;color:#2e6680;font-size:.52rem;font-weight:900}
.knowledge-score{flex:0 0 auto;padding:4px 8px;border-radius:999px;background:#eef7f1;color:#3b7152;font-size:.55rem;font-weight:850}.knowledge-result-text{margin:14px 0;color:#35505f;font-size:.74rem;line-height:1.62;white-space:pre-line}.knowledge-result-actions{justify-content:space-between;gap:12px;padding-top:10px;border-top:1px solid #edf2f4;font-size:.58rem}.knowledge-result-actions a{color:#1f607f;font-weight:800}.knowledge-result-actions span{color:#84949d}
.knowledge-source-table{display:grid;margin-top:16px;border:1px solid #e0e9ed;border-radius:14px;overflow:hidden}.knowledge-source-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;background:#fff;border-bottom:1px solid #edf2f4}.knowledge-source-row:last-child{border-bottom:0}.knowledge-source-copy{min-width:0}.knowledge-source-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#29495d;font-size:.7rem}.knowledge-source-copy small{display:block;margin-top:3px;color:#7a8d98;font-size:.58rem}.knowledge-source-state{display:flex;justify-content:flex-end}.knowledge-state-pill{display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:4px 8px;border-radius:999px;font-size:.55rem;font-weight:850;white-space:nowrap}.knowledge-state-pill.is-ready{background:#eaf6ef;color:#357054;border:1px solid #cbe4d5}.knowledge-state-pill.is-waiting{background:#fff7e8;color:#80611d;border:1px solid #ead7a8}.knowledge-state-pill.is-muted{background:#f1f5f7;color:#647985;border:1px solid #dce5e9}.knowledge-state-pill.is-error{background:#fff0f0;color:#814141;border:1px solid #e7c6c6}
@media(max-width:900px){.knowledge-hero-grid{grid-template-columns:1fr}.knowledge-search-heading{flex-direction:column}.knowledge-provider-badge{white-space:normal}.knowledge-source-row{grid-template-columns:38px minmax(0,1fr)}.knowledge-source-state{grid-column:2;justify-content:flex-start}}
@media(max-width:650px){.knowledge-search-panel,.knowledge-status-panel,.knowledge-results-panel,.knowledge-sources-panel{padding:16px}.knowledge-search-control{grid-template-columns:1fr}.knowledge-search-control button{width:100%}.knowledge-results-heading{flex-direction:column}.knowledge-result-topline{align-items:flex-start;flex-direction:column}.knowledge-source-line{width:100%}.knowledge-result-actions{align-items:flex-start;flex-direction:column}.knowledge-source-copy strong{white-space:normal;overflow-wrap:anywhere}}

/* === MVP 8.5.1 · Project Impact Engine product surface ==================== */
.impact-surface{background:#f3f6f8;color:#183044;min-height:100vh}
.impact-surface .impact-page-content{max-width:1260px;padding-top:34px;padding-bottom:70px}
.impact-header{background:linear-gradient(135deg,#10283c 0%,#173f59 58%,#245a68 100%);color:#fff;box-shadow:0 8px 28px rgba(18,44,62,.16);position:relative}
.impact-topline{height:4px;background:linear-gradient(90deg,#ec8f42,#e8c35a,#74b6a5)}
.impact-header-inner{min-height:86px;display:flex;align-items:center;gap:28px}
.impact-brand{display:flex;align-items:center;gap:13px;color:#fff;text-decoration:none;margin-right:auto}
.impact-brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(145deg,#fff,#dcebef);color:#173d56;font-weight:850;letter-spacing:-.04em;box-shadow:0 5px 18px rgba(0,0,0,.16)}
.impact-brand>span:last-child{display:flex;flex-direction:column;line-height:1.1}.impact-brand strong{font-size:16px}.impact-brand small{font-size:11px;color:#bfd0d8;margin-top:5px;font-weight:600}
.impact-main-nav{display:flex;align-items:center;gap:5px;padding:5px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:13px}
.impact-main-nav a{padding:9px 12px;border-radius:9px;color:#dce8ec;text-decoration:none;font-size:13px;font-weight:750;transition:.15s ease}
.impact-main-nav a:hover,.impact-main-nav a.active{background:#fff;color:#173d56}.impact-main-nav .impact-nav-external{color:#ffd6a9}
.impact-version-badge{font-size:11px;font-weight:800;white-space:nowrap;color:#d8e6eb;border:1px solid rgba(255,255,255,.19);background:rgba(255,255,255,.06);padding:7px 10px;border-radius:999px}
.impact-back-link{display:inline-flex;margin-bottom:17px;color:#526d7b;text-decoration:none;font-size:13px;font-weight:750}.impact-back-link:hover{color:#193e55}

.impact-hero{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;min-height:230px;padding:42px 46px;border-radius:28px;background:linear-gradient(125deg,#e9f1f2 0%,#f8f3e9 55%,#f4f8f7 100%);border:1px solid #e1e9e8;box-shadow:0 15px 42px rgba(21,50,67,.08)}
.impact-hero>div:first-child{max-width:720px;position:relative;z-index:2}.impact-hero h1,.projectkenner-hero h1{font-size:clamp(30px,4vw,46px);letter-spacing:-.035em;line-height:1.05;margin:7px 0 14px;color:#15384f}.impact-hero p:not(.eyebrow),.projectkenner-hero>div>p:not(.eyebrow){font-size:17px;line-height:1.62;color:#536b78;margin:0;max-width:700px}
/* MVP 8.11.3.1 — abstract hero artwork for Project Impact Engine */
.impact-hero-orbit{position:relative;flex:0 0 230px;width:230px;height:190px;isolation:isolate}
.impact-hero-glow,.impact-hero-ring,.impact-hero-node,.impact-hero-line,.impact-hero-core{position:absolute;display:block;pointer-events:none}
.impact-hero-glow{border-radius:50%;filter:blur(.2px)}
.impact-hero-glow-one{inset:8px 18px 18px 52px;background:radial-gradient(circle at 48% 44%,rgba(255,236,0,.22),rgba(255,236,0,.08) 55%,transparent 72%)}
.impact-hero-glow-two{inset:22px 80px 28px 8px;background:radial-gradient(circle at 40% 42%,rgba(74,192,224,.24),rgba(74,192,224,.08) 58%,transparent 76%)}
.impact-hero-ring{border-radius:50%;border:1px solid rgba(89,89,89,.14)}
.impact-hero-ring-one{inset:18px 26px 20px 82px}
.impact-hero-ring-two{inset:34px 10px 40px 112px;border-color:rgba(74,192,224,.18);transform:rotate(16deg)}
.impact-hero-ring-three{inset:48px 48px 12px 122px;border-style:dashed;border-color:rgba(255,176,0,.24);transform:rotate(-22deg)}
.impact-hero-node{width:26px;height:26px;border-radius:10px;box-shadow:0 10px 24px rgba(28,63,77,.14),inset 0 1px 0 rgba(255,255,255,.35)}
.impact-hero-node-one{left:118px;top:28px;background:linear-gradient(145deg,#effcff,#4AC0E0)}
.impact-hero-node-two{right:24px;top:72px;background:linear-gradient(145deg,#fff9c7,#FFEC00)}
.impact-hero-node-three{right:72px;bottom:18px;background:linear-gradient(145deg,#8f8f8f,#595959)}
.impact-hero-node-four{left:150px;bottom:34px;width:14px;height:14px;border-radius:50%;background:linear-gradient(145deg,#eef8f2,#8dc6b1);box-shadow:0 7px 14px rgba(28,63,77,.12)}
.impact-hero-line{height:1px;background:linear-gradient(90deg,transparent,rgba(35,90,117,.22),transparent);transform-origin:left center}
.impact-hero-line-one{left:138px;top:58px;width:76px;transform:rotate(19deg)}
.impact-hero-line-two{left:142px;bottom:53px;width:62px;transform:rotate(-30deg)}
.impact-hero-core{left:78px;top:14px;width:118px;height:118px;border-radius:40px 54px 50px 44px;background:radial-gradient(circle at 35% 35%,rgba(255,255,255,.92),rgba(255,255,255,.34) 40%,transparent 41%),linear-gradient(145deg,rgba(255,255,255,.5),rgba(255,255,255,.08));border:1px solid rgba(255,255,255,.4);box-shadow:0 18px 38px rgba(34,65,81,.08)}
.impact-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:25px}.impact-tool-card{min-height:315px;display:flex;flex-direction:column;justify-content:space-between;padding:26px;border-radius:23px;background:#fff;border:1px solid #e2e8eb;color:inherit;text-decoration:none;box-shadow:0 8px 24px rgba(25,52,68,.06);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.impact-tool-card[href]:hover{transform:translateY(-3px);box-shadow:0 17px 36px rgba(25,52,68,.11);border-color:#c9d9de}.impact-tool-card-top,.impact-tool-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.impact-tool-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;font-weight:850;font-size:19px}.impact-tool-blvc .impact-tool-icon{background:#e8f1f5;color:#174b69}.impact-tool-knowledge .impact-tool-icon{background:#e9f4ef;color:#286b5b}.impact-tool-upcoming .impact-tool-icon{background:#f2efe8;color:#77633d}.impact-tool-state{padding:6px 9px;border-radius:999px;background:#eef7f2;color:#39745e;font-size:11px;font-weight:800}.impact-tool-state.muted-state{background:#f0f2f3;color:#77858c}.impact-tool-card h2{font-size:25px;margin:7px 0 10px;color:#183d55}.impact-tool-card p:not(.eyebrow){color:#667984;line-height:1.55;margin:0}.impact-tool-meta{padding-top:18px;border-top:1px solid #edf0f1;font-size:12px;color:#7b8c95}.impact-tool-meta strong{color:#25526a}.impact-tool-upcoming{opacity:.78;background:#f8f9f9}.impact-platform-note{margin-top:20px;padding:19px 23px;border-radius:17px;background:#183d55;color:#edf6f7}.impact-platform-note>div{display:flex;align-items:center;gap:16px}.impact-note-icon{font-size:29px;color:#efb86d}.impact-platform-note strong{display:block}.impact-platform-note p{margin:3px 0 0;color:#bdd0d8;font-size:13px}

.projectkenner-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;padding:24px 0 27px;border-bottom:1px solid #dce5e8}.projectkenner-hero>div:first-child{max-width:800px}.projectkenner-hero-stats{display:flex;gap:10px}.projectkenner-hero-stats span{min-width:110px;padding:13px 15px;border-radius:15px;background:#fff;border:1px solid #e0e7e9;color:#768993;font-size:11px}.projectkenner-hero-stats strong{display:block;color:#21485e;font-size:22px;margin-bottom:2px}.projectkenner-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.7fr);gap:22px;margin-top:24px}.projectkenner-projects-panel,.projectkenner-create-panel{border-radius:22px}.impact-section-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.impact-section-heading h2{margin:3px 0 5px}.impact-section-heading p:not(.eyebrow){margin:0;color:#758791;font-size:13px}.impact-section-heading>a{font-size:12px;font-weight:750;color:#2e677d;text-decoration:none}.projectkenner-project-list{display:grid;gap:11px}.projectkenner-project-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 18px;border-radius:17px;border:1px solid #e2e9eb;background:#fbfcfc;text-decoration:none;color:inherit;transition:.15s ease}.projectkenner-project-card:hover{border-color:#bdcfd4;background:#fff;box-shadow:0 9px 20px rgba(29,55,70,.07)}.projectkenner-project-card-main{display:flex;align-items:center;min-width:0;gap:13px}.projectkenner-project-avatar{width:41px;height:41px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#d9ece7,#edf5f2);color:#316b5d;font-weight:850}.projectkenner-project-card small{font-size:10px;color:#8a9ba3;font-weight:750}.projectkenner-project-card h3{margin:2px 0;font-size:16px}.projectkenner-project-card p{margin:0;color:#7b8c94;font-size:12px}.projectkenner-project-metrics{display:flex;align-items:center;gap:7px;white-space:nowrap}.projectkenner-project-metrics span{padding:7px 9px;border-radius:9px;background:#eef3f5;color:#647a85;font-size:10px}.projectkenner-project-metrics b{color:#264f63}.projectkenner-project-metrics .ready{background:#e6f3ed;color:#36715d}.projectkenner-project-metrics .pending{background:#f6f1e4;color:#806b35}.projectkenner-create-panel{background:linear-gradient(160deg,#fff,#f5f8f7)}.projectkenner-create-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:14px;background:#e4f0ec;color:#337260;font-size:24px;font-weight:500}.projectkenner-create-panel h2{margin:6px 0 8px}.projectkenner-create-panel>p:not(.eyebrow){font-size:13px;color:#71838d;line-height:1.5;margin-bottom:18px}

.projectkenner-project-header{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:10px 0 23px}.projectkenner-project-header h1{font-size:34px;letter-spacing:-.025em;margin:3px 0 7px;color:#173c54}.projectkenner-project-header p{margin:0;color:#71858f}.projectkenner-status-pill{align-self:center;border:1px solid #cddcde;background:#edf5f2;color:#356a5d;border-radius:999px;padding:8px 12px;font-size:11px;font-weight:800}.projectkenner-tabs{display:flex;gap:5px;border-bottom:1px solid #d8e3e6;margin-bottom:23px;overflow-x:auto}.projectkenner-tabs a,.projectkenner-tabs span{padding:11px 13px;margin-bottom:-1px;text-decoration:none;color:#667d88;font-size:12px;font-weight:750;border-bottom:2px solid transparent;white-space:nowrap}.projectkenner-tabs a:hover,.projectkenner-tabs a.active{color:#21546a;border-color:#3f7d83}.projectkenner-tabs .disabled{opacity:.48;cursor:default}.projectkenner-tabs small{margin-left:4px;padding:2px 5px;border-radius:999px;background:#edf0f1;font-size:8px}.projectkenner-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:18px}.projectkenner-summary-card{background:#fff;border:1px solid #dfe7e9;border-radius:19px;padding:19px;box-shadow:0 5px 18px rgba(22,51,68,.04)}.projectkenner-summary-card>span{display:block;color:#7c9099;font-size:11px;font-weight:750}.projectkenner-summary-card strong{display:block;margin:4px 0;font-size:27px;color:#1e4a61}.projectkenner-summary-card p{margin:0;color:#758991;font-size:11px;line-height:1.45}.projectkenner-summary-card.accent{background:linear-gradient(140deg,#e9f3ef,#f8f9f5);border-color:#d0e1dc}.projectkenner-actions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px}.projectkenner-action-card{display:flex;align-items:center;gap:14px;padding:20px;border-radius:19px;background:#fff;border:1px solid #dfe7ea;text-decoration:none;color:inherit}.projectkenner-action-card[href]:hover{border-color:#b7cdd2;box-shadow:0 8px 22px rgba(24,52,68,.07)}.projectkenner-action-icon{width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center;border-radius:12px;background:#eaf2f4;color:#285d72;font-weight:850}.projectkenner-action-card h2{font-size:15px;margin:0 0 3px}.projectkenner-action-card p{margin:0;color:#768891;font-size:11px;line-height:1.4}.projectkenner-action-card>b{margin-left:auto;color:#467387}.projectkenner-action-card.disabled{opacity:.6}.projectkenner-action-card small{display:inline-block;margin-top:5px;color:#3b7465;font-weight:750}.projectkenner-recent-panel{border-radius:20px}.projectkenner-recent-list{display:grid;gap:8px}.projectkenner-recent-list>div{display:flex;align-items:center;gap:12px;padding:12px 13px;background:#f8fafb;border:1px solid #e6ecee;border-radius:13px}.projectkenner-file-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#e8f0f2;color:#456b7b;font-size:9px;font-weight:850}.projectkenner-recent-list>div>div{min-width:0;display:flex;flex-direction:column}.projectkenner-recent-list strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.projectkenner-recent-list small{font-size:10px;color:#8a9ba2}.projectkenner-recent-list a{margin-left:auto;color:#376b80;font-size:11px;font-weight:750;text-decoration:none}

.impact-surface .knowledge-hero-grid,.impact-surface .knowledge-results-panel,.impact-surface .knowledge-sources-panel{margin-top:0}.impact-surface .panel{box-shadow:0 7px 24px rgba(23,50,66,.05)}

@media(max-width:980px){.impact-main-nav{display:none}.impact-tool-grid{grid-template-columns:1fr}.impact-tool-card{min-height:240px}.projectkenner-dashboard-grid{grid-template-columns:1fr}.projectkenner-project-metrics{display:none}.projectkenner-summary-grid,.projectkenner-actions-grid{grid-template-columns:1fr}.impact-hero-orbit{display:none}.projectkenner-hero{align-items:flex-start;flex-direction:column}.projectkenner-hero-stats{width:100%}.projectkenner-hero-stats span{flex:1}}
@media(max-width:640px){.impact-header-inner{min-height:72px}.impact-brand small,.impact-version-badge{display:none}.impact-page-content{padding-left:16px!important;padding-right:16px!important}.impact-hero{padding:28px 24px;border-radius:21px}.impact-tool-card{padding:21px}.projectkenner-project-card{align-items:flex-start}.projectkenner-project-header{align-items:flex-start;flex-direction:column}.projectkenner-status-pill{align-self:flex-start}}
/* MVP 8.5.1b · clearer internal product switcher. Rendered only for the
   internal viewer; the client surface remains BLVC.nu-only. */
.internal-product-switcher{display:flex;align-items:center;gap:7px;padding:5px 6px 5px 8px;border:1px solid #c9dce5;background:#eef6fa;border-radius:14px;box-shadow:0 3px 10px rgba(28,70,94,.08)}
.internal-product-switcher-label{font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#6f8794;white-space:nowrap}
.internal-product-current{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:8px 11px;border-radius:10px;background:#173f58;color:#fff;font-size:11px;font-weight:850;line-height:1;white-space:nowrap;box-shadow:0 2px 7px rgba(17,54,76,.16)}
.internal-product-option{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:8px;align-items:center;min-height:38px;padding:6px 11px 6px 12px;border:1px solid #8bb6ca;border-radius:10px;background:#fff;color:#194f6a;text-decoration:none;line-height:1.05;white-space:nowrap;box-shadow:0 2px 7px rgba(28,70,94,.07);transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.internal-product-option-kicker{grid-column:1;grid-row:1;font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#7d929d}
.internal-product-option-name{grid-column:1;grid-row:2;font-size:11px;font-weight:850;color:#194f6a}
.internal-product-arrow{grid-column:2;grid-row:1 / span 2;align-self:center;font-size:17px;line-height:1;color:#2f7898}
.internal-product-option:hover,.internal-product-option:focus-visible{background:#e8f4f8;border-color:#4f91ad;box-shadow:0 4px 12px rgba(28,70,94,.13);outline:none}
.internal-product-option:active{transform:translateY(1px)}
@media(max-width:900px){.internal-product-switcher-label{display:none}}
@media(max-width:780px){.internal-product-switcher{order:10;width:100%;justify-content:stretch}.internal-product-current{flex:0 0 auto}.internal-product-option{flex:1;display:grid;white-space:normal}.portal-header-actions{flex-wrap:wrap}}

/* =========================================================
   MVP 8.5.2 - Projectkenner workspace + Buro Rondom identity
   ========================================================= */
.impact-surface{--around-navy:#22313a;--around-blue:#1f5268;--around-teal:#008b8a;--around-orange:#f2a000;--around-olive:#9da62f;--around-cream:#f7f6f1;--around-ink:#27333b;background:#f4f6f5;color:var(--around-ink)}
.impact-header{background:linear-gradient(110deg,#24323a 0%,#214455 58%,#1d6668 100%);box-shadow:0 8px 24px rgba(26,47,57,.13)}
.impact-topline{height:4px;background:linear-gradient(90deg,var(--around-orange) 0 32%,var(--around-olive) 32% 66%,var(--around-teal) 66% 100%)}
.impact-brand{gap:14px}.impact-brand-logo{width:92px;height:44px;object-fit:contain;background:#fff;border-radius:11px;padding:5px 7px;box-shadow:0 5px 16px rgba(0,0,0,.12)}
.impact-brand>span strong{font-size:16px}.impact-brand>span small{opacity:.78}.impact-main-nav{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16)}
.impact-main-nav a.active{color:#22313a}.impact-version-badge{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.08)}
.impact-hero{background:linear-gradient(135deg,#fff 0%,#fbf7ed 58%,#eef8f5 100%);border-color:#dfe5df}.impact-hero h1,.projectkenner-hero h1{color:#26343c}
.impact-tool-card{border-color:#dfe5e3}.impact-tool-card h2{color:#263b46}.impact-tool-icon{background:#f2f4f2!important;color:#305864!important}.impact-tool-icon.is-logo{padding:5px;background:white!important;border:1px solid #dce4e1}.impact-tool-icon.is-logo img{max-width:100%;max-height:100%;object-fit:contain}.impact-tool-icon .ui-icon,.projectkenner-action-icon .ui-icon,.pk-folder-icon .ui-icon,.pk-document-icon .ui-icon,.document-type-icon .ui-icon,.pk-upload-icon .ui-icon,.pk-library-note .ui-icon{width:22px;height:22px}
.impact-tool-knowledge{border-top:4px solid var(--around-teal)}.impact-tool-blvc{border-top:4px solid var(--around-orange)}.impact-tool-library{border-top:4px solid #d6c041}.impact-tool-cartographer{border-top:4px solid #6caf8d}.impact-tool-communicator{border-top:4px solid #8ca4df}.impact-tool-participator{border-top:4px solid #e0a171}.impact-tool-participation-studio{border-top:4px solid #5faea3}.impact-tool-upcoming{border-top:4px solid var(--around-olive)}.impact-tool-blvc,.impact-tool-knowledge,.impact-tool-library,.impact-tool-cartographer,.impact-tool-communicator,.impact-tool-participator,.impact-tool-participation-studio{position:relative;overflow:hidden}.impact-tool-blvc{background:linear-gradient(135deg,#fffdf9 0%,#fff7ea 52%,#f8fbfc 100%)}.impact-tool-knowledge{background:linear-gradient(135deg,#f9fdff 0%,#eefaff 55%,#f8fbff 100%)}.impact-tool-library{background:linear-gradient(135deg,#fffef7 0%,#fff9e8 55%,#fafbff 100%)}.impact-tool-cartographer{background:linear-gradient(135deg,#f8fdfb 0%,#edf9f5 54%,#f6fbff 100%)}.impact-tool-communicator{background:linear-gradient(135deg,#fbfaff 0%,#f2f4ff 54%,#f8fcff 100%)}.impact-tool-participator{background:linear-gradient(135deg,#fffaf7 0%,#fff1ea 54%,#fffaf2 100%)}.impact-tool-participation-studio{background:linear-gradient(135deg,#f7fdfa 0%,#ebfaf6 54%,#f5fbff 100%)}.impact-tool-blvc:after,.impact-tool-knowledge:after,.impact-tool-library:after,.impact-tool-cartographer:after,.impact-tool-communicator:after,.impact-tool-participator:after,.impact-tool-participation-studio:after{content:"";position:absolute;right:-42px;bottom:-48px;width:150px;height:150px;border-radius:50%;border:18px solid rgba(218,231,236,.38);pointer-events:none}.impact-tool-blvc:after{border-color:rgba(230,196,142,.26)}.impact-tool-knowledge:after{border-color:rgba(153,208,226,.24)}.impact-tool-library:after{border-color:rgba(226,214,142,.24)}.impact-tool-cartographer:after{border-color:rgba(149,208,182,.24)}.impact-tool-communicator:after{border-color:rgba(176,185,235,.24)}.impact-tool-participator:after{border-color:rgba(238,185,150,.24)}.impact-tool-participation-studio:after{border-color:rgba(147,213,201,.24)}.impact-tool-blvc .impact-tool-icon{background:#eef5f7!important;color:#28566f!important}.impact-tool-knowledge .impact-tool-icon{background:#eaf6fb!important;color:#2c6a88!important}.impact-tool-library .impact-tool-icon{background:#faf4d7!important;color:#7f7421!important}.impact-tool-cartographer .impact-tool-icon{background:#e8f5ef!important;color:#3b7b61!important}.impact-tool-communicator .impact-tool-icon{background:#f0effd!important;color:#5f67a8!important}.impact-tool-participator .impact-tool-icon{background:#fdf0e7!important;color:#a46a46!important}.impact-tool-participation-studio .impact-tool-icon{background:#e8f7f3!important;color:#2f7b70!important}.impact-tool-card h2{color:#243640}.impact-tool-state{box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}.impact-tool-card[aria-disabled="true"]{opacity:1}.impact-platform-note{background:#263840}.impact-note-icon{color:var(--around-orange)}
.projectkenner-project-avatar,.projectkenner-action-icon,.projectkenner-file-icon{background:#eef5f2;color:#216f69}.projectkenner-action-icon{display:grid;place-items:center}.projectkenner-summary-card.accent{background:linear-gradient(135deg,#eff8f5,#fbf8ee)}

/* scalable document workspace */
.pk-doc-toolbar{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin:4px 0 18px}.pk-doc-toolbar h2{margin:3px 0 4px;font-size:25px}.pk-doc-toolbar p:not(.eyebrow){margin:0;color:#6f8189}.pk-doc-toolbar-actions{display:flex;gap:9px;flex-wrap:wrap}
.pk-folder-create{margin-bottom:15px;padding:16px 18px;border:1px solid #d8e3df;border-radius:16px;background:#fff}.pk-folder-create form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(200px,.7fr) auto;gap:12px;align-items:end}.pk-folder-create label,.pk-upload-form>label:not(.file-drop){display:grid;gap:6px;font-size:11px;font-weight:800;color:#536a72}.pk-folder-create input,.pk-folder-create select,.pk-upload-form select,.pk-document-menu select{min-height:42px;border:1px solid #cfdcdf;border-radius:10px;padding:0 11px;background:#fff;color:#2d4048}
.pk-document-workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.pk-folder-library{display:grid;gap:10px;min-width:0}.pk-folder-group{border:1px solid #dbe4e2;border-radius:17px;background:#fff;overflow:visible;box-shadow:0 5px 18px rgba(31,55,64,.04)}.pk-folder-group>summary{list-style:none;display:grid;grid-template-columns:20px 38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:14px 16px;cursor:pointer}.pk-folder-group>summary::-webkit-details-marker{display:none}.pk-folder-chevron{font-size:22px;line-height:1;color:#657d84;transition:transform .15s}.pk-folder-group[open] .pk-folder-chevron{transform:rotate(90deg)}.pk-folder-icon{width:36px;height:34px;border-radius:10px;display:grid;place-items:center;background:#e8f4f1;color:#23746d}.pk-folder-icon.is-reference{background:#fbf3df;color:#8d6c16}.pk-folder-summary-copy{min-width:0}.pk-folder-summary-copy strong{display:block;font-size:14px;color:#2b3b43}.pk-folder-summary-copy small{display:block;margin-top:2px;color:#84939a;font-size:10px}.pk-role-badge{padding:5px 9px;border-radius:999px;background:#edf6f3;color:#317265;font-size:10px;font-weight:800}.pk-role-badge.is-reference{background:#fbf2dc;color:#8b6c22}.pk-folder-content{border-top:1px solid #edf1ef;padding:6px 9px 10px}.pk-folder-empty{padding:16px;color:#809098;font-size:12px;text-align:center}.pk-document-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto 38px;gap:10px;align-items:center;padding:9px 8px;border-radius:11px}.pk-document-row+.pk-document-row{border-top:1px solid #eff3f2}.pk-document-row:hover{background:#f8faf9}.pk-document-icon,.document-type-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#eef3f4;color:#4a6d78}.pk-document-copy{min-width:0}.pk-document-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.pk-document-copy small{display:block;margin-top:2px;color:#8a999f;font-size:9.5px}.pk-document-status{font-size:9px;font-weight:800;color:#54727b;background:#eff5f5;border-radius:999px;padding:5px 8px}.pk-document-menu{position:relative}.pk-document-menu>summary{list-style:none;width:34px;height:30px;display:grid;place-items:center;cursor:pointer;border-radius:8px;color:#53717a;font-weight:900}.pk-document-menu>summary::-webkit-details-marker{display:none}.pk-document-menu>summary:hover{background:#eaf1ef}.pk-document-menu-popover{position:absolute;z-index:20;right:0;top:35px;width:240px;padding:12px;border:1px solid #d8e2df;border-radius:13px;background:#fff;box-shadow:0 16px 36px rgba(29,54,64,.18);display:grid;gap:9px}.pk-document-menu-popover>a{font-size:11px;font-weight:800;color:#2c6570;text-decoration:none}.pk-document-menu-popover form{display:grid;gap:7px}.pk-document-menu-popover label{display:grid;gap:4px;font-size:9px;font-weight:800;color:#65787f}.pk-document-menu-popover button{min-height:34px;font-size:10px}.pk-danger-link{background:#fff7f5!important;color:#9b4e3d!important;border:1px solid #efd4cd!important}.pk-folder-delete{display:flex;justify-content:flex-end;padding:8px}.pk-folder-delete button{background:transparent;color:#8a6a63;border:0;box-shadow:none;font-size:9px;padding:5px}
.pk-upload-drawer{position:sticky;top:18px;border-radius:18px;background:linear-gradient(160deg,#fff,#f5faf8);border-color:#d9e4df}.pk-upload-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#e5f2ee;color:#1d716b;margin-bottom:12px}.pk-upload-drawer h2{margin:3px 0 7px}.pk-upload-form{margin-top:15px}.pk-upload-form .file-drop{min-height:130px}.pk-library-note{display:flex;gap:10px;margin-top:15px;padding-top:14px;border-top:1px solid #dfe9e5;color:#667d84}.pk-library-note>svg{flex:0 0 22px;color:#8f842f}.pk-library-note strong{display:block;color:#455b62;font-size:11px}.pk-library-note p{margin:3px 0 0;font-size:9.5px;line-height:1.45}

/* Knowledge source hierarchy + processing feedback */
.knowledge-status-panel form{margin-bottom:11px}.knowledge-index-button{margin-bottom:0}.knowledge-index-help{margin-top:12px!important;line-height:1.5}.knowledge-index-progress{display:flex;align-items:center;gap:7px;margin-top:9px;color:#55737c;font-size:10px;font-weight:750}.knowledge-index-progress[hidden]{display:none}.knowledge-spinner{width:13px;height:13px;border:2px solid #d0dfdf;border-top-color:#2e8179;border-radius:50%;animation:knowledge-spin .75s linear infinite}@keyframes knowledge-spin{to{transform:rotate(360deg)}}
.knowledge-folder-stack{display:grid;gap:10px;margin-top:17px}.knowledge-folder{border:1px solid #dfe7e4;border-radius:15px;background:#fbfcfb;overflow:hidden}.knowledge-folder summary{list-style:none;display:grid;grid-template-columns:18px 38px minmax(0,1fr);gap:10px;align-items:center;padding:13px 14px;cursor:pointer}.knowledge-folder summary::-webkit-details-marker{display:none}.knowledge-folder summary>span:last-child strong{display:block;font-size:12px}.knowledge-folder summary>span:last-child small{display:block;color:#83939a;font-size:9.5px;margin-top:2px}.knowledge-folder[open] .folder-chevron{transform:rotate(90deg)}.folder-chevron{font-size:20px;transition:.15s}.folder-icon{width:35px;height:33px;border-radius:10px;display:grid;place-items:center;background:#e7f3f0;color:#24756d}.folder-icon.is-reference{background:#fbf2dc;color:#8e6f1e}.knowledge-folder .knowledge-source-table{border-top:1px solid #e8eeec}.knowledge-folder-empty{padding:14px;color:#829198;font-size:10px}.knowledge-library-teaser{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:11px;padding:14px 15px;border:1px dashed #d8d4ad;border-radius:15px;background:#fffdf5}.knowledge-library-teaser>span{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:#f5f0d9;color:#817929}.knowledge-library-teaser strong{font-size:11px}.knowledge-library-teaser p{margin:3px 0 0;color:#74858b;font-size:9.5px;line-height:1.45}.knowledge-library-teaser small{font-size:9px;font-weight:800;color:#877e3a}.document-type-icon{display:grid!important}

@media(max-width:980px){.pk-document-workspace{grid-template-columns:1fr}.pk-upload-drawer{position:static}.pk-folder-create form{grid-template-columns:1fr 1fr}.pk-folder-create form button{grid-column:1/-1}.impact-brand-logo{width:78px}}
@media(max-width:640px){.pk-doc-toolbar{align-items:flex-start;flex-direction:column}.pk-doc-toolbar-actions{width:100%}.pk-doc-toolbar-actions>*{flex:1}.pk-folder-create form{grid-template-columns:1fr}.pk-folder-group>summary{grid-template-columns:18px 34px minmax(0,1fr)}.pk-role-badge{grid-column:3;justify-self:start}.pk-document-row{grid-template-columns:32px minmax(0,1fr) 34px}.pk-document-status{display:none}.impact-brand-logo{width:68px;height:38px}.impact-brand>span strong{font-size:13px}.knowledge-library-teaser{grid-template-columns:34px 1fr}.knowledge-library-teaser small{grid-column:2}}

/* =========================================================
   MVP 8.5.3 - Brand & workspace UX alignment
   Buro Rondom: cyan #4AC0E0 · yellow #FFEC00 · grey #595959
   ========================================================= */
:root{
  --rondom-cyan:#4AC0E0;
  --rondom-cyan-soft:#e8f8fc;
  --rondom-cyan-strong:#169fc5;
  --rondom-yellow:#FFEC00;
  --rondom-yellow-soft:#fffbd5;
  --rondom-grey:#595959;
  --rondom-grey-soft:#f0f1f1;
}

/* BLVC internal product switcher: centred, legible and clearly separate from client preview. */
.blvc-header-inner{position:relative}
.viewer-internal .internal-product-switcher{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  gap:4px;padding:5px 6px;border:1px solid #bdd7e3;border-radius:14px;
  background:linear-gradient(135deg,#eef8fc,#fff);box-shadow:0 6px 18px rgba(31,84,111,.10)
}
.viewer-internal .internal-product-switcher-label{margin:0 4px 0 2px;color:#617d8b;font-size:8px;letter-spacing:.09em}
.viewer-internal .internal-product-current{min-height:36px;background:#174d6b;border-radius:9px;box-shadow:none}
.viewer-internal .internal-product-option{min-height:36px;border:0;background:#fff;border-radius:9px;box-shadow:none;padding:5px 10px}
.viewer-internal .internal-product-option:hover,.viewer-internal .internal-product-option:focus-visible{background:#dff4fb;box-shadow:none}
.viewer-internal .internal-product-option-kicker{font-size:7px}.viewer-internal .internal-product-option-name{font-size:10px}
@media(max-width:1120px){.viewer-internal .internal-product-switcher{position:static;transform:none}.viewer-internal .portal-header-actions{margin-left:auto}}
/* MVP 8.11.3.1 — prevent BLVC internal header controls from colliding */
@media(max-width:1540px){
  .viewer-internal .blvc-header-inner{height:auto!important;min-height:68px!important;padding-top:10px!important;padding-bottom:10px!important;align-items:flex-start;gap:10px}
  .viewer-internal .internal-product-switcher{position:static;transform:none;order:1}
  .viewer-internal .portal-header-actions{margin-left:auto;max-width:min(72%,920px);flex-wrap:wrap;justify-content:flex-end;row-gap:8px}
  .viewer-internal .view-switch>span{display:none}
}
@media(max-width:1320px){
  .viewer-internal .portal-header-actions{max-width:100%;width:100%;margin-left:0;justify-content:flex-start}
}


/* BLVC document workspace now uses the same scalable folder system as Projectkenner. */
.viewer-internal:not(.impact-surface) .blvc-folder-toolbar{
  margin-top:18px;padding:20px 22px;border-radius:20px;border:1px solid #bad8e6;
  background:linear-gradient(120deg,#edf9fd 0%,#fff 58%,#fff7e9 100%);
  box-shadow:0 8px 24px rgba(27,75,101,.07)
}
.viewer-internal:not(.impact-surface) .pk-document-workspace{margin-top:14px}
.viewer-internal:not(.impact-surface) .pk-folder-group{border-color:#cfe1e9;box-shadow:0 7px 22px rgba(28,75,98,.05)}
.viewer-internal:not(.impact-surface) .pk-folder-group>summary{background:linear-gradient(90deg,#f7fcfe,#fff)}
.viewer-internal:not(.impact-surface) .pk-folder-icon{background:#e2f4fb;color:#1b759c}
.viewer-internal:not(.impact-surface) .pk-folder-icon.is-reference{background:#fff1dc;color:#a66b13}
.viewer-internal:not(.impact-surface) .pk-upload-drawer{background:linear-gradient(155deg,#eaf8fd,#fff 64%,#fff4e5);border-color:#bfdbe7}
.viewer-internal:not(.impact-surface) .pk-upload-icon{background:#dff3fb;color:#176c91}

/* Project Knowledge: stronger visual hierarchy on both BLVC.nu and Projectkenner surfaces. */
.knowledge-hero-grid{gap:18px}
.knowledge-search-panel,.knowledge-status-panel,.knowledge-results-panel,.knowledge-sources-panel{position:relative;overflow:hidden;border-width:1px;box-shadow:0 10px 28px rgba(25,65,84,.07)}
.knowledge-search-panel{background:linear-gradient(135deg,#eaf8fd 0%,#fff 68%);border-color:#bcdfea}
.knowledge-search-panel:after{content:"";position:absolute;width:180px;height:180px;right:-85px;top:-105px;border:28px solid rgba(74,192,224,.09);border-radius:50%;pointer-events:none}
.knowledge-status-panel{background:linear-gradient(150deg,#fffbd9 0%,#fff 58%,#eef9fc 100%);border-color:#e8df9e}
.knowledge-status-ring{background:#daf3fa!important;color:#145f7e!important;border:1px solid #b6deea}
.knowledge-index-button{background:linear-gradient(135deg,#174d6b,#1f6f91)!important;box-shadow:0 7px 18px rgba(23,77,107,.16)!important}
.knowledge-sources-panel{background:linear-gradient(145deg,#fff 0%,#f2fbfd 54%,#fffdeb 100%);border-color:#cfe3e8}
.knowledge-results-panel{background:linear-gradient(145deg,#fff,#f6fbfd);border-color:#cde1e8}
.knowledge-folder{background:rgba(255,255,255,.86);border-color:#cfe2e5}.knowledge-folder summary:hover{background:#edf9fc}
.folder-icon{background:#dff5fb;color:#15789d}.folder-icon.is-reference{background:#fff7bf;color:#716800}
.knowledge-library-teaser{background:linear-gradient(110deg,#fffde9,#fff);border-color:#e2d65d}.knowledge-library-teaser>span{background:#fff5a5;color:#665f00}
.knowledge-source-icon{display:grid;place-items:center}.knowledge-source-icon .ui-icon{width:20px;height:20px}

/* Exact Buro Rondom identity for the internal Project Impact Engine. */
.impact-surface{
  --around-cyan:#4AC0E0;--around-yellow:#FFEC00;--around-grey:#595959;
  --around-ink:#3e3e3e;--around-cyan-soft:#e8f8fc;--around-yellow-soft:#fffbd1;
  background:
    radial-gradient(circle at 96% 16%,rgba(255,236,0,.12) 0 90px,transparent 91px),
    radial-gradient(circle at 4% 72%,rgba(74,192,224,.12) 0 130px,transparent 131px),
    #f6f7f7;color:var(--around-ink)
}
.impact-header{background:linear-gradient(105deg,#4b4b4b 0%,#595959 63%,#4b7079 100%);box-shadow:0 8px 26px rgba(60,60,60,.16)}
.impact-topline{height:5px;background:linear-gradient(90deg,var(--around-cyan) 0 49%,var(--around-yellow) 49% 76%,#fff 76% 100%)}
.impact-brand-logo{width:148px;height:48px;padding:5px 8px;border-radius:10px;background:#fff;object-fit:contain;box-shadow:0 5px 16px rgba(0,0,0,.14)}
.impact-brand>span strong{font-size:16px}.impact-brand>span small{color:#e4e4e4}
.impact-main-nav{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.2)}
.impact-main-nav a{color:#f3f3f3}.impact-main-nav a:hover,.impact-main-nav a.active{background:#fff;color:#4f4f4f}
.impact-main-nav .impact-nav-external{color:#fff46a}
.impact-version-badge{color:#fff;border-color:rgba(255,255,255,.25);background:rgba(255,255,255,.10)}

.impact-hero{min-height:245px;background:linear-gradient(125deg,#dff6fc 0%,#fff 47%,#fff9a9 100%);border-color:#bfe5ef;box-shadow:0 16px 38px rgba(70,92,99,.10)}
.impact-hero:before{content:"";position:absolute;width:250px;height:250px;left:56%;top:-165px;border:34px solid rgba(74,192,224,.14);border-radius:50%}
.impact-hero h1,.projectkenner-hero h1,.projectkenner-project-header h1{color:#444}
.impact-hero .eyebrow,.projectkenner-hero .eyebrow,.impact-section-heading .eyebrow{color:#177b9c}


.impact-tool-card{border:1px solid #dedede;box-shadow:0 9px 25px rgba(71,71,71,.07);overflow:hidden}
.impact-tool-blvc{border-top:5px solid #f28a22;background:linear-gradient(160deg,#fff,#fff9f2)}
.impact-tool-knowledge{border-top:5px solid var(--around-cyan);background:linear-gradient(160deg,#fff,#eefdff)}
.impact-tool-upcoming{border-top:5px solid var(--around-yellow);background:linear-gradient(160deg,#fff,#fffde6)}
.impact-tool-icon{background:#fff!important;color:#595959!important;border:1px solid #ddd}
.impact-tool-knowledge .impact-tool-icon{background:#dff6fc!important;color:#14728f!important;border-color:#b7e1eb}
.impact-tool-upcoming .impact-tool-icon{background:#fff9a8!important;color:#625b00!important;border-color:#f1e675}
.impact-tool-state{background:#dff6fc;color:#167a99}.impact-tool-upcoming .impact-tool-state{background:#f1f1f1;color:#757575}
.impact-platform-note{background:linear-gradient(105deg,#595959,#484848);border-left:5px solid var(--around-yellow)}.impact-note-icon{color:var(--around-yellow)}

/* Projectkenner pages: colourful, playful, but still a dense professional workspace. */
.projectkenner-hero{position:relative;padding:28px 30px;margin:0 0 24px;border:1px solid #c7e8f0;border-radius:24px;background:linear-gradient(120deg,#e3f7fc,#fff 62%,#fffbd1);overflow:hidden}
.projectkenner-hero:after{content:"";position:absolute;right:-54px;bottom:-86px;width:190px;height:190px;border:25px solid rgba(255,236,0,.2);border-radius:50%}
.projectkenner-hero-stats span{background:rgba(255,255,255,.86);border-color:#c7e3e8}.projectkenner-hero-stats strong{color:#147b9e}
.projectkenner-projects-panel{background:linear-gradient(145deg,#fff,#f0fbfd);border-color:#cde4ea}
.projectkenner-create-panel{background:linear-gradient(150deg,#fffbd9,#fff);border-color:#e9df98}
.projectkenner-create-icon{background:#fff26c;color:#595959}
.projectkenner-project-card{background:rgba(255,255,255,.86);border-color:#d2e5e9}.projectkenner-project-card:hover{border-color:#7acfe3;background:#fff}
.projectkenner-project-avatar{background:#dff5fb;color:#147796;border:1px solid #b9e2ec}.projectkenner-project-avatar .ui-icon{width:22px;height:22px}
.projectkenner-project-header{position:relative;padding:22px 26px;margin-bottom:16px;border:1px solid #c8e5ec;border-radius:22px;background:linear-gradient(125deg,#e7f8fc,#fff 60%,#fffbd5)}
.projectkenner-status-pill{background:#fff;border-color:#a9dce8;color:#157796}
.projectkenner-tabs{background:#fff;border:1px solid #dce7e9;border-radius:14px;padding:4px 8px;margin-bottom:24px;box-shadow:0 5px 15px rgba(75,75,75,.04)}
.projectkenner-tabs a:hover,.projectkenner-tabs a.active{color:#147c9e;border-color:#4AC0E0;background:#effafd;border-radius:8px 8px 0 0}
.projectkenner-summary-card{border-color:#d5e5e8}.projectkenner-summary-card:nth-child(1){background:linear-gradient(145deg,#e9f9fd,#fff)}.projectkenner-summary-card:nth-child(2){background:linear-gradient(145deg,#fff,#f5f5f5)}.projectkenner-summary-card.accent{background:linear-gradient(145deg,#fffbd1,#fff)}
.projectkenner-action-card{border-color:#d7e5e8;background:linear-gradient(145deg,#fff,#f4fbfd)}.projectkenner-action-card:nth-child(2){background:linear-gradient(145deg,#e7f8fc,#fff)}.projectkenner-action-card.disabled{background:linear-gradient(145deg,#f3f3f3,#fff)}
.projectkenner-action-icon,.projectkenner-file-icon{background:#dff6fc;color:#147593;border:1px solid #bce3ec}.projectkenner-action-icon .ui-icon,.projectkenner-file-icon .ui-icon{width:21px;height:21px}
.projectkenner-recent-panel{background:linear-gradient(145deg,#fff,#f7fcfd);border-color:#d4e6e9}

/* Projectkenner document hierarchy uses Buro Rondom cyan/yellow consistently. */
.impact-surface .pk-doc-toolbar{padding:19px 21px;border:1px solid #bfe3ec;border-radius:19px;background:linear-gradient(120deg,#e6f8fc,#fff 64%,#fffbd7)}
.impact-surface .pk-folder-group{border-color:#cee4e8}.impact-surface .pk-folder-group>summary{background:linear-gradient(90deg,#f1fbfd,#fff)}
.impact-surface .pk-folder-icon{background:#dff6fc;color:#15799a}.impact-surface .pk-folder-icon.is-reference{background:#fff7a8;color:#6a6200}
.impact-surface .pk-role-badge{background:#def5fb;color:#167b9b}.impact-surface .pk-role-badge.is-reference{background:#fff8b9;color:#6d6500}
.impact-surface .pk-upload-drawer{background:linear-gradient(155deg,#e7f8fc,#fff 60%,#fffbd5);border-color:#bfe1e9}.impact-surface .pk-upload-icon{background:#4AC0E0;color:#fff}
.impact-surface .pk-library-note{border-top-color:#e4dc7b}.impact-surface .pk-library-note>svg{color:#716900}

@media(max-width:980px){.impact-brand-logo{width:120px}.projectkenner-hero{padding:24px}.projectkenner-project-header{padding:20px}}
@media(max-width:640px){.impact-brand-logo{width:98px;height:40px}.projectkenner-hero{padding:20px}.projectkenner-project-header{padding:17px}.viewer-internal .internal-product-switcher{width:100%}}


/* MVP 8.5.3a - BLVC project knowledge UX polish */
.viewer-internal .internal-module-grid .knowledge-module-card{
  background:linear-gradient(145deg,#edf9fd 0%,#ffffff 54%,#f2fbfd 100%)!important;
  border-color:#b8dfeb!important;
}
.viewer-internal .internal-module-grid .knowledge-module-card:before{background:#4ac0e0!important}
.viewer-internal .internal-module-grid .knowledge-module-card .module-overview-icon{
  background:linear-gradient(145deg,#4ac0e0,#2788a7)!important;color:#fff!important;
}
.viewer-internal .internal-module-grid .artifact-module-card{
  background:linear-gradient(145deg,#fffde3 0%,#ffffff 58%,#f5f8fa 100%)!important;
  border-color:#e9dd79!important;
}
.viewer-internal .internal-module-grid .artifact-module-card:before{background:#d6c33f!important}
.viewer-internal .internal-module-grid .artifact-module-card .module-overview-icon{
  background:linear-gradient(145deg,#ffec00,#d7c300)!important;color:#595959!important;
}
.viewer-internal .internal-module-grid .module-overview-card .eyebrow{letter-spacing:.055em}
.viewer-internal .internal-module-grid .module-overview-card p:last-child{max-width:210px}

.blvc-folder-toolbar .pk-doc-toolbar-actions{align-items:center;gap:14px}
.pk-knowledge-link{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:0 16px;
  border:1px solid #9ccfdd;border-radius:12px;background:linear-gradient(135deg,#eaf8fc,#fff);
  color:#174d6b;text-decoration:none;font-weight:850;font-size:.75rem;box-shadow:0 5px 14px rgba(31,111,145,.08);
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
.pk-knowledge-link:hover{transform:translateY(-1px);border-color:#4ac0e0;box-shadow:0 8px 18px rgba(31,111,145,.13)}
.pk-knowledge-link span{font-size:1rem;line-height:1}
.pk-new-folder-button{min-height:42px}

/* Make BLVC Projectkennis a richer dashboard surface rather than a white utility page. */
body.viewer-internal:not(.impact-surface) .knowledge-hero-grid{
  padding:18px;border-radius:24px;background:
    radial-gradient(circle at 9% 10%,rgba(74,192,224,.16),transparent 29%),
    radial-gradient(circle at 91% 14%,rgba(255,236,0,.14),transparent 24%),
    linear-gradient(135deg,#f7fcfe,#fffef4);
  border:1px solid #c9e4ec;box-shadow:0 14px 34px rgba(27,77,99,.07);
}
body.viewer-internal:not(.impact-surface) .knowledge-search-panel{
  background:linear-gradient(135deg,#dff5fb 0%,#ffffff 65%)!important;
  border-color:#9fd6e5!important;
}
body.viewer-internal:not(.impact-surface) .knowledge-status-panel{
  background:linear-gradient(150deg,#fff9bd 0%,#fff 54%,#edfafd 100%)!important;
  border-color:#e4d65a!important;
}
body.viewer-internal:not(.impact-surface) .knowledge-sources-panel{
  margin-top:20px;padding:22px!important;
  background:
    radial-gradient(circle at 96% 8%,rgba(74,192,224,.12),transparent 24%),
    radial-gradient(circle at 5% 100%,rgba(255,236,0,.11),transparent 23%),
    linear-gradient(140deg,#f6fcfe 0%,#ffffff 52%,#fffde8 100%)!important;
  border-color:#bcdde6!important;box-shadow:0 12px 30px rgba(25,65,84,.08)!important;
}
body.viewer-internal:not(.impact-surface) .knowledge-sources-panel .knowledge-results-heading{
  padding-bottom:14px;border-bottom:1px solid rgba(74,192,224,.22);
}
body.viewer-internal:not(.impact-surface) .knowledge-folder{
  border-color:#bcdde4;background:rgba(255,255,255,.9);box-shadow:0 4px 12px rgba(29,77,98,.04);
}
body.viewer-internal:not(.impact-surface) .knowledge-folder:nth-child(2){border-color:#e6d96e;background:linear-gradient(145deg,#fffef2,#fff)}
body.viewer-internal:not(.impact-surface) .knowledge-folder summary{padding:15px 16px}
body.viewer-internal:not(.impact-surface) .knowledge-library-teaser{
  background:linear-gradient(110deg,#fff8a8,#fffde8 34%,#fff);border-color:#ddcd30;
}
body.viewer-internal:not(.impact-surface) .knowledge-provider-badge{background:#fff;border-color:#9fd6e5;color:#24627b}
body.viewer-internal:not(.impact-surface) .knowledge-index-button{background:linear-gradient(135deg,#1e6686,#174d6b)!important}

@media(max-width:640px){
  .blvc-folder-toolbar .pk-doc-toolbar-actions{gap:8px}
  .pk-knowledge-link,.pk-new-folder-button{width:100%}
  body.viewer-internal:not(.impact-surface) .knowledge-hero-grid{padding:10px;border-radius:18px}
}


/* MVP 8.5.3c - project overview terminology and palette polish */
.viewer-internal .internal-module-grid .review-module-card{
  background:linear-gradient(145deg,#fff 0%,#faeef5 58%,#f7e5ef 100%)!important;
  border-color:#e6c4d6!important;
}
.viewer-internal .internal-module-grid .review-module-card .module-overview-icon{
  background:linear-gradient(145deg,#c978a2,#9f527b)!important;
  color:#fff!important;
  box-shadow:0 10px 22px rgba(159,82,123,.18)!important;
}
.viewer-internal .internal-module-grid .review-module-card .module-arrow{color:#7d3e60!important}

/* MVP 8.6 - Projectkenner grounded chat */
.projectkenner-chat-header {
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 236, 0, .24), transparent 16rem),
    linear-gradient(120deg, rgba(74, 192, 224, .18), rgba(255,255,255,.96) 48%, rgba(255,236,0,.10));
}
.projectkenner-chat-header form { margin: 0; }
.pk-chat-alert {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(189, 95, 74, .3);
  border-radius: 14px;
  background: #fff2ee;
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: #743425;
}
.pk-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, .75fr);
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}
.pk-chat-main,
.pk-chat-sources {
  border: 1px solid rgba(74, 192, 224, .28);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(28, 53, 67, .08);
}
.pk-chat-main {
  min-height: 680px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(74, 192, 224, .11), transparent 19rem),
    #fff;
}
.pk-chat-conversation-head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid #e4edf1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.pk-chat-conversation-head h2,
.pk-chat-sources h2 { margin: 3px 0 0; font-size: 1.25rem; }
.pk-chat-history-menu { position: relative; }
.pk-chat-history-menu > summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid #c9dbe4;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
  font-size: .82rem;
  background: rgba(255,255,255,.88);
}
.pk-chat-history-menu > summary::-webkit-details-marker { display:none; }
.pk-chat-history-list {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  width: min(340px, 75vw);
  z-index: 8;
  background: #fff;
  border: 1px solid #d8e4ea;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 38px rgba(24, 47, 61, .16);
}
.pk-chat-history-list a {
  display:flex; justify-content:space-between; gap:12px; align-items:center;
  color:#173d58; text-decoration:none; padding:9px 10px; border-radius:9px;
}
.pk-chat-history-list a:hover,
.pk-chat-history-list a.active { background:#edf8fb; }
.pk-chat-history-list strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.84rem; }
.pk-chat-history-list small { color:#7a8a94; flex:none; }
.pk-chat-messages {
  flex: 1;
  min-height: 390px;
  max-height: 610px;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pk-chat-message { display:flex; gap:10px; max-width: 88%; }
.pk-chat-message.user { align-self:flex-end; flex-direction:row-reverse; }
.pk-chat-message.assistant { align-self:flex-start; }
.pk-chat-message-label {
  width: 34px; height: 34px; border-radius: 50%; flex:none;
  display:grid; place-items:center; font-size:.72rem; font-weight:800;
  background:#153f5f; color:#fff;
}
.pk-chat-message.assistant .pk-chat-message-label {
  width:auto; min-width:34px; padding:0 10px; border-radius:999px;
  background:linear-gradient(135deg,#4ac0e0,#2185a5);
}
.pk-chat-bubble {
  border-radius: 17px;
  padding: 14px 16px;
  background:#f4f9fb;
  border:1px solid #d9e9ef;
  color:#24343d;
  min-width:0;
}
.pk-chat-message.user .pk-chat-bubble { background:#153f5f; border-color:#153f5f; color:#fff; }
.pk-chat-bubble > p { margin:0; line-height:1.62; white-space:pre-line; }
.pk-chat-citations {
  margin-top:14px; padding-top:12px; border-top:1px solid rgba(74,192,224,.22);
}
.pk-chat-citations > strong { display:block; color:#173f5a; font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; }
.pk-chat-citations ol { margin:8px 0 0 18px; padding:0; }
.pk-chat-citations li { padding:3px 0 5px 4px; }
.pk-chat-citations a { color:#126b87; font-weight:700; }
.pk-chat-citations span { display:block; font-size:.76rem; color:#71818a; margin-top:2px; }
.pk-chat-note { margin-top:11px; border-radius:10px; padding:10px 12px; font-size:.82rem; }
.pk-chat-note strong { display:block; margin-bottom:3px; }
.pk-chat-note.uncertainty { background:#fff9d8; border:1px solid #f2dc66; color:#665a19; }
.pk-chat-note.conflict { background:#fff0f4; border:1px solid #e8b1c2; color:#71354d; }
.pk-chat-note ul { margin:5px 0 0 17px; padding:0; }
.pk-chat-empty { margin:auto; max-width:480px; text-align:center; padding:50px 20px; color:#60727c; }
.pk-chat-empty h3 { color:#25333b; margin:12px 0 8px; }
.pk-chat-empty-icon {
  width:58px; height:58px; display:grid; place-items:center; margin:auto;
  border-radius:18px; background:linear-gradient(135deg, rgba(74,192,224,.22), rgba(255,236,0,.22));
  color:#1e7793;
}
.pk-chat-empty-icon .ui-icon { width:28px; height:28px; }
.pk-chat-composer {
  margin: 0 18px 18px;
  border: 1px solid #cfe0e8;
  border-radius: 17px;
  background:#fff;
  padding: 14px;
  box-shadow: 0 9px 25px rgba(20, 53, 72, .08);
}
.pk-chat-composer label { display:block; font-size:.78rem; font-weight:800; color:#214c67; margin-bottom:7px; }
.pk-chat-composer textarea {
  width:100%; resize:vertical; min-height:82px; box-sizing:border-box;
  border:0; outline:none; font:inherit; line-height:1.5; color:#25333b; background:transparent;
}
.pk-chat-composer-foot { border-top:1px solid #e8eff2; padding-top:10px; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.pk-chat-composer-foot > span { font-size:.8rem; color:#71818a; }
.pk-spinner { display:inline-block; width:13px; height:13px; border:2px solid rgba(255,255,255,.45); border-top-color:#fff; border-radius:50%; animation:pk-spin .7s linear infinite; vertical-align:-2px; }
@keyframes pk-spin { to { transform:rotate(360deg); } }
.pk-chat-sources {
  background:
    radial-gradient(circle at 100% 0%, rgba(255,236,0,.19), transparent 13rem),
    linear-gradient(180deg,#fbfeff,#f6fafb);
  padding: 20px;
  position: sticky;
  top: 18px;
}
.pk-chat-sources-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.pk-chat-source-actions { display:flex; gap:5px; }
.pk-chat-source-actions button {
  border:0; background:#e9f6fa; color:#17627d; font-size:.7rem; font-weight:800; border-radius:999px; padding:6px 8px; cursor:pointer;
}
.pk-chat-source-actions button:hover { background:#d6f0f7; }
.pk-chat-sources-intro { font-size:.82rem; line-height:1.5; color:#687983; }
.pk-chat-source-groups { display:flex; flex-direction:column; gap:8px; margin-top:15px; }
.pk-chat-source-group { border:1px solid #d9e6eb; border-radius:13px; background:#fff; overflow:hidden; }
.pk-chat-source-group[open] { box-shadow:0 7px 18px rgba(28,65,83,.05); }
.pk-chat-source-group > summary {
  display:grid; grid-template-columns:32px minmax(0,1fr) auto; gap:9px; align-items:center;
  cursor:pointer; list-style:none; padding:11px 12px;
}
.pk-chat-source-group > summary::-webkit-details-marker { display:none; }
.pk-source-folder-icon { width:30px; height:30px; border-radius:9px; display:grid; place-items:center; background:#dff4f8; color:#14809f; font-weight:900; }
.pk-chat-source-group[data-purpose="reference"] .pk-source-folder-icon { background:#fff5a8; color:#7b6a00; }
.pk-chat-source-group summary strong { display:block; font-size:.82rem; color:#28363e; }
.pk-chat-source-group summary small { display:block; font-size:.7rem; color:#7b8b94; margin-top:1px; }
.pk-chat-source-group summary b { font-size:.7rem; color:#55717f; background:#eef5f7; border-radius:999px; padding:4px 7px; }
.pk-chat-source-list { border-top:1px solid #ebf0f2; }
.pk-chat-source-row {
  position:relative; display:grid; grid-template-columns:22px minmax(0,1fr); gap:9px; align-items:center;
  padding:9px 11px; border-bottom:1px solid #f0f3f4; cursor:pointer;
}
.pk-chat-source-row:last-child { border-bottom:0; }
.pk-chat-source-row:hover { background:#f7fbfc; }
.pk-chat-source-row.disabled { opacity:.55; cursor:not-allowed; }
.pk-chat-source-row input { position:absolute; opacity:0; pointer-events:none; }
.pk-source-checkmark { width:19px; height:19px; border:1.5px solid #a9c1cc; border-radius:6px; background:#fff; position:relative; }
.pk-chat-source-row input:checked + .pk-source-checkmark { background:#1d91b2; border-color:#1d91b2; }
.pk-chat-source-row input:checked + .pk-source-checkmark:after { content:'✓'; position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:.72rem; font-weight:900; }
.pk-source-name { min-width:0; }
.pk-source-name strong { display:block; font-size:.78rem; color:#2d3b43; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pk-source-name small { display:block; color:#809099; font-size:.68rem; margin-top:1px; }
.pk-chat-safety-note { margin-top:15px; border-radius:13px; padding:12px; background:#fffbe3; border:1px solid #f2df75; }
.pk-chat-safety-note strong { color:#675a00; font-size:.78rem; }
.pk-chat-safety-note p { color:#786d32; font-size:.74rem; line-height:1.45; margin:4px 0 0; }
.pk-chat-no-sources { text-align:center; padding:20px 10px; color:#71818a; }
.pk-chat-no-sources strong { color:#34434b; }
.pk-chat-no-sources a { color:#176b85; font-weight:700; }
.projectkenner-chat-action { background:linear-gradient(135deg, rgba(74,192,224,.13), rgba(255,236,0,.12), #fff); }

@media (max-width: 900px) {
  .pk-chat-layout { grid-template-columns:1fr; }
  .pk-chat-sources { position:static; order:-1; }
  .pk-chat-main { min-height:600px; }
}
@media (max-width: 640px) {
  .pk-chat-conversation-head, .pk-chat-sources-head { flex-direction:column; }
  .pk-chat-message { max-width:96%; }
  .pk-chat-messages { padding:16px; }
  .pk-chat-composer { margin:0 12px 12px; }
  .pk-chat-composer-foot { align-items:flex-start; flex-direction:column; }
  .pk-chat-composer-foot button { width:100%; }
}


/* MVP 8.6b - grounded chat source selector polish */
.pk-chat-sources {
  padding: 22px;
  background:
    radial-gradient(circle at 102% -2%, rgba(255,236,0,.28), transparent 13.5rem),
    radial-gradient(circle at -8% 108%, rgba(74,192,224,.15), transparent 14rem),
    linear-gradient(180deg,#fcfeff 0%,#f7fbfc 100%);
}
.pk-chat-sources-head {
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
}
.pk-chat-sources-title { display:flex; gap:11px; align-items:center; min-width:0; }
.pk-chat-sources-icon {
  width:40px; height:40px; flex:none; display:grid; place-items:center; border-radius:12px;
  background:linear-gradient(145deg,rgba(74,192,224,.24),rgba(255,236,0,.18)); color:#16728e;
}
.pk-chat-sources-icon .ui-icon { width:21px; height:21px; }
.pk-chat-sources-title .eyebrow { margin:0 0 2px; }
.pk-chat-sources-title h2 { margin:0; line-height:1.18; }
.pk-chat-selected-badge {
  flex:none; display:inline-flex; align-items:center; gap:4px; border-radius:999px; padding:6px 9px;
  background:#e8f7fb; border:1px solid rgba(74,192,224,.32); color:#175e76; font-size:.7rem; font-weight:700;
}
.pk-chat-selected-badge b { font-size:.76rem; }
.pk-chat-sources-intro { margin:14px 0 0; font-size:.82rem; line-height:1.52; color:#637781; }
.pk-chat-source-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; margin-top:14px; }
.pk-chat-source-actions button {
  min-height:36px; display:inline-flex; align-items:center; justify-content:center; gap:7px; border:1px solid rgba(74,192,224,.30);
  background:#e9f7fb; color:#155f78; font-size:.72rem; font-weight:800; border-radius:10px; padding:8px 11px; cursor:pointer;
}
.pk-chat-source-actions button .ui-icon { width:15px; height:15px; }
.pk-chat-source-actions button:hover { background:#d8f1f7; border-color:rgba(74,192,224,.55); }
.pk-chat-source-actions button.secondary { background:#fff; color:#5e7079; border-color:#d8e4e9; }
.pk-chat-source-actions button.secondary:hover { background:#f3f7f8; }
.pk-chat-source-groups { margin-top:13px; gap:9px; }
.pk-chat-source-group { border-color:#d4e5eb; box-shadow:0 5px 14px rgba(27,61,79,.035); }
.pk-chat-source-group[open] { border-color:rgba(74,192,224,.46); box-shadow:0 9px 22px rgba(27,61,79,.07); }
.pk-chat-source-group > summary { padding:12px; }
.pk-chat-safety-note { margin-top:14px; background:linear-gradient(135deg,#fffdf0,#fff9d9); }
@media (max-width: 640px) {
  .pk-chat-sources-head { align-items:flex-start; }
  .pk-chat-selected-badge { margin-top:2px; }
  .pk-chat-source-actions { grid-template-columns:1fr; }
}


/* MVP 8.6e - Projectkenner direct knowledge refresh */
.projectkenner-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.projectkenner-index-form{display:flex;align-items:center;gap:9px;margin:0}
.projectkenner-index-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 13px;border:0;border-radius:12px;background:linear-gradient(135deg,#1f6077,#174762);color:#fff;font:inherit;font-size:11px;font-weight:800;cursor:pointer;box-shadow:0 7px 16px rgba(24,72,96,.14)}
.projectkenner-index-button:hover{transform:translateY(-1px);box-shadow:0 9px 19px rgba(24,72,96,.18)}
.projectkenner-index-button:disabled{opacity:.68;cursor:wait;transform:none}
.projectkenner-index-button .ui-icon{width:16px;height:16px}
.projectkenner-index-progress{display:inline-flex;align-items:center;gap:6px;color:#607982;font-size:10px;font-weight:750}
.projectkenner-index-progress[hidden]{display:none}
@media(max-width:760px){.projectkenner-project-header{align-items:flex-start}.projectkenner-header-actions{width:100%;justify-content:flex-start}.projectkenner-index-form{width:100%;flex-wrap:wrap}.projectkenner-index-button{width:100%}}

/* MVP 8.6f - embedding compatibility & diagnostics */
.knowledge-index-diagnostic{margin:14px 0 16px;padding:12px 13px;border:1px solid rgba(74,192,224,.34);border-radius:14px;background:linear-gradient(135deg,rgba(74,192,224,.10),rgba(255,255,255,.94));}
.knowledge-index-diagnostic.needs-refresh{border-color:rgba(216,154,28,.42);background:linear-gradient(135deg,rgba(255,236,0,.17),rgba(255,255,255,.96));}
.knowledge-index-diagnostic-head{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;}
.knowledge-index-diagnostic-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#4ac0e0;color:#173d55;font-weight:900;}
.knowledge-index-diagnostic.needs-refresh .knowledge-index-diagnostic-icon{background:#ffec00;color:#595959;}
.knowledge-index-diagnostic-head strong{display:block;font-size:.83rem;color:#173d55;}
.knowledge-index-diagnostic-head small{display:block;margin-top:2px;color:#6b7d87;font-size:.72rem;line-height:1.35;}
.knowledge-index-diagnostic-head>span:last-child{font-weight:900;color:#173d55;font-size:.78rem;}
.knowledge-index-diagnostic p{margin:8px 0 0;font-size:.72rem;line-height:1.45;color:#6b6250;}

/* MVP 8.6f.1 - Projectkenner refresh loading feedback */
.projectkenner-index-spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.38);border-top-color:#fff;border-radius:50%;display:inline-block;animation:projectkenner-index-spin .8s linear infinite;flex:0 0 auto}
.projectkenner-index-spinner[hidden]{display:none}
.projectkenner-index-button[aria-busy="true"]{min-width:218px}
.projectkenner-index-progress{max-width:230px;line-height:1.35}
@keyframes projectkenner-index-spin{to{transform:rotate(360deg)}}

/* MVP 8.6g - chat history management + evidence popup */
.pk-chat-notice {
  display:flex; align-items:center; gap:10px; margin:14px 0 0; padding:12px 15px;
  border:1px solid #a8dbc7; border-radius:14px; background:#eefaf5; color:#235f4b;
}
.pk-chat-history-toolbar {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 12px; border-bottom:1px solid #e1eaee; font-size:.76rem; color:#74858f;
}
.pk-chat-history-toolbar form { margin:0; }
.pk-history-clear {
  border:0; background:transparent; color:#9a3f54; font-weight:800; cursor:pointer; padding:4px 6px;
}
.pk-chat-history-row {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px;
  padding:4px 6px; border-radius:10px;
}
.pk-chat-history-row:hover, .pk-chat-history-row.active { background:#edf8fb; }
.pk-chat-history-row > a {
  min-width:0; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:8px 6px; color:inherit; text-decoration:none;
}
.pk-chat-history-row form { margin:0; }
.pk-history-delete {
  width:32px; height:32px; display:grid; place-items:center; border:0; border-radius:9px;
  background:#fff2f4; color:#a7425e; cursor:pointer;
}
.pk-history-delete:hover { background:#f9dce4; }
.pk-history-delete .ui-icon { width:16px; height:16px; }

.pk-chat-citations ol { list-style:decimal; }
.pk-chat-citations li { padding:4px 0 6px 4px; }
.pk-citation-open {
  width:100%; display:flex; flex-direction:column; align-items:flex-start; gap:2px;
  border:0; background:transparent; padding:0; color:#126b87; text-align:left; cursor:pointer;
}
.pk-citation-open strong { font-size:.86rem; text-decoration:underline; text-underline-offset:2px; }
.pk-citation-open span { color:#71818a; font-size:.76rem; text-decoration:none; }
.pk-citation-open:hover strong { color:#0d5066; }

.pk-citation-dialog {
  width:min(720px, calc(100vw - 32px)); max-height:min(78vh, 760px); padding:0;
  border:1px solid #b7dfe9; border-radius:22px; background:#fff; color:#202a31;
  box-shadow:0 30px 80px rgba(25,63,82,.22); overflow:hidden;
}
.pk-citation-dialog::backdrop { background:rgba(16,39,52,.44); backdrop-filter:blur(2px); }
.pk-citation-dialog-head {
  display:flex; align-items:flex-start; justify-content:space-between; gap:20px;
  padding:22px 24px 16px; background:linear-gradient(120deg,#eefaff 0%,#fffde5 100%);
  border-bottom:1px solid #d9ebef;
}
.pk-citation-dialog-head h3 { margin:3px 0 0; font-size:1.18rem; }
.pk-dialog-close {
  width:36px; height:36px; border:0; border-radius:50%; background:#173f5a; color:#fff;
  font-size:1.35rem; line-height:1; cursor:pointer;
}
.pk-citation-location {
  margin:18px 24px 0; padding:9px 12px; border-radius:10px; background:#f2f7f9;
  color:#58707c; font-size:.8rem; font-weight:700;
}
.pk-citation-quote {
  margin:16px 24px; padding:18px 20px; border-left:4px solid #4ac0e0; border-radius:0 14px 14px 0;
  background:#f8fcfd; white-space:pre-wrap; line-height:1.65; max-height:42vh; overflow:auto;
}
.pk-citation-dialog-foot { display:flex; justify-content:flex-end; padding:0 24px 22px; }

@media (max-width: 720px) {
  .pk-chat-history-row > a { align-items:flex-start; flex-direction:column; gap:3px; }
  .pk-citation-dialog-head { padding:18px; }
  .pk-citation-location, .pk-citation-quote { margin-left:18px; margin-right:18px; }
}

/* MVP 8.6h - chat evidence viewer and modal UX polish */
.pk-chat-citations {
  margin-top:16px;
  padding-top:13px;
  border-top:1px solid rgba(74,192,224,.20);
}
.pk-chat-citations-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.pk-chat-citations-head > strong {
  color:#294b5f;
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.pk-chat-citations-head > span {
  color:#7d8c94;
  font-size:.68rem;
  font-weight:700;
}
.pk-chat-citation-list {
  display:flex;
  flex-direction:column;
  gap:6px;
}
.pk-citation-open {
  width:100%;
  display:grid;
  grid-template-columns:26px minmax(0,1fr) 22px;
  align-items:center;
  gap:9px;
  padding:8px 10px;
  border:1px solid #dce9ee;
  border-radius:11px;
  background:rgba(255,255,255,.72);
  color:#294a5c;
  text-align:left;
  cursor:pointer;
  transition:border-color .16s ease, background .16s ease, transform .16s ease;
}
.pk-citation-open:hover {
  background:#f8fcfd;
  border-color:rgba(74,192,224,.58);
  transform:translateY(-1px);
}
.pk-citation-number {
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:linear-gradient(145deg,rgba(74,192,224,.20),rgba(255,236,0,.15));
  color:#196f88;
  font-size:.7rem;
  font-weight:900;
}
.pk-citation-meta { min-width:0; }
.pk-citation-meta strong {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#294a5c;
  font-size:.78rem;
  text-decoration:none;
}
.pk-citation-meta span {
  display:block;
  margin-top:2px;
  color:#7c8d95;
  font-size:.69rem;
}
.pk-citation-arrow {
  justify-self:end;
  color:#4a7a8d;
  font-weight:900;
}

.pk-citation-dialog {
  width:min(780px, calc(100vw - 34px));
  max-height:min(84vh, 820px);
  padding:0;
  border:1px solid rgba(74,192,224,.42);
  border-radius:24px;
  background:#fff;
  color:#202a31;
  box-shadow:0 34px 90px rgba(25,63,82,.28);
  overflow:hidden;
}
.pk-citation-dialog::backdrop,
.pk-delete-dialog::backdrop {
  background:rgba(29,49,57,.48);
  backdrop-filter:blur(4px);
}
.pk-citation-dialog-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:22px 24px 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255,236,0,.24), transparent 10rem),
    linear-gradient(120deg,#eefdff 0%,#fff 58%,#fffde8 100%);
  border-bottom:1px solid #dcecef;
}
.pk-citation-dialog-head h3 { margin:3px 0 0; font-size:1.24rem; color:#22343e; }
.pk-citation-dialog-head p:last-child { margin:7px 0 0; color:#6e8089; font-size:.78rem; line-height:1.45; }
.pk-dialog-close {
  width:38px;
  height:38px;
  flex:none;
  display:grid;
  place-items:center;
  border:0;
  border-radius:12px;
  background:#173f5a;
  color:#fff;
  font-size:1.35rem;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(23,63,90,.15);
}
.pk-citation-dialog-body {
  max-height:calc(min(84vh, 820px) - 174px);
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:18px 24px 8px;
  scroll-behavior:smooth;
}
.pk-evidence-section {
  padding:0 0 18px;
  margin:0 0 18px;
  border-bottom:1px solid #e6eef1;
  scroll-margin-top:12px;
}
.pk-evidence-section:last-child { margin-bottom:0; border-bottom:0; }
.pk-evidence-section-head {
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  gap:10px;
  align-items:center;
  margin-bottom:10px;
}
.pk-evidence-number {
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#ddf4fa;
  color:#15718c;
  font-size:.72rem;
  font-weight:900;
}
.pk-evidence-section-head strong {
  display:block;
  color:#273c47;
  font-size:.88rem;
  overflow-wrap:anywhere;
}
.pk-evidence-section-head small {
  display:block;
  margin-top:2px;
  color:#758790;
  font-size:.72rem;
}
.pk-evidence-passage {
  padding:16px 18px;
  border-left:4px solid #4ac0e0;
  border-radius:0 14px 14px 0;
  background:linear-gradient(135deg,#f6fbfd,#fbfcf7);
  color:#33454e;
  white-space:pre-wrap;
  line-height:1.68;
  font-size:.9rem;
}
.pk-citation-dialog-foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 24px 20px;
  border-top:1px solid #e7eff2;
  background:#fbfdfe;
}
.pk-citation-dialog-foot > span { color:#74858e; font-size:.72rem; font-weight:700; }

.pk-delete-dialog {
  width:min(480px, calc(100vw - 34px));
  padding:26px;
  border:1px solid rgba(74,192,224,.35);
  border-radius:24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,236,0,.20), transparent 10rem),
    linear-gradient(145deg,#fff,#f8fcfd);
  color:#26363e;
  box-shadow:0 30px 80px rgba(25,63,82,.25);
}
.pk-delete-dialog-icon {
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:linear-gradient(145deg,#fff0f4,#ffe7eb);
  color:#b34d67;
  margin-bottom:15px;
}
.pk-delete-dialog-icon .ui-icon { width:23px; height:23px; }
.pk-delete-dialog-copy h3 { margin:4px 0 8px; font-size:1.25rem; color:#26363e; }
.pk-delete-dialog-copy p:last-child { margin:0; color:#657780; line-height:1.55; font-size:.84rem; }
.pk-delete-dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:9px;
  margin-top:22px;
  padding-top:17px;
  border-top:1px solid #e3ecef;
}
.pk-delete-confirm-button {
  border:1px solid #b34d67;
  border-radius:11px;
  padding:9px 14px;
  background:#a9415c;
  color:#fff;
  font:inherit;
  font-size:.8rem;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 7px 16px rgba(169,65,92,.16);
}
.pk-delete-confirm-button:hover { background:#92364f; }

@media (max-width:640px) {
  .pk-citation-dialog-head { padding:18px; }
  .pk-citation-dialog-body { padding:15px 18px 6px; }
  .pk-citation-dialog-foot { padding:12px 18px 17px; }
  .pk-citation-open { grid-template-columns:24px minmax(0,1fr) 18px; padding:8px; }
  .pk-delete-dialog { padding:21px; }
  .pk-delete-dialog-actions { flex-direction:column-reverse; }
  .pk-delete-dialog-actions button { width:100%; }
}


/* MVP 8.6h.2 - citation card and evidence modal polish */
.pk-chat-citation-list{
  gap:8px;
}
.pk-citation-open{
  width:100%!important;
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr) 18px!important;
  align-items:center!important;
  gap:10px!important;
  padding:9px 11px!important;
  border:1px solid #d8e8ed!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,#fbfdfe 0%,#f6fbfc 100%)!important;
  color:#2f4b59!important;
  box-shadow:0 3px 10px rgba(24,72,96,.04)!important;
  text-align:left!important;
  cursor:pointer!important;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important;
}
.pk-citation-open:hover{
  transform:none!important;
  background:linear-gradient(135deg,#f7fcfd,#eef9fb)!important;
  border-color:#a9dbe6!important;
  box-shadow:0 5px 14px rgba(24,72,96,.07)!important;
}
.pk-citation-number{
  width:26px!important;
  height:26px!important;
  border-radius:9px!important;
  background:#e3f5f9!important;
  color:#19718a!important;
  font-size:.69rem!important;
}
.pk-citation-meta strong{
  display:block!important;
  color:#2c4958!important;
  font-size:.78rem!important;
  font-weight:800!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.pk-citation-meta span{
  display:block!important;
  margin-top:2px!important;
  color:#7d8d95!important;
  font-size:.68rem!important;
  font-weight:600!important;
  text-decoration:none!important;
}
.pk-citation-arrow{
  color:#66a8b8!important;
  font-size:.78rem!important;
}
.pk-citation-dialog{
  width:min(820px,calc(100vw - 40px))!important;
  max-height:min(86vh,860px)!important;
  border-radius:22px!important;
}
.pk-citation-dialog-head{
  position:relative;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 42px!important;
  align-items:start!important;
  gap:18px!important;
  padding:26px 26px 20px!important;
  overflow:visible!important;
}
.pk-citation-dialog-copy{
  min-width:0;
  padding-top:1px;
}
.pk-citation-dialog-head .eyebrow{
  margin:0 0 5px!important;
  line-height:1.2!important;
  color:#235a6d!important;
}
.pk-citation-dialog-head h3{
  margin:0!important;
  max-width:100%;
  color:#22343e!important;
  font-size:1.28rem!important;
  line-height:1.2!important;
  overflow-wrap:anywhere;
}
.pk-citation-dialog-head p:last-child{
  margin:8px 0 0!important;
  max-width:620px;
  line-height:1.5!important;
}
.pk-dialog-close{
  position:static!important;
  width:40px!important;
  height:40px!important;
  margin:0!important;
  align-self:start!important;
  border-radius:12px!important;
  font-size:1.2rem!important;
}
.pk-citation-dialog-body{
  max-height:calc(min(86vh,860px) - 182px)!important;
  padding:20px 26px 10px!important;
}
.pk-evidence-section{
  padding-bottom:20px!important;
  margin-bottom:20px!important;
}
.pk-evidence-section-head{
  grid-template-columns:34px minmax(0,1fr)!important;
  gap:12px!important;
  margin-bottom:12px!important;
}
.pk-evidence-section-head strong{
  font-size:.9rem!important;
  line-height:1.35!important;
}
.pk-evidence-passage{
  padding:17px 19px!important;
  border-left-width:3px!important;
  border-radius:0 13px 13px 0!important;
  background:#f8fbfc!important;
  line-height:1.7!important;
}
.pk-citation-dialog-foot{
  padding:14px 26px 20px!important;
}
@media(max-width:640px){
  .pk-citation-dialog{width:min(94vw,820px)!important;}
  .pk-citation-dialog-head{grid-template-columns:minmax(0,1fr) 38px!important;padding:20px 18px 16px!important;gap:12px!important;}
  .pk-dialog-close{width:36px!important;height:36px!important;}
  .pk-citation-dialog-body{padding:16px 18px 8px!important;}
  .pk-citation-dialog-foot{padding:12px 18px 16px!important;}
  .pk-citation-open{grid-template-columns:26px minmax(0,1fr) 16px!important;padding:8px 9px!important;}
}

/* MVP 8.6h.3 - citation contrast and alignment fix */
.pk-chat-citations button.pk-citation-open,
.pk-chat-citations button.pk-citation-open:not(.danger-button) {
  width:100% !important;
  display:grid !important;
  grid-template-columns:30px minmax(0,1fr) 18px !important;
  align-items:center !important;
  gap:11px !important;
  padding:10px 12px !important;
  border:1px solid #d6e7ec !important;
  border-radius:13px !important;
  background:#f9fcfd !important;
  background-image:linear-gradient(135deg,#ffffff 0%,#f5fbfc 100%) !important;
  color:#294a58 !important;
  box-shadow:0 3px 10px rgba(24,72,96,.045) !important;
  text-align:left !important;
  transform:none !important;
}
.pk-chat-citations button.pk-citation-open:hover,
.pk-chat-citations button.pk-citation-open:not(.danger-button):hover {
  background:#f2fafc !important;
  background-image:linear-gradient(135deg,#f8fdfe 0%,#edf8fb 100%) !important;
  border-color:#9fd5e2 !important;
  color:#294a58 !important;
  box-shadow:0 5px 14px rgba(24,72,96,.075) !important;
  transform:none !important;
}
.pk-chat-citations .pk-citation-open .pk-citation-number {
  box-sizing:border-box !important;
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  min-height:28px !important;
  padding:0 !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  justify-self:center !important;
  align-self:center !important;
  border-radius:9px !important;
  background:#ddf4fa !important;
  color:#126c86 !important;
  font-size:.72rem !important;
  font-weight:900 !important;
  line-height:1 !important;
  text-align:center !important;
  text-decoration:none !important;
}
.pk-chat-citations .pk-citation-open .pk-citation-meta {
  min-width:0 !important;
  color:#294a58 !important;
}
.pk-chat-citations .pk-citation-open .pk-citation-meta strong {
  display:block !important;
  color:#254755 !important;
  font-size:.79rem !important;
  font-weight:800 !important;
  line-height:1.3 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.pk-chat-citations .pk-citation-open .pk-citation-meta span {
  display:block !important;
  margin-top:3px !important;
  color:#72868f !important;
  font-size:.69rem !important;
  font-weight:650 !important;
  line-height:1.25 !important;
  text-decoration:none !important;
}
.pk-chat-citations .pk-citation-open .pk-citation-arrow {
  color:#4f9db0 !important;
  font-size:.82rem !important;
  line-height:1 !important;
  justify-self:end !important;
}

/* MVP 8.7 - Projectkenner analyses workspace */
.pk-analysis-hero{display:flex;justify-content:space-between;gap:28px;align-items:flex-start;margin-top:16px;padding:30px 34px;border:1px solid rgba(74,192,224,.34);border-radius:26px;background:linear-gradient(120deg,rgba(74,192,224,.18),rgba(255,255,255,.92) 48%,rgba(255,236,0,.18));box-shadow:0 18px 45px rgba(29,67,92,.08)}
.pk-analysis-hero h1{margin:4px 0 8px;font-size:clamp(30px,4vw,48px);line-height:1.05}.pk-analysis-hero p:last-child{max-width:760px;color:#667784;margin:0}
.pk-analysis-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:22px;margin-top:22px;align-items:start}.pk-analysis-main{display:grid;gap:22px}.pk-analysis-sidebar{position:sticky;top:20px}
.pk-analysis-task-panel,.pk-analysis-result-panel,.pk-analysis-sidebar form{border:1px solid rgba(74,192,224,.28);border-radius:24px;background:linear-gradient(145deg,#fff,rgba(74,192,224,.06));box-shadow:0 16px 40px rgba(26,63,87,.07)}
.pk-analysis-task-panel{padding:24px}.pk-analysis-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
button.pk-analysis-task-card{display:grid!important;grid-template-columns:44px 1fr;align-items:start;text-align:left;gap:12px;width:100%;padding:16px!important;border:1px solid #d9e8ee!important;border-radius:18px!important;background:#fff!important;color:#26343b!important;box-shadow:none!important;min-height:112px;cursor:pointer}
button.pk-analysis-task-card:hover{border-color:#4ac0e0!important;transform:translateY(-1px)}button.pk-analysis-task-card.active{border-color:#4ac0e0!important;background:linear-gradient(135deg,rgba(74,192,224,.14),rgba(255,236,0,.08))!important;box-shadow:0 8px 20px rgba(74,192,224,.12)!important}
.pk-analysis-task-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:#e8f7fb;color:#237f9b}.pk-analysis-task-card:nth-child(2) .pk-analysis-task-icon{background:#fff9c7;color:#8b7700}.pk-analysis-task-card:nth-child(3) .pk-analysis-task-icon{background:#f7eef8;color:#8b5f8b}.pk-analysis-task-card:nth-child(4) .pk-analysis-task-icon{background:#eef3f5;color:#595959}
.pk-analysis-task-card strong{display:block;font-size:15px;margin:2px 0 5px}.pk-analysis-task-card small{display:block;color:#71818a;line-height:1.45;font-size:12px;font-weight:500}
.pk-analysis-result-panel{padding:28px;min-height:360px}.pk-analysis-result-panel.empty{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;background:linear-gradient(135deg,rgba(74,192,224,.12),#fff 48%,rgba(255,236,0,.10))}.pk-analysis-empty-icon{width:58px;height:58px;display:flex;align-items:center;justify-content:center;border-radius:18px;background:#fff4a4;color:#776900;margin-bottom:18px}.pk-analysis-empty-icon .ui-icon{width:28px;height:28px}.pk-analysis-result-panel.empty h2{margin:4px 0 8px}.pk-analysis-result-panel.empty>p:last-child{max-width:650px;color:#697a83}
.pk-analysis-result-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid #dce9ee}.pk-analysis-result-head h2{margin:3px 0 5px}.pk-analysis-result-head p{margin:0;color:#70818a}.pk-analysis-status{white-space:nowrap;padding:8px 12px;border-radius:999px;background:#e9f7ef;color:#28694b;font-size:12px;font-weight:800}.pk-analysis-status.warning{background:#fff7d7;color:#8c6c00}
.pk-analysis-note,.pk-analysis-conflicts{display:flex;gap:10px;align-items:flex-start;padding:14px 16px;border-radius:15px;background:#fff8d9;border:1px solid #f0d660;margin:10px 0}.pk-analysis-note strong,.pk-analysis-conflicts strong{white-space:nowrap}.pk-analysis-conflicts{display:block;background:#fff2ee;border-color:#f3c2af}.pk-analysis-conflicts ul{margin:8px 0 0 18px;padding:0}.pk-analysis-note.is-info{background:#f3fafc;border-color:#cfe4eb;color:#365865}.pk-analysis-note.is-info strong{color:#24566c}
.pk-analysis-citations{margin-top:22px;padding-top:18px;border-top:1px solid #dce9ee}.pk-analysis-citations-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.pk-analysis-citations-head span{font-size:12px;color:#73848e}
button.pk-analysis-citation{display:grid!important;grid-template-columns:32px minmax(0,1fr) 18px!important;gap:10px;align-items:center;width:100%;margin:8px 0;padding:10px 12px!important;border:1px solid #d9e7ec!important;border-radius:14px!important;background:#f9fcfd!important;color:#283942!important;text-align:left!important;box-shadow:none!important;cursor:pointer}.pk-analysis-citation:hover{background:#eef9fc!important;border-color:#9dddea!important}.pk-analysis-citation-number{width:30px;height:30px;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:10px;background:#dff5fa;color:#246f86;font-weight:800}.pk-analysis-citation strong{display:block;color:#263942;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pk-analysis-citation small{display:block;color:#72848e;font-size:11px;margin-top:2px}.pk-analysis-citation b{color:#2f91ad}
.pk-analysis-sidebar form{padding:22px;background:linear-gradient(155deg,#fff,rgba(74,192,224,.08) 62%,rgba(255,236,0,.13))}.pk-analysis-source-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.pk-analysis-source-head h2{margin:3px 0}.pk-analysis-selected-pill{padding:7px 10px;border:1px solid #a9ddeb;border-radius:999px;background:#eaf9fc;color:#286c82;font-size:11px;white-space:nowrap}.pk-analysis-source-intro{color:#6e808a;line-height:1.5;font-size:13px}.pk-analysis-source-actions{display:flex;gap:8px;margin:15px 0}.pk-analysis-source-actions button{flex:1;font-size:12px!important;padding:9px!important}
.pk-analysis-source-groups{display:grid;gap:10px}.pk-analysis-source-group{border:1px solid #d9e7ec;border-radius:15px;background:rgba(255,255,255,.82);overflow:hidden}.pk-analysis-source-group summary{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px;cursor:pointer;list-style:none}.pk-analysis-source-group summary::-webkit-details-marker{display:none}.pk-analysis-source-group summary>span{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#e7f7fb;color:#267f99}.pk-analysis-source-group summary strong{display:block;font-size:12px}.pk-analysis-source-group summary small{display:block;color:#7c8c94;font-size:10px}.pk-analysis-source-group summary>b{font-size:11px;color:#75858e}.pk-analysis-source-group>div{border-top:1px solid #e5eef1}
.pk-analysis-source-row{display:grid;grid-template-columns:22px minmax(0,1fr);gap:9px;align-items:start;padding:11px 12px;border-bottom:1px solid #edf2f4;cursor:pointer}.pk-analysis-source-row:last-child{border-bottom:0}.pk-analysis-source-row input{position:absolute;opacity:0;pointer-events:none}.pk-analysis-source-check{width:19px;height:19px;border:1.5px solid #a9c8d2;border-radius:6px;background:#fff;margin-top:1px}.pk-analysis-source-row input:checked+.pk-analysis-source-check{background:#2f9fbd;border-color:#2f9fbd;box-shadow:inset 0 0 0 4px #2f9fbd}.pk-analysis-source-row input:checked+.pk-analysis-source-check:after{content:'✓';display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:900;height:100%}.pk-analysis-source-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.pk-analysis-source-row small{display:block;color:#819098;font-size:10px;margin-top:2px}.pk-analysis-source-row.disabled{opacity:.5;cursor:not-allowed}
.pk-analysis-run-card{margin-top:16px;padding:16px;border-radius:17px;background:#143f5f;color:white}.pk-analysis-run-card strong{display:block;font-size:14px}.pk-analysis-run-card p{font-size:11px;line-height:1.45;color:#d8e8ef;margin:5px 0 14px}.pk-analysis-run-card .impact-primary-button{width:100%;background:#fff!important;color:#143f5f!important}.pk-analysis-run-card .projectkenner-index-spinner{width:15px;height:15px;border-color:rgba(20,63,95,.2);border-top-color:#143f5f}
.pk-analysis-alert{display:flex;gap:16px;align-items:center;margin-top:18px;padding:14px 18px;border-radius:16px}.pk-analysis-alert.error{background:#fff0eb;border:1px solid #f2b6a1;color:#8d351b}.projectkenner-analysis-action{background:linear-gradient(135deg,rgba(255,236,0,.17),rgba(74,192,224,.10))!important}
@media(max-width:980px){.pk-analysis-layout{grid-template-columns:1fr}.pk-analysis-sidebar{position:static}.pk-analysis-task-grid{grid-template-columns:1fr}.pk-analysis-hero{padding:24px}}

/* MVP 8.7a - BLVC knowledge hub + persistent analyses */
.knowledge-subtabs{display:flex;gap:8px;align-items:center;margin:14px 0 20px;padding:7px;border:1px solid #cfe3ec;border-radius:16px;background:linear-gradient(135deg,#f7fcfe,#fffdf2);box-shadow:0 8px 20px rgba(34,75,99,.05)}
.knowledge-subtab{display:inline-flex;align-items:center;justify-content:center;min-width:112px;padding:10px 16px;border-radius:11px;color:#32566a;text-decoration:none;font-weight:800;font-size:13px}
.knowledge-subtab:hover{background:#edf8fb}.knowledge-subtab.active{background:#174768;color:#fff;box-shadow:0 5px 12px rgba(23,71,104,.16)}
.knowledge-header-actions{display:flex;gap:10px;align-items:center}
.pk-analysis-history{border:1px solid #d7e8ee;border-radius:18px;background:linear-gradient(135deg,#f7fcfe,#fffdf3);overflow:hidden}
.pk-analysis-history summary{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 18px;cursor:pointer;list-style:none}.pk-analysis-history summary::-webkit-details-marker{display:none}
.pk-analysis-history summary strong{display:block;color:#284a5a}.pk-analysis-history summary small{display:block;color:#7a8d95;margin-top:2px;font-size:11px}
.pk-analysis-history-list{border-top:1px solid #dce9ee;display:grid}.pk-analysis-history-list a{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:12px 18px;text-decoration:none;color:#2b4653;border-bottom:1px solid #e8f0f3}.pk-analysis-history-list a:last-child{border-bottom:0}.pk-analysis-history-list a:hover{background:#f1fafc}.pk-analysis-history-list strong{display:block;font-size:13px}.pk-analysis-history-list small{display:block;color:#7a8b93;font-size:11px;margin-top:2px}.pk-analysis-history-list b{font-size:11px;color:#25809b;white-space:nowrap}
@media(max-width:760px){.knowledge-subtabs{overflow-x:auto}.knowledge-subtab{min-width:96px}.knowledge-header-actions{align-items:flex-end;flex-direction:column}}

/* MVP 8.7b - analysis evidence + history UX */
button.pk-analysis-task-card:hover,
button.pk-analysis-task-card.active:hover {
    background: linear-gradient(135deg, rgba(74,192,224,.18), rgba(255,236,0,.10)) !important;
    color: #26343b !important;
    border-color: #4AC0E0 !important;
    box-shadow: 0 8px 20px rgba(74,192,224,.12) !important;
}
button.pk-analysis-task-card:hover strong,
button.pk-analysis-task-card:hover small,
button.pk-analysis-task-card.active:hover strong,
button.pk-analysis-task-card.active:hover small { color: inherit !important; }
button.pk-analysis-task-card:hover small,
button.pk-analysis-task-card.active:hover small { color: #667982 !important; }

button.pk-analysis-inline-citation {
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 2px !important;
    margin: 0 1px !important;
    border: 0 !important;
    border-bottom: 1px dotted rgba(47,145,173,.45) !important;
    border-radius: 2px !important;
    background: transparent !important;
    color: #2b758a !important;
    box-shadow: none !important;
    font: inherit !important;
    font-size: .92em !important;
    font-weight: 600 !important;
    line-height: inherit !important;
    vertical-align: baseline !important;
    cursor: pointer;
}
button.pk-analysis-inline-citation:hover,
button.pk-analysis-inline-citation:focus-visible {
    background: rgba(74,192,224,.08) !important;
    color: #175b70 !important;
    border-bottom-color: #2f91ad !important;
    text-decoration: none !important;
}

.pk-analysis-history-toolbar {
    display:flex; justify-content:space-between; align-items:center; gap:14px;
    padding:10px 16px; border-top:1px solid #dce9ee; background:rgba(255,255,255,.72);
    color:#71848d; font-size:11px;
}
.pk-analysis-history-toolbar form { margin:0; }
.pk-analysis-history-row {
    display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:stretch;
    border-bottom:1px solid #e8f0f3;
}
.pk-analysis-history-row:last-child { border-bottom:0; }
.pk-analysis-history-row > a {
    border-bottom:0 !important;
    min-width:0;
}
.pk-analysis-history-row > form {
    display:flex; align-items:center; padding:8px 12px 8px 4px; margin:0;
}
.pk-analysis-history-row .pk-history-delete {
    width:34px !important; height:34px !important; padding:0 !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
    background:#fff !important; border:1px solid #d7e6eb !important; color:#6d7f88 !important;
    border-radius:10px !important; box-shadow:none !important;
}
.pk-analysis-history-row .pk-history-delete:hover {
    background:#fff1ed !important; border-color:#efb7a5 !important; color:#9b452d !important;
}
.pk-analysis-history-row .pk-history-delete .ui-icon { width:16px; height:16px; }

@media (max-width:700px){
  .pk-analysis-history-toolbar{align-items:flex-start;flex-direction:column}
}

/* MVP 8.7b.2 - conversation history title + UX polish */
.pk-chat-history-menu > summary {
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:150px;
  text-align:center;
  color:#163f59;
  border-color:#9fdced;
  background:linear-gradient(135deg, rgba(74,192,224,.14), rgba(255,236,0,.18));
  box-shadow:0 6px 16px rgba(31,85,111,.08);
}
.pk-chat-history-menu[open] > summary {
  background:linear-gradient(135deg, rgba(74,192,224,.22), rgba(255,236,0,.24));
}
.pk-chat-history-list {
  padding:10px;
  border-color:#b9dfe9;
  background:linear-gradient(180deg,#ffffff 0%,#f8fcfd 100%);
}
.pk-chat-history-toolbar {
  padding:8px 9px 10px;
}
.pk-chat-history-row {
  padding:4px;
  border:1px solid transparent;
}
.pk-chat-history-row:hover,
.pk-chat-history-row.active {
  border-color:#c7e7ef;
  background:linear-gradient(135deg,rgba(74,192,224,.10),rgba(255,236,0,.08));
}
.pk-chat-history-row > a {
  min-height:42px;
  justify-content:center;
  padding:8px 9px;
  text-align:center;
}
.pk-chat-history-row > a strong {
  display:block;
  width:100%;
  color:#173d58;
  font-size:.86rem;
  line-height:1.25;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
.pk-history-delete {
  align-self:center;
}


/* MVP 8.7b.3 - conversation history timestamp polish */
.pk-chat-history-row > a {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:5px;
}
.pk-chat-history-time {
  display:block;
  width:100%;
  margin-top:1px;
  color:#7b8f9b !important;
  font-size:.66rem;
  font-weight:600;
  line-height:1.1;
  letter-spacing:.01em;
  text-align:left;
}
.pk-chat-history-row:hover .pk-chat-history-time,
.pk-chat-history-row.active .pk-chat-history-time {
  color:#627985 !important;
}

/* MVP 8.8b - central library management: upload first, curate later */
.library-hero{display:flex;justify-content:space-between;gap:28px;align-items:flex-end;margin:10px 0 22px;padding:28px 30px;border:1px solid #cce6ed;border-radius:24px;background:linear-gradient(125deg,#e9f9fd 0%,#fff 54%,#fff9b7 100%);box-shadow:0 14px 32px rgba(43,74,85,.07)}
.library-hero h1{margin:5px 0 8px;font-size:clamp(1.8rem,3vw,2.55rem);color:#3f4649}.library-hero p{max-width:760px;color:#65737a;line-height:1.55;margin:0}.library-stats{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.library-stats span{min-width:96px;padding:12px 14px;border:1px solid rgba(74,192,224,.28);border-radius:15px;background:rgba(255,255,255,.82);text-align:center}.library-stats strong{display:block;font-size:1.35rem;color:#347487}.library-stats small{font-size:.7rem;color:#6d797f;font-weight:750}
.library-layout{display:grid;grid-template-columns:minmax(270px,340px) minmax(0,1fr);gap:18px;align-items:start}.library-upload-panel{position:sticky;top:16px;padding:22px;background:linear-gradient(155deg,#eefafd,#fff 58%,#fffbea);border-color:#cbe3e9}.library-upload-heading{display:flex;gap:12px;align-items:center}.library-upload-heading h2{margin:1px 0 0}.library-upload-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#4ac0e0;color:#fff;font-size:1.6rem;font-weight:800}.library-upload-intro{font-size:.84rem;line-height:1.55;color:#64757d;margin:13px 0 16px}.library-upload-form{gap:12px}.library-dropzone{min-height:150px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1.5px dashed #87cadc!important;background:#f8fdff!important;padding:20px!important;border-radius:16px!important;cursor:pointer}.library-dropzone:hover,.library-dropzone.has-selection{background:#edfafd!important;border-color:#4ac0e0!important}.library-dropzone input{position:absolute;opacity:0;pointer-events:none}.library-drop-icon{font-size:1.45rem;color:#1682a4}.library-dropzone strong{font-size:.83rem;color:#31515e}.library-dropzone small{margin-top:5px;color:#71858e}.library-optional-field span,.library-inline-hint{font-size:.66rem;color:#8a989e;font-weight:600;margin-left:5px}.library-form-hint{display:block;color:#74858c;font-size:.7rem;line-height:1.45}
.library-content-panel{padding:22px}.library-content-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.library-content-head h2{margin:1px 0 4px}.library-content-head p{margin:0;color:#728087;font-size:.82rem}.library-curation-badge{white-space:nowrap;border:1px solid #e7da5a;background:#fffbd8;color:#6d6400;border-radius:999px;padding:7px 10px;font-size:.7rem;font-weight:800}.library-filterbar{display:grid;grid-template-columns:minmax(180px,1fr) 155px 165px auto auto;gap:8px;margin:18px 0 12px;padding:11px;border:1px solid #dce7ea;border-radius:14px;background:#f8fbfc}.library-filterbar input,.library-filterbar select{min-width:0;border:1px solid #ccdce1;border-radius:10px;padding:9px 10px;background:#fff}.library-clear-filter{align-self:center;font-size:.72rem;color:#6f7c82;font-weight:750}.library-bulkbar{display:grid;grid-template-columns:minmax(140px,1fr) 160px 170px auto;gap:8px;align-items:center;padding:9px 11px;margin-bottom:10px;border:1px solid #e7e4b8;border-radius:13px;background:#fffef2}.library-bulkbar span strong,.library-bulkbar span small{display:block}.library-bulkbar span strong{font-size:.76rem}.library-bulkbar span small{font-size:.65rem;color:#879198}.library-bulkbar select{border:1px solid #d8dedf;border-radius:9px;padding:8px;background:#fff;font-size:.75rem}
.library-document-list{display:flex;flex-direction:column;gap:9px}.library-document-card{border:1px solid #d7e5e9;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 5px 15px rgba(40,67,78,.035)}.library-document-summary{display:grid;grid-template-columns:25px 43px minmax(0,1fr) auto;gap:11px;align-items:center;padding:13px 14px}.library-select{display:grid;place-items:center}.library-select input{position:absolute;opacity:0}.library-select span{width:18px;height:18px;border:1.5px solid #a9c2cb;border-radius:5px;background:#fff;position:relative}.library-select input:checked+span{background:#3299b8;border-color:#3299b8}.library-select input:checked+span:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:.68rem;font-weight:900}.library-file-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e9f7fb;color:#227993;font-weight:900;font-size:.63rem}.library-document-copy{min-width:0}.library-document-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.library-document-copy h3{font-size:.9rem;margin:0;color:#354248}.library-document-copy p{margin:3px 0 0;color:#7a898f;font-size:.7rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-role-chip{font-size:.62rem;font-weight:800;padding:4px 7px;border-radius:999px;background:#eef5f7;color:#526b75}.library-role-chip.role-example{background:#fff7c9;color:#726700}.library-role-chip.role-legislation,.library-role-chip.role-policy{background:#eaf3ff;color:#315f91}.library-document-meta{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.library-document-meta span{font-size:.61rem;border-radius:999px;padding:3px 6px;background:#f2f5f6;color:#65757c}.library-document-meta .quality-unreviewed{background:#fff9cf;color:#706500}.library-document-meta .quality-strong{background:#e7f7ef;color:#337458}.library-document-meta .quality-weak{background:#fff0ee;color:#99534b}.library-curation-drawer summary{list-style:none;cursor:pointer;border:1px solid #cfe1e6;background:#f5fafb;border-radius:10px;padding:8px 10px;font-size:.7rem;font-weight:800;color:#3c7181}.library-curation-drawer summary::-webkit-details-marker{display:none}.library-curation-content{border-top:1px solid #e5edef;background:linear-gradient(180deg,#fbfdfd,#fff);padding:15px 16px}.library-curation-form{display:flex;flex-direction:column;gap:13px}.library-curation-basics{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1.3fr;gap:9px}.library-curation-form label{font-size:.68rem;font-weight:800;color:#5c6e76}.library-curation-form input,.library-curation-form select,.library-curation-form textarea{width:100%;box-sizing:border-box;margin-top:5px;border:1px solid #d1dfe3;border-radius:9px;padding:8px 9px;background:#fff;font:inherit;font-weight:500}.library-taxonomy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.library-taxonomy-group{border:1px solid #e1e9eb;border-radius:12px;padding:10px;margin:0}.library-taxonomy-group legend{padding:0 4px;font-size:.68rem;font-weight:850;color:#50636c}.library-chip-picker{display:flex;gap:5px;flex-wrap:wrap}.library-chip-picker label{cursor:pointer}.library-chip-picker input{position:absolute;opacity:0;width:auto}.library-chip-picker span{display:inline-block;padding:5px 7px;border:1px solid #d8e3e6;border-radius:999px;background:#fff;color:#65757c;font-size:.62rem;font-weight:700}.library-chip-picker input:checked+span{background:#e4f6fb;border-color:#75c8dd;color:#176c86}.library-curation-actions{display:flex;justify-content:flex-end}.library-archive-form{display:flex;justify-content:flex-end;margin-top:8px}.library-notice{display:flex;gap:10px;align-items:center;margin:0 0 13px;padding:11px 14px;border-radius:12px;font-size:.76rem}.library-notice.success{background:#eefaf5;border:1px solid #b7dfce;color:#2c674f}.library-notice.warning{background:#fff9df;border:1px solid #eadb79;color:#706500}.library-empty{margin-top:16px}
@media(max-width:1050px){.library-layout{grid-template-columns:1fr}.library-upload-panel{position:static}.library-curation-basics{grid-template-columns:repeat(2,minmax(0,1fr))}.library-filterbar{grid-template-columns:1fr 1fr}.library-bulkbar{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.library-hero{align-items:flex-start;flex-direction:column}.library-stats{justify-content:flex-start}.library-content-head{flex-direction:column}.library-filterbar,.library-bulkbar,.library-curation-basics,.library-taxonomy-grid{grid-template-columns:1fr}.library-document-summary{grid-template-columns:25px 40px minmax(0,1fr)}.library-curation-drawer{grid-column:2 / -1}.library-document-title-row{align-items:flex-start}}

/* MVP 8.8c - central library polish, AI curation and taxonomy management */
.impact-tool-library{border-top:5px solid var(--around-grey);background:linear-gradient(160deg,#fff 0%,#f7faf9 58%,#f2fbfd 100%)}
.impact-tool-library .impact-tool-icon{background:linear-gradient(145deg,#fff9ab,#eefbfe)!important;color:#595959!important;border-color:#dcdcb8!important}
.impact-tool-library .impact-tool-state{background:#fff8b5;color:#686100}
.impact-tool-library:hover{border-color:#cfd9d7!important;border-top-color:var(--around-grey)!important}

.library-ai-upload-toggle{display:flex!important;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid #c7e5ec;border-radius:12px;background:linear-gradient(135deg,#eefafd,#fffde3);cursor:pointer}
.library-ai-upload-toggle input{width:18px!important;height:18px;margin:2px 0 0!important;accent-color:#37a8c7;flex:0 0 auto}
.library-ai-upload-toggle span{display:flex;flex-direction:column;gap:2px}.library-ai-upload-toggle strong{font-size:.74rem;color:#31505b}.library-ai-upload-toggle small{font-size:.65rem;line-height:1.4;color:#718189;font-weight:550}
.library-ai-chip{padding:4px 7px;border-radius:999px;background:#e3f7fc;color:#177995;font-size:.59rem;font-weight:850;border:1px solid #bde3ec}.library-ai-chip.is-confirmed{background:#eaf8ef;color:#347157;border-color:#c5e4d1}.library-ai-chip.is-error{background:#fff1ee;color:#9a554d;border-color:#efcdc8}
.library-ai-curation-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:13px;padding:12px 13px;border:1px solid #c7e3ea;border-radius:13px;background:linear-gradient(120deg,#eefafd,#fff 58%,#fffbdc)}
.library-ai-curation-bar>div{min-width:0}.library-ai-curation-bar strong{display:block;font-size:.74rem;color:#33525e}.library-ai-curation-bar small{display:block;margin-top:3px;font-size:.65rem;line-height:1.4;color:#71838a}.library-ai-curation-bar form{flex:0 0 auto}.library-ai-curation-bar button{white-space:nowrap}
.library-taxonomy-manager{margin:12px 0 14px;border:1px solid #d6e4e7;border-radius:14px;background:#fbfdfd;overflow:hidden}.library-taxonomy-manager>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer;list-style:none}.library-taxonomy-manager>summary::-webkit-details-marker{display:none}.library-taxonomy-manager>summary span:first-child{display:flex;flex-direction:column;gap:2px}.library-taxonomy-manager>summary strong{font-size:.76rem;color:#3d555e}.library-taxonomy-manager>summary small{font-size:.65rem;color:#7b898e}.library-taxonomy-manager-action{font-size:.66rem;font-weight:850;color:#197997;background:#e7f7fb;padding:6px 8px;border-radius:999px}.library-taxonomy-manager-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0 14px 14px}.library-taxonomy-add-form{padding:10px;border:1px solid #e1e9eb;border-radius:11px;background:#fff}.library-taxonomy-add-form>label{display:flex;justify-content:space-between;gap:8px;font-size:.68rem;font-weight:850;color:#586a72}.library-taxonomy-add-form>label span{font-size:.6rem;color:#8a989d;font-weight:650}.library-taxonomy-add-form>div{display:flex;gap:7px;margin-top:7px}.library-taxonomy-add-form input{min-width:0;flex:1;border:1px solid #d1dfe3;border-radius:8px;padding:7px 8px;font:inherit}.library-taxonomy-add-form button{padding:7px 9px!important;font-size:.66rem!important}
.library-secondary-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:8px}.library-delete-button{border:0;background:transparent;color:#a34d44;font-weight:800;font-size:.7rem;padding:8px 7px;cursor:pointer}.library-delete-button:hover{text-decoration:underline;color:#843b34}
@media(max-width:700px){.library-ai-curation-bar{align-items:flex-start;flex-direction:column}.library-taxonomy-manager-grid{grid-template-columns:1fr}.library-secondary-actions{justify-content:flex-start}}


/* MVP 8.8c.1 - library curation controls */
.library-curation-drawer{width:100%;min-width:98px}
.library-curation-drawer summary{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:40px;cursor:pointer;user-select:none;position:relative;z-index:1}
.library-curation-drawer summary:hover{background:#edf7f9;border-color:#b8d7df}
.library-curation-drawer summary:focus-visible{outline:3px solid rgba(50,153,184,.22);outline-offset:2px}
.library-ai-suggest-button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-width:158px}
.library-ai-suggest-button[aria-busy="true"]{cursor:wait;opacity:.88}
.library-ai-submit-loading{display:inline-flex;align-items:center;gap:7px}
.library-ai-submit-loading[hidden]{display:none!important}
.library-ai-spinner{width:13px;height:13px;border:2px solid rgba(44,113,129,.22);border-top-color:#2c7181;border-radius:50%;animation:library-ai-spin .72s linear infinite;flex:0 0 auto}
@keyframes library-ai-spin{to{transform:rotate(360deg)}}

/* MVP 8.8c.2 - library upload processing feedback */
.library-upload-submit-loading{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.library-upload-submit-loading[hidden]{display:none!important}
.library-upload-progress{display:flex;align-items:flex-start;gap:11px;padding:12px 13px;border:1px solid #b9e2ec;border-radius:13px;background:linear-gradient(135deg,#edfafd,#fffbea);color:#31515e}
.library-upload-progress[hidden]{display:none!important}
.library-upload-progress-spinner{width:18px;height:18px;margin-top:1px;border:2.5px solid rgba(22,130,164,.18);border-top-color:#1682a4;border-radius:50%;animation:library-ai-spin .72s linear infinite;flex:0 0 auto}
.library-upload-progress span:last-child{display:grid;gap:2px}
.library-upload-progress strong{font-size:.76rem;color:#17445a}
.library-upload-progress small{font-size:.68rem;line-height:1.4;color:#6e8189}
.library-upload-form[aria-busy="true"] .library-dropzone,.library-upload-form[aria-busy="true"] label{cursor:wait}

/* MVP 8.8d — central library preview & source inspection */
.library-document-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}.library-preview-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border:1px solid #b8d7e2;border-radius:14px;background:#f4fbfd;color:#17405e;font-weight:800;text-decoration:none;transition:.16s ease}.library-preview-button:hover,.library-preview-button:focus-visible{background:#e6f7fb;border-color:#4ac0e0;box-shadow:0 5px 16px rgba(20,63,89,.08);outline:none}.library-preview-shell{max-width:1420px;margin:0 auto;padding:6px 0 48px}.library-preview-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.library-preview-back{font-weight:800;color:#17405e;text-decoration:none}.library-preview-back:hover{text-decoration:underline}.library-preview-hero{display:flex;align-items:center;gap:22px;padding:28px;border:1px solid #cfe2e9;border-radius:25px;background:linear-gradient(120deg,#f8fdff 0%,#fffef4 100%);box-shadow:0 16px 40px rgba(23,64,94,.07);margin-bottom:22px}.library-preview-filetype{display:flex;width:70px;height:70px;align-items:center;justify-content:center;border-radius:19px;background:#e6f7fb;color:#087997;font-weight:900}.library-preview-heading h1{margin:4px 0 5px;font-size:clamp(28px,3vw,42px);line-height:1.08}.library-preview-heading p{margin:0;color:#6f818c}.library-preview-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.library-preview-badges>span{display:inline-flex;padding:6px 10px;border-radius:999px;background:#f0f5f6;font-size:12px;font-weight:700}.library-preview-layout{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:22px;align-items:start}.library-preview-metadata,.library-preview-document{border:1px solid #d5e2e7;border-radius:22px;background:#fff;box-shadow:0 12px 32px rgba(23,64,94,.055)}.library-preview-metadata{padding:24px;position:sticky;top:20px}.library-preview-metadata h2,.library-preview-document h2{margin:4px 0 16px}.library-preview-metadata dl{display:grid;gap:0;margin:0}.library-preview-metadata dl>div{padding:12px 0;border-bottom:1px solid #edf2f4}.library-preview-metadata dt{font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:900;color:#748792}.library-preview-metadata dd{margin:3px 0 0;font-weight:700;color:#223746}.library-preview-term-list,.library-preview-note,.library-preview-source-rule{margin-top:20px}.library-preview-term-list>div{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.library-preview-term-list span{padding:6px 9px;border-radius:999px;background:#eef5f7;font-size:12px}.library-preview-note p,.library-preview-source-rule p{margin:7px 0 0;color:#607580;font-size:13px;line-height:1.55}.library-preview-source-rule{padding:14px;border-radius:14px;background:#fffbea;border:1px solid #f0df87}.library-preview-document{padding:24px}.library-preview-document-head{display:flex;justify-content:space-between;gap:24px;align-items:end;padding-bottom:20px;border-bottom:1px solid #e8eff2}.library-preview-document-head p{margin:0;color:#71848e}.library-preview-search{display:grid;gap:5px;min-width:270px;font-size:12px;font-weight:800;color:#4e6672}.library-preview-search input{min-height:44px;border:1px solid #cbdde4;border-radius:13px;padding:0 13px;font:inherit;background:#fbfdfe}.library-preview-blocks{display:grid;gap:0}.library-preview-block{padding:18px 4px;border-bottom:1px solid #edf2f4}.library-preview-block:last-child{border-bottom:0}.library-preview-locator{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.library-preview-locator span{font-size:11px;font-weight:800;color:#6f8590;background:#f1f6f7;border-radius:999px;padding:4px 8px}.library-preview-block p{white-space:pre-wrap;margin:0;color:#263e4b;line-height:1.68}.library-preview-block.is-heading{padding-top:26px}.library-preview-block.is-heading h3{margin:0;font-size:22px;color:#173d59}.library-preview-block.is-table pre{margin:0;padding:15px;border-radius:13px;background:#f7fafb;white-space:pre-wrap;word-break:normal;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#263e4b}.library-preview-unavailable,.library-preview-no-results{margin-top:22px;padding:22px;border-radius:16px;background:#f8fafb;border:1px dashed #c9d8de;color:#607580}.library-preview-unavailable strong{color:#243e4e}.library-preview-unavailable p{margin:7px 0 0}.library-preview-block[hidden]{display:none!important}@media(max-width:900px){.library-preview-layout{grid-template-columns:1fr}.library-preview-metadata{position:static}.library-preview-document-head{align-items:stretch;flex-direction:column}.library-preview-search{min-width:0}.library-preview-hero{align-items:flex-start}.library-document-actions{flex-direction:column;align-items:stretch}}

/* MVP 8.8e – passage-level library curation + compact full-click preview action */
.library-document-actions{gap:8px}
.library-preview-button{position:relative;z-index:3;pointer-events:auto;box-sizing:border-box;min-width:82px;min-height:40px;padding:0 12px;border-radius:10px;font-size:.7rem;line-height:1}
.library-preview-button::after{content:"";position:absolute;inset:0;border-radius:inherit}
.library-preview-annotation-summary{margin-top:20px;padding:14px;border-radius:14px;background:#f3fafc;border:1px solid #cae5ec}
.library-preview-annotation-summary p{margin:7px 0 0;color:#607580;font-size:13px;line-height:1.55}
.library-preview-block-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.library-preview-block-toolbar .library-preview-locator{margin-bottom:0}
.library-annotation-editor{position:relative;flex:0 0 auto}
.library-annotation-editor>summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 10px;border:1px solid #c9dfe6;border-radius:9px;background:#f6fbfc;color:#2e6a7d;font-size:11px;font-weight:850;cursor:pointer;user-select:none}
.library-annotation-editor>summary::-webkit-details-marker{display:none}
.library-annotation-editor>summary:hover,.library-annotation-editor>summary:focus-visible{background:#e9f7fa;border-color:#75c8dd;outline:none}
.library-annotation-editor[open]>summary{background:#e4f6fb;border-color:#75c8dd}
.library-annotation-editor form{position:absolute;z-index:20;right:0;top:38px;width:min(330px,70vw);display:grid;gap:10px;padding:13px;border:1px solid #cddfe5;border-radius:13px;background:#fff;box-shadow:0 16px 38px rgba(23,64,94,.16)}
.library-annotation-editor label{display:grid;gap:5px;color:#536b75;font-size:11px;font-weight:850}
.library-annotation-editor label>span{font-weight:600;color:#84949b}
.library-annotation-editor select,.library-annotation-editor textarea{width:100%;box-sizing:border-box;border:1px solid #cfdde2;border-radius:9px;background:#fff;padding:8px 9px;color:#263e4b;font:inherit;font-weight:500;resize:vertical}
.library-annotation-editor button{justify-self:end;min-height:36px;padding:0 12px;border-radius:9px}
.library-annotation-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.library-annotation-item{display:flex;align-items:flex-start;gap:9px;max-width:100%;padding:8px 9px 8px 11px;border:1px solid #d5e4e8;border-radius:11px;background:#f7fafb;color:#3b5967}
.library-annotation-item>div{min-width:0}
.library-annotation-item strong{font-size:11px;color:#285267}
.library-annotation-item p{margin:3px 0 0!important;font-size:11px;line-height:1.4!important;color:#6b7f88!important;white-space:normal!important}
.library-annotation-item form{margin:0}
.library-annotation-item button{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:7px;background:transparent;color:#82939a;font-size:18px;line-height:1;cursor:pointer}
.library-annotation-item button:hover,.library-annotation-item button:focus-visible{background:#fff0ee;color:#9b4e48;outline:none}
.library-annotation-item.is-strong_passage,.library-annotation-item.is-reusable_example,.library-annotation-item.is-good_structure,.library-annotation-item.is-good_table{background:#eef9f4;border-color:#c5e6d6}
.library-annotation-item.is-weak_passage,.library-annotation-item.is-caution{background:#fff8e9;border-color:#ecdca7}
.library-preview-block:target{scroll-margin-top:22px;background:linear-gradient(90deg,rgba(74,192,224,.07),transparent 70%)}
@media(max-width:700px){.library-preview-block-toolbar{align-items:stretch;flex-direction:column}.library-annotation-editor{align-self:flex-start}.library-annotation-editor form{left:0;right:auto;width:min(330px,82vw)}}

/* MVP 8.8f — central library links in Project Knowledge + aligned library actions */
.knowledge-search-scope{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:9px;padding:9px 11px;border:1px solid #dce8eb;border-radius:11px;background:#f8fbfc}.knowledge-search-scope label{display:flex;align-items:center;gap:6px;font-size:.68rem;font-weight:800;color:#49636e}.knowledge-search-scope input{width:auto;margin:0}.knowledge-search-scope small{flex-basis:100%;color:#829197;font-size:.62rem}
.knowledge-library-project-list{display:flex;flex-direction:column}.knowledge-library-project-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 14px;border-top:1px solid #e5edef;background:#fff}.knowledge-library-project-row:first-child{border-top:0}.knowledge-library-project-row.is-linked{background:#f5fbfd}.knowledge-library-project-copy{min-width:0}.knowledge-library-project-copy strong{display:block;color:#31434b;font-size:.75rem}.knowledge-library-project-copy small{display:block;margin-top:3px;color:#7c8d94;font-size:.63rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.knowledge-library-project-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.knowledge-library-project-actions form{margin:0}.knowledge-library-project-actions a,.knowledge-library-project-actions button{min-height:34px;box-sizing:border-box;border-radius:9px;padding:7px 10px;font-size:.64rem;font-weight:850;text-decoration:none;cursor:pointer}.knowledge-library-project-actions a{border:1px solid #c9dde3;background:#fff;color:#34758a}.library-source-attach{border:1px solid #73c7dd;background:#e7f8fc;color:#176d86}.library-source-detach{border:1px solid #d6e1e4;background:#f7f9fa;color:#64777f}.knowledge-library-hint{padding:9px 14px;border-top:1px solid #dcecef;background:#f2fafc;color:#58737d;font-size:.64rem}.knowledge-library-hint strong{color:#286e83}
.library-document-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:10px}.library-document-actions form{margin:0}.library-action-button{height:42px;min-width:118px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:11px;padding:0 16px;font:inherit;font-size:.72rem;font-weight:850;cursor:pointer;white-space:nowrap}.library-action-button.is-primary{border:1px solid #173f5f;background:#173f5f;color:#fff}.library-action-button.is-secondary{border:1px solid #bdd5dd;background:#fff;color:#315e70}.library-action-button.is-danger{border:1px solid #e0bbb5;background:#fff7f5;color:#974d43}.library-action-button:hover{transform:translateY(-1px)}
@media (max-width:760px){.knowledge-library-project-row{align-items:flex-start;flex-direction:column}.knowledge-library-project-actions{width:100%;flex-wrap:wrap}.library-document-actions{align-items:stretch;flex-direction:column}.library-document-actions form,.library-action-button{width:100%}}

/* MVP 8.8f.2 — central library sources inside Projectkenner Documents */
.impact-surface .pk-central-library-folder>summary{background:linear-gradient(90deg,#fffdf1,#fff)}
.pk-central-library-content{display:grid;gap:12px}
.pk-central-library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 8px 6px}
.pk-central-library-toolbar strong{display:block;font-size:12px;color:#334b53}
.pk-central-library-toolbar p{margin:3px 0 0;font-size:10px;line-height:1.45;color:#7b8e94;max-width:650px}
.pk-library-select-toggle{min-height:36px;padding:7px 13px;white-space:nowrap}
.pk-library-source-picker{border:1px solid #dce7e3;border-radius:14px;background:#f9fcfb;padding:12px}
.pk-library-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.pk-library-picker-head strong{display:block;font-size:12px}.pk-library-picker-head small{display:block;color:#84959a;font-size:9.5px;margin-top:2px}.pk-library-picker-head>span{font-size:9px;font-weight:800;padding:5px 8px;border-radius:999px;background:#eef6f4;color:#40756e}
.pk-library-picker-list{display:grid;gap:5px;max-height:330px;overflow:auto;padding-right:3px}
.pk-library-picker-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 10px;border:1px solid #e5ece9;border-radius:11px;background:#fff;cursor:pointer}.pk-library-picker-row:hover{border-color:#b9dfe4;background:#f8fdfe}.pk-library-picker-row input{width:16px;height:16px;accent-color:#42b9d5}.pk-library-picker-copy{min-width:0}.pk-library-picker-copy strong{display:block;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pk-library-picker-copy small{display:block;margin-top:2px;color:#84949a;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pk-library-picker-actions{display:flex;justify-content:flex-end;margin-top:10px}.pk-library-picker-actions button{min-height:36px;padding:7px 14px}
.pk-library-subfolders{display:grid;gap:7px}.pk-library-subfolder{border:1px solid #e4e9d5;border-radius:12px;background:#fffefa;overflow:hidden}.pk-library-subfolder>summary{list-style:none;display:grid;grid-template-columns:18px 32px minmax(0,1fr);gap:8px;align-items:center;padding:9px 11px;cursor:pointer}.pk-library-subfolder>summary::-webkit-details-marker{display:none}.pk-library-subfolder[open]>summary .pk-folder-chevron{transform:rotate(90deg)}.pk-library-subfolder-icon{width:30px;height:28px;border-radius:8px;display:grid;place-items:center;background:#fbf2d8;color:#816e25}.pk-library-subfolder-icon .ui-icon{width:18px;height:18px}.pk-library-subfolder>summary strong{display:block;font-size:11px;color:#405157}.pk-library-subfolder>summary small{display:block;margin-top:1px;font-size:9px;color:#8a999d}.pk-library-subfolder-content{border-top:1px solid #f0eddf;padding:3px 7px 6px}.pk-library-document-row{grid-template-columns:34px minmax(0,1fr) auto}.pk-central-library-empty{padding:14px 8px}
@media(max-width:640px){.pk-central-library-toolbar{align-items:flex-start;flex-direction:column}.pk-library-select-toggle{width:100%}.pk-library-picker-row{grid-template-columns:22px minmax(0,1fr)}.pk-library-picker-row .pk-role-badge{grid-column:2;justify-self:start}}

/* MVP 8.8f.4 — library lifecycle selection */
.pk-library-lifecycle-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:800;background:#eef4f5;color:#61757d;white-space:nowrap}.pk-library-lifecycle-badge.lifecycle-draft{background:#fff7d6;color:#806d13}.pk-library-lifecycle-badge.lifecycle-outdated,.pk-library-lifecycle-badge.lifecycle-superseded{background:#f4eeee;color:#825f5f}

/* MVP 8.8k - central library retrieval & discovery */
.library-discovery-form{margin:18px 0 14px;padding:14px;border:1px solid #cfe2e7;border-radius:16px;background:linear-gradient(125deg,#f5fbfd,#fff 58%,#fffdf0)}
.library-discovery-main{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:9px;align-items:end}.library-discovery-query{font-size:.68rem;font-weight:850;color:#536a73}.library-discovery-query span{display:block;margin-bottom:5px}.library-discovery-query input{width:100%;box-sizing:border-box;border:1px solid #bdd5dc;border-radius:11px;padding:10px 11px;background:#fff;font:inherit;font-weight:550}.library-discovery-submit{min-width:112px;display:inline-flex!important;align-items:center;justify-content:center;gap:7px}.library-discovery-submit [hidden]{display:none!important}.library-discovery-primary-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px}.library-discovery-primary-filters select,.library-discovery-extra-filters select{min-width:0;width:100%;box-sizing:border-box;border:1px solid #d0dee2;border-radius:9px;padding:8px 9px;background:#fff;font-size:.7rem}.library-discovery-more{margin-top:9px;border-top:1px solid #e3ebed;padding-top:8px}.library-discovery-more>summary{cursor:pointer;list-style:none;font-size:.68rem;font-weight:800;color:#607780}.library-discovery-more>summary::-webkit-details-marker{display:none}.library-discovery-extra-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:9px}.library-discovery-extra-filters label{font-size:.62rem;font-weight:800;color:#6f8187}.library-discovery-extra-filters label span{display:block;margin:0 0 4px}.library-discovery-hint{margin:9px 0 0!important;color:#77898f!important;font-size:.65rem!important;line-height:1.45}.library-discovery-summary{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 11px;padding:9px 11px;border:1px solid #e2e7c8;border-radius:11px;background:#fffef2;color:#637276;font-size:.68rem}.library-discovery-summary strong{color:#495c63}.library-discovery-summary small{margin-left:auto;color:#809095}.library-discovery-match{display:inline-flex;padding:4px 7px;border-radius:999px;background:#f1f4f5;color:#65777d;font-size:.59rem;font-weight:850;border:1px solid #dce4e6}.library-discovery-match.is-strong{background:#e8f8f2;color:#33745c;border-color:#c5e5d5}.library-discovery-term{background:#edf8fb!important;color:#24748c!important}
@media(max-width:1050px){.library-discovery-primary-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.library-discovery-extra-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.library-discovery-main,.library-discovery-primary-filters,.library-discovery-extra-filters{grid-template-columns:1fr}.library-discovery-summary{align-items:flex-start;flex-direction:column}.library-discovery-summary small{margin-left:0}}

/* MVP 8.8l — central library hierarchy + source provenance */
.library-folder-group,.library-folder-subgroup{border:1px solid #dbe8eb;border-radius:14px;background:#f9fcfd;overflow:hidden}.library-folder-group>summary,.library-folder-subgroup>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:9px;padding:11px 13px;color:#43565e}.library-folder-group>summary::-webkit-details-marker,.library-folder-subgroup>summary::-webkit-details-marker{display:none}.library-folder-group>summary span:last-child,.library-folder-subgroup>summary span:last-child{display:flex;flex-direction:column;gap:1px}.library-folder-group>summary strong,.library-folder-subgroup>summary strong{font-size:.76rem}.library-folder-group>summary small,.library-folder-subgroup>summary small{font-size:.62rem;color:#84949b}.library-folder-chevron{font-size:1rem;color:#4baac4;transition:transform .16s ease}.library-folder-group[open]>summary .library-folder-chevron,.library-folder-subgroup[open]>summary .library-folder-chevron{transform:rotate(90deg)}.library-folder-group-content{padding:0 10px 10px;display:flex;flex-direction:column;gap:7px}.library-folder-subgroup{background:#fff}.library-folder-subgroup-content{padding:0 8px 8px;display:flex;flex-direction:column;gap:8px}.library-source-link{color:#267c94;text-decoration:none;font-weight:750}.library-source-link:hover{text-decoration:underline}.library-curation-basics{grid-template-columns:2fr 1fr 1fr 1fr 1.3fr 2fr}
@media(max-width:1100px){.library-curation-basics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* MVP 8.8m – URL import & source freshness */
.library-url-divider{display:flex;align-items:center;gap:10px;margin:16px 0;color:#90a0a6;font-size:.66rem;font-weight:800;text-transform:uppercase}.library-url-divider:before,.library-url-divider:after{content:"";height:1px;background:#dce9ed;flex:1}.library-url-import-form{gap:10px;padding-top:2px}.library-url-import-head{display:flex;flex-direction:column;gap:3px}.library-url-import-head strong{font-size:.82rem;color:#36525d}.library-url-import-head small{font-size:.68rem;line-height:1.45;color:#758991}.library-source-monitor-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:12px 15px;border:1px solid #d9e8ec;border-radius:14px;background:#fbfdfe}.library-source-monitor-summary>div{display:flex;flex-direction:column;gap:2px}.library-source-monitor-summary strong{font-size:.78rem;color:#3e5964}.library-source-monitor-summary span{font-size:.68rem;color:#768990}.library-source-status{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;font-size:.6rem;font-weight:850;border:1px solid #d5e4e8;background:#f7fafb;color:#60747c}.library-source-status.is-current{border-color:#b9dec7;background:#f0faf4;color:#3d7953}.library-source-status.is-changed{border-color:#e7c08d;background:#fff8eb;color:#9a682c}.library-source-status.is-error{border-color:#e1b3ac;background:#fff5f3;color:#a44f45}.library-monitor-toggle span{display:flex;align-items:center;gap:7px;min-height:42px}.library-monitor-toggle input{width:auto!important}.library-curation-basics{grid-template-columns:2fr 1fr 1fr 1fr 1.3fr 2fr 1.25fr 1.25fr}
@media(max-width:1050px){.library-source-monitor-summary{align-items:flex-start;flex-direction:column}.library-curation-basics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* MVP 8.8m.2 — linked-document discovery for web sources */
.library-linked-page{max-width:1180px;margin:0 auto;padding:8px 0 40px}.library-linked-hero{margin:14px 0 18px}.library-linked-provenance{font-size:.78rem;color:#5d747d;max-width:850px}.library-linked-form{padding:22px}.library-linked-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px}.library-linked-toolbar label{min-width:220px}.library-linked-list{display:grid;gap:10px;margin:12px 0 18px}.library-linked-item{display:grid;grid-template-columns:auto auto 1fr auto;align-items:center;gap:12px;padding:13px 14px;border:1px solid #d7e7eb;border-radius:14px;background:#fbfdfe;cursor:pointer}.library-linked-item:hover{border-color:#9fd9e9;background:#f6fcfe}.library-linked-item.is-existing{opacity:.65;cursor:default}.library-linked-type{display:inline-flex;align-items:center;justify-content:center;min-width:48px;padding:7px 8px;border-radius:10px;background:#e7f7fb;color:#14718e;font-size:.65rem;font-weight:900}.library-linked-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.library-linked-copy strong{font-size:.82rem;color:#213940}.library-linked-copy small{font-size:.67rem;color:#748990}.library-linked-url{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-linked-existing{font-size:.63rem;font-weight:850;color:#60767d;background:#edf3f5;border-radius:999px;padding:5px 8px}.library-linked-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:16px}.library-empty-state{padding:28px;border:1px dashed #bfd7de;border-radius:14px;text-align:center;background:#fbfdfe}.library-empty-state p{color:#71858d}.back-link{display:inline-flex;margin-bottom:8px;font-weight:800;color:#2c6173;text-decoration:none}@media(max-width:760px){.library-linked-toolbar{align-items:stretch;flex-direction:column}.library-linked-item{grid-template-columns:auto auto 1fr}.library-linked-existing{grid-column:2/-1;width:max-content}.library-linked-actions{flex-direction:column;align-items:stretch}.library-linked-actions>*{width:100%;justify-content:center}}

/* MVP 8.8m.6 - large document preview pagination */
.library-preview-pagination{display:grid;grid-template-columns:minmax(140px,1fr) auto minmax(140px,1fr);align-items:center;gap:14px;margin:18px 0 4px;padding:12px 14px;border:1px solid #d9e7eb;border-radius:15px;background:#f8fbfc}.library-preview-pagination>a:first-child{justify-self:start}.library-preview-pagination>a:last-child{justify-self:end}.library-preview-pagination>span{font-size:12px;font-weight:800;color:#617985;text-align:center}.library-preview-pagination.is-bottom{margin-top:20px}.library-preview-large-note{margin:8px 0 12px!important;padding:10px 12px;border-radius:12px;background:#fffbea;color:#667b84!important;font-size:12px;line-height:1.5;border:1px solid #efe2a1}@media(max-width:700px){.library-preview-pagination{grid-template-columns:1fr 1fr}.library-preview-pagination>span{grid-column:1/-1;grid-row:1}.library-preview-pagination>a:first-child{grid-column:1}.library-preview-pagination>a:last-child{grid-column:2}}


/* MVP 8.8m.6.1 — library layout polish */
.library-linked-form>.library-ai-upload-toggle{margin-top:12px}.library-linked-form>.library-ai-upload-toggle+.library-ai-upload-toggle{margin-top:14px}
.library-curation-basics{grid-template-columns:minmax(180px,2fr) minmax(145px,1fr) minmax(145px,1fr) minmax(145px,1fr);gap:12px 14px;align-items:end}
.library-curation-field{min-width:0}.library-curation-field.is-title{grid-column:span 2}.library-curation-field.is-source-link{grid-column:span 2}.library-curation-field input,.library-curation-field select{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-monitor-toggle span{border:1px solid #d1dfe3;border-radius:9px;padding:8px 9px;background:#fff;box-sizing:border-box;margin-top:5px}
@media(max-width:1180px){.library-curation-basics{grid-template-columns:repeat(2,minmax(0,1fr))}.library-curation-field.is-title,.library-curation-field.is-source-link{grid-column:span 2}}
@media(max-width:700px){.library-curation-basics{grid-template-columns:1fr}.library-curation-field.is-title,.library-curation-field.is-source-link{grid-column:auto}}

/* MVP 8.8m.7 - legal-source chunking companion + curation edge spacing */
.library-curation-basics{padding-right:10px;box-sizing:border-box}
.library-curation-field{max-width:100%}
.library-curation-field input,.library-curation-field select{max-width:100%}
@media(max-width:1180px){.library-curation-basics{padding-right:8px}}
@media(max-width:700px){.library-curation-basics{padding-right:0}}

/* MVP 8.8m.8 — library maintenance + curatie edge spacing */
.library-curation-basics{margin-right:22px;padding-right:0!important;width:auto;max-width:calc(100% - 22px)}
.library-maintenance-summary{align-items:center}
.library-maintenance-summary>div:first-child small{display:block;margin-top:4px;font-size:.62rem;color:#87979d}
.library-maintenance-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.library-maintenance-actions form{margin:0}
.library-maintenance-actions button{min-height:40px;white-space:nowrap}
@media(max-width:1180px){.library-curation-basics{margin-right:16px;max-width:calc(100% - 16px)}}
@media(max-width:700px){.library-curation-basics{margin-right:8px;max-width:calc(100% - 8px)}.library-maintenance-actions{width:100%;justify-content:stretch}.library-maintenance-actions form,.library-maintenance-actions button{width:100%}}

/* MVP 8.8m.8.1 — library maintenance contrast + curation spacing */
.library-maintenance-actions .library-maintenance-button{
  color:#fff!important;
  background:#173f61!important;
  border-color:#173f61!important;
  text-shadow:none!important;
}
.library-maintenance-actions .library-maintenance-button:hover,
.library-maintenance-actions .library-maintenance-button:focus-visible{
  color:#fff!important;
  background:#123650!important;
  border-color:#123650!important;
}
.library-curation-content{
  padding-right:32px;
}
.library-curation-basics{
  margin-right:0!important;
  max-width:100%!important;
  width:100%!important;
  box-sizing:border-box;
}
@media(max-width:1180px){
  .library-curation-content{padding-right:26px}
}
@media(max-width:700px){
  .library-curation-content{padding-right:18px}
}


/* MVP 8.8m.8.3 — direct button-label contrast + right-column curation gutter */
.library-source-monitor-summary .library-maintenance-actions .library-maintenance-button,
.library-source-monitor-summary .library-maintenance-actions .library-maintenance-button span{
  color:#fff!important;
}
.library-source-monitor-summary .library-maintenance-actions .library-maintenance-button:hover,
.library-source-monitor-summary .library-maintenance-actions .library-maintenance-button:hover span,
.library-source-monitor-summary .library-maintenance-actions .library-maintenance-button:focus-visible,
.library-source-monitor-summary .library-maintenance-actions .library-maintenance-button:focus-visible span{
  color:#fff!important;
}
.library-curation-content{
  padding-right:42px!important;
}
.library-curation-basics{
  padding-right:14px!important;
}
@media(max-width:1180px){
  .library-curation-content{padding-right:34px!important}
  .library-curation-basics{padding-right:10px!important}
}
@media(max-width:700px){
  .library-curation-content{padding-right:20px!important}
  .library-curation-basics{padding-right:4px!important}
}


/* MVP 8.8m.8.4 — visible curation right gutter */
.library-curation-basics{
  width:calc(100% - 30px)!important;
  max-width:calc(100% - 30px)!important;
  padding-right:0!important;
  margin-right:30px!important;
}
@media(max-width:1180px){
  .library-curation-basics{
    width:calc(100% - 22px)!important;
    max-width:calc(100% - 22px)!important;
    margin-right:22px!important;
  }
}
@media(max-width:700px){
  .library-curation-basics{
    width:100%!important;
    max-width:100%!important;
    margin-right:0!important;
  }
}

/* MVP 8.8m.8.5 — prevent curation grid overflow from swallowing the right gutter */
.library-curation-basics{
  width:100%!important;
  max-width:100%!important;
  margin-right:0!important;
  padding-right:0!important;
  grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)!important;
}
@media(max-width:1180px){
  .library-curation-basics{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:700px){
  .library-curation-basics{
    grid-template-columns:minmax(0,1fr)!important;
  }
}


/* MVP 8.8m.8.6 — restore symmetric curation padding after overflow fix */
.library-curation-content{
  padding:15px 16px!important;
}
@media(max-width:1180px){
  .library-curation-content{
    padding:15px 16px!important;
  }
}
@media(max-width:700px){
  .library-curation-content{
    padding:15px 14px!important;
  }
}

/* MVP 8.8m.9 — startup library bulk import */
.library-bulk-import-form{gap:9px}.library-bulk-file-picker{display:flex;flex-direction:column;gap:5px}.library-bulk-file-picker input{margin-top:4px;padding:9px;border:1px dashed #9fcbd7;border-radius:10px;background:#f8fcfd}.library-bulk-file-picker small{font-size:.64rem;color:#788d95;line-height:1.45}
.library-batch-page{max-width:1180px;margin:0 auto;padding:8px 0 42px}.library-batch-hero{margin:14px 0 14px}.library-batch-hero p:last-child{max-width:860px;color:#607780}.library-batch-explainer{display:flex;align-items:center;gap:8px;margin:0 0 14px}.library-batch-explainer span{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:#e9f6fa;color:#275f72;font-size:.7rem;font-weight:850}.library-batch-explainer span strong{display:grid;place-items:center;width:20px;height:20px;border-radius:999px;background:#2f99b8;color:#fff;font-size:.65rem}.library-batch-explainer .is-next{background:#f0f4f5;color:#71838a}.library-batch-explainer .is-next strong{background:#b8c6ca}.library-batch-explainer.is-complete span{background:#edf8f2;color:#397259}.library-batch-explainer.is-complete span strong{background:#4f9e75}
.library-batch-panel{padding:20px}.library-batch-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}.library-batch-toolbar h2{margin:0 0 3px}.library-batch-toolbar p{margin:0;color:#75888f;font-size:.72rem}.library-batch-select-all{display:inline-flex;align-items:center;gap:7px;font-size:.7rem;font-weight:800;color:#4d6670;white-space:nowrap}.library-batch-select-all input{width:auto}
.library-batch-table-wrap{overflow:auto;border:1px solid #dce8eb;border-radius:14px}.library-batch-table{width:100%;border-collapse:collapse;min-width:850px;background:#fff}.library-batch-table th{padding:10px 11px;text-align:left;background:#f6fafb;color:#63777f;font-size:.64rem;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #dce8eb}.library-batch-table td{padding:11px;border-bottom:1px solid #e7eef0;vertical-align:top;font-size:.72rem}.library-batch-table tbody tr:last-child td{border-bottom:0}.library-batch-table tr.is-existing{background:#fafcfc}.library-batch-table tr.is-invalid{background:#fff9f7}.library-batch-table td strong{display:block;color:#2d4149;font-size:.75rem}.library-batch-table td small{display:block;margin-top:3px;color:#7b8d94;max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-batch-check{width:28px}.library-batch-check input{width:auto}.library-batch-meta-chips{display:flex;flex-wrap:wrap;gap:4px}.library-batch-meta-chips span{padding:3px 6px;border:1px solid #d9e5e8;border-radius:999px;background:#f8fbfc;color:#5c717a;font-size:.59rem}.library-batch-warning{white-space:normal!important;color:#9a692f!important;line-height:1.35}.library-batch-status{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:.61rem;font-weight:850;white-space:nowrap}.library-batch-status.is-ready{background:#edf8f2;color:#397259}.library-batch-status.is-existing{background:#eef3f5;color:#637780}.library-batch-status.is-failed{background:#fff0ed;color:#9c554a}
.library-batch-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:16px}.library-batch-footer>div:first-child{display:flex;flex-direction:column}.library-batch-footer>div:first-child strong{font-size:.75rem}.library-batch-footer>div:first-child small{font-size:.65rem;color:#7d8e94}.library-batch-actions{display:flex;align-items:center;gap:9px}
.library-batch-result-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}.library-batch-result-summary span{display:flex;flex-direction:column;padding:14px 16px;border:1px solid #dbe7ea;border-radius:14px;background:#fff}.library-batch-result-summary strong{font-size:1.35rem;color:#29444e}.library-batch-result-summary small{font-size:.66rem;color:#788b92}.library-batch-result-summary .is-success{background:#f1faf5;border-color:#c9e5d5}.library-batch-result-summary .is-warning{background:#fff7f1;border-color:#ebd2bd}
.library-batch-results-panel{padding:20px}.library-batch-results-head{margin-bottom:13px}.library-batch-results-head h2{margin:0 0 3px}.library-batch-results-head p{margin:0;color:#71858d;font-size:.72rem}.library-batch-result-list{display:flex;flex-direction:column;gap:8px}.library-batch-result{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px 13px;border:1px solid #dce8eb;border-radius:13px;background:#fbfdfe}.library-batch-result.is-imported{border-color:#cbe3d5;background:#f8fcfa}.library-batch-result.is-failed{border-color:#e8c8c1;background:#fff9f7}.library-batch-result-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:999px;background:#edf4f6;color:#62777f;font-weight:900}.library-batch-result.is-imported .library-batch-result-icon{background:#daf1e4;color:#397358}.library-batch-result.is-failed .library-batch-result-icon{background:#f9ded8;color:#9d5349}.library-batch-result-copy{min-width:0}.library-batch-result-copy>strong{display:block;font-size:.78rem;color:#30474f}.library-batch-result-copy>small{display:block;color:#7b8e95;font-size:.64rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.library-batch-result-copy p{margin:3px 0 0;font-size:.68rem;color:#5e747d}.library-batch-provenance{display:inline-flex;margin-top:5px;padding:3px 6px;border-radius:999px;background:#eef3f5;color:#60757d;font-size:.59rem;font-weight:800}.library-batch-result-actions{display:flex;gap:7px;align-items:center}.library-batch-bottom-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:14px}
@media(max-width:760px){.library-batch-toolbar,.library-batch-footer{align-items:stretch;flex-direction:column}.library-batch-actions,.library-batch-bottom-actions{flex-direction:column;align-items:stretch}.library-batch-actions>*,.library-batch-bottom-actions>*{width:100%;justify-content:center}.library-batch-result-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.library-batch-result{grid-template-columns:34px minmax(0,1fr)}.library-batch-result-actions{grid-column:2;flex-wrap:wrap}}


/* MVP 8.8m.9.2 — resumable bulk import */
.library-batch-resume{display:flex;flex-direction:column;gap:7px;margin-top:10px;padding:11px 12px;border:1px solid #d8e7eb;border-radius:12px;background:#f8fcfd}.library-batch-resume strong{font-size:.76rem;color:#36525d}.library-batch-resume small{font-size:.65rem;line-height:1.4;color:#71868f}.library-batch-resume .button-secondary{align-self:flex-start}.library-batch-status.is-prepared{background:#eef7fb;color:#2b7085;border-color:#c8e1e8}.library-batch-continue-link{display:block;margin-top:5px;font-size:.64rem;font-weight:800;color:#247a94;text-decoration:none}.library-batch-continue-link:hover{text-decoration:underline}

/* MVP 8.8m.10 — reviewable web-source versions */
.library-source-review-chip{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;background:#fff3d7;border:1px solid #e7c17b;color:#8a5c1f!important;font-size:.61rem;font-weight:850;text-decoration:none}.library-action-button.is-review{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#fff8e8;border:1px solid #e5c17d;color:#81591f}.library-update-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.library-update-hero h1{margin:4px 0}.library-update-hero p{margin:0;color:#6e7f87}.library-update-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px;margin-bottom:14px}.library-update-summary>div{display:grid;gap:4px}.library-update-summary span{font-size:.66rem;color:#7d8c92;font-weight:750}.library-update-summary strong,.library-update-summary code{font-size:.78rem;color:#354c56}.library-version-warning{display:flex;gap:8px;align-items:center;padding:12px 14px;margin-bottom:14px;border:1px solid #ead18f;border-radius:13px;background:#fff9e9;color:#725820;font-size:.74rem}.library-version-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.library-version-column{padding:16px;min-width:0}.library-version-column>header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid #e7edef;padding-bottom:11px;margin-bottom:12px}.library-version-column h2{font-size:.96rem;margin:2px 0 0}.library-version-column>header>span{font-size:.62rem;font-weight:850;border-radius:999px;padding:5px 8px;background:#eaf6ef;color:#3a7252}.library-version-column.is-candidate>header>span{background:#fff2d9;color:#8a5f25}.library-version-preview{display:grid;gap:9px;max-height:620px;overflow:auto;padding-right:4px}.library-version-preview article{padding:10px;border:1px solid #e1eaed;border-radius:11px;background:#fbfdfd}.library-version-preview small{display:block;margin-bottom:5px;color:#829198;font-size:.61rem;font-weight:800}.library-version-preview p{margin:0;font-size:.72rem;line-height:1.52;color:#40545d;white-space:pre-wrap}.library-version-empty{padding:18px;border-radius:11px;background:#f5f8f9;color:#73858d;font-size:.72rem}.library-version-actions{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:16px;margin-top:14px}.library-version-actions h2{margin:0 0 4px;font-size:.92rem}.library-version-actions p{margin:0;color:#76868d;font-size:.7rem}.library-version-action-buttons{display:flex;gap:8px;align-items:center}.library-version-action-buttons form{margin:0}.library-version-history{padding:16px;margin-top:14px}.library-version-history>div:last-child{display:grid;gap:7px;margin-top:10px}.library-version-history article{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 10px;border:1px solid #e5ecee;border-radius:10px}.library-version-history-status{font-size:.61rem;font-weight:850}.library-version-history-status.is-accepted{color:#3c7653}.library-version-history-status.is-ignored{color:#7b6b61}.library-version-history-status.is-pending{color:#91601d}.library-version-history small{color:#89979c;font-family:monospace}@media(max-width:900px){.library-update-summary,.library-version-compare{grid-template-columns:1fr 1fr}.library-version-actions{align-items:flex-start;flex-direction:column}}@media(max-width:650px){.library-update-summary,.library-version-compare{grid-template-columns:1fr}.library-update-hero{flex-direction:column}.library-version-action-buttons{width:100%;flex-direction:column;align-items:stretch}.library-version-action-buttons form,.library-version-action-buttons button{width:100%}.library-version-history article{grid-template-columns:1fr}.library-version-warning{align-items:flex-start;flex-direction:column}}


/* MVP 8.8m.10.1 — library action notification on the PIE hub */
.impact-tool-library .impact-tool-state.has-attention{display:inline-flex;align-items:center;gap:7px;background:#fff0c7;color:#755617;border:1px solid #efd48a;padding:5px 9px 5px 5px}
.impact-tool-notification-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#d88a25;color:#fff;font-size:11px;font-weight:900;line-height:1;box-sizing:border-box}
.impact-tool-attention-copy{margin-top:12px!important;padding:9px 11px;border-radius:11px;background:#fff8e7;color:#73561f!important;font-size:12px;line-height:1.4!important}
.impact-tool-attention-copy strong{color:#684911}

/* MVP 8.8m.10.2 — central PIE action centre */
.impact-action-center{margin-top:22px;padding:22px;border:1px solid #dce6e9;border-radius:21px;background:#fff;box-shadow:0 8px 24px rgba(25,52,68,.05)}
.impact-action-center-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding-bottom:16px;border-bottom:1px solid #e8edef}.impact-action-center-head h2{margin:4px 0 5px;color:#183d55;font-size:20px}.impact-action-center-head p:not(.eyebrow){margin:0;max-width:720px;color:#71838c;font-size:12px;line-height:1.5}.impact-action-total{display:inline-flex;align-items:center;white-space:nowrap;padding:7px 10px;border-radius:999px;background:#eef7f2;color:#39745e;font-size:11px;font-weight:850}.impact-action-total.has-actions{background:#fff2d8;color:#805b1f;border:1px solid #ead08f}.impact-action-list{display:grid;gap:8px;margin-top:14px}.impact-action-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 13px;border:1px solid #e1e9eb;border-radius:13px;background:#fbfdfd;color:inherit;text-decoration:none;transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease}.impact-action-row:hover{transform:translateY(-1px);border-color:#c6d9de;box-shadow:0 7px 17px rgba(30,63,78,.06)}.impact-action-count{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#edf3f5;color:#536b75;font-weight:900;font-size:13px}.impact-action-row.is-urgent .impact-action-count{background:#fff0d8;color:#9a641d}.impact-action-row.is-warning .impact-action-count{background:#fff0ed;color:#9b554b}.impact-action-row.is-info .impact-action-count{background:#eaf5f8;color:#2f7084}.impact-action-module{display:block;margin-bottom:2px;color:#829198;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.impact-action-row strong{display:block;color:#314c58;font-size:13px}.impact-action-row p{margin:2px 0 0;color:#74868e;font-size:11px;line-height:1.4}.impact-action-arrow{color:#31687d;font-size:11px;font-weight:850;white-space:nowrap}.impact-action-empty{display:flex;align-items:center;gap:12px;margin-top:14px;padding:14px;border-radius:13px;background:#f1f8f4;border:1px solid #d4e8dc}.impact-action-empty>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#dcefe3;color:#397057;font-weight:900}.impact-action-empty strong{display:block;color:#365d4b;font-size:12px}.impact-action-empty p{margin:2px 0 0;color:#6f867b;font-size:11px}.library-attention-filter{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;padding:11px 14px;border:1px solid #ecd396;border-radius:13px;background:#fff8e9}.library-attention-filter>div{display:flex;flex-direction:column;gap:2px}.library-attention-filter strong{font-size:.76rem;color:#75551c}.library-attention-filter span{font-size:.65rem;color:#866d42}.library-attention-filter a{font-size:.66rem;font-weight:850;color:#376b7d;text-decoration:none;white-space:nowrap}.library-attention-filter a:hover{text-decoration:underline}
@media(max-width:760px){.impact-action-center-head,.library-attention-filter{flex-direction:column;align-items:flex-start}.impact-action-row{grid-template-columns:38px minmax(0,1fr)}.impact-action-arrow{grid-column:2}.impact-action-total{align-self:flex-start}}

/* MVP 8.8m.11 — Library Health */
.library-health-link{text-decoration:none!important}.library-health-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:16px}.library-health-hero h1{margin:4px 0 6px;color:#173f61}.library-health-hero p:not(.eyebrow){max-width:760px;margin:0;color:#71838c;font-size:.78rem;line-height:1.5}.library-health-score{min-width:190px;padding:16px 18px;border:1px solid #d8e7eb;border-radius:17px;background:#f4fafb}.library-health-score strong{display:block;color:#27697e;font-size:1.6rem}.library-health-score span{display:block;margin-top:3px;color:#70848c;font-size:.66rem;line-height:1.35}.library-health-score.has-attention{background:#fff8e9;border-color:#ecd395}.library-health-score.has-attention strong{color:#8a611f}.library-health-score.is-healthy{background:#f0f8f3;border-color:#d3e7da}.library-health-score.is-healthy strong{color:#3d7758}.library-health-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-bottom:14px;padding:0;overflow:hidden}.library-health-summary>div{padding:14px 16px;border-right:1px solid #e6edef}.library-health-summary>div:last-child{border-right:0}.library-health-summary span,.library-health-summary small{display:block;color:#7c8d94;font-size:.62rem}.library-health-summary strong{display:block;margin:2px 0;color:#314f5c;font-size:1.15rem}.library-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.library-health-card{display:block;padding:16px;border:1px solid #dfe9ec;border-radius:16px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 5px 16px rgba(31,62,76,.035);transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}.library-health-card:hover{transform:translateY(-1px);border-color:#bfd7dd;box-shadow:0 8px 20px rgba(31,62,76,.06)}.library-health-card.has-issues{border-color:#ead293;background:linear-gradient(180deg,#fffdf8,#fff)}.library-health-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.library-health-card-top span{color:#748991;font-size:.62rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.library-health-card-top strong{display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:9px;background:#edf4f6;color:#466674;font-size:.78rem}.library-health-card.has-issues .library-health-card-top strong{background:#fff0ca;color:#815b1d}.library-health-card h2{margin:10px 0 4px;color:#334e5a;font-size:.88rem}.library-health-card p{margin:0;color:#75868e;font-size:.68rem;line-height:1.48}.library-health-open{display:block;margin-top:12px;color:#2d7188;font-size:.66rem;font-weight:850}.library-health-duplicates{margin-top:14px;padding:16px}.library-health-duplicates>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:11px;border-bottom:1px solid #e5edef}.library-health-duplicates h2{margin:3px 0 0;font-size:.9rem}.library-health-duplicates>header>span{padding:5px 8px;border-radius:999px;background:#fff2d8;color:#805b20;font-size:.62rem;font-weight:850}.library-health-duplicates>div{display:grid;gap:7px;margin-top:10px}.library-health-duplicates article{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px;padding:9px 10px;border:1px solid #e4ebed;border-radius:10px}.library-health-duplicates article>strong{font-size:.67rem;color:#526b75}.library-health-duplicates article>div{display:flex;flex-wrap:wrap;gap:6px}.library-health-duplicates article a{font-size:.66rem;color:#267990;text-decoration:none;font-weight:750}.library-health-duplicates article a:hover{text-decoration:underline}@media(max-width:850px){.library-health-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.library-health-summary>div:nth-child(2){border-right:0}.library-health-summary>div:nth-child(-n+2){border-bottom:1px solid #e6edef}.library-health-grid{grid-template-columns:1fr}}@media(max-width:650px){.library-health-hero{flex-direction:column}.library-health-score{width:100%;box-sizing:border-box}.library-health-summary{grid-template-columns:1fr}.library-health-summary>div{border-right:0;border-bottom:1px solid #e6edef!important}.library-health-summary>div:last-child{border-bottom:0!important}.library-health-duplicates article{grid-template-columns:1fr}}


/* MVP 8.8m.11.1 — action centre polish, calmer maintenance panel and contextual metadata rules */
.impact-action-center{position:relative;overflow:hidden;margin-top:24px;padding:24px;border:1px solid #d8e7eb;border-radius:24px;background:linear-gradient(135deg,#f7fbfc 0%,#ffffff 58%,#fff9ec 100%);box-shadow:0 14px 34px rgba(24,58,75,.07)}
.impact-action-center:before{content:"";position:absolute;top:-50px;right:-34px;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle,rgba(255,236,0,.18) 0%,rgba(255,236,0,.08) 45%,rgba(255,236,0,0) 72%);pointer-events:none}
.impact-action-center:after{content:"";position:absolute;left:-36px;bottom:-70px;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle,rgba(74,192,224,.14) 0%,rgba(74,192,224,.06) 45%,rgba(74,192,224,0) 72%);pointer-events:none}
.impact-action-center>*{position:relative;z-index:1}.impact-action-center-head{padding-bottom:18px;border-bottom:1px solid rgba(196,216,223,.92)}.impact-action-center-head h2{margin:4px 0 6px;color:#173f61;font-size:22px}.impact-action-center-head p:not(.eyebrow){max-width:760px;color:#667b85;font-size:12.5px;line-height:1.55}.impact-action-total{padding:8px 12px;border-radius:999px;background:#ecf5f8;color:#275f74;border:1px solid #d3e5ea;font-size:11px;font-weight:900;letter-spacing:.01em}.impact-action-total.has-actions{background:#fff3d8;color:#7d581f;border-color:#ead08b}.impact-action-list{gap:10px;margin-top:16px}.impact-action-row{padding:13px 14px;border:1px solid #dce7ea;border-radius:15px;background:rgba(255,255,255,.92);backdrop-filter:blur(2px);box-shadow:0 6px 18px rgba(35,69,84,.05)}.impact-action-row:hover{transform:translateY(-1px);border-color:#bdd4db;box-shadow:0 10px 22px rgba(35,69,84,.09)}.impact-action-count{width:36px;height:36px;border-radius:12px;background:#edf5f8;color:#38697c}.impact-action-empty{margin-top:16px;padding:16px;border-radius:15px;background:rgba(241,248,244,.9);border:1px solid #d3e8dc;box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}

.library-maintenance-summary{align-items:stretch}.library-maintenance-copy{display:flex;flex-direction:column;gap:4px}.library-maintenance-copy .library-maintenance-health{margin-top:10px}.library-maintenance-actions{display:flex;flex-direction:column;justify-content:center;gap:10px;min-width:250px}.library-maintenance-health{text-decoration:none;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 12px;border:1px solid #d9e7eb;border-radius:13px;background:linear-gradient(135deg,#f9fcfd 0%,#fffef7 100%)}.library-maintenance-health-pill{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;background:#eef5f8;color:#305e72;font-size:.62rem;font-weight:850;white-space:nowrap}.library-maintenance-health strong{display:block;color:#2d4d5c;font-size:.78rem}.library-maintenance-health small{display:block;color:#778a92;font-size:.66rem;line-height:1.35}.library-maintenance-health-open{color:#2d7289;font-size:.68rem;font-weight:850;white-space:nowrap}.library-maintenance-health:hover{border-color:#c3d8df;box-shadow:0 6px 16px rgba(31,63,79,.05)}.library-health-link{display:none!important}

@media(max-width:960px){.library-maintenance-summary{flex-direction:column}.library-maintenance-actions{min-width:0;flex-direction:row;flex-wrap:wrap}.library-maintenance-actions form{flex:1 1 220px}.library-maintenance-actions button{width:100%}.library-maintenance-health{grid-template-columns:1fr}.library-maintenance-health-open{justify-self:flex-start}}
@media(max-width:760px){.impact-action-center{padding:18px}.impact-action-total{align-self:flex-start}.library-maintenance-actions{flex-direction:column}.library-maintenance-actions form{flex:1 1 auto}}


/* MVP 8.8m.11.2 — Projectkenner dashboard colour enrichment */
.projectkenner-dashboard-grid>.panel{position:relative;overflow:hidden;box-shadow:0 12px 30px rgba(28,66,88,.06)}
.projectkenner-projects-panel{background:linear-gradient(145deg,#f7fcfd 0%,#ffffff 58%,#eef9fb 100%);border-color:#cbe4ea}
.projectkenner-projects-panel:before{content:"";position:absolute;top:-48px;right:-38px;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(74,192,224,.18) 0%,rgba(74,192,224,.08) 48%,rgba(74,192,224,0) 72%);pointer-events:none}
.projectkenner-projects-panel:after{content:"";position:absolute;left:-55px;bottom:-78px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(255,236,0,.16) 0%,rgba(255,236,0,.07) 48%,rgba(255,236,0,0) 72%);pointer-events:none}
.projectkenner-projects-panel .impact-section-heading,.projectkenner-project-list{position:relative;z-index:1}
.projectkenner-project-card{background:linear-gradient(135deg,rgba(255,255,255,.97) 0%,rgba(233,248,252,.90) 100%);border-color:#cfe3e8;box-shadow:0 6px 18px rgba(30,67,81,.04)}
.projectkenner-project-card:nth-child(even){background:linear-gradient(135deg,rgba(255,255,255,.97) 0%,rgba(255,250,228,.92) 100%)}
.projectkenner-project-card:hover{border-color:#86d2e4;background:linear-gradient(135deg,#ffffff 0%,#f2fbfe 70%,#fffcef 100%);box-shadow:0 12px 24px rgba(29,55,70,.10)}
.projectkenner-project-card h3{color:#214356}.projectkenner-project-card small{color:#65879a}.projectkenner-project-card p{color:#6f8793}
.projectkenner-project-metrics span{background:#eef6f8;color:#58727d;border:1px solid #d9e8ec}.projectkenner-project-metrics .ready{background:#e9f6ef;color:#2f7055;border-color:#cfe4d6}.projectkenner-project-metrics .pending{background:#fff7df;color:#81611d;border-color:#ebd89d}
.projectkenner-create-panel{background:linear-gradient(155deg,#fffbe2 0%,#ffffff 52%,#eef9fc 100%);border-color:#e6dc9a;box-shadow:0 12px 30px rgba(40,71,84,.06)}
.projectkenner-create-panel:before{content:"";position:absolute;top:-34px;right:-34px;width:140px;height:140px;border-radius:50%;background:radial-gradient(circle,rgba(255,236,0,.22) 0%,rgba(255,236,0,.09) 48%,rgba(255,236,0,0) 72%);pointer-events:none}
.projectkenner-create-panel:after{content:"";position:absolute;left:-52px;bottom:-64px;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,rgba(74,192,224,.16) 0%,rgba(74,192,224,.07) 48%,rgba(74,192,224,0) 72%);pointer-events:none}
.projectkenner-create-panel>*{position:relative;z-index:1}.projectkenner-create-icon{box-shadow:0 8px 18px rgba(98,91,0,.12)}
.projectkenner-create-panel .form label{color:#264454}.projectkenner-create-panel .form input{background:rgba(255,255,255,.92);border-color:#bfdbe4}.projectkenner-create-panel .form input:focus{border-color:#4AC0E0;box-shadow:0 0 0 4px rgba(74,192,224,.12)}


/* MVP 8.8m.12 — safe library bulk curation */
.library-bulk-curation-panel{margin-bottom:12px;border:1px solid #d7e7eb;border-radius:16px;background:linear-gradient(135deg,#f8fcfd,#fff 68%,#fffbed);overflow:hidden}.library-bulk-curation-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;cursor:pointer;padding:12px 14px;color:#365460}.library-bulk-curation-panel>summary::-webkit-details-marker{display:none}.library-bulk-curation-panel>summary span:first-child{display:flex;flex-direction:column;gap:2px}.library-bulk-curation-panel>summary strong{font-size:.78rem}.library-bulk-curation-panel>summary small{font-size:.64rem;color:#7b8e95}.library-bulk-curation-action{font-size:.65rem;font-weight:850;color:#2d7188}.library-bulk-curation-content{padding:0 14px 14px;border-top:1px solid #e4edef}.library-bulk-curation-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding-top:14px}.library-bulk-curation-fields label{font-size:.66rem;font-weight:850;color:#526b75}.library-bulk-curation-fields select{width:100%;margin-top:5px;padding:8px 9px;border:1px solid #cfe0e5;border-radius:9px;background:#fff}.library-bulk-taxonomy-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:13px}.library-bulk-taxonomy-grid>div{padding:12px;border:1px solid #e0eaed;border-radius:13px;background:rgba(255,255,255,.78)}.library-bulk-taxonomy-grid>div>strong{display:block;color:#385663;font-size:.72rem}.library-bulk-taxonomy-grid>div>small{display:block;margin:2px 0 9px;color:#829198;font-size:.62rem}.library-bulk-taxonomy-options{display:grid;gap:8px}.library-bulk-taxonomy-options fieldset{margin:0;padding:8px;border:1px solid #e5ecee;border-radius:10px}.library-bulk-taxonomy-options legend{padding:0 4px;color:#5c747d;font-size:.61rem;font-weight:850}.library-bulk-taxonomy-options fieldset>label{display:inline-flex;margin:2px 4px 2px 0;cursor:pointer}.library-bulk-taxonomy-options input{position:absolute;opacity:0}.library-bulk-taxonomy-options label span{display:inline-flex;padding:5px 7px;border:1px solid #dbe6e9;border-radius:999px;background:#fff;color:#667b84;font-size:.6rem;font-weight:750}.library-bulk-taxonomy-options input:checked+span{background:#e5f7fb;border-color:#73c9de;color:#176c86}.library-bulk-taxonomy-grid>div:nth-child(2) .library-bulk-taxonomy-options input:checked+span{background:#fff0ed;border-color:#e5b7af;color:#964d44}.library-bulk-curation-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding-top:11px;border-top:1px solid #e5edef}.library-bulk-curation-footer p{margin:0;color:#73868e;font-size:.64rem}.library-bulk-preview-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:16px;padding:22px 24px;border:1px solid #cfe5eb;border-radius:22px;background:linear-gradient(125deg,#eaf9fc,#fff 62%,#fffbdc)}.library-bulk-preview-hero h1{margin:4px 0 6px;color:#234759}.library-bulk-preview-hero p:not(.eyebrow){margin:0;color:#6c828c;font-size:.76rem}.library-bulk-preview-count{min-width:150px;padding:13px 15px;border:1px solid #cce0e6;border-radius:14px;background:rgba(255,255,255,.88)}.library-bulk-preview-count strong,.library-bulk-preview-count span{display:block}.library-bulk-preview-count strong{color:#167b9c;font-size:1.35rem}.library-bulk-preview-count span{color:#748991;font-size:.64rem}.library-bulk-preview-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:14px}.library-bulk-preview-panel{padding:17px;background:linear-gradient(145deg,#fff,#f8fcfd);border-color:#d9e7eb}.library-bulk-preview-panel h2{margin:3px 0 0;font-size:.92rem}.library-bulk-change-list{display:grid;gap:7px;margin-top:13px}.library-bulk-change-list>div{display:grid;grid-template-columns:125px minmax(0,1fr);gap:10px;padding:9px 10px;border:1px solid #e4ecee;border-radius:10px;background:#fff}.library-bulk-change-list span{color:#778b93;font-size:.64rem}.library-bulk-change-list strong{color:#36535f;font-size:.68rem}.library-bulk-preview-warning{margin-top:11px;padding:10px 11px;border:1px solid #ead59a;border-radius:10px;background:#fff8e8}.library-bulk-preview-warning strong,.library-bulk-preview-warning span{display:block}.library-bulk-preview-warning strong{color:#7e5d20;font-size:.68rem}.library-bulk-preview-warning span{margin-top:2px;color:#8b754b;font-size:.62rem}.library-bulk-preview-documents{display:grid;gap:7px;margin-top:13px;max-height:390px;overflow:auto}.library-bulk-preview-documents>div{display:flex;align-items:center;gap:10px;padding:8px 9px;border:1px solid #e4ecee;border-radius:10px;background:#fff}.library-bulk-preview-documents>div>div{min-width:0}.library-bulk-preview-documents strong,.library-bulk-preview-documents small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-bulk-preview-documents strong{color:#35525e;font-size:.68rem}.library-bulk-preview-documents small{margin-top:2px;color:#8a999e;font-size:.58rem}.library-bulk-confirm-panel{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:14px;padding:16px 18px;background:linear-gradient(135deg,#173f61,#24586c);color:#fff}.library-bulk-confirm-panel strong{font-size:.8rem}.library-bulk-confirm-panel p{margin:3px 0 0;color:#d9e8ed;font-size:.64rem}.library-bulk-confirm-actions{display:flex;align-items:center;gap:8px}.library-bulk-confirm-actions form{margin:0}.library-bulk-confirm-actions .button-secondary{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.35);color:#fff}.library-bulk-confirm-actions button{background:#fff;color:#173f61;border:0}.library-bulk-confirm-actions button:hover{background:#f2fafc;color:#173f61}@media(max-width:900px){.library-bulk-curation-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.library-bulk-taxonomy-grid,.library-bulk-preview-grid{grid-template-columns:1fr}.library-bulk-confirm-panel{align-items:flex-start;flex-direction:column}}@media(max-width:650px){.library-bulk-curation-fields{grid-template-columns:1fr}.library-bulk-taxonomy-grid{grid-template-columns:1fr}.library-bulk-curation-footer,.library-bulk-preview-hero,.library-bulk-confirm-actions{align-items:stretch;flex-direction:column}.library-bulk-confirm-actions,.library-bulk-confirm-actions form,.library-bulk-confirm-actions button,.library-bulk-confirm-actions a{width:100%;box-sizing:border-box;text-align:center}.library-bulk-change-list>div{grid-template-columns:1fr}}

/* MVP 8.8m.13 — complete web-source version history */
.library-versions-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:18px;padding:25px 28px;border:1px solid #cfe5ea;border-radius:23px;background:linear-gradient(125deg,#eaf8fb 0%,#fff 62%,#fffbdc 100%);box-shadow:0 10px 28px rgba(27,63,78,.05)}
.library-versions-hero h1{margin:4px 0 5px;color:#173f61}.library-versions-hero p:not(.eyebrow){margin:0;color:#687e88}.library-versions-hero-state{display:flex;flex-direction:column;align-items:flex-end;gap:9px}.library-versions-hero-state a,.library-update-history-link{color:#28748b;text-decoration:none;font-size:.69rem;font-weight:850}.library-versions-hero-state a:hover,.library-update-history-link:hover{text-decoration:underline}.library-update-history-link{display:inline-flex;margin-top:8px}
.library-versions-overview{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr);gap:14px;margin-bottom:14px}.library-current-version-card,.library-version-usage-card{padding:18px;border-color:#d9e7ea}.library-current-version-card{background:linear-gradient(145deg,#fff,#f5fbfd)}.library-version-usage-card{background:linear-gradient(145deg,#fffdf0,#fff)}.library-current-version-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.library-current-version-head h2,.library-version-usage-card h2{margin:3px 0 5px;font-size:.94rem;color:#2c4b59}.library-current-version-head>span{padding:5px 8px;border-radius:999px;background:#e8f6ee;color:#397257;font-size:.61rem;font-weight:850}.library-current-version-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:14px 0 0;border:1px solid #e1eaed;border-radius:13px;overflow:hidden}.library-current-version-meta>div{padding:11px 12px;background:rgba(255,255,255,.75);border-right:1px solid #e7edef;border-bottom:1px solid #e7edef}.library-current-version-meta>div:nth-child(2n){border-right:0}.library-current-version-meta>div:nth-last-child(-n+2){border-bottom:0}.library-current-version-meta dt{color:#7a8b92;font-size:.6rem}.library-current-version-meta dd{margin:3px 0 0;color:#334f5c;font-size:.69rem;font-weight:750;overflow-wrap:anywhere}.library-current-version-meta a{color:#28748b;text-decoration:none}.library-current-version-meta code{font-size:.66rem}.library-version-usage-card>div:first-child>p:not(.eyebrow){margin:0;color:#74868e;font-size:.68rem;line-height:1.48}.library-version-project-list{display:grid;gap:7px;margin-top:12px}.library-version-project-list>div{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;align-items:center;padding:8px 9px;border:1px solid #e6e7cf;border-radius:10px;background:rgba(255,255,255,.75)}.library-version-project-list span{display:grid;place-items:center;min-height:26px;border-radius:8px;background:#fff5b6;color:#6c6200;font-size:.61rem;font-weight:850}.library-version-project-list strong{font-size:.68rem;color:#485860}.library-version-no-projects{margin-top:12px;padding:10px;border-radius:10px;background:#f7f8f5;color:#76847a;font-size:.66rem}
.library-version-timeline-panel{padding:18px;margin-top:14px}.library-version-timeline-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:13px;border-bottom:1px solid #e5edef}.library-version-timeline-head h2{margin:3px 0 4px;font-size:.95rem}.library-version-timeline-head p:not(.eyebrow){margin:0;color:#75868e;font-size:.68rem;line-height:1.45}.library-version-timeline-head>span{padding:5px 8px;border-radius:999px;background:#eef5f7;color:#57717c;font-size:.61rem;font-weight:850;white-space:nowrap}.library-version-timeline{display:grid;margin-top:15px}.library-version-event{display:grid;grid-template-columns:25px minmax(0,1fr);gap:10px;position:relative}.library-version-event-marker{position:relative;display:flex;justify-content:center}.library-version-event-marker:after{content:"";position:absolute;top:16px;bottom:-16px;width:1px;background:#dbe6e9}.library-version-event:last-child .library-version-event-marker:after{display:none}.library-version-event-marker>span{position:relative;z-index:1;width:11px;height:11px;margin-top:15px;border:3px solid #fff;border-radius:50%;background:#9bb0b8;box-shadow:0 0 0 1px #ccdce1}.library-version-event.is-accepted .library-version-event-marker>span{background:#5fa27f}.library-version-event.is-pending .library-version-event-marker>span{background:#d79b38}.library-version-event.is-ignored .library-version-event-marker>span{background:#9aa2a5}.library-version-event.is-active .library-version-event-marker>span{background:#2e8daf;box-shadow:0 0 0 2px #c5eaf3}.library-version-event-main{margin-bottom:10px;padding:12px 13px;border:1px solid #e0e8ea;border-radius:13px;background:#fbfdfd}.library-version-event.is-active .library-version-event-main{border-color:#bcdfea;background:linear-gradient(135deg,#f0fbfd,#fff)}.library-version-event-topline{display:flex;align-items:center;justify-content:space-between;gap:12px}.library-version-event-topline>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.library-version-event-topline strong{font-size:.72rem;color:#3a535f}.library-version-event-topline>code{font-size:.62rem;color:#6e8088}.library-version-event-meta{display:flex;gap:11px;flex-wrap:wrap;margin-top:8px;color:#7b8b92;font-size:.61rem}.library-version-event-meta code{font-size:.6rem}.library-version-event-actions{display:flex;align-items:center;gap:8px;margin-top:9px}.library-version-event-actions form{margin:0}.library-version-unavailable,.library-version-muted-action{font-size:.62rem;color:#8a969b;font-style:italic}.library-version-empty-state{margin-top:14px;padding:18px;border:1px dashed #d7e3e6;border-radius:13px;background:#fafcfc;text-align:center}.library-version-empty-state strong{font-size:.76rem}.library-version-empty-state p{margin:4px 0 0;color:#7a8b92;font-size:.66rem}
@media(max-width:900px){.library-versions-overview{grid-template-columns:1fr}.library-versions-hero{flex-direction:column}.library-versions-hero-state{align-items:flex-start}.library-current-version-meta{grid-template-columns:1fr}.library-current-version-meta>div{border-right:0!important;border-bottom:1px solid #e7edef!important}.library-current-version-meta>div:last-child{border-bottom:0!important}}
@media(max-width:650px){.library-version-timeline-head,.library-version-event-topline{flex-direction:column;align-items:flex-start}.library-version-event-actions{align-items:flex-start;flex-direction:column}.library-version-event-actions form,.library-version-event-actions button{width:100%}}


/* MVP 8.9.1 — Project Knowledge status management */
.projectkenner-knowledge-status-panel{position:relative;overflow:hidden;margin:0 0 20px;padding:21px 22px;border-radius:20px;border:1px solid #cfe4e9;background:linear-gradient(135deg,#eef9fc 0%,#ffffff 54%,#fffbe4 100%);box-shadow:0 9px 24px rgba(28,66,88,.055)}
.projectkenner-knowledge-status-panel:after{content:"";position:absolute;right:-58px;bottom:-86px;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle,rgba(74,192,224,.12),rgba(74,192,224,0) 70%);pointer-events:none}
.projectkenner-knowledge-status-head,.projectkenner-knowledge-status-grid,.projectkenner-knowledge-status-footer{position:relative;z-index:1}.projectkenner-knowledge-status-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px}.projectkenner-knowledge-status-head h2{margin:3px 0 5px;color:#254756;font-size:17px}.projectkenner-knowledge-status-head p:not(.eyebrow){margin:0;color:#71858e;font-size:11px;line-height:1.45}.projectkenner-knowledge-health{display:inline-flex;align-items:center;white-space:nowrap;padding:7px 10px;border:1px solid #d8e5e8;border-radius:999px;background:#f4f7f8;color:#657983;font-size:10px;font-weight:850}.projectkenner-knowledge-health.has-attention{border-color:#e9d38f;background:#fff4d8;color:#7f5b1c}.projectkenner-knowledge-health.is-ready{border-color:#cae2d4;background:#edf8f1;color:#377258}
.projectkenner-knowledge-status-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:16px}.projectkenner-knowledge-status-grid>div{padding:10px 11px;border:1px solid rgba(207,226,232,.92);border-radius:12px;background:rgba(255,255,255,.82)}.projectkenner-knowledge-status-grid span{display:block;color:#758993;font-size:9px;font-weight:750}.projectkenner-knowledge-status-grid strong{display:block;margin-top:2px;color:#275062;font-size:18px}
.projectkenner-knowledge-status-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:13px;padding-top:13px;border-top:1px solid #dbe8eb}.projectkenner-knowledge-status-footer>span{color:#748890;font-size:10px}.projectkenner-knowledge-status-footer>div{display:flex;align-items:center;gap:8px}.projectkenner-knowledge-status-footer form{margin:0}.projectkenner-knowledge-refresh-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 11px;border:0;border-radius:10px;background:#173f61;color:#fff;font:inherit;font-size:10px;font-weight:850;cursor:pointer}.projectkenner-knowledge-refresh-button:hover{background:#123650}.projectkenner-knowledge-refresh-button:disabled{opacity:.68;cursor:wait}
@media(max-width:980px){.projectkenner-knowledge-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.projectkenner-knowledge-status-head,.projectkenner-knowledge-status-footer{flex-direction:column;align-items:flex-start}.projectkenner-knowledge-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.projectkenner-knowledge-status-footer>div{width:100%;flex-direction:column;align-items:stretch}.projectkenner-knowledge-status-footer a,.projectkenner-knowledge-status-footer form,.projectkenner-knowledge-refresh-button{width:100%;box-sizing:border-box}}


/* MVP 8.9.1.1 — status-aware Projectkenner usage card */
.projectkenner-use-card{display:flex;flex-direction:column;align-items:flex-start}
.projectkenner-use-card>strong{line-height:1.12}.projectkenner-use-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.projectkenner-use-links a{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border:1px solid #d8d59b;border-radius:999px;background:rgba(255,255,255,.78);color:#3b6677;text-decoration:none;font-size:10px;font-weight:850}.projectkenner-use-links a:hover{background:#fff;border-color:#9fd4df;color:#147897}


/* MVP 8.9.1.2 — keep project document action popovers neatly inside the panel */
.pk-document-menu-popover{width:min(280px,calc(100vw - 48px));max-width:min(280px,calc(100vw - 48px));box-sizing:border-box}
.pk-document-menu-popover form,.pk-document-menu-popover label{min-width:0}
.pk-document-menu-popover input,.pk-document-menu-popover select,.pk-document-menu-popover button,.pk-document-menu-popover .pk-danger-link,.pk-document-menu-popover>a{width:100%;max-width:100%;box-sizing:border-box}
.pk-document-menu-popover>a{display:block}
.pk-document-menu-popover select{min-width:0;text-overflow:ellipsis}
@media(max-width:1180px){.pk-document-menu-popover{right:-6px}}
@media(max-width:760px){.pk-document-row{grid-template-columns:34px minmax(0,1fr) 38px;align-items:start}.pk-document-status{grid-column:2;justify-self:start}.pk-document-menu-popover{right:0;top:32px;width:min(260px,calc(100vw - 36px));max-width:min(260px,calc(100vw - 36px))}}


/* MVP 8.9.2 — source-aware Project Knowledge retrieval */
.knowledge-result-rank-meta{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.knowledge-source-scope{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border-radius:999px;font-size:.55rem;font-weight:850;white-space:nowrap;border:1px solid #d8e5e9;background:#f3f7f8;color:#607782}.knowledge-source-scope.is-project{background:#e9f6ef;border-color:#cce4d5;color:#347156}.knowledge-source-scope.is-library{background:#fff7df;border-color:#ead89e;color:#81621e}.knowledge-source-scope.is-reference{background:#edf4f7;border-color:#d7e4e8;color:#58717e}
@media(max-width:650px){.knowledge-result-rank-meta{justify-content:flex-start}}


/* MVP 8.9.4 — professional analysis source-basis diagnostics */
.pk-analysis-source-basis{display:grid;grid-template-columns:minmax(150px,.75fr) minmax(0,1.25fr);gap:10px 18px;align-items:center;margin:14px 0 4px;padding:14px 16px;border:1px solid #d4e5ea;border-radius:15px;background:linear-gradient(135deg,#f4fbfd,#fff)}
.pk-analysis-source-basis>div:first-child{display:flex;flex-direction:column;gap:2px}.pk-analysis-basis-kicker{color:#64808c;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.pk-analysis-source-basis strong{color:#24495b;font-size:13px}.pk-analysis-basis-metrics{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.pk-analysis-basis-metrics span{display:inline-flex;align-items:center;gap:4px;padding:6px 8px;border:1px solid #dce8eb;border-radius:999px;background:#fff;color:#637b85;font-size:10px}.pk-analysis-basis-metrics b{color:#24566c}.pk-analysis-source-basis>small{grid-column:1/-1;color:#73878f;font-size:10px;line-height:1.45}.pk-analysis-source-basis.is-limited{border-color:#ead9a8;background:linear-gradient(135deg,#fffaf0,#fff)}.pk-analysis-source-basis.is-context_only{border-color:#d9dfe3;background:linear-gradient(135deg,#f7f8f9,#fff)}.pk-analysis-source-basis.is-conflict{border-color:#edc1b4;background:linear-gradient(135deg,#fff3ef,#fff)}.pk-analysis-basis-metrics .has-conflict{border-color:#edc1b4;background:#fff4f1;color:#8a493b}.pk-analysis-task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){.pk-analysis-source-basis{grid-template-columns:1fr}.pk-analysis-basis-metrics{justify-content:flex-start}.pk-analysis-source-basis>small{grid-column:auto}.pk-analysis-task-grid{grid-template-columns:1fr}}


/* MVP 8.9.4.1 — differentiated analysis cards with restrained PIE colour gradients */
button.pk-analysis-task-card[data-analysis-task="summary"]{background:linear-gradient(135deg,#f3fbfd 0%,#ffffff 62%,#f7fbec 100%)!important}
button.pk-analysis-task-card[data-analysis-task="summary"] .pk-analysis-task-icon{background:#e7f8fc;color:#157b9c}
button.pk-analysis-task-card[data-analysis-task="decisions"]{background:linear-gradient(135deg,#fffdf2 0%,#ffffff 66%,#fff9d9 100%)!important}
button.pk-analysis-task-card[data-analysis-task="decisions"] .pk-analysis-task-icon{background:#fff4b8;color:#8a7200}
button.pk-analysis-task-card[data-analysis-task="open_points"]{background:linear-gradient(135deg,#fcf7fd 0%,#ffffff 66%,#f7effa 100%)!important}
button.pk-analysis-task-card[data-analysis-task="open_points"] .pk-analysis-task-icon{background:#f3e9f7;color:#7c4f86}
button.pk-analysis-task-card[data-analysis-task="risks"]{background:linear-gradient(135deg,#fff8f3 0%,#ffffff 66%,#fff0e7 100%)!important}
button.pk-analysis-task-card[data-analysis-task="risks"] .pk-analysis-task-icon{background:#fff0e6;color:#a65c2a}
button.pk-analysis-task-card[data-analysis-task="stakeholders"]{background:linear-gradient(135deg,#f1faf7 0%,#ffffff 66%,#eaf7f2 100%)!important}
button.pk-analysis-task-card[data-analysis-task="stakeholders"] .pk-analysis-task-icon{background:#e3f4ed;color:#2f7762}
button.pk-analysis-task-card[data-analysis-task="requirements"]{background:linear-gradient(135deg,#f5f6fb 0%,#ffffff 66%,#eef0f8 100%)!important}
button.pk-analysis-task-card[data-analysis-task="requirements"] .pk-analysis-task-icon{background:#e9ecf6;color:#53639b}
button.pk-analysis-task-card[data-analysis-task="compare"]{background:linear-gradient(135deg,#f4faf9 0%,#ffffff 58%,#fff8e7 100%)!important}
button.pk-analysis-task-card[data-analysis-task="compare"] .pk-analysis-task-icon{background:#e7f2f1;color:#3b726f}

button.pk-analysis-task-card[data-analysis-task="summary"]:hover,button.pk-analysis-task-card[data-analysis-task="summary"].active{border-color:#4ac0e0!important;background:linear-gradient(135deg,#e8f9fd 0%,#ffffff 58%,#f5f9dc 100%)!important}
button.pk-analysis-task-card[data-analysis-task="decisions"]:hover,button.pk-analysis-task-card[data-analysis-task="decisions"].active{border-color:#e8cd58!important;background:linear-gradient(135deg,#fff9da 0%,#ffffff 62%,#fff4b8 100%)!important}
button.pk-analysis-task-card[data-analysis-task="open_points"]:hover,button.pk-analysis-task-card[data-analysis-task="open_points"].active{border-color:#c9a4d0!important;background:linear-gradient(135deg,#f7edf9 0%,#ffffff 62%,#f0e3f4 100%)!important}
button.pk-analysis-task-card[data-analysis-task="risks"]:hover,button.pk-analysis-task-card[data-analysis-task="risks"].active{border-color:#e6a47d!important;background:linear-gradient(135deg,#fff0e7 0%,#ffffff 62%,#ffe5d7 100%)!important}
button.pk-analysis-task-card[data-analysis-task="stakeholders"]:hover,button.pk-analysis-task-card[data-analysis-task="stakeholders"].active{border-color:#86c4ad!important;background:linear-gradient(135deg,#e8f7f1 0%,#ffffff 62%,#ddf1e9 100%)!important}
button.pk-analysis-task-card[data-analysis-task="requirements"]:hover,button.pk-analysis-task-card[data-analysis-task="requirements"].active{border-color:#aeb7d8!important;background:linear-gradient(135deg,#eef0f8 0%,#ffffff 62%,#e4e8f5 100%)!important}
button.pk-analysis-task-card[data-analysis-task="compare"]:hover,button.pk-analysis-task-card[data-analysis-task="compare"].active{border-color:#9ecbc8!important;background:linear-gradient(135deg,#eaf6f4 0%,#ffffff 58%,#fff3d4 100%)!important}


/* MVP 8.9.4.2 — structured Projectkenner analysis result layout */
.pk-analysis-answer{display:grid;gap:14px;padding:24px 4px 8px;line-height:1.75;font-size:15px;color:#26343b}
.pk-analysis-answer-paragraph{margin:0;color:#29414c}
.pk-analysis-answer-heading{margin:10px 0 0;padding:0 0 8px;color:#173f5a;font-size:1.05rem;line-height:1.35;border-bottom:1px solid #deebf0}
.pk-analysis-answer-list{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.pk-analysis-answer-list li{position:relative;padding:12px 14px 12px 40px;border:1px solid #dce9ee;border-radius:16px;background:linear-gradient(135deg,#fbfeff 0%,#f5fbfd 100%);box-shadow:0 5px 14px rgba(28,73,96,.04)}
.pk-analysis-answer-list li:before{content:"";position:absolute;left:15px;top:16px;width:10px;height:10px;border-radius:999px;background:linear-gradient(135deg,#4ac0e0,#ffe166);box-shadow:0 0 0 4px rgba(74,192,224,.12)}


/* MVP 8.9.4.3 — robust structured analyses + inline enumerations */
.pk-analysis-answer-intro{margin:2px 0 0;padding:12px 14px;border-left:4px solid #4ac0e0;border-radius:0 12px 12px 0;background:linear-gradient(90deg,rgba(74,192,224,.08),rgba(255,255,255,0));color:#35515f;font-weight:650}
.pk-analysis-answer-list li{line-height:1.62}
.pk-analysis-answer-list li+li{margin-top:0}

/* MVP 8.10.1 — shared central project dossier foundation */
.project-dossier-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:28px 30px;margin-bottom:18px;border:1px solid #c9e5eb;border-radius:24px;background:linear-gradient(125deg,#e9f9fc 0%,#fff 55%,#fffbdc 100%);box-shadow:0 12px 30px rgba(29,67,92,.06)}.project-dossier-hero h1{margin:4px 0 7px;font-size:clamp(28px,4vw,42px);color:#203d4c}.project-dossier-hero p:not(.eyebrow){max-width:760px;margin:0;color:#667d88}.project-dossier-hero-status{display:flex;gap:8px}.project-dossier-hero-status span{min-width:92px;padding:10px 12px;border:1px solid #cde1e6;border-radius:14px;background:rgba(255,255,255,.84);color:#71838c;font-size:10px}.project-dossier-hero-status strong{display:block;color:#217391;font-size:18px}
.project-dossier-principle{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:13px 15px;border:1px solid #d5e6df;border-radius:15px;background:linear-gradient(135deg,#eef8f2,#fff);color:#335a49}.project-dossier-principle-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#dff2e6;color:#347354;font-weight:900}.project-dossier-principle strong{display:block;font-size:12px}.project-dossier-principle p{margin:2px 0 0;color:#6a8177;font-size:10px}
.project-dossier-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.project-dossier-main{display:grid;gap:16px}.project-dossier-sidebar{position:sticky;top:20px}.project-dossier-type-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.project-dossier-type-card{display:flex;flex-direction:column;gap:4px;padding:12px 11px;border:1px solid #d8e6ea;border-radius:14px;background:#fff;text-decoration:none;color:#58717d;transition:.15s ease}.project-dossier-type-card span{font-size:10px;font-weight:800}.project-dossier-type-card strong{font-size:20px;color:#264f62}.project-dossier-type-card:hover,.project-dossier-type-card.active{transform:translateY(-1px);box-shadow:0 7px 16px rgba(31,69,85,.07)}.project-dossier-type-card.type-fact{background:linear-gradient(145deg,#effafd,#fff)}.project-dossier-type-card.type-stakeholder{background:linear-gradient(145deg,#edf8f3,#fff)}.project-dossier-type-card.type-risk{background:linear-gradient(145deg,#fff2eb,#fff)}.project-dossier-type-card.type-opportunity{background:linear-gradient(145deg,#fffbe2,#fff)}.project-dossier-type-card.type-action{background:linear-gradient(145deg,#f3f1fb,#fff)}.project-dossier-type-card.type-decision{background:linear-gradient(145deg,#eef3fb,#fff)}.project-dossier-type-card.type-measure{background:linear-gradient(145deg,#f1f7f5,#fff)}
.project-dossier-items-panel{padding:20px;border-color:#d4e5e9;background:linear-gradient(145deg,#fff,#f8fcfd)}.project-dossier-items-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:14px;border-bottom:1px solid #e2ebee}.project-dossier-items-head h2{margin:3px 0 4px}.project-dossier-items-head p:not(.eyebrow){margin:0;color:#7a8b92;font-size:11px}.project-dossier-filter-links{display:flex;gap:5px;flex-wrap:wrap}.project-dossier-filter-links a{padding:6px 9px;border-radius:999px;background:#f1f5f6;color:#617781;font-size:9px;font-weight:850;text-decoration:none}.project-dossier-filter-links a.active{background:#173f61;color:#fff}.project-dossier-item-list{display:grid;gap:10px;margin-top:14px}.project-dossier-item{display:grid;grid-template-columns:5px minmax(0,1fr) auto;overflow:hidden;border:1px solid #dce7ea;border-radius:15px;background:#fff}.project-dossier-item-accent{background:#4ac0e0}.project-dossier-item.type-stakeholder .project-dossier-item-accent{background:#67ad91}.project-dossier-item.type-risk .project-dossier-item-accent{background:#df9161}.project-dossier-item.type-opportunity .project-dossier-item-accent{background:#e3c84c}.project-dossier-item.type-action .project-dossier-item-accent{background:#9678b5}.project-dossier-item.type-decision .project-dossier-item-accent{background:#6588b9}.project-dossier-item.type-measure .project-dossier-item-accent{background:#6d9c91}.project-dossier-item-main{padding:14px 15px}.project-dossier-item-topline{display:flex;align-items:center;justify-content:space-between;gap:10px}.project-dossier-item-topline>div{display:flex;gap:6px;flex-wrap:wrap}.project-dossier-type-pill,.project-dossier-status-pill{padding:4px 7px;border-radius:999px;background:#eef5f7;color:#53717f;font-size:8.5px;font-weight:850}.project-dossier-status-pill.status-confirmed{background:#eaf6ef;color:#347055}.project-dossier-status-pill.status-proposed{background:#fff4d8;color:#7c5c1e}.project-dossier-status-pill.status-rejected,.project-dossier-status-pill.status-superseded{background:#f1f3f4;color:#78858b}.project-dossier-item-topline small{color:#8a999f;font-size:9px}.project-dossier-item h3{margin:8px 0 4px;color:#294653;font-size:14px}.project-dossier-item-main>p{margin:0;color:#627983;font-size:11px;line-height:1.5}.project-dossier-item-source{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px;padding-top:9px;border-top:1px solid #eef2f3;font-size:9px}.project-dossier-item-source>span{color:#86949a}.project-dossier-item-source strong{color:#58717c}.project-dossier-item-source small{color:#809097}.project-dossier-item-actions{display:flex;flex-direction:column;justify-content:center;gap:6px;padding:10px 12px;border-left:1px solid #edf1f2}.project-dossier-item-actions form{margin:0}.project-dossier-item-actions button{min-width:92px;min-height:32px;padding:6px 9px;border-radius:9px;font-size:9px;font-weight:850}.project-dossier-confirm{border:0;background:#173f61;color:#fff}.project-dossier-reject,.project-dossier-muted{border:1px solid #d8e2e5;background:#fff;color:#647780}.project-dossier-empty{margin-top:15px;padding:26px;border:1px dashed #cbdde2;border-radius:15px;background:#fafcfd;text-align:center}.project-dossier-empty strong{display:block;color:#3d5966}.project-dossier-empty p{max-width:600px;margin:6px auto 0;color:#7a8d95;font-size:11px}
.project-dossier-add-panel{padding:22px;background:linear-gradient(155deg,#fffbe5 0%,#fff 58%,#eef9fc 100%);border-color:#e1dcae}.project-dossier-add-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#fff06a;color:#665d00;font-size:23px}.project-dossier-add-panel h2{margin:5px 0 7px}.project-dossier-add-panel>p:not(.eyebrow){color:#73858e;font-size:11px;line-height:1.5}.project-dossier-add-panel textarea{resize:vertical;min-height:92px}.project-dossier-add-panel label>span{color:#98a4a9;font-size:9px;font-weight:500}.project-dossier-add-panel select,.project-dossier-add-panel input,.project-dossier-add-panel textarea{background:rgba(255,255,255,.9)}
@media(max-width:1100px){.project-dossier-type-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:900px){.project-dossier-layout{grid-template-columns:1fr}.project-dossier-sidebar{position:static}.project-dossier-hero{align-items:flex-start;flex-direction:column}}@media(max-width:650px){.project-dossier-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-dossier-items-head,.project-dossier-item-topline{flex-direction:column;align-items:flex-start}.project-dossier-item{grid-template-columns:5px minmax(0,1fr)}.project-dossier-item-actions{grid-column:2;border-left:0;border-top:1px solid #edf1f2;flex-direction:row;justify-content:flex-start}.project-dossier-hero-status{width:100%}.project-dossier-hero-status span{flex:1}}


/* MVP 8.10.2 — Projectkenner analysis proposals into the central project dossier */
.pk-analysis-dossier-callout{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;margin:16px 0 4px;padding:15px 17px;border:1px solid #cfe4dc;border-radius:17px;background:linear-gradient(135deg,#eef8f3 0%,#fff 56%,#fffbe8 100%)}
.pk-analysis-dossier-callout strong{display:block;margin:2px 0 4px;color:#285344;font-size:13px}.pk-analysis-dossier-callout p{margin:0;color:#6b8177;font-size:10.5px;line-height:1.5}.pk-analysis-dossier-callout form{margin:0}.pk-analysis-dossier-callout button{min-height:39px;padding:8px 13px;border:0;border-radius:11px;background:#173f61;color:#fff;font-size:10px;font-weight:850;white-space:nowrap}.pk-analysis-alert.dossier-success{display:grid;grid-template-columns:auto minmax(0,1fr) auto;background:linear-gradient(135deg,#eef8f3,#fff);border:1px solid #cfe4d8;color:#315b49}.pk-analysis-alert.dossier-success a{align-self:center;color:#245f4b;font-size:11px;font-weight:850;text-decoration:none;white-space:nowrap}
@media(max-width:760px){.pk-analysis-dossier-callout{grid-template-columns:1fr}.pk-analysis-dossier-callout button{width:100%}.pk-analysis-alert.dossier-success{grid-template-columns:1fr}}


/* MVP 8.10.2.1 — Projectdossier UI polish */
.project-dossier-layout{gap:22px}
.project-dossier-main{gap:18px}
.project-dossier-type-grid{gap:10px}
.project-dossier-type-card{position:relative;overflow:hidden;min-height:82px;padding:14px 13px;border-color:#d4e5ea;box-shadow:0 7px 18px rgba(28,67,84,.045)}
.project-dossier-type-card:after{content:"";position:absolute;right:-24px;bottom:-28px;width:70px;height:70px;border-radius:50%;background:rgba(255,255,255,.52);pointer-events:none}
.project-dossier-type-card span,.project-dossier-type-card strong{position:relative;z-index:1}.project-dossier-type-card span{color:#466773;letter-spacing:.01em}.project-dossier-type-card strong{font-size:22px;color:#21495e}
.project-dossier-type-card:hover,.project-dossier-type-card.active{border-color:#9fd7e4;box-shadow:0 10px 22px rgba(31,69,85,.09)}
.project-dossier-type-card.active{outline:2px solid rgba(74,192,224,.14);outline-offset:1px}
.project-dossier-type-card.type-fact{background:linear-gradient(145deg,#e9f8fc 0%,#f7fcfe 64%,#fff 100%)}
.project-dossier-type-card.type-stakeholder{background:linear-gradient(145deg,#e7f6ef 0%,#f8fcfa 66%,#fff 100%)}
.project-dossier-type-card.type-risk{background:linear-gradient(145deg,#fff0e8 0%,#fff8f4 66%,#fff 100%)}
.project-dossier-type-card.type-opportunity{background:linear-gradient(145deg,#fff8d7 0%,#fffcef 66%,#fff 100%)}
.project-dossier-type-card.type-action{background:linear-gradient(145deg,#f1eefa 0%,#faf8fd 66%,#fff 100%)}
.project-dossier-type-card.type-decision{background:linear-gradient(145deg,#eaf2fb 0%,#f8fbfe 66%,#fff 100%)}
.project-dossier-type-card.type-measure{background:linear-gradient(145deg,#eaf5f1 0%,#f8fcfa 66%,#fff 100%)}

.project-dossier-items-panel{position:relative;overflow:hidden;padding:23px;border-color:#cfe3e8;background:linear-gradient(145deg,#f8fcfd 0%,#ffffff 58%,#f4faf8 100%);box-shadow:0 14px 34px rgba(29,67,92,.065)}
.project-dossier-items-panel:before{content:"";position:absolute;right:-54px;bottom:-74px;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle,rgba(74,192,224,.11) 0%,rgba(74,192,224,.045) 48%,rgba(74,192,224,0) 72%);pointer-events:none}
.project-dossier-items-head,.project-dossier-item-list,.project-dossier-empty{position:relative;z-index:1}
.project-dossier-filter-links{padding:4px;border:1px solid #dde9ed;border-radius:999px;background:rgba(255,255,255,.78)}
.project-dossier-filter-links a{padding:7px 11px;background:transparent}.project-dossier-filter-links a.active{background:#173f61;box-shadow:0 5px 12px rgba(23,63,97,.14)}
.project-dossier-empty{display:flex;min-height:190px;flex-direction:column;align-items:center;justify-content:center;margin-top:18px;padding:34px;border:1px dashed #bcd9e2;border-radius:20px;background:linear-gradient(135deg,rgba(233,248,252,.72),rgba(255,255,255,.9) 58%,rgba(255,248,215,.5));box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.project-dossier-empty:before{content:"+";display:grid;place-items:center;width:42px;height:42px;margin-bottom:13px;border-radius:14px;background:linear-gradient(145deg,#dff6fc,#fff7ac);color:#286d85;font-size:24px;font-weight:500;box-shadow:0 8px 18px rgba(45,103,126,.08)}
.project-dossier-empty strong{font-size:15px;color:#315364}.project-dossier-empty p{font-size:11px;line-height:1.55}

.project-dossier-sidebar{top:24px}.project-dossier-add-panel{position:relative;overflow:hidden;padding:24px;border-color:#d7e3cf;background:linear-gradient(155deg,#fff9da 0%,#fffef4 31%,#ffffff 63%,#edf9fc 100%);box-shadow:0 16px 34px rgba(31,68,85,.075)}
.project-dossier-add-panel:before{content:"";position:absolute;right:-42px;top:-48px;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,rgba(255,236,0,.20) 0%,rgba(255,236,0,.075) 48%,rgba(255,236,0,0) 72%);pointer-events:none}
.project-dossier-add-panel:after{content:"";position:absolute;left:-54px;bottom:-68px;width:160px;height:160px;border-radius:50%;background:radial-gradient(circle,rgba(74,192,224,.14) 0%,rgba(74,192,224,.05) 48%,rgba(74,192,224,0) 72%);pointer-events:none}
.project-dossier-add-panel>*{position:relative;z-index:1}.project-dossier-add-icon{width:46px;height:46px;border:1px solid #ebdd6d;background:linear-gradient(145deg,#fff067,#fff6a8);box-shadow:0 8px 18px rgba(125,105,0,.10)}
.project-dossier-add-panel h2{color:#233f4e;font-size:20px}.project-dossier-add-panel>p:not(.eyebrow){margin-bottom:19px;color:#647b86;line-height:1.55}
.project-dossier-add-panel .form{display:grid;gap:15px}.project-dossier-add-panel .form label{display:grid;gap:7px;margin:0;color:#294957;font-size:11px;font-weight:850}.project-dossier-add-panel label>span{margin-left:4px;color:#8c9ba2;font-size:9px;font-weight:650}
.project-dossier-add-panel select,.project-dossier-add-panel input,.project-dossier-add-panel textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid #bdd5df!important;border-radius:14px!important;background:rgba(255,255,255,.94)!important;color:#263e49!important;font:inherit;box-shadow:0 5px 14px rgba(31,68,84,.035);transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.project-dossier-add-panel select,.project-dossier-add-panel input{min-height:48px;padding:0 14px!important}.project-dossier-add-panel textarea{min-height:118px;padding:13px 14px!important;line-height:1.55;resize:vertical}
.project-dossier-add-panel select:hover,.project-dossier-add-panel input:hover,.project-dossier-add-panel textarea:hover{border-color:#8fcadb!important;background:#fff!important}
.project-dossier-add-panel select:focus,.project-dossier-add-panel input:focus,.project-dossier-add-panel textarea:focus{outline:0!important;border-color:#4ac0e0!important;background:#fff!important;box-shadow:0 0 0 4px rgba(74,192,224,.13),0 7px 18px rgba(31,68,84,.06)!important}
.project-dossier-add-panel input::placeholder,.project-dossier-add-panel textarea::placeholder{color:#94a2a8;opacity:1}.project-dossier-add-panel textarea::placeholder{font-family:inherit}
.project-dossier-add-panel .form>button{min-height:50px;margin-top:2px;border-radius:14px!important;background:linear-gradient(135deg,#173f61,#194d70)!important;box-shadow:0 9px 20px rgba(23,63,97,.16);font-weight:850}.project-dossier-add-panel .form>button:hover{transform:translateY(-1px);box-shadow:0 11px 24px rgba(23,63,97,.21)}

.project-dossier-item{box-shadow:0 6px 17px rgba(29,62,76,.04)}
@media(max-width:900px){.project-dossier-add-panel{padding:22px}.project-dossier-empty{min-height:160px}}
@media(max-width:650px){.project-dossier-items-panel{padding:18px}.project-dossier-filter-links{border-radius:14px}.project-dossier-add-panel{padding:19px}.project-dossier-type-card{min-height:74px}}


/* MVP 8.10.3 — central dossier provenance, merge review and shared-context UX */
.project-dossier-provenance{margin-top:10px;border:1px solid #deeaed;border-radius:12px;background:linear-gradient(135deg,#f9fcfd,#fffef7);overflow:hidden}
.project-dossier-provenance summary{list-style:none;cursor:pointer;padding:9px 11px;color:#3f6676;font-size:9px;font-weight:850}.project-dossier-provenance summary::-webkit-details-marker{display:none}.project-dossier-provenance[open] summary{border-bottom:1px solid #e5edef;background:#f3fafc}
.project-dossier-provenance>div{display:grid;gap:8px;padding:11px}.project-dossier-provenance p{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;margin:0;font-size:9px;line-height:1.45}.project-dossier-provenance p strong{color:#4a6875}.project-dossier-provenance p span{color:#71858e}
.project-dossier-merge-suggestion{margin-top:12px;padding:13px;border:1px solid #ead89d;border-radius:14px;background:linear-gradient(135deg,#fff8dc 0%,#fffef7 58%,#effafd 100%)}.project-dossier-merge-kicker{display:block;margin-bottom:5px;color:#876b24;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.project-dossier-merge-suggestion>strong{display:block;color:#284e5f;font-size:11px}.project-dossier-merge-suggestion>p{margin:4px 0 9px;color:#6b7e86;font-size:9px;line-height:1.45}.project-dossier-merge-suggestion form{margin:0}.project-dossier-merge-suggestion button{width:auto!important;min-height:32px!important;padding:6px 10px!important;border:0!important;border-radius:9px!important;background:#173f61!important;color:#fff!important;font-size:9px!important;font-weight:850!important}.project-dossier-merge-suggestion>small{display:block;margin-top:7px;color:#8a948e;font-size:8px;line-height:1.4}
@media(max-width:650px){.project-dossier-provenance p{grid-template-columns:1fr;gap:2px}}


/* MVP 8.10.3.2 — structured open-points analysis sections */
.pk-analysis-answer-heading.is-open{color:#176b86;border-bottom-color:#bfe4ed}.pk-analysis-answer-list.is-open li{background:linear-gradient(135deg,#f8fdff,#edf9fc);border-color:#cae6ed}
.pk-analysis-answer-heading.is-uncertainty{color:#78601c;border-bottom-color:#eadca7}.pk-analysis-answer-list.is-uncertainty li{background:linear-gradient(135deg,#fffdf5,#fff8df);border-color:#ecdfb0}.pk-analysis-answer-list.is-uncertainty li:before{background:linear-gradient(135deg,#f1c94d,#ffe986);box-shadow:0 0 0 4px rgba(241,201,77,.14)}
.pk-analysis-answer-heading.is-conflict{color:#8a4c3f;border-bottom-color:#ebc8bf}.pk-analysis-answer-list.is-conflict li{background:linear-gradient(135deg,#fffafa,#fff1ed);border-color:#eccfc7}.pk-analysis-answer-list.is-conflict li:before{background:linear-gradient(135deg,#df8d73,#f2b19b);box-shadow:0 0 0 4px rgba(223,141,115,.14)}


/* MVP 8.11.1 — authentication identity/session foundation */
.auth-page{min-height:100vh;margin:0;background:linear-gradient(135deg,#eef9fc 0%,#f5f7f8 52%,#fffbdc 100%);color:#1f2b34;font-family:inherit}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:28px}.auth-card{width:min(440px,100%);padding:34px;border:1px solid #cbe2e9;border-radius:26px;background:rgba(255,255,255,.94);box-shadow:0 22px 60px rgba(25,63,82,.12)}.auth-brand-mark{display:grid;place-items:center;width:52px;height:52px;margin-bottom:18px;border-radius:17px;background:linear-gradient(135deg,#dff6fc,#fff5a8);color:#17415d;font-size:14px;font-weight:950;letter-spacing:.04em}.auth-card h1{margin:5px 0 8px;font-size:34px}.auth-intro{margin:0 0 22px;color:#657a86;line-height:1.55}.auth-form{display:grid;gap:14px}.auth-form label{display:grid;gap:7px;color:#2c4b5c;font-size:12px;font-weight:850}.auth-form input{min-height:48px;padding:0 14px;border:1px solid #bfd8e1;border-radius:13px;background:#fbfdfe;font:inherit;color:#223846}.auth-form input:focus{outline:none;border-color:#4ac0e0;box-shadow:0 0 0 4px rgba(74,192,224,.13)}.auth-form button{min-height:48px;border:0;border-radius:13px;background:#174565;color:white;font:inherit;font-weight:900;cursor:pointer;box-shadow:0 9px 20px rgba(23,69,101,.16)}.auth-error{margin:0 0 16px;padding:12px 14px;border:1px solid #efc0b2;border-radius:13px;background:#fff2ee;color:#8a3d28;font-size:12px;font-weight:750}.auth-note{display:block;margin-top:18px;color:#8999a1;line-height:1.45}


/* MVP 8.11.3 — secure account onboarding, polished auth and team access */
.auth-page{position:relative;overflow-x:hidden;background:linear-gradient(135deg,#edf9fc 0%,#f7f8fb 48%,#fff8d8 100%)}
.auth-surface-blvc{background:linear-gradient(135deg,#eff8fc 0%,#f9f7ff 52%,#fff3dd 100%)}
.auth-shell{position:relative;isolation:isolate;overflow:hidden}
.auth-shape{position:absolute;z-index:-1;display:block;border-radius:999px;pointer-events:none;filter:blur(.2px)}
.auth-shape-one{width:340px;height:340px;left:-110px;top:-90px;background:radial-gradient(circle at 36% 32%,rgba(74,192,224,.36),rgba(74,192,224,.10) 55%,transparent 72%)}
.auth-shape-two{width:310px;height:310px;right:-80px;bottom:-100px;background:radial-gradient(circle at 50% 50%,rgba(255,225,102,.34),rgba(255,225,102,.08) 58%,transparent 74%)}
.auth-shape-three{width:170px;height:170px;right:16%;top:8%;border:24px solid rgba(31,93,124,.07);background:transparent;transform:rotate(18deg)}
.auth-card{position:relative;overflow:hidden;padding:38px;border-color:rgba(172,211,224,.84);background:linear-gradient(150deg,rgba(255,255,255,.97),rgba(248,252,253,.94));box-shadow:0 26px 70px rgba(24,63,84,.16)}
.auth-card:before{content:"";position:absolute;right:-65px;top:-70px;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(74,192,224,.16),transparent 68%);pointer-events:none}
.auth-brand-lockup{position:relative;display:flex;align-items:center;gap:14px;margin-bottom:22px}.auth-brand-logo{display:block;object-fit:contain}.auth-brand-logo-rondom{width:78px;max-height:58px}.auth-brand-logo-blvc{width:92px;max-height:56px}.auth-brand-lockup .eyebrow{margin:0 0 3px}.auth-brand-lockup strong{display:block;color:#183f59;font-size:.92rem}.auth-card h1{color:#163b55;letter-spacing:-.03em}.auth-form input{background:rgba(255,255,255,.96);box-shadow:inset 0 1px 0 #fff}.auth-form button[type="submit"]{background:linear-gradient(135deg,#174b6b,#14334f 68%,#235f78);transition:transform .14s ease,box-shadow .14s ease}.auth-form button[type="submit"]:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(23,69,101,.22)}
.auth-password-field{position:relative;display:block}.auth-password-field input{width:100%;box-sizing:border-box;padding-right:50px}.auth-password-toggle{position:absolute!important;right:8px;top:50%;transform:translateY(-50%)!important;width:35px!important;height:35px!important;min-height:35px!important;padding:0!important;border:1px solid #d4e5eb!important;border-radius:10px!important;background:#f4fafc!important;color:#315e70!important;box-shadow:none!important;font-size:16px!important}.auth-password-toggle:hover{background:#eaf6f9!important;transform:translateY(-50%)!important}
.auth-success{margin:0 0 16px;padding:12px 14px;border:1px solid #c9e4d2;border-radius:13px;background:#edf8f1;color:#356d4e;font-size:12px;font-weight:750}.auth-password-guidance{display:grid;gap:2px;padding:12px 14px;border-radius:13px;background:linear-gradient(135deg,#f0f9fc,#fffbe9);border:1px solid #d7e8e7}.auth-password-guidance strong{font-size:11px;color:#285568}.auth-password-guidance span{font-size:10px;color:#71848c;line-height:1.45}.auth-expired-icon{display:grid;place-items:center;width:52px;height:52px;margin-bottom:18px;border-radius:16px;background:#fff0ea;color:#9b442d;font-size:20px;font-weight:900}.auth-login-link{display:inline-flex;margin-top:10px;padding:11px 15px;border-radius:12px;background:#174565;color:#fff;text-decoration:none;font-weight:850}.auth-activation-card{width:min(480px,100%)}
/* MVP 8.11.3.1 — polished account chip and logout affordance */
.auth-account-chip,.impact-header-account{display:flex;align-items:center;gap:12px;padding:7px 8px 7px 12px;border:1px solid rgba(152,190,204,.58);border-radius:16px;background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(240,248,251,.92));box-shadow:0 10px 24px rgba(21,58,78,.10),inset 0 1px 0 rgba(255,255,255,.8)}
.auth-account-chip>div,.impact-header-account>div{min-width:0}
.auth-account-chip strong,.impact-header-account strong{display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#234b60;font-size:.73rem;line-height:1.1}
.auth-account-chip small,.impact-header-account small{display:block;margin-top:2px;color:#7a8d96;font-size:.56rem;font-weight:700}
.auth-account-chip form,.impact-header-account form{margin:0}
.auth-logout-button{position:relative;min-height:38px!important;padding:8px 14px!important;border:1px solid rgba(17,52,78,.08)!important;border-radius:11px!important;background:linear-gradient(135deg,#194f72,#123752 72%,#205c7a)!important;color:#fff!important;box-shadow:0 10px 20px rgba(18,55,82,.18)!important;font-size:.61rem!important;font-weight:900!important;letter-spacing:.01em}
.auth-logout-button:hover{background:linear-gradient(135deg,#1f5d86,#153f60 72%,#276b88)!important;border-color:rgba(17,52,78,.14)!important;transform:translateY(-1px)}
.auth-logout-button:active{transform:translateY(0)}
.impact-header-account{margin-left:auto;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(239,246,249,.92))}
.impact-header-account+.impact-version-badge{margin-left:2px}
.impact-main-nav{margin-left:auto}
.impact-header-account{margin-left:10px}
.impact-team-access{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.72fr);gap:24px;margin-top:24px;padding:24px;border:1px solid #cfe2e9;border-radius:24px;background:radial-gradient(circle at 92% 8%,rgba(255,225,102,.18),transparent 25%),radial-gradient(circle at 5% 100%,rgba(74,192,224,.14),transparent 28%),linear-gradient(145deg,#f9fdfe,#fffdf5);box-shadow:0 14px 34px rgba(24,60,78,.06)}.impact-team-access-copy h2{margin:4px 0 7px;color:#173f59}.impact-team-access-copy>p:not(.eyebrow){max-width:680px;margin:0;color:#697d87;line-height:1.55}.impact-team-invite-form{display:grid;gap:10px;padding:18px;border:1px solid #d9e7eb;border-radius:17px;background:rgba(255,255,255,.88)}.impact-team-invite-form label{display:grid;gap:5px;color:#35596a;font-size:.66rem;font-weight:850}.impact-team-invite-form input,.impact-team-invite-form select{min-height:42px;padding:0 11px;border:1px solid #c9dce3;border-radius:11px;background:#fff;color:#284452;font:inherit}.impact-team-invite-form button{min-height:42px;border:0;border-radius:11px;background:linear-gradient(135deg,#1b5d78,#153d5b);color:#fff;font-weight:900}.impact-team-message{margin-top:12px;padding:10px 12px;border-radius:11px;font-size:.63rem;font-weight:750}.impact-team-message.success{background:#edf8f2;color:#3a7657;border:1px solid #cfe6d8}.impact-team-message.info{background:#eef8fb;color:#346a7d;border:1px solid #cfe4ea}.impact-team-message.error{background:#fff1ed;color:#924831;border:1px solid #efc8bb}.impact-team-pending{grid-column:1/-1;display:grid;gap:7px;padding-top:16px;border-top:1px solid #dce8eb}.impact-team-pending>strong{color:#315465;font-size:.72rem}.impact-team-pending-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border:1px solid #dce8eb;border-radius:12px;background:rgba(255,255,255,.82)}.impact-team-pending-row span{display:block;color:#294957;font-size:.68rem;font-weight:850}.impact-team-pending-row small{display:block;margin-top:2px;color:#7f9098;font-size:.56rem}.impact-team-pending-actions{display:flex;gap:6px}.impact-team-pending-actions form{margin:0}.impact-team-pending-actions button{min-height:30px;padding:5px 8px;border:1px solid #d1e1e6;border-radius:8px;background:#f7fbfc;color:#426676;font-size:.55rem;font-weight:850}.impact-team-pending-actions button.is-danger{background:#fff5f2;color:#94503c;border-color:#e9cec5}
@media(max-width:1050px){.impact-header-account>div{display:none}.impact-team-access{grid-template-columns:1fr}}
@media(max-width:760px){.auth-card{padding:26px}.auth-brand-lockup{align-items:flex-start;flex-direction:column}.auth-account-chip>div{display:none}.impact-header-account{display:none}.impact-team-pending-row{align-items:flex-start;flex-direction:column}.impact-team-pending-actions{width:100%;flex-wrap:wrap}}


/* MVP 8.11.3.2 — unify BLVC internal header controls into one calmer toolbar */
.viewer-internal .blvc-header-inner{height:auto!important;min-height:74px!important;align-items:center;flex-wrap:wrap;gap:14px}
.viewer-internal .portal-header-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:6px 8px;border:1px solid #c8dce5;border-radius:20px;background:linear-gradient(135deg,rgba(251,253,254,.97),rgba(240,248,251,.94) 56%,rgba(255,249,236,.92));box-shadow:0 12px 28px rgba(20,62,81,.10)}
.viewer-internal .portal-header-actions .view-switch,.viewer-internal .portal-header-actions .auth-account-chip,.viewer-internal .portal-header-actions .internal-product-switcher,.viewer-internal .portal-header-actions .blvc-version-badge{margin:0!important;min-height:44px;display:inline-flex;align-items:center;border:1px solid rgba(190,212,223,.92)!important;border-radius:14px!important;background:rgba(255,255,255,.84)!important;box-shadow:none!important}
.viewer-internal .portal-header-actions .view-switch{padding:5px 6px!important;border-color:rgba(181,204,216,.95)!important;background:linear-gradient(135deg,rgba(250,253,254,.98),rgba(239,246,249,.95))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.92)!important}
.viewer-internal .portal-header-actions .view-switch>span{display:none}
.viewer-internal .portal-header-actions .view-option{padding:7px 13px;min-width:68px;min-height:34px;justify-content:center;border-radius:12px;background:transparent;color:#536d7d;box-shadow:none;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
.viewer-internal .portal-header-actions .view-option:hover{background:linear-gradient(135deg,#eef5f8,#e6f0f5);color:#244c63}
.viewer-internal .portal-header-actions .view-option.active{background:linear-gradient(145deg,#2f647f,#255772 72%,#5d7893);color:#fff;box-shadow:0 7px 16px rgba(29,77,104,.16)}
.viewer-internal .portal-header-actions .auth-account-chip{padding:5px 6px 5px 12px!important}
.viewer-internal .portal-header-actions .auth-account-chip strong{font-size:.71rem}
.viewer-internal .portal-header-actions .auth-account-chip small{font-size:.55rem}
.viewer-internal .portal-header-actions .blvc-version-badge{height:44px;padding:0 12px;font-size:.66rem;font-weight:900;letter-spacing:.02em;color:#315467!important;background:linear-gradient(145deg,#f5fbfd,#eaf3f7)!important}
.viewer-internal .portal-header-actions .internal-product-switcher{position:static!important;left:auto!important;top:auto!important;transform:none!important;order:4;padding:4px!important;gap:4px;max-width:none}
.viewer-internal .portal-header-actions .internal-product-switcher-label{padding-left:4px}
.viewer-internal .portal-header-actions .internal-product-current,.viewer-internal .portal-header-actions .internal-product-option{min-height:34px}
@media(max-width:1480px){.viewer-internal .portal-header-actions{width:100%;margin-left:0;justify-content:flex-start}}
@media(max-width:1380px){.viewer-internal .portal-header-actions .blvc-version-badge{display:none}}
@media(max-width:920px){.viewer-internal .portal-header-actions{padding:6px}.viewer-internal .portal-header-actions .auth-account-chip>div{display:none}}

/* MVP 8.11.3.2 — fuller abstract artwork for the PIE hero */
.impact-hero{overflow:hidden}
.impact-hero-orbit{position:relative;flex:0 0 290px;width:290px;height:220px;isolation:isolate}
.impact-hero-orbit::before{content:"";position:absolute;inset:8px 20px 8px 88px;border-radius:46% 54% 50% 50% / 40% 58% 42% 60%;background:radial-gradient(circle at 30% 28%,rgba(255,255,255,.60),rgba(255,255,255,.10) 28%,transparent 29%),radial-gradient(circle at 68% 38%,rgba(255,236,0,.30),rgba(255,236,0,.09) 48%,transparent 68%),linear-gradient(145deg,rgba(74,192,224,.20),rgba(74,192,224,.05) 38%,rgba(255,255,255,.10) 58%,rgba(255,236,0,.16));box-shadow:0 24px 42px rgba(28,63,77,.08)}
.impact-hero-orbit::after{content:"";position:absolute;left:122px;top:34px;width:122px;height:122px;border-radius:38px 54px 44px 58px;background:linear-gradient(145deg,rgba(255,255,255,.44),rgba(255,255,255,.12));border:1px solid rgba(255,255,255,.38);backdrop-filter:blur(3px);box-shadow:0 18px 34px rgba(25,57,73,.10)}
.impact-hero-glow{border-radius:50%;filter:blur(.4px)}
.impact-hero-glow-one{inset:38px 18px 14px 132px;background:radial-gradient(circle at 50% 45%,rgba(255,236,0,.36),rgba(255,236,0,.14) 42%,transparent 70%)}
.impact-hero-glow-two{inset:44px 98px 10px 84px;background:radial-gradient(circle at 52% 48%,rgba(74,192,224,.34),rgba(74,192,224,.10) 46%,transparent 72%)}
.impact-hero-ring{border-radius:50%;border:1px solid rgba(89,89,89,.16)}
.impact-hero-ring-one{left:152px;top:18px;width:118px;height:148px;border-color:rgba(74,192,224,.18);transform:rotate(8deg)}
.impact-hero-ring-two{left:132px;top:38px;width:104px;height:176px;border-color:rgba(255,236,0,.24);transform:rotate(-15deg)}
.impact-hero-ring-three{left:176px;top:26px;width:82px;height:182px;border-style:dashed;border-color:rgba(89,89,89,.18);transform:rotate(13deg)}
.impact-hero-node{box-shadow:0 12px 28px rgba(28,63,77,.14),inset 0 1px 0 rgba(255,255,255,.35)}
.impact-hero-node-one{left:182px;top:20px;width:30px;height:30px;border-radius:12px;background:linear-gradient(145deg,#fafdff,#9fdcf0)}
.impact-hero-node-two{right:24px;top:68px;width:32px;height:32px;border-radius:12px;background:linear-gradient(145deg,#fffbd1,#ffec00)}
.impact-hero-node-three{right:84px;bottom:12px;width:36px;height:36px;border-radius:14px;background:linear-gradient(145deg,#949494,#595959)}
.impact-hero-node-four{left:214px;bottom:26px;width:18px;height:18px;border-radius:50%;background:linear-gradient(145deg,#ecfbff,#6fcfe9)}
.impact-hero-line{height:1px;background:linear-gradient(90deg,transparent,rgba(43,95,120,.22),transparent);transform-origin:left center}
.impact-hero-line-one{left:196px;top:53px;width:92px;transform:rotate(20deg)}
.impact-hero-line-two{left:178px;bottom:44px;width:86px;transform:rotate(-28deg)}
.impact-hero-core{left:112px;top:24px;width:132px;height:132px;border-radius:36px 54px 42px 60px;background:radial-gradient(circle at 28% 28%,rgba(255,255,255,.90),rgba(255,255,255,.26) 34%,transparent 35%),linear-gradient(160deg,rgba(255,255,255,.58),rgba(255,255,255,.14));border:1px solid rgba(255,255,255,.42);box-shadow:0 18px 40px rgba(27,59,74,.10);overflow:hidden}
.impact-hero-core::before,.impact-hero-core::after{content:"";position:absolute;border-radius:50%}
.impact-hero-core::before{width:88px;height:88px;right:-14px;top:-10px;background:radial-gradient(circle,rgba(255,236,0,.34),rgba(255,236,0,.08) 58%,transparent 74%)}
.impact-hero-core::after{width:104px;height:104px;left:-28px;bottom:-36px;background:radial-gradient(circle,rgba(74,192,224,.30),rgba(74,192,224,.08) 56%,transparent 74%)}
@media(max-width:1080px){.impact-hero-orbit{flex-basis:250px;width:250px;height:196px}.impact-hero-core{left:98px;top:24px;width:118px;height:118px}.impact-hero-ring-one{left:138px}.impact-hero-ring-two{left:120px}.impact-hero-ring-three{left:164px}}


/* MVP 8.11.3.3 — lighter, more cohesive PIE header palette */
.impact-header{background:linear-gradient(135deg,#e8f5fb 0%,#f7fbfd 34%,#fffaf0 72%,#eef8f3 100%);color:#203746;box-shadow:0 10px 28px rgba(36,80,101,.08);border-bottom:1px solid #d6e7ed}
.impact-topline{background:linear-gradient(90deg,var(--rondom-cyan) 0% 34%,#bfdde7 34% 64%,var(--rondom-yellow) 64% 100%);opacity:.95}
.impact-brand{color:#203746}
.impact-brand>span small{color:#6d8591}
.impact-main-nav{background:rgba(255,255,255,.82);border:1px solid #cfe0e7;box-shadow:0 8px 20px rgba(44,91,111,.06)}
.impact-main-nav a{color:#385868}
.impact-main-nav a:hover,.impact-main-nav a.active{background:linear-gradient(135deg,#ffffff,#edf6fa);color:#183c54;box-shadow:0 2px 10px rgba(31,84,111,.08)}
.impact-main-nav .impact-nav-external{color:#9f8a00}
.impact-header-account{background:linear-gradient(135deg,rgba(255,255,255,.97),rgba(240,248,251,.95));border-color:#c9dbe4;box-shadow:0 10px 22px rgba(40,88,106,.09),inset 0 1px 0 rgba(255,255,255,.84)}
.impact-version-badge{color:#426171;border:1px solid #c7dbe3;background:linear-gradient(145deg,#f8fcfd,#ecf5f8)}

/* MVP 8.11.3.3 — organic wave artwork for the PIE hero */
.impact-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#f2fbfe 0%,#fbfdfd 44%,#fffbe6 100%)}
.impact-hero::before{content:"";position:absolute;right:220px;top:-135px;width:390px;height:250px;border-radius:0 0 60% 55% / 0 0 82% 76%;background:linear-gradient(180deg,rgba(74,192,224,.18),rgba(74,192,224,.08));pointer-events:none}
.impact-hero::after{content:"";position:absolute;right:-110px;bottom:-110px;width:430px;height:200px;border-radius:58% 0 0 0 / 100% 0 0 0;background:linear-gradient(180deg,rgba(255,236,0,.16),rgba(255,236,0,.06));pointer-events:none}
.impact-hero-copy{position:relative;z-index:1}
.impact-hero-orbit{position:relative;flex:0 0 330px;width:330px;height:238px;isolation:isolate}
.impact-hero-orbit::before,.impact-hero-orbit::after{content:"";position:absolute;inset:auto 0 auto auto;pointer-events:none}
.impact-hero-orbit::before{right:4px;top:30px;width:280px;height:176px;border-radius:42% 58% 52% 48% / 43% 38% 62% 57%;background:linear-gradient(135deg,rgba(74,192,224,.17),rgba(255,255,255,.10) 42%,rgba(255,236,0,.16));box-shadow:0 22px 40px rgba(41,87,107,.07)}
.impact-hero-orbit::after{right:22px;bottom:8px;width:250px;height:118px;border-radius:58% 42% 60% 40% / 52% 48% 52% 48%;background:linear-gradient(135deg,rgba(255,255,255,.26),rgba(255,236,0,.18));filter:blur(.2px)}
.impact-hero-glow,.impact-hero-node{display:none!important}
.impact-hero-ring,.impact-hero-line,.impact-hero-core{position:absolute;display:block;pointer-events:none}
.impact-hero-core{right:56px;top:26px;width:192px;height:164px;border-radius:44% 56% 48% 52% / 38% 42% 58% 62%;background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(255,255,255,.28) 52%,rgba(255,236,0,.10));border:1px solid rgba(255,255,255,.52);box-shadow:0 18px 38px rgba(34,74,92,.09);overflow:hidden}
.impact-hero-core::before{content:"";position:absolute;left:-20px;right:-10px;top:34px;height:54px;border-radius:52% 48% 55% 45% / 62% 38% 62% 38%;background:linear-gradient(90deg,rgba(74,192,224,.28),rgba(255,255,255,.1) 48%,rgba(255,236,0,.28));opacity:.9;transform:rotate(-8deg)}
.impact-hero-core::after{content:"";position:absolute;left:-12px;right:10px;bottom:30px;height:40px;border-radius:45% 55% 46% 54% / 48% 42% 58% 52%;background:linear-gradient(90deg,rgba(255,255,255,.12),rgba(74,192,224,.22) 32%,rgba(255,236,0,.18) 76%,rgba(255,255,255,.12));transform:rotate(7deg)}
.impact-hero-ring{border-radius:50%;border:1px solid rgba(82,150,170,.16)}
.impact-hero-ring-one{right:38px;top:14px;width:162px;height:176px;border-radius:42% 58% 62% 38% / 46% 38% 62% 54%;transform:rotate(10deg)}
.impact-hero-ring-two{right:2px;top:38px;width:182px;height:148px;border-radius:56% 44% 38% 62% / 54% 64% 36% 46%;border-color:rgba(255,208,0,.22);transform:rotate(-8deg)}
.impact-hero-ring-three{right:68px;top:54px;width:120px;height:126px;border-radius:56% 44% 60% 40% / 38% 62% 38% 62%;border-style:dashed;border-color:rgba(109,146,154,.16);transform:rotate(16deg)}
.impact-hero-line{height:18px;border-radius:999px;background:linear-gradient(90deg,rgba(74,192,224,.18),rgba(255,255,255,.04) 46%,rgba(255,236,0,.22));opacity:.9;filter:blur(.1px)}
.impact-hero-line-one{right:44px;top:84px;width:214px;transform:rotate(-11deg)}
.impact-hero-line-two{right:28px;bottom:58px;width:178px;transform:rotate(9deg)}
@media(max-width:1120px){.impact-hero-orbit{flex-basis:280px;width:280px;height:210px}.impact-hero-core{right:36px;width:170px;height:146px}.impact-hero-line-one{width:184px}.impact-hero-line-two{width:150px}}


/* MVP 8.11.4 — private sandbox projects and server-side preview UX */
.sandbox-create-option{display:grid!important;gap:6px;margin:4px 0 2px;padding:11px 12px;border:1px solid #b9dce7;border-radius:12px;background:linear-gradient(135deg,#effaff,#fffbe8);color:#315d70!important}.sandbox-create-option>span{display:flex;align-items:center;gap:8px}.sandbox-create-option input[type="checkbox"]{width:17px;height:17px;margin:0}.sandbox-create-option b{color:#184d68;font-size:.68rem}.sandbox-create-option small{color:#69818c;font-size:.57rem;line-height:1.45;font-weight:650}.sandbox-inline-label{display:inline-flex;padding:2px 5px;border-radius:999px;background:#fff2b5;color:#715f00;font-size:.52rem;font-weight:950;letter-spacing:.05em}.sandbox-view-switch form{margin:0}.sandbox-view-switch .view-option{border:0;cursor:pointer;font:inherit}.sandbox-preview-banner{background:linear-gradient(90deg,#fff8ce,#edfaff);border-bottom-color:#d6e5d7}.sandbox-preview-banner .container strong{color:#6c5d00}.portfolio-project-card:has(.sandbox-inline-label){border-style:dashed!important;border-color:#c8bd71!important;background:linear-gradient(105deg,#fff 0%,#fffdf3 72%,#effaff 100%)!important}

.sandbox-project-banner{background:linear-gradient(90deg,#eefaff,#fff9d8);border-bottom-color:#d5e6df}.sandbox-project-banner .container strong{color:#1d6077}


/* MVP 8.11.5f — restore soft BLVC styling for client overview */
.viewer-client .client-project-index-panel{
    position:relative;
    overflow:hidden;
    padding:22px 24px;
    border-color:rgba(170,195,207,.72)!important;
    background:
        radial-gradient(circle at 92% 14%,rgba(238,182,96,.13),transparent 25%),
        radial-gradient(circle at 8% 110%,rgba(105,170,193,.10),transparent 28%),
        linear-gradient(135deg,rgba(255,255,255,.98),rgba(240,248,251,.97) 58%,rgba(255,249,239,.96))!important;
    box-shadow:0 18px 42px rgba(18,53,78,.08)!important;
}
.viewer-client .client-project-index-panel:after{
    content:"";
    position:absolute;
    right:-56px;
    bottom:-68px;
    width:180px;
    height:180px;
    border-radius:50%;
    border:18px solid rgba(224,191,131,.10);
    pointer-events:none;
}
.viewer-client .client-project-index-panel .panel-heading{position:relative;z-index:1;margin-bottom:14px}
.viewer-client .client-project-index-panel .panel-heading h2{color:#173d59}
.viewer-client .client-project-index-panel .panel-heading p{color:#728391}
.viewer-client .client-project-list{position:relative;z-index:1;gap:14px}
.viewer-client .client-project-card{
    border:1px solid rgba(171,198,210,.72);
    border-radius:18px;
    background:
        radial-gradient(circle at 92% 18%,rgba(102,161,182,.11),transparent 23%),
        linear-gradient(112deg,#ffffff 0%,#f3f9fb 60%,#fff8ec 100%)!important;
    box-shadow:0 12px 26px rgba(21,58,80,.075);
    padding:18px 20px 16px;
}
.viewer-client .client-project-card:hover{
    border-color:#aec8d6;
    box-shadow:0 18px 34px rgba(21,58,80,.11);
    transform:translateY(-1px);
}
.viewer-client .client-project-card:after{
    width:110px;
    height:110px;
    right:-42px;
    top:-48px;
    border:14px solid rgba(33,92,118,.055);
}
.viewer-client .client-project-card .project-card-accent{width:5px;border-radius:999px;background:linear-gradient(180deg,#d9a152,#e8c881)}
.viewer-client .client-project-card .workflow-project-main{align-items:flex-start}
.viewer-client .client-project-card .workflow-project-main h3{margin:.18rem 0 .35rem;color:#173b56;font-size:1.08rem}
.viewer-client .client-project-card .workflow-project-main .muted{color:#718390!important}
.viewer-client .client-project-card .eyebrow{color:#2f6e8b}
.viewer-client .client-project-card .workflow-project-status{gap:7px}
.viewer-client .client-project-card .workflow-status-badge{background:#eef5f8;color:#2f6077;border:1px solid rgba(162,192,205,.62)}
.viewer-client .client-project-card .workflow-attention{background:#fff2db;color:#895e19}
.viewer-client .client-project-card .workflow-report-confirmed{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#edf6ef;color:#42725a;font-size:.61rem;font-weight:800}
.viewer-client .client-project-card .workflow-card-progress{height:7px;margin-top:14px;background:rgba(195,212,221,.72)}
.viewer-client .client-project-card .workflow-card-progress>span{background:linear-gradient(90deg,#3b86aa,#4e9d8d,#d7a24f)}
@media(max-width:760px){
  .viewer-client .client-project-index-panel{padding:18px}
  .viewer-client .client-project-card{padding:16px 16px 14px}
  .viewer-client .client-project-card .workflow-project-main{align-items:flex-start;flex-direction:column}
  .viewer-client .client-project-card .workflow-project-status{align-items:flex-start}
}

/* MVP 8.12.1c — central project module management */
.impact-project-row-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:9px}.impact-project-module-settings-link{padding:7px 10px!important;border-radius:10px;background:#eef6f7;color:#315f70!important;font-size:10px!important}.impact-module-settings-hero{margin:18px 0 20px;padding:25px 27px;border:1px solid #d7e5e6;border-radius:22px;background:linear-gradient(135deg,#f8fcff 0%,#eef8f8 56%,#fff9ef 100%)}.impact-module-settings-hero h1{margin:4px 0 7px}.impact-module-settings-hero p:not(.eyebrow){margin:0;color:#667d87}.impact-module-settings-panel{padding:24px;border:1px solid #d9e5e5;border-radius:22px;background:linear-gradient(140deg,#fff,#f5faf9 62%,#fffaf2)}.impact-module-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.impact-module-settings-card{display:grid;gap:9px;padding:17px;border:1px solid #dce7e7;border-radius:17px;background:#fff;cursor:pointer}.impact-module-settings-card.is-project_knowledge{background:linear-gradient(135deg,#f8fdff,#edf9fd)}.impact-module-settings-card.is-blvc{background:linear-gradient(135deg,#fffdf8,#fff5e8)}.impact-module-settings-card.is-communicator{background:linear-gradient(135deg,#fbfaff,#f1f3ff)}.impact-module-settings-card-top{display:flex;align-items:center;gap:9px}.impact-module-settings-card-top strong{color:#27404e}.impact-module-settings-card-top em{margin-left:auto;font-size:9px;font-style:normal;padding:4px 7px;border-radius:999px;background:#eef0f8;color:#6973a0}.impact-module-settings-card small{color:#71858e;line-height:1.45}.impact-module-settings-note{margin-top:18px;padding:15px 17px;border-radius:15px;background:linear-gradient(135deg,#eef8f5,#fff9ea);border:1px solid #d8e7df}.impact-module-settings-note p{margin:4px 0 0;color:#647a82;font-size:12px;line-height:1.5}.impact-module-settings-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:20px}.impact-module-settings-actions a{color:#607781;text-decoration:none;font-weight:750}@media(max-width:900px){.impact-module-settings-grid{grid-template-columns:1fr}}

/* MVP 8.12.3b2 — keep BLVC internal header on one row on desktop */
.blvc-site-header .container.blvc-header-inner{width:min(1600px,calc(100% - 28px))}
.viewer-internal .blvc-header-inner{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center!important;column-gap:14px!important;row-gap:10px!important;justify-content:normal!important;flex-wrap:nowrap!important}
.viewer-internal .blvc-brand{grid-column:1;flex:0 0 auto!important;max-width:248px!important}
.viewer-internal .portal-header-actions{grid-column:2;justify-self:end;display:flex;align-items:center;flex:1 1 auto;min-width:0;width:auto!important;flex-wrap:nowrap;justify-content:flex-end;gap:6px;padding:5px 6px}
.viewer-internal .portal-header-actions .view-switch,.viewer-internal .portal-header-actions .auth-account-chip,.viewer-internal .portal-header-actions .internal-product-switcher,.viewer-internal .portal-header-actions .blvc-version-badge{flex:0 0 auto}
.viewer-internal .portal-header-actions .view-switch{padding:4px 5px!important}
.viewer-internal .portal-header-actions .view-option{min-width:62px;padding:7px 11px}
.viewer-internal .portal-header-actions .auth-account-chip{padding:5px 6px 5px 10px!important}
.viewer-internal .portal-header-actions .auth-account-chip strong{max-width:116px}
.viewer-internal .portal-header-actions .blvc-version-badge{padding:0 10px}
.viewer-internal .portal-header-actions .internal-product-switcher{padding:3px 4px!important;gap:3px}
.viewer-internal .portal-header-actions .internal-product-switcher-label{padding-left:3px}
.viewer-internal .portal-header-actions .internal-product-current,.viewer-internal .portal-header-actions .internal-product-option{min-height:32px}
.viewer-internal .portal-header-actions .internal-product-option{padding:5px 10px 5px 11px;column-gap:6px}
.viewer-internal .portal-header-actions .internal-product-option-kicker{font-size:7px}
.viewer-internal .portal-header-actions .internal-product-option-name{font-size:10px}
.viewer-internal .portal-header-actions .internal-product-arrow{font-size:15px}
@media(max-width:1500px){.viewer-internal .portal-header-actions .blvc-version-badge{display:none}}
@media(max-width:1360px){.viewer-internal .blvc-header-inner{display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important}.viewer-internal .portal-header-actions{width:100%!important;margin-left:0;justify-content:flex-start;flex-wrap:wrap;justify-self:auto}}


/* MVP 8.12.4c3 — document sharing bulk actions + unclipped action menus */
.pk-project-subfolder[open],.pk-project-subfolder[open]>.pk-library-subfolder-content{overflow:visible}
.pk-project-subfolder[open]{position:relative;z-index:2}
.pk-document-row:has(.pk-document-menu[open]){position:relative;z-index:30;background:#fff}
.pk-document-menu[open]{z-index:40}
.pk-document-bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:4px 0 9px;padding:10px 11px;border:1px solid #d4e5e9;border-radius:12px;background:linear-gradient(110deg,#f2fbfd,#fff 62%,#fffbea)}
.pk-document-bulk-toolbar>div:first-child{min-width:0}.pk-document-bulk-toolbar strong{display:block;color:#315361;font-size:11px}.pk-document-bulk-toolbar small{display:block;margin-top:2px;color:#7b8d94;font-size:9px}
.pk-document-bulk-actions{display:flex;gap:6px;flex:0 0 auto}.pk-document-bulk-actions button{min-height:32px;padding:6px 9px;font-size:9px}
.pk-document-row.has-bulk-select{grid-template-columns:24px 34px minmax(0,1fr) auto 38px}
.pk-document-select,.pk-document-select-spacer{width:22px;height:28px;display:grid;place-items:center}.pk-document-select{cursor:pointer}.pk-document-select input{position:absolute;opacity:0;pointer-events:none}.pk-document-select span{width:14px;height:14px;border:1px solid #b8ccd4;border-radius:4px;background:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}.pk-document-select input:checked+span{border-color:#20779a;background:#20779a;box-shadow:inset 0 0 0 3px #fff}.pk-document-select input:focus-visible+span{outline:2px solid rgba(32,119,154,.28);outline-offset:2px}
@media(max-width:760px){.pk-document-bulk-toolbar{align-items:stretch;flex-direction:column}.pk-document-bulk-actions{width:100%}.pk-document-bulk-actions button{flex:1}.pk-document-row.has-bulk-select{grid-template-columns:22px 32px minmax(0,1fr) 34px}.pk-document-row.has-bulk-select .pk-document-status{grid-column:3}}

/* MVP 8.12.5c - human review controls for Projectdossier proposals */
.project-dossier-review-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.project-dossier-edit-details{flex:1 1 210px;border:1px solid #d8e5e9;border-radius:12px;background:#f8fcfd}.project-dossier-edit-details.split{background:#fffbed;border-color:#eadf9d}.project-dossier-edit-details>summary{cursor:pointer;padding:9px 11px;font-size:11px;font-weight:800;color:#31576a}.project-dossier-review-form{display:grid;gap:9px;padding:2px 11px 12px}.project-dossier-review-form label{display:grid;gap:4px;font-size:10px;font-weight:800;color:#536b77}.project-dossier-review-form input,.project-dossier-review-form textarea{width:100%;box-sizing:border-box;border:1px solid #cbdde2;border-radius:9px;padding:8px 9px;background:#fff;font:inherit;font-size:11px;color:#344f5d}.project-dossier-review-form p{margin:2px 0 4px;font-size:10px;line-height:1.45;color:#6d7f86}.project-dossier-review-form button{justify-self:start;border:0;border-radius:9px;padding:8px 11px;background:#1f6077;color:#fff;font:inherit;font-size:10px;font-weight:800;cursor:pointer}


/* MVP 8.12.5g — structured, readable Projectkenner chat answers */
.pk-chat-answer{display:grid;gap:9px;color:inherit;font-size:inherit;line-height:1.62}
.pk-chat-answer p{margin:0}
.pk-chat-answer h3,.pk-chat-answer h4{margin:8px 0 0;color:#163f59;line-height:1.25;letter-spacing:-.01em}
.pk-chat-answer h3{font-size:14px}
.pk-chat-answer h4{font-size:12px}
.pk-chat-answer ul,.pk-chat-answer ol{margin:0;padding-left:21px;display:grid;gap:6px}
.pk-chat-answer li{padding-left:2px}
.pk-chat-answer strong{font-weight:800;color:#244d62}
.pk-chat-answer>:first-child{margin-top:0}
.pk-chat-answer>:last-child{margin-bottom:0}
/* MVP 8.12.7k2d — compact internal knowledge-dossier export controls. */
.project-dossier-hero-side{display:flex;flex-direction:column;align-items:flex-end;gap:10px}.project-dossier-export-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.project-dossier-export-actions .button-secondary{min-height:36px;padding:8px 12px;border-radius:12px;font-size:12px;text-decoration:none}@media(max-width:900px){.project-dossier-hero-side{width:100%;align-items:stretch}.project-dossier-export-actions{justify-content:flex-start}}@media(max-width:650px){.project-dossier-export-actions .button-secondary{flex:1;text-align:center}}


/* MVP 8.12.7k2d.1 — safe TEST-project dossier reset */
.project-dossier-test-reset {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(89,89,89,.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.project-dossier-test-reset > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.project-dossier-test-reset form { margin: 0; }
.project-dossier-reset-notice {
  margin: 0 0 16px;
  padding: 12px 15px;
  border: 1px solid rgba(74,192,224,.35);
  border-radius: 14px;
  background: rgba(74,192,224,.08);
  color: var(--text);
  font-size: 13px;
}
.project-dossier-reset-notice.is-error {
  border-color: #fecdca;
  background: var(--danger-soft);
  color: var(--danger);
}

/* MVP 8.12.7k2d.2 — dossier hero action cluster aligned with PIE design system */
.project-dossier-hero-side{min-width:300px;align-items:stretch;gap:10px}
.project-dossier-hero-status{justify-content:flex-end}
.project-dossier-hero-status span{min-width:82px;padding:10px 12px;border-color:#c9e0e6;border-radius:14px;background:rgba(255,255,255,.78);box-shadow:0 5px 14px rgba(31,68,84,.035)}
.project-dossier-hero-tools{display:grid;gap:9px;width:100%;padding:11px;border:1px solid rgba(188,217,225,.88);border-radius:17px;background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(247,252,253,.84));box-shadow:0 8px 20px rgba(29,67,92,.045),inset 0 1px 0 rgba(255,255,255,.82)}
.project-dossier-tool-group{display:grid;gap:7px}
.project-dossier-tool-label{padding:0 2px;color:#6f848d;font-size:9px;font-weight:850;letter-spacing:.025em;text-transform:uppercase}
.project-dossier-export-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.project-dossier-export-button{display:flex;align-items:center;gap:8px;min-width:0;min-height:42px;padding:7px 10px;border:1px solid #cfe2e7;border-radius:12px;background:linear-gradient(145deg,#fbfeff,#f0f9fb);color:#315b6c;text-decoration:none;box-shadow:0 4px 11px rgba(31,68,84,.035);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease,background .15s ease}
.project-dossier-export-button:hover{transform:translateY(-1px);border-color:#9fd4e1;background:#fff;box-shadow:0 7px 15px rgba(31,68,84,.075)}
.project-dossier-export-button:focus-visible{outline:3px solid rgba(74,192,224,.20);outline-offset:2px}
.project-dossier-export-icon{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:9px;background:linear-gradient(145deg,#dff5fa,#fff7c9);color:#245e75;font-size:15px;font-weight:900}
.project-dossier-export-button>span:last-child{display:flex;align-items:baseline;gap:4px;min-width:0;white-space:nowrap}
.project-dossier-export-button strong{color:#294f60;font-size:10px;font-weight:850}
.project-dossier-export-button small{color:#8a9aa1;font-size:8.5px;font-weight:750}
.project-dossier-test-reset{margin:0;padding:9px 2px 0;border-top:1px solid rgba(89,89,89,.10);display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:nowrap}
.project-dossier-test-reset-copy{display:flex;align-items:center;gap:7px;min-width:0;color:#778b93;font-size:9.5px;font-weight:700;white-space:nowrap}
.project-dossier-test-badge{display:inline-flex;align-items:center;justify-content:center;min-height:21px;padding:0 7px;border:1px solid #e5d66e;border-radius:999px;background:#fff9cb;color:#706000;font-size:8px;font-weight:900;letter-spacing:.04em}
.project-dossier-test-reset form{margin:0;flex:0 0 auto}
.project-dossier-reset-button{min-height:32px;padding:6px 10px;border:1px solid #d6e1e5;border-radius:10px;background:#fff;color:#5d7078;font:inherit;font-size:9px;font-weight:850;cursor:pointer;box-shadow:0 4px 10px rgba(31,68,84,.03);transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}
.project-dossier-reset-button:hover{transform:translateY(-1px);border-color:#e2b7b2;background:#fff8f7;color:#934d45}
.project-dossier-reset-button:focus-visible{outline:3px solid rgba(74,192,224,.20);outline-offset:2px}
@media(max-width:900px){.project-dossier-hero-side{width:100%;min-width:0}.project-dossier-hero-status{justify-content:flex-start}.project-dossier-hero-tools{max-width:520px}}
@media(max-width:520px){.project-dossier-export-actions{grid-template-columns:1fr}.project-dossier-test-reset{align-items:stretch;flex-direction:column}.project-dossier-test-reset-copy{white-space:normal}.project-dossier-test-reset form,.project-dossier-reset-button{width:100%}}

/* MVP 8.12.7k2d.3 — integrated dossier hero controls */
.project-dossier-hero{align-items:center}
.project-dossier-hero>div:first-child{min-width:0;flex:1 1 auto}
.project-dossier-hero-side{flex:0 0 330px;min-width:330px;display:grid;grid-template-columns:1fr;gap:10px;align-self:stretch;align-content:center}
.project-dossier-hero-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.project-dossier-hero-status span{box-sizing:border-box;min-width:0;padding:10px 12px;border:1px solid #cbe2e8;border-radius:13px;background:rgba(255,255,255,.82);box-shadow:none}
.project-dossier-hero-status strong{margin-bottom:1px;color:#176e8c;font-size:17px;line-height:1.1}
.project-dossier-hero-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.project-dossier-hero-action{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:center;box-sizing:border-box;min-height:52px;padding:8px 10px;border:1px solid #cfe2e7;border-radius:13px;background:rgba(255,255,255,.72);color:#315765;text-decoration:none!important;box-shadow:none;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.project-dossier-hero-action:hover{transform:translateY(-1px);border-color:#94cfdd;background:#fff}
.project-dossier-hero-action:focus-visible{outline:3px solid rgba(74,192,224,.22);outline-offset:2px}
.project-dossier-hero-action-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e7f7fa;color:#196d87;font-size:15px;font-weight:900}
.project-dossier-hero-action>span:last-child{display:block;min-width:0}
.project-dossier-hero-action strong,.project-dossier-hero-action small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-dossier-hero-action strong{color:#294d5b;font-size:10px;font-weight:850;line-height:1.25}
.project-dossier-hero-action small{margin-top:2px;color:#82939a;font-size:8.5px;font-weight:700;line-height:1.2}
.project-dossier-test-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:9px;border-top:1px solid rgba(70,111,126,.12)}
.project-dossier-test-tools form{margin:0;flex:0 0 auto}
.project-dossier-test-reset-copy{font-size:9px}
.project-dossier-reset-button{min-height:32px;padding:6px 10px;border:1px solid #d7e2e6;border-radius:10px;background:rgba(255,255,255,.78);color:#5e7179;font-size:9px;font-weight:850;box-shadow:none}
.project-dossier-reset-button:hover{border-color:#e0aaa4;background:#fff7f5;color:#914d45}
@media(max-width:1050px){.project-dossier-hero-side{flex-basis:300px;min-width:300px}.project-dossier-hero-actions{grid-template-columns:1fr}}
@media(max-width:900px){.project-dossier-hero{align-items:flex-start}.project-dossier-hero-side{width:100%;min-width:0;align-self:auto}.project-dossier-hero-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.project-dossier-hero-actions{grid-template-columns:1fr}.project-dossier-test-tools{align-items:stretch;flex-direction:column}.project-dossier-test-tools form,.project-dossier-reset-button{width:100%}}

/* MVP 8.12.7k2d.4 - keep dossier review flow visually stable across mutations */
.project-dossier-item{scroll-margin-top:24px;transition:opacity .14s ease,transform .14s ease,box-shadow .14s ease}
.project-dossier-items-panel{scroll-margin-top:24px}
.project-dossier-item.is-submitting{opacity:.68;transform:translateY(1px);pointer-events:none}
.project-dossier-mutation-form button[aria-busy="true"]{cursor:wait;box-shadow:none}

/* MVP 8.12.7k3a — semantic promotion / duplicate gate */
.project-dossier-merge-reasons{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0 9px}.project-dossier-merge-reasons span{display:inline-flex;align-items:center;min-height:20px;padding:3px 7px;border:1px solid rgba(23,63,97,.12);border-radius:999px;background:rgba(255,255,255,.68);color:#607580;font-size:8px;font-weight:750;text-transform:capitalize}


/* MVP 8.12.7k3a.3 — dossier navigation and merge scroll continuity */
#dossier-review-list{scroll-margin-top:32px}
\n\n/* MVP 8.12.7 K.3b — semantic dossier taxonomy */\n.project-dossier-type-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}\n.project-dossier-type-card{min-height:76px}\n.project-dossier-type-card.type-project_fact{background:linear-gradient(145deg,#e9f8fc 0%,#f7fcfe 64%,#fff 100%)}\n.project-dossier-type-card.type-decision{background:linear-gradient(145deg,#eaf2fb 0%,#f8fbfe 66%,#fff 100%)}\n.project-dossier-type-card.type-agreement{background:linear-gradient(145deg,#edf4ff 0%,#f9fbff 66%,#fff 100%)}\n.project-dossier-type-card.type-stakeholder{background:linear-gradient(145deg,#e7f6ef 0%,#f8fcfa 66%,#fff 100%)}\n.project-dossier-type-card.type-risk{background:linear-gradient(145deg,#fff0e8 0%,#fff8f4 66%,#fff 100%)}\n.project-dossier-type-card.type-opportunity{background:linear-gradient(145deg,#fff8d7 0%,#fffcef 66%,#fff 100%)}\n.project-dossier-type-card.type-measure{background:linear-gradient(145deg,#eaf5f1 0%,#f8fcfa 66%,#fff 100%)}\n.project-dossier-type-card.type-requirement{background:linear-gradient(145deg,#f3f6e7 0%,#fbfcf6 66%,#fff 100%)}\n.project-dossier-type-card.type-open_point{background:linear-gradient(145deg,#fff4df 0%,#fffaf1 66%,#fff 100%)}\n.project-dossier-type-card.type-open_dependency{background:linear-gradient(145deg,#fbeee8 0%,#fff9f6 66%,#fff 100%)}\n.project-dossier-type-card.type-interface{background:linear-gradient(145deg,#eef3f6 0%,#fafcfd 66%,#fff 100%)}\n.project-dossier-type-card.type-action{background:linear-gradient(145deg,#f1eefa 0%,#faf8fd 66%,#fff 100%)}\n.project-dossier-item.type-project_fact .project-dossier-item-accent{background:#4ac0e0}\n.project-dossier-item.type-agreement .project-dossier-item-accent{background:#7f9dca}\n.project-dossier-item.type-requirement .project-dossier-item-accent{background:#9da867}\n.project-dossier-item.type-open_point .project-dossier-item-accent{background:#dcae54}\n.project-dossier-item.type-open_dependency .project-dossier-item-accent{background:#ca8066}\n.project-dossier-item.type-interface .project-dossier-item-accent{background:#7893a1}\n.project-dossier-type-pill.type-agreement{background:#edf4ff;color:#4f6f9b}\n.project-dossier-type-pill.type-requirement{background:#f1f5e6;color:#687638}\n.project-dossier-type-pill.type-open_point{background:#fff3dc;color:#8b681f}\n.project-dossier-type-pill.type-open_dependency{background:#fbece5;color:#8c503b}\n.project-dossier-type-pill.type-interface{background:#edf2f5;color:#566f7b}\n@media(max-width:1100px){.project-dossier-type-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}\n@media(max-width:650px){.project-dossier-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}\n
/* MVP 8.12.7 K.3b.2 — compact semantic knowledge navigator */
.project-dossier-type-navigator{
  --semantic-fact:#4ac0e0;
  --semantic-decision:#4f78a8;
  --semantic-agreement:#4faeae;
  --semantic-stakeholder:#59a981;
  --semantic-risk:#dc7b67;
  --semantic-opportunity:#d6b23e;
  --semantic-measure:#4baea0;
  --semantic-requirement:#8b78b2;
  --semantic-open-point:#d89245;
  --semantic-open-dependency:#c77957;
  --semantic-interface:#8d70a8;
  --semantic-action:#6878bd;
  padding:13px 14px 14px;
  border:1px solid #d3e5ea;
  border-radius:18px;
  background:rgba(255,255,255,.72);
  box-shadow:0 8px 22px rgba(31,69,85,.045);
}
.project-dossier-type-navigator-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}
.project-dossier-type-navigator-head>div{display:flex;align-items:baseline;gap:8px;min-width:0}
.project-dossier-type-navigator-kicker{font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:#6c8791}
.project-dossier-type-navigator-head strong{font-size:12px;color:#254d60}
.project-dossier-type-clear{font-size:10px;font-weight:800;color:#477180;text-decoration:none;white-space:nowrap}
.project-dossier-type-clear:hover{text-decoration:underline}
.project-dossier-type-chips{display:flex;flex-wrap:wrap;gap:7px}
.project-dossier-type-chip{
  --type-color:#7893a1;
  --type-tint:#f1f5f6;
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:36px;
  padding:6px 8px 6px 9px;
  border:1px solid color-mix(in srgb,var(--type-color) 31%,#dce7ea);
  border-radius:999px;
  background:linear-gradient(135deg,var(--type-tint),rgba(255,255,255,.94));
  color:#355966;
  text-decoration:none;
  box-shadow:0 2px 7px rgba(31,69,85,.035);
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease;
}
.project-dossier-type-chip:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(31,69,85,.07);border-color:color-mix(in srgb,var(--type-color) 58%,#dce7ea)}
.project-dossier-type-chip.active{background:color-mix(in srgb,var(--type-tint) 70%,white);border-color:var(--type-color);box-shadow:0 0 0 2px color-mix(in srgb,var(--type-color) 12%,transparent),0 5px 12px rgba(31,69,85,.07)}
.project-dossier-type-chip.is-empty{opacity:.6;filter:saturate(.72)}
.project-dossier-type-chip.is-empty:hover{opacity:.82;filter:none}
.project-dossier-type-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:var(--type-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--type-color) 13%,transparent)}
.project-dossier-type-name{font-size:10px;font-weight:850;white-space:nowrap}
.project-dossier-type-count{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.78);font-size:10px;line-height:1;color:#234b5e;border:1px solid color-mix(in srgb,var(--type-color) 20%,#e3eaec)}
.project-dossier-type-chip.type-project_fact{--type-color:var(--semantic-fact);--type-tint:#e9f8fc}
.project-dossier-type-chip.type-decision{--type-color:var(--semantic-decision);--type-tint:#edf3fa}
.project-dossier-type-chip.type-agreement{--type-color:var(--semantic-agreement);--type-tint:#eaf7f6}
.project-dossier-type-chip.type-stakeholder{--type-color:var(--semantic-stakeholder);--type-tint:#e9f6ef}
.project-dossier-type-chip.type-risk{--type-color:var(--semantic-risk);--type-tint:#fff0eb}
.project-dossier-type-chip.type-opportunity{--type-color:var(--semantic-opportunity);--type-tint:#fff8d9}
.project-dossier-type-chip.type-measure{--type-color:var(--semantic-measure);--type-tint:#eaf7f4}
.project-dossier-type-chip.type-requirement{--type-color:var(--semantic-requirement);--type-tint:#f1eef9}
.project-dossier-type-chip.type-open_point{--type-color:var(--semantic-open-point);--type-tint:#fff3e2}
.project-dossier-type-chip.type-open_dependency{--type-color:var(--semantic-open-dependency);--type-tint:#fbeee8}
.project-dossier-type-chip.type-interface{--type-color:var(--semantic-interface);--type-tint:#f2eef7}
.project-dossier-type-chip.type-action{--type-color:var(--semantic-action);--type-tint:#eff0fa}
@media(max-width:650px){
  .project-dossier-type-navigator{padding:12px}
  .project-dossier-type-navigator-head{align-items:flex-start}
  .project-dossier-type-navigator-head>div{display:grid;gap:2px}
  .project-dossier-type-chips{gap:6px}
  .project-dossier-type-chip{min-height:34px;padding:5px 7px 5px 8px}
}


/* MVP 8.12.7 K.3b.3 — semantic navigator clarity polish */
.project-dossier-type-navigator{padding:14px 15px 15px;background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(248,252,253,.76));box-shadow:0 10px 26px rgba(31,69,85,.05)}
.project-dossier-type-navigator-head{align-items:center;margin-bottom:11px;padding-bottom:8px;border-bottom:1px solid rgba(86,126,139,.10)}
.project-dossier-type-chips{gap:8px}
.project-dossier-type-chip{position:relative;min-height:35px;padding:6px 9px 6px 10px;border-color:color-mix(in srgb,var(--type-color) 24%,#dce7ea);background:color-mix(in srgb,var(--type-tint) 72%,white);box-shadow:none}
.project-dossier-type-chip:hover{transform:none;box-shadow:0 3px 10px rgba(31,69,85,.055);border-color:color-mix(in srgb,var(--type-color) 48%,#dce7ea)}
.project-dossier-type-chip.active{color:#173e4e;background:color-mix(in srgb,var(--type-color) 16%,white);border-color:color-mix(in srgb,var(--type-color) 88%,#bdcdd2);box-shadow:0 0 0 2px color-mix(in srgb,var(--type-color) 17%,transparent),0 4px 12px rgba(31,69,85,.075);font-weight:900}
.project-dossier-type-chip.active::before{content:"✓";display:grid;place-items:center;width:17px;height:17px;flex:0 0 17px;border-radius:50%;background:var(--type-color);color:#fff;font-size:10px;font-weight:950;line-height:1}
.project-dossier-type-chip.active .project-dossier-type-dot{display:none}
.project-dossier-type-chip.active .project-dossier-type-count{background:#fff;border-color:color-mix(in srgb,var(--type-color) 34%,#e3eaec);color:#173e4e}
.project-dossier-type-chip.is-empty{opacity:.42;filter:saturate(.45)}
.project-dossier-type-chip.is-empty:hover{opacity:.62;filter:saturate(.7)}
.project-dossier-type-chip.is-empty.active{opacity:1;filter:none}
.project-dossier-type-name{font-size:10px;letter-spacing:.002em}
.project-dossier-type-count{min-width:20px;height:20px;padding:0 5px;background:rgba(255,255,255,.7);font-size:9px}
.project-dossier-type-chip.type-all{--type-color:#315f75;--type-tint:#edf4f7}
.project-dossier-type-chip.type-all::before{background:#315f75}
.project-dossier-type-chip.type-all.active{background:#eaf2f5;border-color:#315f75}
@media(max-width:650px){.project-dossier-type-chips{gap:7px}.project-dossier-type-chip{min-height:33px}.project-dossier-type-chip.active::before{width:16px;height:16px;flex-basis:16px}}


/* MVP 8.12.7 K.3b.4 — semantic color clarity + dossier panel coupling */
.project-dossier-type-navigator{
  --semantic-fact:#2faecf;
  --semantic-decision:#3f6f9f;
  --semantic-agreement:#3a9f9d;
  --semantic-stakeholder:#3f986d;
  --semantic-risk:#d46352;
  --semantic-opportunity:#c99d18;
  --semantic-measure:#349989;
  --semantic-requirement:#795fa4;
  --semantic-open-point:#cf7f27;
  --semantic-open-dependency:#bd6543;
  --semantic-interface:#765b94;
  --semantic-action:#5368b0;
}
.project-dossier-type-chip{background:color-mix(in srgb,var(--type-color) 11%,white);border-color:color-mix(in srgb,var(--type-color) 36%,#d4e1e5);color:#234b5d}
.project-dossier-type-chip:hover{background:color-mix(in srgb,var(--type-color) 17%,white);border-color:color-mix(in srgb,var(--type-color) 68%,#d4e1e5)}
.project-dossier-type-chip.active{background:var(--type-color);border-color:var(--type-color);color:#fff;box-shadow:0 6px 14px color-mix(in srgb,var(--type-color) 25%,transparent),0 0 0 2px color-mix(in srgb,var(--type-color) 20%,transparent)}
.project-dossier-type-chip.active::before{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.50);color:#fff}
.project-dossier-type-chip.active .project-dossier-type-name{color:#fff}
.project-dossier-type-chip.active .project-dossier-type-count{background:rgba(255,255,255,.94);border-color:rgba(255,255,255,.70);color:#173e4e}
.project-dossier-type-chip.active.type-all{background:#315f75;border-color:#315f75;color:#fff}
.project-dossier-type-chip.type-all.active .project-dossier-type-name{color:#fff}
.project-dossier-type-chip.is-empty{opacity:.5;filter:saturate(.55)}
.project-dossier-type-chip.is-empty.active{opacity:1;filter:none}

.project-dossier-items-panel{
  --dossier-type-color:#315f75;
  position:relative;
  overflow:hidden;
  border-color:color-mix(in srgb,var(--dossier-type-color) 40%,#c8dde4);
  box-shadow:0 10px 28px color-mix(in srgb,var(--dossier-type-color) 9%,transparent);
}
.project-dossier-items-panel::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:var(--dossier-type-color);pointer-events:none}
.project-dossier-items-panel .project-dossier-items-head{background:linear-gradient(135deg,color-mix(in srgb,var(--dossier-type-color) 11%,white),rgba(255,255,255,.90));margin:-1px -1px 0;padding:22px 22px 16px;border-bottom:1px solid color-mix(in srgb,var(--dossier-type-color) 20%,#d9e6ea)}
.project-dossier-items-panel .project-dossier-items-head .eyebrow{color:color-mix(in srgb,var(--dossier-type-color) 82%,#264e60)}
.project-dossier-items-panel .project-dossier-items-head h2{color:color-mix(in srgb,var(--dossier-type-color) 78%,#173e4e)}
.project-dossier-items-panel.type-project_fact{--dossier-type-color:#2faecf}
.project-dossier-items-panel.type-decision{--dossier-type-color:#3f6f9f}
.project-dossier-items-panel.type-agreement{--dossier-type-color:#3a9f9d}
.project-dossier-items-panel.type-stakeholder{--dossier-type-color:#3f986d}
.project-dossier-items-panel.type-risk{--dossier-type-color:#d46352}
.project-dossier-items-panel.type-opportunity{--dossier-type-color:#c99d18}
.project-dossier-items-panel.type-measure{--dossier-type-color:#349989}
.project-dossier-items-panel.type-requirement{--dossier-type-color:#795fa4}
.project-dossier-items-panel.type-open_point{--dossier-type-color:#cf7f27}
.project-dossier-items-panel.type-open_dependency{--dossier-type-color:#bd6543}
.project-dossier-items-panel.type-interface{--dossier-type-color:#765b94}
.project-dossier-items-panel.type-action{--dossier-type-color:#5368b0}
.project-dossier-items-panel.type-all{--dossier-type-color:#315f75}
.project-dossier-items-panel .project-dossier-filter-links{background:rgba(255,255,255,.84);border-color:color-mix(in srgb,var(--dossier-type-color) 16%,#d9e6ea)}
.project-dossier-items-panel .project-dossier-filter-links a.active{background:var(--dossier-type-color);color:#fff}
.project-dossier-items-panel .project-dossier-empty{border-color:color-mix(in srgb,var(--dossier-type-color) 31%,#d1e3e8);background:linear-gradient(135deg,color-mix(in srgb,var(--dossier-type-color) 7%,white),#fffdf7)}


/* MVP 8.12.7 K.3c — semantic relationships & smart merge */
.project-dossier-relations{margin-top:12px;border:1px solid color-mix(in srgb,var(--semantic-project-fact,#2faecf) 22%,#dbe8ec);border-radius:14px;background:rgba(250,253,254,.88);overflow:hidden}
.project-dossier-relations>summary{cursor:pointer;list-style:none;padding:10px 12px;font-size:.76rem;font-weight:800;letter-spacing:.01em;color:#31596a;display:flex;align-items:center;gap:8px}
.project-dossier-relations>summary::-webkit-details-marker{display:none}
.project-dossier-relations>summary::before{content:"↔";display:inline-grid;place-items:center;width:22px;height:22px;border-radius:8px;background:#e9f5f7;color:#2b6f82;font-weight:900}
.project-dossier-relations[open]>summary{border-bottom:1px solid #e1ecef;background:rgba(239,248,250,.76)}
.project-dossier-relation-list{display:grid;gap:8px;padding:10px 10px 6px}
.project-dossier-relation-row{--relation-color:#5f8897;display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:9px;text-decoration:none;padding:9px 10px;border:1px solid color-mix(in srgb,var(--relation-color) 24%,#dbe7ea);border-radius:11px;background:color-mix(in srgb,var(--relation-color) 5%,white);transition:background .14s ease,border-color .14s ease,transform .14s ease}
.project-dossier-relation-row:hover{background:color-mix(in srgb,var(--relation-color) 10%,white);border-color:color-mix(in srgb,var(--relation-color) 42%,#dbe7ea);transform:translateY(-1px)}
.project-dossier-relation-row.type-project_fact{--relation-color:#2faecf}.project-dossier-relation-row.type-decision{--relation-color:#3f6f9f}.project-dossier-relation-row.type-agreement{--relation-color:#3a9f9d}.project-dossier-relation-row.type-stakeholder{--relation-color:#3f986d}.project-dossier-relation-row.type-risk{--relation-color:#d46352}.project-dossier-relation-row.type-opportunity{--relation-color:#c99d18}.project-dossier-relation-row.type-measure{--relation-color:#349989}.project-dossier-relation-row.type-requirement{--relation-color:#795fa4}.project-dossier-relation-row.type-open_point{--relation-color:#cf7f27}.project-dossier-relation-row.type-open_dependency{--relation-color:#bd6543}.project-dossier-relation-row.type-interface{--relation-color:#765b94}.project-dossier-relation-row.type-action{--relation-color:#5368b0}
.project-dossier-relation-icon{font-size:1rem;color:var(--relation-color);font-weight:900}.project-dossier-relation-copy{min-width:0;display:grid;gap:2px}.project-dossier-relation-copy small{color:#66808b;font-size:.69rem;font-weight:700}.project-dossier-relation-copy strong{color:#204757;font-size:.79rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-dossier-relation-note{display:block;padding:2px 12px 11px;color:#718993;font-size:.68rem;line-height:1.45}
@media(max-width:720px){.project-dossier-relation-row{grid-template-columns:20px minmax(0,1fr)}.project-dossier-relation-row>.project-dossier-type-pill{grid-column:2;justify-self:start}.project-dossier-relation-copy strong{white-space:normal}}


/* MVP 8.12.7 K.3c.2 — relationship UI polish */
.project-dossier-relations{
  margin-top:9px;
  border-color:color-mix(in srgb,var(--semantic-project-fact,#2faecf) 15%,#dce8eb);
  border-radius:12px;
  background:rgba(252,254,254,.78);
}
.project-dossier-relations>summary{
  padding:7px 9px;
  gap:6px;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:0;
  color:#466673;
}
.project-dossier-relations>summary::before{
  width:18px;
  height:18px;
  border-radius:6px;
  background:#eef7f8;
  color:#397487;
  font-size:.72rem;
}
.project-dossier-relations[open]>summary{
  border-bottom-color:#e8eff1;
  background:rgba(246,250,251,.82);
}
.project-dossier-relation-list{
  gap:6px;
  padding:7px 8px 4px;
}
.project-dossier-relation-row{
  grid-template-columns:18px minmax(0,1fr) auto;
  gap:7px;
  padding:7px 8px;
  border-radius:9px;
  border-color:color-mix(in srgb,var(--relation-color) 17%,#dfe9eb);
  background:color-mix(in srgb,var(--relation-color) 3%,white);
  transition:background .14s ease,border-color .14s ease;
}
.project-dossier-relation-row:hover{
  background:color-mix(in srgb,var(--relation-color) 6%,white);
  border-color:color-mix(in srgb,var(--relation-color) 30%,#dfe9eb);
  transform:none;
}
.project-dossier-relation-icon{
  font-size:.78rem;
  opacity:.78;
}
.project-dossier-relation-copy{
  gap:1px;
}
.project-dossier-relation-copy small{
  color:#78909a;
  font-size:.60rem;
  font-weight:700;
  line-height:1.25;
}
.project-dossier-relation-copy strong{
  color:#31515e;
  font-size:.70rem;
  font-weight:760;
  line-height:1.32;
}
.project-dossier-relation-row>.project-dossier-type-pill{
  padding:3px 6px;
  font-size:.47rem;
  font-weight:800;
  opacity:.86;
}
.project-dossier-relation-note{
  padding:2px 9px 8px;
  color:#879aa2;
  font-size:.59rem;
  line-height:1.4;
}
@media(max-width:720px){
  .project-dossier-relation-row{grid-template-columns:16px minmax(0,1fr);padding:7px}
  .project-dossier-relation-row>.project-dossier-type-pill{grid-column:2}
  .project-dossier-relation-copy strong{font-size:.69rem}
}

/* MVP 8.12.7 K.3d — promotion quality review */
.project-dossier-promotion-check{
  --promotion-color:#4c8b73;
  margin-top:9px;
  border:1px solid color-mix(in srgb,var(--promotion-color) 22%,#dce8eb);
  border-radius:11px;
  background:color-mix(in srgb,var(--promotion-color) 4%,white);
  overflow:hidden;
}
.project-dossier-promotion-check.level-review{--promotion-color:#b8872d}
.project-dossier-promotion-check.level-attention{--promotion-color:#c86755}
.project-dossier-promotion-check>summary{
  list-style:none;
  cursor:pointer;
  display:grid;
  grid-template-columns:8px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  padding:7px 9px;
  color:#3c5b67;
}
.project-dossier-promotion-check>summary::-webkit-details-marker{display:none}
.project-dossier-promotion-dot{width:7px;height:7px;border-radius:50%;background:var(--promotion-color)}
.project-dossier-promotion-check>summary span:nth-child(2){display:flex;align-items:baseline;gap:7px;min-width:0}
.project-dossier-promotion-check>summary strong{font-size:.66rem;color:#31515e}
.project-dossier-promotion-check>summary small{font-size:.58rem;color:#78909a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-dossier-promotion-score{font-size:.58rem;font-weight:850;color:var(--promotion-color);background:#fff;border:1px solid color-mix(in srgb,var(--promotion-color) 20%,#e3eaec);border-radius:999px;padding:2px 6px}
.project-dossier-promotion-check[open]>summary{border-bottom:1px solid color-mix(in srgb,var(--promotion-color) 13%,#e5edef)}
.project-dossier-promotion-body{padding:7px 10px 8px;color:#6f8790;font-size:.61rem;line-height:1.42}
.project-dossier-promotion-body ul{margin:0 0 5px;padding-left:16px}.project-dossier-promotion-body li+li{margin-top:2px}.project-dossier-promotion-body p{margin:0 0 5px}.project-dossier-promotion-body>small{font-size:.57rem;color:#8a9ba2}
@media(max-width:720px){.project-dossier-promotion-check>summary span:nth-child(2){display:grid;gap:1px}.project-dossier-promotion-check>summary small{white-space:normal}}

/* MVP 8.12.7 K.3d.1 — promotion review alignment */
.project-dossier-item-main>.project-dossier-promotion-check{
  width:100%;
  box-sizing:border-box;
  margin-top:9px;
}

/* MVP 8.12.7 K.3d.1 — promotion review alignment */
.project-dossier-item-main>.project-dossier-promotion-check{
  width:100%;
  box-sizing:border-box;
  margin-top:9px;
}
\n\n/* MVP 8.12.7 L.1a — BLVC workflow repair + brand consistency */\n/* BLVC.nu navigation is product chrome: never inherit project/customer palette. */\n.viewer-internal .project-primary-tabs .tab.active,\n.viewer-client .project-primary-tabs .tab.active,\n.viewer-client.portal-client-branded .project-primary-tabs .tab.active{\n  background:linear-gradient(135deg,#163B5C,#225A7A)!important;\n  color:#fff!important;\n  box-shadow:inset 0 -4px 0 #F28C28,0 8px 20px rgba(22,59,92,.14)!important;\n}\n.viewer-internal .project-primary-tabs .tab:not(.active):not(.disabled):hover,\n.viewer-client .project-primary-tabs .tab:not(.active):not(.disabled):hover,\n.viewer-client.portal-client-branded .project-primary-tabs .tab:not(.active):hover{\n  color:#163B5C!important;\n  background:#FFF4E8!important;\n}\n\n/* Customer review chapter buttons: lighter at rest, BLVC blue/orange only for selection. */\n.viewer-client .review-reader-nav{\n  border-color:rgba(22,59,92,.14)!important;\n  background:linear-gradient(145deg,#fff,#f4f9fb)!important;\n  color:#244b63!important;\n  box-shadow:0 6px 14px rgba(22,59,92,.055)!important;\n}\n.viewer-client .review-reader-nav span{background:#EAF4F8!important;color:#245A75!important;}\n.viewer-client .review-reader-nav:hover{background:linear-gradient(145deg,#fff,#fff7ee)!important;border-color:rgba(242,140,40,.42)!important;}\n.viewer-client .review-reader-nav.is-active{\n  background:linear-gradient(135deg,#214F6D,#2B6685)!important;\n  color:#fff!important;\n  border-color:#163B5C!important;\n  box-shadow:inset 0 -3px 0 #F28C28,0 9px 20px rgba(22,59,92,.15)!important;\n}\n.viewer-client .review-reader-nav.is-active span{background:#F4FBFE!important;color:#163B5C!important;}\n\n/* Internal Projectkenner citations should read as references, not dark CTA buttons. */\nbutton.pk-analysis-inline-citation{\n  color:#3D8196!important;\n  border-bottom-color:rgba(61,129,150,.32)!important;\n  font-weight:650!important;\n}\nbutton.pk-analysis-inline-citation:hover,button.pk-analysis-inline-citation:focus-visible{\n  color:#23667B!important;\n  background:rgba(74,192,224,.07)!important;\n}\n\n/* QA regenerate is now a real form submit; keep it visually calm and product-consistent. */\n.generation-qa-regenerate-link{\n  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;\n  min-height:42px!important;padding:9px 15px!important;border:1px solid #163B5C!important;border-radius:11px!important;\n  background:linear-gradient(135deg,#163B5C,#245F7F)!important;color:#fff!important;\n  box-shadow:inset 0 -3px 0 rgba(242,140,40,.9),0 8px 18px rgba(22,59,92,.14)!important;\n  text-decoration:none!important;font-size:.72rem!important;font-weight:900!important;white-space:nowrap!important;\n}\n.generation-qa-regenerate-link:hover{transform:translateY(-1px);background:linear-gradient(135deg,#1D4A68,#2B6C8C)!important;}\n
/* MVP 8.12.7 L.4.4 UX — automatische baseline als rustige standaard */
.blvc-baseline-choice{margin-top:10px}
.blvc-baseline-choice[hidden]{display:none!important}
.blvc-baseline-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 2px 0;color:var(--muted,#667784);font-size:.76rem;line-height:1.45}
.blvc-baseline-summary strong{color:var(--text,#263f52);font-weight:800}
button.blvc-baseline-link{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;max-width:100%!important;min-width:0!important;min-height:28px!important;padding:5px 9px!important;border:1px solid rgba(45,113,136,.20)!important;border-radius:999px!important;background:rgba(255,255,255,.72)!important;box-shadow:none!important;color:#2D7188!important;font-family:inherit!important;font-size:.64rem!important;line-height:1.15!important;font-weight:800!important;letter-spacing:0!important;text-decoration:none!important;white-space:nowrap!important;cursor:pointer}
button.blvc-baseline-link:hover,button.blvc-baseline-link:focus-visible{border-color:rgba(45,113,136,.34)!important;background:#F5FBFD!important;color:#163B5C!important;box-shadow:none!important;transform:none!important}
.blvc-baseline-options{margin-top:9px;padding:12px 14px;border:1px solid var(--line,#dfe7ec);border-radius:12px;background:rgba(255,255,255,.5)}
.blvc-baseline-options[hidden]{display:none!important}
.blvc-baseline-options .field-label{margin-top:0!important}
.blvc-baseline-options .muted.tiny{margin:6px 0 0!important}
@media (max-width:760px){.blvc-baseline-summary{align-items:flex-start;flex-direction:column;gap:4px}.blvc-baseline-options{padding:12px}}

/* K.3 stabilisation: explicit cross-analysis status conflict review */
.pk-analysis-conflict-review{margin:14px 0;padding:16px 18px;border-radius:16px;border:1px solid #e9b9ad;background:linear-gradient(135deg,#fff8f5,#fff);box-shadow:0 8px 22px rgba(89,89,89,.05)}
.pk-analysis-conflict-review-head{display:flex;flex-direction:column;gap:3px;margin-bottom:6px}.pk-analysis-conflict-review-head strong{color:#7f4338;font-size:14px}.pk-analysis-conflict-review>p{margin:0 0 10px;color:#6f7478;font-size:11px;line-height:1.55}.pk-analysis-conflict-review ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}.pk-analysis-conflict-review li{display:grid;gap:3px;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid #f0d1c9}.pk-analysis-conflict-review li strong{color:#71463e;font-size:12px}.pk-analysis-conflict-review li span{color:#6f7478;font-size:11px;line-height:1.45}

/* K.3d.3g canonical stakeholder cleanup review */
.project-dossier-cleanup-review{margin:0 0 14px;border:1px solid #cfe5ea;border-radius:16px;background:linear-gradient(135deg,#f4fbfc 0%,#ffffff 60%,#fffdf3 100%);overflow:hidden}.project-dossier-cleanup-review>summary{cursor:pointer;list-style:none;padding:12px 14px;color:#204a5b;font-size:11px;font-weight:850}.project-dossier-cleanup-review>summary::-webkit-details-marker{display:none}.project-dossier-cleanup-list{padding:0 14px 13px}.project-dossier-cleanup-list>p{margin:0 0 10px;color:#667b84;font-size:9px;line-height:1.5}.project-dossier-cleanup-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid #e4eef1}.project-dossier-cleanup-row:first-of-type{border-top:0}.project-dossier-cleanup-row div{min-width:0}.project-dossier-cleanup-row strong{display:block;color:#173f61;font-size:10px}.project-dossier-cleanup-row small{display:block;margin-top:2px;color:#788b92;font-size:8px;line-height:1.4}.project-dossier-cleanup-row a{flex:0 0 auto;color:#2f6f82;font-size:9px;font-weight:800;text-decoration:none}.project-dossier-cleanup-row a:hover{text-decoration:underline}@media(max-width:760px){.project-dossier-cleanup-row{align-items:flex-start;flex-direction:column;gap:6px}}


/* MVP 8.12.7 K.3d.3g.2 — inline stakeholder cleanup visibility */
.project-dossier-inline-cleanup{margin:10px 0 2px;padding:10px 12px;border:1px solid #d5e6ea;border-radius:12px;background:linear-gradient(135deg,#f5fbfc,#fff);display:grid;gap:3px}.project-dossier-inline-cleanup-kicker{font-size:.56rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:#4f8796}.project-dossier-inline-cleanup strong{font-size:.72rem;color:#204a5b}.project-dossier-inline-cleanup p{margin:0!important;font-size:.63rem!important;line-height:1.45!important;color:#6b7f87!important}.project-dossier-inline-cleanup a{margin-top:2px;font-size:.61rem;font-weight:800;color:#2f7184;text-decoration:none}.project-dossier-inline-cleanup a:hover{text-decoration:underline}.project-dossier-inline-cleanup.reason-activiteit_geen_actor{border-color:#eadbb8;background:linear-gradient(135deg,#fffaf0,#fff)}.project-dossier-inline-cleanup.reason-activiteit_geen_actor .project-dossier-inline-cleanup-kicker{color:#9a762e}.project-dossier-inline-cleanup.reason-activiteit_geen_actor strong{color:#74561f}

/* MVP 8.12.7 K.3d.3h — guided knowledge cleanup actions */
.project-dossier-cleanup-actions {
  display: grid;
  gap: .55rem;
  margin-top: .7rem;
}
.project-dossier-cleanup-actions > form { margin: 0; }
.project-dossier-cleanup-action-details {
  border: 1px solid rgba(43, 92, 112, .14);
  border-radius: 12px;
  background: rgba(255,255,255,.62);
  overflow: hidden;
}
.project-dossier-cleanup-action-details > summary {
  cursor: pointer;
  padding: .65rem .8rem;
  font-weight: 700;
}
.project-dossier-cleanup-action-details .project-dossier-review-form {
  padding: 0 .8rem .8rem;
}
.project-dossier-cleanup-existing-targets {
  display: grid;
  gap: .45rem;
  padding: .7rem .8rem;
  border: 1px solid rgba(43, 92, 112, .14);
  border-radius: 12px;
  background: rgba(255,255,255,.68);
}
.project-dossier-cleanup-existing-targets > span {
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #587485;
}
.project-dossier-cleanup-existing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding-top: .45rem;
  border-top: 1px solid rgba(43, 92, 112, .10);
}
.project-dossier-cleanup-existing-row:first-of-type { border-top: 0; padding-top: 0; }
.project-dossier-cleanup-existing-row div { display: grid; gap: .15rem; }
.project-dossier-cleanup-existing-row small { color: #6a808d; }
@media (max-width: 760px) {
  .project-dossier-cleanup-existing-row { align-items: stretch; flex-direction: column; }
}


/* MVP 8.12.7 K.3d.3h.1 — compact cleanup action UI */
.project-dossier-inline-cleanup {
  padding: 9px 11px;
  gap: 2px;
}
.project-dossier-cleanup-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .55rem;
}
.project-dossier-cleanup-actions > form {
  display: inline-flex;
  width: auto;
}
.project-dossier-cleanup-actions button,
.project-dossier-cleanup-primary {
  width: auto !important;
  min-width: 0 !important;
  min-height: 30px !important;
  padding: 6px 10px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #173f61 !important;
  color: #fff !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 9px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  cursor: pointer;
}
.project-dossier-cleanup-actions button:hover,
.project-dossier-cleanup-primary:hover {
  background: #1f5677 !important;
  transform: translateY(-1px);
}
.project-dossier-cleanup-action-details {
  width: fit-content;
  max-width: 100%;
  border-radius: 9px;
  background: #fff;
}
.project-dossier-cleanup-action-details[open] {
  flex: 1 1 100%;
  width: 100%;
}
.project-dossier-cleanup-action-details > summary {
  padding: 7px 10px;
  color: #31576a;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
}
.project-dossier-cleanup-action-details > summary::marker {
  color: #6f95a3;
}
.project-dossier-cleanup-action-details .project-dossier-review-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(43, 92, 112, .10);
}
.project-dossier-cleanup-action-details .project-dossier-review-form > p {
  grid-column: 1 / -1;
  margin: 0;
}
.project-dossier-cleanup-action-details .project-dossier-review-form label {
  margin: 0;
}
.project-dossier-cleanup-action-details .project-dossier-review-form select {
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid #cbdde2;
  border-radius: 9px;
  background: #fff;
  color: #344f5d;
  font: inherit;
  font-size: 10px;
}
.project-dossier-cleanup-existing-targets {
  flex: 1 1 100%;
  padding: .6rem .7rem;
  gap: .35rem;
  border-radius: 10px;
}
.project-dossier-cleanup-existing-row {
  gap: .55rem;
  padding-top: .35rem;
}
.project-dossier-cleanup-existing-row form {
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  .project-dossier-cleanup-actions {
    align-items: stretch;
  }
  .project-dossier-cleanup-action-details,
  .project-dossier-cleanup-action-details[open] {
    width: 100%;
  }
  .project-dossier-cleanup-action-details > summary {
    white-space: normal;
  }
  .project-dossier-cleanup-action-details .project-dossier-review-form {
    grid-template-columns: 1fr;
  }
  .project-dossier-cleanup-action-details .project-dossier-review-form > p {
    grid-column: auto;
  }
}


/* A8-CB2-PG-R1 · platform-native commercial revision + depth mismatch UX */
.commercial-depth-mismatch{margin-top:11px;padding:11px 12px;border:1px solid rgba(219,157,54,.28);border-radius:13px;background:linear-gradient(135deg,rgba(255,249,237,.96),rgba(255,252,246,.9));display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:start}
.commercial-depth-mismatch-icon{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:#f3d79e;color:#7d5716;font-size:.72rem;font-weight:950}
.commercial-depth-mismatch-copy{display:grid;gap:2px;min-width:0}
.commercial-depth-mismatch-copy small{color:#88704b!important;font-size:.56rem!important;font-weight:900;text-transform:uppercase;letter-spacing:.055em}
.commercial-depth-mismatch-copy strong{color:#5c451d!important;font-size:.69rem!important}
.commercial-depth-mismatch-copy p{margin:2px 0 0!important;color:#746448!important;font-size:.62rem!important;line-height:1.45}
.commercial-depth-mismatch-copy b{color:#58431e}
.commercial-depth-mismatch>a{align-self:center;white-space:nowrap;color:#765718!important;font-size:.61rem;font-weight:900;text-decoration:none}
.commercial-depth-mismatch>a:hover{text-decoration:underline}
.report-commercial-revision-form{display:flex;align-items:flex-end;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.report-commercial-revision-form label{display:grid;gap:4px;min-width:210px;color:#667987;font-size:.57rem;font-weight:900}
.report-commercial-revision-form select{min-height:36px;border:1px solid #d6e3e7;border-radius:10px;background:#fff;padding:7px 31px 7px 10px;color:#244a63;font:inherit;font-size:.65rem;font-weight:800}
@media(max-width:760px){.commercial-depth-mismatch{grid-template-columns:auto 1fr}.commercial-depth-mismatch>a{grid-column:2;justify-self:start}.report-commercial-revision-form{width:100%;align-items:stretch;flex-direction:column}.report-commercial-revision-form label{width:100%}.report-commercial-revision-form .button{width:100%}}

/* A8-CB3-UI1 — dossier risk/control review styling restoration */
.project-dossier-risk-control-review{
  margin-top:12px;
  border:1px solid #dbe8eb;
  border-radius:13px;
  background:linear-gradient(135deg,#fbfdfd 0%,#ffffff 68%,#fffdf7 100%);
  overflow:hidden;
}
.project-dossier-risk-control-review>summary{
  cursor:pointer;
  list-style:none;
  display:grid;
  grid-template-columns:8px minmax(0,1fr) auto 22px;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:8px 10px;
  color:#294e5d;
}
.project-dossier-risk-control-review>summary::-webkit-details-marker{display:none}
.project-dossier-risk-control-review>summary::marker{content:""}
.project-dossier-risk-control-review[open]>summary{
  border-bottom:1px solid #e5edef;
  background:#f7fbfc;
}
.project-dossier-risk-control-summary-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#b8c9cf;
}
.project-dossier-risk-control-review.is-confirmed .project-dossier-risk-control-summary-dot{background:#4e9d76}
.project-dossier-risk-control-review.has-suggestion .project-dossier-risk-control-summary-dot{background:#d49a43}
.project-dossier-risk-control-summary-copy{
  min-width:0;
  display:flex;
  align-items:baseline;
  gap:6px;
  flex-wrap:wrap;
}
.project-dossier-risk-control-summary-copy strong{
  color:#264956;
  font-size:10.5px;
  font-weight:850;
}
.project-dossier-risk-control-summary-copy small{
  color:#71858d;
  font-size:8.5px;
  line-height:1.35;
}
.project-dossier-risk-control-status{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:3px 7px;
  border-radius:999px;
  font-size:8px;
  font-weight:850;
  white-space:nowrap;
}
.project-dossier-risk-control-status.is-confirmed{background:#eaf6ef;color:#347055}
.project-dossier-risk-control-status.is-action{background:#fff3d9;color:#83611f}
.project-dossier-risk-control-chevron{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border:1px solid #d3e4e8;
  border-radius:50%;
  color:#4e7685;
  background:#fff;
  font-size:11px;
  line-height:1;
  transition:transform .14s ease;
}
.project-dossier-risk-control-review[open] .project-dossier-risk-control-chevron{transform:rotate(180deg)}
.project-dossier-risk-control-body{
  display:grid;
  gap:9px;
  padding:10px;
}
.project-dossier-risk-control-confirmed-list{display:grid;gap:7px}
.project-dossier-risk-control-confirmed-item{
  display:grid;
  grid-template-columns:20px minmax(0,1fr) auto;
  align-items:start;
  gap:8px;
  padding:9px;
  border:1px solid #dceae3;
  border-radius:11px;
  background:#f8fcfa;
}
.project-dossier-risk-control-check{
  display:grid;
  place-items:center;
  width:19px;
  height:19px;
  border-radius:50%;
  background:#e4f3eb;
  color:#347055;
  font-size:9px;
  font-weight:900;
}
.project-dossier-risk-control-confirmed-copy{
  min-width:0;
  display:grid;
  gap:2px;
}
.project-dossier-risk-control-confirmed-copy strong{color:#294b58;font-size:9.5px;line-height:1.35}
.project-dossier-risk-control-confirmed-copy small,
.project-dossier-risk-control-confirmed-copy span{color:#71858d;font-size:8px;line-height:1.4}
.project-dossier-risk-control-remove-form{margin:0}
.project-dossier-risk-control-remove{
  width:auto!important;
  min-height:28px!important;
  padding:5px 8px!important;
  border:1px solid #d9e4e7!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#697c84!important;
  font-size:8px!important;
  font-weight:800!important;
  white-space:nowrap;
}
.project-dossier-risk-control-remove:hover{border-color:#c4d7dc!important;color:#405e69!important}
.project-dossier-risk-control-suggestion-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:12px;
  padding:11px;
  border:1px solid #d9e7ea;
  border-radius:11px;
  background:linear-gradient(135deg,#f8fcfd 0%,#ffffff 70%);
}
.project-dossier-risk-control-suggestion-copy{
  min-width:0;
  display:grid;
  gap:4px;
}
.project-dossier-risk-control-suggestion-copy>small:first-child{
  color:#66818b;
  font-size:8px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.035em;
}
.project-dossier-risk-control-suggestion-copy>strong{color:#284b59;font-size:10px;line-height:1.35}
.project-dossier-risk-control-suggestion-copy>p{margin:0;color:#617983;font-size:9px;line-height:1.45}
.project-dossier-risk-control-suggestion-copy>span{color:#7a8b92;font-size:8px;line-height:1.4}
.project-dossier-risk-control-why{
  display:grid;
  gap:2px;
  margin-top:3px;
  padding-top:7px;
  border-top:1px solid #e9eff1;
}
.project-dossier-risk-control-why small{color:#607a85;font-size:8px;font-weight:850}
.project-dossier-risk-control-why span{color:#6e828a;font-size:8px;line-height:1.4}
.project-dossier-risk-control-primary-form{margin:0}
.project-dossier-risk-control-primary-form button,
.project-dossier-risk-control-select-form button{
  width:auto!important;
  min-width:78px;
  min-height:30px!important;
  padding:6px 10px!important;
  border:0!important;
  border-radius:9px!important;
  background:#173f61!important;
  color:#fff!important;
  font-size:8.5px!important;
  font-weight:850!important;
  box-shadow:none!important;
}
.project-dossier-risk-control-primary-form button:hover,
.project-dossier-risk-control-select-form button:hover{background:#214f72!important}
.project-dossier-risk-control-no-suggestion{
  margin:0;
  padding:8px 10px;
  border:1px solid #e3eaec;
  border-radius:10px;
  background:#fafcfc;
  color:#71858d;
  font-size:8.5px;
  line-height:1.4;
}
.project-dossier-risk-control-alternatives{
  border:1px solid #e1eaed;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}
.project-dossier-risk-control-alternatives>summary{
  cursor:pointer;
  list-style:none;
  padding:8px 10px;
  color:#476775;
  font-size:8.5px;
  font-weight:800;
}
.project-dossier-risk-control-alternatives>summary::-webkit-details-marker{display:none}
.project-dossier-risk-control-alternatives>summary::after{content:"⌄";float:right;color:#718a94}
.project-dossier-risk-control-alternatives[open]>summary{border-bottom:1px solid #e7edef;background:#f9fbfc}
.project-dossier-risk-control-alternatives[open]>summary::after{transform:rotate(180deg)}
.project-dossier-risk-control-select-form{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:9px;
}
.project-dossier-risk-control-select-form select{
  min-width:0;
  flex:1 1 auto;
  min-height:32px;
  padding:5px 8px;
  border:1px solid #d5e2e6;
  border-radius:8px;
  background:#fff;
  color:#425f6b;
  font-size:8.5px;
}
.project-dossier-risk-control-open-note{
  display:block;
  color:#788b92;
  font-size:8px;
  line-height:1.4;
}
@media(max-width:720px){
  .project-dossier-risk-control-review>summary{grid-template-columns:8px minmax(0,1fr) 22px}
  .project-dossier-risk-control-status{grid-column:2;justify-self:start}
  .project-dossier-risk-control-chevron{grid-column:3;grid-row:1/3}
  .project-dossier-risk-control-suggestion-card{grid-template-columns:1fr;align-items:start}
  .project-dossier-risk-control-primary-form{justify-self:start}
  .project-dossier-risk-control-confirmed-item{grid-template-columns:20px minmax(0,1fr)}
  .project-dossier-risk-control-remove-form{grid-column:2;justify-self:start}
  .project-dossier-risk-control-select-form{align-items:stretch;flex-direction:column}
  .project-dossier-risk-control-select-form button{align-self:flex-start}
}

/* A8-CB3-UI2 — keep product actions and artifact settings on separate, stable rows. */
.artifact-current-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:11px;
  align-items:stretch;
}
.artifact-current-primary-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  min-width:0;
}
.artifact-current-primary-actions>a,
.artifact-current-primary-actions>form,
.artifact-current-primary-actions>span{
  flex:0 0 auto;
  max-width:100%;
  box-sizing:border-box;
}
.artifact-current-primary-actions .artifact-review-start-form,
.artifact-current-primary-actions .artifact-client-visibility-action{
  align-self:center;
}
.artifact-current-settings{
  display:grid;
  grid-template-columns:minmax(150px,190px) minmax(160px,210px) auto;
  justify-content:end;
  align-items:end;
  gap:8px;
  width:100%;
  max-width:none;
  margin:0;
  padding-top:10px;
  border-top:1px solid #edf1f3;
  box-sizing:border-box;
}
.artifact-current-settings label{
  min-width:0;
}
.artifact-current-settings select{
  min-width:0;
}
.artifact-current-settings>button{
  min-width:92px;
  width:auto;
  white-space:nowrap;
  padding-inline:14px;
}
@media(max-width:900px){
  .artifact-current-primary-actions{
    align-items:stretch;
  }
  .artifact-current-primary-actions>a,
  .artifact-current-primary-actions>form{
    flex:0 1 auto;
  }
  .artifact-current-primary-actions .artifact-review-start-form,
  .artifact-current-primary-actions .artifact-client-visibility-action{
    align-self:stretch;
  }
  .artifact-current-primary-actions .artifact-review-button,
  .artifact-current-primary-actions .artifact-client-visibility-action>button{
    width:auto;
  }
  .artifact-current-settings{
    grid-template-columns:minmax(145px,1fr) minmax(155px,1fr) auto;
    justify-content:stretch;
  }
}
@media(max-width:620px){
  .artifact-current-primary-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .artifact-current-primary-actions>a,
  .artifact-current-primary-actions>form,
  .artifact-current-primary-actions>form>button,
  .artifact-current-primary-actions .artifact-review-button,
  .artifact-current-primary-actions .artifact-client-visibility-action>button{
    width:100%!important;
    justify-content:center!important;
  }
  .artifact-current-settings{
    grid-template-columns:1fr;
  }
  .artifact-current-settings>button{
    width:100%;
  }
}
.artifact-current-primary-actions>a.artifact-download-button,
.artifact-current-primary-actions>a.artifact-review-button{
  display:inline-flex!important;
  align-items:center!important;
  min-height:40px!important;
  height:40px!important;
  padding:0!important;
  box-sizing:border-box!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#203f55!important;
  font-size:.75rem!important;
  font-weight:600!important;
  line-height:1.2!important;
  text-decoration:underline!important;
  white-space:nowrap;
}
.artifact-current-primary-actions>a.artifact-download-button:hover,
.artifact-current-primary-actions>a.artifact-review-button:hover{
  color:#0f5c82!important;
  background:transparent!important;
}

/* AQ/F — project dossier knowledge coverage UI alignment */
.project-dossier-coverage-audit{
  overflow:hidden;
  border:1px solid #d4e5e9;
  border-radius:18px;
  background:linear-gradient(145deg,#ffffff 0%,#f8fcfd 58%,#fbfdf8 100%);
  box-shadow:0 10px 26px rgba(31,69,85,.05);
}
.project-dossier-coverage-audit>summary{list-style:none}.project-dossier-coverage-audit>summary::-webkit-details-marker{display:none}
.project-dossier-coverage-summary{
  position:relative;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto 22px;
  align-items:center;
  gap:11px;
  min-height:68px;
  padding:13px 16px;
  cursor:pointer;
  user-select:none;
}
.project-dossier-coverage-summary:after{
  content:"⌄";
  display:grid;
  place-items:center;
  width:22px;height:22px;
  border:1px solid #cfe1e6;
  border-radius:50%;
  background:rgba(255,255,255,.88);
  color:#3e7187;
  font-size:13px;
  font-weight:900;
  line-height:1;
  transition:transform .16s ease,background .16s ease;
}
.project-dossier-coverage-audit[open]>.project-dossier-coverage-summary:after{transform:rotate(180deg);background:#f0f8fa}
.project-dossier-coverage-summary:hover{background:linear-gradient(90deg,rgba(74,192,224,.035),rgba(255,255,255,0))}
.project-dossier-coverage-summary-icon{
  display:grid;place-items:center;
  width:38px;height:38px;
  border:1px solid #cde5dc;
  border-radius:12px;
  background:linear-gradient(145deg,#e7f6ef,#f8fcfa);
  color:#3c7b62;
  font-size:16px;font-weight:950;
}
.project-dossier-coverage-audit.has-flags .project-dossier-coverage-summary-icon{
  border-color:#ead9a5;
  background:linear-gradient(145deg,#fff7da,#fffdf3);
  color:#8a6b20;
}
.project-dossier-coverage-summary-copy{display:grid;gap:2px;min-width:0}
.project-dossier-coverage-summary-copy>strong{color:#24495b;font-size:14px;line-height:1.25}
.project-dossier-coverage-summary-copy>small{overflow:hidden;color:#768a93;font-size:10px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.project-dossier-coverage-status{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:27px;padding:5px 9px;
  border:1px solid #d7e5e9;border-radius:999px;
  background:#f4f8f9;color:#637b85;
  font-size:9px;font-style:normal;font-weight:900;white-space:nowrap;
}
.project-dossier-coverage-status.is-attention{border-color:#ead69d;background:#fff7dc;color:#80631d}
.project-dossier-coverage-status.is-clear{border-color:#cce4d8;background:#edf8f2;color:#397258}
.project-dossier-coverage-body{
  display:grid;gap:14px;
  padding:15px 16px 17px;
  border-top:1px solid #e3ecef;
  background:rgba(255,255,255,.58);
}
.project-dossier-coverage-intro{
  display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:start;
  padding:11px 12px;
  border:1px solid #ddebed;border-radius:13px;
  background:linear-gradient(135deg,#f4fafc,#fff);
}
.project-dossier-coverage-intro-icon{
  display:grid;place-items:center;width:28px;height:28px;
  border-radius:9px;background:#e5f5f9;color:#33748a;font-size:11px;font-weight:950;
}
.project-dossier-coverage-intro p{margin:0;color:#637983;font-size:10.5px;line-height:1.55}
.project-dossier-coverage-intro p strong{color:#345767}
.project-dossier-coverage-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.project-dossier-coverage-stats>span{
  display:grid;gap:2px;min-width:0;padding:10px 11px;
  border:1px solid #dce8eb;border-radius:12px;
  background:rgba(255,255,255,.9);
  box-shadow:0 4px 12px rgba(31,69,85,.025);
}
.project-dossier-coverage-stats strong{color:#28566b;font-size:18px;line-height:1.1}
.project-dossier-coverage-stats small{color:#7c8e96;font-size:8.5px;font-weight:800;line-height:1.3}
.project-dossier-coverage-issues{
  overflow:hidden;
  border:1px solid #e4dfc9;border-radius:14px;
  background:#fff;
}
.project-dossier-coverage-issues>summary{list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:10px;padding:11px 12px;cursor:pointer;background:linear-gradient(135deg,#fffaf0,#fff)}
.project-dossier-coverage-issues>summary::-webkit-details-marker{display:none}
.project-dossier-coverage-issues>summary:after{content:"⌄";color:#8a7335;font-size:12px;font-weight:900;transition:transform .16s ease}
.project-dossier-coverage-issues[open]>summary:after{transform:rotate(180deg)}
.project-dossier-coverage-issues>summary>span:first-child{display:grid;gap:2px}
.project-dossier-coverage-issues>summary strong{color:#5f542f;font-size:10.5px}
.project-dossier-coverage-issues>summary small{color:#8a856f;font-size:8.5px;line-height:1.35}
.project-dossier-coverage-issue-count{display:grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:#fff1bd;color:#755b17;font-size:9px;font-weight:950}
.project-dossier-coverage-flags{display:grid;background:#fff}
.project-dossier-coverage-flag{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;padding:11px 12px;border-top:1px solid #edf0e8}
.project-dossier-coverage-flag-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#fff3cf;color:#82661d;font-size:11px;font-weight:950}
.project-dossier-coverage-flag>div{min-width:0}
.project-dossier-coverage-flag-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.project-dossier-coverage-flag-head strong{min-width:0;color:#385461;font-size:10px;line-height:1.35}
.project-dossier-coverage-flag-head span{flex:0 0 auto;padding:3px 6px;border-radius:999px;background:#f2f6f7;color:#788a91;font-size:7.5px;font-weight:850;white-space:nowrap}
.project-dossier-coverage-flag p{margin:3px 0 0;color:#73858c;font-size:9px;line-height:1.45}
.project-dossier-coverage-note{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:10px;padding:11px 12px;border:1px solid #d5e7dd;border-radius:13px;background:linear-gradient(135deg,#eff8f3,#fff)}
.project-dossier-coverage-note>span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#dff2e6;color:#347354;font-size:11px;font-weight:950}
.project-dossier-coverage-note p{margin:0;color:#6a8177;font-size:9.5px;line-height:1.5}.project-dossier-coverage-note strong{color:#3c6553}
@media(max-width:760px){
  .project-dossier-coverage-summary{grid-template-columns:34px minmax(0,1fr) 20px;padding:12px 13px}
  .project-dossier-coverage-summary-icon{width:34px;height:34px;border-radius:11px}
  .project-dossier-coverage-status{grid-column:2;justify-self:start;margin-top:3px}
  .project-dossier-coverage-summary:after{grid-column:3;grid-row:1/3}
  .project-dossier-coverage-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .project-dossier-coverage-body{padding:12px}
  .project-dossier-coverage-intro{grid-template-columns:1fr}.project-dossier-coverage-intro-icon{display:none}
  .project-dossier-coverage-issues>summary{grid-template-columns:minmax(0,1fr) auto 16px}
  .project-dossier-coverage-flag-head{display:grid;gap:4px}.project-dossier-coverage-flag-head span{justify-self:start}
}


/* AQ/F3 — Projectkenner document workspace + project lifecycle polish */
.pk-project-subfolder>summary.pk-project-subfolder-summary{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) 30px;
  align-items:center;
  gap:10px;
  min-height:52px;
  padding:10px 12px;
}
.pk-project-subfolder-summary .pk-library-subfolder-icon{grid-column:1;width:30px;height:30px}
.pk-project-subfolder-copy{grid-column:2;min-width:0}
.pk-project-subfolder-copy strong{display:block;overflow:hidden;color:#405157;font-size:11.5px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.pk-project-subfolder-copy small{display:block;margin-top:2px;overflow:hidden;color:#87979d;font-size:9px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.pk-project-subfolder-chevron{
  grid-column:3;justify-self:end;
  display:grid;place-items:center;
  width:28px;height:28px;
  border:1px solid #d4e5e9;border-radius:50%;
  background:#fff;color:#41758a;
  font-size:13px;font-weight:900;line-height:1;
  transition:transform .16s ease,background .16s ease;
}
.pk-project-subfolder[open]>.pk-project-subfolder-summary .pk-project-subfolder-chevron{transform:rotate(180deg);background:#f1f9fb}
.impact-surface .pk-project-subfolder>summary.pk-project-subfolder-summary{background:linear-gradient(90deg,#fffdf4,#fff)}
.impact-surface .pk-project-subfolder-summary:hover{background:linear-gradient(90deg,#fff9dd,#fff)}
.projectkenner-danger-zone{
  margin-top:18px;
  padding:18px 20px;
  border-color:#ead4d1;
  background:linear-gradient(135deg,#fffafa,#fff 68%);
  box-shadow:0 8px 22px rgba(88,46,42,.035);
}
.projectkenner-danger-zone h2{margin:2px 0 4px;font-size:16px}
.projectkenner-danger-zone p:not(.eyebrow){margin:0;color:#7a6c69;font-size:10.5px;line-height:1.5}
.projectkenner-deleted-feedback{margin-bottom:14px}
@media(max-width:640px){
  .pk-project-subfolder>summary.pk-project-subfolder-summary{grid-template-columns:30px minmax(0,1fr) 28px;padding:9px 10px}
  .pk-project-subfolder-copy strong,.pk-project-subfolder-copy small{white-space:normal}
}

/* AQ/F3-RC — restore risk-control review as a first-class dossier action */
.project-dossier-item.type-risk .project-dossier-risk-control-review{
  margin:12px 0 4px;
  border-color:#e4cfbf;
  background:linear-gradient(135deg,#fffaf6 0%,#ffffff 64%,#f8fcfd 100%);
  box-shadow:0 5px 14px rgba(76,57,43,.05);
}
.project-dossier-item.type-risk .project-dossier-risk-control-review>summary{
  min-height:48px;
  padding:10px 12px;
}
.project-dossier-item.type-risk .project-dossier-risk-control-summary-copy strong{
  font-size:11.5px;
  color:#284c5a;
}
.project-dossier-item.type-risk .project-dossier-risk-control-summary-copy small{
  font-size:9.5px;
  color:#687e87;
}
.project-dossier-item.type-risk .project-dossier-risk-control-body{
  padding:11px 12px 12px;
}
.project-dossier-item.type-risk .project-dossier-risk-control-no-suggestion{
  margin:0 0 8px;
  font-size:9.5px;
  line-height:1.45;
}
.project-dossier-item.type-risk .project-dossier-risk-control-alternatives{
  margin-top:4px;
}
.project-dossier-item.type-risk .project-dossier-risk-control-review:not(.is-confirmed) .project-dossier-risk-control-alternatives{
  border-color:#d8e5e9;
  background:#fff;
}

/* A8-C7-P-S1b — compact human review queue for confirmed semantic mismatches. */
.project-dossier-classification-queue{margin:0 0 14px;border:1px solid #d6e2ea;border-radius:16px;background:#fff;overflow:hidden}.project-dossier-classification-queue>summary{cursor:pointer;list-style:none;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#173f61}.project-dossier-classification-queue>summary::-webkit-details-marker{display:none}.project-dossier-classification-queue>summary span{min-width:0}.project-dossier-classification-queue>summary strong,.project-dossier-classification-queue>summary small{display:block}.project-dossier-classification-queue>summary strong{font-size:11px}.project-dossier-classification-queue>summary small{margin-top:2px;color:#6e818b;font-size:8px;font-weight:500}.project-dossier-classification-queue>summary em{flex:0 0 auto;padding:4px 7px;border-radius:999px;background:#fff4d8;color:#7c5b09;font-size:8px;font-style:normal;font-weight:850}.project-dossier-classification-queue-list{padding:0 14px 13px}.project-dossier-classification-queue-list>p{margin:0 0 8px;color:#667b84;font-size:9px;line-height:1.5}.project-dossier-classification-queue-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid #e8eef2}.project-dossier-classification-queue-row>div:first-child{min-width:0}.project-dossier-classification-queue-row strong{display:block;color:#173f61;font-size:10px}.project-dossier-classification-queue-row small{display:block;margin-top:2px;color:#788b92;font-size:8px}.project-dossier-classification-queue-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.project-dossier-classification-queue-actions form{margin:0}.project-dossier-classification-queue-actions a{font-size:9px;font-weight:800;color:#2f6f82;text-decoration:none}.project-dossier-classification-queue-actions button{border:1px solid #bfd1db;border-radius:9px;background:#f7fbfc;color:#24576a;padding:6px 8px;font-size:8px;font-weight:800;cursor:pointer}.project-dossier-classification-queue-actions button:hover{background:#edf6f8}@media(max-width:760px){.project-dossier-classification-queue-row{align-items:flex-start;flex-direction:column;gap:7px}.project-dossier-classification-queue-actions{width:100%;justify-content:space-between}}
