:root {
    --ink: #102a43;
    --muted: #5f7486;
    --line: #cfe0eb;
    --surface: #ffffff;
    --canvas: #eef6fa;
    --blue: #1597c8;
    --blue-dark: #0e648f;
    --blue-soft: #dff3fb;
    --blue-pale: #eff9fc;
    --green: #1f7a55;
    --green-soft: #e6f7ef;
    --red: #aa3540;
    --red-soft: #fff0f1;
    --amber: #8d651c;
    --amber-soft: #fff7df;
    --shadow: 0 14px 36px rgba(16, 42, 67, .10);
}

.ig-connection-panel code { overflow-wrap: anywhere; }
.ig-balance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ig-balance-grid > div { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface-muted, #f7f9fb); }
.ig-balance-grid span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 7px; }
.ig-balance-grid strong { display: block; font-size: 20px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .ig-balance-grid { grid-template-columns: 1fr; } }
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: linear-gradient(180deg, #eaf6fb 0, #f9fcfd 360px, var(--canvas) 100%); font-family: "Segoe UI", Arial, sans-serif; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { min-height: 76px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .02em; font-size: 18px; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.delta-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: white; font-weight: 800; font-size: 25px; background: linear-gradient(145deg, #2998ea, #135892); box-shadow: 0 8px 18px rgba(21, 92, 150, .25); }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; }
.nav-links a, .link-button { color: var(--ink); }
.inline-form { display: inline; margin: 0; }
.link-button { border: 0; background: transparent; font: inherit; cursor: pointer; padding: 0; }
.link-button:hover { color: var(--blue); text-decoration: underline; }
.page-shell { width: min(1460px, 92vw); margin: 0 auto 70px; }
.footer { padding: 24px; text-align: center; color: var(--muted); font-size: 12px; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 16px 0 24px; }
h1, h2, h3 { margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; margin-bottom: 10px; letter-spacing: -.035em; }
h2 { font-size: 21px; margin-bottom: 8px; }
h3 { font-size: 17px; }
p { color: var(--muted); line-height: 1.55; }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 800; margin-bottom: 8px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.narrow-panel { max-width: 620px; }
.form-panel { max-width: 940px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.panel-heading p { margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #a9c8df; color: var(--ink); background: #e6f5ff; padding: 10px 16px; border-radius: 9px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.button:hover { background: #d7efff; text-decoration: none; }
.button-primary { background: #cfeeff; border-color: #83bee6; color: #124f7c; }
.button-primary:hover { background: #bfe7ff; }
.button-small { padding: 7px 11px; font-size: 12px; }
.button-success { background: var(--green-soft); border-color: #9bd2b9; color: var(--green); }
.button-danger { background: var(--red-soft); border-color: #ebb4b8; color: var(--red); }
.button-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.button-row form { margin: 0; }
.flash-stack { margin-bottom: 18px; }
.flash { border-radius: 11px; padding: 13px 16px; border: 1px solid var(--line); background: white; margin-bottom: 8px; }
.flash-success { background: var(--green-soft); border-color: #a5d7c1; color: #175e43; }
.flash-danger { background: var(--red-soft); border-color: #efb8bd; color: #8c2631; }
.flash-warning { background: #fff7df; border-color: #e7c96d; color: #6d5412; }
.auth-card { width: min(520px, 94vw); margin: 7vh auto; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.auth-card-wide { width: min(820px, 94vw); }
.stack-form { display: grid; gap: 16px; margin-top: 24px; }
.compact-form { max-width: 330px; }
.stack-form label { display: grid; gap: 7px; color: #263b51; font-weight: 700; font-size: 13px; }
.stack-form label small, td small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }
input, select, textarea { width: 100%; border: 1px solid #b8cddd; border-radius: 9px; background: white; padding: 11px 12px; color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(31,120,193,.16); border-color: var(--blue); }
input[type="checkbox"] { width: auto; }
.check-row { display: flex !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.field-error { color: var(--red); font-size: 13px; }
.mfa-grid { display: grid; grid-template-columns: 1fr 260px; gap: 35px; align-items: center; }
.qr-panel { padding: 15px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.qr-panel img { display: block; width: 100%; }
.instruction-list { padding-left: 20px; color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
code { background: #eef4f8; padding: 3px 6px; border-radius: 5px; font-family: Consolas, monospace; word-break: break-all; }
.hash { font-size: 11px; }
.details { display: block; max-width: 360px; white-space: normal; font-size: 10px; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 25px; padding: 7px; background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 12px; width: fit-content; }
.subnav a { padding: 8px 11px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #31516d; }
.subnav a:hover { background: var(--blue-pale); text-decoration: none; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.stat-card span { display: block; color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; margin-top: 7px; font-size: 34px; }
.two-column { display: grid; grid-template-columns: minmax(300px, 420px) minmax(500px, 1fr); gap: 24px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.span-2 { grid-column: 1 / -1; }
.file-control { padding: 17px; border-radius: 12px; background: var(--blue-pale); border: 1px dashed #8ebfe0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 12px; border-bottom: 1px solid #e6eef5; text-align: left; vertical-align: middle; }
th { color: #63758a; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; white-space: nowrap; }
tbody tr:hover { background: #f9fcfe; }
.status, .badge, .pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.status-draft { background: var(--amber-soft); color: var(--amber); }
.status-published { background: var(--green-soft); color: var(--green); }
.status-superseded { background: #edf0f4; color: #596879; }
.status-rejected { background: var(--red-soft); color: var(--red); }
.badge-general { background: var(--blue-soft); color: var(--blue-dark); }
.badge-investor { background: #ece9ff; color: #594ca1; }
.badge-internal { background: var(--red-soft); color: var(--red); }
.account-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; padding: 14px 17px; border: 1px solid var(--line); background: rgba(255,255,255,.75); border-radius: 13px; }
.pill { text-transform: none; background: var(--blue-soft); color: var(--blue-dark); }
.document-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.document-card { display: flex; flex-direction: column; min-height: 225px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, white, #fbfdff); }
.document-card p { font-size: 13px; flex: 1; }
.document-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; margin-bottom: 15px; }
.document-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr) auto auto; gap: 10px; align-items: center; margin-bottom: 20px; }
.archive-check { white-space: nowrap; }
.empty-state { padding: 34px !important; text-align: center !important; color: var(--muted); }
.credential-box { margin-bottom: 24px; padding: 18px; border: 1px solid #e1bf75; border-radius: 13px; background: #fff9e8; display: grid; gap: 7px; }
.credential-box code { font-size: 15px; }
@media (max-width: 1100px) {
    .document-grid { grid-template-columns: repeat(2, 1fr); }
    .two-column { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .filter-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .topbar { align-items: flex-start; padding-top: 15px; padding-bottom: 15px; position: static; }
    .nav-links { justify-content: flex-end; flex-wrap: wrap; gap: 10px 14px; }
    .page-shell { width: min(94vw, 1460px); margin-top: 22px; }
    .page-header { align-items: flex-start; flex-direction: column; }
    .mfa-grid, .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .qr-panel { width: 240px; }
    .document-grid, .stat-grid, .filter-bar { grid-template-columns: 1fr; }
    .panel, .auth-card { padding: 20px; }
}

/* Build 0.7.32: Contract Note address assistance and controlled NAV updates */
.contract-note-assistant {
    display: grid;
    gap: 12px;
    margin: 18px 0 24px;
    padding: 16px;
    border: 1px solid #b9a9eb;
    border-radius: 14px;
    background: #f7f4ff;
}
.contract-note-assistant p { margin: 5px 0 0; font-size: 13px; }
.contract-note-drop-zone { min-height: 140px; padding: 18px; }
.contract-note-result { color: var(--muted); font-size: 13px; line-height: 1.5; }
.contract-note-success { color: var(--green); font-weight: 650; }
.contract-note-hint { display: grid; gap: 6px; color: #263b51; font-weight: 700; }
.contract-note-hint textarea { width: 100%; resize: vertical; background: #fff; }
.address-fields {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.address-fields legend { padding: 0 7px; color: #263b51; font-size: 13px; font-weight: 800; }
.data-source-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.data-source-summary div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfd; }
.data-source-summary span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.data-source-summary strong { overflow-wrap: anywhere; }
.compact-nav-form { max-width: 560px; }
.safe-write-note { display: grid; gap: 4px; padding: 13px; border: 1px solid #a5d7c1; border-radius: 11px; background: var(--green-soft); color: #175e43; font-size: 13px; }
.investor-data-management-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
}
.investor-data-management-panel { max-width: none; margin: 0; }
.investor-data-management-grid .data-source-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.capital-activity-form { max-width: none; }
.capital-activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.capital-activity-grid label { min-width: 0; }
.contract-note-data-assistant {
    display: grid;
    gap: 12px;
    margin: 8px 0 22px;
    padding: 16px;
    border: 1px solid #9fc9dd;
    border-radius: 14px;
    background: #eff8fc;
}
.contract-note-data-assistant p { margin: 5px 0 0; font-size: 13px; }
.contract-note-data-drop-zone { min-height: 130px; padding: 18px; }
.contract-note-data-assistant .contract-note-result { min-height: 20px; }
@media (max-width: 1100px) { .investor-data-management-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .data-source-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .data-source-summary { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .capital-activity-grid { grid-template-columns: 1fr; } }

/* Build 0.7.33: investor-specific holdings dashboard */
.holdings-panel {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #a8c9e3;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #f5faff);
    box-shadow: var(--shadow);
}
.holdings-heading { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 18px; }
.holdings-heading p { margin: 0; }
.dashboard-section-heading { margin: 0; color: var(--ink); font-size: 28px; font-weight: 700; }
.holdings-position-date { color: #24384d; font-size: 17px; font-weight: 700; }
.holdings-as-of { display: grid; gap: 5px; min-width: 260px; text-align: right; }
.holdings-as-of span { color: var(--muted); font-size: 13px; }
.dashboard-investor-identity { font-size: 18px; }
.holdings-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(245px, .9fr);
    gap: 12px;
    align-items: stretch;
    width: 100%;
    max-width: none;
}
.investor-metrics-frame {
    padding: 14px;
    border: 2px solid #cbd6df;
    border-radius: 18px;
    background: rgba(255,255,255,.72);
}
.investor-frame-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; min-height: 112px; margin-bottom: 12px; }
.investor-frame-heading .dashboard-section-heading { margin-bottom: 5px; }
.investor-frame-heading p { margin: 0; }
.holdings-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.holding-metric {
    min-height: 61px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 14px;
    border: 1px solid #d7e1e9;
    border-radius: 15px;
    background: #f2f4f6;
}
.holding-metric-current-value { background: #e3e9ef; border-color: #becbd6; }
.holding-metric-annualised-return { background: #e2f3fb; border-color: #8fc8df; }
.holding-metric span { color: #283644; font-weight: 700; }
.holding-metric strong { font-size: 20px; text-align: right; white-space: nowrap; }
.fund-performance-frame {
    padding: 14px;
    border: 2px solid #8dbcf0;
    border-radius: 18px;
    background: #eef5ff;
}
.fund-performance-heading { min-height: 112px; margin-bottom: 12px; }
.fund-performance-frame .dashboard-section-heading { margin-bottom: 5px; }
.fund-performance-heading .holdings-position-date { margin: 0; }
.fund-performance-metrics { display: grid; grid-template-columns: 1fr; gap: 10px; }
.fund-performance-metric { border-color: #9fc9ea; background: #e8f4ff; }
.fund-performance-metric span { color: #174d78; }
.fund-performance-diagnostic { max-width: 900px; margin-top: 12px; }
.dashboard-document-links {
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
}
.dashboard-document-links > .dashboard-section-heading { margin-bottom: 12px; }
.dashboard-document-tabs { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.dashboard-document-links p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.investor-transactions-panel { width: 100%; }
.investor-transactions-panel .panel-heading { margin-bottom: 14px; }
.investor-transactions-table { min-width: 760px; }
.investor-transactions-table th:nth-child(n+4),
.investor-transactions-table td.numeric-cell { text-align: right; }
.investor-transactions-table th,
.investor-transactions-table td { white-space: nowrap; }
.transaction-redemption-value { color: var(--red); font-weight: 700; }
.investor-transactions-diagnostic { margin-top: 12px; margin-bottom: 0; }
.metric-positive { color: var(--green); }
.metric-negative { color: var(--red); }
.metric-neutral { color: var(--ink); }
.holdings-unavailable { padding: 22px; border: 1px solid #e1bf75; border-radius: 12px; background: #fff9e8; color: #6d5412; }
.holdings-admin-diagnostic { margin-bottom: 14px; padding: 12px 14px; border: 1px solid #e1bf75; border-radius: 10px; background: #fff9e8; color: #6d5412; font-size: 13px; }
.holdings-unavailable + .holdings-admin-diagnostic { margin-top: 12px; margin-bottom: 0; }
@media (max-width: 760px) {
    .holdings-heading { display: grid; }
    .investor-frame-heading { display: grid; }
    .investor-frame-heading,
    .fund-performance-heading { min-height: 0; }
    .holdings-as-of { min-width: 0; text-align: left; }
    .holdings-dashboard-grid { grid-template-columns: 1fr; }
    .holdings-metrics { grid-template-columns: 1fr; }
    .holding-metric { align-items: flex-start; }
    .dashboard-document-tabs { grid-template-columns: 1fr; }
}

/* Admin document status batches and per-document download controls */
.bulk-status-controls {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid #b9d7eb;
    border-radius: 11px;
    background: #f2f9fe;
}
.bulk-status-controls label,
.compact-permission-form label { display: grid; gap: 5px; font-weight: 700; }
.bulk-status-controls small { color: var(--muted); }
.selection-column { width: 82px; }
.compact-permission-form {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) auto;
    align-items: end;
    gap: 8px;
    margin-bottom: 9px;
}
.compact-permission-form select { min-width: 0; width: 100%; }
@media (max-width: 760px) {
    .compact-permission-form { grid-template-columns: 1fr; }
}

/* Active navigation and administration usability */
.nav-links a { padding: 10px 13px; border-radius: 9px; }
.nav-links a.active { background: var(--blue-dark); color: white; box-shadow: 0 6px 16px rgba(18, 79, 124, .22); text-decoration: none; }
.subnav a.active { background: var(--blue-dark); color: white; box-shadow: 0 5px 13px rgba(18, 79, 124, .18); }
.table-primary-link { display: inline-block; color: var(--blue-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rename-form { display: grid; grid-template-columns: minmax(210px, 1fr) auto; gap: 8px; align-items: center; min-width: 360px; }
.rename-form label { margin: 0; }
.rename-form input { padding: 8px 10px; font-weight: 700; }
.investor-detail-grid { display: grid; grid-template-columns: minmax(280px, 360px) minmax(600px, 1fr); gap: 24px; align-items: start; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1050px) { .investor-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .rename-form { grid-template-columns: 1fr; min-width: 240px; } .nav-links a { padding: 8px 10px; } }

/* Build 0.3: separated admin and investor experiences */
.preview-banner { display: flex; align-items: center; justify-content: center; gap: 10px 18px; flex-wrap: wrap; padding: 10px 4vw; background: #fff4cf; border-bottom: 1px solid #e4c96e; color: #664d0e; font-size: 13px; }
.preview-banner span { color: #796321; }
.preview-banner a { font-weight: 800; }
.return-admin { border: 1px solid #9bbbd2; }
.workspace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.workspace-card { position: relative; min-height: 260px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, #fff, #f8fcff); box-shadow: var(--shadow); overflow: hidden; }
.workspace-card h2 { font-size: 25px; padding-right: 44px; }
.workspace-card p { min-height: 82px; }
.workspace-number { position: absolute; right: 20px; top: 17px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-size: 22px; font-weight: 800; }
.stat-card small { display: block; color: var(--muted); margin-top: 7px; }
.status-word { font-size: 22px !important; }
.compact-filter { grid-template-columns: minmax(280px, 2fr) minmax(170px, 1fr) auto; }
.equal-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.investors-layout { grid-template-columns: minmax(300px, 390px) minmax(700px, 1fr); }
.profile-form label { display: grid; gap: 7px; color: #263b51; font-weight: 700; font-size: 13px; }
.invite-form { margin-top: 0; }
.section-heading { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 24px; }
.profile-summary-card { padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.profile-summary-card span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.profile-summary-card strong { display: block; overflow-wrap: anywhere; }
.mfa-change-panel { max-width: 850px; }
.cancel-form { margin-top: 14px; }
.instruction-box { padding: 14px 16px; border: 1px solid #a9cfe8; border-radius: 12px; background: var(--blue-pale); }
.activation-grid { grid-template-columns: 1fr 280px; align-items: start; }
.small-text { font-size: 12px; }
.mock-form { display: grid; gap: 15px; margin-top: 22px; }
.mock-form label { display: grid; gap: 7px; color: #263b51; font-weight: 700; font-size: 13px; }
.preview-disabled { opacity: .8; }
.document-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--blue-pale); }
.button[disabled] { opacity: .55; cursor: not-allowed; }
@media (max-width: 1150px) {
    .workspace-grid { grid-template-columns: 1fr; }
    .workspace-card { min-height: 0; }
    .workspace-card p { min-height: 0; }
    .profile-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .equal-columns, .investors-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .preview-banner { justify-content: flex-start; }
    .profile-summary-grid { grid-template-columns: 1fr; }
    .activation-grid { grid-template-columns: 1fr; }
    .compact-filter { grid-template-columns: 1fr; }
}

/* Build 0.4: editable invitation drafts and visible email configuration */
.email-envelope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.email-envelope > div { padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--blue-pale); }
.email-envelope span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.email-envelope strong { overflow-wrap: anywhere; }
.invitation-draft-form textarea { min-height: 520px; font-family: "Segoe UI", Arial, sans-serif; line-height: 1.55; resize: vertical; }
.invitation-actions { margin-top: 4px; }
.manual-invitation-panel { display: grid; gap: 20px; }
.manual-invitation-panel textarea { min-height: 430px; font-family: "Segoe UI", Arial, sans-serif; line-height: 1.55; resize: vertical; }
.copy-field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.copy-status { color: var(--green); font-size: 13px; font-weight: 700; }
.config-block { margin: 0 0 18px; padding: 18px; overflow-x: auto; border-radius: 12px; border: 1px solid #c6d9e8; background: #eef4f8; color: #18354d; font: 13px/1.6 Consolas, monospace; }
.email-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .email-summary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .email-envelope, .email-summary-grid, .copy-field-row { grid-template-columns: 1fr; } .invitation-draft-form textarea, .manual-invitation-panel textarea { min-height: 420px; } }


/* Build 0.5: consistent Back control and investor document menus */
.back-row { display: flex; align-items: center; margin: 0 0 12px; }
.back-button { min-width: 92px; background: white; border-color: #a9c8df; }
.button-large { width: 100%; min-height: 48px; font-size: 15px; }
.portal-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 26px; }
.portal-menu-card { position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 310px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #ffffff, #f8fcff); box-shadow: var(--shadow); overflow: hidden; }
.portal-menu-card > div:nth-child(2) { flex: 1; }
.portal-menu-card h2 { font-size: 28px; margin-bottom: 10px; }
.portal-menu-card p { font-size: 14px; }
.portal-menu-icon { position: absolute; top: 22px; right: 22px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--blue-soft); color: var(--blue-dark); font-size: 25px; font-weight: 900; }
.portal-menu-card .eyebrow, .portal-menu-card h2 { padding-right: 62px; }
.fund-card { border-top: 5px solid #2b8ed3; }
.investor-card { border-top: 5px solid #6a63b8; }
.nested-menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.nested-menu-links a { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 12px; border: 1px solid #b7cfe1; border-radius: 9px; background: white; font-weight: 750; text-align: center; }
.nested-menu-links a:hover { background: var(--blue-pale); text-decoration: none; }
/* Invisible row keeps both main portal buttons aligned while the right-hand shortcuts define the lower edge. */
.nested-menu-spacer { min-height: 42px; visibility: hidden; }
.grouped-filter { grid-template-columns: minmax(260px, 2fr) minmax(210px, 1fr) auto auto; }
@media (max-width: 900px) {
    .portal-menu-grid { grid-template-columns: 1fr; }
    .portal-menu-card { min-height: 0; }
}
@media (max-width: 760px) {
    .grouped-filter, .nested-menu-links { grid-template-columns: 1fr; }
    .portal-menu-card { padding: 23px; }
    .portal-menu-card h2 { font-size: 24px; }
}

/* Build 0.7: monthly investor report email import */
.import-table { width: 100%; }
.import-table th:nth-child(1), .import-table td:nth-child(1) { width: 58px; text-align: center; }
.import-table td { vertical-align: top; }
.import-table input, .import-table select { margin-bottom: 8px; }
.import-table input[type="checkbox"] { margin: 4px 0; }
.match-detail { max-width: 320px; }
.import-row-error { background: #fff8f8; }
.import-row-ignored { opacity: .82; }
.import-actions { margin-top: 20px; }
.import-actions small { max-width: 720px; }
.import-actions-top { margin-top: 0; margin-bottom: 16px; }

/* Build 0.7.2: interactive email-folder map */
.mail-folder-browser {
    border: 1px solid var(--border, #d6dde8);
    border-radius: 12px;
    max-height: 58vh;
    overflow: auto;
    background: #fff;
    margin: 1rem 0;
}
.mail-folder-row {
    --folder-depth: 0;
    width: 100%;
    display: grid;
    grid-template-columns: calc(var(--folder-depth) * 1.35rem) 1.5rem minmax(150px, 0.8fr) minmax(240px, 1.5fr) auto;
    gap: 0.55rem;
    align-items: center;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #e8edf4;
    border-radius: 0;
    background: transparent;
    color: inherit;
    padding: 0.72rem 0.9rem;
    cursor: pointer;
    font: inherit;
}
.mail-folder-row:last-child { border-bottom: 0; }
.mail-folder-row:hover { background: #f3f8ff; }
.mail-folder-row.selected {
    background: #dceeff;
    outline: 2px solid #2074b9;
    outline-offset: -2px;
}
.mail-folder-icon { color: #2074b9; font-size: 1.05rem; }
.mail-folder-name { font-weight: 700; }
.mail-folder-path { color: #526273; overflow-wrap: anywhere; }
.mail-folder-counts { color: #66788b; font-size: 0.86rem; white-space: nowrap; }
.folder-selection-summary {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: #f5f8fc;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
}
.selected-source-box { margin-top: 1rem; }
@media (max-width: 800px) {
    .mail-folder-row {
        grid-template-columns: calc(var(--folder-depth) * 0.75rem) 1.3rem minmax(130px, 1fr);
    }
    .mail-folder-path, .mail-folder-counts { grid-column: 3; white-space: normal; }
}


/* Build 0.7.3: clearer local-test import mode */
.local-import-mode-note { border-left: 4px solid #d59a2f; }

.scan-date-range {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(180px, 260px) 1fr;
    gap: 16px;
    align-items: end;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft-blue);
}
.scan-date-range label { display: block; font-weight: 800; margin-bottom: 7px; }
.scan-date-range input { width: 100%; }
.scan-date-range p { margin: 0 0 7px; color: var(--muted); }
@media (max-width: 820px) {
    .scan-date-range { grid-template-columns: 1fr; align-items: stretch; }
}

.scan-monitor-panel progress {
    width: 100%;
    height: 18px;
}
.scan-progress-wrap {
    display: grid;
    gap: 8px;
    margin: 12px 0 16px;
}
.button-warning {
    background: #fff4d6;
    border-color: #d89b16;
    color: #6b4700;
}

/* Build 0.7.8: explicit authenticator selection and activation diagnostics */
.authenticator-choice-fieldset {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    margin: 4px 0 18px;
    background: var(--soft-blue);
}
.authenticator-choice-fieldset legend {
    padding: 0 8px;
    font-weight: 800;
    color: var(--ink);
}
.authenticator-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
}
.authenticator-choice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    border: 1px solid #b7cfe1;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}
.authenticator-choice:hover { background: #f4f9ff; }
.authenticator-choice:has(input:checked) {
    border-color: #2074b9;
    box-shadow: 0 0 0 2px rgba(32, 116, 185, .14);
    background: #eef7ff;
}
.authenticator-choice input { margin-top: 3px; }
.authenticator-choice span { display: grid; gap: 4px; }
.authenticator-choice small { color: var(--muted); font-weight: 500; line-height: 1.35; }
.compact-choice-fieldset { padding: 12px; margin-bottom: 8px; }
.activation-code-panel { display: flex; flex-direction: column; justify-content: center; }
button:disabled, .button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 760px) {
    .authenticator-choice-grid { grid-template-columns: 1fr; }
}

/* Build 0.7.9: confirmed local invitation testing */
.local-invitation-confirmation { margin-top: 4px; padding: 14px 16px; border: 1px solid #e7c96d; border-radius: 10px; background: #fffaf0; align-items: flex-start !important; }
.local-invitation-confirmation input { margin-top: 3px; }

/* Build 0.7.11: per-investor bulk drag-and-drop and readable storage names */
.storage-location-badge {
    max-width: 420px;
    padding: 10px 13px;
    border: 1px solid #b9d2e5;
    border-radius: 10px;
    background: var(--blue-pale);
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}
.bulk-upload-settings {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) minmax(190px, .8fr) minmax(190px, .8fr) minmax(120px, .45fr);
    gap: 14px;
}
.bulk-upload-settings label,
.bulk-file-row label {
    display: grid;
    gap: 7px;
    color: #263b51;
    font-weight: 700;
    font-size: 13px;
}
.bulk-drop-zone {
    position: relative;
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 190px;
    padding: 28px;
    border: 2px dashed #81b5d7;
    border-radius: 16px;
    background: linear-gradient(180deg, #f9fdff, #eef8ff);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.bulk-drop-zone:hover,
.bulk-drop-zone:focus,
.bulk-drop-zone.drag-active {
    outline: none;
    border-color: #2074b9;
    background: #e7f5ff;
    transform: translateY(-1px);
}
.bulk-drop-zone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.bulk-drop-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #d9eeff;
    color: #1767a4;
    font-size: 29px;
    font-weight: 900;
}
.bulk-drop-zone strong { font-size: 18px; color: var(--ink); }
.bulk-drop-zone span { color: var(--muted); font-size: 13px; }
.bulk-file-list {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fbfdff;
}
.bulk-file-row {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(280px, 1.4fr) auto;
    gap: 14px;
    align-items: end;
    padding: 13px;
    border: 1px solid #d8e4ed;
    border-radius: 11px;
    background: white;
}
.bulk-file-identity { display: grid; gap: 5px; min-width: 0; }
.bulk-file-identity strong { overflow-wrap: anywhere; }
.bulk-file-identity small { color: var(--muted); }
.bulk-upload-actions { align-items: center; }
.bulk-upload-actions small { max-width: 650px; color: var(--muted); }
@media (max-width: 980px) {
    .bulk-upload-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bulk-file-row { grid-template-columns: 1fr; align-items: stretch; }
}
@media (max-width: 620px) {
    .bulk-upload-settings { grid-template-columns: 1fr; }
    .bulk-drop-zone { min-height: 155px; padding: 20px; }
}

/* Build 0.7.12: official DPF branding, local Ollama and file audit */
.brand-logo { width: 210px; height: 58px; object-fit: contain; object-position: left center; display: block; }
.brand-portal-name { padding-left: 12px; border-left: 1px solid var(--line); }
.audit-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.audit-summary-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.audit-summary-card span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.audit-summary-card strong { font-size: 24px; }
.severity-high { border-left: 5px solid var(--red); }
.severity-medium { border-left: 5px solid #d99a22; }
.severity-review, .severity-low { border-left: 5px solid var(--blue); }
.audit-reason { max-width: 520px; white-space: normal; }
.ai-panel { border: 1px solid #b9a9eb; background: #f7f4ff; }
.ai-status { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ollama-models { max-height: 220px; overflow: auto; }
.ollama-health {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
}
.ollama-health > span:last-child { color: var(--muted); }
.logo-preview { max-width: 420px; width: 100%; height: auto; }
@media (max-width: 900px) {
    .brand-logo { width: 155px; height: 46px; }
    .brand-portal-name { display: none; }
    .audit-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .audit-summary-grid { grid-template-columns: 1fr; } }


/* Build 0.7.13: expanded portal branding and review-queue detail */
.topbar { min-height: 104px; }
.brand { min-width: 0; flex: 0 1 auto; }
.brand-logo { width: 315px; height: 88px; object-fit: contain; object-position: left center; flex: 0 0 auto; }
.brand-portal-name { min-width: 0; }
.brand-portal-name strong { font-size: 20px; white-space: nowrap; }
.review-queue-table { width: 100%; }
.review-queue-table td { vertical-align: top; }
@media (max-width: 1250px) {
    .topbar { align-items: flex-start; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .brand-logo { width: 255px; height: 76px; }
    .brand-portal-name { display: block; }
    .brand-portal-name strong { font-size: 17px; }
    .nav-links { width: 100%; justify-content: flex-end; padding-bottom: 6px; }
}
@media (max-width: 760px) {
    .brand { gap: 8px; }
    .brand-logo { width: 185px; height: 62px; }
    .brand-portal-name { display: block; padding-left: 8px; }
    .brand-portal-name strong { font-size: 14px; white-space: normal; line-height: 1.15; }
    .brand-portal-name small { display: none; }
}

/* Build 0.7.15: File Audit actions */
.audit-page-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.audit-page-actions form {
    margin: 0;
}
@media (max-width: 760px) {
    .audit-page-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Build 0.7.18: persistent investor identity and three fixed document sections */
.investor-context-bar {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 12px;
    padding: 14px 18px;
    border: 1px solid #b9d3e6;
    border-radius: 14px;
    background: linear-gradient(90deg, #eef8ff, #ffffff);
    box-shadow: 0 8px 24px rgba(26, 78, 117, .06);
}
.investor-context-bar > span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.investor-context-bar > strong { font-size: 19px; }
.investor-context-bar small { color: var(--muted); font-size: 13px; }
.investor-section-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 26px;
}
.investor-section-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 12px 16px;
    border: 1px solid #a9c8df;
    border-radius: 14px;
    background: white;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 8px 22px rgba(26, 78, 117, .06);
}
.investor-section-tab:hover { background: var(--blue-pale); text-decoration: none; }
.investor-section-tab.active { border-color: var(--blue); background: var(--blue); color: white; box-shadow: 0 10px 24px rgba(31, 120, 193, .22); }
.download-disabled { color: var(--muted); font-size: 12px; font-weight: 700; }
@media (max-width: 760px) {
    .investor-context-bar { align-items: flex-start; flex-direction: column; gap: 5px; }
    .investor-section-tabs { grid-template-columns: 1fr; }
    .investor-section-tab { min-height: 50px; }
}


/* Build 0.7.24: on-demand full-width split-screen previews and consistent light-blue controls */
.document-preview-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}
.document-preview-workspace.preview-active { grid-template-columns: minmax(0, 1.35fr) minmax(360px, .85fr); }
.document-preview-pane[hidden] { display: none; }
.document-list-panel { min-width: 0; margin-bottom: 0; }
.document-preview-pane {
    position: sticky;
    top: 100px;
    min-width: 0;
    margin-bottom: 0;
    padding: 18px;
}
.preview-pane-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.preview-pane-heading h2 { margin-bottom: 0; overflow-wrap: anywhere; }
.document-preview-frame {
    display: block;
    width: 100%;
    height: 680px;
    min-height: 0;
    max-height: 680px;
    border: 1px solid #b9d7eb;
    border-radius: 12px;
    background: #f6fbff;
}
.preview-help { margin: 10px 2px 0; font-size: 12px; }
.preview-selected { background: #eaf7ff !important; box-shadow: inset 4px 0 0 #62aee0; }
.admin-review-preview-workspace .document-list-panel { overflow: hidden; }
.document-preview-workspace .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.button,
.button-primary,
.button-success,
.button-danger,
.button-warning,
.back-button,
button.link-button,
.nav-links a.active,
.subnav a.active,
.investor-section-tab,
.investor-section-tab.active,
.nested-menu-links a {
    background: #dff1ff !important;
    border-color: #91c5e7 !important;
    color: #123f61 !important;
    box-shadow: none;
}
.button:hover,
.button-primary:hover,
.button-success:hover,
.button-danger:hover,
.button-warning:hover,
button.link-button:hover,
.nav-links a.active:hover,
.subnav a.active:hover,
.investor-section-tab:hover,
.investor-section-tab.active:hover,
.nested-menu-links a:hover {
    background: #c9eaff !important;
    color: #0e3857 !important;
    text-decoration: none;
}
button.link-button { padding: 9px 12px; border: 1px solid #91c5e7; border-radius: 9px; font-weight: 700; }
select {
    background-color: #e6f5ff !important;
    border-color: #9bc9e7 !important;
    color: #123f61;
}
select option { background: #e6f5ff; color: #123f61; }
.mail-folder-row { background: #eaf7ff; }
.mail-folder-row:hover, .mail-folder-row.selected { background: #d5efff; }

@media (max-width: 1120px) {
    .document-preview-workspace { grid-template-columns: 1fr; }
    .document-preview-pane { position: static; }
    .document-preview-frame { height: 560px; min-height: 0; max-height: 560px; }
}
@media (max-width: 760px) {
    .document-preview-workspace .document-grid { grid-template-columns: 1fr; }
    .document-preview-frame { height: 480px; min-height: 0; max-height: 480px; }
    .preview-pane-heading { flex-direction: column; }
}

/* Full-width Admin document workspaces keep the preview on the right and remove sideways table scrolling. */
.page-shell.admin-wide-main {
    width: calc(100vw - 32px);
    max-width: none;
    margin-left: 16px;
    margin-right: 16px;
}
.admin-wide-preview-workspace.preview-active {
    grid-template-columns: minmax(0, 3fr) minmax(380px, 2fr);
}
.admin-wide-preview-workspace > .document-preview-pane {
    grid-column: 2;
}
.admin-wide-preview-workspace:not(.preview-active) > .document-list-panel,
.admin-wide-preview-workspace .form-panel {
    max-width: none;
}
.admin-compact-document-workspace .table-wrap {
    max-width: 100%;
    overflow-x: hidden;
}
.admin-compact-document-workspace table,
.admin-compact-document-workspace .review-queue-table,
.admin-compact-document-workspace .import-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}
.admin-compact-document-workspace th,
.admin-compact-document-workspace td {
    min-width: 0;
    padding: 11px 9px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}
.admin-compact-document-workspace td small,
.admin-compact-document-workspace td strong,
.admin-compact-document-workspace td code {
    max-width: 100%;
    overflow-wrap: anywhere;
}
.admin-compact-document-workspace input,
.admin-compact-document-workspace select,
.admin-compact-document-workspace textarea {
    min-width: 0;
    max-width: 100%;
}
.admin-compact-document-workspace .button-row {
    align-items: flex-start;
}
.admin-review-preview-workspace .rename-form {
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
}
.review-queue-table .selection-column { width: 7%; }
.review-queue-table .document-column { width: 27%; }
.review-queue-table .classification-column { width: 23%; }
.review-queue-table .review-details-column { width: 23%; }
.review-queue-table .actions-column { width: 20%; }
.general-documents-table .document-column { width: 31%; }
.general-documents-table .details-column { width: 24%; }
.general-documents-table .publication-column { width: 22%; }
.general-documents-table .actions-column { width: 23%; }
.admin-monthly-import-preview-workspace .import-table th:nth-child(1),
.admin-monthly-import-preview-workspace .import-table td:nth-child(1) { width: 5%; min-width: 0; }
.admin-monthly-import-preview-workspace .import-table th:nth-child(2) { width: 23%; min-width: 0; }
.admin-monthly-import-preview-workspace .import-table th:nth-child(3) { width: 19%; min-width: 0; }
.admin-monthly-import-preview-workspace .import-table th:nth-child(4) { width: 21%; min-width: 0; }
.admin-monthly-import-preview-workspace .import-table th:nth-child(5) { width: 15%; min-width: 0; }
.admin-monthly-import-preview-workspace .import-table th:nth-child(6) { width: 17%; min-width: 0; }

@media (max-width: 980px) {
    .admin-wide-preview-workspace.preview-active { grid-template-columns: minmax(0, 1fr); }
    .admin-wide-preview-workspace > .document-preview-pane { grid-column: 1; position: static; }
    .page-shell.admin-wide-main { width: min(94vw, 1460px); margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px) {
    .admin-compact-document-workspace th,
    .admin-compact-document-workspace td { padding: 9px 5px; font-size: 11px; }
    .admin-compact-document-workspace .button { white-space: normal; padding: 7px 8px; }
    .admin-review-preview-workspace .rename-form { grid-template-columns: 1fr; min-width: 0; }
}

/* Build 0.7.46: larger dashboard identity/logo, contained address assistant, closeable previews */
.dashboard-investor-identity { font-size: 20px; }
.investor-context-bar > span { font-size: 14px; }
.investor-context-bar > strong { font-size: 21px; }
.investor-context-bar small { font-size: 15px; }

.brand-logo { width: 378px; height: 106px; }
.topbar { min-height: 122px; }

.preview-close-button {
    flex: 0 0 auto;
    max-width: 140px;
    white-space: normal;
    line-height: 1.2;
}

.investors-layout > .panel:first-child,
.contract-note-assistant,
.contract-note-assistant > * {
    min-width: 0;
    max-width: 100%;
}
.contract-note-assistant {
    width: 100%;
    overflow: hidden;
}
.contract-note-assistant p,
.contract-note-drop-zone strong,
.contract-note-drop-zone span {
    overflow-wrap: anywhere;
}
.contract-note-drop-zone { width: 100%; padding: 24px 16px; }
.contract-note-hint { width: 100%; }
.contract-note-hint textarea {
    width: 100%;
    min-height: 118px;
    resize: vertical;
    background: #fff;
    font-weight: 400;
    line-height: 1.45;
}
.contract-note-hint textarea::placeholder {
    color: #64758a;
    font-weight: 400;
    opacity: 1;
}
.contract-note-assistant > .button {
    width: 100%;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
}

@media (max-width: 1250px) {
    .brand-logo { width: 306px; height: 91px; }
}
@media (max-width: 760px) {
    .brand-logo { width: 222px; height: 74px; }
    .topbar { min-height: 90px; }
}

/* Build 0.7.47: complete register controls and exited-investor workflow */
.investor-register-lists {
    display: grid;
    gap: 24px;
    min-width: 0;
}
.investor-register-lists > .panel { min-width: 0; }
.exited-investors-panel { border-color: #c4cbd3; background: #fbfcfd; }
.investor-exited-indicator { vertical-align: middle; }
.exited-investor-check {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}
.exited-investor-check small {
    grid-column: 2;
    color: var(--muted);
    font-weight: 400;
    line-height: 1.45;
}
.complete-register-filter {
    grid-template-columns: minmax(240px, 2fr) minmax(150px, .8fr) minmax(220px, 1.2fr) auto;
}
@media (max-width: 900px) {
    .complete-register-filter { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .complete-register-filter { grid-template-columns: 1fr; }
}

/* Build 0.7.84: Ocean Trust theme fingerprint PK-OT-0784 */
.passkey-signin { margin: 22px 0 18px; padding: 18px; border: 1px solid #9bcce6; border-radius: 14px; background: #eff9ff; }
.passkey-signin h2 { margin-bottom: 4px; color: #124f7c; }
.passkey-signin p { margin: 0 0 14px; }
.passkey-status { min-height: 20px; margin-top: 10px; color: var(--blue-dark); font-size: 13px; line-height: 1.45; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.passkey-profile-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.passkey-profile-panel p, .passkey-safety-note p { margin-bottom: 0; }
.passkey-safety-note { border-color: #9bcce6; background: #eff9ff; }
.passkey-management-grid { grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr); }
.passkey-list { display: grid; gap: 12px; }
.passkey-item { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fafdff; }
.passkey-item > div { display: flex; justify-content: space-between; gap: 12px; }
.passkey-item small { display: block; margin-top: 5px; color: var(--muted); }
.passkey-item details { margin-top: 10px; }
.passkey-item summary { color: var(--red); font-size: 12px; font-weight: 700; cursor: pointer; }
.compact-remove-form { max-width: 360px; margin-top: 12px; }
@media (max-width: 760px) {
    .passkey-profile-panel { align-items: stretch; flex-direction: column; }
    .passkey-management-grid { grid-template-columns: 1fr; }
}
.brand-portal-name strong.login-brand-title { font-size: 23px; }
@media (max-width: 1250px) {
    .brand-portal-name strong.login-brand-title { font-size: 20px; }
}
@media (max-width: 760px) {
    .brand-portal-name strong.login-brand-title { font-size: 17px; }
}

.portal-data-launch-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    background: #eef8ff;
    border-color: #b9d9ed;
}

.portal-data-launch-panel h2,
.portal-data-launch-panel p { margin: 0; }
.portal-data-launch-panel p { margin-top: 5px; }

.portal-data-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.portal-data-flow .panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.portal-data-flow h2,
.portal-data-flow p { margin: 0; }
.portal-data-flow .button { margin-top: auto; }

.portal-data-diff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.portal-data-diff-grid > div {
    padding: 14px;
    border: 1px solid #c9dfed;
    border-radius: 10px;
    background: #f7fbfe;
}

.portal-data-diff-grid h3,
.portal-data-diff-grid p { margin: 0; }
.portal-data-diff-grid p { margin-top: 5px; overflow-wrap: anywhere; }

.portal-data-step-up-form,
.portal-data-restore-form {
    max-width: 720px;
}

@media (max-width: 900px) {
    .portal-data-flow { grid-template-columns: 1fr; }
    .portal-data-diff-grid { grid-template-columns: 1fr; }
    .portal-data-launch-panel { align-items: stretch; flex-direction: column; }
}
.theme-ocean-trust {
    --ink: #0b2742;
    --muted: #587086;
    --line: #c8dbe7;
    --surface: #ffffff;
    --canvas: #f3f8fb;
    --blue: #008dce;
    --blue-dark: #006aa5;
    --blue-soft: #dff3fc;
    --blue-pale: #eff9fd;
    --shadow: 0 12px 30px rgba(7, 61, 93, .10);
    background:
        radial-gradient(circle at 92% 8%, rgba(0, 157, 208, .10), transparent 27%),
        linear-gradient(180deg, #f7fcfe 0, #ffffff 360px, #f3f8fb 100%);
}
.theme-ocean-trust .topbar {
    background: rgba(255, 255, 255, .985);
    border-top: 7px solid #0097d5;
    border-bottom-color: #b8d8e8;
    box-shadow: 0 8px 24px rgba(7, 61, 93, .10);
}
.theme-ocean-trust .brand-portal-name { border-left-color: #88c9e4; }
.theme-ocean-trust .brand strong,
.theme-ocean-trust h1,
.theme-ocean-trust h2,
.theme-ocean-trust h3,
.theme-ocean-trust .dashboard-section-heading { color: #0b2742; }
.theme-ocean-trust .eyebrow { color: #008dce; }
.theme-ocean-trust .brand-portal-name strong.portal-login-brand-title { color: #003b70; font-size: 25px; }
@media (max-width: 1250px) {
    .theme-ocean-trust .brand-portal-name strong.portal-login-brand-title { font-size: 22px; }
}
@media (max-width: 760px) {
    .theme-ocean-trust .brand-portal-name strong.portal-login-brand-title { font-size: 19px; }
}

.theme-ocean-trust .panel,
.theme-ocean-trust .stat-card,
.theme-ocean-trust .audit-summary-card,
.theme-ocean-trust .workspace-card,
.theme-ocean-trust .portal-menu-card,
.theme-ocean-trust .document-card,
.theme-ocean-trust .auth-card {
    border-color: #bdd6e3;
    box-shadow: 0 12px 30px rgba(7, 61, 93, .10);
}
.theme-ocean-trust .panel,
.theme-ocean-trust .stat-card,
.theme-ocean-trust .audit-summary-card,
.theme-ocean-trust .auth-card { background: rgba(255, 255, 255, .985); }
.theme-ocean-trust .workspace-card,
.theme-ocean-trust .portal-menu-card,
.theme-ocean-trust .document-card { background: linear-gradient(180deg, #ffffff, #f5fbfe); }

.theme-ocean-trust .button,
.theme-ocean-trust .back-button,
.theme-ocean-trust .nested-menu-links a,
.theme-ocean-trust .investor-section-tab {
    background: #ffffff !important;
    border-color: #008dce !important;
    color: #006aa5 !important;
    box-shadow: 0 5px 14px rgba(0, 141, 206, .10);
}
.theme-ocean-trust .button-primary,
.theme-ocean-trust .investor-section-tab.active {
    background: #dff3fc !important;
    border-color: #007fbe !important;
    color: #005b8f !important;
}
.theme-ocean-trust .button:hover,
.theme-ocean-trust .button-primary:hover,
.theme-ocean-trust .back-button:hover,
.theme-ocean-trust .nested-menu-links a:hover,
.theme-ocean-trust .investor-section-tab:hover,
.theme-ocean-trust .investor-section-tab.active:hover {
    background: #cceefe !important;
    border-color: #006fae !important;
    color: #06476c !important;
    box-shadow: 0 7px 18px rgba(0, 141, 206, .17);
}
.theme-ocean-trust .button-success {
    background: var(--green-soft) !important;
    border-color: #79bd9d !important;
    color: var(--green) !important;
}
.theme-ocean-trust .button-warning {
    background: var(--amber-soft) !important;
    border-color: #d9b950 !important;
    color: #6d5412 !important;
}
.theme-ocean-trust .button-danger {
    background: var(--red-soft) !important;
    border-color: #df9da4 !important;
    color: var(--red) !important;
}
.theme-ocean-trust .topbar .nav-links a.active {
    background: transparent !important;
    border-color: transparent !important;
    border-radius: 0;
    color: #007fbe !important;
    box-shadow: inset 0 -4px 0 #008dce;
}
.theme-ocean-trust .topbar .nav-links a:hover {
    color: #007fbe;
    background: #ebf8fd;
    text-decoration: none;
}
.theme-ocean-trust .subnav {
    border-color: #acd1e2;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 15px rgba(7, 61, 93, .06);
}
.theme-ocean-trust .subnav a.active {
    background: #dff3fc !important;
    border-color: #008dce !important;
    color: #005b8f !important;
}

.theme-ocean-trust input,
.theme-ocean-trust textarea {
    border-color: #9dc7db;
    background: #ffffff;
}
.theme-ocean-trust select,
.theme-ocean-trust select option {
    background-color: #eef9fd !important;
    border-color: #8abfd7 !important;
    color: #123d59;
}
.theme-ocean-trust input:focus,
.theme-ocean-trust select:focus,
.theme-ocean-trust textarea:focus {
    outline-color: rgba(0, 141, 206, .20);
    border-color: #008dce;
}

.theme-ocean-trust .data-source-summary div,
.theme-ocean-trust .folder-selection-summary,
.theme-ocean-trust .config-block,
.theme-ocean-trust .bulk-file-list {
    background: #edf8fc;
    border-color: #b4d5e4;
}
.theme-ocean-trust .file-control,
.theme-ocean-trust .bulk-drop-zone,
.theme-ocean-trust .document-preview-frame {
    background: linear-gradient(180deg, #ffffff, #eaf7fc);
    border-color: #42a9d4;
}
.theme-ocean-trust .bulk-drop-icon,
.theme-ocean-trust .portal-menu-icon,
.theme-ocean-trust .workspace-number {
    background: #d9f2fc;
    color: #007bb8;
}
.theme-ocean-trust .contract-note-assistant,
.theme-ocean-trust .ai-panel {
    border-color: #58afd2;
    background: #edf9fd;
}
.theme-ocean-trust .badge-investor { background: #dcf1f8; color: #155f7d; }
.theme-ocean-trust .fund-card { border-top-color: #008dce; }
.theme-ocean-trust .investor-card { border-top-color: #52b6d5; }

.theme-ocean-trust .investor-context-bar {
    border-color: #73bad5;
    background: linear-gradient(90deg, #dff3fc, #ffffff 68%);
    box-shadow: 0 8px 22px rgba(7, 61, 93, .08);
}
.theme-ocean-trust .holdings-panel {
    border-color: #5cafd1;
    background: linear-gradient(145deg, #ffffff, #edf8fc);
    box-shadow: 0 14px 34px rgba(7, 61, 93, .11);
}
.theme-ocean-trust .investor-metrics-frame {
    border-color: #aebfca;
    background: rgba(255, 255, 255, .96);
}
.theme-ocean-trust .holding-metric {
    border-color: #c6d2da;
    background: #f0f3f5;
}
.theme-ocean-trust .holding-metric-current-value {
    border-color: #6db8d6;
    background: #d8eff8;
}
.theme-ocean-trust .holding-metric-annualised-return {
    border-color: #6db8d6;
    background: #d8eff8;
}
.theme-ocean-trust .fund-performance-frame {
    border-color: #3ca2d0;
    background: linear-gradient(145deg, #e8f6fc, #dff2fb);
}
.theme-ocean-trust .fund-performance-metric {
    border-color: #75bad8;
    background: rgba(255, 255, 255, .62);
}
.theme-ocean-trust .fund-performance-metric span { color: #075f8d; }
.theme-ocean-trust .metric-positive { color: #13846c; }

.theme-ocean-trust th { color: #315f79; }
.theme-ocean-trust thead tr { background: #eaf6fb; }
.theme-ocean-trust th,
.theme-ocean-trust td { border-bottom-color: #d2e3eb; }
.theme-ocean-trust tbody tr:hover { background: #edf8fc; }
.theme-ocean-trust .preview-selected {
    background: #d9f1fb !important;
    box-shadow: inset 4px 0 0 #008dce;
}
.theme-ocean-trust .mail-folder-row { background: #edf8fc; }
.theme-ocean-trust .mail-folder-row:hover,
.theme-ocean-trust .mail-folder-row.selected { background: #d7eff9; }

@media (max-width: 760px) {
    .theme-ocean-trust .topbar { border-top-width: 5px; }
}

/* Build 0.7.57: fixed preview viewport and expandable investor data */
.theme-ocean-trust .dashboard-document-tabs .investor-section-tab {
    background: #087fba !important;
    border-color: #05689c !important;
    color: #ffffff !important;
    font-size: 17px;
    box-shadow: 0 8px 20px rgba(0, 91, 143, .20);
}
.theme-ocean-trust .dashboard-document-tabs .investor-section-tab:hover {
    background: #066a9e !important;
    border-color: #045783 !important;
    color: #ffffff !important;
}
.other-data-toggle { margin-top: 12px; min-width: 160px; }
.other-data-panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.other-data-panel[hidden] { display: none; }
.other-data-metrics .holding-metric { min-height: 61px; }

/* Build 0.7.57: compact investor-data guidance and disclaimer */
.investor-data-explanations {
    max-width: none;
    margin: -8px 0 24px;
    padding: 11px 14px;
    border: 1px solid #b9d8e7;
    border-radius: 14px;
    background: #f4fbfe;
}
.investor-data-explanations h2 {
    margin: 0 0 7px;
    color: var(--ink);
    font-size: 16px;
}
.investor-data-explanations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px 16px;
    margin: 0;
}
.investor-data-explanations-grid > div {
    padding-top: 4px;
    border-top: 1px solid #d8e8ef;
}
.investor-data-explanations-grid dt {
    margin: 0 0 2px;
    color: #27445a;
    font-size: 12px;
    font-weight: 800;
}
.investor-data-explanations-grid dd {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.28;
}
.investor-data-disclaimer {
    margin: 0 0 18px;
    padding: 11px 14px;
    border: 1px solid #b9d8e7;
    border-radius: 14px;
    background: #f4fbfe;
    color: #5d6b76;
    font-size: 11px;
    line-height: 1.45;
}
.investor-data-disclaimer h2 {
    margin: 0 0 7px;
    color: var(--ink);
    font-size: 16px;
}
.investor-data-disclaimer p { margin: 0 0 6px; }
.investor-data-disclaimer p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
    .investor-data-explanations-grid { grid-template-columns: 1fr; }
}

/* Build 0.7.60: Admin Review workspaces and Admin Input Work refinements */
.topbar-left { display: flex; align-items: center; gap: 22px; min-width: 0; }
.admin-workspace-shell {
    margin: 0 0 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.admin-workspace-title-row {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    position: relative;
    left: 50%;
    width: 100vw;
    min-height: 44px;
    margin-left: -50vw;
    border-bottom: 1px solid #c9dee9;
}
.admin-workspace-console-title {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    color: #0b2742;
    font-size: 20px;
    font-weight: 800;
}
.admin-workspace-indicator {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding: 9px 4vw;
    border-left: 0;
}
.admin-workspace-indicator strong {
    grid-column: 2;
    color: #0b2742;
    font-size: 16px;
    letter-spacing: .035em;
}
.admin-workspace-indicator a {
    grid-column: 3;
    justify-self: end;
}
.admin-workspace-indicator-input { background: #f8dce8; }
.admin-workspace-indicator-review { background: #dff3fc; }
.admin-workspace-indicator-investors { background: #dff3fc; }
.admin-workspace-indicator-fund { background: #f8dce8; }
.admin-change-workspace-button {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 13px;
    border: 1px solid #6e9eb7;
    border-radius: 9px;
    background: rgba(255,255,255,.88);
    color: #174f6e !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-decoration: none;
    box-shadow: 0 3px 9px rgba(19, 71, 100, .12);
}
.admin-change-workspace-button:hover { background: #fff; border-color: #1677a8; text-decoration: none; }

.admin-workspace-nav {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    background: #f6fbfd;
}
.admin-input-nav-left,
.admin-input-nav-right {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-content: start;
    min-width: 0;
}
.admin-input-nav-right {
    padding-left: 12px;
    border-left: 2px solid #bfd9e6;
}
.admin-workspace-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 5px 10px;
    border: 1px solid #8fc2db;
    border-radius: 10px;
    background: #dff3fc;
    color: #075f8d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}
.admin-workspace-nav a:hover,
.admin-workspace-nav a.active {
    border-color: #007fbe;
    background: #c7eafa;
    color: #06476c;
    box-shadow: 0 5px 13px rgba(18, 79, 124, .14);
}

.admin-workspace-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 980px;
    margin: 24px auto 0;
}
.admin-workspace-choice-form { margin: 0; }
.admin-workspace-choice-button {
    width: 100%;
    min-height: 210px;
    padding: 32px;
    border: 2px solid transparent;
    border-radius: 20px;
    color: #0b2742;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(7, 61, 93, .12);
    text-align: left;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.admin-workspace-choice-button:hover,
.admin-workspace-choice-button:focus-visible {
    transform: translateY(-2px);
    border-color: #008dce;
    box-shadow: 0 18px 40px rgba(7, 61, 93, .17);
}
.admin-workspace-choice-button strong {
    display: block;
    margin-bottom: 14px;
    font-size: 27px;
    letter-spacing: .025em;
}
.admin-workspace-choice-button span {
    display: block;
    color: #35576d;
    font-size: 14px;
    line-height: 1.5;
}
.admin-workspace-choice-review { background: #dff3fc; }
.admin-workspace-choice-input { background: #f8dce8; }
.admin-review-pending-panel {
    border-color: #a9d5e8;
    background: #f0f9fd;
}
.topbar-back-button {
    padding: 10px 0;
    color: #0b2742;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}
.topbar-home-button {
    padding: 10px 0;
    color: #0b2742;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}
.topbar-home-button:hover { color: #007fbe; text-decoration: underline; }
.portal-access-toggle-form { display: inline-flex; margin: 0; }
.portal-access-toggle {
    min-height: 84px;
    padding: 14px 22px;
    border: 1px solid;
    border-radius: 999px;
    font: 800 17px/1.1 "Segoe UI", Arial, sans-serif;
    letter-spacing: .035em;
    cursor: pointer;
    white-space: nowrap;
}
.portal-access-activated { border-color: #79bd9d; background: var(--green-soft); color: var(--green); }
.portal-access-restricted { border-color: #df9da4; background: var(--red-soft); color: var(--red); }
.portal-access-toggle:hover { filter: brightness(.97); box-shadow: 0 5px 14px rgba(16, 42, 67, .11); }
.portal-publication-reminder {
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid #d9b950;
    border-radius: 11px;
    background: var(--amber-soft);
    color: #6d5412;
    line-height: 1.5;
}
.admin-review-workspace-nav,
.admin-review-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 11px;
    background: #f6fbfd;
}
.admin-review-workspace-nav a,
.admin-review-mode-tabs a {
    min-width: 180px;
    padding: 10px 18px;
    border: 1px solid #8fc2db;
    border-radius: 10px;
    background: #fff;
    color: #075f8d;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}
.admin-review-workspace-nav a.active,
.admin-review-mode-tabs a.active,
.admin-review-workspace-nav a:hover,
.admin-review-mode-tabs a:hover { background: #c7eafa; border-color: #007fbe; text-decoration: none; }
.admin-review-mode-tabs { margin-bottom: 18px; border-radius: 12px; }
.admin-review-filter-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
    padding: 16px;
}
.admin-review-filter-form label { display: grid; gap: 6px; color: #263b51; font-size: 12px; font-weight: 800; }
.admin-review-document-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}
.admin-review-document-column { min-width: 0; padding: 14px; }
.admin-review-document-column .panel-heading { margin-bottom: 8px; }
.admin-review-document-column .panel-heading h2 { font-size: 17px; }
.admin-review-document-column th,
.admin-review-document-column td { padding: 8px 5px; font-size: 10px; white-space: normal; }
.admin-review-document-column th { font-size: 8px; }
.admin-review-document-table th:nth-child(1) { width: 27%; }
.admin-review-document-table th:nth-child(2) { width: 13%; }
.admin-review-document-table th:nth-child(3) { width: 18%; }
.admin-review-document-table th:nth-child(4) { width: 11%; }
.admin-review-document-table th:nth-child(5) { width: 31%; }
.admin-review-row-actions { display: grid; gap: 4px; }
.admin-review-row-actions form { margin: 0; }
.admin-review-row-actions .button { width: 100%; padding: 5px 6px; font-size: 9px; white-space: normal; text-align: center; }
.admin-review-investor-preview-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px 22px;
    align-items: start;
}
.admin-review-investor-preview-workspace.preview-active {
    grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
}
.admin-review-investor-controls { grid-column: 1; min-width: 0; }
.admin-review-investor-document-area { grid-column: 1; min-width: 0; }
.admin-review-investor-preview-pane {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 18px;
    width: 100%;
    padding: 14px;
}
.admin-review-investor-preview-pane iframe {
    display: block;
    width: 100%;
    height: calc(50vh - 102px);
    min-height: 310px;
    border: 1px solid #b9d7eb;
    border-radius: 12px;
    background: #f6fbff;
}

/* Experimental portal title: identical emphasis on login and authenticated pages. */
.theme-ocean-trust .brand-portal-name strong.portal-title-heading {
    color: #008dce;
    font-size: 26px;
    line-height: 1.1;
    white-space: nowrap;
}
@media (max-width: 1250px) {
    .theme-ocean-trust .brand-portal-name strong.portal-title-heading { font-size: 23px; }
}
@media (max-width: 760px) {
    .theme-ocean-trust .brand-portal-name strong.portal-title-heading {
        font-size: 20px;
        white-space: normal;
    }
}
@media (max-width: 1180px) {
    .admin-review-investor-preview-workspace.preview-active { grid-template-columns: 1fr; }
    .admin-review-investor-preview-pane {
        grid-column: 1;
        grid-row: 2;
        position: static;
    }
    .admin-review-investor-preview-pane iframe { height: 35vh; min-height: 260px; }
    .admin-review-investor-document-area { grid-row: 3; }
}
.admin-fund-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.admin-fund-metric-grid .metric-card {
    display: grid;
    gap: 8px;
    min-height: 150px;
    padding: 22px;
    border: 1px solid #c9dee9;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.admin-fund-metric-grid .metric-card span { color: var(--muted); font-size: 13px; font-weight: 700; }
.admin-fund-metric-grid .metric-card strong { color: #0b2742; font-size: 28px; }
.admin-fund-metric-grid .metric-card small { align-self: end; color: #738697; font-size: 10px; }
.admin-fund-metric-grid .live-primary-metric strong { font-size: 26px; }
.admin-fund-metric-grid .live-cover-card { align-content: stretch; gap: 0; padding-top: 14px; padding-bottom: 14px; }
.admin-fund-metric-grid .live-cover-card > div { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; padding: 8px 0; }
.admin-fund-metric-grid .live-cover-card > div + div { border-top: 1px solid #d6e4ec; }
.admin-fund-metric-grid .live-cover-card strong { font-size: 22px; }
.fund-live-table-block { display: grid; gap: 12px; margin-top: 28px; }
.fund-live-table-block h3 { margin: 0; color: #0b2742; }
.fund-live-table {
    border: 2px solid #9ebfd3;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
}
.fund-live-table th { width: 27%; background: #edf7fb; color: #17364e; text-align: left; }
.fund-live-table td { width: 23%; font-variant-numeric: tabular-nums; font-weight: 700; }
.fund-live-table th:nth-child(3) { border-left: 2px solid #9ebfd3; }
.fund-live-table .fund-live-row-11 td:nth-child(4) { color: #111; font-weight: 400; }
.fund-live-table .fund-live-row-8 td:nth-child(4),
.fund-live-table .fund-live-row-9 td:nth-child(4) { color: #111; font-style: italic; font-weight: 400; }
.fund-live-table .fund-live-row-23 th:nth-child(3) { font-size: calc(1em + 2px); font-weight: 800; }
.fund-live-table .fund-live-row-23 td:nth-child(4) { background: #edf7fb; }
.fund-live-table .fund-live-row-24 th:nth-child(3),
.fund-live-table .fund-live-row-25 th:nth-child(3),
.fund-live-table .fund-live-row-26 th:nth-child(3) { background: #fff; color: #111; font-weight: 400; }
.fund-live-table .fund-live-row-25 td,
.fund-live-table .fund-live-row-26 td,
.fund-live-table .fund-live-row-31 td,
.fund-live-table .fund-live-row-32 td { color: #111; font-weight: 400; }
.fund-live-bank-cash-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.fund-live-bank-cash-form input { min-width: 0; width: 100%; }
.fund-live-bank-cash-print { display: none; }
.fund-live-history-block { display: grid; gap: 14px; margin-top: 32px; }
.fund-live-history-block h3 { margin: 0; color: #0b2742; }
.fund-live-history-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.fund-live-history-filters label { display: grid; gap: 6px; color: #263b51; font-size: 12px; font-weight: 800; }
.fund-live-history-filters select { min-width: 150px; }
.fund-live-history-table {
    width: 100%;
    min-width: 1460px;
    table-layout: fixed;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.fund-live-history-table th,
.fund-live-history-table td { padding: 8px 5px; white-space: nowrap; }
.fund-live-history-table th { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; vertical-align: middle; }
.fund-live-history-table th:first-child,
.fund-live-history-table td:first-child { width: 82px; }
.fund-live-history-table th:nth-child(2),
.fund-live-history-table td:nth-child(2) { width: 110px; }
.fund-live-history-table th:nth-child(3),
.fund-live-history-table td:nth-child(3) { width: 88px; }
.fund-live-history-table th:nth-child(2),
.fund-live-history-table td:nth-child(2),
.fund-live-history-table th:nth-child(3),
.fund-live-history-table td:nth-child(3),
.fund-live-history-table th:nth-child(4),
.fund-live-history-table td:nth-child(4),
.fund-live-history-table th:nth-child(6),
.fund-live-history-table td:nth-child(6) { font-weight: 800; }
.fund-live-history-table .live-history-blue-heading { color: #007fbe; }
.fund-live-history-table .live-history-blue-heading span { display: block; }
.history-date-button { background: transparent; border: 0; padding: 0; font: inherit; font-weight: 700; color: #125e92; text-decoration: underline; cursor: pointer; }
.daily-cash-dialog { width: min(460px, calc(100vw - 32px)); max-height: 90vh; overflow-y: auto; border: 1px solid #9ebfd3; border-radius: 12px; padding: 24px; }
.daily-cash-dialog::backdrop { background: #10263880; }
.daily-cash-dialog form { display: grid; gap: 12px; }
.daily-cash-dialog label { display: grid; grid-template-columns: 1fr 170px; align-items: center; gap: 12px; }
.daily-cash-dialog input { width: 100%; min-width: 0; }
.daily-cash-dialog p { font-size: 13px; }
.daily-cash-dialog .daily-cash-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; }
.daily-cash-actions { display: flex; justify-content: end; gap: 10px; }
.daily-cash-dialog [data-cash-error] { color: #b42318; }
@media(max-width: 480px) { .daily-cash-dialog label { grid-template-columns: 1fr; gap: 4px; } }
.admin-fund-metric-grid .tone-positive strong,
.metric-positive { color: var(--green); }
.admin-fund-metric-grid .tone-negative strong,
.metric-negative { color: var(--red); }
#nav-prices-print th:nth-child(2),
#nav-prices-print td:nth-child(2),
#nav-prices-print th:nth-child(3),
#nav-prices-print td:nth-child(3) {
    font-size: calc(1em + 1px);
    font-weight: 800;
}
.capital-activity-summary { margin-bottom: 18px; }
.capital-activity-summary table {
    border: 2px solid #9ebfd3;
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
.capital-activity-summary th:first-child { text-align: left; }
.capital-activity-summary th:nth-child(1),
.capital-activity-summary td:nth-child(1),
.capital-activity-summary th:nth-child(2),
.capital-activity-summary td:nth-child(2) {
    font-size: calc(1em + 1px);
    font-weight: 800;
}
.capital-activity-summary-total > * {
    border-top: 2px solid #5689a9;
    border-bottom: 3px solid #356b8c !important;
    box-shadow: inset 0 -1px #356b8c;
    font-size: calc(1em + 1px);
}
.capital-activity-summary-total > :first-child { border-left: 2px solid #5689a9; }
.capital-activity-summary-total > :last-child { border-right: 2px solid #5689a9; }
.capital-activity-summary-total th,
.capital-activity-summary-total td { background: #edf7fb; font-weight: 800; }
.capital-activity-transactions-heading {
    margin: 32px 0 14px;
    color: #0b2742;
    font-size: calc(1em + 1px);
    font-weight: 800;
    letter-spacing: .06em;
}
.workbook-access-panel,
.capital-activity-management-panel { display: grid; gap: 18px; }
.workbook-access-panel .compact-form {
    max-width: 760px;
    padding-top: 18px;
    border-top: 1px solid #d6e4ec;
}
.capital-activity-management-panel .table-wrap { max-height: 520px; }
.capital-activity-management-panel td:last-child { white-space: nowrap; }
.admin-review-transaction-actions { width: 112px; text-align: center; }
.investor-dashboard-summary-panel { margin-bottom: 24px; }
.investor-dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 2px solid #9ebfd3;
    border-radius: 12px;
    overflow: hidden;
}
.investor-dashboard-summary-grid article {
    display: grid;
    gap: 7px;
    min-height: 90px;
    padding: 16px;
    border-right: 1px solid #d6e4ec;
    border-bottom: 1px solid #d6e4ec;
    background: #fff;
}
.investor-dashboard-summary-grid article:nth-child(3n) { border-right: 0; }
.investor-dashboard-summary-grid article:nth-last-child(-n + 3) { border-bottom: 0; }
.investor-dashboard-summary-grid span {
    color: #263b51;
    font-size: 12px;
    font-weight: 800;
}
.investor-dashboard-summary-grid strong { align-self: end; font-size: 16px; }
.admin-review-print-header { display: none !important; }
.admin-review-print-toolbar { display: none; }
body.admin-review-printing .admin-review-print-toolbar {
    position: sticky;
    z-index: 1000;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    padding: 12px 18px;
    border-bottom: 1px solid #9ebfd3;
    background: #eaf5fb;
    color: #17364e;
    box-shadow: 0 5px 14px rgba(17, 52, 77, .14);
}
body.admin-review-printing .admin-review-print-toolbar span { font-size: 13px; }
.workstream-completion-list {
    display: grid;
    gap: 8px;
    margin-top: 15px;
}
.workstream-completion-message {
    display: grid;
    gap: 3px;
    padding: 11px 13px;
    border: 1px solid #9fd2bc;
    border-radius: 10px;
    background: #e8f8f0;
    color: #175e43;
    font-size: 13px;
}
.workstream-completion-message span { line-height: 1.4; }

@media print {
    body.admin-review-printing {
        background: #fff;
        color: #000;
    }
    body.admin-review-printing .topbar,
    body.admin-review-printing .footer,
    body.admin-review-printing .admin-workspace-shell,
    body.admin-review-printing .page-header,
    body.admin-review-printing .admin-review-mode-tabs,
    body.admin-review-printing .field-error,
    body.admin-review-printing .fund-live-history-filters,
    body.admin-review-printing .admin-review-print-button,
    body.admin-review-printing .admin-review-transaction-actions,
    body.admin-review-printing .admin-review-print-toolbar,
    body.admin-review-printing .admin-review-print-section:not(.admin-review-print-selected) {
        display: none !important;
    }
    body.admin-review-printing .page-shell {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }
    body.admin-review-printing .admin-review-print-selected {
        display: block !important;
        border: 0;
        box-shadow: none;
    }
    body.admin-review-printing .admin-review-print-selected > .admin-review-print-header {
        display: grid !important;
        grid-template-columns: 110px minmax(0, 1fr) 110px;
        align-items: start;
        gap: 18px;
        margin: 0 0 28px;
        padding-bottom: 14px;
        border-bottom: 1px solid #9ebfd3;
    }
    body.admin-review-printing .admin-review-print-header img {
        width: 105px;
        max-height: 45px;
        height: auto;
        object-fit: contain;
        object-position: left top;
    }
    body.admin-review-printing .admin-review-print-header h1 {
        margin: 10px 0 0;
        color: #0b2742;
        font-size: 22px;
        text-align: center;
    }
    body.admin-review-printing .table-wrap { overflow: visible; }
    body.admin-review-printing .fund-live-bank-cash-form { display: none; }
    body.admin-review-printing .fund-live-bank-cash-print { display: inline; }
}

@media (max-width: 1120px) {
    .admin-workspace-nav { grid-template-columns: 1fr; }
    .admin-input-nav-right { padding: 12px 0 0; border-left: 0; border-top: 2px solid #bfd9e6; }
    .admin-review-document-columns { grid-template-columns: 1fr; }
    .admin-fund-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fund-live-table th,
    .fund-live-table td { width: auto; }
}
@media (max-width: 760px) {
    .admin-workspace-title-row { display: block; }
    .admin-workspace-indicator {
        grid-template-columns: 1fr auto;
        min-width: 0;
        border-top: 0;
        border-left: 0;
    }
    .admin-workspace-indicator > span { display: none; }
    .admin-workspace-indicator strong { grid-column: 1; }
    .admin-workspace-indicator a { grid-column: 2; }
    .topbar-left { align-items: flex-start; flex-direction: column; gap: 6px; }
    .admin-review-workspace-nav,
    .admin-review-mode-tabs { flex-direction: column; }
    .admin-review-workspace-nav a,
    .admin-review-mode-tabs a { min-width: 0; }
    .admin-review-filter-form,
    .admin-fund-metric-grid { grid-template-columns: 1fr; }
    .admin-input-nav-left,
    .admin-input-nav-right { grid-template-columns: 1fr; }
    .admin-workspace-choice-grid { grid-template-columns: 1fr; }
    .admin-workspace-choice-button { min-height: 150px; padding: 24px; }
    .admin-workspace-choice-button strong { font-size: 22px; }
    .investor-dashboard-summary-grid { grid-template-columns: 1fr; }
    .investor-dashboard-summary-grid article { border-right: 0; }
    .investor-dashboard-summary-grid article:nth-last-child(-n + 3) { border-bottom: 1px solid #d6e4ec; }
    .investor-dashboard-summary-grid article:last-child { border-bottom: 0; }
}

/* File Audit activity, Portal maintenance and investor document usability */
.audit-running-panel { display: flex; align-items: center; gap: 20px; border-color: #8ebfe0; background: #f5fbff; }
.audit-running-panel h2 { margin: 0 0 6px; }
.audit-running-panel p { margin: 0; }
.audit-working-indicator { width: 82px; display: grid; justify-items: center; gap: 10px; flex: 0 0 auto; }
.audit-working-indicator progress { width: 82px; height: 8px; }
.audit-spinner { width: 30px; height: 30px; border: 4px solid #cfe5f2; border-top-color: var(--blue); border-radius: 50%; animation: audit-spin .8s linear infinite; }
@keyframes audit-spin { to { transform: rotate(360deg); } }
.portal-maintenance-warning { margin: 18px 0; padding: 15px 17px; border: 2px solid #b4232b; border-radius: 12px; background: var(--red-soft); color: #8f1720; font-weight: 900; line-height: 1.5; }
.investor-invitation-accepted { display: inline-block; margin-top: 4px; padding: 3px 7px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-weight: 900; letter-spacing: .04em; }
.investor-document-filter-bar { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(170px, 1fr) minmax(170px, 1fr) auto; gap: 12px; align-items: end; margin: 0 0 18px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--blue-pale); }
.investor-document-filter-bar label { display: grid; gap: 6px; font-weight: 800; }
@media (max-width: 760px) { .investor-document-filter-bar { grid-template-columns: 1fr; } }

/* Build 0.7.87: compact headings, historical comparison and publication controls. */
.page-shell, .page-shell.admin-wide-main { margin-top: 0; }
.admin-workspace-shell { margin-bottom: 12px; }
.page-header { margin: 12px 0 16px; align-items: center; }
.page-header > div:has(> h1) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; align-items: center; flex: 1; }
.page-header > div > h1 { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
.page-header > div > p { grid-column: 2; grid-row: 1; margin: 0; }
.page-header > div > .eyebrow { grid-column: 2; grid-row: 2; margin: 3px 0 0; }
.fund-live-comparison { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.fund-live-comparison .fund-live-table-block { margin-top: 20px; gap: 8px; min-width: 0; }
.fund-live-comparison .fund-live-table { width: 100%; table-layout: fixed; }
.fund-live-comparison .fund-live-table th, .fund-live-comparison .fund-live-table td { padding: 7px 8px; overflow-wrap: anywhere; }
.fund-live-comparison h3 { min-height: 23px; }
.highest-date-box h3 small { font-size: 13px; font-weight: 400; margin-left: 10px; }
.fund-live-bank-cash-form { flex-wrap: nowrap; gap: 3px; }
.fund-live-bank-cash-form input { padding: 2px; flex: 1; width: 0; }
.fund-live-bank-cash-form .button { padding: 3px 6px; }
.live-notional-card { gap: 6px; }
.live-notional-card > div { display: grid; gap: 4px; }
.live-notional-card > div + div { border-top: 1px solid var(--line); padding-top: 6px; }
.admin-fund-metric-grid .live-notional-card strong { font-size: 22px; }
.history-controls-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.fund-live-history-filters { gap: 8px; }
.fund-live-history-filters select { min-width: 90px; }
.monthly-high-box { padding: 8px 10px; border: 1px solid #9ebfd3; border-radius: 10px; background: #f4fafd; }
.monthly-high-box h4 { margin: 0 0 5px; font-size: 14px; }
.monthly-high-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 5px 0; }
.monthly-high-row + .monthly-high-row { border-top: 1px solid var(--line); grid-template-columns: repeat(7, minmax(0, 1fr)); }
.monthly-high-row dt { font-size: 12px; color: var(--muted); }
.monthly-high-row dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.monthly-high-row .monthly-high-share_price dd { background: #fff176; color: #12344b; font-size: 15px; border-radius: 3px; padding: 2px 4px; display: inline-block; }
.monthly-high-blue dt, .monthly-high-blue dd { color: #007fbe; }
.positions-direction { margin-top: 24px; }
.positions-shorts { border-top: 2px solid #800000; padding-top: 16px; }
.positions-shorts h3, .positions-shorts h4, .positions-shorts p, .positions-shorts th, .positions-shorts td, .positions-shorts strong, .positions-shorts small { color: #800000; }
.positions-section-heading h3 { margin: 0 0 10px; }
.positions-category { margin: 16px 0; padding: 14px; border: 1px solid #c9dee9; border-radius: 10px; }
.positions-category-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.positions-category-heading h4 { margin: 0; }
.positions-notional-subtotal,
.positions-total-notional {
    background: #fff2a8;
    padding: 4px 8px;
    border-radius: 4px;
}
.positions-total-notional {
    flex-basis: 100%;
    width: fit-content;
    font-size: calc(1em + 1px);
}
.positions-notional-subtotal {
    display: block;
    width: fit-content;
}
.positions-panel table th:nth-child(4),
.positions-panel table td:nth-child(4),
.positions-panel table th:nth-child(5),
.positions-panel table td:nth-child(5) { font-weight: 700; }
.positions-panel table th:nth-child(9),
.positions-panel table td:nth-child(9) { font-size: calc(1em + 1px); }
.positions-totals { display: grid; gap: 4px; }
.positions-epic { display: block; color: var(--muted); }
.portal-data-page .portal-data-flow { gap: 10px; }
.portal-data-page .portal-data-flow .panel { padding: 8px 10px; gap: 4px; margin-bottom: 12px; box-shadow: none; border-radius: 8px; }
.portal-data-page .portal-data-flow h2 { font-size: 14px; }
.portal-data-page .portal-data-flow .status, .portal-data-page .portal-data-flow > article > strong { display: none; }
.portal-data-page .portal-data-flow .button { padding: 4px 8px; font-size: 12px; }
.portal-data-page .portal-data-flow details { font-size: 12px; }
.portal-data-page .portal-data-flow details p { margin-top: 6px; }
.portal-data-preparation-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.portal-data-preparation-grid > .panel { min-width: 0; }
.portal-data-preparation-grid .data-source-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-data-preparation-grid .portal-data-diff-grid { grid-template-columns: 1fr 1fr; }
.portal-data-page .portal-data-restore-panel { max-width: 658px; }
@media (max-width: 1100px) {
    .history-controls-summary { grid-template-columns: 1fr; }
    .page-header > div:has(> h1) { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .page-header > div > h1, .page-header > div > p, .page-header > div > .eyebrow { grid-column: 1; grid-row: auto; }
}
@media (max-width: 900px) {
    .fund-live-comparison, .portal-data-preparation-grid { grid-template-columns: 1fr; }
    .monthly-high-row, .monthly-high-row + .monthly-high-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .portal-data-page .portal-data-restore-panel { max-width: 100%; }
}
.admin-surface { overflow-x: clip; }
@media (max-width: 1250px) {
    .admin-surface .topbar-left { flex-wrap: wrap; gap: 10px 16px; }
    .admin-surface .topbar-left .brand { flex: 1 1 100%; max-width: 100%; }
    .admin-surface .brand-portal-name strong.portal-title-heading { white-space: normal; }
}

/* Experimental 0.7.87: Live Data Analysis presentation refinements. */
.fund-live-table .fund-live-row-17 td:nth-child(2),
.fund-live-table .fund-live-row-19 td:nth-child(2),
.fund-live-table .fund-live-row-18 td:nth-child(4),
.fund-live-table .fund-live-row-19 td:nth-child(4),
.fund-live-table .fund-live-row-28 td:nth-child(2) { font-weight: 400; }
.fund-live-table .fund-live-row-13 th:nth-child(3),
.fund-live-table .fund-live-row-13 td:nth-child(4),
.fund-live-table .fund-live-row-15 th:nth-child(3),
.fund-live-table .fund-live-row-15 td:nth-child(4) { font-style: italic; color: #17613b; }
.fund-live-table .fund-live-row-23 th:nth-child(3),
.fund-live-table .fund-live-row-23 td:nth-child(4) { font-size: inherit; font-weight: 700; }
.monthly-high-box { width: 85%; box-sizing: border-box; justify-self: start; }
@media (max-width: 1100px) { .monthly-high-box { width: 100%; } }

/* Daily History: emphasize fees and match benchmark/index heading colours. */
.fund-live-history-table td:nth-child(14) { font-weight: 800; }
.fund-live-history-table td:nth-child(n + 15) { color: #007fbe; }
.fund-live-history-table :is(th, td):nth-child(3) { color: #d32f2f; }
.fund-live-history-table :is(th, td):nth-child(4) { color: #238636; }
.fund-live-history-table :is(th, td):nth-child(5) { color: #007fbe; }

/* Independent Live Data metrics and urgent passport expiry findings. */
.admin-fund-metric-grid.live-broker-metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .7fr));
    gap: 8px;
}
.live-broker-metric-grid .metric-card {
    min-width: 0;
    min-height: 75px;
    padding: 10px;
    gap: 4px;
    grid-template-rows: 1fr auto;
}
.live-broker-metric-grid .live-primary-metric strong {
    font-size: clamp(16px, 1.5vw, 26px);
    overflow-wrap: anywhere;
}
.live-broker-metric-grid .live-net-metric span,
.live-broker-metric-grid .live-net-metric strong { font-style: italic; font-weight: 400; }
.live-broker-metric-grid .live-leverage-label { font-size: 15px; }
.live-broker-metric-grid .live-primary-metric .live-leverage-value { font-size: clamp(18px, calc(1.5vw + 2px), 28px); }
.fund-live-comparison .fund-live-table :is(.fund-live-row-23, .fund-live-row-24, .fund-live-row-25, .fund-live-row-26, .fund-live-row-28, .fund-live-row-31, .fund-live-row-32) > :is(th, td) { color: #007fbe; }
.fund-live-comparison .fund-live-table :is(.fund-live-row-30, .fund-live-row-31, .fund-live-row-32) > :is(th, td) { color: #007fbe; font-style: italic; }
.fund-live-comparison .fund-live-table .fund-live-row-24 th:nth-child(3),
.fund-live-comparison .fund-live-table .fund-live-row-28 td:nth-child(2) { font-weight: 700; }
.fund-live-comparison .fund-live-table .fund-live-row-11 td:nth-child(2) { background: #fff176; }
@media (max-width: 1000px) {
    .admin-fund-metric-grid.live-broker-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.passport-expiry-urgent td,
.passport-expiry-urgent td a { color: #b42318; }
@media (max-width: 480px) {
    .admin-fund-metric-grid.live-broker-metric-grid { grid-template-columns: 1fr; }
}

/* Build 0.7.91 NAV management */
.admin-review-workspace-nav a.admin-nav-management-link { background: #f8dce8; color: #492536; }
.admin-review-workspace-nav a.admin-nav-management-link.active { background: #f1bfd4; color: #492536; }

/* Experimental 0.7.92: review dashboard and Actions workspace. */
.review-latest-dashboard {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 38px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}
.review-latest-dashboard h2 { grid-column: 1 / -1; margin: 0 0 5px; text-align: center; }
.review-latest-dashboard article {
    display: grid;
    min-width: 0;
    min-height: 62px;
    padding: 8px 10px;
    border: 1px solid #bfd7e4;
    border-radius: 9px;
    background: #fff;
    text-align: center;
}
.review-latest-dashboard span { color: #52677d; font-size: 14px; font-weight: 800; }
.review-latest-dashboard strong { align-self: end; font-size: 18px; overflow-wrap: anywhere; }
.review-latest-dashboard .review-latest-share-price strong { justify-self: center; width: fit-content; padding: 2px 5px; border-radius: 3px; background: #fff176; }
.review-latest-dashboard .review-latest-alpha :is(span, strong) { color: #17613b; font-style: italic; }
.review-latest-dashboard .review-latest-blue :is(span, strong) { color: #007fbe; }
.review-latest-dashboard .review-latest-fees strong { font-weight: 800; }
.admin-review-mode-tabs { justify-content: center; }
.fund-review-mode-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(155px, 1fr));
    justify-content: center;
    max-width: 1040px;
    margin-right: auto;
    margin-left: auto;
}
.fund-review-mode-tabs .fund-mode-positions { grid-column: 2; }
.fund-review-mode-tabs .fund-mode-investor-details { grid-column: 3; }
.actions-choice-tabs { justify-content: center; margin: 0 0 18px; }
.actions-email-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.actions-email-grid > section { min-width: 0; }
.actions-attachment-list { display: grid; gap: 9px; margin-top: 14px; }
.actions-attachment-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.actions-attachment-row label { display: grid; gap: 3px; }
.actions-attachment-row small { color: var(--muted); }
.actions-attachment-row.missing { background: #f5f6f7; color: var(--muted); }
.nav-pack-list { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; }
.nav-pack-list li { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
@media (max-width: 1000px) {
    .review-latest-dashboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .actions-email-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .review-latest-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .fund-review-mode-tabs { display: flex; max-width: none; }
    .fund-review-mode-tabs .fund-mode-positions,
    .fund-review-mode-tabs .fund-mode-investor-details { grid-column: auto; }
}
.nav-series-panel { grid-column: 1 / -1; min-width: 0; }
.compact-nav-form { max-width: none; width: 100%; gap: 16px 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.compact-nav-form > label { min-width: 0; display: grid; grid-template-rows: 24px 36px auto; align-content: start; gap: 6px; }
.compact-nav-form > label > input { width: 100%; box-sizing: border-box; height: 36px; }
.compact-nav-form .safe-write-note, .compact-nav-form > button { grid-column: 1 / -1; }
@media (max-width: 700px) { .compact-nav-form { grid-template-columns: 1fr; } }
.compact-nav-form input:not([type="hidden"]) { min-height: 34px; padding: 6px 10px; }
.managed-nav-history { margin-top: 24px; }
.nav-aggregate-table .nav-benchmark { color: #1565c0; }
.nav-aggregate-table .nav-fee { color: #16733c; }
.nav-aggregate-table .nav-total-fees { font-weight: 700; }
.nav-aggregate-table tbody { border-bottom: 3px solid #d6dce2; }
.nav-aggregate-table th, .nav-aggregate-table td { padding: 7px 9px; white-space: nowrap; }
.nav-aggregate-table .nav-aggregate-headings th { font-size: 0.8rem; }
.nav-aggregate-table .nav-emphasis { font-weight: 700; }
.nav-aggregate-table .nav-black { color: #000; }
.nav-aggregate-table .nav-negative { color: #c00000; }
.nav-aggregate-table .nav-price { font-weight: 700; background: #fff29a; font-size: calc(1em + 1px); }
.nav-aggregate-table .nav-aggregate-headings th.nav-price { font-size: calc(0.8rem + 1px); }
.nav-management-choice { margin: 18px 0; }
.nav-management-choice > summary { width: fit-content; cursor: pointer; }
.nav-management-choice[open] > summary { margin-bottom: 16px; }
.nav-management-choice > .panel { max-width: none; }
.nav-aggregate-table .nav-aggregate-headings th.nav-date { font-weight: 700; font-size: calc(0.8rem + 2px); }
.nav-aggregate-table .nav-framed { text-align: center; border-left: 2px solid #536879; border-right: 2px solid #536879; }
.nav-aggregate-table th.nav-framed { border-top: 2px solid #536879; border-bottom: 0; }
.nav-aggregate-table td.nav-framed { border-top: 0; border-bottom: 2px solid #536879; }
.nav-aggregate-table td.nav-return-large { font-size: calc(1em + 1px); }
.nav-aggregate-table .nav-aggregate-headings th.nav-return-large { font-size: calc(0.8rem + 1px); }
.nav-aggregate-table th.nav-compact-shares { width: 95px; max-width: 95px; white-space: normal; }
.nav-aggregate-table .nav-compact-shares { padding-left: 6px; padding-right: 6px; }
/* One frame enclosing the three fund columns and their benchmark rows. */
.nav-aggregate-table tbody > tr:first-child > :nth-child(n+3):nth-child(-n+5) { border-top: 2px solid #536879; }
.nav-aggregate-table tbody > tr:first-child > :nth-child(3),
.nav-aggregate-table tbody > tr:not(:first-child) > :nth-child(2) { border-left: 2px solid #536879; }
.nav-aggregate-table tbody > tr:first-child > :nth-child(5),
.nav-aggregate-table tbody > tr:not(:first-child) > :nth-child(4) { border-right: 2px solid #536879; }
.nav-aggregate-table tbody > tr:last-child > :nth-child(n+2):nth-child(-n+4) { border-bottom: 2px solid #536879; }
.nav-aggregate-table tbody { border: 2px solid #536879; }
.nav-aggregate-table tbody > tr:first-child > * { border-top: 2px solid #536879; }
.nav-aggregate-table tbody > tr:last-child > * { border-bottom: 2px solid #536879; }
.nav-aggregate-table tbody > tr:not(:last-child) > :last-child { border-right: 2px solid #536879; }
.nav-aggregate-table th.nav-date { border-left: 2px solid #536879; border-bottom: 2px solid #536879; }
.nav-capital-summary { grid-column: 1 / -1; }
.nav-capital-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.nav-capital-tables table { border: 1px solid #536879; }
.nav-capital-tables th, .nav-capital-tables td { font-weight: 400; }
.nav-capital-tables td { text-align: right; }
.nav-capital-tables .nav-capital-net > * { font-weight: 700; font-size: calc(1em + 2px); }
.nav-aggregate-table td.nav-split { font-weight: 400; font-size: inherit; padding: 3px 6px; white-space: normal; border-bottom: 2px solid #536879; }
.nav-split > div { display: flex; justify-content: space-between; gap: 5px; line-height: 1.3; }
.nav-split span { font-weight: 400; white-space: nowrap; }
@media (max-width: 700px) { .nav-capital-tables { grid-template-columns: 1fr; } }

/* The NAV print selection is nested inside the management form's disclosure. */
@page nav-dates { size: A4 landscape; margin: 10mm; }
@media print {
    body.admin-review-printing:has(#nav-dates-data-print.admin-review-print-selected) .page-shell > :not(:has(#nav-dates-data-print)),
    body.admin-review-printing:has(#nav-dates-data-print.admin-review-print-selected) .nav-management-choice > summary,
    body.admin-review-printing:has(#nav-dates-data-print.admin-review-print-selected) .nav-series-panel > :not(#nav-dates-data-print) { display: none !important; }
    body.admin-review-printing:has(#nav-dates-data-print.admin-review-print-selected) .nav-management-choice,
    body.admin-review-printing:has(#nav-dates-data-print.admin-review-print-selected) .nav-series-panel {
        display: block; margin: 0; padding: 0; border: 0; box-shadow: none; max-width: none;
    }
    #nav-dates-data-print.admin-review-print-selected {
        page: nav-dates; margin: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact;
    }
    #nav-dates-data-print .nav-aggregate-table { width: 100%; table-layout: fixed; font-size: 7pt; }
    #nav-dates-data-print .nav-aggregate-table th,
    #nav-dates-data-print .nav-aggregate-table td { white-space: normal; padding: 4px 3px; overflow-wrap: anywhere; }
    #nav-dates-data-print .nav-aggregate-table .nav-aggregate-headings th { font-size: 7pt; }
    #nav-dates-data-print .nav-aggregate-table .nav-aggregate-headings th.nav-date { font-size: 9pt; }
    #nav-dates-data-print .nav-aggregate-table .nav-aggregate-headings th.nav-price,
    #nav-dates-data-print .nav-aggregate-table .nav-aggregate-headings th.nav-return-large { font-size: 8pt; }
    #nav-dates-data-print .nav-split > div { display: block; margin: 2px 0; }
    #nav-dates-data-print .nav-split span { white-space: normal; }
    #nav-dates-data-print .nav-aggregate-table tbody { break-inside: avoid; page-break-inside: avoid; }
    #nav-dates-data-print .capital-activity-summary { break-inside: avoid; }
}

.investor-help-contact p { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.investor-help-qa { max-width: 1050px; line-height: 1.65; }
.investor-help-qa p { margin: .35rem 0; }
.investor-help-qa .investor-help-question { font-weight: 700; margin-top: 1.4rem; }
.investor-help-qa .investor-help-question:first-child { margin-top: 0; }
[data-help-query] textarea { display: block; width: 100%; box-sizing: border-box; margin-top: .5rem; }
.investor-help-error { color: #9f1d20; font-weight: 600; }

.topbar:has(.nav-links a[href$='/help']) { flex-wrap: wrap; gap: 8px 24px; padding-top: 10px; padding-bottom: 10px; }
.topbar:has(.nav-links a[href$='/help']) .nav-links { margin-left: auto; flex-wrap: wrap; }
.topbar:has(.nav-links a[href$='/help']) .nav-links a { white-space: nowrap; }

.nav-management-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 23px 0; }
.nav-management-actions > .button { font-size: 18px; font-weight: 700; line-height: 1.3; padding: 17px 27px; min-height: 72px; width: 100%; height: 100%; box-sizing: border-box; white-space: normal; text-align: center; }
.nav-management-choice[data-choice-controlled] > summary { display: none; }
#add-investor { scroll-margin-top: 180px; }
@media (max-width: 850px) { .nav-management-actions { grid-template-columns: 1fr; } }

.investor-data-explanations-toggle { margin: 0 0 24px; }
.investor-data-explanations-toggle > summary { width: fit-content; cursor: pointer; }
.investor-data-explanations-toggle > .investor-data-explanations { margin: 12px 0 0; }
.info-pack-recipient-type { display: flex; flex-wrap: wrap; gap: 14px 32px; padding: 14px 18px; border: 1px solid #b8cddd; border-radius: 9px; margin: 0 0 18px; }
.info-pack-recipient-type label { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 150px; font-size: 14px; font-weight: 600; cursor: pointer; }
.info-pack-recipient-type input[type="radio"] { width: 17px; height: 17px; flex: 0 0 17px; padding: 0; margin: 0; }

.position-target,.position-target input,.position-target-controls,.position-target-controls input {color:#165eaa!important}
.position-pl,.position-pl strong {color:#14733c!important}
.position-target-controls {margin:12px 0;max-width:440px}
.positions-panel table th:nth-child(8),.positions-panel table td:nth-child(8) {font-size:calc(1em + 1px)}

.nav-presentation-buttons .button {font-size:2em;padding:20px 36px;min-width:260px;text-align:center}

.nav-presentation-buttons {justify-content:center}
.nav-presentation-buttons .button {font-size:1.6em;padding:16px 28.8px;min-width:208px;background:#e7e2f3;border-color:#c6bddc;color:#44345c}
.positions-title-row {display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.positions-title-row h2 {margin:0}
.positions-refresh {background:#d8eee7;border-color:#9dcbbd;color:#204f42}

.positions-overall-pl {float:right;margin-left:36px}.positions-total-notional {width:100%}.position-projection {min-width:560px}.position-projection input {width:95px}.position-projection table {font-size:14px}.position-projection th,.position-projection td {padding:6px}.positions-title-row {align-items:flex-start}

.position-leak-box {border:2px solid #ae3030;padding:18px;margin:24px 0 16px}.position-leak-box h3,.leak-heading,.leak-results {color:#b02020!important}.leak-heading {display:inline-block;border:1px solid #ae3030;padding:8px 12px;font-size:calc(1em + 2px);font-weight:700}.position-leak-box input {width:100px}.leak-spacer {height:28px}.position-fees-box {border:1px solid #9aabba;padding:18px;margin:16px 0}.position-fees-box h3 {font-weight:700}

.position-projection .projection-leak {color:#b02020}.position-projection .projection-cash {font-weight:700;font-size:calc(1em + 1px)}.position-projection .projection-fees {font-weight:700;color:#14733c}.position-projection .projection-price {background:#fff29a;color:#165eaa;font-weight:700}

.position-fees-box .projected-fees-row th, .position-fees-box .projected-fees-row td {color:#14733c;font-weight:700;font-size:calc(1em + 1px)}

.position-fees-box .expected-fees-row th, .position-fees-box .expected-fees-row td {color:#14733c;font-weight:700;font-size:calc(1em + 2px)}

.position-projection .projection-net-cash {font-weight:700;font-size:calc(1em + 2px)}.position-projection .projection-cash {font-size:calc(1em - 1px)}

.nav-management-actions .button {font-size:19px}.nav-capital-explanation {font-size:calc(1em - 1px)}

.portal-data-page .portal-data-flow .admin-workbook-copy-note { font-size: 13px; margin: 4px 0 8px; }
.button.excel-connect-prominent { font-size: 24px; padding: 14px 22px; background: #0753ba; border-color: #06439a; color: #fff; white-space: normal; }
.excel-setup-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.button.excel-save-prominent { font-size: 28px; padding: 20px 32px; background: #0753ba; border-color: #06439a; color: #fff; white-space: normal; }
.button.excel-download-secondary { background: #fff; color: #173b63; white-space: normal; }
.button.excel-save-prominent:hover, .button.excel-connect-prominent:hover { background: #063e8c; }

.position-calculation-note { font-size: 11px; line-height: 1.5; align-self: center; }
.us500-target-emphasis, .us500-target-emphasis input { font-weight: 700; }
.position-benchmark-target { color: #007fbe; }
.investor-data-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.nav-pack-equal {table-layout:fixed;width:100%}.nav-pack-equal .nav-aggregate-headings {height:64px}.nav-pack-equal tr:not(.nav-aggregate-headings) {height:42px}.nav-pack-equal th,.nav-pack-equal td {overflow-wrap:anywhere}.nav-pack-equal .nav-alpha-gain {color:#14733c!important;font-weight:700!important}.nav-pack-equal .nav-alpha-loss {color:#a02020!important;font-weight:700!important}

.nav-pack-equal th,.nav-pack-equal td {white-space:normal}

.investor-data-actions > .button {box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:190px;min-height:46px;margin:0;padding:10px 16px;font-size:14px;line-height:24px;white-space:nowrap}
.holdings-dashboard-grid {grid-template-columns:minmax(0,1.7fr) minmax(0,1.2fr)}
.fund-performance-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
.other-fund-information {margin-top:12px}.other-fund-information[open] > summary {margin-bottom:12px}.other-fund-information .holding-metric {overflow-wrap:anywhere}
@media(max-width:850px){.holdings-dashboard-grid{grid-template-columns:1fr}}

/* Investor dashboard spacing and expanded fund contact cards. */
.investor-data-actions {margin-top:22px}
.other-fund-information > .fund-performance-metrics {grid-template-columns:1fr;gap:12px}
.other-fund-information .fund-performance-metric {display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:14px 16px;min-width:0}
.other-fund-information .fund-performance-metric span {font-weight:600}
.other-fund-information .fund-performance-metric strong {white-space:normal;text-align:left;font-size:16px;line-height:1.45;overflow-wrap:break-word}
.other-fund-information .fund-performance-metric a {font-size:14px;line-height:1.4;overflow-wrap:anywhere}

.investor-data-actions .new-capital-activity {flex:1 1 240px;min-width:0;max-width:100%;margin:0}

.quarterly-edit-area {max-height:80vh;min-height:55vh;overflow:auto;padding:16px;border:1px solid #ccd6e0;background:#fff}
.quarterly-edit-area label {display:block;margin-bottom:18px}
.quarterly-edit-area textarea {display:block;width:100%;box-sizing:border-box;font-size:16px;line-height:1.6;resize:vertical;margin-top:5px}

.quarterly-pdf-preview {width:100%;height:75vh;border:1px solid #ccd6e0}

.quarterly-document { background:white; color:#111; max-width:1000px; margin:24px auto; padding:48px; height:75vh; overflow:auto; border:1px solid #bcc5cc; font:12pt/1.4 Georgia,serif; }
.quarterly-document p { margin:0 0 12px; white-space:pre-wrap; }
.quarterly-document table { width:100%; border-collapse:collapse; margin:16px 0; font-size:10pt; }
.quarterly-document td { border:1px solid #aaa; padding:6px; vertical-align:top; }
.quarterly-document [contenteditable]:focus { outline:2px solid #4482b5; }
@media(max-width:700px) { .quarterly-document { padding:16px; } }

.holding-metric.new-capital-activity { background:#fff0d5 !important; border:2px solid #bd7924; color:#673e0d; }
.post-recent-nav-row > td { background:#fff0d5 !important; }
.post-recent-nav-label { display:block; color:#673e0d; font-weight:600; font-size:.85em; margin-top:4px; }

.holding-metric.new-capital-activity { background:#fffaf0 !important; border-color:#e5cda7; }
.new-capital-activity .additional-activity-amount { font-size:calc(1em - 1px); }
.new-capital-activity .additional-subscription { color:#176238; }
.new-capital-activity .additional-redemption { color:#b32424; }

.admin-change-workspace-button { font-size:160% !important; padding:.8rem 1.6rem !important; background:#126da2 !important; color:white !important; border:2px solid #0b5683 !important; }

.live-analysis-grid { width:100%; table-layout:fixed; border-collapse:collapse; font-size:14px; }
.live-analysis-grid td,.live-analysis-grid th { width:33.333%; padding:9px 7px; border-bottom:1px solid #dce5eb; text-align:left; overflow-wrap:anywhere; }
.live-analysis-grid td span { display:block; font-size:inherit; }
.live-analysis-grid td strong { display:block; font-size:inherit; }
.live-analysis-grid .analysis-primary { font-size:16px; }
.live-analysis-grid .analysis-share strong { background:#fff176; width:fit-content; padding:2px 4px; }
.live-analysis-grid .analysis-alpha { color:#17613b; font-style:italic; }
.live-analysis-grid .analysis-benchmark,.live-analysis-grid .analysis-reference { color:#007fbe; }
.live-analysis-grid .analysis-reference { font-style:italic; }
.live-analysis-grid .analysis-fees { font-size:15px; }

.live-analysis-grid .analysis-secondary { font-size:15px; }
.live-analysis-grid .analysis-spacer td { height:10px; padding:0; border:0; }
.live-analysis-frame { border:1px solid #b8cbd9; border-radius:10px; padding:16px; margin-top:20px; }
.live-analysis-frame .fund-live-table-block { border:1px solid #cbd8e2; border-radius:8px; padding:12px; margin-top:0; }
.live-bank-cash-box { box-sizing:border-box; width:calc((100% - 20px) / 6); min-width:180px; border:1px solid #cbd8e2; border-radius:8px; padding:9px 7px; margin-top:12px; }
.live-bank-cash-box h3 { font-size:14px; margin:0 0 6px; }
.live-bank-cash-box .fund-live-bank-cash-form { display:flex; flex-wrap:wrap; gap:5px; }
.live-bank-cash-box input { width:100%; min-width:0; }
@media(max-width:700px) { .live-bank-cash-box { width:100%; min-width:0; } }

.live-bank-cash-box { width:170px; min-width:0; max-width:100%; }
.live-bank-cash-box .fund-live-bank-cash-form { display:flex; flex-wrap:nowrap; }
.live-bank-cash-box .fund-live-bank-cash-form input { width:90px; min-width:0; flex:1 1 90px; padding:5px; }
.live-bank-cash-box .fund-live-bank-cash-form button { flex:0 0 auto; padding:5px 8px; }
.cover-metric .cover-leverage { font-size:13px; margin-top:5px; }
.cover-gross-primary > span:first-child { font-size:16px; }
.cover-gross-primary > strong { font-size:22px; }

.cover-calculation-notes {font-size:12px;line-height:1.6;margin:16px 0;color:#4b5965;}
.share-price-charts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.share-price-charts svg {width:100%;height:auto;font:12px sans-serif;}
@media(max-width:900px){.share-price-charts{grid-template-columns:1fr;}}

.share-price-charts .daily-price-chart { grid-column:auto; }
.share-price-charts .chart-point-value { font-size: 11px; font-weight: 700; paint-order: stroke; stroke: white; stroke-width: 3px; stroke-linejoin: round; }
.leverage-chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 700; margin-bottom: 10px; }
.leverage-legend-1 { color: #d32f2f; }
.leverage-legend-2 { color: #238636; }
.leverage-legend-3 { color: #007fbe; }
.share-price-charts [data-custom-chart-date][hidden] { display: none; }
.share-price-charts > .panel { min-width: 0; }
.share-price-charts .daily-chart-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.daily-chart-controls > label { display: grid; gap: 6px; flex: 1 1 150px; min-width: 0; max-width: 100%; }
.daily-chart-controls :is(input, select) { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.daily-chart-controls > button { flex: 0 0 auto; max-width: 100%; }
.workspace-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 24px; align-items: start; }
.review-latest-dashboard.closing-dashboard { display: flex; flex-direction: column; gap: 8px; }
.closing-dashboard-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.closing-dashboard-heading h2 { flex: 1; margin: 0; }
.closing-dashboard-heading form { margin: 0 0 0 auto; }
.closing-dashboard-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.admin-workspace-choice-button { min-height: 84px; padding: 12px 20px; }
.admin-workspace-choice-button strong { margin-bottom: 4px; font-size: 22px; }
@media (max-width: 900px) { .workspace-dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .admin-workspace-choice-button { min-height: 60px; padding: 10px 14px; } }

.live-cover-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px;}
.live-cover-grid .cover-metric > strong {font-size:17px;}
.live-cover-grid .cover-gross-primary > strong {font-size:19px;}
.live-cover-grid .cover-leverage b {font-size:16px;}
@media(max-width:700px){.live-cover-grid{grid-template-columns:1fr;}}

.admin-fund-metric-grid.live-broker-metric-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
.live-cover-grid {grid-template-columns:repeat(6,minmax(0,1fr));}
@media(max-width:1000px){.live-cover-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:700px){.admin-fund-metric-grid.live-broker-metric-grid,.live-cover-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

.live-cover-grid { gap:8px; align-items:stretch; }
.live-cover-grid .metric-card { display:grid; grid-template-rows:minmax(34px,auto) auto 22px; align-content:start; gap:4px; min-width:0; min-height:100px; padding:10px; border:1px solid #c9dee9; border-radius:16px; background:#fff; box-shadow:var(--shadow); }
.live-cover-grid .metric-card > span:first-child { color:var(--muted); font-size:13px; font-weight:700; line-height:1.3; }
.live-cover-grid .cover-gross-primary > span:first-child { font-size:15px; }
.live-cover-grid .metric-card > strong { color:#0b2742; line-height:1.3; font-variant-numeric:tabular-nums; }
.live-cover-grid .exposure-metric > strong { font-size:20px; }
.live-cover-grid .cover-leverage { display:flex; align-items:baseline; gap:5px; margin:0; color:var(--muted); font-size:13px; }
.live-cover-grid .cover-leverage b { color:#0b2742; font-size:16px; }
.live-cover-grid .metric-card > small { color:#738697; font-size:11px; align-self:center; }

.live-cover-grid .cover-gross-primary .cover-leverage b { font-size:17px; }
.live-cover-grid .exposure-summary { grid-column:span 3; display:block; }
.exposure-summary table { width:100%; border-collapse:collapse; font-size:14px; }
.exposure-summary th,.exposure-summary td { padding:3px 7px; border:0; text-align:left; }
.exposure-summary td { font-variant-numeric:tabular-nums; font-weight:700; }
.exposure-summary td small { font-size:11px; color:var(--muted); font-weight:400; margin-right:5px; }
@media(max-width:700px){.live-cover-grid .exposure-summary{grid-column:1 / -1;}}

.exposure-summary td:last-child { white-space:nowrap; }
.exposure-summary td small { display:inline !important; white-space:nowrap; }

/* Fund controls stay directly below the workspace navigation. */
.admin-workspace-shell .fund-review-mode-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "live nav investors positions" ". . transactions ."; max-width: none; margin: 12px 0; }
.fund-review-mode-tabs a.fund-mode-live { grid-area: live; }
.fund-review-mode-tabs a.fund-mode-nav { grid-area: nav; }
.fund-review-mode-tabs a.fund-mode-investor-data { grid-area: investors; }
.fund-review-mode-tabs a.fund-mode-transactions { grid-area: transactions; }
.fund-review-mode-tabs a.fund-mode-positions { grid-area: positions; }
.chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.chart-heading h3 { margin: 0; }
.live-inputs-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: start; }
.performance-legend-1 { color: #007fbe; }
.performance-legend-2 { color: #238636; }
.cover-tone-1 { --cover-color: #d32f2f; }
.cover-tone-2 { --cover-color: #238636; }
.cover-tone-3 { --cover-color: #007fbe; }
.cover-tone :is(span, strong, b), .exposure-summary .cover-tone :is(th, td, small) { color: var(--cover-color); }
.chart-magnifier { width: min(1600px, 96vw); max-width: 96vw; max-height: 94vh; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 20px; }
.chart-magnifier::backdrop { background: rgb(0 20 40 / 65%); }
.chart-magnifier-toolbar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.chart-magnifier svg { width: 100%; height: auto; font: 12px sans-serif; }
.chart-magnifier .chart-point-value { font-size: 11px; font-weight: 700; paint-order: stroke; stroke: white; stroke-width: 3px; }
.chart-magnifier [data-custom-chart-date][hidden] { display: none; }
.chart-magnifier .daily-chart-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.chart-zoom-placeholder { min-height: 360px; }
@media(max-width:600px) {
    .admin-workspace-shell .fund-review-mode-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "live nav" "investors positions" "transactions ."; }
}
@media print { [data-chart-zoom], .chart-magnifier { display: none; } }

.chart-edit-controls{display:grid;grid-template-columns:2fr 2fr 1fr;gap:1rem;margin:1rem 0}.chart-series-controls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem}.chart-series-controls fieldset{min-width:0;border:1px solid #cbd5e1;border-radius:6px;padding:.7rem}.chart-series-controls input[type=checkbox]{width:auto}.chart-series-controls input[type=color]{height:35px;width:65px;padding:2px}.chart-preview-canvas{margin:1rem 0;border:1px solid #cbd5e1;background:white;overflow:auto}.chart-preview-canvas svg{display:block;width:100%;height:auto;min-width:700px}@media(max-width:800px){.chart-edit-controls,.chart-series-controls{grid-template-columns:1fr 1fr}}

.nav-test-workspace-banner {position:sticky;top:0;z-index:1000;background:#fff0b3;border:3px solid #b94700;padding:12px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;color:#652500}.nav-test-workspace-banner strong,.nav-test-workspace-banner small{flex-basis:100%}.nav-test-workspace-banner form{margin:0}.nav-test-workspace-banner a{font-weight:700}

.live-cover-grid .cover-metric {display:block;}
.cover-pair {display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:start;text-align:center;}
.cover-pair > span {font-size:13px;font-weight:700;color:var(--muted);}
.cover-pair > strong,.cover-pair > b {font-size:17px;color:#0b2742;font-variant-numeric:tabular-nums;}
.cover-gross-primary .cover-pair > b {font-size:18px;}
.live-cover-grid .cover-tone .cover-pair > :is(span, strong, b) { color: var(--cover-color); }
.live-top-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.live-top-columns .live-broker-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.live-top-columns .live-cover-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.live-top-columns .exposure-summary { grid-column: 1 / -1; }
.leverage-extremes { margin-top: 20px; }
.leverage-extremes [hidden] { display: none; }
.leverage-extremes-table { min-width: 480px; }
.leverage-extremes-table .cover-tone :is(th, td) { color: var(--cover-color); }
.extreme-dates { max-height: 8rem; overflow-y: auto; }
.extreme-dates time { display: block; white-space: nowrap; }
@media(max-width:900px) { .live-top-columns { grid-template-columns: minmax(0, 1fr); } }
@media(max-width:450px) { .live-top-columns .cover-pair { gap: 6px 4px; } .live-top-columns .cover-pair > span { font-size: 11px; } .live-top-columns .cover-pair > :is(strong,b) { font-size: 15px; } }
.chart-series-controls select[multiple] {min-height:120px;width:100%;}

.fund-live-history-table .official-nav-history-row td { font-weight: 700; font-size: 12px; }
.fund-live-history-table .official-nav-history-row td:nth-child(2) { background-color: #fff176; }

.live-cover-basis-note { grid-column: 2; margin: -6px 0 0; font-size: 11px; line-height: 1.4; }
@media(max-width:900px) { .live-cover-basis-note { grid-column: 1; } }

.live-top-columns .exposure-summary.exposure-var-split { display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); gap:0; }
.exposure-values { min-width:0; padding-right:8px; overflow-x:auto; }
.exposure-values table { font-size:12px; }
.exposure-values th,.exposure-values td { padding:3px; }
.exposure-var-values { min-width:0; border-left:1px solid #c9dee9; padding-left:10px; display:flex; flex-direction:column; gap:6px; font-size:12px; }
.exposure-var-values strong,.exposure-var-values span,.exposure-var-values > small { display:block; }
.exposure-var-values strong { color:#0b2742; font-size:15px; }
.exposure-var-values small { font-size:10px; font-weight:400; }

.cover-basis-two-lines { grid-column:1 / -1; width:100%; margin:0; font-size:10px; line-height:1.4; text-align:left; }

.investor-data-hold-message { color: #b91c1c; font-weight: 700; }
