@font-face {
    font-family: "EON Office Head";
    src: url("eon-brand/EONOfficeHead.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --portal-ink: #222222;
    --portal-muted: #5f5f65;
    --portal-line: #e8e5e5;
    --portal-soft: #f8f6f6;
    --portal-white: #fff;
    --portal-green: #EA1B0A;
    --portal-green-dark: #9f1308;
    --portal-mint: #fff0f1;
    --portal-shadow: 0 18px 45px rgba(118, 0, 10, .11);
    --portal-radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--portal-ink);
    background: #faf9f9;
    font-family: Arial, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.portal-preview-bar {
    min-height: 42px;
    padding: 8px max(24px, calc((100vw - 1320px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #ffe9eb;
    background: #a8000e;
    font-size: 12px;
}
.portal-preview-bar > div, .portal-preview-label, .portal-preview-bar a, .portal-preview-actions { display: flex; align-items: center; gap: 8px; }
.portal-preview-label { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.portal-preview-label svg, .portal-preview-bar a svg { width: 14px; height: 14px; }
.portal-preview-bar a { color: #fff; font-weight: 700; white-space: nowrap; }
.portal-preview-actions { gap: 16px; }
.portal-preview-actions a:hover, .portal-preview-actions a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

.portal-header {
    height: 84px;
    padding: 0 max(24px, calc((100vw - 1320px) / 2));
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
    align-items: center;
    gap: 28px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--portal-line);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
}
.portal-brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.portal-eon-logo { width: 82px; height: 34px; display: block; object-fit: contain; }
.portal-brand-divider { width: 1px; height: 31px; background: #e5dede; }
.portal-brand > span:last-child, .portal-account > span { display: grid; gap: 2px; }
.portal-brand strong { font-size: 16px; letter-spacing: -.02em; }
.portal-brand small, .portal-account small { color: var(--portal-muted); font-size: 11px; }
.portal-nav { display: flex; align-items: center; gap: 6px; }
.portal-nav a, .portal-nav > span {
    padding: 12px 15px; border-radius: 11px; color: #555; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.portal-nav a:hover { background: var(--portal-soft); color: var(--portal-green); }
.portal-nav a.active { background: var(--portal-mint); color: var(--portal-green-dark); }
.portal-nav > span { opacity: .58; cursor: default; }
.portal-nav small { margin-left: 4px; padding: 2px 5px; border-radius: 10px; background: #e8eeec; font-size: 8px; text-transform: uppercase; }
.portal-account { justify-self: end; display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid var(--portal-line); border-radius: 14px; background: #fff; }
.portal-account-avatar { width: 34px; height: 34px; display: grid !important; place-items: center; border-radius: 11px; background: var(--portal-mint); color: var(--portal-green); font-weight: 900; }
.portal-account strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.portal-account > svg { width: 15px; color: #8ca09c; }

.portal-flash-stack { max-width: 1320px; margin: 0 auto; padding: 18px 24px 0; display: grid; gap: 8px; }
.portal-flash { min-height: 44px; padding: 10px 14px; display: flex; align-items: center; gap: 9px; border: 1px solid #efb7bb; border-radius: 11px; color: #8f101a; background: #fff3f4; font-size: 12px; font-weight: 700; }
.portal-flash.success { color: #23633d; border-color: #afd7be; background: #f0faf4; }
.portal-flash svg { flex: 0 0 auto; width: 17px; }

.portal-main { max-width: 1320px; margin: 0 auto; padding: 38px 24px 70px; }
.portal-hero {
    min-height: 420px;
    display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr); gap: 54px; align-items: center;
    padding: 58px 64px;
    color: var(--portal-ink);
    border: 1px solid var(--portal-line);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 92% 18%, rgba(227,6,19,.055), transparent 28%),
        linear-gradient(120deg, #fff, #fff 70%, #fffafa);
    box-shadow: 0 24px 55px rgba(68,26,30,.1);
}
.portal-hero::after { content: ""; position: absolute; width: 290px; height: 290px; right: -110px; bottom: -170px; border: 1px solid rgba(227,6,19,.1); border-radius: 50%; box-shadow: 0 0 0 54px rgba(227,6,19,.025), 0 0 0 108px rgba(227,6,19,.018); }
.portal-hero-copy, .portal-coverage-card { position: relative; z-index: 1; }
.portal-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--portal-green); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.portal-eyebrow svg { width: 16px; }
.portal-hero h1 { margin: 18px 0; font-size: clamp(42px, 5vw, 68px); line-height: .98; letter-spacing: -.055em; }
.portal-hero h1 span { color: var(--portal-green); }
.portal-hero-copy > p { max-width: 660px; margin: 0; color: var(--portal-muted); font-size: 17px; line-height: 1.7; }
.portal-hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.portal-primary-button, .portal-secondary-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border-radius: 13px; font-size: 13px; font-weight: 800; cursor: pointer; }
.portal-primary-button { color: #fff; border: 1px solid var(--portal-green); background: var(--portal-green); box-shadow: 0 12px 28px rgba(170,0,14,.18); }
.portal-secondary-button { color: var(--portal-green-dark); border: 1px solid #efb7bb; background: #fff; }
.portal-text-button { min-height: 48px; display: inline-flex; align-items: center; gap: 7px; padding: 0 5px; color: var(--portal-green-dark); font-size: 12px; font-weight: 800; }
.portal-text-button:hover { color: var(--portal-green); }
.portal-primary-button:hover { transform: translateY(-1px); background: var(--portal-green-dark); }
.portal-secondary-button:hover { background: var(--portal-mint); }
.portal-primary-button svg, .portal-secondary-button svg, .portal-text-button svg { width: 17px; }
.portal-coverage-card { padding: 24px; border: 1px solid #f0d5d7; border-radius: 23px; background: #fffafa; box-shadow: 0 16px 34px rgba(105,0,9,.07); }
.portal-coverage-head { display: flex; align-items: center; justify-content: space-between; color: var(--portal-ink); font-size: 12px; font-weight: 700; }
.portal-coverage-head strong { color: var(--portal-green); font-size: 13px; }
.portal-coverage-ring { width: 154px; height: 154px; margin: 22px auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--portal-green) calc(var(--coverage) * 1%), #f1e7e8 0); position: relative; }
.portal-coverage-ring::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.portal-coverage-ring div { position: relative; z-index: 1; display: grid; text-align: center; }
.portal-coverage-ring strong { font-size: 34px; line-height: 1; }
.portal-coverage-ring span { margin-top: 6px; color: var(--portal-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.portal-progress { height: 5px; overflow: hidden; border-radius: 20px; background: #f0e4e5; }
.portal-progress span { display: block; height: 100%; border-radius: inherit; background: var(--portal-green); }
.portal-coverage-card p { margin: 14px 0 0; color: var(--portal-muted); font-size: 11px; line-height: 1.55; }
.portal-coverage-link { width: 100%; min-height: 38px; margin-top: 14px; padding: 0 11px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--portal-green-dark); border: 1px solid #efb6ba; border-radius: 10px; background: #fff; font-size: 10px; font-weight: 850; cursor: pointer; }
.portal-coverage-link:hover { color: #fff; background: var(--portal-green); border-color: var(--portal-green); }
.portal-coverage-link svg, .portal-coverage-complete svg { width: 14px; }
.portal-coverage-complete { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--portal-green-dark); font-size: 10px; font-weight: 800; }

.portal-stat-grid { margin: 24px 0 54px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.portal-stat-grid article { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--portal-line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(105,0,9,.045); }
.portal-stat-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; }
.portal-stat-icon svg { width: 20px; }
.portal-stat-icon.is-teal, .portal-stat-icon.is-blue, .portal-stat-icon.is-amber, .portal-stat-icon.is-violet { color: var(--portal-green); background: var(--portal-mint); }
.portal-stat-grid article > div { display: grid; min-width: 0; }
.portal-stat-grid small { color: var(--portal-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.portal-stat-grid strong { margin: 2px 0; font-size: 25px; letter-spacing: -.04em; }
.portal-stat-grid .portal-stat-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.portal-stat-grid article span:last-child { overflow: hidden; color: #7a8d89; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.portal-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.portal-section-heading > div:first-child > span { color: var(--portal-green); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.portal-section-heading h2 { margin: 5px 0 0; font-size: 27px; letter-spacing: -.035em; }
.portal-section-heading > p { max-width: 360px; margin: 0; color: var(--portal-muted); font-size: 13px; }
.portal-phase-section { margin-bottom: 58px; }
.portal-phase-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.portal-phase-track button { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 16px; text-align: left; color: var(--portal-ink); border: 1px solid var(--portal-line); border-radius: 16px; background: #fff; cursor: pointer; transition: .18s ease; }
.portal-phase-track button:hover { border-color: #f0a9ae; transform: translateY(-2px); box-shadow: var(--portal-shadow); }
.portal-phase-number { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--portal-green); background: var(--portal-mint); font-size: 12px; font-weight: 900; }
.portal-phase-track button > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.portal-phase-track strong { font-size: 13px; }
.portal-phase-track small { color: var(--portal-muted); font-size: 11px; }
.portal-phase-track svg { width: 15px; margin-left: auto; color: #c2747a; }

.portal-library { scroll-margin-top: 104px; }
.portal-library-heading { align-items: center; }
.portal-customer-switcher { display: grid; gap: 5px; }
.portal-customer-switcher label { color: var(--portal-muted); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.portal-customer-switcher select { min-width: 270px; height: 42px; padding: 0 38px 0 12px; border: 1px solid var(--portal-line); border-radius: 12px; color: var(--portal-ink); background: #fff; font-size: 12px; font-weight: 700; }
.portal-filter-bar { display: grid; grid-template-columns: minmax(280px, 1fr) 150px 150px 170px auto; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--portal-line); border-radius: 17px; background: #fff; }
.portal-filter-bar > label:not(.portal-search) { display: grid; gap: 5px; }
.portal-filter-bar > label > span { padding-left: 2px; color: var(--portal-muted); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.portal-filter-bar select, .portal-search { height: 42px; border: 1px solid #e3dcdc; border-radius: 11px; background: #fcfbfb; }
.portal-filter-bar select { width: 100%; padding: 0 32px 0 10px; color: #334b47; font-size: 12px; font-weight: 650; }
.portal-search { display: flex; align-items: center; gap: 9px; padding: 0 10px; }
.portal-search > svg { flex: 0 0 auto; width: 17px; color: #839692; }
.portal-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--portal-ink); background: transparent; font-size: 12px; }
.portal-search input::placeholder { color: #93a39f; }
.portal-search kbd { padding: 3px 6px; border: 1px solid #d5dfdd; border-radius: 6px; color: #8b9a97; background: #fff; font: 9px/1.2 inherit; }
.portal-view-toggle { display: flex; gap: 3px; height: 42px; padding: 4px; border: 1px solid #e3dcdc; border-radius: 11px; background: #fcfbfb; }
.portal-view-toggle button { width: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #849692; background: transparent; cursor: pointer; }
.portal-view-toggle button.active { color: var(--portal-green); background: #fff; box-shadow: 0 2px 7px rgba(105,0,9,.1); }
.portal-view-toggle svg { width: 16px; }
.portal-results-line { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.portal-results-line p { margin: 0; color: var(--portal-muted); font-size: 12px; }
.portal-results-line strong { color: var(--portal-ink); }
.portal-results-line button { display: inline-flex; align-items: center; gap: 5px; color: var(--portal-green); border: 0; background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.portal-results-line button svg { width: 13px; }

.portal-document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.portal-document-card { position: relative; min-width: 0; display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--portal-line); border-top: 3px solid var(--portal-green); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(80,0,7,.035); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.portal-document-card:hover { transform: translateY(-3px); border-color: #eea6ab; border-top-color: var(--portal-green); box-shadow: var(--portal-shadow); }
.portal-document-topline { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.portal-document-phase { max-width: 100%; padding: 5px 8px; display: inline-flex; flex: 0 0 auto; align-items: center; border-radius: 20px; color: var(--portal-green-dark); background: var(--portal-mint); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.portal-document-states { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.portal-document-state { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; color: #66807a; font-size: 9px; font-weight: 750; white-space: nowrap; }
.portal-document-state svg { width: 13px; color: var(--portal-green); }
.portal-document-state.has-history { color: var(--portal-green-dark); }
.portal-document-main { display: flex; gap: 14px; margin: 20px 0 18px; }
.portal-document-copy { min-width: 0; }
.portal-site-code { display: block; overflow: hidden; color: #7a908b; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.portal-document-copy h3 { margin: 5px 0 6px; overflow: hidden; font-size: 16px; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.portal-checkout-status { width: 100%; margin-top: 10px; padding: 9px 10px; display: flex; align-items: center; gap: 9px; color: #5f171b; border: 1px solid #e6a5a9; border-left: 4px solid var(--portal-green); border-radius: 10px; background: #fff4f4; }
.portal-checkout-status.is-mine { border-color: #dc858b; border-left-color: var(--portal-green-dark); background: var(--portal-mint); }
.portal-checkout-status-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; color: #fff; border-radius: 8px; background: var(--portal-green-dark); }
.portal-checkout-status-icon svg { width: 15px; }
.portal-checkout-status > span:last-child { min-width: 0; display: grid; gap: 2px; }
.portal-checkout-status strong, .portal-checkout-status small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-checkout-status strong { font-size: 11px; line-height: 1.25; }
.portal-checkout-status small { color: #76575a; font-size: 9px; line-height: 1.25; }
.portal-checkout-status time { font: inherit; }
.portal-file-note { margin: 5px 0 0; padding-top: 5px; color: var(--portal-green-dark); border-top: 1px solid #dfd7d7; font-size: 10px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.portal-document-action { height: 32px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #e3dcdc; border-radius: 9px; color: #555; background: #fff; font-size: 9px; font-weight: 850; white-space: nowrap; cursor: pointer; }
.portal-document-action svg { width: 13px; }
.portal-document-action.is-checkout { color: #fff; border-color: var(--portal-green); background: var(--portal-green); }
.portal-document-action.is-checkout:hover:not(:disabled) { border-color: var(--portal-green-dark); background: var(--portal-green-dark); }
.portal-document-action.is-checkin { color: var(--portal-green-dark); border-color: #efabb0; }
.portal-document-action.is-checkin.is-ready:hover:not(:disabled) { color: #fff; border-color: var(--portal-green-dark); background: var(--portal-green-dark); }
.portal-document-action:disabled { color: #777; border-color: #dedada; background: #f2f0f0; opacity: .72; cursor: not-allowed; }
.portal-document-action.is-busy svg, .portal-dialog-submit.is-busy svg { animation: portal-action-spin .85s linear infinite; }
@keyframes portal-action-spin { to { transform: rotate(360deg); } }

.portal-version-history { margin-top: 12px; border: 1px solid #f0d5d7; border-radius: 11px; background: #fffafa; }
.portal-version-history summary { min-height: 38px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--portal-green-dark); font-size: 10px; font-weight: 850; cursor: pointer; list-style: none; }
.portal-version-history summary::-webkit-details-marker { display: none; }
.portal-version-history summary span { display: inline-flex; align-items: center; gap: 6px; }
.portal-version-history summary svg { width: 14px; }
.portal-version-history summary > svg { transition: transform .18s ease; }
.portal-version-history[open] summary > svg { transform: rotate(180deg); }
.portal-version-list { padding: 0 9px 9px; display: grid; gap: 7px; }
.portal-version-row { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px; border: 1px solid #eee7e7; border-radius: 9px; background: #fff; }
.portal-version-file { width: 30px; height: 34px; display: grid; place-items: center; color: var(--portal-green); border-radius: 8px; background: var(--portal-mint); }
.portal-version-file svg { width: 15px; }
.portal-version-row > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.portal-version-row strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.portal-version-row small { overflow: hidden; color: var(--portal-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.portal-version-actions { display: flex; gap: 4px; }
.portal-version-actions a { width: 28px; height: 28px; display: grid; place-items: center; color: var(--portal-green); border: 1px solid #f0d5d7; border-radius: 7px; background: #fff; }
.portal-version-actions a:hover { color: #fff; background: var(--portal-green); }
.portal-version-actions svg { width: 16px; height: 16px; }
.portal-version-actions span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.portal-version-actions form { margin: 0; display: grid; }
.portal-version-action { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; color: var(--portal-green); border: 1px solid #f0d5d7; border-radius: 7px; background: #fff; cursor: pointer; }
.portal-version-action:hover:not(:disabled) { color: #fff; border-color: var(--portal-green); background: var(--portal-green); }
.portal-version-action:disabled { color: #8c8c8c; background: #f2f0f0; opacity: .75; cursor: not-allowed; }
.portal-current-version-row { margin: 0; }
.portal-current-version-actions { align-self: center; }
.portal-card-checkin { position: absolute; top: 12px; right: 16px; z-index: 2; color: var(--portal-green-dark); border-color: #efabb0; background: #fff; }
.portal-card-checkin:hover { color: #fff; border-color: var(--portal-green-dark); background: var(--portal-green-dark); }
.portal-document-card.has-checkin .portal-document-topline { padding-right: 92px; }

.portal-document-grid.is-list { grid-template-columns: 1fr; gap: 9px; }
.portal-document-grid.is-list .portal-document-card { display: grid; grid-template-columns: 200px minmax(250px, 1fr) minmax(210px, .7fr) auto; align-items: center; gap: 16px; padding: 14px 16px; }
.portal-document-grid.is-list .portal-document-topline { align-items: flex-start; justify-content: flex-start; flex-direction: column; }
.portal-document-grid.is-list .portal-document-states { justify-content: flex-start; }
.portal-document-grid.is-list .portal-document-main { margin: 0; align-items: center; }
.portal-document-grid.is-list .portal-current-version-row { min-width: 0; grid-column: 3 / -1; }
.portal-document-grid.is-list .portal-version-history { grid-column: 2 / -1; }

.portal-empty { padding: 58px 20px; text-align: center; border: 1px dashed #e1c6c8; border-radius: 18px; background: #fff; }
.portal-empty > span { width: 54px; height: 54px; margin: 0 auto; display: grid; place-items: center; border-radius: 16px; color: var(--portal-green); background: var(--portal-mint); }
.portal-empty h3 { margin: 15px 0 5px; }
.portal-empty p { margin: 0 0 16px; color: var(--portal-muted); font-size: 12px; }
.portal-empty button { padding: 9px 13px; color: #fff; border: 0; border-radius: 10px; background: var(--portal-green); font-size: 11px; font-weight: 800; cursor: pointer; }
.portal-load-more-wrap { display: flex; justify-content: center; padding-top: 24px; }
.portal-load-more { height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 0 17px; color: var(--portal-green); border: 1px solid #efb0b5; border-radius: 12px; background: #fff; font-size: 11px; font-weight: 850; cursor: pointer; }
.portal-load-more:hover { background: var(--portal-mint); }
.portal-load-more svg { width: 15px; }

.portal-reports { margin-top: 72px; scroll-margin-top: 104px; }
.portal-reports-heading { align-items: center; }
.portal-report-totals { display: flex; gap: 8px; }
.portal-report-totals span { padding: 9px 12px; color: var(--portal-muted); border: 1px solid var(--portal-line); border-radius: 11px; background: #fff; font-size: 10px; }
.portal-report-totals strong { color: var(--portal-green); font-size: 13px; }
.portal-report-search { display: flex; align-items: center; gap: 9px; padding: 13px; border: 1px solid var(--portal-line); border-radius: 16px; background: #fff; }
.portal-report-search label { min-width: 0; height: 42px; flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #e3dcdc; border-radius: 11px; background: #fcfbfb; }
.portal-report-search label svg { flex: 0 0 auto; width: 17px; color: #849692; }
.portal-report-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.portal-report-search .portal-report-sort { width: auto; flex: 0 0 auto; gap: 7px; }
.portal-report-sort > span { color: var(--portal-muted); font-size: 11px; font-weight: 800; }
.portal-report-sort select { min-width: 155px; border: 0; outline: 0; color: var(--portal-ink); background: transparent; font: inherit; font-weight: 750; cursor: pointer; }
.portal-report-search button, .portal-report-search > a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 15px; border-radius: 11px; font-size: 11px; font-weight: 850; cursor: pointer; }
.portal-report-search button { color: #fff; border: 1px solid var(--portal-green); background: var(--portal-green); }
.portal-report-search > a { color: var(--portal-green); border: 1px solid #efb0b5; background: #fff; }
.portal-report-search svg { width: 14px; }
.portal-report-active-filter { min-height: 48px; margin-top: 10px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--portal-ink); border: 1px solid #efb0b5; border-radius: 12px; background: #fff4f3; font-size: 12px; }
.portal-report-active-filter > span, .portal-report-active-filter > div, .portal-report-active-filter a { display: inline-flex; align-items: center; gap: 6px; }
.portal-report-active-filter > div { flex-wrap: wrap; justify-content: flex-end; }
.portal-report-active-filter strong { color: var(--portal-green-dark); }
.portal-report-active-filter a { min-height: 34px; padding: 0 10px; color: var(--portal-green-dark); border: 1px solid #e5a09b; border-radius: 9px; background: #fff; font-weight: 800; }
.portal-report-active-filter svg { width: 15px; }
.portal-report-results { min-height: 48px; display: flex; align-items: center; justify-content: space-between; color: var(--portal-muted); font-size: 11px; }
.portal-report-results p { margin: 0; }
.portal-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.portal-report-card { min-width: 0; padding: 18px; display: flex; flex-direction: column; border: 1px solid var(--portal-line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(80,0,7,.035); }
.portal-report-card-head { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.portal-report-file-icon { width: 48px; height: 52px; display: grid; place-items: center; align-content: center; gap: 1px; color: var(--portal-green); border-radius: 12px; background: var(--portal-mint); }
.portal-report-file-icon svg { width: 21px; }
.portal-report-file-icon small { font-size: 7px; font-weight: 900; }
.portal-report-card-head > div { min-width: 0; }
.portal-report-context { display: block; overflow: hidden; color: var(--portal-green-dark); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; text-overflow: ellipsis; white-space: nowrap; }
.portal-report-card h3 { margin: 5px 0 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.portal-report-source { padding: 5px 8px; color: #765d5f; border-radius: 20px; background: #f5f1f1; font-size: 8px; font-weight: 850; white-space: nowrap; }
.portal-report-meta { margin: 14px 0; display: flex; flex-wrap: wrap; gap: 7px 13px; color: var(--portal-muted); font-size: 9px; }
.portal-report-meta > span, .portal-report-meta > a { min-width: 0; display: inline-flex; align-items: center; gap: 5px; }
.portal-report-meta > a { color: var(--portal-green-dark); text-decoration: underline; text-decoration-color: #d99b96; text-underline-offset: 3px; }
.portal-report-meta > a:hover, .portal-report-context[href]:hover { color: var(--portal-green); text-decoration-color: currentColor; }
.portal-report-meta svg { width: 12px; color: #a56066; }
.portal-report-picture-head { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; color: #765d5f; font-size: 9px; font-weight: 800; }
.portal-report-picture-head span { display: inline-flex; align-items: center; gap: 5px; }
.portal-report-picture-head svg { width: 13px; color: var(--portal-green); }
.portal-report-picture-head small { color: var(--portal-muted); font-size: 8px; }
.portal-report-pictures { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.portal-report-pictures a { aspect-ratio: 1; overflow: hidden; position: relative; border-radius: 8px; background: var(--portal-soft); }
.portal-report-pictures img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .18s ease; }
.portal-report-pictures a:hover img { transform: scale(1.06); }
.portal-report-pictures a span { position: absolute; inset: 0; display: grid; place-items: center; color: transparent; background: transparent; transition: .18s ease; }
.portal-report-pictures a:hover span { color: #fff; background: rgba(70,0,6,.42); }
.portal-report-pictures svg { width: 17px; }
.portal-report-more-pictures { margin-top: 7px; border: 1px solid #eee2e3; border-radius: 9px; background: #fffafa; }
.portal-report-more-pictures summary { min-height: 34px; padding: 0 10px; display: flex; align-items: center; gap: 6px; color: var(--portal-green-dark); font-size: 9px; font-weight: 800; cursor: pointer; list-style: none; }
.portal-report-more-pictures summary::-webkit-details-marker { display: none; }
.portal-report-more-pictures summary svg { width: 13px; }
.portal-report-more-pictures summary svg:last-child { margin-left: auto; transition: transform .18s ease; }
.portal-report-more-pictures[open] summary svg:last-child { transform: rotate(180deg); }
.portal-report-more-pictures > div { max-height: 160px; padding: 0 7px 7px; display: grid; gap: 4px; overflow-y: auto; }
.portal-report-more-pictures a { min-width: 0; min-height: 30px; padding: 0 8px; display: flex; align-items: center; gap: 6px; color: #66585a; border-radius: 7px; background: #fff; font-size: 8px; }
.portal-report-more-pictures a span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-report-more-pictures a svg { flex: 0 0 auto; width: 12px; color: var(--portal-green); }
.portal-report-actions { margin-top: 14px; padding-top: 13px; display: flex; justify-content: flex-end; gap: 6px; border-top: 1px solid var(--portal-line); }
.portal-report-actions a { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; color: var(--portal-green); border: 1px solid #efb0b5; border-radius: 9px; font-size: 9px; font-weight: 850; }
.portal-report-actions a.is-download { color: #fff; border-color: var(--portal-green); background: var(--portal-green); }
.portal-report-actions svg { width: 13px; }
.portal-report-empty { grid-column: 1 / -1; padding: 54px 20px; text-align: center; color: var(--portal-muted); border: 1px dashed #e1c6c8; border-radius: 18px; background: #fff; }
.portal-report-empty > svg { width: 38px; color: var(--portal-green); }
.portal-report-empty h3 { margin: 10px 0 4px; color: var(--portal-ink); }
.portal-report-empty p { margin: 0; font-size: 11px; }
.portal-report-pagination { margin-top: 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; }
.portal-report-pagination a { width: max-content; min-height: 38px; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; color: var(--portal-green); border: 1px solid #efb0b5; border-radius: 10px; background: #fff; font-size: 10px; font-weight: 850; }
.portal-report-pagination a:last-child { justify-self: end; }
.portal-report-pagination strong { color: var(--portal-muted); font-size: 10px; }
.portal-report-pagination svg { width: 14px; }

.portal-help-card { margin-top: 64px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; border-radius: 22px; background: linear-gradient(110deg, #b00412, #e30613); }
.portal-help-card > div { display: flex; align-items: center; gap: 17px; }
.portal-help-card > div > span { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: rgba(255,255,255,.14); }
.portal-help-card small { color: #ffe1e4; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.portal-help-card h2 { margin: 3px 0; font-size: 19px; }
.portal-help-card p { margin: 0; color: #fff0f1; font-size: 11px; }
.portal-help-card > a { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; border-radius: 11px; color: var(--portal-green-dark); background: #fff; font-size: 11px; font-weight: 900; white-space: nowrap; }
.portal-help-card svg { width: 18px; }

.portal-coverage-dialog, .portal-upload-dialog { width: min(680px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 40px)); padding: 0; overflow: hidden; color: var(--portal-ink); border: 0; border-radius: 22px; background: #fff; box-shadow: 0 28px 90px rgba(45,0,4,.25); }
.portal-coverage-dialog::backdrop, .portal-upload-dialog::backdrop { background: rgba(32,11,13,.55); backdrop-filter: blur(4px); }
.portal-upload-form { margin: 0; }
.portal-dialog-head { padding: 22px 24px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--portal-line); }
.portal-dialog-head > div { display: flex; align-items: center; gap: 13px; }
.portal-dialog-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--portal-green); border-radius: 13px; background: var(--portal-mint); }
.portal-dialog-icon svg { width: 20px; }
.portal-dialog-head small { color: var(--portal-green); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.portal-dialog-head h2 { margin: 3px 0 0; font-size: 21px; letter-spacing: -.025em; }
.portal-dialog-head > button { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--portal-muted); border: 1px solid var(--portal-line); border-radius: 9px; background: #fff; cursor: pointer; }
.portal-dialog-head > button:hover { color: var(--portal-green); background: var(--portal-mint); }
.portal-dialog-head > button svg { width: 16px; }
.portal-dialog-intro { margin: 0; padding: 16px 24px; color: var(--portal-muted); background: #fcfbfb; font-size: 12px; line-height: 1.55; }
.portal-missing-site-list { max-height: min(470px, calc(100vh - 260px)); padding: 10px 16px; display: grid; gap: 7px; overflow-y: auto; }
.portal-missing-site-list article { min-width: 0; padding: 11px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--portal-line); border-radius: 11px; }
.portal-missing-site-code { width: 42px; height: 38px; display: grid; place-items: center; overflow: hidden; color: var(--portal-green-dark); border-radius: 9px; background: var(--portal-mint); font-size: 9px; font-weight: 900; letter-spacing: .03em; }
.portal-missing-site-list article > div { min-width: 0; display: grid; gap: 3px; }
.portal-missing-site-list strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.portal-missing-site-list small { color: var(--portal-muted); font-size: 10px; }
.portal-missing-badge { padding: 5px 8px; color: #8f101a; border-radius: 20px; background: #fff0f1; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.portal-dialog-complete { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--portal-green-dark); text-align: center; }
.portal-dialog-complete svg { width: 34px; }
.portal-dialog-footer { min-height: 62px; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--portal-line); background: #fcfbfb; }
.portal-dialog-footer span { color: var(--portal-muted); font-size: 10px; }
.portal-dialog-footer button { min-height: 36px; padding: 0 16px; color: #fff; border: 0; border-radius: 9px; background: var(--portal-green); font-size: 10px; font-weight: 850; cursor: pointer; }
.portal-dialog-footer button:hover { background: var(--portal-green-dark); }
.portal-upload-fields { padding: 18px 24px; display: grid; grid-template-columns: 1fr 180px; gap: 14px; }
.portal-upload-fields label { min-width: 0; display: grid; gap: 6px; }
.portal-upload-fields label > span { color: #4f4f53; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.portal-upload-fields label > span small { color: var(--portal-muted); font-size: 8px; }
.portal-upload-fields select, .portal-upload-fields textarea, .portal-upload-file { width: 100%; border: 1px solid #e3dcdc; border-radius: 10px; color: var(--portal-ink); background: #fcfbfb; }
.portal-upload-fields select { height: 42px; padding: 0 36px 0 11px; font-size: 12px; }
.portal-upload-fields textarea { padding: 10px 11px; resize: vertical; font-size: 12px; line-height: 1.45; }
.portal-upload-file { grid-column: 1 / -1; padding: 13px; border-style: dashed; background: #fffafa; cursor: pointer; }
.portal-upload-file > span { color: var(--portal-green-dark) !important; }
.portal-upload-file input { width: 100%; color: var(--portal-muted); font-size: 11px; }
.portal-upload-file input::file-selector-button { min-height: 32px; margin-right: 10px; padding: 0 11px; color: var(--portal-green-dark); border: 1px solid #efb7bb; border-radius: 8px; background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.portal-upload-file > small { color: var(--portal-muted); font-size: 9px; }
.portal-upload-summary { grid-column: 1 / -1; }
.portal-upload-assurance { margin: 0 24px 18px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; color: #53655b; border-radius: 9px; background: #f1f8f3; font-size: 10px; }
.portal-upload-assurance svg { width: 15px; color: #2b7b48; }
.portal-upload-dialog .portal-dialog-footer { justify-content: flex-end; }
.portal-upload-dialog .portal-dialog-footer button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.portal-upload-dialog .portal-dialog-footer .portal-dialog-cancel { color: var(--portal-muted); border: 1px solid var(--portal-line); background: #fff; }
.portal-upload-dialog .portal-dialog-footer .portal-dialog-cancel:hover { color: var(--portal-ink); background: var(--portal-soft); }
.portal-upload-dialog .portal-dialog-footer .portal-dialog-submit:disabled { opacity: .45; cursor: not-allowed; }
.portal-upload-dialog .portal-dialog-footer svg { width: 14px; }
.portal-checkin-context { margin: 18px 24px 0; padding: 13px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid #efd2d4; border-radius: 12px; background: var(--portal-mint); }
.portal-checkin-context > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: var(--portal-green); border-radius: 10px; background: #fff; }
.portal-checkin-context > span svg { width: 18px; }
.portal-checkin-context > div { min-width: 0; display: grid; gap: 3px; }
.portal-checkin-context small { color: var(--portal-green-dark); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.portal-checkin-context strong, .portal-checkin-context div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-checkin-context strong { font-size: 14px; }
.portal-checkin-context div > span { color: var(--portal-muted); font-size: 10px; }
.portal-checkin-fields { grid-template-columns: 1fr; }
.portal-action-error { max-width: min(520px, calc(100vw - 32px)); min-height: 48px; padding: 12px 15px; display: flex; align-items: center; gap: 9px; position: fixed; right: 20px; bottom: 20px; z-index: 100; color: #fff; border-radius: 12px; background: #7d1018; box-shadow: 0 14px 40px rgba(50, 0, 5, .28); font-size: 13px; line-height: 1.4; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .18s ease, transform .18s ease; }
.portal-action-error.is-visible { opacity: 1; transform: translateY(0); }
.portal-action-error svg { width: 19px; flex: 0 0 auto; }

.portal-footer { min-height: 74px; padding: 0 max(24px, calc((100vw - 1320px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #849590; border-top: 1px solid var(--portal-line); background: #fff; font-size: 10px; }
.portal-footer div { display: flex; gap: 18px; }
.portal-footer a:hover { color: var(--portal-green); }

@media (max-width: 1100px) {
    .portal-header { grid-template-columns: 1fr auto; }
    .portal-nav { order: 3; grid-column: 1 / -1; justify-content: center; height: 42px; margin-top: -12px; }
    .portal-header { height: 118px; }
    .portal-hero { grid-template-columns: 1fr 290px; padding: 44px; gap: 30px; }
    .portal-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-filter-bar { grid-template-columns: 1fr repeat(3, 140px); }
    .portal-view-toggle { display: none; }
    .portal-document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-document-grid.is-list .portal-document-card { grid-template-columns: 190px minmax(220px, 1fr) auto; }
}

@media (max-width: 760px) {
    .portal-preview-bar { align-items: flex-start; }
    .portal-preview-bar > div > span:last-child { display: none; }
    .portal-header { height: auto; min-height: 74px; padding-top: 10px; padding-bottom: 10px; grid-template-columns: 1fr auto; }
    .portal-account > span, .portal-account > svg { display: none; }
    .portal-nav { width: calc(100vw - 32px); justify-content: flex-start; overflow-x: auto; }
    .portal-nav a, .portal-nav > span { padding: 9px 11px; font-size: 11px; }
    .portal-main { padding: 22px 14px 50px; }
    .portal-hero { min-height: 0; grid-template-columns: 1fr; padding: 34px 24px; border-radius: 22px; }
    .portal-hero h1 { font-size: 42px; }
    .portal-hero-copy > p { font-size: 14px; }
    .portal-coverage-card { display: grid; grid-template-columns: 1fr 100px; align-items: center; gap: 10px; }
    .portal-coverage-head, .portal-progress, .portal-coverage-card p, .portal-coverage-link, .portal-coverage-complete { grid-column: 1; }
    .portal-coverage-ring { grid-column: 2; grid-row: 1 / 5; width: 92px; height: 92px; margin: 0; }
    .portal-coverage-ring strong { font-size: 22px; }
    .portal-coverage-ring span { font-size: 7px; }
    .portal-stat-grid { grid-template-columns: 1fr 1fr; margin-bottom: 42px; }
    .portal-stat-grid article { padding: 14px; align-items: flex-start; }
    .portal-stat-icon { width: 38px; height: 38px; flex-basis: 38px; }
    .portal-stat-grid strong { font-size: 20px; }
    .portal-section-heading { align-items: flex-start; flex-direction: column; }
    .portal-section-heading h2 { font-size: 23px; }
    .portal-library-heading { align-items: stretch; }
    .portal-customer-switcher select { width: 100%; min-width: 0; }
    .portal-filter-bar { grid-template-columns: 1fr 1fr; }
    .portal-search { grid-column: 1 / -1; }
    .portal-filter-bar > label:nth-of-type(4) { grid-column: 1 / -1; }
    .portal-document-grid { grid-template-columns: 1fr; }
    .portal-document-grid.is-list .portal-document-card { display: flex; }
    .portal-reports-heading { align-items: stretch; }
    .portal-report-totals { flex-wrap: wrap; }
    .portal-report-search { align-items: stretch; flex-direction: column; }
    .portal-report-search .portal-report-sort { width: 100%; }
    .portal-report-sort select { min-width: 0; flex: 1; }
    .portal-report-grid { grid-template-columns: 1fr; }
    .portal-help-card { align-items: flex-start; flex-direction: column; padding: 24px; }
    .portal-footer { padding: 18px; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
    .portal-preview-bar { padding-right: 12px; padding-left: 12px; gap: 8px; }
    .portal-preview-bar > a, .portal-preview-actions a { min-width: 44px; min-height: 44px; justify-content: center; }
    .portal-preview-actions { gap: 8px; }
    .portal-return-label { display: none; }
    .portal-header { padding-right: 16px; padding-left: 16px; gap: 12px; }
    .portal-eon-logo { width: 66px; height: 28px; }
    .portal-brand-divider { height: 26px; }
    .portal-brand small { display: none; }
    .portal-brand strong { font-size: 14px; }
    .portal-hero-actions { align-items: stretch; flex-direction: column; }
    .portal-stat-grid { grid-template-columns: 1fr; }
    .portal-filter-bar { grid-template-columns: 1fr; }
    .portal-search, .portal-filter-bar > label:nth-of-type(4) { grid-column: auto; }
    .portal-report-card-head { grid-template-columns: 44px minmax(0, 1fr); }
    .portal-report-source { grid-column: 2; width: max-content; }
    .portal-report-pictures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .portal-dialog-head { padding: 18px; }
    .portal-dialog-head h2 { font-size: 17px; }
    .portal-dialog-intro { padding: 14px 18px; }
    .portal-missing-site-list { padding: 8px 12px; }
    .portal-missing-site-list article { grid-template-columns: 38px minmax(0, 1fr); }
    .portal-missing-badge { display: none; }
    .portal-dialog-footer { padding: 12px 18px; }
    .portal-upload-fields { padding: 16px 18px; grid-template-columns: 1fr; }
    .portal-upload-file, .portal-upload-summary { grid-column: auto; }
    .portal-upload-assurance { margin: 0 18px 16px; }
    .portal-checkin-context { margin: 16px 18px 0; }
}

/* E.ON customer-portal navigation and readability refresh */
h1, h2, h3,
.portal-nav,
.portal-brand strong,
.portal-primary-button,
.portal-overview-kpi-copy small,
.portal-overview-kpi-copy strong,
.portal-section-kpis strong {
    font-family: "EON Office Head", Arial, sans-serif;
    font-weight: 400;
    font-synthesis: none;
}

.portal-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 11px 14px;
    color: #fff;
    border-radius: 8px;
    background: #262626;
    transform: translateY(-150%);
}
.portal-skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #262626; outline-offset: 3px; }
.portal-nav a:focus-visible, .portal-primary-button:focus-visible, .portal-overview-kpi:focus-visible { outline-color: var(--portal-green); }

.portal-header { height: 88px; }
.portal-eon-logo { width: 105px; height: auto; }
.portal-brand strong { font-size: 18px; }
.portal-brand small, .portal-account small { font-size: 12px; }
.portal-nav a, .portal-nav > span { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
.portal-account { min-height: 48px; }
.portal-account strong { font-size: 14px; }
.portal-preview-bar { font-size: 13px; }

.portal-main { min-height: calc(100vh - 204px); padding-top: 42px; }
.portal-global-customer-switcher { min-width: 0; margin: 0 0 28px auto; width: min(390px, 100%); display: grid; gap: 7px; }
.portal-global-customer-switcher label { min-width: 0; color: var(--portal-muted); font-size: 12px; }
.portal-global-customer-switcher select { width: 100%; min-width: 0; max-width: 100%; min-height: 46px; padding: 0 40px 0 13px; color: var(--portal-ink); border: 1px solid var(--portal-line); border-radius: 10px; background: #fff; font-size: 14px; }

.portal-page-intro { max-width: 760px; margin: 24px 0 36px; }
.portal-page-intro > span, .portal-page-heading > div > span { color: var(--portal-green-dark); font-family: "EON Office Head", Arial, sans-serif; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.portal-page-intro h1, .portal-page-heading h1 { margin: 9px 0 12px; font-size: clamp(38px, 5vw, 58px); line-height: 1.04; letter-spacing: -.025em; }
.portal-page-intro p, .portal-page-heading p { max-width: 720px; margin: 0; color: var(--portal-muted); font-size: 17px; line-height: 1.6; }
.portal-page-heading { margin: 18px 0 30px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.portal-page-heading .portal-primary-button { flex: 0 0 auto; }
.portal-primary-button { min-height: 48px; padding: 0 20px; border: 0; background: var(--portal-green-dark); font-size: 16px; }
.portal-primary-button img { width: 20px; height: 20px; filter: brightness(0) invert(1); }

.portal-overview-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.portal-overview-kpi { min-height: 190px; padding: 28px; display: grid; grid-template-columns: 64px minmax(0, 1fr) 28px; align-items: center; gap: 22px; border: 1px solid #ddd7d7; border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(68,26,30,.06); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.portal-overview-kpi:hover { border-color: var(--portal-green); box-shadow: 0 14px 34px rgba(119,0,8,.11); transform: translateY(-2px); }
.portal-overview-kpi-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: #fff4f3; }
.portal-overview-kpi-icon img { width: 34px; height: 34px; }
.portal-overview-kpi-copy { min-width: 0; display: grid; }
.portal-overview-kpi-copy small { color: #3b3b3e; font-size: 17px; }
.portal-overview-kpi-copy strong { margin: 8px 0 6px; color: var(--portal-green-dark); font-size: 46px; line-height: .9; }
.portal-overview-kpi-copy span { color: var(--portal-muted); font-size: 14px; line-height: 1.45; }
.portal-overview-kpi > svg { width: 24px; color: var(--portal-green); }

.portal-section-kpis { margin-bottom: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.portal-section-kpis article { min-width: 0; padding: 20px; display: grid; border: 1px solid var(--portal-line); border-radius: 14px; background: #fff; }
.portal-section-kpis small { color: #454549; font-size: 13px; }
.portal-section-kpis strong { margin: 7px 0 4px; color: var(--portal-green-dark); font-size: 34px; line-height: 1; }
.portal-section-kpis strong.is-date { overflow: hidden; font-size: 19px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.portal-section-kpis span { overflow: hidden; color: var(--portal-muted); font-size: 13px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.portal-project-toolbar { margin: -8px 0 26px; padding: 16px; display: flex; align-items: end; justify-content: space-between; gap: 16px; border: 1px solid var(--portal-line); border-radius: 14px; background: #fff; }
.portal-project-toolbar > label, .portal-project-toolbar form label { min-width: 0; display: grid; gap: 6px; color: var(--portal-muted); font-size: 12px; font-weight: 800; }
.portal-project-toolbar > label { width: min(480px, 100%); }
.portal-project-toolbar select, .portal-project-toolbar input { width: 100%; min-height: 44px; padding: 0 12px; color: var(--portal-ink); border: 1px solid #d9d3d3; border-radius: 9px; background: #fff; font-size: 14px; }
.portal-project-toolbar form { min-width: min(500px, 100%); display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 9px; }
.portal-project-toolbar button { min-height: 44px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #fff; border: 0; border-radius: 9px; background: var(--portal-green-dark); font-weight: 800; cursor: pointer; white-space: nowrap; }
.portal-project-toolbar button svg { width: 17px; }
.portal-report-summary-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.portal-outstanding-kpi { align-content: start; }
.portal-kpi-title-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.portal-kpi-title-row > small { min-width: 0; }
.portal-kpi-period-switch { flex: 0 0 auto; display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--portal-line); border-radius: 999px; background: var(--portal-soft); }
.portal-kpi-period-switch a { min-width: 38px; min-height: 36px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--portal-muted); border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.portal-kpi-period-switch a:hover { color: var(--portal-green-dark); background: #fff; }
.portal-kpi-period-switch a[aria-current="date"] { color: #fff; background: var(--portal-green-dark); }
.portal-kpi-period-switch a:focus-visible { outline-color: var(--portal-green-dark); }
.portal-missing-sites-button { min-height: 44px; margin: 0 0 36px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; color: var(--portal-green-dark); border: 1px solid #d99b96; border-radius: 10px; background: #fff; font-size: 14px; cursor: pointer; }
.portal-missing-sites-button svg { width: 18px; }

.portal-section-heading > div:first-child > span { font-size: 12px; }
.portal-section-heading h2 { font-size: 32px; }
.portal-section-heading > p { font-size: 14px; line-height: 1.5; }
.portal-phase-section { margin: 12px 0 46px; }
.portal-phase-track button { min-height: 64px; }
.portal-phase-track strong { font-size: 15px; }
.portal-phase-track small { font-size: 13px; }
.portal-filter-bar { padding: 16px; }
.portal-filter-bar select, .portal-search { min-height: 46px; height: 46px; font-size: 14px; }
.portal-search input { font-size: 14px; }
.portal-search kbd { font-size: 11px; }
.portal-filter-bar > label > span { font-size: 11px; }
.portal-view-toggle { height: 46px; }
.portal-view-toggle button { width: 38px; }
.portal-results-line { min-height: 58px; }
.portal-results-line p, .portal-results-line button { font-size: 14px; }
.portal-site-code { font-size: 11px; }
.portal-document-copy h3 { font-size: 18px; }
.portal-document-project { display: block; margin-top: 4px; overflow: hidden; color: var(--portal-green-dark); font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.portal-file-note { font-size: 12px; }
.portal-document-phase, .portal-document-state { font-size: 11px; }
.portal-document-action { min-height: 42px; height: 42px; padding: 0 13px; font-size: 12px; }
.portal-version-history summary { min-height: 44px; font-size: 13px; }
.portal-version-row strong { font-size: 12px; }
.portal-version-row small { font-size: 11px; }
.portal-version-actions a, .portal-version-action { width: 40px; height: 40px; }

.portal-reports { margin-top: 24px; }
.portal-report-totals span, .portal-report-results { font-size: 13px; }
.portal-report-search { padding: 15px; }
.portal-report-search label, .portal-report-search button, .portal-report-search > a { min-height: 46px; height: 46px; font-size: 14px; }
.portal-report-search input { font-size: 14px; }
.portal-report-sort > span, .portal-report-sort select { font-size: 14px; }
.portal-report-active-filter { min-height: 54px; font-size: 14px; }
.portal-report-active-filter a { min-height: 40px; font-size: 13px; }
.portal-report-grid { grid-template-columns: 1fr; gap: 12px; }
.portal-report-card { padding: 20px; }
.portal-report-card-head { grid-template-columns: 56px minmax(0, 1fr) auto; }
.portal-report-file-icon { width: 56px; height: 60px; }
.portal-report-context { color: var(--portal-muted); font-size: 12px; }
.portal-report-card h3 { margin-top: 4px; overflow: visible; font-size: 20px; line-height: 1.2; white-space: normal; }
.portal-report-filename { margin: 4px 0 0; overflow: hidden; color: var(--portal-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.portal-report-source { padding: 7px 10px; color: #454549; font-size: 11px; }
.portal-report-meta-cluster { margin: 16px 0 12px; position: relative; }
.portal-report-meta { min-height: 44px; margin: 0; padding-right: 68px; align-items: center; gap: 9px 18px; color: var(--portal-muted); font-size: 13px; }
.portal-report-meta > a { min-height: 36px; padding: 0 5px; border-radius: 7px; }
.portal-report-meta > a:hover { background: #fff0ef; }
.portal-report-meta > a.portal-report-meta-job { max-width: min(520px, 100%); text-decoration: none; }
.portal-report-job-number { flex: 0 0 auto; text-decoration: underline; text-decoration-color: #d99b96; text-underline-offset: 3px; }
.portal-report-job-name { min-width: 0; max-width: 320px; overflow: hidden; color: var(--portal-muted); font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.portal-report-job-name::before { content: "·"; margin-right: 7px; color: #b1a7a8; }
.portal-report-meta svg { width: 15px; color: var(--portal-green-dark); }
.portal-report-photo-disclosure { margin: 0; border: 0; }
.portal-report-photo-disclosure summary, .portal-report-photo-indicator { width: 58px; min-height: 44px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; position: absolute; top: 0; right: 0; color: var(--portal-green-dark); border: 0; border-radius: 7px; background: transparent; list-style: none; }
.portal-report-photo-disclosure summary { cursor: pointer; }
.portal-report-photo-disclosure summary:hover { background: #fff0ef; }
.portal-report-photo-disclosure summary::-webkit-details-marker { display: none; }
.portal-report-photo-disclosure summary img, .portal-report-photo-indicator img { width: 20px; height: 20px; }
.portal-report-photo-count { min-width: 14px; color: var(--portal-green-dark); font-size: 13px; font-weight: 850; text-align: center; }
.portal-report-photo-disclosure summary > svg { width: 14px; transition: transform .18s ease; }
.portal-report-photo-disclosure[open] summary > svg { transform: rotate(180deg); }
.portal-report-photo-indicator { opacity: .42; }
.portal-report-photo-disclosure .portal-report-pictures { width: 100%; max-height: 520px; margin-top: 10px; padding: 14px; grid-template-columns: repeat(6, minmax(80px, 1fr)); gap: 10px; overflow-y: auto; border: 1px solid var(--portal-line); border-radius: 12px; background: #faf9f9; }
.portal-report-pictures a { border-radius: 10px; }
.portal-report-actions { margin-top: 0; }
.portal-report-actions a { min-height: 44px; padding: 0 14px; font-size: 14px; }
.portal-report-pagination a { min-height: 44px; font-size: 13px; }
.portal-report-pagination strong { font-size: 13px; }

/* Keep TCL phase/job context readable and give site names a quieter body face. */
.portal-document-copy h3,
.portal-report-card h3,
.portal-missing-site-list strong {
    font-family: Arial, "Segoe UI", sans-serif;
    font-weight: 700;
    font-synthesis: auto;
    letter-spacing: -.01em;
}

.portal-report-search button,
.portal-report-actions a {
    font-family: Arial, "Segoe UI", sans-serif;
    font-weight: 800;
    font-synthesis: auto;
}

.portal-report-meta > a.portal-report-meta-job {
    width: min(780px, calc(100% - 68px));
    max-width: calc(100% - 68px);
}

.portal-report-job-name {
    max-width: none;
    flex: 1 1 auto;
}

.portal-help-card { color: var(--portal-ink); border: 1px solid var(--portal-line); border-left: 5px solid var(--portal-green); background: #fff; }
.portal-help-card > div > span { color: var(--portal-green); background: #fff0ef; }
.portal-help-card small { color: var(--portal-green-dark); font-size: 12px; }
.portal-help-card h2 { font-size: 22px; }
.portal-help-card p { color: var(--portal-muted); font-size: 14px; }
.portal-help-card > a { min-height: 44px; color: #fff; background: var(--portal-green-dark); font-size: 14px; }

.portal-upload-dialog { overflow-y: auto; }
.portal-upload-fields label > span { font-size: 12px; }
.portal-upload-fields select, .portal-upload-fields textarea { font-size: 14px; }
.portal-upload-file input, .portal-upload-file > small, .portal-upload-assurance { font-size: 12px; }
.portal-dialog-head > button { width: 44px; height: 44px; }
.portal-dialog-footer button { min-height: 44px; }

.portal-footer { min-height: 82px; color: #fff; background: var(--portal-green); font-size: 13px; }
.portal-footer > span { display: flex; align-items: center; gap: 18px; }
.portal-footer img { width: 82px; height: auto; }

@media (max-width: 900px) {
    .portal-overview-kpis { grid-template-columns: 1fr; }
    .portal-section-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-report-summary-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .portal-header { height: auto; }
    .portal-page-heading { align-items: flex-start; flex-direction: column; }
    .portal-page-intro h1, .portal-page-heading h1 { font-size: 38px; }
    .portal-page-intro p, .portal-page-heading p { font-size: 15px; }
    .portal-overview-kpi { min-height: 150px; padding: 20px; grid-template-columns: 52px minmax(0, 1fr) 22px; gap: 15px; }
    .portal-overview-kpi-icon { width: 52px; height: 52px; }
    .portal-overview-kpi-copy strong { font-size: 38px; }
    .portal-report-active-filter { align-items: flex-start; flex-direction: column; }
    .portal-report-active-filter > div { width: 100%; justify-content: flex-start; }
    .portal-report-photo-disclosure .portal-report-pictures { grid-template-columns: repeat(3, minmax(70px, 1fr)); }
    .portal-project-toolbar { align-items: stretch; flex-direction: column; }
    .portal-project-toolbar > label, .portal-project-toolbar form { width: 100%; min-width: 0; }
}

@media (max-width: 520px) {
    .portal-section-kpis, .portal-report-summary-kpis { grid-template-columns: 1fr; }
    .portal-report-card-head { grid-template-columns: 48px minmax(0, 1fr); }
    .portal-report-source { grid-column: 2; width: max-content; }
    .portal-report-actions { justify-content: stretch; }
    .portal-report-actions a { flex: 1; justify-content: center; }
    .portal-report-photo-disclosure .portal-report-pictures { grid-template-columns: repeat(2, minmax(80px, 1fr)); }
    .portal-project-toolbar form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------------------
   Project plan / Gantt
   Bars are positioned from server-computed percentages (prepare_project_plan_gantt),
   so nothing here needs JavaScript or a charting library.
   --------------------------------------------------------------------------- */

.portal-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.portal-plan-empty { margin: 26px 0; padding: 46px 26px; display: grid; justify-items: center; gap: 10px; text-align: center; border: 1px dashed #efc3c6; border-radius: var(--portal-radius); background: #fff; }
.portal-plan-empty i { width: 30px; height: 30px; color: var(--portal-green); }
.portal-plan-empty h2 { margin: 0; font-size: 18px; }
.portal-plan-empty p { max-width: 520px; margin: 0; color: var(--portal-muted); font-size: 13px; line-height: 1.65; }

.portal-plan-summary { margin: 22px 0 18px; padding: 22px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: #fff; box-shadow: 0 10px 28px rgba(105, 0, 9, .045); }
.portal-plan-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.portal-plan-summary-head h2 { margin: 0 0 4px; font-size: 19px; }
.portal-plan-summary-head p { margin: 0; color: var(--portal-muted); font-size: 12px; }
.portal-plan-blurb { margin: 14px 0 0; color: var(--portal-muted); font-size: 13px; line-height: 1.7; }
.portal-plan-value { margin: 12px 0 0; color: var(--portal-muted); font-size: 12px; }
.portal-plan-value strong { color: var(--portal-ink); font-size: 15px; }
.portal-plan-table td.is-value, .portal-plan-table tfoot td.is-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.portal-plan-table tfoot th, .portal-plan-table tfoot td { border-top: 1px solid var(--portal-line); font-weight: 850; background: var(--portal-soft); }
.portal-plan-summary-progress { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.portal-plan-summary-progress .portal-progress { flex: 1; height: 8px; }
.portal-plan-summary-progress strong { min-width: 46px; text-align: right; color: var(--portal-green-dark); font-size: 15px; }

.portal-plan-health { padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 850; white-space: nowrap; color: var(--portal-green-dark); background: var(--portal-mint); }
.portal-plan-health.is-on-track { color: #12692f; background: #e7f6ec; }
.portal-plan-health.is-at-risk { color: #8a5a00; background: #fdf1dc; }
.portal-plan-health.is-delayed { color: var(--portal-green-dark); background: var(--portal-mint); }
.portal-plan-health.is-on-hold { color: #4a4a52; background: #eeeef1; }
.portal-plan-health.is-complete { color: #12692f; background: #e7f6ec; }

.portal-gantt { margin: 0 0 20px; padding: 18px; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); background: #fff; box-shadow: 0 10px 28px rgba(105, 0, 9, .045); }
/* The chart scrolls inside its own box so the page body never scrolls sideways. */
.portal-gantt-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.portal-gantt-inner { --gantt-label-w: 230px; position: relative; min-width: 760px; }

.portal-gantt-head { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: var(--gantt-label-w) minmax(0, 1fr); background: #fff; border-bottom: 1px solid var(--portal-line); }
.portal-gantt-label-head { position: sticky; left: 0; z-index: 4; padding: 8px 12px 10px; background: #fff; color: var(--portal-muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.portal-gantt-timeline-head { position: relative; height: 30px; }
.portal-gantt-column { position: absolute; top: 8px; padding-left: 8px; border-left: 1px solid var(--portal-line); color: var(--portal-muted); font-size: 10px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.portal-gantt-row { display: grid; grid-template-columns: var(--gantt-label-w) minmax(0, 1fr); align-items: center; min-height: 44px; border-bottom: 1px solid #f4f1f1; }
.portal-gantt-row:last-of-type { border-bottom: 0; }
.portal-gantt-label { position: sticky; left: 0; z-index: 2; min-width: 0; padding: 8px 12px; background: #fff; }
.portal-gantt-label strong { display: block; font-size: 12px; font-weight: 750; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-gantt-label small { display: block; margin-top: 2px; color: var(--portal-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-gantt-row.is-phase .portal-gantt-label strong { font-weight: 900; }
.portal-gantt-row.depth-1 .portal-gantt-label { padding-left: 26px; }
.portal-gantt-row.depth-2 .portal-gantt-label { padding-left: 40px; }

.portal-gantt-timeline { position: relative; height: 44px; }
.portal-gantt-gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: #f4f1f1; }

.portal-gantt-bar { position: absolute; top: 50%; transform: translateY(-50%); height: 18px; min-width: 3px; border-radius: 6px; background: #f7dcde; overflow: visible; }
.portal-gantt-bar-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--portal-green); }
.portal-gantt-bar-value { position: absolute; left: calc(100% + 7px); top: 50%; transform: translateY(-50%); color: var(--portal-muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.portal-gantt-row.is-phase .portal-gantt-bar { height: 22px; border-radius: 7px; }
.portal-gantt-row.is-complete .portal-gantt-bar-fill { background: #1f8a43; }
.portal-gantt-row.is-overdue .portal-gantt-bar { background: #fbe3e3; box-shadow: inset 0 0 0 1px #e79a9a; }

.portal-gantt-baseline { position: absolute; top: calc(50% + 14px); transform: translateY(-50%); height: 4px; min-width: 3px; border-radius: 3px; background: #d8d3d3; }
.portal-gantt-milestone { position: absolute; top: 50%; width: 13px; height: 13px; margin-left: -6px; transform: translateY(-50%) rotate(45deg); border-radius: 2px; background: var(--portal-green-dark); }
.portal-gantt-row.is-complete .portal-gantt-milestone { background: #1f8a43; }

/* Offset by the sticky label column so the line lands on the correct date. */
.portal-gantt-today { position: absolute; top: 30px; bottom: 0; z-index: 1; width: 2px; background: rgba(234, 27, 10, .45); pointer-events: none; left: calc(var(--gantt-label-w) + (100% - var(--gantt-label-w)) * var(--today) / 100); }
.portal-gantt-today small { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); padding: 2px 7px; border-radius: 999px; background: var(--portal-green); color: #fff; font-size: 9px; font-weight: 850; white-space: nowrap; }

.portal-gantt-legend { margin: 14px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; color: var(--portal-muted); font-size: 11px; }
.portal-gantt-key { width: 14px; height: 9px; margin-right: 2px; display: inline-block; border-radius: 3px; vertical-align: middle; }
.portal-gantt-key.is-bar { background: #f7dcde; }
.portal-gantt-key.is-fill { background: var(--portal-green); }
.portal-gantt-key.is-done { background: #1f8a43; }
.portal-gantt-key.is-baseline { height: 4px; background: #d8d3d3; }
.portal-gantt-key.is-milestone { width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); background: var(--portal-green-dark); }

.portal-plan-table { width: 100%; margin: 0 0 30px; border-collapse: collapse; border: 1px solid var(--portal-line); border-radius: var(--portal-radius); overflow: hidden; background: #fff; }
.portal-plan-table th, .portal-plan-table td { padding: 11px 14px; text-align: left; font-size: 12px; border-bottom: 1px solid #f4f1f1; vertical-align: middle; }
.portal-plan-table thead th { color: var(--portal-muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; background: var(--portal-soft); }
.portal-plan-table tbody th { font-weight: 750; }
.portal-plan-table tbody th small { display: block; margin-top: 2px; color: var(--portal-muted); font-size: 10px; font-weight: 500; }
.portal-plan-table tbody tr:last-child th, .portal-plan-table tbody tr:last-child td { border-bottom: 0; }
.portal-plan-table tr.depth-1 th { padding-left: 30px; }
.portal-plan-table tr.depth-2 th { padding-left: 46px; }
.portal-plan-table td .portal-progress { display: inline-block; width: 90px; height: 6px; margin-right: 8px; vertical-align: middle; }

@media (max-width: 900px) {
    .portal-gantt-inner { --gantt-label-w: 165px; min-width: 640px; }
    .portal-gantt-label strong { font-size: 11px; }
    .portal-plan-summary-head { flex-direction: column; }
    /* The wide task table is the chart's accessible twin — let it scroll too. */
    .portal-plan-table { display: block; overflow-x: auto; white-space: nowrap; }
}
