/* Owner-only color tokens. Public pages retain their own brand palette. */
html[data-owner-area]{color-scheme:light}
.theme-control{display:flex;align-items:center;flex:none}
.theme-control select{font:inherit;font-size:16px;min-height:44px;max-width:132px;border:1px solid #8b929c;border-radius:8px;padding:8px 25px 8px 10px;background-color:#fff;color:#242b35;cursor:pointer}
html[data-theme=dark]{color-scheme:dark;--ink:#edf2f8;--muted:#b6c2d0;--red:#ff99a6;--red-dark:#ffb2bd;--blue:#a5caff;--paper:#101822;--white:#192534;--line:#42546a;--shadow:0 16px 50px #0002;--owner-surface:#192534;--owner-raised:#213247;--owner-soft:#25384e;--owner-control:#8295aa}
html[data-theme=dark] .owner-site{background:var(--paper);color:var(--ink)}
html[data-theme=dark] :is(.site-header,.admin-nav,.parent-panel,.history-panel,.form-card,.family-overview,.family-summary,.children-panel,.payment-card,.payment-preview,.login-section,.filter-sheet-panel,.leave-dialog,.stat,.family-sections a,.date-label){background:var(--owner-surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.button,.button-dark){background:#bd2438;color:#fff;border-color:#f07b8b}
html[data-theme=dark] :is(.button,.button-dark):hover{background:#a91d2f}
html[data-theme=dark] :is(.button-quiet,.button-outline){background:transparent;color:var(--ink);border-color:var(--owner-control)}
html[data-theme=dark] :is(.button-quiet,.button-outline):hover{background:var(--owner-soft);color:var(--ink)}
html[data-theme=dark] input:not([type=hidden]):not([type=checkbox]):not([type=radio]),html[data-theme=dark] select{background:var(--paper);color:var(--ink);border-color:var(--owner-control)}
html[data-theme=dark] input::placeholder{color:#a9b8c9}
html[data-theme=dark] input:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
html[data-theme=dark] input[type=checkbox],html[data-theme=dark] input[type=radio]{accent-color:#ff99a6}
html[data-theme=dark] .search-form #parent-search{background:var(--paper);border-color:var(--owner-control)}
html[data-theme=dark] :is(.parent-list-heading,.count-badge,.all-parents>span,.children-total,.payment-details,.payment-selection-footer,.empty-icon,.payment-close,.family-sections span,.row-action,.payment-new-due,.child-entry,.child-entry-card){background:var(--owner-raised);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.parent-identity p,.parent-row .mobile-field-label,.owner-footer,.login-help,.step-label,.input-suffix>span,.development-note,.stat-arrow,.search-icon){color:var(--muted)}
html[data-theme=dark] .parent-row:hover{background:var(--owner-raised)}
html[data-theme=dark] :is(.parent-row,.parent-list-heading,.empty-state,.form-card-heading,.form-actions,.payment-history li,.family-summary>div,.payment-timeline li,.owner-footer){border-color:var(--line)}
html[data-theme=dark] :is(.avatar,.form-icon,.lock-mark){background:#422534;border-color:#845365;color:#ffb2bd}
html[data-theme=dark] :is(.stat-late .stat-label,.field-validation-error){color:#ffacb6}
html[data-theme=dark] .stat-soon .stat-label{color:#f6cd82}
html[data-theme=dark] .stat-review .stat-label{color:#d0baff}
html[data-theme=dark] .stat-current .stat-label{color:#92dfbf}
html[data-theme=dark] :is(.status-late,.validation-summary-errors,.stat-late.selected){background:#40242e;color:#ffb2bd;border-color:#b96477}
html[data-theme=dark] :is(.status-soon,.notice-amber,.legacy-note,.stat-soon.selected){background:#3c3020;color:#f4d391;border-color:#9d824e}
html[data-theme=dark] :is(.status-review,.stat-review.selected){background:#322944;color:#d9c6ff;border-color:#a68dc8}
html[data-theme=dark] :is(.status-current,.flash,.history-check,.enrollment-coverage,.payment-complete>span,.stat-current.selected){background:#193a31;color:#9fe5c5;border-color:#5b9a83}
html[data-theme=dark] .enrollment-coverage span{color:#bedccd}
html[data-theme=dark] :is(.child-review-reason,.inline-status){color:#f4d391}
html[data-theme=dark] :is(.price-option:has(input:checked),.billing-child:has(input:checked)){background:#21394f;border-color:var(--blue)}
html[data-theme=dark] .family-overview .family-summary{background:transparent}
html[data-theme=dark] :is(.admin-nav a[aria-current=page],.family-sections a[aria-current],.filter-sheet-panel a[aria-current]){background:#3b2532;color:#ffb2bd;border-color:#ff99a6}
html[data-theme=dark] .admin-nav svg circle{fill:var(--owner-surface)}
html[data-theme=dark] .login-story{background:#101923}
html[data-theme=dark] .login-story .eyebrow,html[data-theme=dark] .login-story>p:last-of-type{color:#c2cedc}
html[data-theme=dark] .payment-preview-total{border-color:var(--line)}
html[data-theme=dark] .payment-timeline .timeline-dot{background:#92dfbf;border-color:var(--owner-surface)}
html[data-theme=dark] .payment-timeline:before{background:var(--line)}
html[data-theme=dark] .skip{background:var(--owner-surface);color:var(--ink)}
html[data-theme=dark] .owner-site .parent-list{background:var(--paper)}
html[data-theme=dark] .owner-site .parent-row{background:var(--owner-surface)}
html[data-theme=dark] .owner-site .admin-nav a[aria-current=page]{background:#3b2532;color:#ffb2bd;border-color:#ff99a6}
html[data-theme=dark] .family-workspace .billing-child.is-selected{background:#21394f}
html[data-theme=dark] .family-workspace .payment-selection-footer{background:var(--owner-raised);border-color:var(--line)}
html[data-theme=dark] .dated-payment-preview .payment-new-due{background:#193a31;color:#9fe5c5}
html[data-theme=dark] .history-coverage-list li{background:var(--owner-raised)}
html[data-theme=dark] .owner-site :focus-visible{outline-color:var(--blue)}
html[data-theme=dark] .draft-heading>span{background:#422534;color:#ffb2bd}
html[data-theme=dark] .schedule-resolution{background:#3c3020;color:#f4d391;border-color:#9d824e}
@media(max-width:640px){.owner-site .header-inner{gap:10px}.owner-header-actions{gap:8px}.owner-header-actions .owner-label{display:none}.theme-control select{max-width:125px;padding-left:8px;padding-right:20px}.owner-header-actions .text-link{display:none}.owner-header-actions .button{min-height:44px}.owner-site .brand-type{display:none}}
@media(max-width:360px){.owner-site .brand-type{display:none}.owner-site .brand img{width:40px;height:40px}.owner-header-actions{margin-left:auto}}
@media(forced-colors:active){.theme-control select{border:1px solid ButtonText}html[data-theme=dark] :focus-visible{outline-color:Highlight}}
.owner-site textarea{font:inherit;font-size:16px;width:100%;min-width:0;padding:12px;border:1px solid #8b929c;border-radius:9px;background:#fff;color:#242b35;resize:vertical;line-height:1.6}
.owner-site textarea:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
html[data-theme=dark] textarea{background:var(--paper);color:var(--ink);border-color:var(--owner-control)}
.child-personal-name{font-size:1.05rem}.personal-children .child-row-footer{justify-content:flex-end}.manual-payment-list{margin-block:24px}.manual-payment-list .billing-child>p{margin:12px 0}.manual-payment-list .button{min-height:44px}.manual-payment-list .child-row-footer{align-items:center;flex-wrap:wrap}

/* Phone-sized owner layouts, including the standalone shortcut. */
@media (max-width:850px) {
    html:has(.pilot-admin) {scroll-padding-block-end:calc(84px + env(safe-area-inset-bottom))}
    .owner-site :is(input:not([type]),input[type=password],input[type=text],input[type=search],
                   input[type=email],input[type=tel],input[type=number],input[type=date],
                   input[type=time],textarea,select):not(.theme-control select) {
        font-size:max(1rem,16px);
        max-width:100%;
    }
    .owner-site :is(input,select,textarea,button):focus-visible {
        scroll-margin-block:12px;
    }
}
@media (max-width:640px) {
    .owner-site .login-story {padding:18px 20px}
    .owner-site .login-story>img {width:48px;height:48px;margin-bottom:10px}
    .owner-site .login-story h1 {font-size:clamp(24px,7vw,32px);margin:8px 0 10px;line-height:1.12}
    .owner-site .login-form-wrap {padding:22px 20px}
    .owner-site .login-form {margin-top:18px}
    .owner-site .login-form :is(input[type=password],.button) {min-height:48px}
    .owner-site .login-help {font-size:12px;margin-top:12px}
    .owner-site .login-form-wrap>.back-link {margin-top:12px}
    .owner-site .owner-footer {overflow-wrap:anywhere}
}
