@font-face {
    font-family: "Sarabun";
    src: url("../fonts/sarabun-light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sarabun";
    src: url("../fonts/sarabun-regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sarabun";
    src: url("../fonts/sarabun-medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sarabun";
    src: url("../fonts/sarabun-semibold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sarabun";
    src: url("../fonts/sarabun-bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sarabun";
    src: url("../fonts/sarabun-extrabold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #0A0A0A;
    --red: #EF4444;
    --red-dark: #DC2626;
    --white: #FAFAFA;
    --surface: #F5F5F5;
    --raised: #E5E5E5;
    --text-muted: #525252;
    --text-faint: #A3A3A3;
    --border-subtle: #E5E5E5;
    --border-medium: #D4D4D4;
    --border-strong: #0A0A0A;
    --heading: "Sarabun", "TH Sarabun New", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --body: "Sarabun", "TH Sarabun New", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "Sarabun", "TH Sarabun New", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--white);
    color: var(--black);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--black);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
}

.overline {
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.page-title {
    font-family: var(--heading);
    font-size: clamp(36px, 8vw, 56px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 12px 0 0;
}

.page-title {
    font-size: clamp(32px, 5vw, 48px);
}

.auth-shell-refined {
    align-items: center;
    background: var(--white);
    padding: 28px;
}

.auth-frame {
    width: min(100%, 1160px);
    margin: 0 auto;
}

.auth-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 2px solid var(--black);
    padding: 0 0 18px;
}

.auth-top p {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 400;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: inherit;
}

.brand-logo {
    display: block;
    width: 69px;
    height: 72px;
    object-fit: contain;
    flex: 0 0 auto;
}

.auth-code {
    border: 2px solid var(--black);
    min-width: 72px;
    padding: 7px 14px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 456px);
    gap: clamp(40px, 7vw, 88px);
    align-items: center;
    padding: clamp(48px, 8vw, 88px) 0 0;
}

.auth-copy {
    min-width: 0;
    border-left: 4px solid var(--red);
    padding-left: clamp(20px, 4vw, 40px);
}

.auth-title {
    max-width: 720px;
    margin: 14px 0 18px;
    color: var(--black);
    font-family: var(--heading);
    font-size: clamp(48px, 8vw, 86px);
    font-weight: 500;
    letter-spacing: 0;
    line-height: 0.98;
}

.auth-lede {
    max-width: 580px;
    margin: 0;
    color: var(--text-muted);
    font-size: clamp(19px, 2.4vw, 25px);
    font-weight: 300;
    line-height: 1.55;
}

.auth-facts {
    display: grid;
    gap: 0;
    max-width: 620px;
    margin: clamp(34px, 5vw, 56px) 0 0;
    border-top: 2px solid var(--black);
}

.auth-facts div {
    display: grid;
    grid-template-columns: minmax(112px, 0.35fr) minmax(0, 1fr);
    gap: 20px;
    border-bottom: 1px solid var(--border-medium);
    padding: 16px 0;
}

.auth-facts dt {
    color: var(--black);
    font-size: 13px;
    font-weight: 700;
}

.auth-facts dd {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 400;
}

.auth-panel {
    width: 100%;
    margin: 0;
    border: 2px solid var(--black);
    background: var(--white);
    padding: clamp(24px, 4vw, 34px);
}

.auth-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 2px solid var(--black);
    padding-bottom: 18px;
}

.auth-panel-head span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.auth-form {
    margin-top: 24px;
}

.auth-tabs {
    margin: 0 0 8px;
}

.password-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
}

.auth-disclaimer {
    margin-top: 24px;
    border-top: 2px solid var(--black);
    padding-top: 14px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.65;
}

.maintenance-page {
    min-height: 100vh;
    background: var(--white);
    color: var(--black);
    padding: 28px;
}

.maintenance-shell {
    display: grid;
    align-content: center;
    gap: clamp(28px, 5vw, 52px);
    width: min(100%, 1080px);
    min-height: calc(100vh - 56px);
    margin: 0 auto;
}

.maintenance-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    border-bottom: 2px solid var(--black);
    padding-bottom: 12px;
}

.maintenance-panel {
    display: grid;
    gap: 20px;
    max-width: 860px;
    border-left: 6px solid var(--red);
    padding-left: clamp(22px, 4vw, 42px);
}

.maintenance-status {
    width: max-content;
    border: 2px solid var(--black);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.maintenance-panel .page-title {
    margin-top: 0;
    font-size: clamp(48px, 10vw, 96px);
    font-weight: 500;
}

.maintenance-panel p {
    max-width: 700px;
    margin: 0;
    color: var(--text-muted);
    font-size: clamp(19px, 2.5vw, 26px);
    font-weight: 300;
    line-height: 1.55;
}

.maintenance-countdown-card {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.maintenance-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(108px, 1fr));
    width: min(100%, 720px);
    border: 2px solid var(--black);
}

.maintenance-countdown div {
    display: grid;
    gap: 8px;
    min-height: 128px;
    align-content: center;
    justify-items: center;
    border-right: 1px solid var(--black);
    padding: 18px 12px;
}

.maintenance-countdown div:last-child {
    border-right: 0;
}

.maintenance-countdown strong {
    font-family: var(--heading);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.maintenance-countdown span,
.maintenance-eta {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.maintenance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.subhead {
    font-family: var(--heading);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.muted {
    color: var(--text-muted);
}

.mono {
    font-family: var(--mono);
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: var(--white);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 4px solid var(--black);
    background: var(--black);
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 2px solid var(--white);
}

.sidebar-brand {
    display: grid;
    gap: 14px;
    justify-items: center;
    color: inherit;
}

.sidebar-logo-frame {
    display: grid;
    place-items: center;
    width: 154px;
    height: 154px;
    border: 2px solid var(--white);
    background: var(--white);
}

.sidebar-logo {
    display: block;
    width: 138px;
    height: 144px;
    object-fit: contain;
}

.sidebar-nav {
    display: grid;
    gap: 2px;
    padding: 16px;
}

.sidebar-link {
    border: 2px solid transparent;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 11px 12px;
}

.sidebar-link:hover,
.sidebar-link.is-active {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 2px solid var(--white);
}

.user-block {
    display: grid;
    gap: 2px;
    margin-bottom: 16px;
}

.content-shell {
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: var(--white);
    border-bottom: 2px solid var(--black);
}

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

.page {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.page-header {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.employee-dashboard {
    max-width: 1180px;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    border-bottom: 2px solid var(--black);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.dashboard-title {
    margin: 8px 0 0;
    font-family: var(--heading);
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
}

.dashboard-contract {
    display: grid;
    gap: 2px;
    min-width: 220px;
    border-left: 4px solid var(--red);
    padding-left: 18px;
}

.dashboard-contract span,
.detail-list dt,
.progress-meta,
.dashboard-timeline-step span {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.dashboard-contract strong {
    font-size: 20px;
    font-weight: 700;
}

.statement-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 0;
    border: 2px solid var(--black);
    background: var(--white);
    margin-bottom: 18px;
}

.statement-main {
    display: grid;
    align-content: center;
    gap: 12px;
    min-height: 270px;
    padding: clamp(28px, 5vw, 48px);
}

.statement-main strong {
    font-family: var(--heading);
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 500;
    line-height: 0.98;
}

.statement-main > span:last-child {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 300;
}

.statement-side {
    display: grid;
    border-left: 2px solid var(--black);
}

.statement-side div {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 90px;
    border-bottom: 1px solid var(--border-medium);
    padding: 20px 24px;
}

.statement-side div:last-child {
    border-bottom: 0;
}

.statement-side strong {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: 18px;
    margin-bottom: 18px;
}

.detail-panel,
.eligibility-panel,
.timeline-panel,
.recent-panel {
    border: 2px solid var(--border-subtle);
    background: var(--white);
    padding: 24px;
}

.detail-panel {
    border-color: var(--black);
}

.eligibility-panel {
    border-left: 4px solid var(--red);
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 2px solid var(--black);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.detail-list div {
    display: grid;
    grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    padding: 13px 0;
}

.detail-list div:last-child {
    border-bottom: 0;
}

.detail-list dd {
    margin: 0;
    font-weight: 500;
}

.eligibility-panel p {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 17px;
    font-weight: 300;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.timeline-panel,
.recent-panel {
    margin-bottom: 18px;
}

.dashboard-timeline {
    display: grid;
    grid-template-columns: repeat(7, minmax(104px, 1fr));
    overflow-x: auto;
    border: 2px solid var(--black);
}

.dashboard-timeline-step {
    display: grid;
    gap: 4px;
    min-height: 84px;
    border-right: 1px solid var(--black);
    padding: 14px;
}

.dashboard-timeline-step:last-child {
    border-right: 0;
}

.dashboard-timeline-step.is-active {
    background: var(--black);
    color: var(--white);
}

.dashboard-timeline-step.is-active span {
    color: var(--white);
}

.dashboard-table {
    margin-top: 0;
}

.dashboard-table .data-table th,
.fund-table .data-table th,
.return-table .data-table th {
    position: static;
}

.dashboard-mobile-records {
    margin-top: 12px;
}

.contribution-page {
    max-width: 1180px;
}

.contribution-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    border-bottom: 2px solid var(--black);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.contribution-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 2px solid var(--black);
    margin-bottom: 18px;
}

.contribution-summary > div {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 132px;
    border-right: 1px solid var(--black);
    padding: 22px;
}

.contribution-summary > div:last-child {
    border-right: 0;
}

.contribution-summary strong {
    font-family: var(--heading);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
    line-height: 1;
}

.contribution-summary > div > span:last-child {
    color: var(--text-muted);
    font-size: 13px;
}

.contribution-filter {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(180px, 260px) auto;
    gap: 14px;
    align-items: end;
    border: 2px solid var(--border-subtle);
    background: var(--white);
    padding: 20px;
    margin-bottom: 18px;
}

.contribution-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contribution-list-panel {
    border: 2px solid var(--border-subtle);
    background: var(--white);
    padding: 24px;
}

.contribution-table .data-table th {
    position: static;
}

.contribution-empty {
    margin-top: 18px;
}

.contribution-mobile-list {
    margin-top: 12px;
}

.contribution-card {
    background: var(--white);
}

.contribution-card-amount {
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
}

.contribution-card-meta {
    display: grid;
    gap: 8px;
    margin: 0;
}

.contribution-card-meta div {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 8px;
}

.contribution-card-meta dt {
    color: var(--text-muted);
    font-size: 13px;
}

.contribution-card-meta dd {
    margin: 0;
}

.fund-page,
.return-page,
.document-page,
.profile-page {
    max-width: 1180px;
}

.fund-document,
.return-projection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    border: 2px solid var(--black);
    background: var(--white);
    margin-bottom: 18px;
}

.fund-document-main,
.return-projection-main {
    display: grid;
    align-content: center;
    gap: 10px;
    min-height: 220px;
    padding: clamp(28px, 5vw, 44px);
}

.fund-document-main h2,
.return-projection-main strong {
    margin: 0;
    font-family: var(--heading);
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 500;
    line-height: 1;
}

.fund-document-main p,
.return-projection-main p {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 300;
}

.fund-document-meta,
.return-projection-meta {
    display: grid;
    margin: 0;
    border-left: 2px solid var(--black);
}

.fund-document-meta div,
.return-projection-meta div {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 82px;
    border-bottom: 1px solid var(--border-medium);
    padding: 18px 22px;
}

.fund-document-meta div:last-child,
.return-projection-meta div:last-child {
    border-bottom: 0;
}

.fund-document-meta dt,
.return-projection-meta dt,
.document-meta dt {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.fund-document-meta dd,
.return-projection-meta dd,
.document-meta dd {
    margin: 0;
    font-weight: 700;
}

.fund-terms-grid,
.profile-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.fund-term-panel,
.fund-rate-panel,
.fund-formula-panel,
.fund-example-panel,
.return-table-panel,
.document-list,
.profile-panel {
    border: 2px solid var(--border-subtle);
    background: var(--white);
    padding: 24px;
}

.fund-term-panel-accent,
.profile-panel-strong {
    border-color: var(--black);
}

.fund-rate-panel,
.fund-formula-panel,
.fund-example-panel,
.return-table-panel,
.document-list {
    margin-bottom: 18px;
}

.rate-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(112px, 1fr));
    overflow-x: auto;
    border: 2px solid var(--black);
}

.rate-strip div {
    display: grid;
    gap: 2px;
    min-height: 112px;
    border-right: 1px solid var(--black);
    padding: 14px;
}

.rate-strip div:last-child {
    border-right: 0;
}

.rate-strip span,
.rate-strip small {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.rate-strip strong {
    align-self: end;
    font-family: var(--heading);
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
}

.formula-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 2px solid var(--black);
}

.formula-grid div {
    display: grid;
    gap: 10px;
    min-height: 170px;
    border-right: 1px solid var(--black);
    padding: 20px;
}

.formula-grid div:last-child {
    border-right: 0;
}

.formula-grid strong {
    font-size: 18px;
    line-height: 1.25;
}

.formula-grid p {
    margin: 0;
    color: var(--text-muted);
}

.formula-index {
    color: var(--red);
    font-family: var(--heading);
    font-size: 28px;
    line-height: 1;
}

.return-summary,
.document-summary,
.profile-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 2px solid var(--black);
    margin-bottom: 18px;
}

.document-summary,
.profile-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.return-summary > div,
.document-summary > div,
.profile-summary > div {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 132px;
    border-right: 1px solid var(--black);
    padding: 22px;
}

.return-summary > div:last-child,
.document-summary > div:last-child,
.profile-summary > div:last-child {
    border-right: 0;
}

.return-summary strong,
.document-summary strong,
.profile-summary strong {
    font-family: var(--heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 500;
    line-height: 1;
}

.return-summary > div > span:last-child,
.document-summary > div > span:last-child,
.profile-summary > div > span:last-child {
    color: var(--text-muted);
    font-size: 13px;
}

.return-mobile-list {
    margin-top: 12px;
}

.return-card {
    background: var(--white);
}

.document-list {
    display: grid;
    gap: 12px;
}

.document-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border: 2px solid var(--border-subtle);
    padding: 18px;
}

.document-type {
    border-left: 4px solid var(--red);
    padding-left: 12px;
    font-weight: 700;
}

.document-card-main {
    display: grid;
    gap: 12px;
}

.document-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 14px 28px;
    margin: 0;
}

.document-action {
    justify-self: end;
}

.profile-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
    align-items: start;
}

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

.header-row,
.action-row,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.grid {
    display: grid;
    gap: 16px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel,
.metric,
.callout {
    background: var(--white);
    border: 2px solid var(--border-subtle);
    padding: 24px;
}

.panel-strong {
    border-color: var(--black);
}

.panel-red {
    border-top: 4px solid var(--red);
}

.metric {
    min-height: 132px;
    display: grid;
    align-content: space-between;
    gap: 14px;
}

.metric-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.metric-value {
    font-family: var(--heading);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.05;
}

.metric-note {
    color: var(--text-muted);
    font-size: 13px;
}

.callout {
    border-color: var(--black);
    border-left: 6px solid var(--red);
    background: var(--surface);
}

.executive-dashboard {
    max-width: 1240px;
}

.executive-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    border-bottom: 2px solid var(--black);
    padding-bottom: 24px;
    margin-bottom: 18px;
}

.executive-hero-copy p,
.executive-dashboard .section-head p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.55;
}

.executive-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.executive-command-strip {
    display: grid;
    grid-template-columns: 1.05fr repeat(3, minmax(0, 1fr));
    border: 2px solid var(--black);
    background: var(--white);
    margin-bottom: 18px;
}

.executive-command-card {
    display: grid;
    align-content: space-between;
    gap: 14px;
    min-height: 150px;
    border-right: 1px solid var(--black);
    padding: 22px;
}

.executive-command-card:last-child {
    border-right: 0;
}

.executive-command-card-primary {
    background: var(--black);
    color: var(--white);
}

.executive-command-card-primary .metric-label,
.executive-command-card-primary .metric-note {
    color: var(--white);
}

.executive-command-card-alert {
    border-top: 5px solid var(--red);
}

.executive-command-card .metric-value {
    font-size: clamp(28px, 4vw, 46px);
    overflow-wrap: anywhere;
}

.executive-main-grid,
.executive-work-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 18px;
    margin-bottom: 18px;
}

.executive-work-grid {
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
}

.executive-work-grid-bottom {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-bottom: 0;
}

.executive-panel {
    min-width: 0;
    border: 2px solid var(--border-subtle);
    background: var(--white);
    padding: 24px;
}

.executive-panel-priority {
    border-color: var(--black);
}

.executive-panel-priority .section-head > strong {
    min-width: 92px;
    border: 2px solid var(--black);
    padding: 8px 12px;
    text-align: center;
    font-size: 16px;
}

.executive-dashboard .section-head {
    margin-bottom: 18px;
}

.executive-exception-list,
.status-breakdown,
.executive-action-list,
.audit-list {
    display: grid;
    gap: 10px;
}

.executive-exception-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 2px solid var(--border-medium);
    color: var(--black);
    padding: 16px;
}

.executive-exception-item:hover {
    border-color: var(--black);
    background: var(--surface);
}

.executive-exception-item strong,
.executive-action-list span,
.audit-list-item strong {
    display: block;
    font-weight: 700;
}

.executive-exception-item small,
.executive-action-list small,
.audit-list-item small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.executive-exception-item b {
    font-family: var(--heading);
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
}

.exception-marker {
    width: 14px;
    height: 52px;
    background: var(--red);
}

.exception-marker-strong {
    background: var(--black);
}

.executive-plan-panel {
    border-top: 4px solid var(--red);
}

.executive-plan-grid {
    display: grid;
    border: 2px solid var(--black);
}

.executive-plan-grid div {
    display: grid;
    grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 84px;
    border-bottom: 1px solid var(--black);
    padding: 18px 20px;
}

.executive-plan-grid div:last-child {
    border-bottom: 0;
}

.executive-plan-grid strong {
    font-family: var(--heading);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 500;
    line-height: 1.1;
    text-align: right;
    overflow-wrap: anywhere;
}

.text-link {
    border-bottom: 2px solid var(--black);
    color: var(--black);
    font-size: 13px;
    font-weight: 700;
}

.text-link:hover {
    color: var(--red);
    border-color: var(--red);
}

.status-breakdown-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

.status-breakdown-row:first-child {
    padding-top: 0;
}

.status-breakdown-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.status-breakdown-row > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.status-breakdown-row > div > span:last-child {
    color: var(--text-muted);
    font-size: 13px;
}

.status-breakdown-row strong {
    white-space: nowrap;
}

.executive-action-list a {
    display: block;
    border: 2px solid var(--border-medium);
    color: var(--black);
    padding: 15px 16px;
}

.executive-action-list a:hover {
    border-color: var(--black);
    background: var(--black);
    color: var(--white);
}

.executive-action-list a:hover small {
    color: var(--white);
}

.executive-table th {
    position: static;
}

.audit-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

.audit-list-item:first-child {
    padding-top: 0;
}

.audit-list-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.audit-list-item time {
    color: var(--text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.employee-directory {
    max-width: 1240px;
}

.directory-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    border-bottom: 2px solid var(--black);
    padding-bottom: 24px;
    margin-bottom: 18px;
}

.directory-hero-copy p,
.directory-toolbar p,
.directory-results .section-head p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.55;
}

.directory-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.directory-summary {
    display: grid;
    grid-template-columns: 1.08fr repeat(3, minmax(0, 1fr));
    border: 2px solid var(--black);
    margin-bottom: 18px;
}

.directory-summary-card {
    display: grid;
    align-content: space-between;
    gap: 14px;
    min-height: 144px;
    border-right: 1px solid var(--black);
    background: var(--white);
    padding: 22px;
}

.directory-summary-card:last-child {
    border-right: 0;
}

.directory-summary-card-primary {
    background: var(--black);
    color: var(--white);
}

.directory-summary-card-primary .metric-label,
.directory-summary-card-primary .metric-note {
    color: var(--white);
}

.directory-summary-card-alert {
    border-top: 5px solid var(--red);
}

.directory-toolbar,
.directory-results {
    border: 2px solid var(--border-subtle);
    background: var(--white);
    padding: 24px;
    margin-bottom: 18px;
}

.directory-toolbar {
    border-color: var(--black);
}

.directory-filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.62fr) minmax(170px, 0.48fr) auto;
    gap: 14px;
    align-items: end;
    margin-top: 18px;
}

.directory-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.directory-page-indicator {
    border: 2px solid var(--black);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.employee-directory-table th {
    position: static;
}

.employee-directory-table td {
    vertical-align: middle;
}

.employee-directory-table td strong,
.employee-directory-table td span {
    display: block;
}

.directory-subline {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 13px;
}

.directory-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.employee-mobile-list {
    gap: 12px;
}

.employee-mobile-card {
    border: 2px solid var(--border-medium);
    background: var(--white);
    padding: 18px;
}

.employee-mobile-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    border-bottom: 2px solid var(--black);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.employee-mobile-card h2 {
    margin: 0;
    font-family: var(--heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.15;
}

.employee-mobile-card-head span:not(.status) {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.employee-mobile-meta {
    display: grid;
    gap: 0;
    margin: 0 0 14px;
}

.employee-mobile-meta div {
    display: grid;
    grid-template-columns: minmax(108px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
}

.employee-mobile-meta div:first-child {
    padding-top: 0;
}

.employee-mobile-meta div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.employee-mobile-meta dt {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.employee-mobile-meta dd {
    margin: 0;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.employee-profile-admin {
    max-width: 1240px;
}

.employee-profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    border-bottom: 2px solid var(--black);
    padding-bottom: 24px;
    margin-bottom: 18px;
}

.employee-profile-identity p,
.employee-profile-admin .section-head p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.55;
}

.employee-profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.employee-profile-strip {
    display: grid;
    grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
    border: 2px solid var(--black);
    margin-bottom: 18px;
}

.employee-profile-card {
    display: grid;
    align-content: space-between;
    gap: 14px;
    min-height: 144px;
    border-right: 1px solid var(--black);
    background: var(--white);
    padding: 22px;
}

.employee-profile-card:last-child {
    border-right: 0;
}

.employee-profile-card-primary {
    background: var(--black);
    color: var(--white);
}

.employee-profile-card-primary .metric-label,
.employee-profile-card-primary .metric-note {
    color: var(--white);
}

.employee-profile-card-primary .status {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.employee-profile-card-alert {
    border-top: 5px solid var(--red);
}

.employee-profile-card > strong {
    display: block;
    font-family: var(--heading);
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 500;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.employee-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
    gap: 18px;
    margin-bottom: 18px;
}

.employee-profile-grid-bottom {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-bottom: 0;
}

.employee-profile-panel {
    min-width: 0;
    border: 2px solid var(--border-subtle);
    background: var(--white);
    padding: 24px;
    margin-bottom: 18px;
}

.employee-profile-grid .employee-profile-panel,
.employee-profile-grid-bottom .employee-profile-panel {
    margin-bottom: 0;
}

.employee-profile-panel-strong {
    border-color: var(--black);
}

.employee-profile-admin-panel {
    border-left: 5px solid var(--red);
    background: var(--surface);
}

.employee-profile-admin .section-head {
    margin-bottom: 18px;
}

.employee-profile-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.employee-profile-detail-list div {
    display: grid;
    grid-template-columns: minmax(152px, 0.36fr) minmax(0, 1fr);
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    padding: 13px 0;
}

.employee-profile-detail-list div:first-child {
    padding-top: 0;
}

.employee-profile-detail-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.employee-profile-detail-list dt {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.employee-profile-detail-list dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.employee-fund-panel {
    border-color: var(--black);
}

.employee-fund-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 2px solid var(--black);
    margin-bottom: 18px;
}

.employee-fund-summary div {
    display: grid;
    align-content: center;
    gap: 10px;
    min-height: 132px;
    border-right: 1px solid var(--black);
    padding: 20px;
}

.employee-fund-summary div:last-child {
    border-right: 0;
}

.employee-fund-summary strong {
    font-family: var(--heading);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 500;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.employee-fund-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.employee-profile-table th {
    position: static;
}

.employee-document-list {
    display: grid;
    gap: 10px;
}

.employee-document-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

.employee-document-row:first-child {
    padding-top: 0;
}

.employee-document-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.employee-document-row strong,
.employee-document-row small {
    display: block;
}

.employee-document-row small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 13px;
}

.employee-document-actions,
.employee-document-upload-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.employee-document-upload-panel .section-head {
    margin-bottom: 16px;
}

.employee-document-upload-form {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 18px;
}

.employee-document-upload-list {
    display: grid;
    gap: 0;
    margin-top: 18px;
}

.employee-document-upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

.employee-document-upload-row:first-child {
    padding-top: 0;
}

.employee-document-upload-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.employee-document-upload-row strong,
.employee-document-upload-row small {
    display: block;
}

.employee-document-upload-row small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 13px;
}

.employee-contribution-mobile-list {
    gap: 12px;
}

.employee-contribution-card {
    display: grid;
    gap: 10px;
    border: 2px solid var(--border-medium);
    background: var(--white);
    padding: 16px;
}

.employee-contribution-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.employee-contribution-card strong {
    font-weight: 700;
}

.employee-contribution-card > span {
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
}

.employee-contribution-card small {
    color: var(--text-muted);
    font-size: 13px;
}

.employee-edit-page,
.membership-admin-page,
.membership-create-page {
    max-width: 1240px;
}

.employee-edit-hero,
.membership-hero,
.membership-create-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    border-bottom: 2px solid var(--black);
    padding-bottom: 24px;
    margin-bottom: 18px;
}

.employee-edit-hero p,
.membership-hero p,
.membership-create-hero p,
.employee-edit-form .section-head p,
.membership-list-panel .section-head p,
.membership-create-form .section-head p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.55;
}

.employee-edit-actions,
.membership-hero-actions,
.membership-create-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.employee-edit-summary,
.membership-summary-strip {
    display: grid;
    border: 2px solid var(--black);
    margin-bottom: 18px;
}

.employee-edit-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.membership-summary-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.employee-edit-summary article,
.membership-summary-card {
    display: grid;
    align-content: space-between;
    gap: 12px;
    min-height: 132px;
    border-right: 1px solid var(--black);
    background: var(--white);
    padding: 20px;
}

.employee-edit-summary article:last-child,
.membership-summary-card:last-child {
    border-right: 0;
}

.employee-edit-summary strong,
.membership-summary-card strong {
    font-family: var(--heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.membership-summary-card-dark {
    background: var(--black);
    color: var(--white);
}

.membership-summary-card-dark .metric-label,
.membership-summary-card-dark .metric-note {
    color: var(--white);
}

.employee-edit-workspace,
.membership-create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
    gap: 18px;
    align-items: start;
}

.employee-edit-form,
.employee-edit-side-panel,
.membership-list-panel,
.membership-create-form,
.membership-create-side-panel {
    min-width: 0;
    border: 2px solid var(--border-subtle);
    background: var(--white);
    padding: 24px;
}

.employee-edit-form,
.membership-create-form {
    border-color: var(--black);
}

.employee-edit-form > .form-grid.two,
.membership-create-fields {
    gap: 16px 18px;
}

.employee-edit-form .field input[readonly] {
    background: var(--surface);
    color: var(--text-muted);
}

.employee-edit-submit-row,
.membership-create-submit-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 18px;
}

.employee-edit-side,
.membership-create-side {
    display: grid;
    gap: 18px;
}

.employee-edit-side-panel-dark,
.membership-create-side-panel-dark {
    display: grid;
    gap: 14px;
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.employee-edit-side-panel-dark .metric-label,
.employee-edit-side-panel-dark p,
.membership-create-side-panel-dark .metric-label,
.membership-create-side-panel-dark .metric-note {
    color: var(--white);
}

.employee-edit-side-panel-dark .status {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
}

.employee-edit-side-panel p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.membership-list-panel {
    border-color: var(--black);
}

.membership-admin-table {
    min-width: 980px;
}

.membership-admin-table th {
    position: static;
}

.membership-mobile-list {
    gap: 12px;
}

.membership-mobile-card {
    display: grid;
    gap: 12px;
    border: 2px solid var(--border-medium);
    background: var(--white);
    padding: 16px;
}

.membership-mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.membership-mobile-card-head strong,
.membership-mobile-card-head small {
    display: block;
}

.membership-mobile-card-head small {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 13px;
}

.membership-mobile-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.membership-mobile-card dl div {
    display: grid;
    grid-template-columns: minmax(108px, 0.44fr) minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
    padding: 9px 0;
}

.membership-mobile-card dl div:first-child {
    padding-top: 0;
}

.membership-mobile-card dl div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.membership-mobile-card dt {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.membership-mobile-card dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.membership-create-field-wide {
    grid-column: 1 / -1;
}

.membership-create-callout {
    border: 2px solid var(--black);
    border-left: 6px solid var(--red);
    background: var(--surface);
    padding: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.membership-create-side-panel-dark strong {
    font-family: var(--heading);
    font-size: clamp(40px, 6vw, 58px);
    font-weight: 500;
    line-height: 1;
}

.membership-plan-list {
    display: grid;
    gap: 12px;
}

.membership-plan-row {
    display: grid;
    gap: 8px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.membership-plan-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.membership-plan-row strong,
.membership-plan-row small {
    display: block;
}

.membership-plan-row small {
    color: var(--text-muted);
    font-size: 13px;
}

.admin-workspace-page {
    max-width: 1240px;
}

.workspace-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    border-bottom: 2px solid var(--black);
    padding-bottom: 24px;
    margin-bottom: 18px;
}

.workspace-hero p,
.workspace-panel .section-head p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.55;
}

.workspace-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.workspace-summary-strip {
    display: grid;
    border: 2px solid var(--black);
    margin-bottom: 18px;
}

.workspace-summary-strip-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace-summary-card {
    display: grid;
    align-content: space-between;
    gap: 12px;
    min-height: 132px;
    border-right: 1px solid var(--black);
    background: var(--white);
    padding: 20px;
}

.workspace-summary-card:last-child {
    border-right: 0;
}

.workspace-summary-card strong {
    font-family: var(--heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.workspace-summary-card-dark,
.workspace-side-panel-dark {
    background: var(--black);
    color: var(--white);
}

.workspace-summary-card-dark .metric-label,
.workspace-summary-card-dark .metric-note,
.workspace-side-panel-dark .metric-label,
.workspace-side-panel-dark .metric-note {
    color: var(--white);
}

.workspace-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.workspace-grid-side,
.reports-grid,
.settings-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.55fr);
    align-items: start;
}

.workspace-panel,
.workspace-side-panel {
    min-width: 0;
    border: 2px solid var(--border-subtle);
    background: var(--white);
    padding: 24px;
}

.workspace-panel-strong {
    border-color: var(--black);
}

.workspace-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 0.44fr)) auto;
    gap: 14px;
    align-items: end;
}

.workspace-filter-actions,
.workspace-submit-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.workspace-submit-row {
    border-top: 1px solid var(--border-subtle);
    padding-top: 18px;
}

.workspace-callout {
    border: 2px solid var(--black);
    border-left: 6px solid var(--red);
    background: var(--surface);
    padding: 16px;
    font-weight: 700;
    line-height: 1.5;
}

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

.workspace-side-panel {
    display: grid;
    gap: 14px;
}

.workspace-side-panel p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.workspace-side-panel-dark p {
    color: var(--white);
}

.workspace-side-number,
.workspace-side-panel-dark strong {
    font-family: var(--heading);
    font-size: clamp(40px, 6vw, 58px);
    font-weight: 500;
    line-height: 1;
}

.workspace-table th {
    position: static;
}

.contribution-admin-table {
    min-width: 980px;
}

.contribution-status-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contribution-status-form select {
    min-width: 134px;
}

.contribution-create-field-wide {
    grid-column: 1 / -1;
}

.mobile-card-list {
    gap: 12px;
}

.mobile-data-card {
    display: grid;
    gap: 12px;
    border: 2px solid var(--border-medium);
    background: var(--white);
    padding: 16px;
}

.mobile-data-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mobile-data-card-head strong,
.mobile-data-card-head small {
    display: block;
}

.mobile-data-card-head small,
.mobile-data-card dt {
    color: var(--text-muted);
    font-size: 13px;
}

.mobile-data-card-value {
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
}

.mobile-data-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.mobile-data-card dl div {
    display: grid;
    grid-template-columns: minmax(108px, 0.44fr) minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
    padding: 9px 0;
}

.mobile-data-card dl div:first-child {
    padding-top: 0;
}

.mobile-data-card dl div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mobile-data-card dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.reports-pack-list {
    display: grid;
    gap: 10px;
}

.reports-pack-list span {
    border: 2px solid var(--border-medium);
    padding: 13px 14px;
    font-weight: 700;
}

.settings-rate-list {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 2px solid var(--black);
}

.settings-rate-list div {
    display: grid;
    gap: 10px;
    min-height: 116px;
    border-right: 1px solid var(--black);
    padding: 18px;
}

.settings-rate-list div:last-child {
    border-right: 0;
}

.settings-rate-list strong {
    font-family: var(--heading);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 500;
    line-height: 1.1;
}

.settings-maintenance-panel {
    margin-bottom: 18px;
}

.settings-maintenance-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
    gap: 18px;
    align-items: start;
}

.settings-duration-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.settings-maintenance-preview {
    display: grid;
    gap: 16px;
    border: 2px solid var(--black);
    background: var(--surface);
    padding: 20px;
}

.settings-maintenance-preview > strong {
    font-family: var(--heading);
    font-size: clamp(36px, 5vw, 54px);
    font-weight: 500;
    line-height: 1;
}

.settings-maintenance-preview .employee-profile-detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
}

.settings-maintenance-preview .employee-profile-detail-list dd {
    overflow-wrap: anywhere;
}

.settings-countdown,
.settings-countdown-labels {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    text-align: center;
}

.settings-countdown span {
    display: grid;
    min-height: 48px;
    place-items: center;
    border: 2px solid var(--black);
    background: var(--white);
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.settings-countdown-labels span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.settings-page > .workspace-callout {
    margin-top: 18px;
}

.flash {
    border: 2px solid var(--black);
    padding: 14px 16px;
    background: var(--surface);
    font-weight: 700;
}

.flash-error {
    border-left: 6px solid var(--red);
}

.tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 2px solid var(--black);
    margin: 24px 0;
}

.tab-button {
    border: 0;
    border-right: 2px solid var(--black);
    background: var(--white);
    color: var(--black);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 12px;
    text-transform: uppercase;
}

.tab-button:last-child {
    border-right: 0;
}

.tab-button.is-active {
    background: var(--black);
    color: var(--white);
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    color: var(--black);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.action-row select {
    width: 100%;
    min-height: 44px;
    border: 2px solid var(--border-medium);
    border-radius: 0;
    background: var(--white);
    color: var(--black);
    padding: 8px 14px;
}

.field textarea {
    min-height: 108px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.action-row select:focus {
    border-color: var(--black);
    outline: none;
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--black);
}

.field .error {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
}

.helper {
    color: var(--text-muted);
    font-size: 12px;
}

.button {
    align-items: center;
    background: var(--black);
    border: 2px solid var(--black);
    color: var(--white);
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.06em;
    min-height: 44px;
    padding: 10px 24px;
    text-transform: uppercase;
}

.button:hover {
    background: var(--red);
    border-color: var(--red);
}

.button:disabled,
.button[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
}

.button:disabled:hover,
.button[disabled]:hover {
    background: transparent;
    border-color: var(--black);
    color: var(--black);
}

.button-secondary {
    background: transparent;
    color: var(--black);
}

.button-secondary:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.button-light {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
}

.button-small {
    min-height: 34px;
    padding: 6px 14px;
    font-size: 12px;
}

.button-danger {
    background: var(--red);
    border-color: var(--red);
}

.button-danger:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

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

.table-wrap {
    overflow-x: auto;
    border: 2px solid var(--border-subtle);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: var(--white);
}

.data-table th,
.data-table td {
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    position: sticky;
    top: 58px;
    z-index: 5;
    background: var(--black);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.employee-directory .employee-directory-table th,
.executive-dashboard .executive-table th,
.employee-profile-admin .employee-profile-table th,
.membership-admin-page .membership-admin-table th,
.admin-workspace-page .workspace-table th {
    position: static;
    top: auto;
    z-index: auto;
}

.data-table tr:hover td {
    background: var(--surface);
}

.status {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    width: fit-content;
    border: 2px solid var(--black);
    color: var(--black);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    padding: 6px 10px;
    white-space: nowrap;
}

.status-active,
.status-success {
    background: var(--black);
    color: var(--white);
}

.status-pending,
.status-warning {
    background: #FEF3C7;
    border-color: #CA8A04;
    color: #92400E;
}

.status-paid {
    background: #EFF6FF;
    border-color: #2563EB;
    color: #1D4ED8;
}

.status-verified,
.status-eligible {
    background: #ECFDF5;
    border-color: #16A34A;
    color: #047857;
}

.status-error {
    background: #FEF2F2;
    border-color: var(--red);
    color: #B91C1C;
}

.status-locked,
.status-cancelled,
.status-muted {
    background: var(--surface);
    border-color: var(--border-medium);
    color: var(--text-muted);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(7, minmax(80px, 1fr));
    gap: 0;
    overflow-x: auto;
    border: 2px solid var(--black);
}

.timeline-step {
    min-height: 92px;
    border-right: 2px solid var(--black);
    padding: 12px;
    background: var(--white);
}

.timeline-step:last-child {
    border-right: 0;
}

.timeline-step.is-active {
    background: var(--black);
    color: var(--white);
}

.progress {
    height: 16px;
    border: 2px solid var(--black);
    background: var(--white);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--red);
}

.empty-state {
    border: 2px dashed var(--border-medium);
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
    background: var(--surface);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.mobile-cards {
    display: none;
}

.disclaimer {
    border: 2px solid var(--black);
    border-left: 6px solid var(--red);
    padding: 16px;
    color: var(--black);
    background: var(--surface);
}

.logout-form {
    margin: 0;
}

.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 (min-width: 900px) {
    .auth-shell:not(.auth-shell-refined) {
        grid-template-columns: minmax(340px, 0.85fr) minmax(420px, 1fr);
    }

    .auth-brand {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-bottom: 0;
        border-right: 4px solid var(--black);
        padding: 48px;
    }

    .auth-shell:not(.auth-shell-refined) .auth-panel {
        align-self: center;
        padding: 48px;
    }
}

@media (max-width: 899px) {
    .auth-shell-refined {
        align-items: start;
        padding: 20px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 34px;
    }

    .auth-copy {
        border-left-width: 3px;
        padding-left: 20px;
    }

    .auth-title {
        font-size: clamp(42px, 14vw, 62px);
    }

    .auth-lede {
        font-size: 18px;
    }

    .auth-facts {
        margin-top: 26px;
    }
}

@media (max-width: 1023px) {
    .dashboard-hero,
    .executive-hero,
    .executive-main-grid,
    .executive-work-grid,
    .directory-hero,
    .employee-profile-hero,
    .employee-profile-grid,
    .employee-profile-grid-bottom,
    .employee-edit-hero,
    .employee-edit-workspace,
    .membership-hero,
    .membership-create-hero,
    .membership-create-grid,
    .workspace-hero,
    .workspace-grid-side,
    .reports-grid,
    .settings-grid,
    .settings-maintenance-grid,
    .contribution-hero,
    .fund-document,
    .return-projection,
    .statement-panel,
    .dashboard-grid,
    .fund-terms-grid,
    .profile-layout,
    .contribution-summary,
    .return-summary,
    .document-summary,
    .profile-summary,
    .contribution-filter {
        grid-template-columns: 1fr;
    }

    .dashboard-contract {
        min-width: 0;
    }

    .executive-command-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .executive-command-card:nth-child(2) {
        border-right: 0;
    }

    .executive-command-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--black);
    }

    .executive-hero-actions {
        justify-content: flex-start;
    }

    .directory-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .directory-summary-card:nth-child(2) {
        border-right: 0;
    }

    .directory-summary-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--black);
    }

    .directory-filter-form {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 0.6fr);
    }

    .directory-filter-actions,
    .directory-hero-actions {
        justify-content: flex-start;
    }

    .employee-profile-strip,
    .employee-fund-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-profile-card:nth-child(2),
    .employee-fund-summary div:nth-child(2) {
        border-right: 0;
    }

    .employee-profile-card:nth-child(-n+2),
    .employee-fund-summary div:nth-child(-n+2) {
        border-bottom: 1px solid var(--black);
    }

    .employee-profile-actions {
        justify-content: flex-start;
    }

    .employee-edit-summary,
    .membership-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-edit-summary article:nth-child(2),
    .membership-summary-card:nth-child(2) {
        border-right: 0;
    }

    .employee-edit-summary article:nth-child(-n+2),
    .membership-summary-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--black);
    }

    .employee-edit-summary article:nth-child(3) {
        border-right: 0;
        grid-column: 1 / -1;
    }

    .employee-edit-actions,
    .membership-hero-actions,
    .membership-create-actions,
    .workspace-actions {
        justify-content: flex-start;
    }

    .workspace-summary-strip-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-summary-card:nth-child(2) {
        border-right: 0;
    }

    .workspace-summary-card:nth-child(-n+2) {
        border-bottom: 1px solid var(--black);
    }

    .workspace-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workspace-search-field,
    .workspace-filter-actions {
        grid-column: 1 / -1;
    }

    .workspace-filter-actions {
        justify-content: flex-start;
    }

    .settings-rate-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-rate-list div:nth-child(2n) {
        border-right: 0;
    }

    .settings-rate-list div {
        border-bottom: 1px solid var(--black);
    }

    .settings-rate-list div:nth-last-child(-n+1) {
        border-bottom: 0;
    }

    .statement-side {
        border-left: 0;
        border-top: 2px solid var(--black);
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .statement-side div {
        border-bottom: 0;
        border-right: 1px solid var(--border-medium);
    }

    .statement-side div:last-child {
        border-right: 0;
    }

    .contribution-summary > div {
        border-right: 0;
        border-bottom: 1px solid var(--black);
    }

    .contribution-summary > div:last-child {
        border-bottom: 0;
    }

    .return-summary > div,
    .document-summary > div,
    .profile-summary > div {
        border-right: 0;
        border-bottom: 1px solid var(--black);
    }

    .return-summary > div:last-child,
    .document-summary > div:last-child,
    .profile-summary > div:last-child {
        border-bottom: 0;
    }

    .fund-document-meta,
    .return-projection-meta {
        border-left: 0;
        border-top: 2px solid var(--black);
    }

    .formula-grid {
        grid-template-columns: 1fr;
    }

    .formula-grid div {
        min-height: 132px;
        border-right: 0;
        border-bottom: 1px solid var(--black);
    }

    .formula-grid div:last-child {
        border-bottom: 0;
    }

    .document-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .document-action {
        justify-self: start;
    }

    .password-panel {
        grid-column: auto;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 40;
        width: min(86vw, 320px);
        transform: translateX(-100%);
        transition: transform 180ms ease;
    }

    body.nav-open .sidebar {
        transform: translateX(0);
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .mobile-menu-button.button {
        display: inline-flex;
    }
}

@media (max-width: 767px) {
    .auth-shell-refined {
        padding: 16px;
    }

    .auth-top {
        align-items: center;
        gap: 12px;
        padding-bottom: 14px;
    }

    .brand-lockup {
        gap: 10px;
    }

    .brand-logo {
        width: 52px;
        height: 54px;
    }

    .auth-code {
        min-width: 58px;
        padding: 6px 10px;
        font-size: 16px;
    }

    .auth-facts div {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 13px 0;
    }

    .auth-panel {
        padding: 20px;
    }

    .auth-panel-head {
        display: grid;
    }

    .maintenance-page {
        padding: 16px;
    }

    .maintenance-shell {
        align-content: start;
        min-height: calc(100vh - 32px);
        padding-top: 16px;
    }

    .maintenance-brand {
        gap: 10px;
    }

    .maintenance-panel {
        gap: 16px;
        border-left-width: 4px;
        padding-left: 18px;
    }

    .maintenance-panel .page-title {
        font-size: clamp(44px, 16vw, 64px);
    }

    .maintenance-panel p {
        font-size: 18px;
    }

    .maintenance-countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .maintenance-countdown div {
        min-height: 104px;
        border-bottom: 1px solid var(--black);
    }

    .maintenance-countdown div:nth-child(2n) {
        border-right: 0;
    }

    .maintenance-countdown div:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .maintenance-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .password-row {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 24px 16px 48px;
    }

    .executive-hero {
        gap: 18px;
        padding-bottom: 18px;
    }

    .directory-hero {
        gap: 18px;
        padding-bottom: 18px;
    }

    .employee-profile-hero {
        gap: 18px;
        padding-bottom: 18px;
    }

    .employee-edit-hero,
    .membership-hero,
    .membership-create-hero,
    .workspace-hero {
        gap: 18px;
        padding-bottom: 18px;
    }

    .executive-hero-copy p,
    .executive-dashboard .section-head p,
    .directory-hero-copy p,
    .directory-toolbar p,
    .directory-results .section-head p,
    .employee-profile-identity p,
    .employee-profile-admin .section-head p,
    .employee-edit-hero p,
    .membership-hero p,
    .membership-create-hero p,
    .employee-edit-form .section-head p,
    .membership-list-panel .section-head p,
    .membership-create-form .section-head p,
    .workspace-hero p,
    .workspace-panel .section-head p {
        font-size: 15px;
    }

    .executive-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .directory-hero-actions,
    .directory-filter-actions,
    .employee-profile-actions,
    .employee-edit-actions,
    .membership-hero-actions,
    .membership-create-actions,
    .workspace-actions,
    .employee-edit-submit-row,
    .membership-create-submit-row,
    .workspace-filter-actions,
    .workspace-submit-row,
    .contribution-status-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .executive-command-strip,
    .executive-plan-grid,
    .directory-summary,
    .directory-filter-form,
    .employee-profile-strip,
    .employee-fund-summary,
    .employee-fund-detail-list,
    .employee-edit-summary,
    .membership-summary-strip,
    .workspace-summary-strip-4,
    .workspace-filter-form,
    .settings-duration-grid,
    .settings-rate-list {
        grid-template-columns: 1fr;
    }

    .executive-command-card,
    .executive-command-card:nth-child(2) {
        min-height: 126px;
        border-right: 0;
        border-bottom: 1px solid var(--black);
        padding: 18px;
    }

    .executive-command-card:last-child {
        border-bottom: 0;
    }

    .directory-summary-card,
    .directory-summary-card:nth-child(2) {
        min-height: 124px;
        border-right: 0;
        border-bottom: 1px solid var(--black);
        padding: 18px;
    }

    .directory-summary-card:last-child {
        border-bottom: 0;
    }

    .employee-profile-card,
    .employee-profile-card:nth-child(2),
    .employee-fund-summary div,
    .employee-fund-summary div:nth-child(2) {
        min-height: 124px;
        border-right: 0;
        border-bottom: 1px solid var(--black);
        padding: 18px;
    }

    .employee-profile-card:last-child,
    .employee-fund-summary div:last-child {
        border-bottom: 0;
    }

    .employee-edit-summary article,
    .employee-edit-summary article:nth-child(2),
    .employee-edit-summary article:nth-child(3),
    .membership-summary-card,
    .membership-summary-card:nth-child(2) {
        min-height: 124px;
        border-right: 0;
        border-bottom: 1px solid var(--black);
        padding: 18px;
    }

    .employee-edit-summary article:last-child,
    .membership-summary-card:last-child {
        border-bottom: 0;
    }

    .workspace-summary-card,
    .workspace-summary-card:nth-child(2) {
        min-height: 124px;
        border-right: 0;
        border-bottom: 1px solid var(--black);
        padding: 18px;
    }

    .workspace-summary-card:last-child {
        border-bottom: 0;
    }

    .executive-panel {
        padding: 20px;
    }

    .directory-toolbar,
    .directory-results,
    .employee-profile-panel,
    .employee-edit-form,
    .employee-edit-side-panel,
    .membership-list-panel,
    .membership-create-form,
    .membership-create-side-panel,
    .workspace-panel,
    .workspace-side-panel {
        padding: 20px;
    }

    .employee-table-view {
        display: none;
    }

    .employee-directory .mobile-cards {
        display: grid;
    }

    .employee-profile-admin .mobile-cards {
        display: grid;
    }

    .membership-admin-page .mobile-cards {
        display: grid;
    }

    .admin-workspace-page .mobile-cards {
        display: grid;
    }

    .employee-contribution-table-view {
        display: none;
    }

    .membership-table-view {
        display: none;
    }

    .employee-mobile-card-head {
        grid-template-columns: 1fr;
    }

    .employee-profile-detail-list div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .employee-document-row,
    .employee-document-upload-row,
    .employee-contribution-card > div,
    .membership-mobile-card-head,
    .mobile-data-card-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .employee-document-row {
        display: grid;
    }

    .employee-document-upload-row {
        display: grid;
    }

    .employee-contribution-card > div {
        display: grid;
    }

    .membership-mobile-card-head {
        display: grid;
    }

    .mobile-data-card-head {
        display: grid;
    }

    .employee-document-actions,
    .employee-document-upload-actions {
        justify-content: flex-start;
    }

    .membership-mobile-card dl div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .mobile-data-card dl div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .settings-rate-list div,
    .settings-rate-list div:nth-child(2n) {
        min-height: 102px;
        border-right: 0;
        border-bottom: 1px solid var(--black);
        padding: 18px;
    }

    .settings-rate-list div:last-child {
        border-bottom: 0;
    }

    .settings-countdown,
    .settings-countdown-labels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .executive-plan-grid div {
        border-right: 0;
        border-bottom: 1px solid var(--black);
    }

    .executive-plan-grid div:last-child {
        border-bottom: 0;
    }

    .status-breakdown-row,
    .audit-list-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .status-breakdown-row strong,
    .audit-list-item time {
        white-space: normal;
    }

    .dashboard-hero {
        gap: 18px;
        padding-bottom: 18px;
    }

    .contribution-hero {
        gap: 18px;
        padding-bottom: 18px;
    }

    .dashboard-title {
        font-size: clamp(38px, 13vw, 52px);
    }

    .statement-main {
        min-height: 220px;
        padding: 24px;
    }

    .statement-main strong {
        font-size: clamp(42px, 13vw, 58px);
    }

    .statement-main > span:last-child {
        font-size: 16px;
    }

    .statement-side {
        grid-template-columns: 1fr;
    }

    .statement-side div {
        min-height: 78px;
        border-right: 0;
        border-bottom: 1px solid var(--border-medium);
        padding: 16px 20px;
    }

    .statement-side div:last-child {
        border-bottom: 0;
    }

    .detail-panel,
    .eligibility-panel,
    .timeline-panel,
    .recent-panel,
    .contribution-list-panel,
    .fund-term-panel,
    .fund-rate-panel,
    .fund-formula-panel,
    .fund-example-panel,
    .return-table-panel,
    .document-list,
    .profile-panel {
        padding: 18px;
    }

    .section-head {
        display: grid;
        gap: 10px;
    }

    .detail-list div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .progress-meta {
        display: grid;
        gap: 2px;
    }

    .contribution-filter {
        padding: 16px;
    }

    .contribution-filter-actions {
        display: grid;
    }

    .contribution-card-meta div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .fund-document-main,
    .return-projection-main {
        min-height: 180px;
        padding: 24px;
    }

    .fund-document-main h2,
    .return-projection-main strong {
        font-size: clamp(34px, 12vw, 48px);
    }

    .fund-table {
        display: block;
    }

    .document-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .form-grid.two {
        grid-template-columns: 1fr;
    }

    .table-wrap {
        display: none;
    }

    .fund-table {
        display: block;
    }

    .mobile-cards {
        display: grid;
        gap: 12px;
    }

    .mobile-row-card {
        border: 2px solid var(--border-subtle);
        padding: 16px;
        display: grid;
        gap: 10px;
    }

    .topbar {
        padding: 12px 16px;
    }
}
