/* Heritage Camp: scoped presentation only. Native print rules remain authoritative.
 * !important bridges existing inline style attributes/late legacy declarations;
 * it is limited to paint, spacing and control sizing, never visibility or workflow state.
 */
.olivet-heritage {
    --olivet-hc-red: #a80736;
    --olivet-hc-red-hover: #83052a;
    --olivet-hc-slate: #6f8290;
    --olivet-hc-slate-dark: #405563;
    --olivet-hc-ivory: #f0ece4;
    --olivet-hc-charcoal: #3f4850;
    --olivet-hc-white: #ffffff;
    --olivet-hc-border: #c6c8c7;
    --olivet-hc-control-border: #6f8290;
    --olivet-hc-slate-wash: #eaf0f3;
    --olivet-hc-tan: #e2d6c2;
    --olivet-hc-success: #24613d;
    --olivet-hc-success-wash: #edf6ef;
    --olivet-hc-warning: #745016;
    --olivet-hc-warning-wash: #fff5da;
    --olivet-hc-error: #9b2525;
    --olivet-hc-error-wash: #fff0ee;
    --olivet-hc-radius: 10px;
    --olivet-hc-radius-control: 7px;
    --olivet-hc-radius-dialog: 12px;
    --olivet-hc-space-card: 24px;
    --olivet-hc-space-section: 28px;
    --olivet-hc-space-field: 18px;
    --olivet-hc-space-label: 8px;
    --olivet-hc-space-compact: 16px;
    --olivet-hc-space-control-block: 10px;
    --olivet-hc-space-control-inline: 12px;
}
@media screen {
    /* Only the private content surface; never Astra header/footer or wp-admin chrome. */
    body.olivet-heritage-private #content,
    body.olivet-heritage-admin #wpbody-content { background-color: var(--olivet-hc-ivory); }
    .olivet-heritage-private :is(.olivet-s9b, .olivet-s9c2, .olivet-s9d1, .olivet-rentable, .olivet-facility-management, .olivet-dcr-request, .olivet-dcr-admin) {
        --green: var(--olivet-hc-red);
        --line: var(--olivet-hc-border);
    }
    .olivet-heritage-private :is(.olivet-board-shell, .olivet-board-main, .olivet-admin-panel, .olivet-admin-controls, .olivet-admin-submission, .olivet-s9b, .olivet-s9c2, .olivet-s9d1, .olivet-profile-shell, .olivet-session-section, .olivet-session-submission, .olivet-first-use-guidance, .olivet-participant-waivers, .olivet-dcr-request, .olivet-dcr-admin, .olivet-rentable, .olivet-facility-management, .olivet-uat-form-preview, .olivet-uat-reset, .olivet-copy-future, .olivet-annual-card, #nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont),
    .olivet-heritage-admin #wpbody-content > .wrap { color: var(--olivet-hc-charcoal); }
    .olivet-heritage-private :is(.olivet-board-shell, .olivet-board-main, .olivet-admin-panel, .olivet-admin-submission, .olivet-s9b, .olivet-s9c2, .olivet-s9d1, .olivet-profile-shell, .olivet-session-section, .olivet-session-submission, .olivet-first-use-guidance, .olivet-participant-waivers, .olivet-dcr-request, .olivet-dcr-admin, .olivet-rentable, .olivet-facility-management, .olivet-uat-form-preview, .olivet-annual-card) :is(h1, h2, h3, h4, h5, dt),
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) :is(h1, h2, h3, h4, h5, dt),
    .olivet-heritage-private :is(.olivet-admin-section-heading, .olivet-admin-controls) :is(h2, label),
    .olivet-heritage-admin #wpbody-content > .wrap :is(h1, h2, h3, h4, label, th) { color: var(--olivet-hc-charcoal) !important; }

    /* Identity bands retain their existing layout and controls. */
    .olivet-heritage-private :is(.olivet-portal-header, .olivet-board-header, .olivet-admin-compliance-header, .olivet-uat-form-preview > header) {
        background: var(--olivet-hc-slate-dark) !important;
        color: var(--olivet-hc-white) !important;
        border-top: 4px solid var(--olivet-hc-red);
        border-radius: var(--olivet-hc-radius);
    }
    .olivet-heritage-private :is(.olivet-portal-header, .olivet-board-header, .olivet-admin-compliance-header, .olivet-uat-form-preview > header) :is(h1, h2, h3, p, dt, dd) { color: var(--olivet-hc-white) !important; }
    .olivet-heritage-private :is(.olivet-portal-header, .olivet-board-header, .olivet-admin-compliance-header) a { background: var(--olivet-hc-white) !important; color: var(--olivet-hc-red) !important; border-color: var(--olivet-hc-white) !important; }

    /* White cards and ivory/help surfaces; semantic success/warnings are excluded. */
    .olivet-heritage-private :is(.olivet-board-panel, .olivet-board-cards article, .olivet-board-organizations article, .olivet-admin-org-card, .olivet-admin-form-list article, .olivet-annual-card, .olivet-session-card, .olivet-s9b-card, .olivet-s9b-editor, .olivet-s9d1-row, .olivet-s9d1 .start, .olivet-s9d1 .review, .olivet-s9d1 .add, .olivet-s9c2-upload, .olivet-s9c2-review, .olivet-s9c2-history, .olivet-rentable-add, .olivet-rentable-window, .olivet-facility-list > article, .olivet-facility-detail, .olivet-facility-settings, .olivet-dcr-admin-row, .olivet-dcr-admin-detail, .olivet-participant-waiver-card, .olivet-uat-form-preview, .olivet-s9d1c-draft-card) {
        background-color: var(--olivet-hc-white) !important;
        border-color: var(--olivet-hc-border);
        border-radius: var(--olivet-hc-radius);
    }
    .olivet-heritage-private :is(.olivet-admin-controls, .olivet-first-use-guidance, .olivet-session-section, .olivet-schedule-tools, .olivet-scheduling-help, .olivet-schedule-drafts, .olivet-administrator-testing, .olivet-s9b-help, .olivet-s9b-history, .olivet-dcr-technical, .olivet-profile-intro, .olivet-profile-membership, .olivet-participant-waiver-suggestion, .olivet-s9d1-help, .olivet-s9d1-source-summary, .olivet-s9d1b-date-compare > div, .olivet-s9c2-row dl div, .olivet-s9b-card dl div, .olivet-s9d1-row dl div, .olivet-admin-record-meta > div, .olivet-session-record-meta > div) {
        background: var(--olivet-hc-ivory) !important;
        border-color: var(--olivet-hc-border);
    }
    .olivet-heritage-private :is(.olivet-first-use-grid > div, .olivet-s9b-add-panel, .olivet-condition-heading, .olivet-exit-next-year) { background-color: var(--olivet-hc-white); border-color: var(--olivet-hc-border); }
    .olivet-heritage-private :is(.olivet-first-use-guidance, .olivet-exit-next-year, .olivet-participant-waivers > h3, .olivet-admin-viewer-heading, .olivet-session-viewer-heading) { border-left-color: var(--olivet-hc-slate); border-bottom-color: var(--olivet-hc-slate); }
    .olivet-heritage-private :is(.olivet-caretaker-identity, .olivet-caretaker-signature, .olivet-caretaker-signature-identity) { background: var(--olivet-hc-slate-wash); color: var(--olivet-hc-slate-dark); border-color: var(--olivet-hc-slate); }
    .olivet-heritage-private :is(.olivet-admin-eyebrow, .olivet-board-eyebrow, .olivet-board-session-date, .olivet-admin-card-sessions time, .olivet-admin-card-sessions h4, .olivet-session-organization, .olivet-session-meta, .olivet-first-use-date-change) { color: var(--olivet-hc-slate-dark); }

    .olivet-heritage-private .olivet-session-card.is-complete,
    .olivet-heritage-private .olivet-rentable-window.is-active { border-left-color: var(--olivet-hc-success); }
    .olivet-heritage-private .olivet-session-card.is-incomplete { border-left-color: var(--olivet-hc-warning); }
    .olivet-heritage-private .olivet-s9d1b-row.is-approved { background: var(--olivet-hc-success-wash) !important; border-left-color: var(--olivet-hc-success); }
    .olivet-heritage-private :is(.olivet-s9d1b-row.is-conflict, .olivet-s9d1b-row.is-invalid) { background: var(--olivet-hc-error-wash) !important; border-left-color: var(--olivet-hc-error); }
    .olivet-heritage-private :is(#nf-form-4-cont, #nf-form-5-cont) .olivet-condition-rating { border-color: var(--olivet-hc-border) !important; border-left-color: var(--olivet-hc-slate) !important; }
    /* Small reusable classes for future custom components, inside the same page scopes. */
    .olivet-heritage .olivet-hc-card { background: var(--olivet-hc-white); color: var(--olivet-hc-charcoal); border: 1px solid var(--olivet-hc-border); border-radius: var(--olivet-hc-radius); }
    .olivet-heritage .olivet-hc-help { background: var(--olivet-hc-ivory); color: var(--olivet-hc-charcoal); border-left: 4px solid var(--olivet-hc-slate); }
    .olivet-heritage .olivet-hc-primary { background: var(--olivet-hc-red); color: var(--olivet-hc-white); border: 1px solid var(--olivet-hc-red); min-height: 44px; }
    .olivet-heritage .olivet-hc-secondary { background: var(--olivet-hc-white); color: var(--olivet-hc-slate-dark); border: 1px solid var(--olivet-hc-slate-dark); min-height: 44px; }

    .olivet-heritage-private .olivet-s9b-add-panel > summary { background: var(--olivet-hc-slate-dark); color: var(--olivet-hc-white); border-color: var(--olivet-hc-slate-dark); }
    .olivet-heritage-private :is(.olivet-schedule-tools, .olivet-scheduling-help, .olivet-schedule-drafts, .olivet-administrator-testing) > summary { color: var(--olivet-hc-slate-dark); }

    /* Existing component actions only: no global theme/button reset. */
    .olivet-heritage-private :is(.olivet-admin-button, .olivet-admin-print, .olivet-session-action, .olivet-session-print, .olivet-participant-waiver-action, .olivet-pre-arrival-primary, .olivet-profile-submit, .olivet-board-print-link, .olivet-record-dialog-trigger, .olivet-annual-card > a, .olivet-s9b-form button, .olivet-s9b-inline-form button, .olivet-s9b-use-default button, .olivet-s9b-cancel button, .olivet-facility-management button, .olivet-rentable button, .olivet-s9c2 button, .olivet-s9d1 button, .olivet-dcr-request button, .olivet-dcr-decision button, .olivet-uat-reset button, .olivet-copy-future button, .olivet-admin-filter-actions button, .olivet-admin-year button, .olivet-board-section-heading button, .olivet-board-cards a, .olivet-board-organizations a, .olivet-uat-preview-actions a, .olivet-board-organization-actions a, .olivet-schedule-action-groups .olivet-new-event),
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) input[type="button"],
    .olivet-heritage-private .olivet-organization-dialog button,
    .olivet-heritage-private #olivet-record-modal button,
    .olivet-heritage-admin #wpbody-content > .wrap .button-primary {
        background: var(--olivet-hc-red) !important;
        border: 1px solid var(--olivet-hc-red) !important;
        color: var(--olivet-hc-white) !important;
        min-height: 44px;
        border-radius: var(--olivet-hc-radius-control);
        text-shadow: none;
    }
    .olivet-heritage-private :is(.olivet-admin-close, .olivet-session-close, .olivet-s9b-secondary, .olivet-s9d1 button.secondary, .olivet-pre-arrival-secondary, .olivet-dcr-secondary-action, .olivet-s9b-calendar-button, .olivet-s9b-add-actions a, .olivet-s9b-list-heading a, .olivet-schedule-tools a, .olivet-schedule-action-groups a:not(.olivet-new-event)),
    .olivet-heritage-private #olivet-record-modal :is(.olivet-record-modal-close, .olivet-record-modal-x),
    .olivet-heritage-admin #wpbody-content > .wrap .button-secondary {
        background: var(--olivet-hc-white) !important;
        border: 1px solid var(--olivet-hc-slate-dark) !important;
        color: var(--olivet-hc-slate-dark) !important;
        min-height: 44px;
        border-radius: var(--olivet-hc-radius-control);
    }
    .olivet-heritage-private :is(.olivet-s9b-danger, .olivet-rentable-deactivate button, .olivet-facility-decision.is-decline button, .olivet-dcr-decision.is-decline button) { background: var(--olivet-hc-error) !important; border-color: var(--olivet-hc-error) !important; color: var(--olivet-hc-white) !important; }
    .olivet-heritage-private :is(.olivet-admin-button, .olivet-session-action, .olivet-participant-waiver-action, .olivet-annual-card > a, .olivet-schedule-action-groups .olivet-new-event):hover,
    .olivet-heritage-admin #wpbody-content > .wrap .button-primary:hover { background: var(--olivet-hc-red-hover) !important; border-color: var(--olivet-hc-red-hover) !important; }

    .olivet-heritage-private :is(.olivet-shared-portal-nav, .olivet-board-section-nav, .olivet-board-nav, .olivet-facility-tabs, .olivet-dcr-months, .olivet-s9d1b-tabs) a {
        color: var(--olivet-hc-slate-dark) !important;
        background-color: var(--olivet-hc-white);
        border-color: var(--olivet-hc-control-border);
    }
    .olivet-heritage-private :is(.olivet-shared-portal-nav, .olivet-board-section-nav, .olivet-board-nav, .olivet-facility-tabs, .olivet-dcr-months, .olivet-s9d1b-tabs) :is(a.is-current, a[aria-current="page"]) { background: var(--olivet-hc-ivory) !important; color: var(--olivet-hc-red) !important; border-bottom: 3px solid var(--olivet-hc-red); font-weight: 800; }
    .olivet-heritage-private :is(.olivet-board-note, .olivet-session-neutral, .olivet-admin-empty-state) { background: var(--olivet-hc-slate-wash); color: var(--olivet-hc-slate-dark); }

    .olivet-heritage-private :is(.olivet-admin-back, .olivet-admin-filter-actions a, .olivet-profile-nav a, .olivet-first-use-guidance a, .olivet-participant-waiver-suggestion a) { color: var(--olivet-hc-red); }
    .olivet-heritage-private .olivet-admin-summary-item strong { color: var(--olivet-hc-charcoal); }
    .olivet-heritage-private .olivet-admin-summary-item small { color: var(--olivet-hc-slate-dark); }
    .olivet-heritage-private .olivet-admin-summary-item.is-active { background: var(--olivet-hc-ivory); border-top-color: var(--olivet-hc-red); border-right-color: var(--olivet-hc-red); border-bottom-color: var(--olivet-hc-red); box-shadow: 0 0 0 1px var(--olivet-hc-red); }
    .olivet-heritage .olivet-back-to-top { background: var(--olivet-hc-red); color: var(--olivet-hc-white); border-color: var(--olivet-hc-red); }
    .olivet-heritage .olivet-back-to-top:hover { background: var(--olivet-hc-red-hover); }

    /* Form content only. Never touch hidden fields, signatures, validation or disabled semantics. */
    .olivet-heritage-private :is(.olivet-s9b, .olivet-s9c2, .olivet-s9d1, .olivet-rentable, .olivet-facility-management, .olivet-dcr-request, .olivet-dcr-admin, .olivet-profile-shell, .olivet-admin-controls, .olivet-organization-dialog, #nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) :is(input:not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="radio"]):not([type="checkbox"]), select, textarea),
    .olivet-heritage-admin #wpbody-content > .wrap :is(input:not([type="hidden"]):not([type="submit"]):not([type="radio"]):not([type="checkbox"]), select, textarea) {
        background-color: var(--olivet-hc-white);
        color: var(--olivet-hc-charcoal);
        border-color: var(--olivet-hc-control-border);
        max-width: 100%;
        box-sizing: border-box;
        min-height: 44px;
    }
    .olivet-heritage :is(.olivet-organization-dialog, .olivet-annual-card, .olivet-admin-panel, .olivet-session-section, .olivet-s9b, .olivet-s9c2, .olivet-s9d1, .olivet-rentable, .olivet-facility-management, .olivet-dcr-request, .olivet-profile-shell, .olivet-uat-form-preview, .olivet-portal-header, .olivet-board-header, .olivet-board-main, .olivet-shared-portal-nav, .olivet-board-section-nav, .olivet-first-use-guidance, .olivet-participant-waivers, .olivet-schedule-tools, .olivet-schedule-drafts, .olivet-scheduling-help, #nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont, #olivet-record-modal, .olivet-facilities-page, .olivet-gallery-dialog, .olivet-public-availability, .olivet-facility-range-ui) :focus-visible,
    .olivet-heritage-admin #wpbody-content > .wrap :focus-visible { outline: 3px solid var(--olivet-hc-red) !important; outline-offset: 3px; box-shadow: 0 0 0 3px var(--olivet-hc-white) !important; }
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) :is(input[type="checkbox"], input[type="radio"]),
    .olivet-heritage-admin #wpbody-content > .wrap :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--olivet-hc-red); }
    .olivet-heritage-private .olivet-condition-rating .nf-field-element li label { border-color: var(--olivet-hc-control-border) !important; background: var(--olivet-hc-white) !important; color: var(--olivet-hc-charcoal); }
    .olivet-heritage-private .olivet-condition-rating .nf-field-element li label:hover { background: var(--olivet-hc-ivory) !important; }
    .olivet-heritage-private .olivet-condition-rating .nf-field-element :is(input:checked + label, label.nf-checked-label),
    .olivet-heritage-private #nf-field-16-container :is(input:checked + label, li:has(input:checked) label) { background: var(--olivet-hc-red) !important; color: var(--olivet-hc-white) !important; border-color: var(--olivet-hc-red) !important; box-shadow: inset 0 0 0 2px var(--olivet-hc-white) !important; font-weight: 800; }
    .olivet-heritage-private .olivet-condition-rating .nf-field-element input:focus-visible + label,
    .olivet-heritage-private #nf-field-16-container li:has(input:focus-visible) label { outline: 3px solid var(--olivet-hc-red) !important; outline-offset: 3px; box-shadow: 0 0 0 3px var(--olivet-hc-white) !important; }
    .olivet-heritage-private #nf-field-16-container label { color: var(--olivet-hc-charcoal); border-color: var(--olivet-hc-control-border); }

    /* Read-only calendar presentation; availability/completion retains its semantic green. */
    .olivet-heritage-private :is(.olivet-s9b-calendar, .olivet-ux1-board-calendar, .olivet-s9d1b-calendar) { background: var(--olivet-hc-white); border-color: var(--olivet-hc-slate); }
    .olivet-heritage-private :is(.olivet-s9b-weekday, .olivet-s9b-calendar-weekday, .olivet-ux1-weekday, .olivet-s9d1b-calendar-grid .weekday) { background: var(--olivet-hc-ivory); color: var(--olivet-hc-charcoal); }
    .olivet-heritage-private :is(.olivet-s9b-calendar-event:not(.is-cancelled), .olivet-ux1-event, .olivet-ux1-board-mobile-list .is-scheduled, .olivet-s9d1b-calendar-grid .event) { background: var(--olivet-hc-slate-dark) !important; color: var(--olivet-hc-white) !important; border-color: var(--olivet-hc-slate-dark); }
    .olivet-heritage-private .olivet-ux1-legend .is-scheduled::before { background: var(--olivet-hc-slate-dark); }
    .olivet-heritage-private :is(.olivet-s9b-calendar-nav, .olivet-ux1-calendar-nav) a { color: var(--olivet-hc-red); }
    .olivet-heritage-private :is(.olivet-range-toggle, .olivet-copy-range-toggle) { background: var(--olivet-hc-white) !important; color: var(--olivet-hc-slate-dark) !important; border-color: var(--olivet-hc-slate) !important; }
    .olivet-heritage-private :is(.olivet-range-days, .olivet-copy-range-days) button { background: var(--olivet-hc-ivory) !important; color: var(--olivet-hc-charcoal) !important; border-color: var(--olivet-hc-slate) !important; }
    .olivet-heritage-private :is(.olivet-range-days, .olivet-copy-range-days) button.is-range { background: var(--olivet-hc-tan) !important; }
    .olivet-heritage-private :is(.olivet-range-days, .olivet-copy-range-days) button.is-endpoint { background: var(--olivet-hc-red) !important; color: var(--olivet-hc-white) !important; border-color: var(--olivet-hc-red) !important; outline-color: var(--olivet-hc-red); }

    .olivet-heritage-private #olivet-caretaker-contact { background: var(--olivet-hc-slate-wash) !important; border-color: var(--olivet-hc-slate) !important; }
    .olivet-heritage-private #olivet-caretaker-contact :is(strong, p) { color: var(--olivet-hc-slate-dark) !important; }
    .olivet-heritage-private #olivet-caretaker-contact a { background: var(--olivet-hc-red) !important; color: var(--olivet-hc-white) !important; }
    .olivet-heritage .olivet-range-close { background: var(--olivet-hc-white) !important; color: var(--olivet-hc-slate-dark) !important; border-color: var(--olivet-hc-slate-dark) !important; }
    .olivet-heritage-private :is(.olivet-s9b, .olivet-s9c2, .olivet-s9d1, .olivet-rentable, .olivet-facility-management, .olivet-dcr-request, .olivet-dcr-admin, .olivet-organization-dialog, #olivet-record-modal) button:disabled,
    .olivet-heritage-admin #wpbody-content > .wrap :is(button:disabled, .button:disabled) { background: var(--olivet-hc-ivory) !important; color: var(--olivet-hc-slate-dark) !important; border-color: var(--olivet-hc-control-border) !important; cursor: not-allowed; }
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) input[readonly] { background: var(--olivet-hc-ivory); color: var(--olivet-hc-charcoal); }

    /* Native admin settings, scoped by the three exact screen IDs in the loader. */
    .olivet-heritage-admin #wpbody-content > .wrap { max-width: 1120px; }
    .olivet-heritage-admin #wpbody-content > .wrap > h1 { border-bottom: 3px solid var(--olivet-hc-red); padding-bottom: 14px; margin-bottom: 18px; }
    .olivet-heritage-admin #wpbody-content > .wrap > form { background: var(--olivet-hc-white); border: 1px solid var(--olivet-hc-border); border-radius: var(--olivet-hc-radius); padding: clamp(14px, 3vw, 24px); margin-block: 18px; }
    .olivet-heritage-admin #wpbody-content > .wrap details { border: 1px solid var(--olivet-hc-border); border-radius: 8px; padding: 12px 16px; margin-block: 12px; background: var(--olivet-hc-ivory); }
    .olivet-heritage-admin #wpbody-content > .wrap summary { color: var(--olivet-hc-slate-dark); font-weight: 700; cursor: pointer; padding-block: 8px; min-height: 44px; box-sizing: border-box; }
    .olivet-heritage-admin #wpbody-content > .wrap :is(input[type="text"], input[type="email"], textarea) { width: min(100%, 44rem); }
    .olivet-heritage-admin #wpbody-content > .wrap :is(pre, p, label, td) { overflow-wrap: anywhere; }
    .olivet-heritage-admin #wpbody-content > .wrap th { background: var(--olivet-hc-ivory); }
    .olivet-heritage-admin #wpbody-content > .wrap :is(td, th) { padding: 14px; }
    .olivet-heritage-admin #wpbody-content > .wrap :is(input:disabled, select:disabled, textarea:disabled, button:disabled) { background-color: var(--olivet-hc-ivory); color: var(--olivet-hc-slate-dark); cursor: not-allowed; }

    /* Dialog paint only: focus trap, scroll locking, hidden/print states stay in existing code. */
    .olivet-heritage-private :is(#olivet-record-modal, .olivet-organization-dialog) { background-color: var(--olivet-hc-white); color: var(--olivet-hc-charcoal); border-color: var(--olivet-hc-slate); }
    .olivet-heritage-private #olivet-record-modal::backdrop,
    .olivet-heritage-private .olivet-organization-dialog::backdrop { background: rgb(63 72 80 / 72%); }
    .olivet-heritage-private #olivet-record-modal :is(.olivet-record-modal-header, .olivet-record-modal-footer, [class*="-record-meta"] > div) { background: var(--olivet-hc-ivory); border-color: var(--olivet-hc-border); }
    .olivet-heritage-private #olivet-record-modal h2#olivet-record-modal-title { color: var(--olivet-hc-charcoal); }

    /* Facilities: existing editorial layout/photos/gallery remain in place. Public header untouched. */
    .olivet-heritage :is(.olivet-facilities-page) { --olivet-green: var(--olivet-hc-red); --olivet-green-dark: var(--olivet-hc-charcoal); --olivet-cream: var(--olivet-hc-ivory); --olivet-line: var(--olivet-hc-border); color: var(--olivet-hc-charcoal); }
    .olivet-heritage .olivet-facilities-page :is(.olivet-facility-section > h2, .olivet-facility-subsection h3, .olivet-facility-facts h4) { color: var(--olivet-hc-charcoal); }
    .olivet-heritage .olivet-facility-section > h2::after { background: var(--olivet-hc-red); }
    .olivet-heritage .olivet-facility-facts { background: var(--olivet-hc-ivory); border-left-color: var(--olivet-hc-slate); }
    .olivet-heritage .olivet-facilities-jump { background: var(--olivet-hc-white); box-shadow: 0 12px 28px rgb(63 72 80 / 12%); }
    .olivet-heritage .olivet-facilities-jump a { border-color: var(--olivet-hc-slate); color: var(--olivet-hc-red); }
    .olivet-heritage .olivet-facility-subsection { background-color: var(--olivet-hc-white); }
    .olivet-heritage .olivet-gallery-featured figcaption { background: var(--olivet-hc-slate-dark); color: var(--olivet-hc-white); }
    .olivet-heritage .olivet-facility-gallery .wp-block-image a[aria-current="true"] { border-color: var(--olivet-hc-red); }
    .olivet-heritage .olivet-gallery-dialog { background: var(--olivet-hc-charcoal); color: var(--olivet-hc-white); }
    .olivet-heritage .olivet-gallery-dialog button { background: var(--olivet-hc-white); color: var(--olivet-hc-charcoal); border-color: var(--olivet-hc-white); }
    .olivet-heritage .olivet-facilities-cta { background: var(--olivet-hc-ivory); color: var(--olivet-hc-charcoal); border: 1px solid var(--olivet-hc-tan); }
    .olivet-heritage .olivet-facilities-cta :is(h2, p) { color: var(--olivet-hc-charcoal); }
    .olivet-heritage .olivet-facilities-cta .wp-block-button__link { background: var(--olivet-hc-red); color: var(--olivet-hc-white); }
    /* Limited public pass: only existing custom availability and date-picker components. */
    .olivet-heritage :is(.olivet-public-availability, .olivet-public-availability-disclosure, .olivet-public-availability-ranges) { background-color: var(--olivet-hc-white); border-color: var(--olivet-hc-border); }
    .olivet-heritage .olivet-public-availability :is(h2, h3, summary) { color: var(--olivet-hc-charcoal); }
    .olivet-heritage .olivet-public-availability :is(a, .olivet-public-availability-eyebrow) { color: var(--olivet-hc-red); }
    .olivet-heritage .olivet-public-availability-weekday { background: var(--olivet-hc-ivory); color: var(--olivet-hc-charcoal); }
    .olivet-heritage .olivet-facility-range-toggle { color: var(--olivet-hc-slate-dark) !important; border-color: var(--olivet-hc-slate) !important; }
    .olivet-heritage .olivet-facility-range-days button { background: var(--olivet-hc-ivory) !important; color: var(--olivet-hc-charcoal) !important; }
    .olivet-heritage .olivet-facility-range-days button.is-range { background: var(--olivet-hc-tan) !important; }
    .olivet-heritage .olivet-facility-range-days button.is-endpoint { background: var(--olivet-hc-red) !important; color: var(--olivet-hc-white) !important; outline-color: var(--olivet-hc-red); }
    .olivet-heritage-public #nf-form-6-cont .olivet-facilities-checkboxes label { border-color: var(--olivet-hc-slate); color: var(--olivet-hc-charcoal); }
    .olivet-heritage-public #nf-form-6-cont .olivet-facilities-checkboxes :is(input:checked + label, li:has(input:checked) label) { background: var(--olivet-hc-red); border-color: var(--olivet-hc-red); color: var(--olivet-hc-white); }
    @media (max-width: 600px) {
        .olivet-heritage-admin #wpbody-content > .wrap > form { padding: 14px; }
        .olivet-heritage-admin #wpbody-content > .wrap :is(input, select, textarea) { max-width: 100%; }
    }
}

/* Shared spacing: existing components keep their layout/visibility and palette. */
@media screen {
    .olivet-heritage-private :is(.olivet-board-panel, .olivet-board-cards article, .olivet-board-organizations article, .olivet-admin-org-card, .olivet-admin-form-list article, .olivet-annual-card, .olivet-session-card, .olivet-s9b-card, .olivet-s9b-editor, .olivet-s9c2-upload, .olivet-s9c2-review, .olivet-s9c2-history, .olivet-s9d1-row, .olivet-rentable-add, .olivet-rentable-window, .olivet-facility-detail, .olivet-facility-settings, .olivet-dcr-admin-detail, .olivet-participant-waiver-card, .olivet-uat-form-preview),
    .olivet-heritage-private :is(.olivet-admin-submission, .olivet-session-submission, .olivet-s9b-add-panel-body),
    .olivet-heritage .olivet-hc-card,
    .olivet-heritage-admin #wpbody-content > .wrap > form {
        padding: var(--olivet-hc-space-card) !important;
        box-sizing: border-box;
        min-width: 0;
    }
    .olivet-heritage-private :is(.olivet-session-section, .olivet-first-use-guidance, .olivet-admin-controls, .olivet-profile-intro, .olivet-profile-membership, .olivet-schedule-tools, .olivet-scheduling-help, .olivet-schedule-drafts, .olivet-dcr-technical, .olivet-participant-waiver-suggestion),
    .olivet-heritage .olivet-hc-help {
        padding: var(--olivet-hc-space-compact);
        border-radius: var(--olivet-hc-radius);
    }
    .olivet-heritage-private :is(.olivet-admin-panel, .olivet-session-section, .olivet-first-use-guidance, .olivet-participant-waivers, .olivet-profile-intro, .olivet-profile-membership) { margin-block-end: var(--olivet-hc-space-section); }
    .olivet-heritage-private :is(.olivet-s9b-fields, .olivet-s9b-requirements, .olivet-dcr-fields, .olivet-profile-grid) { gap: var(--olivet-hc-space-field); }
    .olivet-heritage-private :is(.olivet-s9b-form, .olivet-s9b-inline-form, .olivet-facility-management, .olivet-dcr-fields, .olivet-profile-field, .olivet-organization-dialog) label { gap: var(--olivet-hc-space-label); }
    .olivet-heritage-private :is(.olivet-admin-section-heading, .olivet-session-heading, .olivet-s9b-add-heading, .olivet-s9b-list-heading, .olivet-facility-detail-heading) { margin-block-end: var(--olivet-hc-space-field); }
    .olivet-heritage-private :is(.olivet-s9b-add-actions, .olivet-admin-viewer-actions, .olivet-session-viewer-actions, .olivet-uat-preview-actions) { gap: var(--olivet-hc-space-label); margin-block-start: var(--olivet-hc-space-field); }

    .olivet-heritage-private .olivet-uat-form-preview > header dl :is(dt, dd) { color: var(--olivet-hc-charcoal) !important; }

    /* Form IDs 2/4/5 are the existing annual/Entrance/Exit forms, including Board/Admin previews.
     * One outer inset, not both a preview inset and an inner Ninja content inset. */
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) {
        padding: var(--olivet-hc-space-card);
        margin-block: var(--olivet-hc-space-section);
        border: 1px solid var(--olivet-hc-border);
        border-radius: var(--olivet-hc-radius);
        background: var(--olivet-hc-white);
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
    }
    .olivet-heritage-private .olivet-uat-preview-form :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) { padding: 0; margin: 0; border: 0; }
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) .nf-form-content { padding: 0; }
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) .nf-form-title > :is(h1, h2, h3, h4) { margin-block: 0 var(--olivet-hc-space-field); }
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) .nf-form-fields-required { margin-block-end: var(--olivet-hc-space-field); }
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) .nf-field-container:not(.hidden-container):not(.hr-container):not(.olivet-condition-rating) { margin-block-end: var(--olivet-hc-space-field); }
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) .nf-field-container.label-above:not(.checkbox-container):not(.listcheckbox-container):not(.listradio-container):not(.olivet-condition-rating) .field-wrap > .nf-field-label { margin-bottom: var(--olivet-hc-space-label) !important; }

    /* Shape/padding for ordinary text controls, never radios, checkboxes, hidden fields or canvases. */
    .olivet-heritage-private :is(.olivet-s9b, .olivet-s9c2, .olivet-s9d1, .olivet-rentable, .olivet-facility-management, .olivet-dcr-request, .olivet-dcr-admin, .olivet-profile-shell, .olivet-admin-controls, .olivet-organization-dialog) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="url"], input[type="search"], input:not([type]), select, textarea),
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="url"], input[type="search"], input:not([type]), select, textarea),
    .olivet-heritage-admin #wpbody-content > .wrap :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="url"], input[type="search"], input:not([type]), select, textarea) {
        padding: var(--olivet-hc-space-control-block) var(--olivet-hc-space-control-inline);
        border-radius: var(--olivet-hc-radius-control);
        line-height: 1.4;
        box-sizing: border-box;
        max-width: 100%;
    }
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="url"], input[type="search"], select:not([multiple])) { height: auto; min-height: 44px; width: 100%; }
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) textarea { width: 100%; }
    /* Ninja's light theme paints the select through its sibling div; retain that native layering. */
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) .list-select-wrap .nf-field-element > select + div { border-color: var(--olivet-hc-control-border); border-radius: var(--olivet-hc-radius-control); padding: var(--olivet-hc-space-control-block) var(--olivet-hc-space-control-inline); height: 100%; box-sizing: border-box; line-height: 1.4; background-color: var(--olivet-hc-white); color: var(--olivet-hc-charcoal); }
    .olivet-heritage-private :is(#nf-form-2-cont, #nf-form-4-cont, #nf-form-5-cont) .list-select-wrap .nf-field-element > select { background-color: transparent !important; }

    .olivet-heritage-private :is(.olivet-schedule-action-groups, .olivet-schedule-tools, .olivet-s9b-form, .olivet-s9b-inline-form, .olivet-facility-management, .olivet-dcr-request, .olivet-rentable, .olivet-s9c2, .olivet-s9d1, .olivet-organization-dialog) :is(button, a.olivet-admin-button, a.olivet-new-event),
    .olivet-heritage :is(.olivet-hc-primary, .olivet-hc-secondary),
    .olivet-heritage-admin #wpbody-content > .wrap .button { border-radius: var(--olivet-hc-radius-control); }
    .olivet-heritage-private :is(.olivet-organization-dialog, #olivet-record-modal) { border-radius: var(--olivet-hc-radius-dialog); }
    .olivet-heritage-private .olivet-organization-dialog { padding: var(--olivet-hc-space-card); }
    .olivet-heritage-private .olivet-organization-dialog footer { margin-top: var(--olivet-hc-space-field); }
    .olivet-heritage-private .olivet-organization-dialog label { margin-block: var(--olivet-hc-space-field) var(--olivet-hc-space-label); }
    .olivet-heritage-private #olivet-record-modal :is(.olivet-record-modal-header, .olivet-record-modal-footer) { padding: var(--olivet-hc-space-compact) var(--olivet-hc-space-card); }
    .olivet-heritage-private #olivet-record-modal .olivet-record-modal-content { padding: var(--olivet-hc-space-card); }
    .olivet-heritage-admin #wpbody-content > .wrap details { padding: var(--olivet-hc-space-compact); border-radius: var(--olivet-hc-radius); }
    .olivet-heritage-admin #wpbody-content > .wrap > form > p > label { margin-inline-end: var(--olivet-hc-space-label); }
    .olivet-heritage-admin #wpbody-content > .wrap > form > p { margin-block: var(--olivet-hc-space-field); }
    @media (max-width: 600px) {
        .olivet-heritage { --olivet-hc-space-card: 16px; --olivet-hc-space-section: 24px; --olivet-hc-space-field: 16px; --olivet-hc-space-label: 6px; --olivet-hc-space-compact: 12px; }
    }
}

/* Reminder Phase 1.5: only the existing native reminder screen. */
@media screen {
    /* SMS Settings fields: separate control focus from the label above it. */
    body.settings_page_olivet-sms-settings.olivet-heritage-admin #wpbody-content > .wrap form p > :is(input:not([type="hidden"]):not([type="submit"]):not([type="radio"]):not([type="checkbox"]), select, textarea) { display: block; margin-block-start: 8px; }
    body.settings_page_olivet-sms-settings.olivet-heritage-admin #wpbody-content > .wrap form :is(input:not([type="hidden"]):not([type="submit"]):not([type="radio"]):not([type="checkbox"]), select, textarea):focus-visible { outline: 3px solid var(--olivet-hc-red) !important; outline-offset: 2px; box-shadow: none !important; }

    .olivet-heritage-admin #wpbody-content > .olivet-reminders-admin { min-width: 0; }
    .olivet-heritage-admin .olivet-reminders-admin section { margin-block: var(--olivet-hc-space-section); min-width: 0; scroll-margin-block-start: 48px; }
    .olivet-heritage-admin .olivet-reminder-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
    .olivet-heritage-admin .olivet-reminder-nav a { display: inline-flex; align-items: center; min-height: 44px; }
    .olivet-heritage-admin .olivet-reminders-admin :is(select, input, textarea, pre) { max-width: 100%; }
    .olivet-heritage-admin .olivet-reminders-admin :is(summary, p, td, pre) { overflow-wrap: anywhere; }
    .olivet-heritage-admin .olivet-reminders-admin pre { white-space: pre-wrap; }
    .olivet-heritage-admin .olivet-reminder-table { overflow-x: auto; max-width: 100%; margin-block: var(--olivet-hc-space-field); }
    .olivet-heritage-admin .olivet-reminder-table table { width: 100%; min-width: 740px; border-collapse: collapse; }
    .olivet-heritage-admin .olivet-reminder-table :is(th, td) { text-align: left; vertical-align: top; padding: 10px; border-block-end: 1px solid var(--olivet-hc-border); }
    .olivet-heritage-admin .olivet-reminder-table caption { text-align: left; padding-block: 8px; }
    .olivet-heritage-admin .olivet-reminder-table:focus-visible { outline: 3px solid var(--olivet-hc-red); outline-offset: 2px; }
}
