:root {
    --ink: #17212b;
    --muted: #6b7a88;
    --line: #e2e9ef;
    --paper: #ffffff;
    --canvas: #f4f7fa;
    --sidebar: #17252e;
    --sidebar-soft: #223640;
    --teal: #176b87;
    --teal-dark: #0f5268;
    --teal-soft: #e5f2f5;
    --green: #16805b;
    --green-soft: #e5f6ee;
    --amber: #b77a16;
    --amber-soft: #fff5dc;
    --red: #bd4a4a;
    --shadow: 0 12px 35px rgba(28, 48, 64, .07);
    font-family: "Avenir Next", "Helvetica Neue", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
}

/* Shared AI control surface used by every phase agent. */
.agent-control-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 14px 0 18px;
    padding: 14px 16px;
    border: 1px solid #c9e3e7;
    border-radius: 14px;
    background: var(--teal-soft, #eff9fb);
    color: var(--teal-dark, #165c72);
}
.agent-control-copy { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.agent-control-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #d8edf1; color: #18728d; }
.agent-control-icon .icon-svg { width: 19px; height: 19px; }
.agent-control-text { min-width: 0; }
.agent-control-text strong { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 800; }
.agent-control-text p { margin: 0; color: #537186; font-size: 12px; line-height: 1.45; }
.agent-control-state-details { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.agent-control-state-details span { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border: 1px solid #bfe4d0; border-radius: 999px; color: #1d674c; background: var(--green-soft, #eef9f2); font-size: 12px; font-weight: 750; line-height: 1.3; }
.agent-control-state-details span[data-agent-ai-state] { border-color: #efdcae; color: #8b651a; background: var(--amber-soft, #fff8e9); }
.agent-control-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.agent-control-actions .button { min-height: 36px; padding: 0 14px; font-size: 12px; }
.agent-control-progress { width: min(360px, 100%); height: 5px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #cde4e9; }
.agent-control-progress span { display: block; width: 100%; height: 100%; border-radius: inherit; background: #197890; transform: scaleX(var(--agent-progress, 0)); transform-origin: left center; transition: transform .25s ease; }
.agent-control-banner.is-running { border-color: #9bcfd8; }
.agent-control-banner.is-error { border-color: #efcaca; background: #fff5f5; color: #994040; }
.agent-control-banner.is-error .agent-control-text p { color: #994040; }
.agent-control-banner.is-complete { border-color: #bfe4d0; background: var(--green-soft, #eef9f2); color: #1d674c; }
.agent-control-banner.is-partial { border-color: #efdcae; background: var(--amber-soft, #fff8e9); color: #8b651a; }
@media (max-width: 700px) {
    .agent-control-banner { align-items: stretch; flex-direction: column; }
    .agent-control-actions { justify-content: stretch; }
    .agent-control-actions .button { flex: 1 1 180px; }
}

* { box-sizing: border-box; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon-svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.icon-inline { display: inline-block; width: 15px; height: 15px; flex: 0 0 auto; vertical-align: -3px; }
body { margin: 0; background: var(--canvas); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
button:disabled, .button:disabled { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }

.app-shell { --sidebar-width: 260px; min-height: 100vh; display: flex; }
.app-shell.sidebar-collapsed { --sidebar-width: 76px; }
.sidebar { position: sticky; z-index: 20; top: 0; flex: 0 0 var(--sidebar-width); width: auto; height: 100vh; min-height: 100vh; display: flex; flex-direction: column; padding: 22px 16px 20px; overflow: visible; color: #edf6f8; background: var(--sidebar); transition: flex-basis .22s cubic-bezier(.22, .61, .36, 1); }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 30px; }
.sidebar-toggle { position: static; display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #38535d; border-radius: 12px; color: #b8d4d9; background: transparent; }
.sidebar-toggle:hover { color: white; border-color: #81bdc6; background: var(--sidebar-soft); }
.toggle-icon { width: 18px; height: 18px; transition: transform .22s cubic-bezier(.22, .61, .36, 1); }
.sidebar-collapsed .toggle-icon { transform: scaleX(-1); }
.brand { display: flex; min-width: 0; flex: 1; align-items: center; gap: 12px; padding: 0 0 0 9px; }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; color: #a7dce3; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-word-light { font-weight: 400; }
.auth-brand .brand-mark { width: 44px; height: 44px; color: var(--teal); }
.brand strong, .brand small, .user-card strong, .user-card small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .01em; }
.brand small { margin-top: 3px; color: #93aeb7; font-size: 12px; }
.nav-label { padding: 0 12px 9px; color: #79939d; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; }
.main-nav { display: grid; gap: 5px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; color: #b9cbd0; font-size: 14px; transition: background .16s, color .16s, transform .16s; }
.nav-link:hover { color: white; background: var(--sidebar-soft); transform: translateX(2px); }
.nav-link.is-active { color: white; background: #2b4d5b; box-shadow: inset 3px 0 0 #a7dce3; }
.nav-icon { display: grid; place-items: center; width: 18px; color: #9bc9d1; text-align: center; }
.nav-icon .icon-svg { width: 18px; height: 18px; }
.sidebar-bottom { margin-top: auto; }
.user-card { display: flex; gap: 9px; align-items: center; padding: 14px 8px 0; border-top: 1px solid #2e4650; font-size: 12px; }
.user-card strong { color: #ecf5f6; font-size: 12px; }
.user-card small { margin-top: 3px; color: #88a1a9; }
.logout-icon { width: 18px; height: 18px; }

.main-area { min-width: 0; flex: 1; }
.sidebar-collapsed .sidebar-top { flex-direction: column; gap: 14px; margin-bottom: 27px; }
.sidebar-collapsed .sidebar-toggle { order: -1; }
.sidebar-collapsed .brand { justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar-toggle, .sidebar-collapsed .brand-mark, .sidebar-collapsed .avatar-small { width: 44px; height: 44px; border-radius: 12px; }
.sidebar-collapsed .brand > span:last-child, .sidebar-collapsed .nav-label, .sidebar-collapsed .nav-link-label, .sidebar-collapsed .user-card-copy, .sidebar-collapsed .user-logout-label { display: none; }
.sidebar-collapsed .main-nav { display: grid; gap: 8px; }
.sidebar-collapsed .nav-link { justify-content: center; width: 44px; height: 44px; padding: 0; margin: 0 auto; border-radius: 12px; }
.sidebar-collapsed .nav-link:hover { transform: none; }
.sidebar-collapsed .nav-link.is-active { background: #2b4d5b; box-shadow: inset 0 0 0 1px rgba(167,220,227,.3); }
.sidebar-collapsed .nav-icon { width: 20px; }
.sidebar-collapsed .sidebar-bottom { padding-top: 18px; }
.sidebar-collapsed .user-card { display: grid; justify-items: center; gap: 11px; padding: 18px 0 0; border-top: 1px solid #2e4650; }
.sidebar-collapsed .logout-form { margin: 0; }
.sidebar-collapsed .user-logout { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #38535d; border-radius: 12px; }
.sidebar-collapsed .user-logout:hover { border-color: #81bdc6; background: var(--sidebar-soft); }
.sidebar-collapsed .user-logout .logout-icon { display: block; }
.sidebar-collapsed [data-tooltip] { position: relative; }
.sidebar-collapsed [data-tooltip]::after { position: absolute; z-index: 30; top: 50%; left: calc(100% + 10px); padding: 7px 9px; border: 1px solid #38535d; border-radius: 8px; color: #edf6f8; background: #223640; box-shadow: 0 8px 20px rgba(0,0,0,.16); content: attr(data-tooltip); font-size: 12px; font-weight: 700; line-height: 1; opacity: 0; pointer-events: none; transform: translateY(-50%) translateX(-4px); transition: opacity .14s ease, transform .14s ease; white-space: nowrap; }
.sidebar-collapsed [data-tooltip]:hover::after, .sidebar-collapsed [data-tooltip]:focus-visible::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.user-logout .logout-icon { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 clamp(20px, 4vw, 52px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.breadcrumb-muted, .breadcrumb-separator { color: #98a5ae; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-profile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--teal); font-weight: 700; font-size: 13px; }
.topbar-profile .icon-svg, .avatar-small .icon-svg { width: 20px; height: 20px; }
.mobile-menu { display: none; border: 0; color: var(--ink); background: none; font-size: 21px; }
.mobile-menu .icon-svg { width: 21px; height: 21px; }
.page-content {
    width: min(1680px, calc(100% - clamp(32px, 4vw, 72px)));
    margin: 0 auto;
    padding: 42px 0 70px;
}
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.eyebrow, .section-kicker { margin: 0 0 7px; color: var(--teal); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
h1 { margin: 0; color: #14232c; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; letter-spacing: -.035em; }
h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
h3 { margin: 0; font-size: 16px; }
.lead { max-width: 650px; margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 750; transition: transform .16s, box-shadow .16s, background .16s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--teal); box-shadow: 0 7px 16px rgba(23,107,135,.18); }
.button-primary:hover { background: var(--teal-dark); box-shadow: 0 9px 20px rgba(23,107,135,.24); }
.button-primary:disabled { color: #6d8e98; background: #dcecef; box-shadow: none; opacity: 1; }
.button[aria-busy="true"] { cursor: wait; opacity: .78; transform: none; }
.button[aria-busy="true"]:hover { transform: none; }
.button-ghost { border-color: var(--line); color: #526573; background: white; }
.button-ghost:hover { border-color: #b9cad3; background: #fbfdfe; }
.button-plus { font-size: 18px; line-height: 0; font-weight: 400; }
.text-link, .card-link { color: var(--teal); font-size: 12px; font-weight: 750; }
.text-link:hover, .card-link:hover { color: var(--teal-dark); }

.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 38px; }
.metric-card { min-height: 126px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.metric-card-accent { border-color: #c8e5e8; background: linear-gradient(135deg, #f3fcfc, white); }
.metric-card-warm { border-color: #eadfca; background: linear-gradient(135deg, #fffaf1, white); }
.metric-label, .metric-detail { display: block; color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin: 9px 0 5px; color: #142a35; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.metric-card .metric-word { font-size: 20px; padding-top: 5px; }
.section-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-toolbar h2 { margin-bottom: 4px; }
.section-toolbar p { margin: 0; font-size: 13px; }
.result-count { padding: 6px 10px; border-radius: 99px; color: #6c7e8a; background: #eaf0f3; font-size: 12px; font-weight: 700; }

.company-grid, .project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.company-card, .project-card { position: relative; display: flex; flex-direction: column; min-height: 244px; padding: 0; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--paper); box-shadow: 0 5px 18px rgba(28,48,64,.035); transition: transform .18s, box-shadow .18s, border .18s; }
.company-card:hover, .project-card:hover { border-color: #b9d9df; box-shadow: 0 14px 30px rgba(28,48,64,.09); transform: translateY(-3px); }
.company-card-link, .project-card-link { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 20px; color: inherit; }
.company-card-link:hover, .project-card-link:hover { color: inherit; }
.company-card-link .company-card-top, .project-card-link .project-card-top { padding-right: 31px; }
.card-delete-form { position: absolute; z-index: 2; top: 14px; right: 14px; margin: 0; }
.card-delete-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 9px; color: #a5b5be; background: transparent; transition: color .16s, border-color .16s, background .16s; }
.card-delete-button .icon-svg { width: 16px; height: 16px; }
.card-delete-button:hover, .card-delete-button:focus-visible { border-color: #efcaca; color: var(--red); background: #fff7f7; outline: none; }
.company-card-top, .project-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 21px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--teal); background: var(--teal-soft); font-weight: 800; }
.avatar-small { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.avatar-large { width: 70px; height: 70px; margin-bottom: 15px; border-radius: 22px; font-size: 26px; }
.avatar-company { width: 44px; height: 44px; border-radius: 13px; font-size: 14px; }
.avatar-heading { width: 58px; height: 58px; border-radius: 17px; font-size: 19px; }
.arrow-link { display: grid; place-items: center; width: 24px; height: 24px; color: #a5b5be; }
.arrow-link .icon-svg { width: 18px; height: 18px; }
.company-card h3, .project-card h3 { margin-bottom: 7px; font-size: 17px; }
.company-sector, .project-card p { min-height: 38px; margin: 0; font-size: 13px; line-height: 1.45; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.progress-label strong { color: var(--ink); }
.progress-track { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #e7eef1; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4fb4bc, var(--teal)); }
.company-card-footer, .project-card-footer { display: flex; justify-content: space-between; gap: 8px; padding-top: 17px; margin-top: 16px; border-top: 1px solid #edf1f3; color: #82919b; font-size: 12px; }
.project-card-footer-end { justify-content: flex-end; }
.company-card-new, .project-card-new { justify-content: center; align-items: flex-start; padding: 20px; border-style: dashed; color: var(--muted); background: rgba(255,255,255,.5); }
.new-company-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 15px; border-radius: 12px; color: var(--teal); background: var(--teal-soft); font-size: 24px; font-weight: 300; }
.new-company-icon .icon-svg { width: 20px; height: 20px; }
.company-card-new h3, .project-card-new h3 { color: var(--ink); }

.panel { padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); box-shadow: var(--shadow); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 19px; margin-bottom: 21px; border-bottom: 1px solid #edf1f3; }
.panel-header h2 { margin-top: 2px; }
.required-note { color: var(--muted); font-size: 12px; }
.icon-bubble { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; color: white; background: var(--teal); font-size: 18px; }
.icon-bubble-soft { color: var(--teal); background: var(--teal-soft); }
.icon-bubble .icon-svg { width: 18px; height: 18px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 18px; align-items: stretch; }
.form-page-grid, .detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 18px; align-items: start; }
.profile-grid > .panel { min-width: 0; }
.profile-grid > .panel-form, .profile-grid > .security-panel { display: flex; flex-direction: column; }
.profile-grid > .panel-form > form, .profile-grid > .security-panel > form { display: flex; flex: 1; flex-direction: column; }
.profile-grid > .panel-form .form-actions, .profile-grid > .security-panel .form-actions { margin-top: auto; }
.security-panel h2 { margin-top: 1px; }
.security-panel { grid-column: auto; }
.security-panel .panel-header p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; }
.profile-grid .security-form .form-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-grid .security-form .field:last-child { grid-column: 1 / -1; }
.security-form .form-actions { margin-top: 0; }
.mini-panel h3 { margin: 7px 0 5px; font-size: 22px; }
.mini-panel p { margin: 0 0 15px; font-size: 12px; line-height: 1.5; }
.form-grid { display: grid; gap: 16px; }
.form-grid-two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid-three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.field-full { grid-column: 1 / -1; }
.field { min-width: 0; margin-bottom: 17px; }
.field label { display: block; margin-bottom: 7px; color: #415461; font-size: 12px; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #d3dfe5; border-radius: 9px; outline: 0; color: var(--ink); background: #fbfdfe; transition: border .16s, box-shadow .16s, background .16s; }
.field textarea { min-height: 115px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #75bdc7; background: white; box-shadow: 0 0 0 4px rgba(117,189,199,.16); }
.field textarea[data-auto-grow], textarea[data-auto-grow] { min-height: 78px; overflow-y: hidden; resize: none; }
.field-error, .form-alert { margin-top: 6px; color: var(--red); font-size: 12px; }
.form-alert { padding: 10px 12px; margin-bottom: 15px; border-radius: 8px; background: #fff2f2; }
.helper { margin-top: 5px; color: var(--muted); font-size: 12px; }
.project-preliminary-input { display: grid; gap: 18px; padding: 17px; margin-bottom: 23px; border: 1px solid #c9e3e7; border-radius: 13px; background: linear-gradient(135deg, #f1fbfc, #fbfdfe); }
.project-preliminary-copy h3 { margin-top: 5px; color: var(--ink); font-size: 17px; }
.project-preliminary-copy p { max-width: 620px; margin: 7px 0 0; font-size: 12px; line-height: 1.55; }
.project-organigram-upload { display: grid; gap: 8px; }
.project-organigram-upload input[type="file"] { width: 100%; min-width: 0; padding: 10px; border: 1px dashed #9fcbd1; border-radius: 9px; color: var(--muted); background: white; font-size: 12px; }
.project-organigram-upload > .small { line-height: 1.4; }
.project-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.project-form-fields .field-full { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 12px; padding-top: 7px; margin-top: 8px; border-top: 1px solid #edf1f3; }
.form-actions > span:first-child { flex: 1; }
.side-info { padding: 26px; }
.side-info h3 { margin: 20px 0 7px; font-size: 18px; }
.side-info > p { margin: 0 0 24px; font-size: 13px; line-height: 1.6; }
.info-list { display: grid; gap: 15px; padding-top: 17px; border-top: 1px solid #edf1f3; }
.info-list > div { display: flex; gap: 11px; align-items: center; }
.info-list span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: var(--teal); background: var(--teal-soft); font-size: 12px; font-weight: 800; }
.info-list p { margin: 0; color: #506574; font-size: 12px; font-weight: 700; }
.info-list small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; }
.info-list .is-muted { opacity: .55; }

.company-heading { display: flex; align-items: center; gap: 15px; }
.company-heading .lead { margin-top: 7px; }
.company-logo { object-fit: contain; border: 1px solid var(--line); background: white; }
.company-logo-heading { width: 58px; height: 58px; padding: 7px; border-radius: 17px; }
.current-logo { display: flex; align-items: center; gap: 12px; padding: 11px; margin-bottom: 17px; border: 1px solid #d8ebed; border-radius: 10px; color: var(--muted); background: #f4fbfc; font-size: 12px; }
.current-logo img { width: 48px; height: 48px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; object-fit: contain; background: white; }
.subnav { display: flex; gap: 4px; padding: 5px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 10px; background: #eaf0f3; }
.subnav-link { padding: 8px 13px; border-radius: 7px; color: #657782; font-size: 12px; font-weight: 700; }
.subnav-link:hover { color: var(--ink); }
.subnav-link.is-active { color: var(--ink); background: white; box-shadow: 0 2px 6px rgba(28,48,64,.07); }
.detail-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
.project-list { display: grid; }
.project-row { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid #edf1f3; }
.project-row:last-child { border-bottom: 0; }
.project-row:hover .project-main strong { color: var(--teal); }
.project-mark { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; color: var(--teal); background: var(--teal-soft); font-weight: 800; font-size: 13px; }
.project-mark-large { width: 54px; height: 54px; border-radius: 16px; font-size: 20px; }
.project-main { min-width: 0; flex: 1; }
.project-main strong { display: block; margin-bottom: 4px; font-size: 13px; transition: color .16s; }
.project-main small { display: block; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.project-side { display: grid; justify-items: end; gap: 8px; flex: 0 0 auto; }
.project-side > strong { color: var(--muted); font-size: 12px; }
.status-pill, .coming-soon { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.status-in_progress { color: var(--teal); background: var(--teal-soft); }
.status-completed { color: var(--green); background: var(--green-soft); }
.status-draft, .status-paused { color: var(--amber); background: var(--amber-soft); }
.data-list { display: grid; gap: 14px; margin: 0; }
.data-list div { padding-bottom: 13px; border-bottom: 1px solid #edf1f3; }
.data-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.data-list dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.data-list dd { margin: 0; color: #314b59; font-size: 13px; line-height: 1.5; }
.inline-empty { display: flex; align-items: center; justify-content: flex-start; gap: 13px; padding: 18px 4px 2px; margin-top: 4px; border-top: 1px solid #edf1f3; color: var(--muted); font-size: 13px; }
.inline-empty > div:last-child { display: grid; gap: 4px; }
.inline-empty strong { color: #536976; font-size: 12px; }
.company-documents-panel { margin: 0 0 30px; overflow: hidden; }
.company-analysis-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 18px 17px 61px; margin-bottom: 14px; border: 1px solid #c9e3e7; border-radius: 12px; background: linear-gradient(135deg, #effafc, #fbfdfe); box-shadow: 0 5px 15px rgba(23,107,135,.05); }
.company-analysis-icon { position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--teal); background: #d8eff1; font-size: 15px; }
.company-analysis-copy { min-width: 0; }
.company-analysis-copy h3 { margin: 3px 0 5px; font-size: 14px; }
.company-analysis-copy p { max-width: 690px; margin: 0; font-size: 12px; line-height: 1.45; }
.company-analysis-progress { width: min(100%, 360px); height: 5px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #dbecef; }
.company-analysis-progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--teal); transition: width .2s ease; }
.company-draft-notice { display: grid; gap: 5px; padding: 15px 0; border-bottom: 1px solid #edf1f3; }
.company-draft-notice form { margin-top: 5px; }
.analysis-result-line { padding: 11px 13px; margin-bottom: 14px; border-radius: 9px; color: #536976; background: #f7fafb; font-size: 12px; }
.company-proposals { display: grid; gap: 10px; padding: 14px; margin-bottom: 18px; border: 1px solid #efdcae; border-radius: 11px; background: #fffaf0; }
.company-proposals .panel-header { margin-bottom: 0; }
.company-proposal { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px; border: 1px solid #f0e3c5; border-radius: 9px; background: white; }
.company-proposal strong, .company-proposal p, .company-proposal span, .company-proposal small { display: block; }
.company-proposal p { margin: 5px 0; color: var(--ink); font-size: 13px; font-weight: 750; }
.proposal-actions form { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.company-document-upload { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 15px; margin-bottom: 18px; border: 1px dashed #b9d5dc; border-radius: 11px; background: #f4fbfc; }
.company-document-upload input[type="file"] { min-width: 0; flex: 1; color: var(--muted); font-size: 12px; }
.document-upload-copy { display: grid; gap: 4px; min-width: 230px; }
.document-upload-input { min-width: 0; flex: 1; }
.document-upload-input input[type="file"] { width: 100%; }
.company-document-table-wrap { overflow-x: auto; }
.company-document-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.company-document-table th { padding: 10px 12px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.company-document-table td { padding: 13px 12px; color: #536976; border-bottom: 1px solid #edf1f3; white-space: nowrap; }
.company-document-table tr:last-child td { border-bottom: 0; }
.company-document-table td:first-child { color: var(--ink); }
.document-actions { display: flex; align-items: center; gap: 12px; }
.table-open { color: var(--teal); font-size: 12px; font-weight: 750; }
.table-open:hover { text-decoration: underline; }
.table-delete { padding: 0; border: 0; color: var(--red); background: transparent; font-size: 12px; font-weight: 750; }
.table-delete:hover { text-decoration: underline; }
.company-form { display: grid; gap: 18px; }
.company-form .form-page-grid { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr); column-gap: 28px; row-gap: 28px; }
.company-form .panel-form { min-width: 0; }
.company-form-sidebar { display: grid; gap: 18px; min-width: 0; }
.company-initial-documents p { margin: 0 0 14px; font-size: 12px; line-height: 1.5; }
.optional-note { color: var(--muted); font-size: 12px; }
.initial-documents-input input[type="file"] { width: 100%; min-width: 0; padding: 10px; border: 1px dashed #b9d5dc; border-radius: 9px; color: var(--muted); background: #f7fbfc; font-size: 12px; }
.company-initial-documents .helper { display: block; margin-top: 8px; line-height: 1.4; }
.company-form-sections { display: grid; gap: 26px; }
.company-form-section { padding-top: 2px; }
.company-form-section + .company-form-section { padding-top: 25px; border-top: 1px solid #edf1f3; }
.company-form-section-header { margin-bottom: 14px; }
.company-form-section-header h3 { margin-top: 4px; font-size: 15px; }
.company-form-section-header p { margin: 5px 0 0; font-size: 12px; }
.company-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.company-field-grid .field-full { grid-column: 1 / -1; }
.company-profile-summary, .company-logo-panel { min-width: 0; }
.profile-usage-list { display: grid; gap: 14px; }
.profile-usage-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; padding-top: 14px; border-top: 1px solid #edf1f3; }
.profile-usage-item:first-child { padding-top: 0; border-top: 0; }
.profile-usage-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--teal); background: var(--teal-soft); font-size: 12px; font-weight: 850; }
.profile-usage-item strong { display: block; color: var(--ink); font-size: 12px; }
.profile-usage-item p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.logo-upload-card { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: center; }
.logo-preview { display: grid; place-items: center; width: 70px; height: 70px; padding: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fbfdfe; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-preview-empty span { color: var(--muted); font-size: 12px; font-weight: 800; }
.logo-current-copy { display: grid; gap: 4px; min-width: 0; }
.logo-current-copy strong { color: var(--ink); font-size: 12px; }
.logo-upload-field { grid-column: 1 / -1; padding-top: 15px; margin: 4px 0 0; border-top: 1px solid #edf1f3; }
.logo-file-input input[type="file"] { width: 100%; min-width: 0; padding: 9px; border: 1px dashed #b9d5dc; border-radius: 9px; color: var(--muted); background: #fbfdfe; font-size: 12px; }
.company-form-actions { justify-content: flex-end; gap: 12px; margin-top: 0; }
.company-form-actions .button:first-child { margin-right: auto; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 15px 17px; margin-top: 18px; border: 1px solid #cce6e9; border-radius: 12px; background: #f0fbfc; }
.notice-muted { border-color: var(--line); background: #f9fbfc; }
.notice-icon { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; color: var(--teal); background: #d4eef0; font-size: 12px; font-weight: 800; }
.notice-icon .icon-svg { width: 14px; height: 14px; }
.notice strong { color: #225364; font-size: 12px; }
.notice p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.empty-state { padding: 60px 25px; border: 1px dashed #bdd2d9; border-radius: 15px; text-align: center; background: rgba(255,255,255,.55); }
.empty-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 15px; color: var(--teal); background: var(--teal-soft); font-size: 22px; }
.empty-icon .icon-svg { width: 22px; height: 22px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.project-detail-header { display: flex; gap: 15px; align-items: center; padding-bottom: 21px; border-bottom: 1px solid #edf1f3; }
.project-detail-header h2 { margin-top: 9px; }
.project-detail-header p { margin: 5px 0 0; font-size: 12px; }
.big-progress { padding: 22px 0; border-bottom: 1px solid #edf1f3; }
.big-progress .progress-track { height: 9px; }
.coming-soon { color: var(--muted); background: #edf1f3; }
.iso-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.iso-choice { display: flex; align-items: flex-start; gap: 9px; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: #526573; background: #fbfdfe; cursor: pointer; }
.iso-choice:has(input:checked) { color: var(--teal-dark); background: var(--teal-soft); }
.iso-choice input { margin-top: 3px; accent-color: var(--teal); }
.iso-choice strong, .iso-choice small { display: block; }
.iso-choice strong { font-size: 12px; }
.iso-choice small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.iso-pill-row { display: flex; flex-wrap: wrap; gap: 5px; }
.iso-pill { display: inline-flex; padding: 4px 7px; border: 1px solid #c9e3e7; border-radius: 99px; color: var(--teal); background: var(--teal-soft); font-size: 12px; font-weight: 750; }
.iso-pill-row-large { padding: 17px 0; border-bottom: 1px solid #edf1f3; }
.iso-pill-row-large .iso-pill { padding: 6px 9px; font-size: 12px; }
.phase-panel { margin-top: 18px; }
.phase-panel-primary { margin-top: 0; }
.project-preliminary-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 21px; margin-bottom: 18px; border-color: #c9e3e7; background: linear-gradient(135deg, #f1fbfc, #fff); }
.project-preliminary-card.is-missing { border-color: #efdcae; background: #fffaf0; }
.project-preliminary-card-copy h2 { margin-top: 5px; font-size: 18px; }
.project-preliminary-card-copy p { max-width: 650px; margin: 6px 0 0; font-size: 12px; line-height: 1.45; }
.project-preliminary-card-status { display: grid; justify-items: end; gap: 7px; min-width: 190px; text-align: right; }
.project-preliminary-card-status .small { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-preliminary-card-status .button { white-space: nowrap; }
.project-summary-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; margin-top: 18px; align-items: start; }
.project-summary-grid .panel { min-width: 0; }
.project-next-step { align-self: stretch; }
.phase-roadmap { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.phase-card { min-height: 145px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fbfdfe; }
.phase-card.phase-available, .phase-card.phase-in_progress, .phase-card.phase-completed { border-color: #9bd1d5; background: #f2fbfc; }
.phase-card.phase-available:hover, .phase-card.phase-in_progress:hover { transform: translateY(-2px); box-shadow: 0 7px 17px rgba(23,107,135,.11); }
.phase-card.phase-prerequisite-blocked { cursor: not-allowed; }
.phase-card.phase-prerequisite-blocked:hover { transform: none; box-shadow: none; }
.phase-card.phase-locked, .phase-card.phase11-awaiting { border-color: #dce4e7; background: #f1f3f4; color: #53616c; cursor: not-allowed; }
.phase-card.phase11-awaiting[href] { cursor: pointer; }
.phase-card.phase-locked .phase-number, .phase-card.phase-locked .phase-state, .phase-card.phase11-awaiting .phase-number, .phase-card.phase11-awaiting .phase-state { color: #71818a; }
.phase-card.phase-locked .phase-progress span, .phase-card.phase11-awaiting .phase-progress span { background: #cfd8dc; }
.phase-card.phase-excluded { opacity: .58; background: #f1f3f4; }
.phase-card-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 18px; }
.phase-number { color: var(--teal); font-size: 12px; font-weight: 850; }
.phase-state { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.phase-card h3 { min-height: 37px; font-size: 12px; line-height: 1.35; }
.phase-progress { height: 4px; overflow: hidden; margin: 11px 0 9px; border-radius: 99px; background: #e4ebee; }
.phase-progress span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.phase-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.phase-status-badge { display: inline-flex; padding: 8px 11px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.phase-available, .phase-status-badge.phase-available { color: var(--teal); background: var(--teal-soft); }
.phase-status-badge.phase-in_progress { color: var(--amber); background: var(--amber-soft); }
.phase-status-badge.phase-completed { color: var(--green); background: var(--green-soft); }
.phase-context-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.phase-context-bar strong { font-size: 13px; }
.phase-context-actions { display: flex; align-items: center; gap: 18px; }
.phase-list-link { color: var(--teal); font-size: 12px; font-weight: 800; white-space: nowrap; }
.phase-flow-modern { display: grid; grid-template-columns: repeat(10, minmax(70px, 1fr)); gap: 6px; padding: 8px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 12px; background: #eaf0f3; overflow-x: auto; }
.phase-flow-item { min-width: 72px; padding: 9px 6px; border-radius: 8px; text-align: center; color: var(--muted); background: rgba(255,255,255,.65); }
.phase-flow-item span, .phase-flow-item small { display: block; }
.phase-flow-item span { margin-bottom: 4px; font-size: 12px; font-weight: 850; }
.phase-flow-item small { font-size: 12px; line-height: 1.25; }
.phase-flow-item.is-current { color: white; background: var(--teal); }
.phase-flow-item.is-locked { opacity: .55; }
.phase-flow-item.is-excluded { opacity: .45; text-decoration: line-through; }
.phase-body { max-width: none; margin: 0 auto; }
.phase-stepper { display: flex; gap: 8px; padding: 6px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: #eaf0f3; }
.phase-step { flex: 1; padding: 12px 16px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; text-align: left; }
.phase-step.is-visited { cursor: pointer; }
.phase-step.is-future { cursor: not-allowed; opacity: .62; }
.phase-step[aria-disabled="true"] { color: #53636b; background: #e5ecef; box-shadow: inset 0 0 0 1px #cbd6da; cursor: not-allowed; opacity: 1; }
.phase-step span { margin-right: 6px; font-weight: 850; }
.phase-step.is-current { color: white; background: var(--teal); }
.phase-step:focus-visible, .phase-question-navigation .button:focus-visible { outline: 3px solid rgba(22,115,135,.28); outline-offset: 2px; }
.phase-question-navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 18px 0 0; margin-top: 18px; border-top: 1px solid #edf1f3; }
.phase-question-navigation [data-phase-next] { justify-self: end; }
.phase-navigation-message { padding: 11px 14px; margin: 14px 0 0; border: 1px solid #efdcae; border-radius: 10px; color: #795b18; background: var(--amber-soft); font-size: 12px; line-height: 1.45; }
.phase-question-progress { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 150px; color: var(--muted); font-size: 12px; }
.phase-question-progress strong { color: var(--teal); font-size: 14px; }
.phase-question-progress-label { margin-right: 2px; }
.phase-question-dots { display: inline-flex; gap: 5px; margin-left: 8px; }
.phase-question-dots i { width: 7px; height: 7px; border-radius: 99px; background: #cad8dd; }
.phase-question-dots i.is-current { width: 20px; background: var(--teal); }
.phase-question-dots i.is-visited:not(.is-current) { background: #86cbd0; }
.phase-bottom-navigation { display: flex; justify-content: space-between; gap: 12px; max-width: none; margin: 18px auto 0; }
.phase-question-card { max-width: none; margin: 0 auto; padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.phase-question-meta { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 15px; margin-bottom: 23px; border-bottom: 1px solid #edf1f3; color: var(--muted); font-size: 12px; font-weight: 700; }
.phase-question-meta span:first-child { color: var(--teal); }
.phase-question { min-height: 310px; }
.phase-question.is-hidden { display: none; }
.question-number { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 11px; color: var(--teal); background: var(--teal-soft); font-size: 12px; font-weight: 850; }
.phase-question h2 { font-size: 23px; }
.phase-question > p { max-width: 650px; margin: 10px 0 21px; line-height: 1.55; }
.phase1-editor-list, .phase1-competency-groups { display: grid; gap: 10px; margin: 18px 0; }
.phase1-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfe; }
.phase1-editor-row input, .phase1-editor-row select { width: 100%; min-width: 0; padding: 10px; border: 1px solid #dbe6ea; border-radius: 8px; color: var(--ink); background: white; }
.phase1-competency-group { display: grid; gap: 9px; }
.phase1-competency-group h3 { margin: 8px 0 0; color: var(--teal-dark); font-size: 14px; }
.phase1-competency-row { grid-template-columns: minmax(0, 1fr) 120px auto; }
.phase1-agent-status { padding: 11px 13px; margin: 14px 0; border: 1px solid #c9e3e7; border-radius: 9px; color: var(--teal-dark); background: var(--teal-soft); font-size: 12px; }
.phase1-agent-status-success { border-color: #bfe4d0; color: #1d674c; background: var(--green-soft); }
.phase1-agent-status-warning { border-color: #efdcae; color: #8b651a; background: var(--amber-soft); }
.phase1-matrix-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; }
.phase1-matrix { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 12px; }
.phase1-matrix th, .phase1-matrix td { padding: 9px 8px; border-bottom: 1px solid #edf1f3; text-align: center; }
.phase1-matrix thead th { min-width: 72px; color: var(--teal-dark); background: #f4fbfc; font-weight: 800; vertical-align: bottom; }
.phase1-matrix thead th:first-child, .phase1-matrix tbody th { min-width: 260px; text-align: left; }
.phase1-matrix tbody th { color: var(--ink); font-weight: 600; }
.phase1-matrix input { width: 17px; height: 17px; accent-color: var(--teal); }
.proposal-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin-bottom: 18px; border: 1px solid #d5e9eb; border-radius: 10px; background: #f4fbfc; }
.proposal-banner strong { color: var(--teal-dark); font-size: 12px; }
.proposal-banner p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.process-upload { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; border: 2px dashed #b9d5db; border-radius: 13px; text-align: center; background: #fbfdfe; }
.process-upload strong { color: #3e5966; font-size: 14px; }
.process-upload input { max-width: 300px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.upload-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; color: var(--teal); background: var(--teal-soft); }
.upload-icon .icon-svg { width: 21px; height: 21px; }
.current-file { padding: 7px 10px; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 12px; }
.compact-upload { padding: 24px 20px; margin-top: 14px; }
.attachment-list { display: grid; gap: 6px; padding: 12px 14px; margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: 12px; }
.attachment-list strong { color: var(--ink); font-size: 12px; }
.phase-question-card, .single-phase-card, .phase7-card, .phase4-wizard { max-width: none; margin: 0; }
.phase7-document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; margin: 18px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfc; }
.phase7-document-toolbar > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; color: var(--ink); font-size: 12px; }
.phase7-document-toolbar > div:first-child span { color: var(--muted); }
.phase7-decision-filter { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.phase7-decision-filter select { min-width: 185px; min-height: 38px; padding: 8px 36px 8px 12px; border: 1px solid #d5e2e6; border-radius: 10px; color: var(--ink); background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m7 9 5 5 5-5' stroke='%23176b7f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 11px center; background-repeat: no-repeat; appearance: none; -webkit-appearance: none; font: inherit; font-size: 12px; font-weight: 750; line-height: 1.25; outline: 0; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
.phase7-decision-filter select:hover { border-color: #a9cfd6; background-color: #fbfefe; }
.phase7-decision-filter select:focus-visible { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22, 115, 135, .13); }
.phase7-filter-empty { margin: 14px 0; padding: 16px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; text-align: center; }
.phase7-autosave-status { flex-basis: 100%; font-size: 12px; }
.phase7-autosave-status[data-state="saving"], .phase7-autosave-status[data-state="pending"] { color: var(--teal) !important; }
.phase7-autosave-status[data-state="saved"] { color: var(--green) !important; }
.phase7-autosave-status[data-state="error"] { color: var(--red) !important; }
.phase7-bulk-actions, .phase7-tab-actions > div { display: flex; flex-wrap: wrap; gap: 7px; }
.phase7-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 7px; padding: 5px; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: #eaf0f3; }
.phase7-tab { min-width: 0; padding: 11px 15px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 800; text-align: center; cursor: pointer; }
.phase7-tab span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; border-radius: 99px; color: inherit; background: rgba(255,255,255,.55); font-size: 12px; }
.phase7-tab.is-active { color: white; background: var(--teal); }
.phase7-tab-panel.is-hidden { display: none; }
.phase7-tab-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0; }
.phase7-document-section { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.phase7-document-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; color: var(--teal-dark); font-size: 12px; font-weight: 850; cursor: pointer; list-style: none; }
.phase7-document-section > summary::-webkit-details-marker { display: none; }
.phase7-document-section > summary small { color: var(--muted); font-size: 12px; font-weight: 700; }
.phase7-document-list { border-top: 1px solid #edf1f3; }
.phase7-document-card { display: grid; grid-template-columns: minmax(220px, 1.25fr) minmax(190px, 1fr) 165px; gap: 16px; align-items: start; padding: 14px 15px; border-bottom: 1px solid #edf1f3; }
.phase7-document-card:last-child { border-bottom: 0; }
.phase7-document-main .phase8-status-pill { margin-top: 8px; }
.phase8-monitoring-decision { display: grid; gap: 8px; align-content: start; }
.phase8-monitoring-decision .phase8-monitoring-choice-buttons { display: grid; gap: 6px; }
.phase8-monitoring-decision .phase8-monitoring-choice-buttons .button { min-height: 34px; }
.phase7-document-card .phase8-monitoring-details { grid-column: 1 / -1; margin-top: 0; }
.phase7-document-id { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.phase7-document-id strong { color: var(--teal-dark); font-size: 12px; }
.phase7-document-main h3 { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.4; }
.phase7-document-note { display: inline-flex; margin-top: 7px; padding: 3px 7px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.phase7-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.phase7-document-ai strong { color: var(--teal-dark); font-size: 12px; }
.phase7-document-ai p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.phase7-document-decision select { width: 100%; padding: 9px 10px; border: 1px solid #dbe6ea; border-radius: 8px; color: var(--ink); background: white; font: inherit; font-size: 12px; }
.phase7-override { display: inline-block; margin-top: 6px; color: #8b651a; font-size: 12px; font-weight: 800; }
.phase7-save-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
@media (max-width: 900px) { .phase7-document-card { grid-template-columns: minmax(0, 1fr) minmax(155px, .8fr); } .phase7-document-decision { grid-column: 1 / -1; } }
@media (max-width: 620px) { .phase7-document-toolbar, .phase7-tab-actions, .phase7-save-row { align-items: stretch; flex-direction: column; } .phase7-bulk-actions, .phase7-tab-actions > div { width: 100%; } .phase7-bulk-actions .button, .phase7-tab-actions .button { flex: 1; } .phase7-document-card { grid-template-columns: 1fr; gap: 10px; } .phase7-document-decision { grid-column: auto; } }
.summary-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 22px; }
.summary-grid > * { min-width: 0; }
.summary-download-panel { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 10px; overflow: hidden; }
.template-list { display: grid; gap: 7px; width: 100%; min-width: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.template-list li { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.summary-content-stack { display: grid; gap: 22px; }
.summary-block { padding-top: 1px; }
.summary-block + .summary-block { padding-top: 20px; border-top: 1px solid #edf1f3; }
.summary-block h3 { margin: 0 0 14px; color: var(--ink); font-size: 15px; }
.summary-value-pill { display: inline-flex; padding: 4px 8px; border-radius: 99px; color: #2f6b56; background: var(--green-soft); font-size: 12px; font-weight: 800; }
.output-folder-list { display: grid; width: 100%; margin: 0; padding: 0; list-style: none; }
.output-folder-row { overflow: hidden; border-bottom: 1px solid #edf1f3; }
.output-folder-row:last-child { border-bottom: 0; }
.output-folder-row > summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; list-style: none; }
.output-folder-row > summary::-webkit-details-marker { display: none; }
.output-folder-row > summary:focus-visible { outline: 3px solid rgba(22,115,135,.22); outline-offset: 2px; border-radius: 6px; }
.output-folder-copy { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.output-folder-copy strong { color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.output-folder-copy small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.output-folder-count { flex: 0 0 auto; color: var(--teal-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }
.output-folder-chevron { flex: 0 0 auto; width: 15px; height: 15px; color: var(--teal-dark); transition: transform .16s ease; }
.output-folder-row[open] > summary { padding-bottom: 8px; }
.output-folder-row[open] .output-folder-chevron { transform: rotate(180deg); }
.output-folder-files { display: grid; gap: 5px; margin: 0; padding: 0 28px 12px; color: var(--muted); font-size: 12px; line-height: 1.4; list-style: none; }
.output-folder-files li { min-width: 0; overflow-wrap: anywhere; }
.output-folder-files li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: #9ccbd3; }
.download-status { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.download-status:not([hidden]) { display: block; }
.button-wide { width: 100%; justify-content: center; margin-top: 8px; }

/* Phase 9 audit workspace */
.phase9-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.phase9-section-heading h2 { margin: 4px 0 6px; }
.phase9-section-heading p { max-width: 760px; margin: 0; line-height: 1.5; }
.phase9-program-heading { align-items: center; margin-bottom: 12px; }
.phase9-program-heading .button { flex: 0 0 auto; min-height: 38px; }
.phase9-program-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; margin-bottom: 10px; border: 1px solid #d9e9ec; border-radius: 10px; color: var(--muted); background: #f7fbfc; }
.phase9-program-toolbar span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-width: 0; }
.phase9-program-toolbar strong { color: var(--teal-dark); font-size: 12px; }
.phase9-program-toolbar small { font-size: 12px; }
.phase9-evidence-upload { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; margin: 0 0 15px; border: 1px dashed #b9d5db; border-radius: 12px; background: #fbfdfe; }
.phase9-evidence-upload > div { display: grid; gap: 3px; min-width: 0; }
.phase9-evidence-upload strong { color: var(--ink); font-size: 12px; }
.phase9-evidence-upload p { margin: 0; font-size: 12px; }
.phase9-evidence-upload input { max-width: 260px; color: var(--muted); font-size: 12px; }
.phase9-evidence-panel { padding: 17px 18px; margin: 0; border: 1px solid #cfe2e6; border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(27,74,87,.04); }
.phase9-evidence-documents { min-width: 0; }
.phase9-evidence-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.phase9-evidence-copy { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.phase9-evidence-copy .agent-control-icon { flex: 0 0 34px; }
.phase9-evidence-copy > div { min-width: 0; }
.phase9-evidence-copy h3 { margin: 1px 0 5px; color: var(--ink); font-size: 16px; }
.phase9-evidence-copy p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.phase9-evidence-upload-form { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 7px; }
.phase9-evidence-upload-form input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.phase9-evidence-upload-form .button { min-height: 34px; padding: 0 11px; font-size: 12px; white-space: nowrap; }
.phase9-evidence-upload-form .phase9-evidence-delete-all { gap: 6px; padding: 0 10px; }
.phase9-evidence-upload-form .phase9-evidence-delete-all .icon-svg { width: 14px; height: 14px; }
.phase9-evidence-upload-form .phase9-evidence-delete-all:disabled { opacity: .5; cursor: not-allowed; }
.phase9-evidence-select:focus-within, .phase9-evidence-upload-form input[type="file"]:focus-visible + .phase9-evidence-select { outline: 3px solid rgba(22,115,135,.22); outline-offset: 2px; }
.phase9-evidence-upload-form input[type="file"]:focus-visible + .phase9-evidence-select { border-color: var(--teal); }
.phase9-evidence-files { padding: 10px 0 0; margin-top: 12px; border-top: 1px solid #e5eef0; }
.phase9-evidence-files-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.phase9-evidence-counts { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.phase9-evidence-count { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 8px; border: 1px solid #d9e9ec; border-radius: 7px; color: var(--muted); background: #f7fbfc; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.phase9-evidence-count:hover { border-color: #9bcfd4; transform: translateY(-1px); }
.phase9-evidence-count:focus-visible { outline: 3px solid rgba(22,115,135,.22); outline-offset: 2px; }
.phase9-evidence-count[aria-pressed="true"] { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.phase9-evidence-count[aria-pressed="true"] strong { color: var(--teal-dark); }
.phase9-evidence-count strong { color: var(--teal-dark); font-size: 12px; line-height: 1; }
.phase9-evidence-count small { color: inherit; font-size: 12px; font-weight: 800; white-space: nowrap; }
.phase9-evidence-count-pending { border-color: #f0dba3; color: #86621c; background: #fff9e9; }
.phase9-evidence-count-pending strong { color: #86621c; }
.phase9-evidence-count-failed { border-color: #ebcaca; color: #9a4d4d; background: #fff7f7; }
.phase9-evidence-count-failed strong { color: #9a4d4d; }
.phase9-evidence-filter-empty { padding: 14px 8px; color: var(--muted); font-size: 12px; list-style: none; }
.phase9-evidence-selection { color: var(--muted); font-size: 12px; }
.phase9-upload-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.phase9-upload-status:has(> .phase9-upload-feedback:not([hidden])) { margin-top: 12px; }
.phase9-upload-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.phase9-upload-actions .button { min-height: 30px; padding: 0 9px; font-size: 12px; box-shadow: none; }
.phase9-upload-actions .phase9-upload-retry-icon { width: 32px; height: 32px; padding: 6px; }
.phase9-upload-feedback { display: flex; flex: 0 1 auto; align-items: center; gap: 8px; padding: 0; margin: 0; border: 0; color: var(--muted); background: transparent; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.phase9-upload-feedback[hidden] { display: none; }
.phase9-upload-feedback[data-stage="finalizing"]::before { width: 12px; height: 12px; flex: 0 0 auto; border: 2px solid #b9dce2; border-top-color: var(--teal); border-radius: 50%; content: ""; animation: phase9-upload-spin .8s linear infinite; }
.phase9-upload-feedback[data-stage="failed"] { color: #9a4d4d; }
@keyframes phase9-upload-spin { to { transform: rotate(360deg); } }
.phase9-evidence-preview { overflow: hidden; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.phase9-evidence-all { position: relative; flex: 0 1 420px; width: min(100%, 420px); min-width: 0; }
.phase9-evidence-all[open] { max-height: 224px; overflow: hidden; }
.phase9-evidence-all summary { padding: 5px 8px; border: 1px solid #cfe3e7; border-radius: 7px; color: var(--teal-dark); background: #f7fbfc; font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.phase9-evidence-all summary::-webkit-details-marker { display: none; }
.phase9-evidence-all summary:focus-visible { outline: 3px solid rgba(22,115,135,.22); outline-offset: 2px; }
.phase9-evidence-all ul { display: block; box-sizing: border-box; flex: 0 1 auto; width: 100%; height: min(185px, 35vh); min-height: 0; max-height: 185px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-color: #9bcbd2 #f3f8f9; padding: 9px 8px 3px 19px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; contain: layout paint; }
.phase9-evidence-all li { overflow-wrap: anywhere; }
.phase9-evidence-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #eef3f4; }
.phase9-evidence-item:last-child { border-bottom: 0; }
.phase9-evidence-item-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; min-width: 0; }
.phase9-evidence-item-copy strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.phase9-evidence-status { grid-column: 2; grid-row: 1; padding: 3px 6px; border-radius: 5px; color: var(--teal-dark); background: #e8f6f4; font-size: 12px; font-weight: 850; white-space: nowrap; }
.phase9-evidence-item-uploading .phase9-evidence-status { color: #86621c; background: #fff1c9; }
.phase9-evidence-item-failed .phase9-evidence-status { color: #9a4d4d; background: #ffe9e9; }
.phase9-evidence-item-excluded .phase9-evidence-status { color: #9a4d4d; background: #ffe9e9; }
.phase9-evidence-item-excluded .phase9-evidence-item-copy strong { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.phase9-evidence-item-excluded .phase9-evidence-error { color: #9a4d4d; }
.phase9-evidence-error { grid-column: 1 / -1; overflow: hidden; color: #9a4d4d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.phase9-evidence-delete { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; padding: 0; border: 1px solid #e6caca; border-radius: 7px; color: #985252; background: #fff8f8; cursor: pointer; }
.phase9-evidence-delete:hover { color: #7e3f3f; border-color: #dcaeae; background: #fff1f1; }
.phase9-evidence-delete:focus-visible { outline: 3px solid rgba(22,115,135,.22); outline-offset: 2px; }
.phase9-evidence-delete .icon-svg { width: 13px; height: 13px; }
.phase9-document-delete-dialog { width: min(480px, calc(100% - 32px)); padding: 0; border: 1px solid #e6caca; border-radius: 18px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 70px rgba(20,52,65,.24); }
.phase9-document-delete-dialog::backdrop { background: rgba(18,42,52,.38); }
.phase9-document-delete-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px 22px 0; }
.phase9-document-delete-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #f0cccc; border-radius: 13px; color: #a05050; background: #fff6f6; }
.phase9-document-delete-icon .icon-svg { width: 20px; height: 20px; }
.phase9-document-delete-copy { padding: 0 22px 21px; }
.phase9-document-delete-copy .section-kicker { display: block; margin-top: 18px; color: #9a5c5c; }
.phase9-document-delete-copy h2 { margin: 5px 0 8px; color: var(--ink); font-size: 23px; }
.phase9-document-delete-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.phase9-document-delete-name { display: block; overflow-wrap: anywhere; padding: 11px 12px; margin-top: 14px; border: 1px solid #e8edef; border-radius: 10px; color: var(--ink); background: #f8fcfd; font-size: 12px; line-height: 1.4; }
.phase9-document-delete-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 19px; border-top: 1px solid #edf1f3; }
.phase9-document-delete-actions .button { min-height: 36px; padding: 0 13px; font-size: 12px; font-weight: 850; }
.phase9-document-delete-actions .button-danger { color: #8c4d4d; background: #fff7f7; }
.phase9-document-delete-actions .button-danger:hover { color: #753b3b; background: #fff1f1; }
.phase9-evidence-analysis { margin-top: 13px; }
.phase9-audit-section-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #e3edf0; }
.phase9-audit-section-heading h3 { margin: 0; color: var(--ink); font-size: 15px; }
.phase9-audit-section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.phase9-audit-metadata { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 12px 14px; padding: 0; margin: 0; border: 0; background: transparent; }
.phase9-audit-time-range { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.phase9-audit-time-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.phase9-audit-metadata label, .phase9-checklist-toolbar label, .phase9-row-controls label, .phase9-row-controls .phase9-master-value, .phase9-note-field, .phase9-program-fields label { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.phase9-row-controls .phase9-master-value strong { min-height: 38px; padding: 10px; border: 1px solid #e1ecee; border-radius: 8px; color: var(--ink); background: #f7fbfc; font-size: 12px; font-weight: 700; }
.phase9-audit-metadata input, .phase9-audit-metadata select, .phase9-checklist-toolbar input, .phase9-checklist-toolbar select, .phase9-row-controls select, .phase9-row-controls textarea, .phase9-note-field textarea, .phase9-program-fields input, .phase9-program-fields textarea { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid #d5e3e7; border-radius: 8px; color: var(--ink); background: white; outline: 0; }
.phase9-audit-metadata select, .phase9-checklist-toolbar select, .phase9-row-controls select { padding-right: 34px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m7 9 5 5 5-5' stroke='%23176b7f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 10px center; background-repeat: no-repeat; font: inherit; font-size: 12px; font-weight: 700; line-height: 1.25; cursor: pointer; }
.phase9-audit-metadata input:focus, .phase9-audit-metadata select:focus, .phase9-checklist-toolbar input:focus, .phase9-checklist-toolbar select:focus, .phase9-row-controls select:focus, .phase9-row-controls textarea:focus, .phase9-note-field textarea:focus, .phase9-program-fields input:focus, .phase9-program-fields textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,115,135,.1); }
.phase9-save-status { grid-column: 1 / -1; min-height: 15px; color: var(--muted); font-size: 12px; font-weight: 700; }
.phase9-save-status[data-state="success"] { color: var(--green); }
.phase9-save-status[data-state="error"] { color: var(--red); }
.phase9-checklist-legend { margin-bottom: 14px; }
.phase9-checklist-legend-content { min-width: 0; }
.phase9-checklist-legend-content > strong { display: block; color: var(--teal-dark); font-size: 12px; }
.phase9-checklist-legend-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.8fr) minmax(0, 1fr); gap: 14px; margin-top: 8px; }
@media (min-width: 761px) and (max-width: 1200px) {
    .phase9-checklist-legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.phase9-checklist-legend-grid > div { min-width: 0; padding-top: 7px; border-top: 1px solid #d5e9ec; }
.phase9-checklist-legend-grid > div > span { color: #3f5b68; font-size: 12px; font-weight: 850; }
.phase9-checklist-legend-grid p { margin: 3px 0 0; color: #526a76; font-size: 12px; line-height: 1.45; }
.phase9-checklist-legend-grid p b { color: #3f5b68; }
.phase9-checklist-toolbar { position: sticky; top: 84px; z-index: 4; display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; padding: 11px 12px; margin-bottom: 12px; border: 1px solid #d9e9ec; border-radius: 11px; background: rgba(247,251,252,.97); box-shadow: 0 8px 18px rgba(27,74,87,.08); backdrop-filter: blur(8px); }
.phase9-checklist-list, .phase9-program-list { display: grid; gap: 10px; }
.phase9-checklist-list { display: block; }
.phase9-checklist-workspace { display: grid; grid-template-columns: minmax(240px, .34fr) minmax(0, .66fr); align-items: start; gap: 12px; }
.phase9-checklist-index, .phase9-checklist-detail { min-width: 0; border: 1px solid #cfe2e6; border-radius: 14px; background: white; box-shadow: 0 5px 16px rgba(27,74,87,.04); }
.phase9-checklist-index { position: sticky; top: 136px; max-height: calc(100vh - 160px); overflow: auto; }
.phase9-checklist-index-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 14px 10px; border-bottom: 1px solid #e7eff1; }
.phase9-checklist-index-heading strong { color: var(--ink); font-size: 13px; }
.phase9-checklist-index-heading span { color: var(--muted); font-size: 12px; font-weight: 750; }
.phase9-checklist-index-list { display: grid; gap: 4px; padding: 6px; }
.phase9-checklist-index-item { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; padding: 10px 9px; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.phase9-checklist-index-item:hover, .phase9-checklist-index-item:focus-visible { border-color: #c7dfe4; background: #f5fbfc; outline: 0; }
.phase9-checklist-index-item.is-selected { border-color: #9ed5df; background: #eaf7f8; }
.phase9-checklist-index-main { display: grid; gap: 3px; min-width: 0; }
.phase9-checklist-index-main strong { color: var(--teal-dark); font-size: 12px; font-weight: 900; }
.phase9-checklist-index-main small { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.phase9-checklist-index-outcome, .phase9-checklist-detail-outcome { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 7px; color: #85641b; background: #fff3d6; font-size: 12px; font-weight: 850; white-space: nowrap; }
.phase9-checklist-index-outcome.is-set, .phase9-checklist-detail-outcome.is-set { color: var(--teal-dark); background: #e6f5f6; }
.phase9-checklist-detail { position: sticky; top: 136px; max-height: calc(100vh - 160px); overflow: auto; }
.phase9-checklist-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 17px 13px; border-bottom: 1px solid #e7eff1; }
.phase9-checklist-detail-head .phase9-requirement { min-width: 0; }
.phase9-checklist-detail-head .phase9-row-meta { flex-wrap: wrap; }
.phase9-checklist-detail-head .phase9-row-meta small { color: var(--muted); font-size: 12px; font-weight: 750; }
.phase9-checklist-detail-head .phase9-requirement h3 { font-size: 16px; }
.phase9-checklist-detail-head .phase9-checklist-detail-outcome { flex: 0 0 auto; }
.phase9-checklist-detail-body { display: grid; gap: 14px; padding: 16px 17px 17px; }
.phase9-checklist-detail-body .phase9-row-controls, .phase9-checklist-detail-body .phase9-note-field, .phase9-checklist-detail-body .phase9-row-evidence { grid-area: auto; }
.phase9-checklist-detail-body .phase9-row-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phase9-checklist-detail-body .phase9-note-field textarea { min-height: 145px; }
.phase9-checklist-detail-body .phase9-row-evidence { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border: 1px solid #e1ecee; border-radius: 8px; background: #f8fcfd; }
.phase9-checklist-detail-body .phase9-row-evidence strong { color: var(--teal-dark); font-size: 12px; }
.phase9-checklist-detail-body .phase9-row-evidence p { overflow: hidden; min-width: 0; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.phase9-section { overflow: hidden; border: 1px solid #cfe2e6; border-radius: 14px; background: #fbfdfe; }
.phase9-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 15px; color: var(--ink); background: #f1fafb; cursor: pointer; list-style: none; }
.phase9-section > summary::-webkit-details-marker { display: none; }
.phase9-section > summary span { min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 750; }
.phase9-section > summary b { display: inline-grid; place-items: center; min-width: 31px; padding: 4px 7px; margin-right: 7px; border-radius: 7px; color: white; background: var(--teal); font-size: 12px; }
.phase9-section > summary small { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 750; }
.phase9-section-rows { display: grid; gap: 0; }
.phase9-checklist-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); grid-template-areas: "requirement controls" "note note" "evidence evidence"; gap: 13px 18px; padding: 16px 15px 15px; border-top: 1px solid #e7eff1; background: white; }
.phase9-requirement { grid-area: requirement; min-width: 0; }
.phase9-row-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.phase9-row-meta strong { color: var(--teal-dark); font-size: 12px; }
.phase9-row-meta span { padding: 3px 6px; border-radius: 5px; color: #6f5a26; background: #fff3d6; font-size: 12px; font-weight: 850; }
.phase9-requirement h3 { margin: 0 0 6px; color: var(--ink); font-size: 13px; line-height: 1.4; }
.phase9-requirement p, .phase9-requirement small { display: block; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.phase9-requirement small { margin-top: 7px; color: #81919a; }
.phase9-row-controls { grid-area: controls; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 9px; }
.phase9-note-field { grid-area: note; display: grid; gap: 6px; min-width: 0; }
.phase9-note-field textarea { min-height: 126px; }
.phase9-row-controls textarea, .phase9-note-field textarea, .phase9-program-fields textarea { resize: vertical; line-height: 1.4; }
.phase9-row-evidence { grid-area: evidence; border: 1px solid #e1ecee; border-radius: 8px; background: #f8fcfd; }
.phase9-row-evidence summary { padding: 8px 9px; color: var(--teal-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.phase9-row-evidence p { margin: 0; padding: 0 9px 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.phase9-empty { display: grid; gap: 5px; padding: 20px; border: 1px dashed #cbdde2; border-radius: 12px; color: var(--muted); background: #fbfdfe; font-size: 12px; }
.phase9-empty strong { color: var(--ink); }
.phase9-program-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px 11px 11px; border: 1px solid #cfe2e6; border-radius: 11px; background: white; box-shadow: 0 4px 13px rgba(27,74,87,.035); }
.phase9-program-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid #e7eff1; }
.phase9-program-title { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); font-size: 12px; }
.phase9-program-title strong { font-weight: 850; }
.phase9-program-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: white; background: var(--teal); font-size: 12px; font-weight: 850; }
.phase9-program-fields { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(240px, 1.8fr) minmax(135px, .85fr) minmax(135px, .85fr); gap: 7px 9px; }
.phase9-program-fields label { position: relative; z-index: 1; cursor: text; }
.phase9-program-fields input, .phase9-program-fields textarea { position: relative; z-index: 2; min-height: 35px; padding-top: 7px; padding-bottom: 7px; cursor: text; pointer-events: auto; }
.phase9-program-fields input[type="date"] { cursor: pointer; }
.phase9-program-fields label:focus-within { color: var(--teal-dark); }
.phase9-program-notes { grid-column: span 2; }
.phase9-field-wide { grid-column: span 2; }
.phase9-program-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.phase9-program-actions .button { min-height: 27px; padding: 0 8px; font-size: 12px; }
.phase9-program-actions .phase9-icon-button { min-width: 27px; padding: 0 6px; font-size: 13px; line-height: 1; }
.phase9-registry-heading { align-items: center; }
.phase9-registry-heading .button { flex: 0 0 auto; min-height: 38px; }
.phase9-registry-toolbar { position: sticky; top: 84px; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 11px; margin-bottom: 11px; border: 1px solid #d9e9ec; border-radius: 11px; background: rgba(247,251,252,.97); box-shadow: 0 8px 18px rgba(27,74,87,.08); backdrop-filter: blur(8px); }
.phase9-registry-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.phase9-registry-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 31px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.phase9-registry-tabs button:hover, .phase9-registry-tabs button:focus-visible { border-color: #c7dfe4; color: var(--teal-dark); background: white; }
.phase9-registry-tabs button.is-active { color: white; background: var(--teal); }
.phase9-registry-tabs b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 99px; color: currentColor; background: rgba(255,255,255,.24); font-size: 12px; }
.phase9-registry-review { min-height: 16px; color: #946a13; font-size: 12px; font-weight: 800; text-align: right; }
.phase9-registry-list { display: block; }
.phase9-registry-workspace { display: grid; grid-template-columns: minmax(220px, .34fr) minmax(0, .66fr); align-items: start; gap: 12px; }
.phase9-registry-index, .phase9-registry-detail { min-width: 0; border: 1px solid #cfe2e6; border-radius: 14px; background: white; box-shadow: 0 5px 16px rgba(27,74,87,.04); }
.phase9-registry-index { position: sticky; top: 136px; max-height: calc(100vh - 160px); overflow: auto; }
.phase9-registry-index-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 14px 10px; border-bottom: 1px solid #e7eff1; }
.phase9-registry-index-heading strong { color: var(--ink); font-size: 13px; }
.phase9-registry-index-heading span { color: var(--muted); font-size: 12px; font-weight: 750; }
.phase9-registry-index-list { display: grid; gap: 4px; padding: 6px; }
.phase9-registry-index-item { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; padding: 10px 9px; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.phase9-registry-index-item:hover, .phase9-registry-index-item:focus-visible { border-color: #c7dfe4; background: #f5fbfc; outline: 0; }
.phase9-registry-index-item.is-selected { border-color: #9ed5df; background: #eaf7f8; }
.phase9-registry-index-item.is-review:not(.is-selected) { background: #fffaf0; }
.phase9-registry-index-main, .phase9-registry-index-meta { display: grid; gap: 3px; min-width: 0; }
.phase9-registry-index-main strong { color: var(--teal-dark); font-size: 12px; font-weight: 900; }
.phase9-registry-index-main small, .phase9-registry-index-meta small { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.phase9-registry-index-meta { justify-items: end; flex: 0 0 auto; }
.phase9-registry-type, .phase9-registry-warning { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 850; }
.phase9-registry-type-NC { color: #93433c; background: #fff0ee; }
.phase9-registry-type-OSS { color: #85641b; background: #fff5d8; }
.phase9-registry-warning { color: #8b6418; background: #fff2cc; }
.phase9-registry-detail { position: sticky; top: 136px; max-height: calc(100vh - 160px); overflow: auto; }
.phase9-registry-detail.is-review { border-color: #e9c76d; }
.phase9-registry-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 17px 13px; border-bottom: 1px solid #e7eff1; }
.phase9-registry-detail-title { min-width: 0; }
.phase9-registry-detail-title > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.phase9-registry-id { color: var(--teal-dark); font-size: 16px; font-weight: 900; }
.phase9-registry-detail-title p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.phase9-registry-detail-status { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 800; }
.phase9-registry-detail-status .button { min-height: 29px; padding: 0 9px; font-size: 12px; }
.phase9-registry-detail-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 9px 11px; border-bottom: 1px solid #e7eff1; background: #f7fbfc; }
.phase9-registry-detail-tabs button { display: grid; gap: 3px; min-width: 0; padding: 9px 10px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.phase9-registry-detail-tabs button:hover, .phase9-registry-detail-tabs button:focus-visible { border-color: #c7dfe4; color: var(--teal-dark); background: white; outline: 0; }
.phase9-registry-detail-tabs button.is-active { border-color: #9ed5df; color: var(--teal-dark); background: white; box-shadow: 0 3px 10px rgba(27,74,87,.06); }
.phase9-registry-detail-tabs strong { font-size: 12px; }
.phase9-registry-detail-tabs small { color: inherit; font-size: 12px; font-weight: 700; line-height: 1.3; }
.phase9-registry-detail-body { padding: 15px 17px 17px; }
.phase9-registry-tab-panel[hidden] { display: none; }
.phase9-registry-help { margin: 12px 0 0; color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.5; }
.phase9-registry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 12px; }
.phase9-registry-grid label { display: grid; align-content: start; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.phase9-required-mark { color: #b42318; font-size: 1.15em; font-weight: 900; }
.phase9-registry-grid input, .phase9-registry-grid select, .phase9-registry-grid textarea { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #d5e3e7; border-radius: 8px; color: var(--ink); background: white; font: inherit; font-size: 12px; outline: 0; }
.phase9-registry-grid input:focus, .phase9-registry-grid select:focus, .phase9-registry-grid textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,115,135,.1); }
.phase9-registry-grid textarea { resize: vertical; line-height: 1.4; }
.phase9-registry-wide { grid-column: span 2; }
.phase9-registry-grid-finding { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phase9-registry-grid-finding .phase9-registry-description { grid-column: 1 / -1; }
.phase9-registry-grid-finding .phase9-registry-type-field { grid-column: span 1; }
.phase9-registry-grid-finding .phase9-registry-causes { grid-column: span 3; }
.phase9-registry-grid-action .phase9-registry-action-description, .phase9-registry-grid-closure .phase9-registry-closure-description { grid-column: 1 / -1; }
.phase9-registry-grid-action .phase9-registry-action-type { grid-column: auto; }
.phase9-registry-grid textarea { min-height: 92px; }
.phase9-registry-grid-finding textarea { min-height: 72px; }
.phase9-registry-grid-action textarea, .phase9-registry-grid-closure textarea { min-height: 84px; }
.phase9-review-heading { align-items: center; }
.phase9-review-meta { display: grid; grid-template-columns: minmax(180px, .35fr) minmax(260px, .65fr); gap: 10px; padding: 12px; margin-bottom: 11px; border: 1px solid #cfe4e8; border-radius: 12px; background: #f6fbfc; }
.phase9-review-meta label, .phase9-review-attachments-block, .phase9-review-fields label, .phase9-review-narratives label { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.phase9-review-meta input, .phase9-review-fields select, .phase9-review-fields textarea, .phase9-review-narratives textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #d5e3e7; border-radius: 8px; color: var(--ink); background: white; font: inherit; font-size: 12px; outline: 0; }
.phase9-review-meta input:focus, .phase9-review-fields select:focus, .phase9-review-fields textarea:focus, .phase9-review-narratives textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,115,135,.1); }
.phase9-review-attachments-block { grid-template-columns: minmax(180px, .32fr) minmax(0, .68fr); align-items: start; gap: 13px; padding: 12px; margin-bottom: 11px; border: 1px dashed #b9d5db; border-radius: 12px; background: #fbfdfe; }
.phase9-review-attachments-block > div:first-child { display: grid; gap: 3px; }
.phase9-review-attachments-block strong { color: var(--ink); font-size: 12px; }
.phase9-review-attachments-block p { margin: 0; line-height: 1.4; }
.phase9-review-attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.phase9-review-attachments label { display: flex; align-items: flex-start; gap: 7px; padding: 7px 8px; border: 1px solid #e0ecee; border-radius: 8px; color: var(--ink); background: white; font-size: 12px; font-weight: 700; line-height: 1.35; cursor: pointer; }
.phase9-review-attachments input { flex: 0 0 auto; margin-top: 1px; accent-color: var(--teal); }
.phase9-review-group { overflow: hidden; margin-bottom: 11px; border: 1px solid #cfe2e6; border-radius: 13px; background: #fbfdfe; }
.phase9-review-group-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 15px; padding: 13px 15px; border: 0; color: var(--ink); background: #f1fafb; text-align: left; cursor: pointer; }
.phase9-review-group-toggle:hover, .phase9-review-group-toggle:focus-visible { background: #e9f7f8; outline: 0; }
.phase9-review-group-toggle > span:first-child { display: grid; gap: 3px; min-width: 0; }
.phase9-review-group-toggle strong { color: var(--teal-dark); font-size: 13px; }
.phase9-review-group-toggle small { color: var(--muted); font-size: 12px; font-weight: 700; }
.phase9-review-group-toggle > span:last-child { color: var(--teal-dark); font-size: 18px; line-height: 1; transition: transform .16s ease; }
.phase9-review-group-toggle[aria-expanded="true"] > span:last-child { transform: rotate(180deg); }
.phase9-review-items { display: grid; gap: 8px; padding: 10px; background: #f8fcfd; }
.phase9-review-item { overflow: hidden; border: 1px solid #d9e8eb; border-radius: 10px; background: white; }
.phase9-review-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; color: var(--ink); cursor: pointer; list-style: none; }
.phase9-review-item > summary::-webkit-details-marker { display: none; }
.phase9-review-item > summary > span:first-child { display: grid; gap: 3px; min-width: 0; }
.phase9-review-item > summary strong { overflow-wrap: anywhere; font-size: 12px; line-height: 1.35; }
.phase9-review-item > summary small { color: var(--muted); font-size: 12px; font-weight: 800; }
.phase9-review-summary-state { display: inline-grid; place-items: center; min-width: 28px; min-height: 24px; padding: 0 7px; border-radius: 7px; color: var(--muted); background: #f1f5f6; font-size: 12px; font-weight: 900; }
.phase9-review-summary-state.is-yes { color: #167c5a; background: #e5f6ef; }
.phase9-review-summary-state.is-no { color: #9a4c50; background: #fff0f0; }
.phase9-review-summary-state.is-complete { color: #167c5a; background: #e5f6ef; }
.phase9-review-summary-state.is-pending { color: #8a6417; background: #fff4d9; }
.phase9-review-item-body { display: grid; gap: 10px; padding: 0 12px 12px; border-top: 1px solid #edf3f4; }
.phase9-review-fields { display: grid; grid-template-columns: minmax(130px, .23fr) minmax(0, .77fr); align-items: start; gap: 10px; padding-top: 11px; }
.phase9-review-evaluation textarea, .phase9-review-narratives textarea { resize: vertical; min-height: 76px; line-height: 1.4; }
.phase9-review-fields label { color: #526b78; font-size: 13px; line-height: 1.25; }
.phase9-review-fields select, .phase9-review-fields textarea { font-size: 14px; font-weight: 500; line-height: 1.45; }
.phase9-review-fields textarea { min-height: 112px; letter-spacing: normal; }
.phase9-review-trace { display: grid; gap: 3px; padding: 8px 9px; border: 1px solid #cfe4e8; border-radius: 8px; color: var(--muted); background: #f7fbfc; font-size: 12px; line-height: 1.4; }
.phase9-review-trace span { color: var(--teal-dark); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.phase9-review-trace p, .phase9-review-trace small { margin: 0; }
.phase9-review-trace small { color: #85641b; }
.phase9-review-confirm { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 800; cursor: pointer; }
.phase9-review-confirm input { accent-color: var(--teal); }
.phase9-review-narratives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 2px; }
.phase9-review-narratives textarea { min-height: 116px; }
.phase11-review-narrative-tab { grid-template-columns: 1fr; padding: 10px 0 0; }
.phase11-review-job-banner { align-items: center; }
.phase11-review-job-banner[data-status="stale"] { background: #fff8e8; border-color: #efd89c; }
.phase11-review-job-banner[data-status="failed"] { background: #fff5f5; border-color: #e9c4c4; }
.phase11-review-job-banner[data-status="stopped"] { background: #fff8e8; border-color: #efd89c; }
.phase11-review-job-copy { flex: 1; min-width: 0; }
.phase11-review-job-action { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
.phase11-review-progress { width: min(100%, 680px); height: 8px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: rgba(24, 119, 146, .14); }
.phase11-review-progress span { display: block; height: 100%; border-radius: inherit; background: var(--teal, #187792); }
.phase9-step1-block { margin-top: 18px; padding: 18px; border: 1px solid #cfe2e6; border-radius: 15px; background: #fbfdfe; box-shadow: 0 5px 16px rgba(27,74,87,.035); }
.phase9-audit-section.phase9-step1-block { margin: 20px 0; padding: 20px 22px; background: #fff; }
.phase9-step1-block + .phase9-step1-block { margin-top: 13px; }
.phase9-field-section { margin-top: 2px; }
.phase9-conclusion-section { background: linear-gradient(180deg, #f5fbfc, #fff); }
.phase9-subsection-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.phase9-subsection-heading h3 { margin: 2px 0 3px; color: var(--ink); font-size: 18px; }
.phase9-subsection-heading p { margin: 0; }
.phase9-subsection-heading .button { flex: 0 0 auto; min-height: 36px; }
.phase9-field-inspections-list { display: block; }
.phase9-field-workspace { display: grid; grid-template-columns: minmax(220px, .34fr) minmax(0, .66fr); align-items: start; gap: 12px; }
.phase9-field-index, .phase9-field-detail { min-width: 0; border: 1px solid #cfe2e6; border-radius: 14px; background: white; box-shadow: 0 5px 16px rgba(27,74,87,.04); }
.phase9-field-index { position: sticky; top: 136px; max-height: calc(100vh - 160px); overflow: auto; }
.phase9-field-index-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 14px 10px; border-bottom: 1px solid #e7eff1; }
.phase9-field-index-heading strong { color: var(--ink); font-size: 13px; }
.phase9-field-index-heading span { color: var(--muted); font-size: 12px; font-weight: 750; }
.phase9-field-index-list { display: grid; gap: 4px; padding: 6px; }
.phase9-field-index-item { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; padding: 10px 9px; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.phase9-field-index-item:hover, .phase9-field-index-item:focus-visible { border-color: #c7dfe4; background: #f5fbfc; outline: 0; }
.phase9-field-index-item.is-selected { border-color: #9ed5df; background: #eaf7f8; }
.phase9-field-index-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; min-width: 0; }
.phase9-field-index-main b { grid-row: span 2; display: inline-grid; place-items: center; min-height: 25px; padding: 0 5px; border-radius: 7px; color: white; background: var(--teal); font-size: 12px; }
.phase9-field-index-main strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.phase9-field-index-main small { grid-column: 1; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.phase9-field-detail { position: sticky; top: 136px; max-height: calc(100vh - 160px); overflow: auto; }
.phase9-field-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 17px 13px; border-bottom: 1px solid #e7eff1; }
.phase9-field-inspection-title { display: grid; gap: 5px; min-width: 0; }
.phase9-field-inspection-title > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.phase9-field-inspection-number { display: inline-grid; place-items: center; min-height: 27px; padding: 0 7px; border-radius: 8px; color: white; background: var(--teal); font-size: 12px; font-weight: 900; }
.phase9-field-inspection-title strong { overflow: hidden; color: var(--ink); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.phase9-field-inspection-title small { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.phase9-field-detail-status { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.phase9-field-detail-status .button { min-height: 29px; padding: 0 9px; font-size: 12px; }
.phase9-field-inspection-result { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 7px; color: #85641b; background: #fff3d6; font-size: 12px; font-weight: 850; white-space: nowrap; }
.phase9-field-inspection-result.is-set { color: var(--teal-dark); background: #e6f5f6; }
.phase9-field-detail-body { padding: 15px 17px 17px; }
.phase9-field-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 12px; }
.phase9-field-detail-wide { grid-column: 1 / -1; }
.phase9-field-detail-note { display: grid; gap: 5px; }
.phase9-field-detail-note, .phase9-field-detail-grid label { color: var(--muted); font-size: 12px; font-weight: 800; }
.phase9-field-inspection-static { display: grid; gap: 5px; min-width: 0; padding: 9px 10px; border: 1px solid #d5e3e7; border-radius: 8px; background: #f2f8f9; }
.phase9-field-inspection-static span { color: var(--muted); font-size: 12px; font-weight: 800; }
.phase9-field-inspection-static strong, .phase9-field-inspection-static p { margin: 0; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.phase9-field-detail label, .phase9-audit-summary-field { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.phase9-field-detail input, .phase9-field-detail select, .phase9-field-detail textarea, .phase9-audit-summary-field textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #d5e3e7; border-radius: 8px; color: var(--ink); background: white; font: inherit; font-size: 12px; outline: 0; }
.phase9-field-detail input:focus, .phase9-field-detail select:focus, .phase9-field-detail textarea:focus, .phase9-audit-summary-field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,115,135,.1); }
.phase9-field-detail textarea, .phase9-audit-summary-field textarea { resize: vertical; line-height: 1.45; }
.phase9-field-detail textarea { min-height: 62px; }
.phase9-audit-summary-field { width: 100%; }
.phase9-audit-summary-field textarea { min-height: 78px; max-height: none; overflow-y: hidden; resize: none; }
@media (max-width: 900px) {
    .phase9-checklist-row { grid-template-columns: 1fr; grid-template-areas: "requirement" "controls" "note" "evidence"; }
    .phase9-checklist-legend-grid { grid-template-columns: 1fr; gap: 8px; }
    .phase9-audit-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .phase9-program-row { grid-template-columns: 34px minmax(0, 1fr); }
    .phase9-evidence-heading { align-items: stretch; flex-direction: column; }
    .phase9-evidence-upload-form { justify-content: stretch; }
    .phase9-evidence-upload-form .button { flex: 1 1 auto; justify-content: center; }
    .phase9-evidence-files-summary { align-items: flex-start; flex-direction: column; }
    .phase9-evidence-all { flex-basis: auto; width: 100%; }
    .phase9-evidence-all summary { text-align: center; }
    .phase9-program-actions { grid-column: 2; justify-content: flex-start; }
    .phase9-program-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .phase9-program-notes { grid-column: 1 / -1; }
    .phase9-checklist-workspace { grid-template-columns: 1fr; }
    .phase9-checklist-index, .phase9-checklist-detail { position: static; max-height: none; }
    .phase9-registry-workspace { grid-template-columns: 1fr; }
    .phase9-registry-index, .phase9-registry-detail { position: static; max-height: none; }
    .phase9-registry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .phase9-registry-grid-finding .phase9-registry-description, .phase9-registry-grid-finding .phase9-registry-causes, .phase9-registry-grid-action .phase9-registry-action-description, .phase9-registry-grid-closure .phase9-registry-closure-description { grid-column: 1 / -1; }
    .phase9-field-workspace { grid-template-columns: 1fr; }
    .phase9-field-index, .phase9-field-detail { position: static; max-height: none; }
    .phase9-review-fields { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 1000px) {
    .phase9-checklist-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .phase9-evidence-upload, .phase9-section-heading { align-items: stretch; flex-direction: column; }
    .phase9-evidence-upload .button { width: 100%; justify-content: center; }
    .phase9-audit-metadata, .phase9-checklist-toolbar, .phase9-row-controls, .phase9-program-fields { grid-template-columns: 1fr; }
    .phase9-checklist-detail-head { flex-direction: column; }
    .phase9-checklist-detail-body .phase9-row-controls { grid-template-columns: 1fr; }
    .phase9-program-heading .button { width: 100%; justify-content: center; }
    .phase9-save-status, .phase9-field-wide { grid-column: auto; }
    .phase9-program-actions { grid-column: auto; }
    .phase9-program-row-head { align-items: flex-start; }
    .phase9-program-fields { grid-template-columns: 1fr; }
    .phase9-program-notes { grid-column: auto; }
    .phase9-registry-toolbar { align-items: stretch; flex-direction: column; }
    .phase9-registry-review { text-align: left; }
    .phase9-registry-grid, .phase9-registry-wide { grid-template-columns: 1fr; grid-column: auto; }
    .phase9-registry-grid-finding label, .phase9-registry-grid-action label, .phase9-registry-grid-closure label { grid-column: 1 / -1; }
    .phase9-registry-detail-head { flex-direction: column; }
    .phase9-registry-detail-status { justify-content: flex-start; }
    .phase9-registry-detail-tabs { grid-template-columns: 1fr; }
    .phase9-field-detail-head { flex-direction: column; }
    .phase9-field-detail-status { justify-content: flex-start; }
    .phase9-field-detail-grid { grid-template-columns: 1fr; }
    .phase9-review-meta, .phase9-review-attachments-block, .phase9-review-narratives { grid-template-columns: 1fr; }
    .phase9-review-attachments { grid-template-columns: 1fr; }
    .phase11-review-job-banner { align-items: flex-start; flex-wrap: wrap; }
    .phase11-review-job-action { width: 100%; margin-left: 32px; justify-content: center; }
}
.phase-summary-actions { display: flex; gap: 12px; margin-top: 18px; }
.phase6-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.phase6-section-heading h2 { margin: 4px 0 6px; }
.phase6-activity-list, .phase6-aspect-matrix, .phase6-significance-list, .phase6-objective-list { display: grid; gap: 14px; }
.phase6-objective-list { row-gap: 18px; margin-bottom: 20px; }
.phase6-activity-row, .phase6-matrix-row, .phase6-significance-row, .phase6-objective-row { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfe; }
.phase6-activity-group { display: grid; gap: 9px; padding: 14px; border: 1px solid #cfe4e8; border-radius: 15px; }
.phase6-activity-group-core { border-color: #9ed5df; background: linear-gradient(180deg, #f1fbfc, #fbfdfe); }
.phase6-activity-group-support { border-color: #d8dfe4; background: linear-gradient(180deg, #f7f9fa, #fff); }
.phase6-activity-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 1px 3px 7px; border-bottom: 1px solid rgba(104, 135, 147, .18); }
.phase6-activity-group-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.phase6-activity-count { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 800; }
.phase6-activity-group-list { display: grid; gap: 0; overflow: hidden; border: 1px solid #dce9ec; border-radius: 10px; background: #fff; }
.phase6-activity-group-actions { padding-top: 2px; }
.phase6-activity-group-actions .button { width: 100%; justify-content: center; border-style: dashed; }
.phase6-activity-empty { padding: 11px 12px; border: 1px dashed #cbdbe0; border-radius: 9px; color: var(--muted); background: rgba(255, 255, 255, .68); font-size: 12px; }
.phase6-activity-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: 10px; min-height: 44px; padding: 4px 9px; border: 0; border-bottom: 1px solid #e7eff1; border-radius: 0; background: #fff; transition: background .16s, box-shadow .16s; }
.phase6-activity-row:last-child { border-bottom: 0; }
.phase6-activity-row-support { background: #fcfdfd; }
.phase6-activity-row:hover { background: #f8fcfd; box-shadow: inset 3px 0 0 #8ccbd1; }
.phase6-activity-name, .phase6-activity-actions { min-width: 0; }
.phase6-activity-actions { display: flex; justify-content: center; }
.phase6-objectives-caption { color: var(--muted); font-size: 12px; font-weight: 800; }
.phase6-significance-fields input, .phase6-objective-row input { width: 100%; }
.phase6-activity-name input { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid transparent; border-radius: 7px; color: var(--ink); background: transparent; font-size: 13px; font-weight: 600; line-height: 1.25; outline: 0; transition: border .16s, box-shadow .16s, background .16s; }
.phase6-activity-name input:hover { border-color: #d5e0e5; background: #fff; }
.phase6-activity-name input:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(22, 115, 135, .12); }
.phase6-activity-name input[readonly] { color: #526673; background: transparent; }
.phase6-activity-name input[readonly]:focus { border-color: transparent; box-shadow: none; }
.phase6-activity-remove { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; padding: 0; border: 1px solid #efcaca; border-radius: 9px; color: var(--red); background: #fff7f7; }
.phase6-activity-remove:hover, .phase6-activity-remove:focus-visible { color: #a24f55; border-color: #e6bfc2; background: #fff7f7; }
.phase6-activity-remove .icon-svg { width: 15px; height: 15px; }
.phase6-activity-aspects { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.phase6-activity-aspects label { color: var(--muted); font-size: 12px; }
.phase6-matrix-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.phase6-matrix-controls, .phase6-significance-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.phase6-matrix-controls label, .phase6-significance-fields label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
.phase6-significance-title { display: grid; gap: 4px; margin-bottom: 10px; }
.phase6-significance-title span { color: var(--muted); font-size: 12px; }
.phase6-significance-fields input { max-width: 64px; }
.phase6-significance-fields:first-of-type input { max-width: none; }
.phase6-wide-field { display: grid; gap: 5px; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 800; }
.phase6-wide-field input { width: 100%; }
.phase6-objective-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid #c9e3e7; border-radius: 12px; background: #f3fbfc; }
.phase6-objective-toolbar > div:first-child { display: grid; gap: 3px; }
.phase6-objective-toolbar strong { color: var(--ink); font-size: 18px; }
.phase6-objective-toolbar p { margin: 0; font-size: 12px; }
.phase6-year-actions { display: flex; align-items: end; gap: 10px; }
.phase6-year-actions label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 800; }
.phase6-year-actions select { min-width: 150px; }
.phase6-objective-empty { display: grid; gap: 5px; padding: 22px; border: 1px dashed #b9d8dd; border-radius: 12px; color: var(--muted); background: #fbfdfe; }
.phase6-objective-empty strong { color: var(--ink); }
.phase6-objective-process-card { overflow: hidden; border: 1px solid #c9e3e7; border-radius: 18px; background: #fff; box-shadow: 0 5px 16px rgba(27, 74, 87, .05); }
.phase6-objective-process-card[open] { border-color: #a8d5da; box-shadow: 0 8px 22px rgba(27, 74, 87, .07); }
.phase6-objective-process-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 15px 18px; color: var(--ink); background: linear-gradient(135deg, #e8f6f8, #f6fbfc); cursor: pointer; list-style: none; }
.phase6-objective-process-summary::-webkit-details-marker { display: none; }
.phase6-objective-process-summary:hover { background: #e2f3f5; }
.phase6-objective-process-card[open] > .phase6-objective-process-summary { border-bottom: 1px solid #c9e3e7; background: #e5f4f6; }
.phase6-objective-process-copy { display: grid; gap: 5px; min-width: 0; }
.phase6-objective-process-copy > span, .phase6-objective-description-copy > span, .phase6-objective-fixed-description > span { color: var(--teal-dark); font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.phase6-objective-process-copy h3 { overflow: hidden; margin: 0; color: var(--ink); font-size: 17px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.phase6-objective-process-meta { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--teal-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }
.phase6-objective-description-list { display: grid; gap: 12px; padding: 14px; background: #f8fcfd; }
.phase6-objective-description-card { overflow: hidden; padding: 0; border: 1px solid #d7e8ec; border-radius: 14px; background: #fff; }
.phase6-objective-description-card[open] { border-color: #a8d5da; box-shadow: 0 4px 12px rgba(27, 74, 87, .06); }
.phase6-objective-description-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 66px; padding: 13px 14px; color: var(--ink); cursor: pointer; list-style: none; }
.phase6-objective-description-summary::-webkit-details-marker { display: none; }
.phase6-objective-description-summary:hover { background: #fbfefe; }
.phase6-objective-description-copy { display: grid; gap: 4px; min-width: 0; }
.phase6-objective-description-copy strong { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 750; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.phase6-objective-summary-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.phase6-objective-summary-meta > span[data-objective-status] { padding: 5px 8px; border-radius: 999px; color: #755923; background: #fff6df; font-weight: 800; }
.phase6-objective-summary-meta > span[data-objective-status="RAGGIUNTO"] { color: #27704a; background: #e9f8ef; }
.phase6-objective-summary-meta > span[data-objective-status="NON RAGGIUNTO"] { color: #a24646; background: #fff0f0; }
.phase6-objective-chevron { display: grid; place-items: center; width: 22px; height: 22px; color: var(--teal); }
.phase6-objective-chevron .icon-svg { width: 16px; height: 16px; transition: transform .15s ease; }
.phase6-objective-description-card[open] .phase6-objective-chevron .icon-svg, .phase6-objective-process-card[open] > .phase6-objective-process-summary .phase6-objective-chevron .icon-svg { transform: rotate(180deg); }
.phase6-objective-details { display: grid; gap: 14px; padding: 16px; border-top: 1px solid var(--line); background: #fff; }
.phase6-objective-section { display: grid; gap: 12px; padding: 13px; border: 1px solid #e1ecef; border-radius: 10px; background: #fbfdfe; }
.phase6-objective-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #e7eff1; }
.phase6-objective-section-heading strong { color: var(--ink); font-size: 12px; }
.phase6-objective-section-heading span { color: var(--muted); font-size: 12px; }
.phase6-objective-section .phase6-objective-grid { gap: 10px; }
.phase6-objective-section-notes .phase6-objective-field { margin: 0; }
.phase6-objective-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.phase6-objective-field { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }
.phase6-objective-field-label { display: flex; align-items: baseline; justify-content: flex-start; flex-wrap: wrap; gap: 3px 8px; }
.phase6-objective-field-label-copy { display: inline-flex; align-items: baseline; gap: 4px; }
.phase6-objective-target-hint { margin-left: auto; color: #6d828c; font-size: 10px; font-weight: 650; line-height: 1.35; }
.phase6-objective-field-wide { grid-column: 1 / -1; }
.phase6-objective-field input, .phase6-objective-field textarea, .phase6-objective-field select { width: 100%; min-width: 0; }
.phase6-objective-field textarea { min-height: 72px; resize: vertical; }
.phase6-objective-field input[readonly], .phase6-objective-field select:disabled, .phase6-objective-field input:disabled, .phase6-objective-field textarea:disabled { color: var(--ink); opacity: .72; background: #f4f8f9; }
.phase6-objective-field-derived::after { content: "Recuperato dallo storico"; color: var(--muted); font-size: 12px; font-weight: 600; }
.phase6-objective-details > .button { justify-self: start; }
.phase6-objective-fixed-description { display: grid; grid-column: 1 / -1; gap: 5px; padding: 11px 12px; border: 1px solid #cfe3e7; border-radius: 9px; background: #f1fafb; }
.phase6-objective-fixed-description p { margin: 0; color: var(--ink); font-size: 13px; font-weight: 650; line-height: 1.45; white-space: pre-wrap; }
.phase6-agent-status { margin-bottom: 14px; padding: 10px 12px; border: 1px solid #c9e3e7; border-radius: 9px; background: #eff9fb; color: var(--teal); font-size: 12px; }
.phase6-agent-status[data-status="failed"] { border-color: #efc6c6; background: #fff5f5; color: #a24646; }
.phase6-agent-recovery { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.phase6-agent-recovery .button { min-height: 34px; padding: 0 11px; border-color: #d9b1b1; color: #864545; background: #fffafa; font-size: 12px; font-weight: 800; }
.phase6-agent-recovery .button:hover { border-color: #be7b7b; color: #6f3333; background: #fff4f4; }
.phase6-agent-regenerate { display: flex; justify-content: flex-end; margin: -4px 0 14px; }
.phase6-agent-regenerate .button { min-height: 34px; padding: 0 11px; font-size: 12px; font-weight: 800; }
.phase6-source-info { color: var(--muted); font-size: 12px; font-weight: 600; }
.phase6-source-info a { color: var(--teal-dark); text-decoration: underline; }
.phase6-matrix-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid #c9e3e7; border-radius: 12px 12px 0 0; background: #f3fbfc; }
.phase6-matrix-toolbar label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.phase6-matrix-activity { min-width: 280px; }
.phase6-select-shell { position: relative; display: block; }
.phase6-matrix-toolbar select { width: 100%; min-width: 280px; min-height: 40px; padding: 9px 40px 9px 12px; border: 1px solid #d8e4e8; border-radius: 9px; outline: 0; appearance: none; -webkit-appearance: none; color: var(--ink); background: #fff; font-size: 13px; font-weight: 650; line-height: 1.25; cursor: pointer; transition: border-color .16s, box-shadow .16s, background .16s; }
.phase6-matrix-toolbar select:hover { border-color: #a7ced3; background: #fff; }
.phase6-matrix-toolbar select:focus-visible { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22, 115, 135, .13); }
.phase6-select-shell > .icon-svg { position: absolute; top: 50%; right: 12px; width: 16px; height: 16px; color: var(--teal-dark); pointer-events: none; transform: translateY(-50%); }
.phase6-matrix-legend { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.phase6-matrix-legend b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; color: var(--teal-dark); background: var(--teal-soft); font-size: 12px; }
.phase6-matrix-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; }
.phase6-matrix-table { width: 100%; border-collapse: collapse; min-width: 620px; background: white; }
.phase6-matrix-table th, .phase6-matrix-table td { padding: 12px 14px; border-bottom: 1px solid #e9f0f2; text-align: center; }
.phase6-matrix-table thead th { color: var(--teal-dark); background: #f7fbfc; font-size: 12px; font-weight: 850; }
.phase6-matrix-table tbody th { color: var(--ink); text-align: left; font-size: 12px; font-weight: 700; }
.phase6-matrix-table tbody tr:last-child th, .phase6-matrix-table tbody tr:last-child td { border-bottom: 0; }
.phase6-checkbox-cell { display: inline-grid; place-items: center; cursor: pointer; }
.phase6-checkbox-cell input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.phase6-checkbox-mark { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #c9dfe3; border-radius: 7px; background: #fbfdfe; }
.phase6-checkbox-cell input:checked + .phase6-checkbox-mark { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 3px rgba(22,115,135,.12); }
.phase6-checkbox-cell input:checked + .phase6-checkbox-mark::after { width: 8px; height: 4px; border-bottom: 2px solid white; border-left: 2px solid white; transform: rotate(-45deg) translate(1px, -1px); content: ""; }
.phase6-empty-state { display: grid; gap: 6px; padding: 18px; border: 1px dashed #b9d8dd; border-radius: 12px; color: var(--muted); background: #fbfdfe; line-height: 1.5; overflow-wrap: anywhere; }
.phase6-empty-state > strong { color: var(--ink); }
.phase6-empty-state > span { display: block; }
.phase6-significance-row { display: grid; gap: 14px; }
.phase6-significance-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.phase6-significance-title > div { display: grid; gap: 4px; min-width: 0; }
.phase6-significance-title strong { color: var(--ink); font-size: 13px; }
.phase6-significance-title span, .phase6-significance-title small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.phase6-significance-title small { max-width: 46%; text-align: right; }
.phase6-significance-inputs label { min-width: 64px; }
.phase6-significance-inputs label:first-child { min-width: 88px; }
.phase6-significance-result { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; padding: 6px 9px; border: 1px solid #dce8ea; border-radius: 8px; color: var(--muted); background: #f4f8f9; font-size: 12px; line-height: 1.25; }
.phase6-significance-result strong { color: var(--ink); }
.phase6-significance-divider { color: #91a4aa; }
.phase6-significance-status { font-weight: 850; }
.phase6-significance-result-non-rilevante { border-color: #cfe6d6; color: #52705f; background: #edf7f0; }
.phase6-significance-result-rilevante { border-color: #efdfb5; color: #8a6824; background: #fff7df; }
.phase6-significance-result-molto-rilevante { border-color: #efcccc; color: #a34d4d; background: #fff0f0; }
.phase6-significance-result-empty { color: var(--muted); background: #eef3f4; }
.phase6-significance-filters { position: sticky; top: 84px; z-index: 3; display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(2, minmax(135px, 1fr)) auto; align-items: end; gap: 9px; padding: 12px; margin-bottom: 12px; border: 1px solid #d8e8eb; border-radius: 13px; background: rgba(248, 252, 253, .96); box-shadow: 0 5px 16px rgba(27, 74, 87, .06); backdrop-filter: blur(8px); }
.phase6-significance-filters label { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.phase6-significance-filters input, .phase6-significance-filters select { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid #d5e2e6; border-radius: 8px; color: var(--ink); background: #fff; font-size: 12px; outline: 0; }
.phase6-significance-filters input:focus, .phase6-significance-filters select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22, 115, 135, .12); }
.phase6-significance-search { min-width: 0; }
.phase6-significance-reset { min-height: 38px; white-space: nowrap; }
.phase6-significance-retry { min-height: 34px; margin: -4px 0 12px; padding: 0 11px; border-color: #c9e3e7; color: var(--teal-dark); background: #f5fbfc; font-size: 12px; }
.phase6-significance-retry:hover { border-color: #8fc7cf; background: #eaf7f8; }
.phase6-significance-card { overflow: hidden; border: 1px solid #dce9ec; border-radius: 13px; background: #fff; }
.phase6-significance-card[open] { border-color: #acd5db; box-shadow: 0 5px 16px rgba(27, 74, 87, .06); }
.phase6-significance-card-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 12px 15px; color: var(--ink); background: #fff; cursor: pointer; list-style: none; }
.phase6-significance-card-summary::-webkit-details-marker { display: none; }
.phase6-significance-card-summary:hover { background: #fbfefe; }
.phase6-significance-card[open] > .phase6-significance-card-summary { border-bottom: 1px solid #e4eef0; background: #f5fbfc; }
.phase6-significance-card-copy { display: grid; gap: 4px; min-width: 0; }
.phase6-significance-card-copy strong { overflow-wrap: anywhere; color: var(--ink); font-size: 13px; font-weight: 800; }
.phase6-significance-card-copy small { color: var(--muted); font-size: 12px; }
.phase6-significance-card-meta { display: flex; align-items: center; justify-content: flex-end; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 750; }
.phase6-significance-card-meta > span:first-child { padding: 4px 7px; border-radius: 6px; color: #8b6a2a; background: #fff6df; }
.phase6-significance-card[open] .phase6-significance-card-meta > span:first-child { color: #27704a; background: #e9f8ef; }
.phase6-significance-chevron { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #c8e1e5; border-radius: 50%; color: var(--teal); background: #fff; }
.phase6-significance-chevron .icon-svg { width: 14px; height: 14px; transition: transform .15s ease; }
.phase6-significance-card[open] .phase6-significance-chevron .icon-svg { transform: rotate(180deg); }
.phase6-significance-card-body { display: grid; gap: 8px; padding: 10px; background: #fbfdfe; }
.phase6-significance-item { display: grid; gap: 10px; padding: 12px; border: 1px solid #e4edef; border-radius: 10px; background: #fff; }
.phase6-significance-item:hover { border-color: #bfdde1; }
.phase6-significance-item .phase6-significance-title { margin-bottom: 0; }
.phase6-significance-item .phase6-significance-title strong { font-size: 12px; }
.phase6-significance-item .phase6-significance-title span, .phase6-significance-item .phase6-significance-title small { font-size: 12px; }
.phase6-significance-item .phase6-significance-fields { gap: 8px; }
.phase6-significance-item .phase6-significance-result { padding: 6px 9px; }
.phase6-significance-item .phase6-wide-field { margin-top: 0; }
.phase6-significance-evidence { border: 1px solid #dcecef; border-radius: 9px; background: #f7fcfd; }
.phase6-significance-evidence summary { padding: 8px 10px; color: var(--teal-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.phase6-significance-evidence ul { display: grid; gap: 6px; margin: 0; padding: 0 12px 10px 28px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.phase6-significance-evidence li { padding-left: 2px; }
.phase6-significance-evidence li strong { display: inline-block; min-width: 28px; margin-right: 5px; color: var(--teal-dark); }
.phase6-significance-evidence li span { color: var(--muted); }
.phase6-history-import { display: grid; gap: 10px; margin-bottom: 14px; padding: 14px; border: 1px dashed #b9d8dd; border-radius: 11px; background: #f7fcfd; }
.phase6-history-import p { margin: 5px 0 0; }
.phase6-history-actions { display: flex; align-items: center; gap: 10px; }
.phase6-history-actions input { max-width: 360px; color: var(--muted); font-size: 12px; }
.phase6-review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.phase6-review-grid > div { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfe; }
.phase6-review-grid strong { color: var(--muted); font-size: 12px; }
.phase6-review-grid span { color: var(--ink); font-weight: 750; }
.phase10-ready { display: flex; align-items: flex-start; gap: 14px; padding: 20px; border: 1px solid #c9e3e7; border-radius: 12px; background: linear-gradient(135deg, #effafc, #fbfdfe); }
.phase10-ready h2 { margin: 5px 0 6px; font-size: 18px; }
.phase10-ready p { margin: 0; font-size: 12px; line-height: 1.5; }
.phase7-card { max-width: none; }
.phase4-wizard { max-width: none; margin: 0; }
.phase4-card { padding: 25px; }
.phase4-table-wrap { overflow-x: auto; }
.phase4-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.phase4-table th { padding: 10px 12px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.phase4-table td { padding: 9px 8px; border-bottom: 1px solid #edf1f3; }
.phase4-table input, .phase4-table select { width: 100%; min-width: 150px; padding: 10px; border: 1px solid #dbe6ea; border-radius: 8px; color: var(--ink); background: #fbfdfe; }
.phase4-parties-table td:first-child { min-width: 320px; color: var(--ink); }
.phase4-factor-catalog { display: grid; gap: 18px; }
.phase4-factor-catalog-group { padding: 17px; border: 1px solid #e3ecef; border-radius: 12px; background: #fbfdfe; }
.phase4-factor-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 13px; margin-bottom: 12px; border-bottom: 1px solid #edf1f3; }
.phase4-factor-group-heading .section-kicker { margin-bottom: 3px; }
.phase4-factor-list { display: grid; gap: 8px; }
.phase4-factor-edit-row { display: grid; grid-template-columns: 55px minmax(0, 1fr) 125px auto; gap: 9px; align-items: center; }
.phase4-factor-edit-row:not(.has-group-control) { grid-template-columns: 55px minmax(0, 1fr) 82px; }
.phase4-factor-edit-row input, .phase4-factor-edit-row select { width: 100%; min-width: 0; padding: 10px; border: 1px solid #dbe6ea; border-radius: 8px; color: var(--ink); background: white; }
.phase4-factor-edit-row input:disabled { color: #87969b; border-color: #d9e0e2; background: #edf1f2; cursor: not-allowed; opacity: 1; }
.phase4-factor-toggle { width: 82px; min-width: 82px; padding: 8px 7px; white-space: nowrap; }
.phase4-factor-edit-row .phase4-remove-factor { width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; justify-self: center; }
.phase4-factor-id { color: var(--teal); font-size: 12px; font-weight: 850; }
.phase4-factor-origin { padding: 7px 9px; border-radius: 99px; color: var(--muted); background: #eaf0f3; font-size: 12px; font-weight: 750; text-align: center; }
.phase4-remove-factor { min-height: 37px; padding: 0 11px; color: #8c5b5b; }
.phase4-add-factor { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; gap: 10px; align-items: end; padding: 16px; margin-top: 18px; border: 1px dashed #b9d5dc; border-radius: 11px; background: #f4fbfc; }
.phase4-add-factor label { display: block; margin-bottom: 6px; color: #526573; font-size: 12px; font-weight: 750; }
.phase4-add-factor input, .phase4-add-factor select { width: 100%; padding: 10px; border: 1px solid #dbe6ea; border-radius: 8px; color: var(--ink); background: white; }
.phase4-matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.phase4-matrix { min-width: 1050px; width: 100%; border-collapse: collapse; font-size: 12px; }
.phase4-matrix th, .phase4-matrix td { padding: 9px 7px; border-right: 1px solid #e3ecef; border-bottom: 1px solid #e3ecef; text-align: center; vertical-align: middle; }
.phase4-matrix tr:last-child th, .phase4-matrix tr:last-child td { border-bottom: 0; }
.phase4-matrix th:last-child, .phase4-matrix td:last-child { border-right: 0; }
.phase4-matrix thead th, .phase4-matrix > tr:first-child th { color: var(--muted); background: #f4f8f9; font-size: 12px; }
.phase4-matrix > tr:first-child th:first-child { min-width: 260px; text-align: left; }
.phase4-matrix > tr:first-child th:not(:first-child) { min-width: 82px; }
.phase4-matrix th span, .phase4-matrix th small { display: block; }
.phase4-matrix th span { color: var(--teal); font-size: 12px; font-weight: 850; }
.phase4-matrix th small { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.25; }
.phase4-matrix > tr:not(:first-child) th { color: var(--ink); background: white; font-weight: 700; text-align: left; }
.phase4-matrix-check { display: grid; place-items: center; min-height: 29px; cursor: pointer; }
.phase4-matrix-check input { width: 17px; height: 17px; accent-color: var(--teal); }
.phase4-actions, .phase4-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; margin-top: 18px; border-top: 1px solid #edf1f3; }
.button-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: white; border-radius: 50%; animation: phase4-spin .75s linear infinite; }
@keyframes phase4-spin { to { transform: rotate(360deg); } }
.phase4-agent-status { padding: 11px 13px; margin-bottom: 16px; border: 1px solid #c9e3e7; border-radius: 9px; color: var(--teal-dark); background: var(--teal-soft); font-size: 12px; }
.phase4-agent-status-success { border-color: #bfe4d0; color: #1d674c; background: var(--green-soft); }
.phase4-agent-status-warning { border-color: #efdcae; color: #8b651a; background: var(--amber-soft); }
.phase4-agent-status-error { border-color: #efcaca; color: #994040; background: #fff5f5; }
.phase4-agent-recovery { display: flex; justify-content: flex-end; margin: -8px 0 16px; }
.phase4-agent-recovery .button { min-height: 34px; padding: 0 11px; border-color: #d9b1b1; color: #864545; background: #fffafa; font-size: 12px; font-weight: 800; }
.phase4-agent-recovery .button:hover { border-color: #be7b7b; color: #6f3333; background: #fff4f4; }
.phase4-recovery-toolbar { display: flex; justify-content: flex-end; min-height: 34px; margin-top: 12px; }
.phase4-recovery-toolbar[hidden] { display: none; }
.phase4-recovery-trigger { min-height: 34px; padding: 0 11px; color: var(--teal-dark); background: #f5fbfc; font-size: 12px; font-weight: 800; }
.phase4-recovery-dialog { width: min(820px, calc(100% - 32px)); max-height: min(760px, calc(100vh - 48px)); padding: 0; border: 1px solid #cfe3e7; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 24px 70px rgba(20, 52, 65, .22); }
.phase4-recovery-dialog::backdrop { background: rgba(18, 42, 52, .38); }
.phase4-recovery-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 15px; border-bottom: 1px solid #e7eff1; background: linear-gradient(135deg, #f2fafb, #fff); }
.phase4-recovery-dialog-header h2 { margin: 4px 0 0; color: var(--ink); font-size: 21px; }
.phase4-recovery-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 0; color: var(--muted); background: transparent; cursor: pointer; }
.phase4-recovery-close:hover { border: 0; color: var(--ink); background: transparent; }
.phase4-recovery-close .icon-svg { width: 18px; height: 18px; }
.phase4-recovery-dialog > p { padding: 0 24px; margin: 16px 0; font-size: 12px; line-height: 1.5; }
.phase4-recovery-list { display: grid; gap: 8px; max-height: min(60vh, 560px); padding: 0 24px 22px; overflow-y: auto; }
.phase4-recovery-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px 15px; border: 1px solid #dfeaec; border-radius: 10px; background: #fbfdfe; }
.phase4-recovery-item-fields { display: grid; grid-template-columns: minmax(115px, auto) minmax(0, 1fr); flex: 1 1 auto; gap: 6px 12px; min-width: 0; }
.phase4-recovery-item-label { align-self: start; color: #6d828c; font-size: 12px; font-weight: 850; letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; }
.phase4-recovery-item-value { color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.phase4-recovery-item .button { flex: 0 0 auto; min-height: 34px; padding: 0 10px; color: var(--teal-dark); font-size: 12px; font-weight: 800; }
.phase4-acro-confirmation-dialog { width: min(535px, calc(100% - 32px)); max-width: 535px; padding: 0; border: 1px solid #cfe3e7; border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 24px 70px rgba(20, 52, 65, .24); }
.phase4-acro-confirmation-dialog::backdrop { background: rgba(18, 42, 52, .42); }
.phase4-acro-confirmation-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px 22px 0; }
.phase4-acro-confirmation-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #f0cccc; border-radius: 13px; color: #a05050; background: #fff6f6; }
.phase4-acro-confirmation-icon .icon-svg { width: 20px; height: 20px; }
.phase4-acro-confirmation-copy { padding: 0 22px 21px; }
.phase4-acro-confirmation-copy .section-kicker { display: block; margin-top: 18px; color: #9a5c5c; }
.phase4-acro-confirmation-copy h2 { margin: 5px 0 8px; color: var(--ink); font-size: 23px; }
.phase4-acro-confirmation-message { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.phase4-acro-confirmation-context { display: grid; gap: 9px; padding: 13px 14px; margin-top: 17px; border: 1px solid #e4edef; border-radius: 12px; background: #f8fcfd; }
.phase4-acro-confirmation-context div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: start; }
.phase4-acro-confirmation-context span, .phase4-acro-confirmation-label { color: #70848c; font-size: 12px; font-weight: 850; letter-spacing: .04em; line-height: 1.4; text-transform: uppercase; }
.phase4-acro-confirmation-context strong { min-width: 0; color: var(--ink); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.phase4-acro-confirmation-consequences { padding: 13px 14px; margin-top: 10px; border: 1px solid #f0dfdf; border-radius: 12px; background: #fffafa; }
.phase4-acro-confirmation-consequences ul { display: grid; gap: 7px; padding-left: 18px; margin: 8px 0 0; color: #744c4c; font-size: 12px; line-height: 1.45; }
.phase4-acro-confirmation-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 19px; border-top: 1px solid #edf1f3; }
.phase4-acro-confirmation-actions .button { min-height: 36px; padding: 0 13px; font-size: 12px; font-weight: 850; }
.phase4-acro-confirmation-actions .button-danger { color: #8c4d4d; background: #fff7f7; }
.phase4-acro-confirmation-actions .button-danger:hover { color: #753b3b; background: #fff1f1; }
.phase4-acro-groups { display: grid; gap: 22px; }
.phase4-acro-party-group { overflow: hidden; border: 1px solid #dfeaec; border-radius: 14px; background: #fbfdfe; }
.phase4-acro-party-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #e7eff1; background: linear-gradient(135deg, #f2fafb, #fbfdfe); }
.phase4-acro-party-heading h3 { margin-top: 4px; color: var(--ink); font-size: 17px; }
.phase4-acro-count { padding: 6px 9px; border-radius: 99px; color: var(--teal-dark); background: var(--teal-soft); font-size: 12px; font-weight: 800; white-space: nowrap; }
.phase4-acro-expectation-groups { display: grid; gap: 18px; padding: 18px 20px 20px; }
.phase4-acro-expectation-group { padding: 16px; border: 1px solid #e5edef; border-radius: 11px; background: white; }
.phase4-acro-expectation, .phase4-acro-description, .phase4-acro-type-field, .phase4-acro-score-field { display: grid; gap: 6px; color: #526573; font-size: 12px; font-weight: 800; }
.phase4-acro-expectation textarea, .phase4-acro-description textarea, .phase4-acro-type-field select, .phase4-acro-score-select { width: 100%; padding: 10px 11px; border: 1px solid #dbe6ea; border-radius: 8px; color: var(--ink); background: #fbfdfe; font: inherit; font-weight: 500; resize: vertical; }
.phase4-acro-expectation textarea:focus, .phase4-acro-description textarea:focus, .phase4-acro-type-field select:focus, .phase4-acro-score-select:focus { border-color: #78c3c9; outline: 3px solid rgba(120,195,201,.18); }
.phase4-acro-rows { display: grid; gap: 12px; margin-top: 14px; }
.phase4-acro-row { padding: 15px; border: 1px solid #e7eff1; border-radius: 10px; background: #fbfdfe; }
.phase4-acro-row-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.phase4-acro-row-heading > div { display: grid; gap: 3px; flex: 1; }
.phase4-acro-row-heading strong { color: var(--teal-dark); font-size: 12px; }
.phase4-acro-row-heading span:last-child { color: var(--muted); font-size: 12px; }
.phase4-acro-row-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--teal); background: var(--teal-soft); font-size: 12px; font-weight: 850; }
.phase4-acro-remove { min-height: 32px; padding: 0 10px; color: #8c5b5b; font-size: 12px; }
.phase4-acro-row-details { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 12px; align-items: end; margin-top: 12px; }
.phase4-acro-score-grid { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 8px; }
.phase4-acro-derived { display: flex; align-items: center; gap: 7px; padding: 10px 11px; margin-top: 12px; border-radius: 8px; color: var(--muted); background: #f2f6f7; font-size: 12px; }
.phase4-acro-derived strong { color: var(--ink); }
.phase4-acro-reason { padding: 9px 11px; margin: 10px 0 0; border: 1px solid #d9ecee; border-radius: 7px; color: var(--muted); background: #f7fbfb; font-size: 12px; line-height: 1.45; }
.phase4-acro-loading { display: grid; gap: 8px; padding: 16px; margin-bottom: 17px; border: 1px solid #dcebed; border-radius: 11px; background: #fbfdfe; }
.phase4-acro-loading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.phase4-acro-skeleton { height: 11px; border-radius: 99px; background: linear-gradient(90deg, #edf4f5 20%, #dcebed 45%, #edf4f5 70%); background-size: 240% 100%; animation: phase4-acro-shimmer 1.4s ease-in-out infinite; }
.phase4-acro-skeleton:nth-child(2) { width: 78%; }
.phase4-acro-skeleton:nth-child(3) { width: 56%; }
@keyframes phase4-acro-shimmer { 0% { background-position: 120% 0; } 100% { background-position: -80% 0; } }
.phase4-context { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; margin-bottom: 20px; border: 1px solid #c9e3e7; border-radius: 10px; background: var(--teal-soft); }
.phase4-context div { display: grid; gap: 4px; }
.phase4-position { color: var(--teal); font-size: 12px; font-weight: 800; }
.phase4-factor-grid { display: grid; gap: 18px; border: 0; }
.phase4-factor-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.phase4-factor-group h3 { grid-column: 1 / -1; margin: 0 0 2px; color: var(--ink); font-size: 14px; }
.phase4-factor { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fbfdfe; cursor: pointer; }
.phase4-factor:has(input:checked) { border-color: #86cbd0; background: var(--teal-soft); }
.phase4-factor input { margin-top: 3px; accent-color: var(--teal); }
.phase4-factor strong, .phase4-factor small { display: block; }
.phase4-factor strong { color: var(--teal); font-size: 12px; }
.phase4-factor small { margin-top: 4px; color: var(--muted); line-height: 1.35; }
.phase4-summary { max-width: 980px; margin: 0 auto; }
.phase4-summary-list { display: grid; gap: 12px; }
.phase4-summary-card { padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfe; }
.phase4-summary-card > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phase4-summary-card p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.phase4-summary-card h4 { margin: 16px 0 7px; font-size: 12px; }
.phase4-summary-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.phase4-summary-actions { display: flex; justify-content: flex-end; gap: 12px; max-width: 980px; margin: 18px auto 0; }
.phase7-question { min-height: auto; }
.repeatable-section { padding: 18px; margin-top: 18px; border: 1px solid #e3ecef; border-radius: 13px; background: #fbfdfe; }
.repeatable-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 13px; margin-bottom: 13px; border-bottom: 1px solid #edf1f3; }
.repeatable-heading h3 { margin-top: 4px; font-size: 16px; }
.button-small { padding: 8px 10px; font-size: 12px; }
.button-danger { border: 1px solid #f0cccc; color: var(--red); background: #fff7f7; }
.button-danger:hover { border-color: #e5aaaa; background: #fff1f1; }
.delete-confirmation-dialog { width: min(470px, calc(100% - 32px)); padding: 25px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--paper); box-shadow: 0 22px 60px rgba(23,37,46,.22); }
.delete-confirmation-dialog::backdrop { background: rgba(23,37,46,.32); }
.delete-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.delete-dialog-header h2 { margin-top: 5px; font-size: 23px; overflow-wrap: anywhere; }
.delete-dialog-message { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.delete-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 22px; margin-top: 21px; border-top: 1px solid #edf1f3; }
.repeatable-list { display: grid; gap: 9px; }
.repeatable-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 11px; border: 1px solid #e8eff1; border-radius: 10px; background: white; }
.repeatable-row .field { margin-bottom: 0; }
.repeatable-remove { display: flex; align-items: center; gap: 7px; padding-bottom: 1px; }
.repeatable-remove input { display: none; }
.repeatable-error { grid-column: 1 / -1; color: #a04444; font-size: 12px; }
.phase8-card { max-width: none; }
.phase8-question { min-height: auto; }
.phase8-upload-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; padding: 18px; margin-top: 18px; border: 1px solid #d8e8eb; border-radius: 13px; background: #f5fbfc; }
.phase8-upload-first { margin-top: 0; }
.phase8-upload-section h3 { margin-top: 4px; font-size: 16px; }
.phase8-emergency-documents { grid-column: 1 / -1; display: grid; gap: 8px; }
.phase8-emergency-documents[hidden] { display: none; }
.phase8-emergency-document { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #d8e8eb; border-radius: 10px; background: white; min-width: 0; }
.phase8-emergency-document-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 9px; background: #e7f4f7; color: var(--teal-dark); }
.phase8-emergency-document-copy { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.phase8-emergency-document-copy p { margin: 4px 0 0; }
.phase8-emergency-document-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
@media (max-width: 600px) {
    .phase8-emergency-document { flex-wrap: wrap; }
    .phase8-emergency-document-actions { flex-basis: 100%; padding-left: 48px; }
}
.phase8-upload-row { display: flex; align-items: center; gap: 10px; }
.phase8-upload-row input[type="file"] { max-width: 330px; padding: 9px; border: 1px dashed #a9cfd5; border-radius: 9px; color: var(--muted); background: white; font-size: 12px; }
.phase8-participant-section { min-width: 0; margin-top: 18px; }
.phase8-participant-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; max-height: clamp(220px, 42vh, 390px); padding: 2px 8px 4px 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-color: #9bcbd2 transparent; }
.phase8-participant-list .repeatable-row { grid-template-columns: minmax(0, 1fr) auto; min-width: 0; padding: 9px 10px; }
.phase8-participant-list .repeatable-remove .button { min-height: 40px; }
.phase8-participant-list .field input { min-height: 37px; }
.phase8-report-section { min-width: 0; padding-top: 18px; margin-top: 20px; border-top: 1px solid #edf1f3; }
.phase8-report-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.phase8-report-heading h3 { margin-top: 4px; font-size: 16px; }
.phase8-report-heading p { margin: 0; text-align: right; }
.phase8-autosave-status { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 10px 2px 0; color: var(--muted); font-size: 12px; }
.phase8-autosave-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #77b6bf; }
.phase8-autosave-status[data-state="saving"] { color: var(--teal); }
.phase8-autosave-status[data-state="saving"] .phase8-autosave-dot { background: var(--teal); box-shadow: 0 0 0 4px rgba(23,107,135,.12); }
.phase8-autosave-status[data-state="error"] { color: #a33c3c; }
.phase8-autosave-status[data-state="error"] .phase8-autosave-dot { background: #c85c5c; }
.phase8-report-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.phase8-report-fields > .field:first-child { grid-column: span 2; }
.phase8-report-site { grid-column: 3 / -1; grid-row: 2; }
.phase8-report-officer { grid-column: 1 / 3; grid-row: 2; }
.phase8-report-notes { grid-column: 1 / -1; }
.phase8-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-column: 1 / -1; gap: 10px; }
.phase8-choice { min-width: 0; padding: 13px; margin: 0 0 17px; border: 1px solid #d8e4e8; border-radius: 10px; background: #fbfdfe; }
.phase8-choice legend { max-width: 100%; padding: 0 5px; color: #415461; font-size: 12px; font-weight: 750; line-height: 1.35; }
.phase8-choice ul { display: flex; flex-wrap: wrap; gap: 12px; padding: 9px 0 0; margin: 0; list-style: none; }
.phase8-choice li { display: flex; align-items: center; gap: 6px; color: #526573; font-size: 12px; }
.phase8-choice input { accent-color: var(--teal); }
.phase8-choice-note { grid-column: 1 / -1; margin: -3px 0 0; }
.phase8-placeholder-card, .phase8-suppliers { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.phase8-placeholder-card h2, .phase8-suppliers h2 { margin-top: 8px; }
.phase8-monitoring-card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.phase8-monitoring-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: start; }
.phase8-monitoring-intro h2 { margin-top: 8px; }
.phase8-monitoring-progress { padding: 11px 14px; margin: 20px 0 14px; border-radius: 10px; color: #795b18; background: var(--amber-soft); font-size: 12px; }
.phase8-monitoring-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 12px; background: #edf4f6; }
.phase8-monitoring-tab { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 42px; padding: 9px 12px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.phase8-monitoring-tab:hover { color: var(--teal-dark); background: #f8fcfd; }
.phase8-monitoring-tab:focus-visible { outline: 3px solid rgba(23, 107, 135, .22); outline-offset: 2px; }
.phase8-monitoring-tab.is-active { color: white; background: var(--teal); box-shadow: 0 5px 14px rgba(23, 107, 135, .16); }
.phase8-monitoring-tab span { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; color: var(--teal-dark); background: white; font-size: 12px; }
.phase8-monitoring-panels { margin-top: 14px; }
.phase8-monitoring-panel.is-hidden { display: none; }
.phase8-monitoring-area { margin-top: 10px; border: 1px solid #d8e8eb; border-radius: 12px; background: #fbfdfe; overflow: hidden; }
.phase8-monitoring-area summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; color: var(--teal-dark); font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; }
.phase8-monitoring-area summary::-webkit-details-marker, .phase8-monitoring-details summary::-webkit-details-marker { display: none; }
.phase8-monitoring-area summary::after, .phase8-monitoring-details summary::after { content: "⌄"; color: var(--teal); font-size: 17px; line-height: 1; transition: transform .18s ease; }
.phase8-monitoring-area[open] > summary::after, .phase8-monitoring-details[open] > summary::after { transform: rotate(180deg); }
.phase8-monitoring-area summary small { color: var(--muted); font-size: 12px; font-weight: 700; }
.phase8-monitoring-list { display: grid; gap: 8px; padding: 0 10px 10px; }
.phase8-monitoring-row { padding: 14px; border: 1px solid #e0ebee; border-radius: 10px; background: white; }
.phase8-monitoring-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.phase8-monitoring-row-head h3 { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.35; }
.phase8-monitoring-row-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.phase8-monitoring-row-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .32fr); gap: 14px; align-items: end; padding-top: 13px; margin-top: 12px; border-top: 1px solid #edf1f3; }
.phase8-monitoring-choice { min-width: 0; padding: 0; margin: 0; border: 0; }
.phase8-monitoring-choice legend { margin-bottom: 7px; color: #526573; font-size: 12px; font-weight: 800; }
.phase8-monitoring-choice-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.phase8-monitoring-choice-buttons .button { min-height: 38px; background: white; }
.phase8-monitoring-choice-buttons .button.is-selected { color: white; background: var(--teal); border-color: var(--teal); }
.phase8-monitoring-date { margin: 0; }
.phase8-monitoring-date label .required-field-marker { color: #b42318; font-weight: 900; }
.phase8-monitoring-card .required-indicator { color: #b42318; font-weight: 900; }
.phase8-monitoring-save-copy { display: grid; gap: 3px; }
.phase8-monitoring-save-copy small { min-height: 1em; color: var(--muted); font-size: 12px; }
.phase8-monitoring-details { margin-top: 12px; border-top: 1px solid #edf1f3; }
.phase8-monitoring-details summary { display: flex; align-items: center; justify-content: space-between; padding-top: 11px; color: var(--teal-dark); font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.phase8-monitoring-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding-top: 12px; }
.phase8-monitoring-details-grid > div > span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.phase8-monitoring-details-grid p { margin: 4px 0 0; color: #425664; font-size: 12px; line-height: 1.45; }
.phase8-monitoring-details-grid .field { margin: 0; }
.phase8-monitoring-details-grid input { width: 100%; box-sizing: border-box; }
.phase8-monitoring-hint { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.phase8-standard-document { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; margin-top: 22px; border: 1px solid #c9e3e7; border-radius: 13px; background: #f5fbfc; }
.phase8-standard-document b { color: var(--ink); font-size: 14px; }
.phase8-standard-document p { margin: 5px 0 0; }
.phase8-status-pill { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; color: #176b7f; background: #e8f7f9; font-size: 12px; font-weight: 800; }
.phase8-status-pill.is-pending { color: #85601d; background: #fff4d9; }
.phase8-status-pill.is-error { color: #9b4444; background: #fff0f0; }
.phase8-status-pill.is-complete { color: #27704a; background: #e9f8ef; }
.phase8-supplier-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; margin: 24px 0; }
.phase8-compact-form, .phase8-supplier-card, .phase8-empty { padding: 18px; border: 1px solid #d8e8eb; border-radius: 13px; background: #fbfdfe; }
.phase8-compact-form h3, .phase8-supplier-card h3 { margin: 5px 0; }
.phase8-file-picker { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 5px 7px; margin: 12px 0; border: 1px dashed #a9cfd5; border-radius: 10px; color: var(--muted); background: white; cursor: pointer; }
.phase8-file-picker:focus-within { outline: 3px solid rgba(23, 107, 135, .16); outline-offset: 2px; border-color: var(--teal); }
.phase8-file-picker-button { flex: 0 0 auto; padding: 8px 11px; border-radius: 7px; color: white; background: var(--teal); font-size: 12px; font-weight: 800; }
.phase8-file-picker-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.phase8-file-picker input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.phase8-compact-form .button { margin-top: 14px; }
.phase8-supplier-list { display: grid; gap: 14px; }
.phase8-supplier-selector { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 18px; align-items: end; padding: 16px 18px; margin: 20px 0 14px; border: 1px solid #b9dfe5; border-radius: 13px; background: #f0fafb; }
.phase8-supplier-select-shell { position: relative; min-width: 0; }
.phase8-supplier-selector select { width: 100%; min-height: 48px; padding: 12px 48px 12px 16px; border: 1px solid #b7d9df; border-radius: 12px; outline: 0; appearance: none; -webkit-appearance: none; color: var(--ink); background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23176b7f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 16px center; background-repeat: no-repeat; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; cursor: pointer; transition: border-color .16s, box-shadow .16s, background-color .16s; }
.phase8-supplier-selector select:hover { border-color: #75bdc8; background: #fcffff; }
.phase8-supplier-selector select:focus-visible { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(23, 107, 135, .14); }
.phase8-supplier-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #e1ebee; }
.phase8-supplier-card header form, .phase8-evidence-row form { margin: 0; }
.phase8-evidence-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 15px 0; }
.phase8-evidence-row form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.phase8-evidence-row .phase8-file-picker { margin: 0; }
.phase8-file-picker-compact { max-width: 280px; }
.phase8-questionnaire-upload { margin-top: 22px; }
.phase8-questionnaire-upload .button { margin-top: 14px; }
.phase8-upload-feedback { grid-column: 1 / -1; padding: 11px 13px; border: 1px solid #c9e3e7; border-radius: 10px; color: #31596a; background: #f5fbfc; font-size: 12px; }
.phase8-upload-feedback p { margin: 0; }
.phase8-upload-feedback pre { max-height: 180px; overflow: auto; margin: 8px 0 0; color: inherit; font: inherit; white-space: pre-wrap; }
.phase8-upload-feedback.is-error { border-color: #e7baba; color: #873f3f; background: #fff5f4; }
.phase8-unassigned-questionnaires { display: grid; gap: 10px; padding: 17px; margin: 16px 0; border: 1px solid #e7d7aa; border-radius: 13px; background: #fffaf0; }
.phase8-unassigned-questionnaires > h3, .phase8-unassigned-questionnaires > p { margin: 0; }
.phase8-unassigned-questionnaires > h3 { color: var(--ink); font-size: 16px; }
.phase8-unassigned-questionnaire { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(240px, .9fr) auto; gap: 12px; align-items: end; padding: 12px; border: 1px solid #eadfbe; border-radius: 10px; background: #fff; }
.phase8-unassigned-questionnaire > div { display: grid; gap: 4px; min-width: 0; }
.phase8-unassigned-questionnaire > div strong { overflow-wrap: anywhere; color: var(--ink); font-size: 12px; }
.phase8-unassigned-questionnaire > div span { color: #825b17; font-size: 12px; }
.phase8-unassigned-questionnaire > label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 750; }
.phase8-unassigned-questionnaire > label input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #d7e4e8; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; }
.phase8-unassigned-questionnaire > label input:focus-visible { outline: 3px solid rgba(23, 107, 135, .18); border-color: var(--teal); }
.phase8-unassigned-questionnaire > .field-error { grid-column: 1 / -1; margin: 0; }
.phase8-questionnaire-list { display: grid; gap: 10px; margin-top: 16px; }
.phase8-questionnaire-retry { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; margin-top: 16px; border: 1px solid #efb6b6; border-radius: 11px; color: #9b4444; background: #fff4f4; }
.phase8-questionnaire-retry-copy { display: grid; gap: 4px; min-width: 0; }
.phase8-questionnaire-retry-copy strong { color: #8f3f3f; font-size: 13px; }
.phase8-questionnaire-retry-copy p { margin: 0; color: #a35555; font-size: 12px; line-height: 1.45; }
.phase8-questionnaire-retry form { margin: 0; flex: 0 0 auto; }
.phase8-questionnaire-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid #dbe8eb; border-radius: 11px; background: #fff; }
.phase8-questionnaire-item-copy { display: grid; gap: 5px; min-width: 0; }
.phase8-questionnaire-item-copy > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.phase8-questionnaire-item-copy b { color: var(--ink); overflow-wrap: anywhere; }
.phase8-questionnaire-item-copy p, .phase8-questionnaire-item-copy small { margin: 0; }
.phase8-questionnaire-item-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
.phase8-questionnaire-item-actions form { margin: 0; }
.phase8-questionnaire-upload { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr) auto; gap: 14px 18px; align-items: end; padding: 17px 18px; margin-top: 22px; border: 1px solid #c9e3e7; border-radius: 13px; background: #f5fbfc; }
.phase8-questionnaire-upload-copy h3 { margin: 5px 0 4px; font-size: 16px; }
.phase8-questionnaire-upload-copy p { margin: 0; max-width: 520px; }
.phase8-questionnaire-dropzone { min-height: 58px; margin: 0; border-style: dashed; background: #fff; }
.phase8-file-picker-copy { display: grid; gap: 2px; min-width: 0; }
.phase8-file-picker-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.phase8-file-picker-copy small { color: var(--muted); font-size: 12px; }
.phase8-questionnaire-upload > .button { margin: 0; white-space: nowrap; }
.phase8-selected-files { grid-column: 1 / -1; padding: 11px 12px; border: 1px solid #d8e8eb; border-radius: 10px; background: #fff; }
.phase8-selected-files-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--teal-dark); font-size: 12px; }
.phase8-selected-files-heading span { color: var(--muted); font-size: 12px; }
.phase8-selected-files ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 0; margin: 0; list-style: none; }
.phase8-selected-files li { max-width: 260px; overflow: hidden; padding: 5px 8px; border-radius: 7px; color: #496371; background: #f1f7f8; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.phase8-questionnaire-progress { padding: 15px 17px; margin-top: 14px; border: 1px solid #c9e3e7; border-radius: 13px; background: #f8fcfd; }
.phase8-questionnaire-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.phase8-questionnaire-progress-heading h3 { margin: 4px 0 0; font-size: 16px; }
.phase8-questionnaire-progress-heading > strong { color: var(--teal-dark); font-size: 12px; font-weight: 800; }
.phase8-questionnaire-progress-track { height: 7px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: #dcebed; }
.phase8-questionnaire-progress-track span { display: block; width: calc(var(--phase8-progress, 0) * 100%); height: 100%; border-radius: inherit; background: var(--teal); transition: width .2s ease; }
.phase8-questionnaire-stats { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.phase8-questionnaire-stats b { color: var(--ink); font-size: 12px; }
.phase8-questionnaire-results { margin-top: 18px; }
.phase8-questionnaire-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.phase8-questionnaire-results-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.phase8-questionnaire-results-actions form { margin: 0; }
.phase8-questionnaire-results-heading h3 { margin: 4px 0 0; font-size: 17px; }
.phase8-questionnaire-results-count { color: var(--muted); font-size: 12px; font-weight: 750; }
.phase8-questionnaire-table { position: relative; overflow: visible; border: 1px solid #d8e8eb; border-radius: 12px; background: #fff; }
.phase8-questionnaire-table-body { position: relative; }
.phase8-questionnaire-table-head, .phase8-questionnaire-item { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 1fr) minmax(125px, .7fr) minmax(210px, auto); gap: 14px; align-items: center; }
.phase8-questionnaire-table-head { padding: 9px 13px; color: var(--muted); background: #f4fafb; font-size: 12px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.phase8-questionnaire-item { min-width: 0; padding: 12px 13px; border: 0; border-bottom: 1px solid #edf1f3; border-radius: 0; }
.phase8-questionnaire-item:last-child { border-bottom: 0; }
.phase8-questionnaire-file, .phase8-questionnaire-supplier { display: grid; gap: 3px; min-width: 0; }
.phase8-questionnaire-file b, .phase8-questionnaire-supplier strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.phase8-questionnaire-file small, .phase8-questionnaire-supplier small, .phase8-questionnaire-error { color: var(--muted); font-size: 12px; line-height: 1.35; }
.phase8-questionnaire-error { display: block; max-width: 180px; margin-top: 4px; }
.phase8-questionnaire-item-actions { min-width: 0; }
.phase8-questionnaire-detail { position: relative; z-index: 1; }
.phase8-questionnaire-item:has(.phase8-questionnaire-detail[open]) { position: relative; z-index: 4; }
.phase8-questionnaire-detail summary { padding: 6px 0; color: var(--teal-dark); font-size: 12px; font-weight: 800; cursor: pointer; list-style: none; }
.phase8-questionnaire-detail summary::-webkit-details-marker { display: none; }
.phase8-questionnaire-detail summary::after { content: "⌄"; margin-left: 5px; color: var(--teal); }
.phase8-questionnaire-detail[open] summary::after { content: "⌃"; }
.phase8-questionnaire-detail > div { position: absolute; z-index: 5; right: 0; bottom: calc(100% + 7px); display: grid; gap: 4px; width: min(260px, 70vw); padding: 10px; border: 1px solid #c9e3e7; border-radius: 9px; color: #526573; background: #fff; box-shadow: 0 10px 24px rgba(23, 66, 78, .13); font-size: 12px; }
.phase8-questionnaire-detail > div span:first-child { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.phase8-status-pill.is-review { color: #85601d; background: #fff4d9; }
@media (max-width: 900px) {
    .phase8-questionnaire-upload { grid-template-columns: 1fr 1fr; }
    .phase8-questionnaire-upload-copy { grid-column: 1 / -1; }
    .phase8-questionnaire-upload > .button { justify-self: start; }
    .phase8-questionnaire-table-head, .phase8-questionnaire-item { grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 1fr) minmax(120px, .8fr) minmax(170px, auto); }
}
@media (max-width: 760px) {
    .phase8-questionnaire-upload { grid-template-columns: 1fr; }
    .phase8-questionnaire-upload-copy, .phase8-selected-files { grid-column: auto; }
    .phase8-questionnaire-upload > .button { justify-self: stretch; }
    .phase8-questionnaire-table-head { display: none; }
    .phase8-questionnaire-item { display: grid; grid-template-columns: 1fr; gap: 9px; align-items: start; padding: 13px; }
    .phase8-questionnaire-item-actions { justify-content: flex-start; }
    .phase8-questionnaire-detail > div { position: static; width: auto; margin-top: 4px; }
}

/* Contextual summary refresh notice and one-time review warning. */
.summary-refresh-root:empty { display: none; }
.summary-refresh-cards { display: grid; gap: 9px; margin: 12px 0 18px; }
.summary-refresh-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #b9e1e7; border-radius: 12px; background: #eef8fa; color: #155a6d; }
.summary-refresh-banner .icon-bubble { flex: 0 0 auto; }
.summary-refresh-banner strong { display: block; margin: 2px 0 3px; font-size: 13px; }
.summary-refresh-banner p { margin: 0; color: #526d7e; font-size: 12px; }
.summary-refresh-copy { flex: 1 1 auto; min-width: 0; }
.summary-refresh-copy small { display: block; margin-top: 4px; color: #526d7e; font-size: 12px; }
.summary-refresh-feedback:empty { display: none; }
.summary-refresh-feedback { margin-top: 4px !important; color: #126b83 !important; font-size: 12px !important; }
.summary-refresh-banner form { flex: 0 0 auto; }
.summary-refresh-running-label { color: #526d7e; font-size: 12px; font-weight: 800; }
.phase-state-review { display: block; margin-top: 4px; color: #9a6700; font-size: 12px; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.phase-rail-status.phase-review { color: #9a6700; }
.phase-review-warning-dialog { width: min(520px, calc(100vw - 32px)); max-width: none; padding: 22px; border: 1px solid #b9e1e7; border-radius: 16px; color: #1d2934; box-shadow: 0 24px 70px rgb(20 42 54 / 24%); }
.phase-review-warning-dialog::backdrop { background: rgb(17 35 46 / 48%); backdrop-filter: blur(2px); }
.phase-review-warning-dialog .delete-dialog-header { margin-bottom: 12px; }
.phase-review-warning-dialog .delete-dialog-message { margin: 0; line-height: 1.55; }
.phase-review-warning-dialog .delete-dialog-actions { justify-content: flex-end; margin-top: 20px; }
@media (max-width: 640px) {
    .summary-refresh-banner { align-items: flex-start; flex-wrap: wrap; padding: 12px; }
    .summary-refresh-banner form, .summary-refresh-banner form .button { width: 100%; }
}

.required-field-marker { display: inline-block; margin-inline-end: .28em; color: #b42318; font-size: 1.08em; font-weight: 900; line-height: 1; }
.phase9-review-summary-state.is-none { color: #167c5a; background: #e5f6ef; }
.phase9-review-summary-state.is-found { color: #8a5c00; background: #fff4d9; }

/* Phase 11: review the source changes, then work through inputs and decisions. */
.phase11-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 2px 2px 22px; margin-bottom: 18px; border-bottom: 1px solid #dce8eb; }
.phase11-intro-copy h2 { margin: 0 0 8px; color: var(--ink); font-size: clamp(22px, 2vw, 29px); line-height: 1.2; }
.phase11-intro-copy p { max-width: 690px; margin: 0; color: #536b78; font-size: 14px; line-height: 1.55; }
.phase11-completion { display: grid; gap: 2px; flex: 0 0 180px; color: #526b78; text-align: right; }
.phase11-completion strong { color: var(--teal-dark); font-size: 21px; line-height: 1.2; }
.phase11-completion > span { font-size: 12px; font-weight: 750; }
.phase11-completion small { color: #536b78; font-size: 12px; line-height: 1.35; }
.phase11-completion-track { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: #dce8eb; }
.phase11-completion-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--teal); }
.phase11-review-job-banner { margin-bottom: 18px; }
.phase11-review-job-banner[data-status="ready"] .phase11-review-progress { display: none; }
.phase11-changed-sources { display: grid; gap: 6px; margin-top: 10px; }
.phase11-changed-sources[hidden] { display: none; }
.phase11-changed-sources > span { color: #755617; font-size: 12px; font-weight: 850; }
.phase11-changed-sources ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.phase11-changed-sources li { padding: 5px 8px; border: 1px solid #ead69e; border-radius: 7px; color: #745314; background: #fffcf4; font-size: 12px; font-weight: 700; }
.phase11-review-group { margin-bottom: 14px; border-color: #d5e5e9; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(20, 62, 76, .035); }
.phase11-review-group-toggle { min-height: 72px; padding: 14px 20px; background: #fff; }
.phase11-review-group-toggle:hover, .phase11-review-group-toggle:focus-visible { background: #f4fafb; }
.phase11-review-group-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.phase11-review-group-toggle strong { color: var(--ink); font-size: 17px; }
.phase11-review-group-toggle small { margin-top: 2px; color: #536b78; font-size: 12px; font-weight: 600; }
.phase11-review-group-toggle .phase11-group-count { flex: 0 0 auto; margin-left: auto; padding: 6px 9px; border-radius: 7px; color: var(--teal-dark); background: #e8f5f7; font-size: 12px; font-weight: 850; }
.phase11-review-group-toggle .phase11-group-chevron { display: grid; flex: 0 0 auto; width: 24px; height: 24px; place-items: center; }
.phase11-review-items { display: block; padding: 0; border-top: 1px solid #e1ecee; background: #fff; }
.phase11-review-items[hidden] { display: none; }
.phase11-review-workspace { display: grid; grid-template-columns: minmax(260px, .36fr) minmax(0, .64fr); gap: 22px; align-items: start; }
.phase11-review-index, .phase11-review-detail { min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.phase11-review-index { min-height: 310px; padding: 20px 0 20px 20px; border-right: 1px solid #dce9ec; background: #f7fbfc; }
.phase11-review-index-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 2px 12px; border-bottom: 1px solid #dce9ec; }
.phase11-review-index-heading strong { color: var(--ink); font-size: 15px; }
.phase11-review-index-heading span { color: var(--muted); font-size: 12px; font-weight: 800; }
.phase11-review-index-list { display: grid; gap: 5px; padding: 11px 16px 0 0; }
.phase11-review-index-item { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid #e0ecee; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; text-align: left; cursor: pointer; }
.phase11-review-index-item:hover, .phase11-review-index-item:focus-visible { border-color: #c7dfe4; background: #f5fbfc; outline: 0; }
.phase11-review-index-item.is-selected { border-color: #8fc9d4; background: #e5f4f7; }
.phase11-review-index-item:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.phase11-review-index-copy { display: grid; gap: 3px; min-width: 0; }
.phase11-review-index-copy strong { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 800; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.phase11-review-index-copy small { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.phase11-review-index-item .phase9-review-summary-state { flex: 0 0 auto; min-width: 25px; min-height: 23px; padding: 0 7px; font-size: 12px; }
.phase11-review-index-narrative { border-top: 1px solid #edf1f3; border-radius: 0; }
.phase11-review-detail { padding-right: 20px; }
.phase11-review-detail-content { padding: 22px 0 24px; }
.phase11-review-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid #e7eff1; }
.phase11-review-detail-heading h3 { margin: 4px 0 0; color: var(--ink); font-size: 16px; line-height: 1.3; }
.phase11-review-detail-heading .phase9-review-summary-state { flex: 0 0 auto; }
.phase11-review-detail-card { display: grid; gap: 14px; padding: 4px 0; margin-top: 11px; border: 0; border-radius: 0; background: transparent; }
.phase11-review-detail-card-heading { display: grid; gap: 3px; padding-bottom: 9px; border-bottom: 1px solid #e8eff1; }
.phase11-review-detail-card-heading span, .phase11-review-sources > span { color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.phase11-review-detail-card-heading strong { color: var(--ink); font-size: 13px; line-height: 1.3; }
.phase11-review-sources { display: grid; gap: 6px; }
.phase11-review-sources > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 7px; }
.phase11-review-sources > div span { display: grid; gap: 3px; min-height: 43px; padding: 7px 9px; border-radius: 6px; color: #315867; background: #eef7f8; }
.phase11-review-sources > div span strong { font-size: 12px; font-weight: 750; }
.phase11-review-sources > div span small { color: #526d7e; font-size: 12px; font-weight: 500; }
.phase11-review-sources > div span.is-consulted { background: #f2f5f6; color: #455c68; }
.phase11-review-sources > div span.is-empty { color: var(--muted); background: #eef3f4; }
.phase11-review-detail-card .phase9-review-fields { grid-template-columns: minmax(120px, .22fr) minmax(0, .78fr); padding-top: 0; }
.phase11-review-detail-card .phase9-review-fields textarea { min-height: 132px; }
.phase11-review-detail-card .phase9-review-fields label > span { font-size: 13px; }
.phase11-review-ai-draft { padding: 10px 12px; border-top: 1px solid #dce9ec; color: var(--ink); }
.phase11-review-ai-draft summary { color: var(--teal-dark); font-size: 13px; font-weight: 750; cursor: pointer; }
.phase11-review-ai-draft p { margin: 10px 0; font-size: 13px; line-height: 1.55; }
.phase11-review-ai-draft .phase11-review-sources { margin-top: 12px; }
.phase11-review-detail-empty { display: grid; gap: 6px; min-height: 230px; place-content: center; padding: 24px; color: var(--muted); text-align: center; }
.phase11-review-detail-empty strong { color: var(--ink); font-size: 14px; }
.phase11-review-detail-empty p { margin: 0; font-size: 13px; }
.phase11-review-narrative-detail .phase11-review-detail-card { margin-top: 14px; }
.phase11-review-narrative-detail .phase9-review-narratives { display: grid; grid-template-columns: 1fr; padding-top: 0; }
.phase11-review-narrative-detail .phase9-review-narratives textarea { min-height: 230px; }
@media (max-width: 780px) {
    .phase11-intro { align-items: flex-start; flex-direction: column; gap: 16px; }
    .phase11-completion { width: 100%; flex-basis: auto; text-align: left; }
    .phase11-review-workspace { grid-template-columns: 1fr; gap: 14px; }
    .phase11-review-index { min-height: 0; padding: 16px 18px 12px; border-right: 0; border-bottom: 1px solid #dce9ec; }
    .phase11-review-index-list { display: flex; overflow-x: auto; padding-bottom: 4px; }
    .phase11-review-index-item { flex: 0 0 auto; width: min(300px, 82vw); }
    .phase11-review-index-narrative { border-top: 0; }
    .phase11-review-detail { padding: 0 18px; }
}
@media (max-width: 560px) {
    .phase11-review-group-toggle { flex-wrap: wrap; padding: 14px; }
    .phase11-review-group-toggle .phase11-group-count { margin-left: 0; }
    .phase11-review-detail-content { padding: 12px 0 18px; }
    .phase11-review-detail-heading { flex-direction: column; }
    .phase11-review-detail-card .phase9-review-fields { grid-template-columns: 1fr; }
}
.phase8-extraction { display: grid; gap: 4px; padding: 12px; margin-bottom: 12px; border: 1px solid #b9e0e6; border-radius: 8px; background: #f0fafb; color: #465d6a; }
.phase8-extraction.is-error { border-color: #efb6b6; background: #fff4f4; color: #a33c3c; }
.phase8-provenance { display: inline-block; margin-left: 7px; color: #1b7184; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.phase8-calculation .field.is-missing input { border-color: #e5bf61; background: #fff9e9; }
.phase8-calculation .field .helper { display: block; margin-top: 4px; font-size: 12px; }
.phase8-calculation { margin-top: 10px; border: 1px solid #dbe7eb; border-radius: 10px; background: white; }
.phase8-calculation summary { display: flex; justify-content: space-between; gap: 10px; padding: 14px; cursor: pointer; font-weight: 800; }
.phase8-calculation form { padding: 0 14px 14px; }
.phase8-supplier-section { padding: 18px 0 2px; margin-top: 16px; border-top: 1px solid #e1ebee; }
.phase8-supplier-section:first-child { padding-top: 4px; margin-top: 0; border-top: 0; }
.phase8-supplier-section h4 { margin: 5px 0 14px; color: var(--ink); font-size: 17px; }
.phase8-criteria-section .form-grid { align-items: start; }
.phase8-criteria-section .field { display: flex; flex-direction: column; }
.phase8-criteria-section .field > label { min-height: 3.75em; }
.phase8-required-marker { flex: 0 0 auto; align-self: flex-start; margin-inline-end: 4px; color: var(--red); font-size: 1.15em; font-weight: 900; line-height: 1; }
.phase8-supplier-form .field input, .phase8-supplier-form .field select { width: 100%; box-sizing: border-box; }
@media (max-width: 760px) { .phase8-supplier-intro { grid-template-columns: 1fr; } .phase8-supplier-selector { grid-template-columns: 1fr; } .phase8-supplier-card header { display: grid; } .phase8-evidence-row, .phase8-evidence-row form { align-items: stretch; flex-direction: column; } .phase8-file-picker-compact { max-width: none; width: 100%; } .phase8-standard-document, .phase8-questionnaire-item, .phase8-questionnaire-retry { align-items: stretch; flex-direction: column; } .phase8-questionnaire-item-actions { justify-content: flex-start; } .phase8-questionnaire-retry form, .phase8-questionnaire-retry form .button { width: 100%; } .phase8-criteria-section .field > label { min-height: 0; } .phase8-monitoring-intro, .phase8-monitoring-row-controls { grid-template-columns: 1fr; } .phase8-monitoring-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phase8-monitoring-details-grid { grid-template-columns: 1fr; } }

/* Phase 8 Step 2: monitoring registry / master-detail workspace. */
.phase8-monitoring-card { padding: 24px; }
.phase8-monitoring-card .phase8-monitoring-intro { grid-template-columns: 1fr; gap: 0; }
.phase8-monitoring-card .phase8-monitoring-intro h2 { margin-bottom: 5px; }
.phase8-monitoring-card .phase7-document-toolbar { margin: 16px 0 12px; }
.phase8-monitoring-browser { display: grid; grid-template-columns: minmax(150px, .23fr) minmax(245px, .38fr) minmax(330px, .65fr); gap: 10px; align-items: start; }
.phase8-monitoring-index, .phase8-monitoring-results, .phase8-monitoring-detail-pane { min-width: 0; border: 1px solid #cfe2e6; border-radius: 13px; background: white; box-shadow: 0 5px 16px rgba(27,74,87,.04); }
.phase8-monitoring-index { position: sticky; top: 136px; max-height: calc(100vh - 160px); overflow: auto; }
.phase8-monitoring-index-heading, .phase8-monitoring-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 14px 10px; border-bottom: 1px solid #e7eff1; }
.phase8-monitoring-index-heading strong, .phase8-monitoring-panel-heading strong { color: var(--ink); font-size: 13px; }
.phase8-monitoring-index-heading span, .phase8-monitoring-panel-heading span { color: var(--muted); font-size: 12px; font-weight: 800; }
.phase8-monitoring-index-list { display: grid; gap: 4px; padding: 6px; }
.phase8-monitoring-index-item { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 7px; min-height: 38px; padding: 8px 9px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; font-weight: 850; text-align: left; cursor: pointer; }
.phase8-monitoring-index-item:hover, .phase8-monitoring-index-item:focus-visible { border-color: #c7dfe4; color: var(--teal-dark); background: #f5fbfc; outline: 0; }
.phase8-monitoring-index-item.is-active { border-color: #9ed5df; color: var(--teal-dark); background: #eaf7f8; }
.phase8-monitoring-index-item b { display: inline-grid; place-items: center; min-width: 19px; height: 19px; border-radius: 99px; color: var(--teal-dark); background: white; font-size: 12px; }
.phase8-monitoring-results { overflow: hidden; }
.phase8-monitoring-panel.is-hidden { display: none; }
.phase8-monitoring-panel-heading { padding-bottom: 11px; }
.phase8-monitoring-area { border-bottom: 1px solid #edf1f3; }
.phase8-monitoring-area:last-child { border-bottom: 0; }
.phase8-monitoring-area-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 7px; color: var(--teal-dark); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .035em; }
.phase8-monitoring-area-heading span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 99px; color: var(--muted); background: #f1f7f8; font-size: 12px; }
.phase8-monitoring-list { display: grid; gap: 4px; padding: 0 7px 8px; }
.phase8-monitoring-row { display: block; padding: 0; border: 1px solid transparent; border-radius: 9px; background: white; }
.phase8-monitoring-row:hover { border-color: #c7dfe4; background: #f9fcfd; }
.phase8-monitoring-row.is-selected { border-color: #8fcfda; background: #eaf7f8; }
.phase8-monitoring-row[hidden], .phase8-monitoring-area[hidden] { display: none; }
.phase8-monitoring-row-summary { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; min-width: 0; padding: 9px 9px; border: 0; border-radius: inherit; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.phase8-monitoring-row-summary:focus-visible { outline: 3px solid rgba(23,107,135,.18); outline-offset: -2px; }
.phase8-monitoring-row-copy, .phase8-monitoring-row-meta { display: grid; gap: 3px; min-width: 0; }
.phase8-monitoring-row-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.phase8-monitoring-row-copy small { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.phase8-monitoring-row-meta { flex: 0 0 auto; justify-items: end; }
.phase8-monitoring-row-meta > span:last-child { color: var(--teal); font-size: 16px; line-height: .8; }
.phase8-monitoring-row-status, .phase8-monitoring-detail-status { display: inline-flex; align-items: center; min-height: 18px; padding: 0 6px; border-radius: 99px; color: #946a13; background: #fff4d9; font-size: 12px; font-weight: 850; white-space: nowrap; }
.phase8-monitoring-row-status.is-complete, .phase8-monitoring-detail-status.is-complete { color: #236a4f; background: #e3f5eb; }
.phase8-monitoring-detail-slot { display: none; }
.phase8-monitoring-detail-pane { position: sticky; top: 136px; max-height: calc(100vh - 160px); overflow: auto; }
.phase8-monitoring-detail-empty { display: grid; gap: 7px; min-height: 220px; align-content: center; padding: 24px; color: var(--muted); text-align: center; }
.phase8-monitoring-detail-empty strong { color: var(--ink); font-size: 14px; }
.phase8-monitoring-detail-empty p { margin: 0; font-size: 12px; }
.phase8-monitoring-row-detail { padding: 16px; }
.phase8-monitoring-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid #e7eff1; }
.phase8-monitoring-detail-heading h3 { margin: 4px 0 0; color: var(--ink); font-size: 15px; line-height: 1.3; }
.phase8-monitoring-detail-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.phase8-monitoring-detail-facts { display: grid; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf1f3; }
.phase8-monitoring-detail-facts div { display: grid; gap: 4px; }
.phase8-monitoring-detail-facts span, .phase8-monitoring-editor-label { color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.phase8-monitoring-detail-facts strong { color: #425664; font-size: 12px; font-weight: 700; line-height: 1.4; }
.phase8-monitoring-detail-editor { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 14px; align-items: end; padding: 14px 0; border-bottom: 1px solid #edf1f3; }
.phase8-monitoring-editor-choice { display: grid; gap: 8px; }
.phase8-monitoring-choice-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.phase8-monitoring-choice-buttons .button { min-height: 32px; padding: 0 9px; font-size: 12px; background: white; }
.phase8-monitoring-choice-buttons .button.is-selected { color: white; border-color: var(--teal); background: var(--teal); }
.phase8-monitoring-date { margin: 0; }
.phase8-monitoring-detail-overrides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 14px; }
.phase8-monitoring-detail-overrides .field { margin: 0; }
.phase8-monitoring-detail-overrides input, .phase8-monitoring-date input { width: 100%; box-sizing: border-box; }
.phase8-monitoring-hint { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) { .phase8-monitoring-browser { grid-template-columns: minmax(140px, .25fr) minmax(230px, .42fr) minmax(280px, .58fr); } .phase8-monitoring-detail-editor { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .phase8-monitoring-browser { grid-template-columns: 1fr; } .phase8-monitoring-index, .phase8-monitoring-detail-pane { position: static; max-height: none; } .phase8-monitoring-index-list { display: flex; overflow-x: auto; } .phase8-monitoring-index-item { flex: 0 0 auto; width: auto; } }
@media (max-width: 560px) { .phase8-monitoring-card { padding: 16px; } .phase8-monitoring-detail-overrides { grid-template-columns: 1fr; } .phase8-monitoring-detail-heading { flex-direction: column; } }
.phase-save-actions { display: flex; align-items: center; gap: 12px; padding-top: 18px; margin-top: 20px; border-top: 1px solid #edf1f3; }
.phase-save-actions { max-width: 1050px; margin: 17px auto 0; }
.phase-save-actions > span { flex: 1; }
.toast-stack { position: fixed; top: 87px; right: 28px; z-index: 10; display: grid; gap: 8px; width: min(360px, calc(100% - 40px)); }
.toast { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid #bfe4d0; border-radius: 10px; color: #1d674c; background: #effbf4; box-shadow: var(--shadow); font-size: 12px; }
.toast-error { border-color: #efcaca; color: #994040; background: #fff5f5; }
.toast-info { border-color: #c9e3e7; color: var(--teal-dark); background: #effafc; }
.toast-close { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; color: inherit; background: none; }
.toast-close .icon-svg { width: 15px; height: 15px; }

/* Company editor refresh */
.company-edit-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(350px, .88fr); gap: 20px; align-items: start; }
.company-edit-sidebar { display: grid; gap: 20px; min-width: 0; }
.company-edit-grid.company-editor-stack { grid-template-columns: minmax(0, 1fr); }
.company-document-guidance { margin: 0 0 20px; max-width: 72ch; color: var(--muted); line-height: 1.6; }
.company-data-panel, .company-edit-sidebar .panel { min-width: 0; }
.company-data-panel .panel-header { align-items: center; }
.company-local-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; margin-top: 6px; border-top: 1px solid #edf1f3; }
.company-local-actions .button { flex: 0 0 auto; }
.company-edit-sidebar .company-documents-panel { margin: 0; overflow: hidden; }
.company-edit-sidebar .company-logo-panel { margin: 0; }
.company-logo-remove { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; margin-top: 10px; border: 1px solid #d6e3e8; border-radius: 9px; color: var(--muted); background: white; font: inherit; font-size: 12px; cursor: pointer; }
.company-logo-remove:hover, .company-logo-remove.is-selected { border-color: #e3b85b; color: #986d1a; background: #fff8e8; }
.company-logo-remove .icon-svg { width: 15px; height: 15px; }
.company-analysis-card { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; padding: 15px; margin-bottom: 14px; }
.company-analysis-icon { position: static; }
.company-analysis-card .button { white-space: nowrap; }
.company-document-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 14px; margin-bottom: 16px; }
.document-upload-copy { min-width: 0; grid-column: 1 / -1; }
.document-upload-input { min-width: 0; }
.company-document-upload .button { min-height: 40px; }
.company-document-table th:nth-child(2), .company-document-table td:nth-child(2) { text-align: right; }
.company-document-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.company-document-table td { white-space: normal; }
.company-document-table td:first-child { min-width: 0; }
.company-document-table td:first-child strong { display: block; overflow-wrap: anywhere; }
.logo-form { display: grid; gap: 0; }
.logo-upload-card { grid-template-columns: 64px minmax(0, 1fr); gap: 13px; }
.logo-preview { width: 64px; height: 64px; border-radius: 14px; }
.logo-preview-empty { color: var(--teal); background: var(--teal-soft); }
.logo-preview-empty span { color: inherit; font-size: 14px; font-weight: 800; }
.logo-current-copy { align-self: center; }
.logo-upload-field { grid-column: 1 / -1; }
.logo-file-input input[type="file"] { width: 100%; min-width: 0; padding: 10px; border: 1px dashed #b9d5dc; border-radius: 9px; color: var(--muted); background: #fbfdfe; font-size: 12px; }
.company-edit-sidebar .company-proposals { max-height: 420px; overflow: auto; }
.company-data-panel { padding-bottom: 19px; }
.company-data-panel .company-form-section h3, .create-logo-section h3 { margin-bottom: 12px; font-size: 14px; }
.company-data-fields { gap: 0; }
.company-data-fields .company-form-section:first-child { padding-top: 0; }
.company-data-fields .company-description-section { padding-top: 22px; margin-top: 22px; border-top: 1px solid #edf1f3; }
.page-legend { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 10px; padding: 12px 14px; margin-bottom: 13px; border: 1px solid #d5e9ec; border-radius: 10px; color: #3f5b68; background: #f4fbfc; }
.page-legend-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--teal); background: #e3f2f4; }
.page-legend-icon .icon-svg { width: 16px; height: 16px; }
.page-legend strong { display: block; color: var(--teal-dark); font-size: 12px; line-height: 1.4; }
.page-legend p { margin: 3px 0 0; color: #526a76; font-size: 12px; line-height: 1.45; }
.phase4-scoring-legend-content { min-width: 0; }
.phase4-scoring-legend-content > strong { font-size: 12px; }
.phase4-scoring-legend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.phase4-scoring-legend-grid > div { min-width: 0; padding-top: 8px; border-top: 1px solid #d5e9ec; }
.phase4-scoring-legend-grid > div > strong { font-size: 12px; }
.phase4-scoring-legend-grid p b { color: #3f5b68; }
@media (max-width: 760px) { .phase4-scoring-legend-grid { grid-template-columns: 1fr; gap: 9px; } }
.company-panel-divider { height: 1px; margin: 22px 0 19px; background: #edf1f3; }
.inline-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.inline-panel-header h3 { font-size: 14px; }
.company-data-panel .company-local-actions { margin-top: 0; }
.company-documents-panel .panel-header { align-items: center; }
.icon-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #d9e5e9; border-radius: 8px; color: var(--teal); background: white; }
.icon-button:hover { border-color: #9bcfd4; background: var(--teal-soft); }
.icon-svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.company-document-upload { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 0 0 14px; margin-bottom: 13px; border: 0; border-bottom: 1px solid #edf1f3; border-radius: 0; background: transparent; }
.company-document-upload .document-upload-input { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.company-document-upload .document-upload-input input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.company-document-select { flex: 0 0 auto; min-height: 38px; cursor: pointer; }
.company-document-upload .document-upload-input input[type="file"]:focus-visible + .company-document-select { outline: 3px solid rgba(22,115,135,.24); outline-offset: 2px; border-color: var(--teal); }
.company-document-selection { min-width: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.company-analysis-card-compact { grid-template-columns: minmax(0, 1fr) auto; padding: 11px 0; margin-bottom: 0; border: 0; border-bottom: 1px solid #edf1f3; border-radius: 0; background: transparent; box-shadow: none; }
.company-analysis-card-compact .company-analysis-copy { display: grid; gap: 3px; }
.company-analysis-card-compact .company-analysis-copy strong { font-size: 12px; }
.ai-analysis-row { padding: 13px; margin-top: 13px; border: 1px solid #c9e3e7; border-radius: 12px; background: #f4fbfc; }
.ai-analysis-row .company-analysis-copy { gap: 4px; }
.ai-analysis-label { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.ai-spark { position: relative; display: inline-block; width: 11px; height: 11px; color: currentColor; }
.ai-spark::before { position: absolute; top: 3px; left: 3px; width: 6px; height: 6px; border-radius: 2px; background: currentColor; transform: rotate(45deg); content: ""; }
.ai-spark::after { position: absolute; top: 0; right: 0; width: 2px; height: 2px; border-radius: 50%; background: currentColor; content: ""; }
.document-summary-list { display: grid; gap: 0; padding-top: 3px; }
.document-summary-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf1f3; }
.document-summary-item:last-of-type { border-bottom: 0; }
.document-summary-item strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.document-summary-item span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.company-documents-modal { width: min(700px, calc(100% - 32px)); padding: 38px 40px 40px; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: 0 22px 60px rgba(23, 37, 46, .22); }
.company-documents-modal::backdrop { background: rgba(23, 37, 46, .32); }
.phase9-documents-modal { max-height: calc(100dvh - 32px); overflow: auto; }
.phase9-documents-list { max-height: 50dvh; overflow-y: auto; overscroll-behavior: contain; padding: 0; margin: 16px 0 0; list-style: none; }
.phase9-documents-list .phase9-evidence-item { gap: 20px; padding: 23px 0; }
.phase9-documents-list .phase9-evidence-item-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.phase9-documents-list .phase9-evidence-item-copy strong { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; white-space: normal; }
.phase9-documents-list .phase9-evidence-error { overflow-wrap: anywhere; white-space: normal; }
.phase9-documents-list .phase9-evidence-delete { width: 48px; height: 48px; border-radius: 11px; }
.phase9-documents-list .phase9-evidence-delete .icon-svg { width: 20px; height: 20px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 27px; margin-bottom: 0; border-bottom: 0; }
.modal-header .section-kicker { margin-bottom: 17px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.modal-header h2 { margin-bottom: 12px; font-size: 30px; }
.modal-subtitle { display: block; color: var(--muted); font-size: 16px; }
.modal-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; color: var(--muted); background: transparent; }
.modal-close:hover { color: var(--ink); }
.modal-close:focus-visible, .modal-icon-button:focus-visible, .icon-button:focus-visible { outline: 2px solid #9bcfd4; outline-offset: 3px; }
.document-modal-list { display: grid; }
.document-modal-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; border-bottom: 1px solid #edf1f3; }
.document-modal-row > div:first-child { min-width: 0; }
.document-modal-row strong, .document-modal-row span { display: block; overflow-wrap: anywhere; }
.document-modal-row strong { color: var(--ink); font-size: 16px; }
.document-modal-row span { margin-top: 8px; font-size: 14px; }
.document-modal-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.document-modal-actions form { margin: 0; }
.modal-icon-button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #d6e3e8; border-radius: 11px; color: var(--teal); background: white; }
.modal-icon-button:hover { border-color: #9bcfd4; background: var(--teal-soft); }
.company-documents-modal .modal-icon-button[data-delete-trigger],
.phase9-documents-list .phase9-evidence-delete { border-color: #f0cccc; color: var(--red); background: #fff7f7; }
.company-documents-modal .modal-icon-button[data-delete-trigger]:hover,
.phase9-documents-list .phase9-evidence-delete:hover { border-color: #e5aaaa; color: var(--red); background: #fff1f1; }
.modal-actions { display: flex; justify-content: flex-end; padding-top: 28px; }
.modal-actions .button { min-width: 132px; min-height: 48px; }
.company-initial-lead { margin: -4px 0 14px; font-size: 12px; line-height: 1.45; }
.initial-documents-dropzone { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; padding: 13px; border: 1px dashed #b9d5dc; border-radius: 11px; background: #f4fbfc; }
.initial-documents-dropzone .upload-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 19px; }
.initial-documents-dropzone strong, .initial-documents-dropzone small { display: block; }
.initial-documents-dropzone strong { margin-bottom: 3px; font-size: 12px; }
.initial-documents-dropzone .initial-documents-input { grid-column: 2; min-width: 0; }
.initial-documents-dropzone input[type="file"] { width: 100%; min-width: 0; color: var(--muted); font-size: 12px; }
.initial-analysis-strip { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; margin-top: 14px; border: 1px solid #c9e3e7; border-radius: 11px; background: linear-gradient(135deg, #effafc, #fbfdfe); }
.initial-analysis-strip .company-analysis-icon { position: static; }
.initial-analysis-strip strong, .initial-analysis-strip small { display: block; }
.initial-analysis-strip strong { margin-bottom: 3px; font-size: 12px; }
.initial-analysis-strip .button { white-space: nowrap; }
.create-logo-section { padding-top: 1px; }
.compact-logo-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 42px 42px; gap: 13px; align-items: center; }
.compact-logo-row .logo-preview { width: 64px; height: 64px; border-radius: 14px; }
.company-create-form .compact-logo-row { grid-template-columns: 64px minmax(0, 1fr) 42px; }
.compact-logo-row .logo-current-copy { display: grid; gap: 4px; }
.compact-logo-row .logo-current-copy strong { color: var(--ink); font-size: 14px; }
.compact-logo-row.has-pending-logo .logo-current-copy strong { color: var(--teal-dark); }
.company-logo-filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-logo-cancel { justify-self: start; padding: 2px 0; border: 0; color: var(--teal-dark); background: transparent; font: inherit; font-size: 12px; font-weight: 750; text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.company-logo-cancel:hover { color: var(--ink); }
.company-logo-cancel:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 3px; }
.logo-upload-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #d6e3e8; border-radius: 12px; color: var(--teal); background: white; cursor: pointer; }
.logo-upload-button:hover { border-color: #9bcfd4; background: var(--teal-soft); }
.upload-arrow-icon { position: relative; display: block; width: 15px; height: 17px; border-bottom: 1.8px solid currentColor; }
.upload-arrow-icon::before { position: absolute; top: 2px; left: 6px; width: 1.8px; height: 11px; background: currentColor; content: ""; }
.upload-arrow-icon::after { position: absolute; top: 1px; left: 3px; width: 6px; height: 6px; border-top: 1.8px solid currentColor; border-left: 1.8px solid currentColor; transform: rotate(45deg); content: ""; }
.logo-file-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.logo-file-hidden input[type="file"] { width: 1px; height: 1px; }
.company-create-form .company-data-panel { padding-bottom: 18px; }
.company-create-documents .panel-header { margin-bottom: 20px; }
.company-create-document-input { padding-bottom: 14px; border-bottom: 1px solid #edf1f3; }
.company-create-documents .company-analysis-card-compact { border-bottom: 0; }

@media (max-width: 980px) {
    .company-edit-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); }
}

@media (max-width: 720px) {
    .company-documents-modal { padding: 28px 22px 24px; }
    .modal-header h2 { font-size: 24px; }
    .modal-header .section-kicker { margin-bottom: 13px; font-size: 12px; }
    .modal-subtitle { font-size: 14px; }
    .document-modal-actions { justify-content: flex-end; }
    .company-edit-grid { grid-template-columns: 1fr; }
    .company-analysis-card { grid-template-columns: 30px minmax(0, 1fr); }
    .company-analysis-card .button { grid-column: 2; justify-self: start; margin-top: 10px; }
    .company-document-upload { grid-template-columns: 1fr; }
    .company-document-upload .button { width: 100%; }
    .document-modal-row { align-items: flex-start; flex-direction: column; }
    .document-modal-actions { width: 100%; }
    .document-modal-actions .button { flex: 1; }
    .company-local-actions { align-items: stretch; flex-direction: column; }
    .company-local-actions .button { width: 100%; }
    .initial-documents-dropzone { grid-template-columns: 38px minmax(0, 1fr); }
    .initial-documents-dropzone .initial-documents-input { grid-column: 1 / -1; }
    .initial-analysis-strip { grid-template-columns: 30px minmax(0, 1fr); }
    .initial-analysis-strip .button { grid-column: 2; justify-self: start; margin-top: 4px; }
}

@media (max-width: 980px) {
    .sidebar { width: 225px; flex-basis: 225px; }
    .company-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .phase-roadmap { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .phase8-report-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .phase8-report-site, .phase8-report-officer, .phase8-report-notes { grid-column: 1 / -1; }
    .phase8-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .app-shell { display: block; }
    .main-area, .sidebar-collapsed .main-area { margin-left: 0; }
    .sidebar { width: 260px; flex-basis: 260px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 14px 0 30px rgba(0,0,0,.16); }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-collapsed .sidebar { width: 260px; transform: translateX(-105%); }
    .sidebar-collapsed .sidebar.is-open { transform: translateX(0); }
    .sidebar-collapsed .brand { justify-content: flex-start; padding-top: 0; padding-right: 42px; }
    .sidebar-collapsed .brand > span:last-child, .sidebar-collapsed .nav-label, .sidebar-collapsed .nav-link-label, .sidebar-collapsed .user-card-copy, .sidebar-collapsed .user-logout-label { display: block; }
    .sidebar-collapsed .nav-link { justify-content: flex-start; padding: 11px 12px; }
    .sidebar-collapsed .nav-icon { width: 18px; }
    .sidebar-collapsed .user-card { justify-content: initial; padding-right: 8px; padding-left: 8px; }
    .sidebar-collapsed .logout-form { margin-left: auto; }
    .sidebar-collapsed .user-logout { display: block; width: auto; height: auto; padding: 5px 0; }
    .sidebar-collapsed .user-logout .logout-icon { display: none; }
    .mobile-menu { display: block; }
    .topbar { padding: 0 18px; }
    .breadcrumb-muted, .breadcrumb-separator { display: none; }
    .page-content { width: min(100% - 28px, 600px); padding-top: 29px; }
    .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 25px; }
    .page-heading .button { width: 100%; }
    .metric-row, .company-grid, .project-grid, .profile-grid, .form-page-grid, .detail-grid { grid-template-columns: 1fr; }
    .metric-row { gap: 9px; margin-bottom: 27px; }
    .metric-card { min-height: 105px; padding: 16px; }
    .metric-card strong { font-size: 25px; }
    .form-grid-two { grid-template-columns: 1fr; }
    .form-grid-three { grid-template-columns: 1fr; }
    .project-form-fields { grid-template-columns: 1fr; }
    .project-form-fields .field-full { grid-column: auto; }
    .company-field-grid, .phase4-factor-grid, .phase4-factor-group, .phase4-factor-edit-row, .phase4-add-factor, .phase4-acro-row-details { grid-template-columns: 1fr; }
    .phase4-acro-score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .phase4-acro-party-heading { align-items: flex-start; flex-direction: column; }
    .phase4-acro-expectation-groups { padding: 14px; }
    .field-full { grid-column: auto; }
    .form-actions { flex-wrap: wrap; }
    .form-actions > span:first-child { flex: 1 0 100%; order: 3; }
    .form-actions .button { flex: 1; }
    .company-document-upload { align-items: stretch; flex-direction: column; }
    .company-analysis-card, .company-proposal { align-items: stretch; flex-direction: column; }
    .company-analysis-card .button, .proposal-actions .button { width: 100%; }
    .proposal-actions form { flex-direction: column; }
    .document-upload-copy, .document-upload-input { width: 100%; min-width: 0; }
.company-document-upload .document-upload-input { flex-wrap: wrap; }
.company-document-select { flex: 0 0 auto; }
.company-document-selection { flex: 1 1 130px; }
.company-document-upload .button { width: 100%; }
    .company-form-actions .button:first-child { margin-right: 0; }
    .logo-upload-card { grid-template-columns: 64px minmax(0, 1fr); }
    .logo-preview { width: 64px; height: 64px; }
    .subnav { overflow-x: auto; }
    .subnav-link { flex: 1 0 auto; text-align: center; }
    .section-toolbar { align-items: flex-start; flex-direction: column; }
    .iso-choice-grid { grid-template-columns: 1fr; }
    .phase-roadmap { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .summary-grid, .project-summary-grid { grid-template-columns: 1fr; }
    .phase-context-bar { align-items: flex-start; flex-direction: column; }
    .phase-question-card { padding: 18px; }
    .repeatable-heading, .repeatable-row { align-items: stretch; flex-direction: column; grid-template-columns: 1fr; }
    .phase8-participant-list { grid-template-columns: 1fr; }
    .phase8-participant-list .repeatable-row { display: grid; align-items: end; flex-direction: initial; grid-template-columns: minmax(0, 1fr) auto; }
    .phase8-report-fields, .phase8-choice-grid { grid-template-columns: 1fr; }
    .phase8-report-site, .phase8-report-officer, .phase8-report-notes, .phase8-choice-grid, .phase8-choice-note { grid-column: auto; }
    .phase8-upload-section { grid-template-columns: 1fr; }
    .phase8-upload-row { align-items: stretch; flex-direction: column; }
    .phase8-upload-row input[type="file"] { max-width: none; }
    .phase8-report-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .phase8-report-heading p { text-align: left; }
    .repeatable-heading .button { width: 100%; }
    .phase-save-actions, .phase-question-navigation { flex-wrap: wrap; }
    .phase-save-actions .button, .phase-question-navigation .button { flex: 1; }
    .phase-question-navigation { display: flex; }
    .phase-question-progress { order: -1; flex: 1 0 100%; }
    .phase-save-actions > span { display: none; }
    .phase-context-actions, .phase-bottom-navigation, .phase4-actions, .phase4-navigation, .phase4-context { align-items: stretch; flex-direction: column; }
    .phase4-actions .button, .phase4-navigation .button, .phase4-summary-actions .button { width: 100%; }
    .project-row { align-items: flex-start; }
    .project-side { margin-left: auto; }
    .project-side .status-pill { max-width: 80px; text-align: center; }
    .project-preliminary-card { align-items: flex-start; flex-direction: column; }
    .project-preliminary-card-status { justify-items: start; min-width: 0; text-align: left; }
    .project-preliminary-card-status .small { white-space: normal; }
}

/* Unified phase navigation */
.phase-rail { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(220px, 1.4fr) minmax(170px, 1fr); align-items: center; gap: 20px; max-width: none; padding: 14px 18px; margin: 0 auto 18px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 24px rgba(27, 55, 68, .05); }
.phase-rail-summary { max-width: none; }
.phase-rail-project { justify-self: start; color: var(--teal); font-size: 12px; font-weight: 800; }
.phase-rail-current { display: grid; justify-items: center; gap: 3px; min-width: 0; text-align: center; }
.phase-rail-status { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 10px; border-radius: 99px; font-family: inherit; font-size: 15px; font-style: normal; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; font-synthesis: none; text-rendering: optimizeLegibility; }
.phase-rail-status.phase-in_progress { color: #86621c; background: var(--amber-soft); }
.phase-rail-status.phase-completed { color: var(--green); background: var(--green-soft); }
.phase-rail-siblings { display: flex; justify-content: flex-end; gap: 8px; }
.phase-rail-siblings a { padding: 8px 10px; border: 1px solid #d9e7eb; border-radius: 8px; color: var(--teal); background: #fbfdfe; font-size: 12px; font-weight: 800; white-space: nowrap; }
.phase-rail-siblings a:hover { border-color: #9bcfd4; background: var(--teal-soft); }
.phase-stepper { overflow-x: auto; }
.phase-step { min-width: 0; }
.phase4-navigation { padding-top: 14px; margin-top: 16px; }

@media (max-width: 760px) {
    .phase-rail { grid-template-columns: 1fr; gap: 11px; align-items: stretch; padding: 14px; }
    .phase-rail-project { justify-self: start; }
    .phase-rail-current { justify-items: start; text-align: left; }
    .phase-rail-siblings { justify-content: stretch; }
    .phase-rail-siblings a { flex: 1; text-align: center; }
    .phase-question-navigation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
    .phase-question-progress { grid-column: 1 / -1; grid-row: 1; }
    .phase-question-navigation [data-phase-prev] { grid-column: 1; grid-row: 2; }
    .phase-question-navigation [data-phase-next] { grid-column: 2; grid-row: 2; width: 100%; }
}

/* Authentication */
.user-card-copy { min-width: 0; flex: 1; }
.user-card-copy strong, .user-card-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-form { margin-left: auto; }
.user-logout { padding: 5px 0; border: 0; color: #9fc0c7; background: transparent; font-size: 12px; font-weight: 800; }
.user-logout:hover { color: white; }
.auth-page { min-height: 100vh; background: var(--canvas); }
.auth-shell { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.auth-card { width: min(100%, 430px); padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 18px 45px rgba(28, 48, 64, .1); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 44px; }
.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { color: var(--ink); font-size: 15px; }
.auth-brand small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.auth-heading { margin-bottom: 27px; }
.auth-heading h1 { margin-top: 2px; }
.auth-heading p { margin: 11px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.auth-form .field { margin-bottom: 16px; }
.auth-form .button { margin-top: 5px; }
.auth-form .form-alert { color: var(--red); border: 1px solid #f0cccc; background: #fff5f5; }

/* Phase 1 mansionario editor and compact matrix */
.phase1-editor-list, .phase1-competency-groups { gap: 12px; margin: 20px 0 16px; }
.phase1-editor-row { grid-template-columns: 34px minmax(0, 1fr) auto 34px; gap: 10px; min-height: 58px; padding: 10px 12px; border-color: #dfe8ec; border-radius: 12px; background: #fbfdfe; }
.phase1-editor-row:hover { border-color: #b9d8dd; background: #fff; box-shadow: 0 5px 16px rgba(27, 55, 68, .05); }
.phase1-editor-row input, .phase1-editor-row select { min-height: 38px; padding: 9px 11px; border-color: #d5e0e5; border-radius: 9px; font-size: 13px; }
.phase1-editor-row input:focus, .phase1-editor-row select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22, 115, 135, .12); outline: 0; }
.phase1-row-index { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--teal-dark); background: var(--teal-soft); font-size: 12px; font-weight: 850; }
.phase1-source-pill { padding: 6px 9px; border: 1px solid #dfe7ec; border-radius: 99px; color: var(--muted); background: #f7f9fa; font-size: 12px; font-weight: 800; white-space: nowrap; }
.phase1-source-pill.is-organigram { border-color: #bfe2e5; color: var(--teal-dark); background: var(--teal-soft); }
.phase1-remove-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #efcaca; border-radius: 9px; color: var(--red); background: #fff7f7; font-size: 20px; line-height: 1; cursor: pointer; }
.phase1-remove-button .icon-svg { width: 14px; height: 14px; }
.phase1-remove-button:hover, .phase1-remove-button:focus-visible { border-color: var(--red); background: #fff0f0; }
.phase1-competency-group { gap: 8px; padding: 14px; border: 1px solid #e3eaee; border-radius: 14px; background: #f9fbfc; }
.phase1-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 7px; border-bottom: 1px solid #e5ecef; }
.phase1-group-heading h3 { margin: 0; color: var(--ink); font-size: 14px; }
.phase1-group-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.phase1-competency-row { grid-template-columns: 34px minmax(0, 1fr) 132px 34px; min-height: 54px; padding: 8px 10px; background: #fff; }
.phase1-competency-row select { color: var(--teal-dark); font-weight: 700; }
.phase1-empty-state { padding: 14px; margin: 0; border: 1px dashed #cbdbe0; border-radius: 10px; color: var(--muted); background: #fff; font-size: 12px; }
.phase1-matrix-wrap { max-width: 100%; overflow: hidden; margin-top: 20px; border: 1px solid #d9e4e8; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgba(27, 55, 68, .06); }
.phase1-matrix-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: #9fc6cd #eef4f5; scrollbar-width: thin; }
.phase1-matrix { width: max-content; min-width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.phase1-matrix th, .phase1-matrix td { min-width: 136px; padding: 10px 12px; border-right: 1px solid #edf1f3; border-bottom: 1px solid #edf1f3; text-align: center; vertical-align: middle; }
.phase1-matrix thead th { position: sticky; top: 0; z-index: 3; height: 86px; color: var(--teal-dark); background: #f2f9fa; font-weight: 800; vertical-align: middle; }
.phase1-matrix thead th:first-child, .phase1-matrix tbody tr:not(.phase1-matrix-group) th { position: sticky; left: 0; z-index: 2; width: 290px; min-width: 290px; text-align: left; background: #fff; box-shadow: 5px 0 10px rgba(27, 55, 68, .04); }
.phase1-matrix thead th:first-child { z-index: 4; background: #eaf5f7; }
.phase1-matrix thead th strong { display: block; max-width: 120px; margin: 6px auto 0; overflow-wrap: anywhere; line-height: 1.25; }
.phase1-figure-number { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: var(--teal-dark); background: #dceff1; font-size: 12px; }
.phase1-matrix tbody tr:not(.phase1-matrix-group):hover th, .phase1-matrix tbody tr:not(.phase1-matrix-group):hover td { background: #fbfefe; }
.phase1-matrix tbody tr:not(.phase1-matrix-group):hover th { background: #f7fbfc; }
.phase1-matrix tbody tr:not(.phase1-matrix-group) th { display: flex; align-items: flex-start; gap: 9px; min-height: 54px; font-weight: 650; line-height: 1.4; }
.phase1-matrix-group th { padding: 9px 12px; color: var(--teal-dark); background: #edf7f8; font-size: 12px; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.phase1-check-control { display: grid; place-items: center; min-width: 42px; min-height: 42px; margin: -6px auto; border-radius: 10px; cursor: pointer; }
.phase1-check-control:hover { background: var(--teal-soft); }
.phase1-matrix input { width: 19px; height: 19px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.phase1-matrix-hint { padding: 10px 13px; margin: 0; border-top: 1px solid #edf1f3; color: var(--muted); background: #fbfdfe; font-size: 12px; }
.phase1-agent-status-info { border-color: #c9e3e7; color: var(--teal-dark); background: var(--teal-soft); }
.phase1-agent-status-error { border-color: #efcaca; color: var(--red); background: #fff5f5; }
@media (max-width: 720px) {
    .phase1-editor-row { grid-template-columns: 30px minmax(0, 1fr) 32px; gap: 8px; }
    .phase1-editor-row .phase1-source-pill { grid-column: 2; justify-self: start; }
    .phase1-competency-row { grid-template-columns: 30px minmax(0, 1fr) 32px; }
    .phase1-competency-row select { grid-column: 2; width: 100%; }
    .phase1-matrix thead th:first-child, .phase1-matrix tbody tr:not(.phase1-matrix-group) th { width: 220px; min-width: 220px; }
    .phase1-matrix th, .phase1-matrix td { min-width: 122px; padding: 9px 10px; }
}

@media (max-width: 720px) {
    .auth-card { padding: 27px 22px; }
    .auth-brand { margin-bottom: 35px; }
}

/* Phase 1 visual correction: full-width lists and contained matrix viewport */
.phase1-figures-editor, .phase1-competencies-editor, .phase1-editor-list, .phase1-competency-groups,
.phase1-competency-group, .phase1-editor-row { width: 100%; min-width: 0; box-sizing: border-box; }
.phase1-editor-list { gap: 0; padding: 8px 18px; border: 1px solid #e3eaee; border-radius: 14px; background: #fff; }
.phase1-editor-row { grid-template-columns: minmax(0, 1fr) 34px; min-height: 52px; padding: 9px 0; border: 0; border-bottom: 1px solid #edf1f3; border-radius: 0; background: transparent; box-shadow: none; }
.phase1-editor-row:last-child { border-bottom: 0; }
.phase1-editor-row:hover { border-color: #edf1f3; background: #fbfefe; box-shadow: none; }
.phase1-editor-row input, .phase1-editor-row select { width: 100%; min-width: 0; min-height: 38px; padding: 8px 11px; border: 1px solid #d8e3e7; border-radius: 9px; background: #fafdfe; }
.phase1-editor-row input:focus, .phase1-editor-row select:focus { background: #fff; }
.phase1-competency-groups { gap: 16px; }
.phase1-competency-group { gap: 0; padding: 16px 18px 8px; border-color: #e3eaee; background: #fff; box-shadow: 0 5px 15px rgba(27, 55, 68, .04); }
.phase1-competency-group .phase1-editor-row { padding-right: 0; }
.phase1-competency-row { grid-template-columns: minmax(0, 1fr) 132px 82px; }
.phase1-competency-toggle { width: 82px; min-width: 82px; padding: 8px 11px; white-space: nowrap; }
.phase1-competency-row .phase1-remove-button { justify-self: center; }
.phase1-competency-row input:disabled, .phase1-competency-row select:disabled { color: #87969b; border-color: #d9e0e2; background: #edf1f2; cursor: not-allowed; opacity: 1; }
.phase1-group-heading { padding: 0 0 11px; margin-bottom: 2px; }
.phase1-group-heading h3 { font-size: 15px; letter-spacing: -.01em; }
.phase1-group-heading p { font-size: 12px; }
.phase1-matrix-wrap { width: 100%; min-width: 0; box-sizing: border-box; overflow: hidden; }
.phase1-matrix-scroll { position: relative; display: block; width: 100%; min-width: 0; min-height: clamp(560px, 68vh, 780px); max-height: min(78vh, 860px); box-sizing: border-box; overflow: auto; }
.phase1-matrix { width: max-content; min-width: 100%; max-width: none; table-layout: fixed; }
.phase1-matrix th, .phase1-matrix td { box-sizing: border-box; }
.phase1-matrix thead th { white-space: normal; }
.phase1-matrix thead th:first-child { position: sticky; inset-inline-start: 0; left: 0; width: 310px; min-width: 310px; }
.phase1-matrix thead th:not(:first-child) { width: 148px; min-width: 148px; }
.phase1-matrix thead th strong { margin-top: 8px; font-size: 12px; }
.phase1-matrix tbody tr:not(.phase1-matrix-group) th { display: table-cell; position: sticky; inset-inline-start: 0; left: 0; width: 310px; min-width: 310px; vertical-align: middle; }
.phase1-matrix tbody tr:not(.phase1-matrix-group) th > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.phase1-check-control { min-width: 44px; min-height: 44px; margin: -5px auto; }
.phase1-matrix-hint { padding: 11px 15px; }

/* Project setup: keep the required organigram close to the pre-flight guide. */
.project-form-shortcuts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.project-form-sidebar { display: grid; align-content: start; gap: 16px; min-width: 0; }
.project-form-sidebar .side-info { margin: 0; }
.project-organigram-card { display: grid; gap: 14px; padding: 20px; }
.project-organigram-card.is-ready { border-color: #c9e3e7; }
.project-organigram-card-heading { display: flex; align-items: center; gap: 11px; }
.project-organigram-card-heading .icon-bubble { flex: 0 0 auto; margin: 0; }
.project-organigram-card-heading h3 { margin-top: 3px; font-size: 16px; }
.project-organigram-file-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 42px; gap: 11px; align-items: center; padding: 11px; border: 1px solid #d8ebed; border-radius: 12px; background: #f7fcfd; }
.project-organigram-preview { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: var(--teal); background: var(--teal-soft); }
.project-organigram-preview .icon-svg { width: 22px; height: 22px; }
.project-organigram-file-copy { display: grid; gap: 4px; min-width: 0; }
.project-organigram-actions { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.project-organigram-actions form { margin: 0; }
.project-organigram-actions .button { min-height: 30px; padding: 0 10px; }
.project-organigram-file-copy strong, .project-organigram-file-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-organigram-file-copy strong { color: var(--ink); font-size: 12px; }
.project-organigram-filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-organigram-cancel { justify-self: start; padding: 2px 0; border: 0; color: var(--teal-dark); background: transparent; font: inherit; font-size: 12px; font-weight: 750; text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.project-organigram-cancel:hover { color: var(--ink); }
.project-organigram-cancel:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 3px; }
.project-organigram-select { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #d6e3e8; border-radius: 12px; color: var(--teal); background: #fff; cursor: pointer; }
.project-organigram-select:hover, .project-organigram-select:focus-within { border-color: #9bcfd4; background: var(--teal-soft); }
.project-organigram-input-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.project-organigram-input-hidden input[type="file"] { width: 1px; height: 1px; }
.project-organigram-help { margin: 0; line-height: 1.45; }

@media (max-width: 720px) {
    .phase1-editor-list, .phase1-competency-group { padding-right: 12px; padding-left: 12px; }
    .phase1-editor-row { grid-template-columns: minmax(0, 1fr) 32px; }
    .phase1-competency-row { grid-template-columns: minmax(0, 1fr) minmax(100px, 132px) 82px; }
    .phase1-competency-row select { grid-column: auto; }
    .phase1-matrix thead th:first-child, .phase1-matrix tbody tr:not(.phase1-matrix-group) th { width: 230px; min-width: 230px; }
    .phase1-matrix-scroll { min-height: 520px; }
    .project-form-shortcuts { justify-content: flex-start; }
    .project-form-shortcuts .button { flex: 1; }
    .project-organigram-file-row { grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 9px; }
    .project-organigram-preview { width: 44px; height: 44px; }
    .project-organigram-select { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .phase1-competency-row { grid-template-columns: minmax(0, 1fr) 82px; }
    .phase1-competency-row input { grid-column: 1 / -1; }
}

/* Phase 4 ACRO: compact, filterable and progressively rendered evaluation list */
#phase4-acro-status { padding: 8px 10px; margin-bottom: 12px; font-size: 12px; }
.phase4-acro-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; padding: 12px; margin: 0 0 12px; border: 1px solid #e3ecef; border-radius: 11px; background: #f8fbfc; }
.phase4-acro-toolbar label { display: grid; gap: 5px; color: #627783; font-size: 12px; font-weight: 800; }
.phase4-acro-search { flex: 1 1 250px; min-width: 210px; }
.phase4-acro-filter { flex: 0 1 132px; min-width: 112px; }
.phase4-acro-toolbar input, .phase4-acro-toolbar select { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid #d8e4e8; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; }
.phase4-acro-toolbar input:focus, .phase4-acro-toolbar select:focus { border-color: #78c3c9; outline: 3px solid rgba(120,195,201,.18); }
.phase4-acro-initial-toolbar, .phase4-acro-followup-toolbar, .phase4-acro-final-toolbar { position: sticky; top: 72px; z-index: 4; background: rgba(248,251,252,.97); box-shadow: 0 5px 14px rgba(27,55,68,.06); }
.phase4-acro-reset { min-height: 37px; padding: 0 11px; white-space: nowrap; }
.phase4-acro-results { min-height: 17px; margin: 0 2px 10px; color: var(--muted); font-size: 12px; }
.phase4-acro-groups { gap: 14px; }
.phase4-acro-party-heading { padding: 14px 16px; }
.phase4-acro-party-tab { overflow: hidden; border: 1px solid #c9e3e7; border-radius: 18px; background: #fff; box-shadow: 0 5px 16px rgba(27, 74, 87, .06); }
.phase4-acro-party-tab-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; padding: 16px 20px; color: var(--ink); background: linear-gradient(135deg, #e8f6f8, #f6fbfc); cursor: pointer; list-style: none; }
.phase4-acro-party-tab-summary::-webkit-details-marker { display: none; }
.phase4-acro-party-tab-summary:hover { background: #e2f3f5; }
.phase4-acro-party-tab[open] > .phase4-acro-party-tab-summary { border-bottom: 1px solid #c9e3e7; background: #e5f4f6; }
.phase4-acro-party-tab-summary h3 { margin: 0; overflow: hidden; color: var(--ink); font-size: 18px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.phase4-acro-party-tab-chevron { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid #b9dce2; border-radius: 50%; color: var(--teal); background: #fff; }
.phase4-acro-party-tab-chevron .icon-svg { width: 16px; height: 16px; transition: transform .15s ease; }
.phase4-acro-party-tab[open] .phase4-acro-party-tab-chevron .icon-svg { transform: rotate(180deg); }
.phase4-acro-expectation-groups { gap: 14px; padding: 14px; background: #f8fcfd; }
.phase4-acro-expectation-group { overflow: hidden; padding: 0; border: 1px solid #d7e8ec; border-radius: 14px; background: #fff; box-shadow: 0 2px 7px rgba(27, 74, 87, .04); }
.phase4-acro-expectation { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 10px; padding: 15px 16px 16px; border-bottom: 1px solid #cfe3e7; background: #f1fafb; }
.phase4-acro-expectation > span { display: inline; margin: 0; color: var(--teal-dark); font-size: 12px; font-weight: 900; letter-spacing: .05em; line-height: 1.2; text-transform: uppercase; }
.phase4-acro-expectation textarea { min-height: 44px; padding: 8px 10px; border-color: #cfe3e7; background: #fff; font-size: 12px; }
.phase4-acro-expectation-value { flex: 1 1 70%; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; color: var(--ink); background: transparent; font-size: 13px; font-weight: 650; line-height: 1.4; white-space: pre-wrap; }
.phase4-acro-factors-heading { padding: 14px 14px 0; margin: 0; color: var(--teal-dark); font-size: 12px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.phase4-acro-rows { gap: 8px; padding: 12px; margin-top: 0; background: #fff; }
.phase4-acro-row { padding: 0; border-color: #e0eaed; border-radius: 11px; background: #fff; }
.phase4-acro-row[open] { border-color: #a8d5da; box-shadow: 0 4px 12px rgba(27, 74, 87, .06); }
.phase4-acro-row.is-incomplete { border-color: #e1c47d; background: #fffdf7; }
.phase4-acro-row.is-attention { border-color: #d6a641; box-shadow: 0 0 0 3px rgba(214, 166, 65, .18), 0 8px 18px rgba(113, 78, 14, .10); }
.phase4-acro-row-summary { display: grid; grid-template-columns: 32px minmax(180px, 1fr) auto 18px; align-items: center; gap: 10px; min-height: 62px; padding: 9px 11px; color: var(--ink); cursor: pointer; list-style: none; }
.phase4-acro-row-summary::-webkit-details-marker { display: none; }
.phase4-acro-row-summary:hover { background: #fbfefe; }
.phase4-acro-row-summary.phase4-acro-row-summary-compact { grid-template-columns: minmax(180px, 1fr) auto 18px; }
.phase4-acro-row-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--teal); background: var(--teal-soft); font-size: 12px; font-weight: 850; }
.phase4-acro-row-summary-copy { display: grid; gap: 4px; min-width: 0; }
.phase4-acro-row-summary-copy strong { color: var(--ink); font-size: 12px; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
.phase4-acro-row-summary-copy small { color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.phase4-acro-row-summary-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 5px; }
.phase4-acro-kind-label { font-size: 12px; font-weight: 800; white-space: nowrap; }
.phase4-acro-kind-neg { color: #8b5a21; }
.phase4-acro-kind-pos { color: #286b59; }
.phase4-acro-score-summary { display: inline-flex; align-items: center; min-height: 22px; padding: 4px 8px; border-radius: 999px; color: #526d78; background: #f1f6f7; font-size: 12px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.phase4-acro-score-summary-green { color: #2f6b56; background: #edf7f0; }
.phase4-acro-score-summary-yellow { color: #8a6824; background: #fff7df; }
.phase4-acro-score-summary-red { color: #a34d4d; background: #fff0f0; }
.phase4-acro-score-summary-pending { color: #7b6a3b; background: #fff8e9; }
.phase4-acro-missing-label { padding: 3px 6px; border-radius: 5px; color: #8b5a21; background: #fff5df; font-size: 12px; font-weight: 800; white-space: nowrap; }
.phase4-acro-row-chevron { display: grid; place-items: center; width: 18px; height: 18px; color: var(--teal); }
.phase4-acro-row-chevron .icon-svg { width: 16px; height: 16px; transition: transform .15s ease; }
.phase4-acro-row[open] .phase4-acro-row-chevron .icon-svg { transform: rotate(180deg); }
.phase4-acro-row-body { padding: 13px 14px 14px; border-top: 1px solid #e1ecee; background: #fbfdfe; }
.phase4-acro-type-pending { display: block; padding: 9px 10px; border: 1px solid #d8e4e8; border-radius: 8px; color: var(--muted); background: #f7fafb; font-size: 12px; font-weight: 600; }
.phase4-acro-row-body .phase4-acro-row-details { margin-top: 10px; }
.phase4-acro-row-body .phase4-acro-remove { min-height: 32px; margin-top: 12px; padding: 0 10px; color: #8c5b5b; font-size: 12px; }
.phase4-acro-load-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px 3px; color: var(--muted); font-size: 12px; }
.phase4-acro-load-more .button { min-height: 34px; padding: 0 11px; font-size: 12px; }
.phase4-acro-load-sentinel { height: 1px; }
.phase4-acro-followup-rows { margin: 14px; padding: 12px; border: 1px solid #d7e8ec; border-radius: 14px; background: #f8fcfd; }
.phase4-acro-toolbar + .phase4-recovery-toolbar { margin-top: 14px; margin-bottom: 18px; }
.phase4-acro-followup-field { display: grid; gap: 5px; min-width: 0; color: #627783; font-size: 12px; font-weight: 800; }
.phase4-acro-followup-field-wide { margin-top: 11px; }
.phase4-acro-followup-field input, .phase4-acro-followup-field textarea, .phase4-acro-followup-field select { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #d8e4e8; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; font-weight: 500; line-height: 1.45; }
.phase4-acro-followup-field textarea { min-height: 50px; resize: vertical; }
.phase4-acro-followup-field input:focus, .phase4-acro-followup-field textarea:focus, .phase4-acro-followup-field select:focus { border-color: #78c3c9; outline: 3px solid rgba(120,195,201,.18); }
.phase4-acro-followup-opportunity { padding: 13px; margin-top: 13px; border: 1px solid #dbe9e7; border-radius: 10px; background: #f8fcfb; }
.phase4-acro-followup-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.phase4-acro-followup-heading h4 { margin: 0; color: var(--ink); font-size: 13px; }
.phase4-acro-opportunity-id { flex: 0 0 auto; padding: 5px 8px; border-radius: 7px; color: #286b59; background: #e6f4ee; font-size: 12px; font-weight: 800; }
.phase4-acro-followup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.phase4-acro-followup-grid .phase4-acro-followup-field-wide { grid-column: 1 / -1; }
.phase4-acro-residual-grid { padding-top: 12px; margin-top: 12px; border-top: 1px solid #e7eff1; }

@media (max-width: 820px) {
    .phase4-acro-row-summary { grid-template-columns: 32px minmax(0, 1fr) 18px; }
    .phase4-acro-row-summary-meta { grid-column: 2 / -1; justify-content: flex-start; }
}

@media (max-width: 560px) {
    .phase4-agent-recovery { justify-content: stretch; }
    .phase4-agent-recovery .button { width: 100%; }
    .phase4-recovery-toolbar { justify-content: stretch; }
    .phase4-recovery-trigger { width: 100%; }
    .phase4-recovery-dialog-header { padding: 18px; }
    .phase4-recovery-dialog > p, .phase4-recovery-list { padding-left: 18px; padding-right: 18px; }
    .phase4-recovery-item { align-items: stretch; flex-direction: column; }
    .phase4-acro-confirmation-context div { grid-template-columns: 1fr; gap: 2px; }
    .phase4-acro-confirmation-actions { align-items: stretch; flex-direction: column-reverse; }
    .phase4-acro-confirmation-actions .button { width: 100%; }
    .phase4-acro-toolbar { align-items: stretch; }
    .phase4-acro-search, .phase4-acro-filter { flex: 1 1 100%; }
    .phase4-acro-reset { width: 100%; }
    .phase4-acro-row-summary { gap: 8px; padding: 9px; }
    .phase4-acro-row-summary-copy strong, .phase4-acro-row-summary-copy small { white-space: normal; }
    .phase4-acro-score-summary { white-space: normal; text-align: left; line-height: 1.4; }
    .phase4-acro-load-more { align-items: stretch; flex-direction: column; }
    .phase4-acro-load-more .button { width: 100%; }
    .phase4-acro-followup-grid { grid-template-columns: 1fr; }
    .phase4-acro-followup-grid .phase4-acro-followup-field-wide { grid-column: auto; }
}

/* Phase 2: normative register in expandable cards */
.phase2-wizard { max-width: none; }
.phase2-source-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 18px; margin: 22px 0 28px; border: 1px solid #c9e3e7; border-radius: 12px; background: linear-gradient(135deg, #f2fbfc, #fff); }
.phase2-source-card > div { display: grid; gap: 5px; min-width: 0; }
.phase2-source-card strong { overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.phase2-source-card p { margin: 0; }
.phase2-source-state { flex: 0 0 auto; color: #236575; font-size: 12px; font-weight: 800; }
.phase2-tab-overview { padding-top: 4px; }
.phase2-tab-overview h3 { margin: 0; font-size: 15px; }
.phase2-tab-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; border-top: 1px solid #edf1f3; }
.phase2-tab-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 11px 0; border-bottom: 1px solid #edf1f3; }
.phase2-tab-item > span { color: var(--teal); font-size: 12px; font-weight: 850; }
.phase2-tab-item strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.phase2-tab-item small { grid-column: 2; color: var(--muted); font-size: 12px; }
.phase2-status { padding: 11px 13px; margin-bottom: 14px; border: 1px solid #c9e3e7; border-radius: 9px; color: var(--teal-dark); background: var(--teal-soft); font-size: 12px; }
.phase2-status-success { border-color: #bfe4d0; color: #1d674c; background: var(--green-soft); }
.phase2-status-saving { border-color: #c9e3e7; color: var(--teal-dark); background: #f2fbfc; }
.phase2-status-error { border-color: #efcaca; color: #994040; background: #fff5f5; }
.phase2-agent-status { display: flex; align-items: center; gap: 9px; padding: 11px 13px; margin: 0 0 12px; border: 1px solid #c9e3e7; border-radius: 9px; color: var(--teal-dark); background: var(--teal-soft); font-size: 12px; }
.phase2-agent-status-success { border-color: #bfe4d0; color: #1d674c; background: var(--green-soft); }
.phase2-agent-status-error { border-color: #efcaca; color: #994040; background: #fff5f5; }
.phase2-agent-retry { margin-left: auto; min-height: 30px; padding: 0 10px; font-size: 12px; }
.phase2-agent-spinner { width: 15px; height: 15px; flex: 0 0 auto; border: 3px solid rgba(27, 116, 143, .2); border-top-color: var(--teal); border-radius: 50%; animation: phase2-agent-spin .8s linear infinite; }
.phase2-agent-status-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 7px; }
.phase2-agent-progress-track { display: block; width: min(360px, 100%); height: 5px; overflow: hidden; border-radius: 99px; background: rgba(27, 116, 143, .14); }
.phase2-agent-progress-track span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--teal); transform: scaleX(var(--phase2-progress, 0)); transform-origin: left center; transition: transform .25s ease; }
@keyframes phase2-agent-spin { to { transform: rotate(360deg); } }
.phase2-discovery { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 15px; margin: 0 0 14px; border: 1px solid #d8e8eb; border-radius: 11px; background: #fbfefe; }
.phase2-discovery-empty { border-color: #e5edef; background: #fff; }
.phase2-discovery.is-locked { border-color: #eadfca; background: #fffdf8; }
.phase2-discovery-copy { min-width: 0; }
.phase2-discovery h3 { margin: 0; color: var(--ink); font-size: 13px; }
.phase2-discovery p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.phase2-discovery-message { display: block; }
.phase2-discovery-message.is-running { color: var(--teal-dark); font-weight: 750; }
.phase2-discovery-message.is-success { color: #1d674c; font-weight: 750; }
.phase2-discovery-message.is-error { color: #994040; font-weight: 750; }
.phase2-status-evidence { padding: 10px 12px; margin: 13px 0; border: 1px solid #dcebed; border-radius: 9px; color: var(--muted); background: #f8fcfd; font-size: 12px; }
.phase2-status-evidence strong { color: var(--teal-dark); font-size: 12px; }
.phase2-status-evidence ul { display: grid; gap: 5px; padding: 0; margin: 7px 0 0; list-style: none; }
.phase2-status-evidence li { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; }
.phase2-status-evidence a { color: var(--teal-dark); font-weight: 750; text-decoration: underline; }
.phase2-status-evidence .icon-svg { width: 12px; height: 12px; vertical-align: -2px; }
.phase2-status-evidence small { color: var(--muted); }
.phase2-discovery-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.phase2-discovery-actions .button { min-height: 34px; padding: 0 11px; font-size: 12px; }
.phase2-discovery-actions .button-ghost { border-color: #d5e3e7; color: #41606b; background: #fff; }
.phase2-discovery-actions .button-ghost:hover { border-color: #9ecad1; color: var(--teal-dark); background: #f4fbfc; }
.phase2-discovery-actions .button:disabled { opacity: 1; border-color: #e4ded1; color: #9a927f; background: #f8f5ee; box-shadow: none; }
.phase2-discovery-actions .button[aria-disabled="true"] { opacity: 1; border-color: #e4ded1; color: #9a927f; background: #f8f5ee; box-shadow: none; cursor: help; }
.phase2-discovery-lock { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #eadfca; border-radius: 8px; color: #927344; background: #fff7e7; font-size: 12px; font-weight: 800; white-space: nowrap; }
.phase2-discovery-lock .icon-svg { width: 14px; height: 14px; }
.phase2-proposal-count { padding: 5px 8px; border-radius: 7px; color: #765417; background: #fff5df; font-size: 12px; font-weight: 850; white-space: nowrap; }
.phase2-proposals-dialog { width: min(760px, calc(100% - 32px)); max-height: min(820px, calc(100vh - 36px)); padding: 0; overflow: hidden; border: 1px solid #cfe3e7; border-radius: 17px; color: var(--ink); background: #fff; box-shadow: 0 24px 70px rgba(20, 52, 65, .22); }
.phase2-proposals-dialog::backdrop { background: rgba(18, 42, 52, .38); }
.phase2-proposals-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; border-bottom: 1px solid #e7eff1; background: #f8fcfd; }
.phase2-proposals-dialog-header h2 { margin: 0; color: var(--ink); font-size: 20px; }
.phase2-proposals-dialog-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.admin-proposal-filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 22px 0; }
.admin-proposal-filter { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 10px; border: 1px solid #dce8eb; border-radius: 999px; color: #536a76; background: #fff; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.admin-proposal-filter:hover { border-color: #9bcfd8; color: var(--teal-dark); background: #f7fcfd; }
.admin-proposal-filter:focus-visible { outline: 3px solid rgba(120,195,201,.28); outline-offset: 2px; }
.admin-proposal-filter.is-active { border-color: #b8dce1; color: var(--teal-dark); background: #e8f6f8; }
.admin-proposal-filter b { min-width: 17px; padding: 1px 4px; border-radius: 999px; color: #5f747e; background: #f1f5f6; font-size: 12px; text-align: center; }
.admin-proposal-filter.is-active b { color: #075d75; background: #d7edf1; }
.phase2-proposals-list { max-height: min(570px, calc(100vh - 250px)); overflow: auto; padding: 18px 22px; }
.phase2-proposal-card { display: grid; gap: 14px; }
.phase2-proposal-card h3 { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.35; }
.phase2-proposal-type { justify-self: start; padding: 5px 8px; border-radius: 6px; color: #236575; background: #e8f6f8; font-size: 12px; font-weight: 850; }
.phase2-proposal-title { margin: -8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.phase2-proposal-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.phase2-proposal-facts > div, .phase2-proposal-summary { padding: 11px 12px; border: 1px solid #e1ecee; border-radius: 9px; background: #fbfdfe; }
.phase2-proposal-facts span, .phase2-proposal-summary > strong { display: block; color: #627783; font-size: 12px; font-weight: 850; }
.phase2-proposal-facts strong { display: block; margin-top: 4px; color: var(--ink); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.phase2-proposal-summary p { margin: 6px 0 0; color: var(--ink); font-size: 12px; line-height: 1.5; white-space: pre-line; }
.phase2-proposal-sources { display: grid; gap: 8px; padding: 0; margin: 8px 0 0; list-style: none; }
.phase2-proposal-sources li { display: grid; gap: 2px; }
.phase2-proposal-sources a, .phase2-abrogation-evidence a { display: inline-flex; align-items: center; gap: 4px; width: fit-content; color: var(--teal-dark); font-size: 12px; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.phase2-proposal-sources .icon-svg, .phase2-abrogation-evidence .icon-svg { width: 13px; height: 13px; }
.phase2-proposal-sources small { color: var(--muted); font-size: 12px; }
.phase2-proposal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 14px; border-top: 1px solid #e7eff1; }
.phase2-proposal-actions .button { min-height: 36px; padding: 0 12px; font-size: 12px; }
.phase2-proposal-actions .button-primary { color: #fff; background: var(--teal); }
.phase2-proposal-actions .button-primary:hover { color: #fff; background: var(--teal-dark); }
.phase2-proposal-actions .button-primary:disabled,
.phase2-proposal-actions .button-primary:disabled:hover {
    border-color: #d8e3e6;
    color: #647984;
    background: #e8eef0;
    box-shadow: none;
    cursor: not-allowed;
}
.phase2-proposals-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 22px; border-top: 1px solid #e7eff1; background: #fbfdfe; }
.phase2-proposals-dialog-footer .button { min-height: 32px; padding: 0 10px; font-size: 12px; }
.phase2-proposals-empty { padding: 22px 0; text-align: center; }
.phase2-proposals-empty h3 { margin: 0; color: var(--ink); font-size: 15px; }
.phase2-proposals-empty p { margin: 6px auto 0; max-width: 48ch; color: var(--muted); font-size: 12px; line-height: 1.5; }
.phase2-discovery-confirm-dialog { box-sizing: border-box; width: min(540px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 32px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid #cfe3e7; border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 24px 70px rgba(20, 52, 65, .24); }
.phase2-discovery-confirm-dialog::backdrop { background: rgba(18, 42, 52, .38); }
.phase2-discovery-confirm-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 24px 0; background: linear-gradient(135deg, #f2fafb, #fff); }
.phase2-discovery-confirm-heading { min-width: 0; }
.phase2-discovery-confirm-header .section-kicker { display: block; margin-bottom: 7px; color: var(--teal-dark); }
.phase2-discovery-confirm-header h2 { margin: 0; color: var(--ink); font-size: 23px; letter-spacing: -.025em; line-height: 1.15; }
.phase2-discovery-confirm-close { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; padding: 0; margin: -2px -2px 0 0; border: 1px solid #d6e3e8; border-radius: 11px; color: var(--teal); background: #fff; }
.phase2-discovery-confirm-close:hover { border-color: #9bcfd4; color: var(--teal-dark); background: var(--teal-soft); }
.phase2-discovery-confirm-close .icon-svg { width: 18px; height: 18px; }
.phase2-discovery-confirm-copy { padding: 21px 24px 23px; }
.phase2-discovery-confirm-copy > p { max-width: 58ch; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.phase2-discovery-confirm-context { display: grid; gap: 6px; padding: 13px 14px; margin-top: 18px; border: 1px solid #dcebed; border-radius: 12px; background: #f5fbfc; }
.phase2-discovery-confirm-context span { color: #627783; font-size: 12px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.phase2-discovery-confirm-context strong { color: var(--ink); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.phase2-discovery-confirm-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 24px 20px; border-top: 1px solid #edf1f3; background: #fbfdfe; }
.phase2-discovery-confirm-actions .button { min-height: 38px; padding: 0 14px; font-size: 12px; font-weight: 850; }
.phase2-toolbar { position: sticky; top: 72px; z-index: 4; display: flex; flex-wrap: wrap; align-items: end; gap: 9px; padding: 12px; margin-bottom: 10px; border: 1px solid #e3ecef; border-radius: 11px; background: rgba(248,251,252,.97); box-shadow: 0 5px 14px rgba(27,55,68,.06); }
.phase2-toolbar label { display: grid; flex: 0 1 150px; gap: 5px; min-width: 122px; color: #627783; font-size: 12px; font-weight: 800; }
.phase2-toolbar .phase2-search { flex: 1 1 280px; min-width: 220px; }
.phase2-toolbar .phase2-search-status { color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.35; }
.phase2-toolbar .phase2-search-status[data-state="error"] { color: #a24646; }
.phase2-registry-browser .phase2-search { display: grid; gap: 5px; padding: 10px; color: var(--muted); font-size: 12px; }
.phase2-registry-browser .phase2-search input { width: 100%; min-width: 0; min-height: 37px; padding: 8px 10px; border: 1px solid #d8e4e8; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.phase2-registry-browser .phase2-search input:focus { border-color: #78c3c9; outline: 3px solid rgba(120,195,201,.18); }
.phase2-toolbar input, .phase2-toolbar select { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid #d8e4e8; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; }
.phase2-toolbar input:focus, .phase2-toolbar select:focus { border-color: #78c3c9; outline: 3px solid rgba(120,195,201,.18); }
.phase2-reset { min-height: 37px; padding: 0 11px; white-space: nowrap; }
.phase2-adempimenti-list { display: grid; gap: 12px; margin-top: 16px; }
.phase2-adempimenti-heading > span { color: #627783; font-size: 12px; font-weight: 850; letter-spacing: .02em; }
.phase2-adempimenti-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 14px; }
.phase2-adempimenti-heading small { color: var(--muted); font-size: 12px; }
.phase2-adempimento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; padding: 15px; border: 1px solid #dcebed; border-radius: 11px; background: #fbfdfe; }
.phase2-adempimento.is-missing { border-color: #ebca84; background: #fffdf7; }
.phase2-adempimento-copy { width: 100%; min-width: 0; }
.phase2-adempimento-copy .section-kicker { display: block; margin-bottom: 7px; color: #627783; font-size: 12px; }
.phase2-adempimento-copy p { display: block; width: 100%; max-width: none; margin: 0; color: var(--ink); font-size: 12px; line-height: 1.5; white-space: normal; word-break: normal; overflow-wrap: normal; }
.phase2-adempimento-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
.phase2-adempimento-fields label, .admin-status-field label { display: grid; gap: 5px; color: #627783; font-size: 12px; font-weight: 850; }
.phase2-adempimento-fields select, .admin-status-field select { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #d8e4e8; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; }
.phase2-card-status { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 7px; font-size: 12px; font-weight: 850; }
.phase2-card-status.is-abrogata { color: #785426; background: #fff0cc; }
.phase2-card-status.is-active { color: #1d674c; background: #e5f6eb; }
#admin-registry { display: grid; gap: 20px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.admin-registry-intro { padding-bottom: 16px; }
.admin-registry-intro h2 { margin: 13px 0 6px; }
.admin-discovery-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; margin-bottom: 14px; border: 1px solid #d8e8eb; border-radius: 11px; background: #fbfefe; }
.admin-discovery-panel h3 { margin: 0; font-size: 15px; }
.admin-discovery-panel p { margin: 5px 0 0; font-size: 12px; }
.admin-discovery-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.admin-discovery-actions .button { min-height: 36px; font-size: 12px; }
#admin-discovery-stop { white-space: nowrap; }
.phase2-trash-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; color: #8f4d29; background: #fff0df; font-size: 12px; font-weight: 850; }
.admin-discovery-message.is-running { color: var(--teal-dark); font-weight: 750; }
.admin-discovery-message.is-success { color: #1d674c; font-weight: 750; }
.admin-discovery-message.is-error { color: #994040; font-weight: 750; }
.admin-status-field { max-width: 360px; margin-top: 16px; }
.admin-master-export { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; margin-top: 16px; border: 1px solid #d8e8eb; border-radius: 11px; background: #f8fcfd; }
.admin-master-export > div:first-child { min-width: 0; flex: 1 1 280px; }
.admin-master-export h3 { margin: 5px 0 4px; color: var(--ink); font-size: 14px; }
.admin-master-export p { margin: 0; font-size: 12px; line-height: 1.45; }
.admin-master-export .button { flex: 0 0 auto; white-space: nowrap; }
.admin-master-export-actions { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.admin-master-download-group { display: grid; justify-items: start; gap: 5px; min-width: 0; }
.admin-master-download-group p { max-width: 250px; overflow-wrap: anywhere; }
.admin-master-update-spinner { margin-left: 7px; border-width: 2px; }
.admin-master-update[aria-busy="true"] { cursor: wait; opacity: .92; }
.admin-registry-browser { display: grid; grid-template-columns: 220px minmax(360px, 1.18fr) minmax(360px, .92fr); gap: 12px; min-height: 650px; }
.admin-registry-panel { min-width: 0; overflow: hidden; border: 1px solid #d8e8eb; border-radius: 13px; background: #fff; }
.admin-registry-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 16px 15px 12px; border-bottom: 1px solid #edf2f3; }
.admin-registry-panel-heading .section-kicker { margin-bottom: 4px; font-size: 12px; }
.admin-registry-panel-heading h3 { color: var(--ink); font-size: 17px; }
.admin-registry-count { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-registry-section-search { display: block; padding: 10px 10px 8px; }
.admin-registry-section-search input { width: 100%; min-height: 34px; padding: 7px 9px; border: 1px solid #d8e4e8; border-radius: 8px; color: var(--ink); background: #fbfdfe; font: inherit; font-size: 12px; outline: 0; }
.admin-registry-section-search input:focus { border-color: #78c3c9; outline: 3px solid rgba(120,195,201,.18); }
.admin-registry-sections-list { display: grid; gap: 3px; padding: 0 8px 10px; max-height: 555px; overflow: auto; }
.admin-registry-section-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; color: #536a76; background: transparent; font: inherit; font-size: 12px; font-weight: 750; text-align: left; }
.admin-registry-section-item:hover, .admin-registry-section-item:focus-visible { color: var(--teal-dark); background: #f5fbfc; outline: none; }
.admin-registry-section-item.is-active { color: var(--teal-dark); border-color: #c5e4e8; background: #e8f6f8; box-shadow: inset 3px 0 0 var(--teal); }
.admin-registry-section-item b { flex: 0 0 auto; min-width: 21px; color: var(--muted); font-size: 12px; text-align: right; }
.admin-registry-section-item.is-active b { color: var(--teal-dark); }
.admin-registry-results { display: flex; min-height: 0; flex-direction: column; }
.admin-registry-results .admin-registry-list { min-height: 0; flex: 1; overflow: auto; }
.admin-registry-topic-group { padding: 0 10px 8px; }
.admin-registry-topic-group h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 5px 7px; color: #6d818b; border-bottom: 1px solid #edf2f3; font-size: 12px; font-weight: 850; }
.admin-registry-topic-group h4 span { color: #99aab1; font-size: 12px; }
.admin-registry-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 8px 7px; border: 1px solid transparent; border-bottom-color: #edf2f3; color: var(--ink); background: transparent; font: inherit; text-align: left; }
.admin-registry-row:hover, .admin-registry-row:focus-visible { border-color: #c8e3e7; border-radius: 8px; background: #f6fbfc; outline: none; }
.admin-registry-row.is-active { border-color: #b8dce1; border-radius: 8px; background: #e8f6f8; box-shadow: inset 3px 0 0 var(--teal); }
.admin-registry-row-copy { display: grid; min-width: 0; gap: 3px; }
.admin-registry-row-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.admin-registry-row-copy small { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.admin-registry-status { display: inline-flex; align-items: center; min-height: 21px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 850; white-space: nowrap; }
.admin-registry-status.is-active { color: #1d674c; background: #e5f6eb; }
.admin-registry-status.is-abrogata { color: #785426; background: #fff0cc; }
.admin-registry-row-arrow { color: var(--teal); font-size: 21px; line-height: 1; }
.admin-registry-detail { display: flex; min-height: 0; flex-direction: column; padding: 0 15px 15px; }
.admin-registry-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 0 12px; border-bottom: 1px solid #edf2f3; }
.admin-registry-detail-header .section-kicker { margin-bottom: 5px; font-size: 12px; }
.admin-registry-detail-header h3 { overflow-wrap: anywhere; color: var(--ink); font-size: 19px; line-height: 1.18; }
.admin-registry-detail-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.admin-registry-detail-close { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #d8e8eb; border-radius: 50%; color: var(--teal); background: #fff; font-size: 18px; line-height: 1; }
.admin-registry-detail-close:hover, .admin-registry-detail-close:focus-visible { border-color: #9bcfd8; background: #f2fbfc; outline: none; }
.admin-registry-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 12px 0; color: var(--muted); font-size: 12px; font-weight: 750; }
.admin-registry-detail-meta > span:not(.admin-registry-status) { padding-left: 7px; border-left: 1px solid #dcebed; }
.admin-registry-detail .phase2-status-evidence { margin: 0 0 12px; }
.admin-registry-detail-section { padding-top: 13px; border-top: 1px solid #edf2f3; }
.admin-registry-detail-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.admin-registry-detail-section-heading h4 { color: var(--ink); font-size: 13px; }
.admin-registry-detail-section-heading span { color: var(--muted); font-size: 12px; font-weight: 800; }
.admin-registry-obligations { display: grid; gap: 7px; max-height: 620px; overflow: auto; }
.admin-registry-obligations article { display: grid; grid-template-columns: 23px minmax(0, 1fr) minmax(112px, 135px); align-items: center; gap: 8px; padding: 9px; border: 1px solid #e0ecee; border-radius: 8px; background: #fbfdfe; }
.admin-registry-obligations p { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.45; white-space: pre-line; }
.admin-registry-obligation-help { margin: 0 0 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.admin-registry-obligations label { display: grid; gap: 4px; color: #627783; font-size: 12px; font-weight: 800; }
.admin-registry-obligations select { width: 100%; min-height: 31px; padding: 5px 7px; border: 1px solid #d8e4e8; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; }
.admin-registry-obligations select:focus-visible { border-color: #78c3c9; outline: 3px solid rgba(120,195,201,.18); }
.admin-registry-obligation-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; color: var(--teal); background: #e5f4f6; font-size: 12px; font-weight: 900; }
.admin-registry-status-editor { margin-top: auto; padding-top: 15px; }
.admin-registry-status-editor label { display: grid; gap: 5px; color: #627783; font-size: 12px; font-weight: 850; }
.admin-registry-status-editor select { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #d8e4e8; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; }
.admin-registry-detail-empty { display: grid; align-content: center; justify-items: center; min-height: 100%; padding: 30px; color: var(--muted); text-align: center; }
.admin-registry-detail-empty strong { color: var(--ink); font-size: 15px; }
.admin-registry-detail-empty p { margin: 7px 0 0; font-size: 12px; }
@media (min-width: 1181px) {
    /* Keep the three registry columns aligned while the long central list
       scrolls independently. The navigation and selected-norm detail remain
       visible instead of growing the whole page to the list height. */
    .admin-registry-browser {
        height: clamp(620px, calc(100vh - 230px), 900px);
        min-height: 0;
    }
    .admin-registry-sections {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }
    .admin-registry-sections-list {
        flex: 1;
        max-height: none;
    }
    .admin-registry-detail {
        overflow: auto;
    }
}
.administration-section-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.administration-section-card { display: grid; align-content: start; gap: 10px; min-height: 190px; padding: 22px; border: 1px solid #c9e3e7; border-radius: 16px; color: var(--ink); background: linear-gradient(145deg, #f0fafb, #fff); box-shadow: 0 8px 22px rgba(27, 74, 87, .07); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.administration-section-card:hover { border-color: #8ecad2; box-shadow: 0 12px 28px rgba(27, 74, 87, .12); transform: translateY(-2px); }
.administration-section-card h2 { margin: 0; font-size: 20px; }
.administration-section-card p { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.administration-section-card .button { justify-self: start; }
.phase2-template-update { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 14px; margin: 0 0 12px; border: 1px solid #c9e3e7; border-radius: 10px; color: var(--teal-dark); background: #f2fbfc; }
.phase2-template-update strong { font-size: 12px; }
.phase2-template-update p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.phase2-template-update form { margin: 0; }
.admin-proposal-history { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #edf1f3; }
.admin-proposal-history strong { flex: 1; color: var(--ink); font-size: 12px; }
.admin-proposal-history span { color: var(--muted); font-size: 12px; }
.phase2-trash-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #edf1f3; }
.phase2-trash-card > div:first-child { display: grid; gap: 4px; min-width: 0; }
.phase2-trash-card strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.phase2-trash-card span { color: var(--muted); font-size: 12px; }
.phase2-trash-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.phase2-trash-actions .button { white-space: nowrap; }
.phase2-proposal-adempimenti { display: grid; gap: 7px; padding-left: 18px; margin: 8px 0 0; color: var(--ink); font-size: 12px; line-height: 1.45; }
@media (max-width: 760px) {
    .phase2-adempimento { grid-template-columns: 1fr; }
.admin-discovery-panel { align-items: stretch; flex-direction: column; }
    .admin-discovery-actions { flex-wrap: wrap; }
    .phase2-trash-card { align-items: stretch; flex-direction: column; }
    .phase2-trash-actions .button { flex: 1 1 0; }
    .admin-master-export { align-items: stretch; flex-direction: column; }
    .admin-master-export-actions { justify-content: flex-start; align-items: stretch; flex-direction: column; }
    .admin-master-export-actions .button { width: 100%; text-align: center; }
    .phase2-template-update { align-items: stretch; flex-direction: column; }
}
@media (max-width: 1180px) {
    .admin-registry-browser { grid-template-columns: 190px minmax(0, 1fr); }
    .admin-registry-detail { grid-column: 1 / -1; min-height: 360px; }
    .admin-registry-detail .admin-registry-obligations { max-height: 460px; }
}
@media (max-width: 720px) {
    .page-content:has(.admin-registry) { width: min(100% - 28px, 100%); }
    .admin-registry-browser { display: flex; min-height: 0; flex-direction: column; }
    .admin-registry-sections { overflow: visible; }
    .admin-registry-section-search { display: none; }
    .admin-registry-sections-list { display: flex; max-height: none; padding: 8px; overflow-x: auto; }
    .admin-registry-section-item { flex: 0 0 auto; min-height: 38px; white-space: nowrap; }
    .admin-registry-results { min-height: 440px; }
    .admin-registry-detail { min-height: 380px; }
}
.phase2-results { min-height: 17px; margin: 0 2px 9px; color: var(--muted); font-size: 12px; }
.phase2-cards { display: grid; gap: 14px; }
.phase2-tab-panel { overflow: hidden; border: 1px solid #c9e3e7; border-radius: 18px; background: #fff; box-shadow: 0 5px 16px rgba(27, 74, 87, .06); }
.phase2-tab-summary { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 14px; min-height: 76px; padding: 16px 20px; color: var(--ink); background: linear-gradient(135deg, #e8f6f8, #f6fbfc); cursor: pointer; list-style: none; }
.phase2-tab-summary::-webkit-details-marker { display: none; }
.phase2-tab-summary:hover { background: #e2f3f5; }
.phase2-tab-panel[open] > .phase2-tab-summary { border-bottom: 1px solid #c9e3e7; background: #e5f4f6; }
.phase2-tab-summary-copy { display: grid; min-width: 0; }
.phase2-tab-summary-copy strong { overflow: hidden; color: var(--ink); font-size: 18px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.phase2-tab-chevron { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #b9dce2; border-radius: 50%; color: var(--teal); background: #fff; }
.phase2-tab-chevron .icon-svg { width: 16px; height: 16px; transition: transform .15s ease; }
.phase2-tab-panel[open] .phase2-tab-chevron .icon-svg { transform: rotate(180deg); }
.phase2-tab-body { padding: 12px; background: #f8fcfd; }
.phase2-topic-groups { display: grid; gap: 10px; }
.phase2-topic-panel { overflow: hidden; border: 1px solid #e0eaed; border-radius: 13px; background: #fff; }
.phase2-topic-panel[open] { border-color: #b8dce1; box-shadow: 0 4px 13px rgba(27, 74, 87, .05); }
.phase2-topic-summary { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 12px; min-height: 58px; padding: 13px 15px; color: var(--ink); background: #fff; cursor: pointer; list-style: none; }
.phase2-topic-summary::-webkit-details-marker { display: none; }
.phase2-topic-summary:hover { background: #fbfefe; }
.phase2-topic-panel[open] > .phase2-topic-summary { border-bottom: 1px solid #e1edef; background: #f5fbfc; }
.phase2-topic-summary-copy { display: grid; min-width: 0; }
.phase2-topic-summary-copy strong { overflow: hidden; color: var(--ink); font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.phase2-topic-chevron { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #c8e1e5; border-radius: 50%; color: var(--teal); background: #fff; }
.phase2-topic-chevron .icon-svg { width: 15px; height: 15px; transition: transform .15s ease; }
.phase2-topic-panel[open] .phase2-topic-chevron .icon-svg { transform: rotate(180deg); }
.phase2-topic-body { display: grid; gap: 8px; padding: 10px; background: #fbfdfe; }
.phase2-card { overflow: hidden; border: 1px solid #e0eaed; border-radius: 11px; background: #fff; }
.phase2-card[open] { border-color: #a8d5da; box-shadow: 0 5px 16px rgba(27, 74, 87, .07); }
.phase2-card-tone-0 .phase2-card-summary { background: #fff; }
.phase2-card-tone-1 .phase2-card-summary { background: #f9fcfb; }
.phase2-card-tone-2 .phase2-card-summary { background: #fbfaff; }
.phase2-card-tone-0 .phase2-card-body { background: #fbfdfe; }
.phase2-card-tone-1 .phase2-card-body { background: #f8fcfb; }
.phase2-card-tone-2 .phase2-card-body { background: #faf9fd; }
.phase2-card-tone-1 { border-color: #d7e9e2; }
.phase2-card-tone-2 { border-color: #e2deec; }
.phase2-card-tone-1[open] { border-color: #9fcfc1; }
.phase2-card-tone-2[open] { border-color: #c2b9d8; }
.phase2-card-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 10px; min-height: 66px; padding: 10px 12px; color: var(--ink); cursor: pointer; list-style: none; }
.phase2-card-summary::-webkit-details-marker { display: none; }
.phase2-card-summary:hover { background: #fbfefe; }
.phase2-card-copy { display: grid; gap: 4px; min-width: 0; }
.phase2-card-copy strong { overflow-wrap: anywhere; color: var(--ink); font-size: 12px; font-weight: 750; line-height: 1.35; white-space: normal; }
.phase2-card-copy small { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; line-height: 1.35; white-space: normal; }
.phase2-card-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 7px; }
.phase2-card-status { padding: 4px 7px; border-radius: 6px; color: #8b5a21; background: #fff5df; font-size: 12px; font-weight: 800; white-space: nowrap; }
.phase2-card-status.is-closed { color: #8b5a21; background: #fff5df; }
.phase2-card-missing { padding: 4px 7px; border-radius: 6px; color: #8b5a21; background: #fff5df; font-size: 12px; font-weight: 800; white-space: nowrap; }
.phase2-card-chevron { display: grid; place-items: center; width: 18px; height: 18px; color: var(--teal); }
.phase2-card-chevron .icon-svg { width: 16px; height: 16px; transition: transform .15s ease; }
.phase2-card[open] .phase2-card-chevron .icon-svg { transform: rotate(180deg); }
.phase2-card-body { padding: 14px; border-top: 1px solid #e7eff1; background: #fbfdfe; }
.phase2-abrogation-evidence { padding: 12px; margin: 0 0 14px; border: 1px solid #d7dee0; border-radius: 9px; background: #f3f5f5; }
.phase2-abrogation-evidence > strong { color: #4b5d62; font-size: 12px; }
.phase2-abrogation-evidence p { margin: 5px 0 0; color: #44555a; font-size: 12px; line-height: 1.5; }
.phase2-abrogation-evidence ul { display: grid; gap: 5px; padding: 0; margin: 9px 0 0; list-style: none; }
.phase2-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; padding-bottom: 15px; }
.phase2-facts-single { grid-template-columns: 1fr; }
.phase2-facts > div { min-width: 0; }
.phase2-facts span, .phase2-edit-grid label { color: #627783; font-size: 12px; font-weight: 800; }
.phase2-facts p { margin: 5px 0 0; color: var(--ink); font-size: 12px; line-height: 1.5; white-space: pre-line; }
.phase2-fact-wide { grid-column: 1 / -1; }
.phase2-edit-section { padding-top: 14px; border-top: 1px solid #e7eff1; }
.phase2-edit-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.phase2-edit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.phase2-edit-grid label { display: grid; gap: 5px; min-width: 0; }
.phase2-edit-grid input, .phase2-edit-grid select, .phase2-edit-grid textarea { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #d8e4e8; border-radius: 8px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; font-weight: 500; line-height: 1.45; }
.phase2-edit-grid textarea { min-height: 66px; resize: vertical; }
.phase2-edit-grid input:focus, .phase2-edit-grid select:focus, .phase2-edit-grid textarea:focus { border-color: #78c3c9; outline: 3px solid rgba(120,195,201,.18); }
.phase2-edit-wide { grid-column: 1 / -1; }
@media (max-width: 760px) {
    .phase2-discovery { align-items: stretch; flex-direction: column; }
    .phase2-discovery-actions { flex-wrap: wrap; }
    .phase2-proposal-facts { grid-template-columns: 1fr; }
    .admin-proposal-filters { padding-right: 14px; padding-left: 14px; }
    .admin-registry-obligations article { grid-template-columns: 23px minmax(0, 1fr); }
    .admin-registry-obligations article label { grid-column: 2; }
    .phase2-discovery-confirm-actions { align-items: stretch; flex-direction: column-reverse; }
    .phase2-discovery-confirm-actions .button { width: 100%; }
}

/* Phase 4 factor matrix: same contained, sticky reference behavior as the
   Phase 1 competency matrix. */
.phase4-matrix-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: clamp(560px, 68vh, 780px);
    max-height: min(78vh, 860px);
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: #9fc6cd #eef4f5;
    scrollbar-width: thin;
}
.phase4-matrix {
    width: max-content;
    min-width: 100%;
    max-width: none;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}
.phase4-matrix > tr:first-child th {
    position: sticky;
    top: 0;
    z-index: 3;
    height: 86px;
    color: var(--teal-dark);
    background: #f2f9fa;
    font-weight: 800;
    vertical-align: middle;
}
.phase4-matrix > tr:first-child th:first-child,
.phase4-matrix > tr:not(:first-child) th {
    position: sticky;
    left: 0;
    width: 290px;
    min-width: 290px;
    text-align: left;
    background: #fff;
    box-shadow: 5px 0 10px rgba(27, 55, 68, .04);
}
.phase4-matrix > tr:first-child th:first-child {
    z-index: 4;
    background: #eaf5f7;
}
.phase4-matrix > tr:first-child th:not(:first-child) {
    width: 148px;
    min-width: 148px;
}
.phase4-matrix > tr:not(:first-child) th {
    z-index: 2;
    vertical-align: middle;
    font-weight: 650;
    line-height: 1.4;
}
.phase4-matrix > tr:hover th,
.phase4-matrix > tr:hover td { background: #fbfefe; }
.phase4-matrix > tr:hover th { background: #f7fbfc; }

@media (max-width: 720px) {
    .phase4-matrix > tr:first-child th:first-child,
    .phase4-matrix > tr:not(:first-child) th { width: 220px; min-width: 220px; }
    .phase4-matrix th, .phase4-matrix td { min-width: 122px; padding: 9px 10px; }
}

@media (max-width: 720px) {
    .phase2-tab-list { grid-template-columns: 1fr; }
    .phase2-source-card { align-items: flex-start; flex-direction: column; }
    .phase2-source-state { align-self: flex-start; }
    .phase2-edit-grid, .phase2-facts { grid-template-columns: 1fr; }
    .phase2-edit-wide, .phase2-fact-wide { grid-column: auto; }
    .phase2-card-summary { grid-template-columns: minmax(0, 1fr) 18px; }
    .phase2-card-meta { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 560px) {
    .phase2-toolbar { align-items: stretch; }
    .phase2-toolbar label, .phase2-toolbar .phase2-search { flex: 1 1 100%; min-width: 0; }
    .phase2-reset { width: 100%; }
    .phase2-tab-summary { min-height: 68px; padding: 14px 16px; }
    .phase2-tab-summary-copy strong { white-space: normal; }
    .phase2-topic-summary-copy strong { white-space: normal; }
    .phase2-card-copy strong, .phase2-card-copy small { white-space: normal; }
    .phase6-section-heading, .phase6-matrix-row { align-items: stretch; flex-direction: column; }
    .phase6-section-heading .button { width: 100%; }
    .phase6-matrix-toolbar, .phase6-significance-title { align-items: stretch; flex-direction: column; }
    .phase6-matrix-activity { min-width: 0; width: 100%; }
    .phase6-matrix-toolbar select { min-width: 0; width: 100%; }
    .phase6-significance-title small { max-width: none; text-align: left; }
    .phase6-significance-filters { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .phase6-significance-search, .phase6-significance-reset { grid-column: 1 / -1; }
    .phase6-significance-card-summary { grid-template-columns: minmax(0, 1fr); }
    .phase6-significance-card-meta { justify-content: flex-start; }
    .phase6-activity-row { grid-template-columns: minmax(0, 1fr) 32px; }
    .phase6-review-grid, .phase6-objective-grid { grid-template-columns: 1fr; }
    .phase6-objective-toolbar, .phase6-year-actions, .phase6-objective-process-summary { align-items: stretch; flex-direction: column; }
    .phase6-objective-process-meta { justify-content: space-between; width: 100%; }
    .phase6-objective-process-copy h3, .phase6-objective-description-copy strong { white-space: normal; }
    .phase6-objective-description-summary { grid-template-columns: 1fr; align-items: stretch; }
    .phase6-objective-summary-meta { justify-content: flex-start; }
    .phase6-objective-section-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .phase6-objective-row { align-items: stretch; }
}

/* Shared horizontal editing layout for the operational phase steps.
   Long descriptions remain vertical; comparable fields stay aligned. */
.phase4-acro-row-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    align-items: start;
}
.phase4-acro-row-body > .phase4-acro-row-details,
.phase4-acro-row-body > .phase4-acro-followup-opportunity {
    grid-column: 1 / -1;
}
.phase4-acro-row-body > .phase4-acro-remove {
    grid-column: 2;
    justify-self: end;
    margin-top: 0;
}
.phase4-acro-followup-rows .phase4-acro-row-body {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .95fr);
    align-items: end;
}
.phase4-acro-followup-rows .phase4-acro-row-body > .phase4-acro-followup-field {
    grid-column: 1;
}
.phase4-acro-followup-rows .phase4-acro-row-body > .phase4-acro-score-grid {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(90px, 1fr));
    min-width: 0;
    padding: 0 0 0 18px;
    margin: 0;
    border-top: 0;
    border-left: 1px solid #e7eff1;
}

.phase6-significance-item {
    grid-template-columns: minmax(220px, .85fr) minmax(0, 1.35fr);
    align-items: start;
}
.phase6-significance-item > .phase6-significance-title {
    grid-column: 1;
}
.phase6-significance-item > .phase6-significance-fields {
    grid-column: 2;
    justify-content: flex-end;
    align-content: start;
}
.phase6-significance-item > .phase6-significance-result,
.phase6-significance-item > .phase6-wide-field,
.phase6-significance-item > .phase6-significance-evidence {
    grid-column: 1 / -1;
}

.phase7-document-card {
    grid-template-columns: minmax(250px, 1.3fr) minmax(220px, 1fr) minmax(170px, .6fr);
}
.phase7-document-main,
.phase7-document-ai,
.phase7-document-decision {
    min-width: 0;
}
.phase7-document-decision {
    align-self: center;
}

@media (max-width: 900px) {
    .phase4-acro-row-body,
    .phase4-acro-followup-rows .phase4-acro-row-body {
        grid-template-columns: minmax(0, 1fr);
    }
    .phase4-acro-row-body > .phase4-acro-remove,
    .phase4-acro-followup-rows .phase4-acro-row-body > .phase4-acro-followup-field,
    .phase4-acro-followup-rows .phase4-acro-row-body > .phase4-acro-score-grid {
        grid-column: 1;
    }
    .phase4-acro-followup-rows .phase4-acro-row-body > .phase4-acro-score-grid {
        padding: 12px 0 0;
        border-top: 1px solid #e7eff1;
        border-left: 0;
    }
}

@media (max-width: 720px) {
    .phase6-significance-item {
        grid-template-columns: 1fr;
    }
    .phase6-significance-item > .phase6-significance-title,
    .phase6-significance-item > .phase6-significance-fields,
    .phase6-significance-item > .phase6-significance-result,
    .phase6-significance-item > .phase6-wide-field,
    .phase6-significance-item > .phase6-significance-evidence {
        grid-column: auto;
    }
    .phase6-significance-item > .phase6-significance-fields {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .phase7-document-card {
        grid-template-columns: minmax(0, 1fr) minmax(155px, .8fr);
    }
    .phase7-document-decision {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .phase7-document-card {
        grid-template-columns: 1fr;
    }
    .phase7-document-decision {
        grid-column: auto;
    }
}

/* Horizontal operational workspaces.
   The register/master pattern is useful here for comparable work: the
   parent group stays visible, while the repeated cards use the available
   desktop width. The existing narrow breakpoints remain stacked. */
@media (min-width: 1101px) {
    .phase4-acro-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
    .phase4-acro-party-tab {
        min-width: 0;
    }
    .phase4-acro-party-tab:has(.phase4-acro-expectation-groups) {
        grid-column: 1 / -1;
    }
    .phase4-acro-party-tab:has(.phase4-acro-expectation-groups) .phase4-acro-expectation-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
    .phase4-acro-followup-rows {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .phase6-significance-card {
        min-width: 0;
    }

}

@media (max-width: 1100px) {
    .phase4-acro-groups,
    .phase6-significance-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-content:has(.admin-registry, .phase4-wizard, .phase6-aspect-matrix, .phase6-significance-list, .phase7-card, .phase7-document-card) {
        width: min(100% - 28px, 100%);
    }
}

/* Shared three-pane workspace for all ACRO editing steps. Every column is
   shrinkable, so long labels and score controls stay inside the card. */
.phase4-acro-groups.phase4-acro-three-pane {
    grid-template-columns: minmax(170px, .78fr) minmax(220px, 1fr) minmax(0, 1.72fr);
    min-width: 0;
}
.phase4-acro-three-pane .phase4-acro-initial-pane,
.phase4-acro-three-pane .phase4-acro-initial-content-list,
.phase4-acro-three-pane .phase4-acro-initial-pane-list,
.phase4-acro-three-pane .phase4-acro-row,
.phase4-acro-three-pane .phase4-acro-row-body,
.phase4-acro-three-pane .phase4-acro-row-details,
.phase4-acro-three-pane .phase4-acro-followup-grid {
    min-width: 0;
    max-width: 100%;
}
.phase4-acro-three-pane .phase4-acro-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
}
.phase4-acro-three-pane .phase4-acro-score-field,
.phase4-acro-three-pane .phase4-acro-type-field,
.phase4-acro-three-pane .phase4-acro-followup-field,
.phase4-acro-three-pane select,
.phase4-acro-three-pane textarea,
.phase4-acro-three-pane input {
    min-width: 0;
    max-width: 100%;
}
.phase4-acro-three-pane .phase4-acro-row-summary-copy,
.phase4-acro-three-pane .phase4-acro-row-summary-copy strong,
.phase4-acro-three-pane .phase4-acro-row-summary-copy small,
.phase4-acro-three-pane .phase4-acro-selection-copy,
.phase4-acro-three-pane .phase4-acro-selection-copy strong,
.phase4-acro-three-pane .phase4-acro-selection-copy small {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Opt-in long descriptions: the shared script sets the exact content height. */
textarea[data-auto-grow] {
    min-height: 78px;
    overflow-y: hidden;
    resize: none;
}
.phase4-acro-three-pane .phase4-acro-initial-pane-list,
.phase4-acro-three-pane .phase4-acro-initial-content-list {
    max-height: min(78vh, 900px);
}

@media (max-width: 1100px) and (min-width: 721px) {
    .phase4-acro-groups.phase4-acro-three-pane {
        grid-template-columns: minmax(180px, .75fr) minmax(220px, 1fr);
    }
    .phase4-acro-three-pane .phase4-acro-initial-content {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .phase4-acro-groups.phase4-acro-three-pane {
        grid-template-columns: 1fr;
    }
    .phase4-acro-three-pane .phase4-acro-initial-content {
        grid-column: auto;
    }
    .phase4-acro-three-pane .phase4-acro-initial-pane-list,
    .phase4-acro-three-pane .phase4-acro-initial-content-list {
        max-height: none;
    }
}

/* Phase 4 / Step 4: three-pane ACRO workspace.
   The navigation hierarchy stays visible while the selected contents remain
   beside it, following the same dense register pattern used in Phase 2. */
.phase4-acro-groups.phase4-acro-initial-workspace,
.phase4-acro-groups.phase4-acro-three-pane {
    display: grid;
    grid-template-columns: minmax(170px, .78fr) minmax(220px, 1fr) minmax(0, 1.72fr);
    gap: 14px;
    align-items: start;
}
.phase4-acro-initial-pane {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #c9e3e7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(27, 74, 87, .06);
}
.phase4-acro-initial-pane-header {
    display: grid;
    gap: 4px;
    min-height: 76px;
    padding: 16px 17px 13px;
    border-bottom: 1px solid #dcebed;
    background: linear-gradient(135deg, #e8f6f8, #f6fbfc);
}
.phase4-acro-initial-pane-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.2;
}
.phase4-acro-initial-pane-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}
.phase4-acro-initial-pane-list,
.phase4-acro-initial-content-list {
    display: grid;
    gap: 8px;
    max-height: min(78vh, 900px);
    padding: 11px;
    overflow: auto;
    scrollbar-color: #9fc6cd #eef4f5;
    scrollbar-width: thin;
}
.phase4-acro-selection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 11px 10px;
    border: 1px solid #e0eaed;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.phase4-acro-selection-item:hover,
.phase4-acro-selection-item:focus-visible {
    border-color: #9bcfd4;
    background: #f7fcfd;
    outline: 0;
}
.phase4-acro-selection-item:focus-visible {
    box-shadow: 0 0 0 3px rgba(120,195,201,.18);
}
.phase4-acro-selection-item.is-selected {
    border-color: var(--teal);
    background: var(--teal);
    box-shadow: 0 5px 13px rgba(22, 115, 135, .15);
}
.phase4-acro-selection-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.phase4-acro-selection-copy strong,
.phase4-acro-selection-copy small {
    overflow-wrap: anywhere;
}
.phase4-acro-selection-copy strong {
    color: var(--ink);
    font-size: 12px;
    line-height: 1.3;
}
.phase4-acro-selection-copy small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}
.phase4-acro-selection-item.is-selected .phase4-acro-selection-copy strong,
.phase4-acro-selection-item.is-selected .phase4-acro-selection-copy small {
    color: #fff;
}
.phase4-acro-initial-content-list {
    gap: 9px;
    background: #f8fcfd;
}
.phase4-acro-initial-content .phase4-acro-row {
    box-shadow: 0 2px 7px rgba(27, 74, 87, .04);
}
.phase4-acro-initial-content .phase4-acro-row-body {
    padding: 12px;
}
.phase4-acro-toggle {
    grid-column: 2;
    justify-self: end;
    min-width: 92px;
    min-height: 32px;
    padding: 0 11px;
    font-size: 12px;
}
.phase4-acro-disabled-label {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    color: #63717b;
    background: #e9eef1;
    font-size: 12px;
    font-weight: 800;
}
.phase4-acro-row.is-disabled {
    border-color: #d9e0e4;
    background: #f3f5f6;
    box-shadow: none;
}
.phase4-acro-row.is-disabled > summary {
    color: #71808a;
    background: #f3f5f6;
}
.phase4-acro-row.is-disabled .phase4-acro-row-body {
    background: #f3f5f6;
}
.phase4-acro-row.is-disabled .phase4-acro-row-details input:disabled,
.phase4-acro-row.is-disabled .phase4-acro-row-details select:disabled,
.phase4-acro-row.is-disabled .phase4-acro-row-details textarea:disabled {
    color: #78858d;
    background: #e9eef1;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .phase4-acro-groups.phase4-acro-initial-workspace,
    .phase4-acro-groups.phase4-acro-three-pane {
        grid-template-columns: minmax(180px, .75fr) minmax(220px, 1fr);
    }
    .phase4-acro-initial-content {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .phase4-acro-groups.phase4-acro-initial-workspace,
    .phase4-acro-groups.phase4-acro-three-pane {
        grid-template-columns: 1fr;
    }
    .phase4-acro-initial-content {
        grid-column: auto;
    }
    .phase4-acro-initial-pane-list,
    .phase4-acro-initial-content-list {
        max-height: none;
    }
}

/* Phase 6 Step 4: three-pane objectives and monitoring register. */
.phase6-objective-registry { display: grid; grid-template-columns: minmax(185px, .24fr) minmax(245px, .3fr) minmax(0, .46fr); align-items: stretch; gap: 10px; height: min(760px, calc(100vh - 285px)); min-height: 520px; }
.phase6-objective-pane, .phase6-objective-detail-panel { min-width: 0; height: 100%; overflow: auto; border: 1px solid #cfe2e6; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(27, 74, 87, .04); }
.phase6-objective-pane-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 14px 10px; border-bottom: 1px solid #e7eff1; }
.phase6-objective-pane-heading strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.phase6-objective-pane-heading span { color: var(--muted); font-size: 12px; font-weight: 750; white-space: nowrap; }
.phase6-objective-process-list, .phase6-objective-items-list { display: grid; gap: 4px; padding: 6px; }
.phase6-objective-process-item, .phase6-objective-item { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; min-width: 0; padding: 10px 9px; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.phase6-objective-process-item:hover, .phase6-objective-process-item:focus-visible, .phase6-objective-item:hover, .phase6-objective-item:focus-visible { border-color: #c7dfe4; background: #f5fbfc; outline: 0; }
.phase6-objective-process-item.is-selected, .phase6-objective-item.is-selected { border-color: #9ed5df; background: #eaf7f8; }
.phase6-objective-process-item-copy, .phase6-objective-item-copy { display: grid; gap: 3px; min-width: 0; }
.phase6-objective-process-item-copy strong, .phase6-objective-item-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 900; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.phase6-objective-process-item-copy small, .phase6-objective-item-copy small { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.phase6-objective-process-count { display: inline-grid; place-items: center; min-width: 22px; height: 21px; flex: 0 0 auto; border-radius: 6px; color: var(--teal-dark); background: #e8f6f8; font-size: 12px; font-weight: 850; }
.phase6-objective-item { align-items: flex-start; }
.phase6-objective-item-status { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: max-content; min-width: max-content; max-width: none; padding: 4px 8px; border-radius: 6px; color: #755923; background: #fff6df; font-size: 12px; font-weight: 850; line-height: 1.1; text-align: center; white-space: nowrap; }
.phase6-objective-item-status[data-objective-status="RAGGIUNTO"] { color: #27704a; background: #e9f8ef; }
.phase6-objective-item-status[data-objective-status="NON RAGGIUNTO"] { color: #a24646; background: #fff0f0; }
.phase6-objective-item-status[data-objective-status="IN CORSO"] { color: #85641b; background: #fff0c9; }
.phase6-objective-item.is-disabled { border-color: #e0e6e8; color: #738188; background: #f1f4f5; }
.phase6-objective-item.is-disabled .phase6-objective-item-copy strong, .phase6-objective-item.is-disabled .phase6-objective-item-copy small { color: #7d898e; }
.phase6-objective-item-status.is-disabled { color: #68777d; background: #e2e8ea; }
.phase6-objective-detail-panel { padding: 14px; }
.phase6-objective-detail { display: grid; gap: 12px; }
.phase6-objective-detail.is-disabled .phase6-objective-section { border-color: #e0e6e8; background: #f4f6f7; }
.phase6-objective-detail.is-disabled .phase6-objective-section-heading strong { color: #68777d; }
.phase6-objective-detail.is-disabled .phase6-objective-field input:disabled, .phase6-objective-detail.is-disabled .phase6-objective-field select:disabled, .phase6-objective-detail.is-disabled .phase6-objective-field textarea:disabled { color: #7d898e; border-color: #d9e0e2; background: #edf1f2; cursor: not-allowed; opacity: 1; }
.phase6-objective-toggle { justify-self: end; min-width: 82px; white-space: nowrap; }
.phase6-objective-detail-heading { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #e7eff1; }
.phase6-objective-detail-heading > div { display: grid; gap: 4px; min-width: 0; }
.phase6-objective-detail-heading span { color: var(--teal-dark); font-size: 12px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.phase6-objective-detail-heading strong { color: var(--ink); font-size: 14px; line-height: 1.3; }
.phase6-objective-detail-sections { display: grid; gap: 10px; }
.phase6-objective-detail-sections .phase6-objective-section { gap: 9px; padding: 11px; }
.phase6-objective-detail-sections .phase6-objective-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.phase6-objective-detail-sections .phase6-objective-field-wide { grid-column: 1 / -1; }

@media (max-width: 1050px) {
    .phase6-objective-registry { grid-template-columns: minmax(165px, .25fr) minmax(220px, .32fr) minmax(0, .43fr); }
}

@media (max-width: 800px) {
    .phase6-objective-registry { grid-template-columns: 1fr; height: auto; min-height: 0; }
    .phase6-objective-pane, .phase6-objective-detail-panel { height: auto; max-height: none; }
    .phase6-objective-detail-sections .phase6-objective-grid { grid-template-columns: 1fr; }
    .phase6-objective-detail-sections .phase6-objective-field-wide { grid-column: auto; }
}

/* Phase 6 Step 3: three-pane environmental significance register. */
.phase6-significance-registry { display: grid; grid-template-columns: minmax(185px, .22fr) minmax(245px, .33fr) minmax(0, .45fr); align-items: start; gap: 10px; }
.phase6-significance-pane, .phase6-significance-detail-panel { min-width: 0; border: 1px solid #cfe2e6; border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(27, 74, 87, .04); }
.phase6-significance-pane { position: sticky; top: 136px; max-height: calc(100vh - 170px); overflow: auto; }
.phase6-significance-pane-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 14px 10px; border-bottom: 1px solid #e7eff1; }
.phase6-significance-pane-heading strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.phase6-significance-pane-heading span { color: var(--muted); font-size: 12px; font-weight: 750; white-space: nowrap; }
.phase6-significance-activity-list, .phase6-significance-evaluation-list { display: grid; gap: 4px; padding: 6px; }
.phase6-significance-activity-item, .phase6-significance-evaluation-item { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; min-width: 0; padding: 10px 9px; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.phase6-significance-activity-item:hover, .phase6-significance-activity-item:focus-visible, .phase6-significance-evaluation-item:hover, .phase6-significance-evaluation-item:focus-visible { border-color: #c7dfe4; background: #f5fbfc; outline: 0; }
.phase6-significance-activity-item.is-selected, .phase6-significance-evaluation-item.is-selected { border-color: #9ed5df; background: #eaf7f8; }
.phase6-significance-activity-copy, .phase6-significance-evaluation-copy { display: grid; gap: 3px; min-width: 0; }
.phase6-significance-activity-copy strong, .phase6-significance-evaluation-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 900; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.phase6-significance-activity-copy small, .phase6-significance-evaluation-copy small { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.phase6-significance-activity-count { display: inline-grid; place-items: center; min-width: 22px; height: 21px; flex: 0 0 auto; border-radius: 6px; color: var(--teal-dark); background: #e8f6f8; font-size: 12px; font-weight: 850; }
.phase6-significance-evaluation-item { align-items: flex-start; }
.phase6-significance-status-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 0; max-width: 118px; padding: 4px 7px; border-radius: 6px; color: #85641b; background: #fff3d6; font-size: 12px; font-weight: 850; line-height: 1.1; text-align: center; white-space: nowrap; }
.phase6-significance-status-non-rilevante { color: #397052; background: #e5f4e9; }
.phase6-significance-status-rilevante { color: #8a6215; background: #fff0c9; }
.phase6-significance-status-molto-rilevante { color: #a34444; background: #ffe5e3; }
.phase6-significance-status-empty { color: #6f7f84; background: #edf2f3; }
.phase6-significance-evaluation-item .phase6-significance-status-pill { flex: 0 0 auto; }
.phase6-significance-detail-panel { position: sticky; top: 136px; max-height: calc(100vh - 170px); overflow: auto; padding: 14px; }
.phase6-significance-detail { display: grid; gap: 12px; }
.phase6-significance-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #e7eff1; }
.phase6-significance-detail-heading > div { display: grid; gap: 4px; min-width: 0; }
.phase6-significance-detail-heading span:first-child { color: var(--teal-dark); font-size: 12px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.phase6-significance-detail-heading strong { color: var(--ink); font-size: 14px; line-height: 1.3; }
.phase6-significance-detail-cards { display: grid; gap: 10px; }
.phase6-significance-detail-card { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 12px; border: 1px solid #dce9ec; border-radius: 10px; background: #fff; }
.phase6-significance-detail-card-heading { display: grid; gap: 3px; padding-bottom: 8px; border-bottom: 1px solid #e8eff1; }
.phase6-significance-detail-card-heading > span { color: var(--teal-dark); font-size: 12px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.phase6-significance-detail-card-heading > strong { color: var(--ink); font-size: 12px; line-height: 1.3; }
.phase6-significance-detail-card-aspect dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.phase6-significance-detail-card-aspect dl div { display: grid; gap: 3px; }
.phase6-significance-detail-card-aspect dt { color: var(--muted); font-size: 12px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.phase6-significance-detail-card-aspect dd { margin: 0; color: var(--ink); font-size: 12px; line-height: 1.35; }
.phase6-significance-detail-criteria { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 6px; }
.phase6-significance-detail-criteria > label { grid-template-rows: 16px 34px auto; align-content: start; }
.phase6-significance-detail-card label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 850; }
.phase6-significance-detail-card select, .phase6-significance-detail-card input, .phase6-significance-detail-card textarea { width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid #d5e3e7; border-radius: 7px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; line-height: 1.25; outline: 0; }
.phase6-significance-detail-card select, .phase6-significance-detail-card input { min-height: 30px; }
.phase6-significance-detail-card select:focus, .phase6-significance-detail-card input:focus, .phase6-significance-detail-card textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22, 115, 135, .1); }
.phase6-significance-detail-card textarea { min-height: 70px; resize: vertical; }
.phase6-significance-detail-card textarea:disabled { color: #9aa9ad; background: #f4f8f9; cursor: not-allowed; }
.phase6-significance-detail-card small { color: var(--muted); font-size: 12px; font-weight: 600; }
.phase6-significance-legend-content { min-width: 0; }
.phase6-significance-legend-content > strong { font-size: 12px; }
.phase6-significance-legend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.phase6-significance-legend-grid > div { min-width: 0; padding-top: 8px; border-top: 1px solid #d5e9ec; }
.phase6-significance-legend-grid > div > strong { font-size: 12px; }
.phase6-significance-legend-grid p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.phase6-significance-legend-grid p b { color: #3f5b68; }
.phase6-significance-criteria-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.phase6-significance-result { flex: 0 0 auto; font-size: 12px; font-weight: 850; }
.phase6-significance-result-empty { color: var(--muted); background: #eef3f4; }
.phase6-significance-result-non-rilevante { border-color: #cfe6d6; color: #27704a; background: #e9f8ee; }
.phase6-significance-result-rilevante { border-color: #efdfb5; color: #8a6215; background: #fff0c9; }
.phase6-significance-result-molto-rilevante { border-color: #efcccc; color: #a34444; background: #ffe5e3; }
.phase6-significance-direction { min-width: 0; padding: 0; margin: 0; border: 0; }
.phase6-significance-direction legend { margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 850; }
.phase6-significance-influence > span { color: inherit; }
.phase6-significance-influence-error { color: #a34444 !important; font-weight: 700 !important; }
.phase6-significance-influence-error[hidden] { display: none; }
.phase6-significance-direction legend .required-field-marker { color: #b42318; }
.phase6-significance-direction-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.phase6-significance-detail-card .phase6-significance-direction-option { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px 9px; border: 1px solid #d5e3e7; border-radius: 8px; color: var(--ink); background: #fff; cursor: pointer; }
.phase6-significance-detail-card .phase6-significance-direction-option.is-selected { border-color: #8fc7cf; background: #eaf7f8; }
.phase6-significance-direction-option input[type="radio"] { width: 15px; min-width: 15px; min-height: 15px; height: 15px; padding: 0; margin: 0; accent-color: var(--teal); }
.phase6-significance-direction-option > span { display: grid; gap: 2px; }
.phase6-significance-direction-option strong { color: var(--ink); font-size: 12px; }
.phase6-significance-direction-option small { font-size: 12px !important; line-height: 1.25; }
.phase6-significance-influence input { margin-top: 4px; }
.phase6-significance-detail-criteria > label > span { display: flex; align-items: center; min-height: 16px; gap: 2px; }
.phase6-significance-detail-criteria .required-field-marker { margin: 0; color: #b42318; font-size: 1em; }
@media (max-width: 760px) { .phase6-significance-legend-grid { grid-template-columns: 1fr; gap: 9px; } }

@media (max-width: 1050px) {
    .phase6-significance-registry { grid-template-columns: minmax(165px, .25fr) minmax(220px, .35fr) minmax(0, .4fr); }
    .phase6-significance-detail-criteria { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .phase6-significance-registry { grid-template-columns: 1fr; }
    .phase6-significance-pane, .phase6-significance-detail-panel { position: static; max-height: none; }
    .phase6-significance-detail-criteria { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Phase 8 Step 5: compact supplier verification form. */
.phase8-supplier-selector { grid-template-columns: minmax(0, 1fr) minmax(245px, .62fr); gap: 14px; align-items: center; padding: 13px 16px; margin: 16px 0 12px; }
.phase8-supplier-selector h3 { margin: 4px 0 0; font-size: 15px; }
.phase8-supplier-selector .helper { margin: 3px 0 0; }
.phase8-supplier-card { padding: 16px; }
.phase8-supplier-card header { align-items: center; padding-bottom: 11px; }
.phase8-supplier-card header h3 { margin: 4px 0 0; font-size: 20px; }
.phase8-supplier-card header .helper { margin: 4px 0 0; }
.phase8-supplier-card-status { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.phase8-supplier-section { padding: 13px 0 1px; margin-top: 13px; }
.phase8-supplier-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.phase8-supplier-section-heading h4 { margin: 0; font-size: 15px; }
.phase8-supplier-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.phase8-questionnaire-answers dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.phase8-questionnaire-answers dl > div { min-width: 0; padding: 11px 12px; border: 1px solid #d8e8eb; border-radius: 9px; background: #f5fafb; }
.phase8-questionnaire-answers dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.phase8-questionnaire-answers dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.phase8-questionnaire-answers small { display: block; margin-top: 5px; color: var(--muted); }
.phase8-supplier-data-grid, .phase8-risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.phase8-supplier-form .field { margin-bottom: 0; }
.phase8-supplier-form .field > label { min-height: 0; margin-bottom: 5px; font-size: 12px; line-height: 1.25; }
.phase8-supplier-form .field input, .phase8-supplier-form .field select { min-height: 38px; padding: 8px 10px; font-size: 12px; }
.phase8-supplier-form .phase8-criteria-section .form-grid { gap: 10px 12px; }
.phase8-supplier-form .phase8-criteria-section .field > label { min-height: 0; }

@media (max-width: 760px) {
    .phase8-supplier-selector { grid-template-columns: 1fr; align-items: stretch; }
    .phase8-supplier-card-status { justify-content: flex-start; }
    .phase8-questionnaire-answers dl { grid-template-columns: 1fr; }
    .phase8-supplier-data-grid, .phase8-risk-grid { grid-template-columns: 1fr; }
    .phase8-unassigned-questionnaire { grid-template-columns: 1fr; align-items: stretch; }
    .phase8-unassigned-questionnaire > .button { width: 100%; }
}

/* Keep supplier fields aligned when a question wraps onto two lines. */
.phase8-supplier-form .phase8-supplier-data-grid,
.phase8-supplier-form .phase8-risk-grid,
.phase8-supplier-form .phase8-criteria-section .form-grid { align-items: start; }
.phase8-supplier-form .phase8-supplier-data-grid .field > label,
.phase8-supplier-form .phase8-risk-grid .field > label,
.phase8-supplier-form .phase8-criteria-section .field > label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: end;
    align-items: start;
    column-gap: 4px;
    min-height: 2.6em;
}
.phase8-supplier-form .phase8-required-marker {
    align-self: start;
    margin: 0;
    line-height: inherit;
}

/* Phase 8 supplier verification: one identity control, one clear form flow. */
.phase8-supplier-selector {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 0 16px;
    align-items: start;
    padding: 0 0 14px;
    margin: 12px 0 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}
.phase8-supplier-selector > label {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding-bottom: 6px;
    color: #415461;
    font-size: 13px;
    font-weight: 800;
}
.phase8-supplier-selector select {
    min-height: 44px;
    padding: 10px 42px 10px 12px;
    border-color: var(--line);
    border-radius: 9px;
    font-size: 13px;
}
.phase8-supplier-select-shell {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}
.phase8-supplier-save-hint {
    grid-column: 1 / -1;
    grid-row: 3;
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}
.phase8-supplier-toolbar-status {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}
.phase8-supplier-toolbar-status[hidden] { display: none; }
.phase8-supplier-toolbar-status [data-phase8-supplier-original][hidden] { display: none; }
.phase8-supplier-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.phase8-supplier-card-tools {
    align-items: center;
    justify-content: flex-end;
    min-height: 38px;
    padding: 0 0 12px;
    border-bottom-color: var(--line);
}
.phase8-supplier-section { padding: 18px 0 2px; margin-top: 16px; }
.phase8-supplier-form > .phase8-supplier-section:first-of-type {
    padding-top: 2px;
    margin-top: 0;
    border-top: 0;
}
.phase8-supplier-section-heading { margin-bottom: 12px; }
.phase8-supplier-section-heading h4 { font-size: 16px; }
.phase8-supplier-data-grid,
.phase8-risk-grid,
.phase8-qualification-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.phase8-supplier-form .field > label {
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.35;
}
.phase8-supplier-form .field input,
.phase8-supplier-form .field select { min-height: 42px; padding: 9px 11px; font-size: 13px; }
.phase8-supplier-form .phase8-supplier-data-grid .field > label,
.phase8-supplier-form .phase8-risk-grid .field > label,
.phase8-supplier-form .phase8-qualification-grid .field > label { min-height: 2.7em; }
@media (max-width: 760px) {
    .phase8-supplier-selector { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 0; align-items: stretch; padding-bottom: 13px; }
    .phase8-supplier-selector > label { grid-column: 1; grid-row: 1; }
    .phase8-supplier-select-shell { grid-column: 1; grid-row: 2; }
    .phase8-supplier-toolbar-status { grid-column: 1; grid-row: 3; justify-content: flex-start; flex-wrap: wrap; margin-top: 9px; }
    .phase8-supplier-save-hint { grid-column: 1; grid-row: 4; }
    .phase8-supplier-form .phase8-supplier-data-grid,
    .phase8-supplier-form .phase8-risk-grid,
    .phase8-supplier-form .phase8-qualification-grid { grid-template-columns: 1fr; }
    .phase8-supplier-form .phase8-supplier-data-grid .field > label,
    .phase8-supplier-form .phase8-risk-grid .field > label,
    .phase8-supplier-form .phase8-qualification-grid .field > label { min-height: 0; }
}

/* Shared typography policy: emphasis belongs only to page/section headings.
   Important deliberately overrides legacy component and inline weights,
   including dynamically inserted content, without changing their layout. */
body,
body :where(*, *::before, *::after) {
    font-weight: 400 !important;
}

body :is(h1, h2, h3) {
    font-weight: 700 !important;
}

/* Shared section headers may use strong instead of a heading element.
   Keep emphasis in header roles only, not in data, badges or controls. */
body :is([class$="-heading"], [class$="-header"], [class$="-head"]) > strong,
body :is([class$="-heading"], [class$="-header"], [class$="-head"]) > div > strong {
    font-size: 15px;
    font-weight: 600 !important;
    line-height: 1.4;
    color: var(--ink);
}

.phase9-checklist-index-main strong { font-size: 14px; }
.phase9-checklist-index-main small { font-size: 12px; line-height: 1.45; }

body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    font-size: 13px;
    line-height: 1.5;
}

/* Controls remain regular even when embedded inside a heading. */
body :is(input, textarea, select, option, button),
body :is(input, textarea)::placeholder {
    font-weight: 400 !important;
}

.phase9-checklist-detail-body .phase9-source-list { align-items: start; gap: 12px; font-size: 13px; line-height: 1.5; }
.phase9-source-list > span { color: var(--teal-dark); }
.phase9-source-list details { min-width: 0; }
.phase9-checklist-detail-body .phase9-source-list p { padding: 0; font-size: 13px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.phase9-source-list summary { display: flex; align-items: baseline; gap: 10px; padding: 0; font-size: 13px; line-height: 1.5; list-style: none; }
.phase9-source-list summary::-webkit-details-marker { display: none; }
.phase9-source-list summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 3px; }
.phase9-source-preview { overflow-wrap: anywhere; color: var(--muted); }
.phase9-source-expand, .phase9-source-collapse { flex-shrink: 0; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.phase9-source-collapse, .phase9-source-list details[open] .phase9-source-expand { display: none; }
.phase9-source-list details[open] .phase9-source-collapse { display: inline; }
.phase9-source-list ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.phase9-source-list li { padding: 3px 0; overflow-wrap: anywhere; }

/* Selection workspaces share the Phase 4 card treatment. Keep each component's
   layout, scrolling, filters and status badges; borders separate the entries. */
:is(.phase4-acro-initial-pane, .admin-registry-sections, .admin-registry-results,
    .phase9-checklist-index, .phase9-registry-index, .phase9-field-index,
    .phase6-objective-pane, .phase6-significance-pane,
    .phase8-monitoring-index, .phase8-monitoring-results, .phase11-review-index) {
    min-width: 0;
    border: 1px solid #c9e3e7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(27, 74, 87, .06);
}

.phase11-review-index { padding: 0; overflow: hidden; }

:is(.phase4-acro-initial-pane-header, .admin-registry-panel-heading,
    .phase9-checklist-index-heading, .phase9-registry-index-heading,
    .phase9-field-index-heading, .phase6-objective-pane-heading,
    .phase6-significance-pane-heading, .phase8-monitoring-index-heading,
    .phase8-monitoring-panel-heading, .phase11-review-index-heading) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-height: 76px;
    padding: 16px 17px 13px;
    border-bottom: 1px solid #dcebed;
    background: linear-gradient(135deg, #e8f6f8, #f6fbfc);
}

.admin-registry-panel-heading .section-kicker { display: none; }

:is(.phase4-acro-initial-pane-header, .admin-registry-panel-heading,
    .phase9-checklist-index-heading, .phase9-registry-index-heading,
    .phase9-field-index-heading, .phase6-objective-pane-heading,
    .phase6-significance-pane-heading, .phase8-monitoring-index-heading,
    .phase8-monitoring-panel-heading, .phase11-review-index-heading) :is(h3, strong) {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

:is(.phase9-checklist-index-heading, .phase9-registry-index-heading,
    .phase9-field-index-heading, .phase6-objective-pane-heading,
    .phase6-significance-pane-heading, .phase8-monitoring-index-heading,
    .phase8-monitoring-panel-heading, .phase11-review-index-heading) > span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

:is(.phase4-acro-initial-pane-list, .admin-registry-sections-list,
    .phase9-checklist-index-list, .phase9-registry-index-list,
    .phase9-field-index-list, .phase6-objective-process-list,
    .phase6-objective-items-list, .phase6-significance-activity-list,
    .phase6-significance-evaluation-list, .phase8-monitoring-index-list,
    .phase8-monitoring-list, .phase11-review-index-list) {
    align-content: start;
    gap: 8px;
    padding: 11px;
}

.admin-registry-topic-group { display: grid; gap: 8px; padding: 11px; }
.admin-registry-topic-group h4 { margin: 0; padding: 3px 0 6px; border: 0; color: var(--ink); font-size: 13px; }
.phase8-monitoring-area-heading { padding: 13px 11px 0; text-transform: none; letter-spacing: normal; }

:is(.phase4-acro-selection-item, .admin-registry-section-item, .admin-registry-row,
    .phase9-checklist-index-item, .phase9-registry-index-item,
    .phase9-field-index-item, .phase6-objective-process-item,
    .phase6-objective-item, .phase6-significance-activity-item,
    .phase6-significance-evaluation-item, .phase8-monitoring-index-item,
    .phase8-monitoring-row, .phase11-review-index-item) {
    min-width: 0;
    min-height: 48px;
    padding: 11px 10px;
    border: 1px solid #e0eaed;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    box-shadow: none;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

:is(.phase4-acro-selection-item, .admin-registry-section-item, .admin-registry-row,
    .phase9-checklist-index-item, .phase9-registry-index-item,
    .phase9-field-index-item, .phase6-objective-process-item,
    .phase6-objective-item, .phase6-significance-activity-item,
    .phase6-significance-evaluation-item, .phase8-monitoring-index-item,
    .phase8-monitoring-row, .phase11-review-index-item):hover {
    border-color: #9bcfd4;
    background: #f7fcfd;
}

:is(.phase4-acro-selection-item, .admin-registry-section-item, .admin-registry-row,
    .phase9-checklist-index-item, .phase9-registry-index-item,
    .phase9-field-index-item, .phase6-objective-process-item,
    .phase6-objective-item, .phase6-significance-activity-item,
    .phase6-significance-evaluation-item, .phase8-monitoring-index-item,
    .phase11-review-index-item):focus-visible,
.phase8-monitoring-row:has(.phase8-monitoring-row-summary:focus-visible) {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

:is(.phase4-acro-selection-item, .admin-registry-section-item, .admin-registry-row,
    .phase9-checklist-index-item, .phase9-registry-index-item,
    .phase9-field-index-item, .phase6-objective-process-item,
    .phase6-objective-item, .phase6-significance-activity-item,
    .phase6-significance-evaluation-item, .phase8-monitoring-index-item,
    .phase8-monitoring-row, .phase11-review-index-item):is(.is-selected, .is-active) {
    border-color: var(--teal);
    color: #fff;
    background: var(--teal);
    box-shadow: 0 5px 13px rgba(22, 115, 135, .15);
}

/* The monitoring entry wraps a button; avoid padding it twice. */
.phase8-monitoring-row { padding: 0; }
.phase8-monitoring-row-summary { min-height: 48px; padding: 11px 10px; }

:is(.phase4-acro-selection-copy, .admin-registry-row-copy,
    .phase9-checklist-index-main, .phase9-registry-index-main,
    .phase9-field-index-main, .phase6-objective-process-item-copy,
    .phase6-objective-item-copy, .phase6-significance-activity-copy,
    .phase6-significance-evaluation-copy, .phase8-monitoring-row-copy,
    .phase11-review-index-copy) { gap: 4px; }

:is(.admin-registry-row-copy, .phase9-checklist-index-main,
    .phase9-registry-index-main, .phase9-field-index-main,
    .phase6-objective-process-item-copy, .phase6-objective-item-copy,
    .phase6-significance-activity-copy, .phase6-significance-evaluation-copy,
    .phase8-monitoring-row-copy, .phase11-review-index-copy) :is(strong, small) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

:is(.admin-registry-row-copy, .phase6-objective-process-item-copy,
    .phase6-objective-item-copy, .phase6-significance-activity-copy,
    .phase6-significance-evaluation-copy, .phase8-monitoring-row-copy,
    .phase11-review-index-copy) > strong { font-size: 13px; }

:is(.phase4-acro-selection-item, .admin-registry-row,
    .phase9-checklist-index-item, .phase9-registry-index-item,
    .phase9-field-index-item, .phase6-objective-process-item,
    .phase6-objective-item, .phase6-significance-activity-item,
    .phase6-significance-evaluation-item, .phase8-monitoring-row,
    .phase11-review-index-item):is(.is-selected, .is-active)
    :is(.phase4-acro-selection-copy, .admin-registry-row-copy,
        .phase9-checklist-index-main, .phase9-registry-index-main,
        .phase9-field-index-main, .phase6-objective-process-item-copy,
        .phase6-objective-item-copy, .phase6-significance-activity-copy,
        .phase6-significance-evaluation-copy, .phase8-monitoring-row-copy,
        .phase11-review-index-copy) :is(strong, small) {
    color: #fff;
}

:is(.admin-registry-section-item, .phase8-monitoring-index-item) > b,
.phase-list-count,
.phase6-objective-process-count,
.phase6-significance-activity-count {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    min-width: 22px;
    min-height: 22px;
    height: auto;
    padding: 0 5px;
    border-radius: 999px;
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 400;
    background: var(--teal-soft);
}

.phase4-acro-selection-item.is-selected .phase-list-count {
    background: #fff;
}

:is(.admin-registry-section-item, .phase8-monitoring-index-item):is(.is-selected, .is-active) > b,
.admin-registry-row.is-active .admin-registry-status,
.phase9-checklist-index-item.is-selected .phase9-checklist-index-outcome,
.phase9-registry-index-item.is-selected .phase9-registry-type,
.phase9-field-index-item.is-selected .phase9-field-inspection-result,
.phase6-objective-process-item.is-selected .phase6-objective-process-count,
.phase6-objective-item.is-selected .phase6-objective-item-status,
.phase6-significance-activity-item.is-selected .phase6-significance-activity-count,
.phase6-significance-evaluation-item.is-selected .phase6-significance-status-pill,
.phase8-monitoring-row.is-selected .phase8-monitoring-row-status,
.phase11-review-index-item.is-selected .phase9-review-summary-state {
    background: #fff;
}

.phase9-field-index-item.is-selected .phase9-field-index-main > b {
    color: var(--teal-dark);
    background: #fff;
}

/* Keep significance statuses contained, including longer incomplete-state labels. */
.phase6-significance-evaluation-copy { flex: 1 1 0; }
.phase6-significance-evaluation-item .phase6-significance-status-pill {
    flex: 0 1 auto;
    max-width: 118px;
    box-sizing: border-box;
    padding: 5px 8px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}
.phase6-significance-evaluation-item.is-selected .phase6-significance-status-empty {
    color: var(--teal-dark);
    background: var(--teal-soft);
}

.phase9-registry-index-item.is-selected .phase9-registry-index-meta > small,
.admin-registry-row.is-active .admin-registry-row-arrow,
.phase8-monitoring-row.is-selected .phase8-monitoring-row-meta > span:last-child {
    color: #fff;
}

/* Inactive objectives keep their muted state; selection remains visible. */
.phase6-objective-item.is-disabled:not(.is-selected) { border-color: #e0e6e8; background: #f1f4f5; }
.phase9-registry-index-item.is-review:not(.is-selected) { border-color: #ecd9ac; background: #fffaf0; }

/* Phase 6 Step 4 keeps its own light selection treatment inside the objective
   register instead of inheriting the dark selected state used by other lists. */
.phase6-objective-pane-heading {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    min-height: 0;
    padding: 13px 14px 10px;
    background: #fff;
}
.phase6-objective-pane-heading strong { font-size: 13px; }
.phase6-objective-pane-heading > span { font-size: 12px; }
.phase6-objective-process-list, .phase6-objective-items-list { gap: 4px; padding: 6px; }
.phase6-objective-process-item.is-selected, .phase6-objective-item.is-selected {
    border-color: #9ed5df;
    color: var(--ink);
    background: #eaf7f8;
    box-shadow: none;
}
.phase6-objective-item.is-selected .phase6-objective-item-copy strong { color: var(--ink); }
.phase6-objective-item.is-selected .phase6-objective-item-copy small { color: var(--muted); }
.phase6-objective-item.is-selected .phase6-objective-item-status { background: #fff6df; }
.phase6-objective-item.is-selected .phase6-objective-item-status[data-objective-status="RAGGIUNTO"] { background: #e9f8ef; }
.phase6-objective-item.is-selected .phase6-objective-item-status[data-objective-status="NON RAGGIUNTO"] { background: #fff0f0; }
.phase6-objective-item.is-selected .phase6-objective-item-status[data-objective-status="IN CORSO"] { background: #fff0c9; }

 .admin-discovery-monitor { margin: 0 0 1.25rem; }
 .admin-discovery-monitor > button { margin-bottom: .75rem; }
 .admin-discovery-edit-warning { margin: 0; color: #79591d; font-size: 12px; line-height: 1.5; }
 .admin-discovery-monitor summary { cursor: pointer; padding: .45rem .25rem .75rem; color: var(--teal-dark); font-size: 13px; font-weight: 750; }
 .admin-discovery-monitor summary:focus-visible { outline: 3px solid #82b9f5; outline-offset: 3px; border-radius: 4px; }
 #admin-discovery-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; max-height: 330px; overflow: auto; overscroll-behavior: contain; padding: 2px 6px 6px 2px; scrollbar-color: #8bbdc8 #e5f2f5; scrollbar-width: thin; }
 #admin-discovery-sections:focus-visible { outline: 3px solid #82b9f5; outline-offset: 2px; border-radius: 8px; }
 .admin-discovery-section { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 12px; border: 1px solid #c8e1e6; border-radius: 10px; color: var(--teal-dark); background: #fff; }
 .admin-discovery-section.is-running { border-color: #b8dce2; background: #f5fbfc; }
 .admin-discovery-section.is-complete { border-color: #bfe4d0; color: #1d674c; background: #f2faf5; }
 .admin-discovery-section.is-review { border-color: #efdcae; color: #79591d; background: #fffaf0; }
 .admin-discovery-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
 .admin-discovery-section-heading strong { min-width: 0; font-size: 12px; line-height: 1.4; }
 .admin-discovery-section-state { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; color: #0f6077; background: #e5f2f5; font-size: 10px; font-weight: 750; }
 .is-complete .admin-discovery-section-state { color: #1d674c; background: #e1f3e8; }
 .is-review .admin-discovery-section-state { color: #79591d; background: #fff0cc; }
 .admin-discovery-section-counts { display: flex; flex-wrap: wrap; gap: 5px 12px; color: inherit; font-size: 12px; font-weight: 750; }
 .admin-discovery-section-counts i { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 500; }
 .admin-discovery-section progress { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 99px; appearance: none; background: #e3ecef; }
 .admin-discovery-section progress::-webkit-progress-bar { border-radius: inherit; background: #e3ecef; }
 .admin-discovery-section progress::-webkit-progress-value { border-radius: inherit; background: #267d94; }
 .admin-discovery-section progress::-moz-progress-bar { border-radius: inherit; background: #267d94; }
 .admin-discovery-section.is-complete progress::-webkit-progress-value, .admin-discovery-section.is-complete progress::-moz-progress-bar { background: #26815d; }
 .admin-discovery-section.is-review progress::-webkit-progress-value, .admin-discovery-section.is-review progress::-moz-progress-bar { background: #b77a16; }
 .admin-discovery-section > small { color: #79591d; font-size: 11px; }
@media (max-width: 600px) {
    #admin-discovery-sections { grid-template-columns: 1fr; max-height: 300px; }
    .admin-discovery-section { padding: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    :is(.phase4-acro-selection-item, .admin-registry-section-item, .admin-registry-row,
        .phase9-checklist-index-item, .phase9-registry-index-item,
        .phase9-field-index-item, .phase6-objective-process-item,
        .phase6-objective-item, .phase6-significance-activity-item,
        .phase6-significance-evaluation-item, .phase8-monitoring-index-item,
        .phase8-monitoring-row, .phase11-review-index-item) { transition: none; }
}
