.appearance-choice{display:block;padding:.8rem .7rem;border-top:1px solid var(--ape-border,#e7eeee);margin-top:.35rem}
.appearance-choice label{display:block;font-weight:650;margin-bottom:.4rem}
.appearance-choice select{width:100%;min-height:44px;padding:.5rem .65rem;border:1px solid #adc5c8;border-radius:8px;background:var(--ape-surface,#fff);color:var(--ape-ink,#173f46);font:inherit}
.appearance-choice small{display:block;margin-top:.4rem;font-size:.8rem;line-height:1.4;color:var(--ape-muted,#62777a)}
@media screen{
    html[data-theme=dark]{--ape-primary:#56c8d3;--ape-primary-dark:#76d5de;--ape-orange:#faac36;--ape-coral:#ff928a;--ape-ink:#e4eef0;--ape-muted:#adc1c6;--ape-bg:#0f171c;--ape-surface:#18252c;--ape-border:#344851;color-scheme:dark;background:var(--ape-bg);color:var(--ape-ink)}
    html[data-theme=dark] body{background:var(--ape-bg);color:var(--ape-ink)}
    html[data-theme=dark] .topbar{background:linear-gradient(110deg,#10272f,#15404a 65%,#19525e)}
    html[data-theme=dark] .sidebar{background:#142128}
    html[data-theme=dark] :is(.card,.filters,.table-scroll,.responsive-table,.sidebar-context,.login-card,.empty,.empty-state,.attention-card,.module-card,.essential-summary-tile,.essential-preview,.essential-review,.essential-partner-info,.account-menu__panel,.global-add[open] div,.portal-list>a,.student-row,.identity-grid>div,.process-steps div,.account-strip>a,.account-strip>div,.requester-card,.quick-parent,.request-summary,.help-panel,.upload-zone,dialog){background:var(--ape-surface);color:var(--ape-ink);border-color:var(--ape-border)}
    html[data-theme=dark] :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=range]):not([type=color]){background:#101d24;color:var(--ape-ink);border-color:#57717b}
    html[data-theme=dark] :is(input,textarea)::placeholder{color:#9bb0b7;opacity:1}
    html[data-theme=dark] :is(input,select,textarea){accent-color:#56c8d3}
    html[data-theme=dark] :is(th,thead){background:#20323a;color:#c3d7dc}
    html[data-theme=dark] :is(th,td,fieldset,.module-header,.account-menu__identity,.account-menu__panel form,.ape-form section,.security-row){border-color:var(--ape-border)}
    html[data-theme=dark] :is(.nav-group[open],.sidebar .nav-group[open]){background:#1c2d35;border-color:var(--ape-border)}
    html[data-theme=dark] :is(.sidebar a:hover,.sidebar a.active,.sidebar .ape-nav-item:hover,.sidebar .ape-nav-item.active,.sidebar summary:hover,.account-menu__panel a:hover,.account-menu__panel button:hover,.global-add a:hover,.search-results a:hover,.module-card:hover,.essential-summary-tile:has(.essential-tile-link:hover)){background:#23404a;color:#a2e8ed}
    html[data-theme=dark] :is(.nav-heading,.nav-subheading,.module-header p,.module-card p,.essential-balance-date,.account-menu__identity small,.login-help,.login-intro){color:var(--ape-muted)}
    html[data-theme=dark] :is(.essential-priority,.account-menu__panel a){color:var(--ape-ink)}
    html[data-theme=dark] :is(.module-card-arrow,.essential-progress,.sidebar .icon){color:var(--ape-primary-dark)}
    html[data-theme=dark] :is(.module-header-icon,.module-card-icon,.attention-icon,.help-icon,.icon-tile,.document-icon){background:#23404a;color:#9de3e8}
    html[data-theme=dark] :is(.button,.date-tile,.process-steps strong){background:#1b7282;border-color:#398a99;color:#fff}
    html[data-theme=dark] :is(.button.primary,.portal-nav a.active,.family-tabs button[aria-selected=true]),html[data-theme=dark] .partner-tabs .button[aria-current=page]{background:#1b7282;border-color:#398a99;color:#fff}
    html[data-theme=dark] .button:hover{background:#245e6b;color:#fff}
    html[data-theme=dark] .button.secondary{background:#20353e;border-color:#577783;color:#a2e8ed}
    html[data-theme=dark] .button.secondary:hover{background:#2a4651}
    html[data-theme=dark] .hero-balance{background:linear-gradient(120deg,#17424c,#1b7282);color:#fff}
    html[data-theme=dark] :is(.account-menu__panel button,.text-button.danger,.negative){color:#ffaaa3}
    html[data-theme=dark] .positive{color:#8cddb6}
    html[data-theme=dark] :is(.notice,.notice.info,.badge,.badge-info){background:#203d48;color:#b0e3ec;border-color:#416371}
    html[data-theme=dark] :is(.notice.success,.badge-success,.status-matched,.is-ok){background:#1c3d32;color:#a3e4be;border-color:#3e6b54}
    html[data-theme=dark] :is(.notice.warning,.badge-warning,.status-partially_matched,.status-suggested,.is-attention){background:#44371f;color:#f7d78e;border-color:#786239}
    html[data-theme=dark] :is(.notice.error,.badge-danger,.is-late){background:#492b2d;color:#ffc0b9;border-color:#805154}
    html[data-theme=dark] :is(a,button,input,select,textarea,summary):focus-visible{outline-color:#9de3e8}
    html[data-theme=dark] dialog::backdrop{background:#0009}
}
/* Component styles may be loaded in the page body, after this stylesheet. */
@media screen {
    html[data-theme=dark] body .partner-directory{--directory-border:var(--ape-border);--directory-soft:#20353e}
    html[data-theme=dark] body :is(.directory-filters,.directory-column-panel,.directory-exports>div,.directory-table-wrap,.directory-bulk,.review-selection-bar,.attachment-drop,.cash-denomination,.deliverability-item,.attachment-drop.drag-over,.access-selected,.access-after,.cockpit-toolbar dialog){background:var(--ape-surface);color:var(--ape-ink);border-color:var(--ape-border)}
    html[data-theme=dark] body .directory-table tbody tr{background:var(--ape-surface);color:var(--ape-ink)}
    html[data-theme=dark] body .partner-directory[data-view=cards] .directory-table tbody tr{background:var(--ape-surface);color:var(--ape-ink);border-color:var(--ape-border)}
    html[data-theme=dark] body .directory-table tbody tr:nth-child(even){background:#1c2c34}
    html[data-theme=dark] body .directory-table tbody tr:hover{background:#25424b}
    html[data-theme=dark] body .partner-directory .directory-table :is(th,thead){background:#20353e;color:#d0e3e7;border-color:var(--ape-border)}
    html[data-theme=dark] body .directory-table :is(th a,th[aria-sort] a){color:#a2e8ed}
    html[data-theme=dark] body .directory-table td{border-color:var(--ape-border)}
    html[data-theme=dark] body :is(.directory-selection-bar,.recipient-count,.cockpit-tile-tools,.directory-options[open]>summary,.directory-exports[open]>summary){background:#20353e;color:var(--ape-ink);border-color:var(--ape-border)}
    html[data-theme=dark] body :is(.cash-stepper button,.directory-view-switch button,.directory-column-panel li button,.editor-tools button,.editor-tools summary,.cockpit-tile-tools button){background:#20353e;color:#a2e8ed;border-color:#577783}
    html[data-theme=dark] body .directory-view-switch button[aria-pressed=true]{background:#1b7282;color:#fff}
    html[data-theme=dark] body .directory-row-actions summary{border-color:#577783;color:#a2e8ed}
    html[data-theme=dark] body :is(.partner-directory .directory-status-ready,.partner-directory .directory-status-accepted,.partner-directory .directory-status-received){background:#1c3d32;color:#a3e4be}
    html[data-theme=dark] body :is(.partner-directory .directory-status-to_verify,.access-email-warning){background:#44371f;color:#f7d78e;border-color:#786239}
    html[data-theme=dark] body .partner-directory .directory-status-sent{background:#203d48;color:#b0e3ec}
    html[data-theme=dark] body :is(.partner-directory .directory-status-refused,.partner-directory .directory-status-closed){background:#3c3037;color:#e4c3cc}
    html[data-theme=dark] body .directory-priority-high{color:#ffbd93}
    html[data-theme=dark] body :is(.cockpit-edit-help,.field-help,.draft-status,.step-title p,.recipient-count span,.deliverability-item small){color:var(--ape-muted)}
    html[data-theme=dark] body .dashboard-welcome{background:linear-gradient(120deg,#193941,#233139);border-color:var(--ape-border)}
    html[data-theme=dark] body .next-event{background:var(--ape-surface);border-color:var(--ape-border)}
    html[data-theme=dark] body :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=range]):not([type=color]){background:#101d24;color:var(--ape-ink);border-color:#57717b}
    html[data-theme=dark] body .ape-pagination .ape-page[aria-disabled=true]{background:#1c2c34;color:#adc1c6;border-color:var(--ape-border)}
    html[data-theme=dark] body :is(button:disabled,input:disabled,select:disabled,textarea:disabled){opacity:.65}
    /* Mail/PDF previews keep the document's original paper and ink colours. */
    html[data-theme=dark] body #message-preview{background:#fff;color:#173f46;color-scheme:light}
}

@media print{:root{color-scheme:light!important}}
