:root,
html[data-portal-theme="dark"] {
    --portal-gold: #c5a059;
    --portal-gold-strong: #d6b66f;
    --portal-bg: #07101d;
    --portal-sidebar: #10171d;
    --portal-surface: #171e24;
    --portal-surface-soft: #202830;
    --portal-surface-hover: #252f38;
    --portal-text: #f4f4f2;
    --portal-muted: #aab3bd;
    --portal-border: #35404a;
    --portal-success: #61c995;
    --portal-warning: #e0b34f;
    --portal-danger: #f97066;
    --portal-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

html,
body {
    min-height: 100%;
    background: var(--portal-bg);
}

body {
    padding: 0 !important;
    margin: 0;
}

#dashboard-view {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.portal-shell {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    background: var(--portal-bg);
    color: var(--portal-text);
}

.portal-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 28px 18px;
    border-right: 1px solid var(--portal-border);
    background: var(--portal-sidebar);
}

.portal-brand {
    margin: 0 10px 30px;
    color: var(--portal-gold);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.22em;
}

.portal-sidebar nav {
    display: grid;
    gap: 6px;
}

.portal-nav-link {
    min-height: 48px;
    width: 100%;
    padding: 11px 13px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--portal-muted);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.portal-nav-link:hover {
    background: var(--portal-surface-hover);
    color: var(--portal-text);
}

.portal-nav-link.is-active {
    background: var(--portal-surface-soft);
    color: var(--portal-text);
    box-shadow: inset 3px 0 0 var(--portal-gold);
}

.portal-workspace {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0 36px 56px;
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 1px solid var(--portal-border);
    background: color-mix(in srgb, var(--portal-bg) 92%, transparent);
    backdrop-filter: blur(12px);
}

.portal-header-title {
    min-width: 0;
}

.portal-header h1,
.portal-panel h2 {
    margin: 3px 0 0;
    color: var(--portal-text);
}

.portal-header h1 {
    max-width: min(70vw, 900px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(1.25rem, 2.2vw, 1.85rem);
}

.portal-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.portal-eyebrow {
    display: block;
    color: var(--portal-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.portal-secondary-button,
.portal-menu-button,
.portal-text-button {
    min-height: 44px;
    border-radius: 9px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.portal-secondary-button,
.portal-menu-button {
    padding: 8px 13px;
    border: 1px solid var(--portal-border);
    background: var(--portal-surface);
    color: var(--portal-text);
}

.portal-secondary-button:hover,
.portal-menu-button:hover {
    border-color: var(--portal-gold);
}

.portal-secondary-button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.portal-text-button {
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--portal-gold-strong);
    text-align: left;
}

.portal-menu-button {
    display: none;
}

.portal-phase-panel {
    width: 100%;
    margin: 28px 0;
    padding: 20px;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: var(--portal-surface);
}

.portal-phase-heading,
.portal-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
}

.portal-phase-heading > span,
.portal-section-heading > span {
    color: var(--portal-muted);
    font-size: 0.82rem;
}

.portal-progress {
    height: 6px;
    margin: 18px 0;
    overflow: hidden;
    border-radius: 999px;
    background: var(--portal-surface-soft);
}

.portal-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--portal-gold);
}

.portal-phase-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.portal-phase-step {
    min-height: 66px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    background: var(--portal-surface);
    color: var(--portal-text);
    text-align: left;
    cursor: pointer;
}

.portal-phase-step span {
    display: block;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.portal-phase-step small {
    display: block;
    margin-top: 4px;
    color: var(--portal-muted);
}

.portal-phase-step.is-viewed {
    border-color: var(--portal-gold);
    background: color-mix(in srgb, var(--portal-gold) 10%, var(--portal-surface));
}

.portal-phase-step.is-current span {
    font-weight: 900;
}

.portal-phase-step.is-locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.portal-main {
    width: 100%;
    max-width: none;
    outline: none;
}

.portal-home-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.portal-panel,
.portal-shell .glass-card.section {
    width: 100%;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: var(--portal-surface);
    color: var(--portal-text);
    box-shadow: none;
}

.portal-panel-wide {
    grid-column: 1 / -1;
}

.portal-panel h2 {
    margin-bottom: 16px;
    font-size: 1.12rem;
}

.portal-stack {
    display: grid;
    gap: 18px;
}

.portal-action-list {
    display: grid;
    gap: 9px;
}

.portal-action-item {
    min-height: 52px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 13px;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    background: var(--portal-surface-soft);
    color: var(--portal-text);
    font: inherit;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.portal-action-item:hover {
    border-color: var(--portal-gold);
    background: var(--portal-surface-hover);
}

.portal-stat-list {
    margin: 0;
}

.portal-stat-list > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid var(--portal-border);
}

.portal-stat-list > div:last-child {
    border-bottom: 0;
}

.portal-stat-list dt {
    color: var(--portal-muted);
}

.portal-stat-list dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.portal-empty,
.portal-muted,
.portal-waiting-item,
.portal-empty-feature p {
    max-width: 70ch;
    color: var(--portal-muted);
    line-height: 1.6;
}

.portal-waiting-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--portal-border);
}

.portal-mobile-nav {
    display: none;
}

.portal-shell .row {
    border-color: var(--portal-border);
}

.portal-shell .text-gray-500 {
    color: var(--portal-muted) !important;
}

.portal-shell a {
    color: var(--portal-gold-strong);
}

.portal-nav-link:focus-visible,
.portal-secondary-button:focus-visible,
.portal-menu-button:focus-visible,
.portal-text-button:focus-visible,
.portal-phase-step:focus-visible,
.portal-action-item:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--portal-gold) 45%, transparent);
    outline-offset: 2px;
}

@media (max-width: 980px) {
    .portal-shell {
        display: block;
    }

    .portal-sidebar {
        display: none;
    }

    .portal-workspace {
        padding: 0 18px 40px;
    }

    .portal-header {
        min-height: 84px;
    }

    .portal-menu-button {
        display: inline-flex;
        align-items: center;
    }

    .portal-mobile-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin: 14px 0 0;
        padding: 10px;
        border: 1px solid var(--portal-border);
        border-radius: 12px;
        background: var(--portal-surface);
    }

    .portal-phase-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .portal-home-grid {
        grid-template-columns: 1fr;
    }

    .portal-panel-wide {
        grid-column: auto;
    }

    .portal-header {
        align-items: flex-start;
        padding: 16px 0;
    }

    .portal-header-actions {
        justify-content: flex-start;
    }

    .portal-header h1 {
        max-width: 100%;
        white-space: normal;
    }

    .portal-phase-heading,
    .portal-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-phase-steps {
        grid-template-columns: 1fr;
    }

    .portal-panel,
    .portal-shell .glass-card.section,
    .portal-phase-panel {
        padding: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-shell *,
    .portal-shell *::before,
    .portal-shell *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
/* Batch 3: denser feature pages without changing feature business logic */

.portal-selection-toolbar {
    margin: 16px 0 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    background: var(--portal-surface-soft);
    color: var(--portal-muted);
    font-size: 0.88rem;
}

.portal-selection-toolbar > div {
    display: flex;
    gap: 6px;
}

.portal-selection-toolbar button,
.portal-selection-toggle {
    min-height: 40px;
    padding: 7px 11px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: var(--portal-surface);
    color: var(--portal-text);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.portal-selection-toolbar button:hover,
.portal-selection-toggle:hover {
    border-color: var(--portal-gold);
}

.portal-selection-list {
    display: grid;
    gap: 10px;
}

.portal-shell .portal-selection-card {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: var(--portal-surface);
}

.portal-shell .portal-selection-head {
    min-height: 68px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 0;
}

.portal-selection-toggle {
    white-space: nowrap;
}

.portal-selection-body {
    padding: 0 16px 16px;
    border-top: 1px solid var(--portal-border);
}

.portal-selection-body[hidden] {
    display: none !important;
}

.portal-selection-card.is-expanded .portal-selection-head {
    background: color-mix(in srgb, var(--portal-gold) 5%, var(--portal-surface));
}

.portal-shell .portal-selection-request,
.portal-shell .portal-selection-submitted,
.portal-shell .portal-selection-cost {
    border-color: var(--portal-border);
    background: var(--portal-surface-soft);
}

.portal-shell .portal-selection-option {
    border-color: var(--portal-border);
    background: var(--portal-surface);
}

.portal-shell .portal-selection-option.selected {
    border-color: var(--portal-gold);
    background: color-mix(in srgb, var(--portal-gold) 8%, var(--portal-surface));
}

/* Documents get the width the new shell provides. */
.portal-shell .portal-file-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.portal-shell .portal-file-card {
    min-width: 0;
    border-color: var(--portal-border);
    background: var(--portal-surface-soft);
}

.portal-shell .portal-file-card-body {
    color: var(--portal-text);
}

.portal-shell .portal-file-meta {
    color: var(--portal-muted);
}

.portal-shell .portal-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Financial pages should read as a ledger, not a pile of unrelated cards. */
.portal-stack > .glass-card.section,
.portal-stack > .portal-panel {
    margin: 0;
}

.portal-stack table {
    width: 100%;
}

.portal-stack th,
.portal-stack td {
    border-color: var(--portal-border);
}

.portal-stack select,
.portal-stack input,
.portal-stack textarea,
.portal-selections-page input,
.portal-selections-page textarea {
    border-color: var(--portal-border) !important;
    background: var(--portal-surface-soft) !important;
    color: var(--portal-text) !important;
}

@media (max-width: 720px) {
    .portal-selection-toolbar,
    .portal-shell .portal-selection-head {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .portal-selection-toolbar {
        flex-direction: column;
    }

    .portal-selection-toolbar > div {
        width: 100%;
    }

    .portal-selection-toolbar button,
    .portal-selection-toggle {
        min-height: 46px;
    }

    .portal-selection-toolbar button {
        flex: 1;
    }

    .portal-shell .portal-file-gallery {
        grid-template-columns: 1fr;
    }
}
/* Batch 4: contextual help + phase-completion feedback */

.portal-help {
    width: 100%;
    margin: 0 0 14px;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--portal-surface) 82%, var(--portal-bg));
}

.portal-help summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--portal-text);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.portal-help summary::-webkit-details-marker {
    display: none;
}

.portal-help summary::after {
    content: '+';
    margin-left: auto;
    color: var(--portal-gold);
    font-size: 1.2rem;
}

.portal-help[open] summary::after {
    content: '−';
}

.portal-help-body {
    padding: 0 14px 14px;
    border-top: 1px solid var(--portal-border);
}

.portal-help-body p {
    max-width: 72ch;
    margin: 12px 0 4px;
    color: var(--portal-muted);
    line-height: 1.6;
}

.portal-phase-complete {
    position: relative;
    overflow: hidden;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 16px;
    padding: 15px 18px;
    border: 1px solid color-mix(in srgb, var(--portal-success) 65%, var(--portal-border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--portal-success) 10%, var(--portal-surface));
    color: var(--portal-text);
}

.portal-phase-complete strong {
    display: block;
    margin-top: 3px;
}

.portal-phase-complete > span[aria-hidden="true"] {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--portal-success);
    color: #07101d;
    font-size: 1.2rem;
    font-weight: 900;
}

.portal-completion-spark {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.portal-completion-spark i {
    --angle: calc(var(--spark-index) * 30deg);
    position: absolute;
    left: 92%;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--portal-gold);
    animation: portal-spark 1.25s ease-out forwards;
    transform: rotate(var(--angle)) translateX(0);
}

@keyframes portal-spark {
    0% {
        opacity: 0;
        transform: rotate(var(--angle)) translateX(0) scale(0.6);
    }
    18% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(var(--angle)) translateX(72px) scale(1);
    }
}

@media (max-width: 720px) {
    .portal-phase-complete {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-completion-spark {
        display: none !important;
    }
}
/* Batch 5: preserve customer context and protect unsaved selections */

.portal-selection-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#portal-selection-save-state {
    padding: 3px 8px;
    border: 1px solid var(--portal-border);
    border-radius: 999px;
    color: var(--portal-muted);
    background: var(--portal-surface);
    font-size: 0.74rem;
    font-weight: 800;
}

#portal-selection-save-state.is-dirty {
    border-color: color-mix(in srgb, var(--portal-warning) 70%, var(--portal-border));
    color: var(--portal-warning);
    background: color-mix(in srgb, var(--portal-warning) 8%, var(--portal-surface));
}

.portal-header-actions .portal-nav-control {
    flex: 0 0 auto;
}

@media (max-width: 720px) {
    .portal-header-actions {
        width: 100%;
    }

    .portal-header-actions .portal-nav-control {
        display: inline-flex !important;
    }
}
/* Batch 6: whole-project client-side search over customer-visible session data */

.portal-search-button {
    min-width: 92px;
}

.portal-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: start center;
    padding: min(10vh, 90px) 18px 24px;
    background: rgba(2, 6, 12, 0.76);
    backdrop-filter: blur(6px);
}

.portal-search-dialog {
    width: min(760px, 100%);
    max-height: min(76vh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    background: var(--portal-surface);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.portal-search-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 20px 14px;
}

.portal-search-heading h2 {
    margin: 4px 0 0;
    color: var(--portal-text);
    font-size: 1.2rem;
}

.portal-search-close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--portal-border);
    border-radius: 9px;
    background: var(--portal-surface-soft);
    color: var(--portal-text);
    font-size: 1.45rem;
    cursor: pointer;
}

.portal-search-label {
    padding: 0 20px 8px;
    color: var(--portal-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.portal-search-input {
    min-height: 50px;
    margin: 0 20px 14px;
    padding: 10px 13px;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    outline: none;
    background: var(--portal-bg);
    color: var(--portal-text);
    font: inherit;
}

.portal-search-input:focus {
    border-color: var(--portal-gold);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--portal-gold) 22%, transparent);
}

.portal-search-results {
    min-height: 120px;
    overflow-y: auto;
    padding: 0 12px 14px;
}

.portal-search-result {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--portal-border);
    background: transparent;
    color: var(--portal-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.portal-search-result:hover,
.portal-search-result:focus-visible {
    background: var(--portal-surface-soft);
}

.portal-search-type {
    color: var(--portal-gold);
    font-size: 0.76rem;
    font-weight: 800;
}

.portal-search-result strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-search-hint {
    margin: 14px 8px;
    color: var(--portal-muted);
    line-height: 1.6;
}

@media (max-width: 620px) {
    .portal-search-overlay {
        padding: 10px;
    }

    .portal-search-dialog {
        max-height: calc(100vh - 20px);
        border-radius: 12px;
    }

    .portal-search-result {
        grid-template-columns: 1fr auto;
    }

    .portal-search-type {
        grid-column: 1 / -1;
    }
}
/* Batch 7: requirement-aligned Home dashboard + keyboard skip link */

.portal-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 200000;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 9px;
    background: var(--portal-gold);
    color: #07101d !important;
    font-weight: 900;
}

.portal-skip-link:focus {
    transform: translateY(0);
}

.portal-priority-panel {
    border-color: color-mix(in srgb, var(--portal-gold) 55%, var(--portal-border));
}

.portal-home-list {
    display: grid;
    margin-bottom: 8px;
}

.portal-home-row {
    min-height: 46px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--portal-border);
}

.portal-home-row:last-child {
    border-bottom: 0;
}

.portal-home-row > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 750;
}

.portal-home-row > span:last-child {
    color: var(--portal-muted);
    font-size: 0.78rem;
}

.portal-home-grid > .portal-panel {
    align-self: stretch;
}

@media (min-width: 1180px) {
    .portal-home-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .portal-panel-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .portal-home-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .portal-home-row > span:last-child {
        text-align: left;
    }
}
/* Batch 8: stronger orientation, action badges, and phase state clarity */

.portal-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.portal-nav-badge {
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border: 1px solid color-mix(in srgb, var(--portal-warning) 65%, var(--portal-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--portal-warning) 12%, var(--portal-surface));
    color: var(--portal-warning);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.portal-page-heading {
    margin: 0 0 16px;
    padding: 2px 0 4px;
}

.portal-page-heading h2 {
    margin: 3px 0 0;
    color: var(--portal-text);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.portal-phase-name {
    display: flex !important;
    align-items: center;
    gap: 7px;
}

.portal-phase-step.is-completed .portal-phase-name > span {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 20px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--portal-success) 20%, var(--portal-surface));
    color: var(--portal-success);
    font-size: 0.72rem;
    font-weight: 900;
}

.portal-phase-step.is-completed {
    border-color: color-mix(in srgb, var(--portal-success) 38%, var(--portal-border));
}

.portal-search-label::after {
    content: '  Press / from anywhere in the portal to open search.';
    color: var(--portal-gold);
}

@media (max-width: 620px) {
    .portal-search-label::after {
        content: '';
    }
}
/* Batch 9: persistent section context + structured Financial workspace */

.portal-subnav {
    position: sticky;
    top: 96px;
    z-index: 20;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    margin: 0 0 16px;
    padding: 8px;
    border: 1px solid var(--portal-border);
    border-radius: 11px;
    background: color-mix(in srgb, var(--portal-bg) 92%, transparent);
    backdrop-filter: blur(10px);
    scrollbar-width: thin;
}

.portal-subnav button {
    min-height: 40px;
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: var(--portal-surface);
    color: var(--portal-text);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.portal-subnav button:hover,
.portal-subnav button:focus-visible {
    border-color: var(--portal-gold);
}

.portal-scroll-target {
    scroll-margin-top: 160px;
}

.portal-financial-stack {
    gap: 16px;
}

.portal-decision-list {
    display: grid;
    margin-top: 14px;
    border-top: 1px solid var(--portal-border);
}

.portal-decision-row {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--portal-border);
}

.portal-decision-row > div {
    min-width: 0;
}

.portal-decision-row > div > span {
    display: block;
    margin-bottom: 2px;
    color: var(--portal-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.portal-decision-row strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-decision-row > span {
    color: var(--portal-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: right;
}

@media (max-width: 720px) {
    .portal-subnav {
        top: 84px;
        margin-left: -2px;
        margin-right: -2px;
    }

    .portal-scroll-target {
        scroll-margin-top: 150px;
    }

    .portal-decision-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .portal-decision-row > span {
        text-align: left;
    }
}
/* Batch 11: action center + proper mobile navigation drawer */

.portal-attention-wrap {
    position: relative;
}

.portal-attention-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.portal-header-badge {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--portal-warning);
    color: #07101d;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
}

.portal-attention-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    width: min(390px, 90vw);
    overflow: hidden;
    border: 1px solid var(--portal-border);
    border-radius: 14px;
    background: var(--portal-surface);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.portal-attention-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 14px 11px;
    border-bottom: 1px solid var(--portal-border);
}

.portal-attention-heading strong {
    display: block;
    margin-top: 2px;
}

.portal-attention-close,
.portal-mobile-nav-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--portal-border);
    border-radius: 9px;
    background: var(--portal-surface-soft);
    color: var(--portal-text);
    font-size: 1.3rem;
    cursor: pointer;
}

.portal-attention-list {
    display: grid;
    padding: 6px;
}

.portal-attention-list button {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--portal-text);
    font: inherit;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.portal-attention-list button:hover,
.portal-attention-list button:focus-visible {
    background: var(--portal-surface-soft);
}

.portal-attention-empty {
    margin: 0;
    padding: 15px;
    color: var(--portal-muted);
    line-height: 1.55;
}

.portal-mobile-nav-layer {
    display: none;
}

@media (max-width: 980px) {
    .portal-mobile-nav-layer {
        position: fixed;
        inset: 0;
        z-index: 90000;
        display: block;
        background: rgba(2, 6, 12, 0.7);
        backdrop-filter: blur(4px);
    }

    .portal-mobile-nav {
        position: absolute;
        top: 0;
        right: 0;
        width: min(360px, 88vw);
        height: 100%;
        display: block;
        margin: 0;
        padding: 18px;
        overflow-y: auto;
        border: 0;
        border-left: 1px solid var(--portal-border);
        border-radius: 0;
        background: var(--portal-sidebar);
        box-shadow: -24px 0 60px rgba(0, 0, 0, 0.38);
    }

    .portal-mobile-nav-heading {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 18px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--portal-border);
    }

    .portal-mobile-nav-heading strong {
        display: block;
        margin-top: 3px;
    }

    .portal-mobile-nav .portal-nav-link {
        min-height: 52px;
        margin-bottom: 5px;
    }

    .portal-attention-popover {
        position: fixed;
        top: 86px;
        right: 18px;
        left: 18px;
        width: auto;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
}

@media (max-width: 620px) {
    .portal-header-actions {
        gap: 6px;
    }

    .portal-attention-button,
    .portal-search-button,
    .portal-nav-control,
    .portal-menu-button {
        min-height: 42px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .portal-attention-popover {
        top: 78px;
        right: 10px;
        left: 10px;
    }
}
