.header-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
#admin-preferences{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#admin-preferences .utility-button{min-height:38px;padding:8px 12px;font-size:12px;white-space:nowrap}
body.theme-light{color-scheme:light;--bg:#f3efe5;--surface:#fffdf8;--line:#d8d0bf;--muted:#56666a;--text:#17343a;--accent:#d8bd82;--sea:#398486;--deep-sea:#dbe9e4;background:#f3efe5;color:var(--text)}
body.theme-light header{background:#fffdf8;border-color:#d8d0bf}
body.theme-light .brand,body.theme-light .brand span,body.theme-light .eyebrow,body.theme-light .metric strong{color:#17343a}
body.theme-light .brand small,body.theme-light footer,body.theme-light p,body.theme-light .quiet,body.theme-light .tag,body.theme-light .help{color:#56666a}
body.theme-light .panel,body.theme-light .metric,body.theme-light .rental-card,body.theme-light dialog{background:#fffdf8;border-color:#d8d0bf;color:#17343a;box-shadow:0 12px 34px rgba(23,52,58,.08)}
body.theme-light .account{background:#faf7ef;border-color:#d8d0bf}
body.theme-light label{color:#34494e}
body.theme-light input,body.theme-light .form-section input,body.theme-light .form-section select,body.theme-light .form-section textarea,body.theme-light select,body.theme-light textarea{background:#fff;border-color:#c9c1b2;color:#17343a;color-scheme:light}
body.theme-light input::placeholder,body.theme-light textarea::placeholder{color:#738185}
body.theme-light input:focus-visible,body.theme-light button:focus-visible,body.theme-light a:focus-visible{outline-color:#398486}
body.theme-light button:not(.secondary):not(.password-toggle){background:#1e6267;color:#fff;border-color:#1e6267}
body.theme-light button:not(.secondary):not(.password-toggle):hover{background:#174e55;filter:none;box-shadow:0 5px 18px rgba(30,98,103,.16)}
body.theme-light button.danger,body.theme-light .danger{background:#a83d35!important;border-color:#a83d35!important;color:#fff!important}
body.theme-light .secondary,body.theme-light #session-actions .secondary,body.theme-light .password-toggle{background:#f4f0e6;border-color:#d1c8b5;color:#17343a}
body.theme-light .secondary:hover,body.theme-light #session-actions .secondary:hover,body.theme-light .password-toggle:hover{background:#e8e2d4;box-shadow:none}
body.theme-light .tag,body.theme-light .pill,body.theme-light .pill.staff{background:#edf3ef;border-color:#c9d9d4;color:#245a5e}
body.theme-light .notice,body.theme-light .form-summary{background:#edf3ef;border-left-color:#398486;color:#244b50}
body.theme-light #message{background:#fffdf8;border-color:#bacbc7;color:#17343a;box-shadow:0 12px 36px rgba(23,52,58,.14)}
body.theme-light .secret{background:#f3efe5;border-color:#d8d0bf;color:#17343a}
body.theme-light .state{background:#edf0f1;color:#36484d}
body.theme-light .state.active{background:#deeee4;color:#276245}
body.theme-light .state.overdue{background:#fae3df;color:#a83d35}
body.theme-light .state.returned{background:#e3ebf5;color:#335980}
body.theme-light .state.cancelled{background:#eeeae1;color:#66635d}
body.theme-light .freeze-status,body.theme-light .risk-note{background:#fae3df;color:#85332e}
body.theme-light .warning,body.theme-light .inline-error{color:#a83d35!important}
body.theme-light .rental-card:hover{border-color:#398486}
body.theme-light .check-label input{accent-color:#398486}
body.theme-light .ops-nav{background:rgba(255,253,248,.96);border-color:#d8d0bf}
body.theme-light .ops-nav .nav-item{color:#43565a}
body.theme-light .ops-nav .nav-item:hover{background:#edf3ef;color:#17343a}
body.theme-light .ops-nav .nav-item.selected,body.theme-light .ops-nav .nav-create{background:#1e6267;color:#fff;border-color:#1e6267}
body.theme-light .ops-nav .nav-create:hover{background:#174e55}
body.theme-light .ops-nav-tools{border-color:#ded8ca}
body.theme-light .empty{border-color:#c9c1b2}
body.theme-light .photo-grid img{background:#ece8df}
body.theme-light .form-section legend{color:#17343a}
body.theme-light .payment-line,body.theme-light .info-line,body.theme-light .customer-item,body.theme-light .audit-row{border-color:#ded8ca}
body.theme-light .login-screen .brand small,body.theme-light .boot-brand,body.theme-light .boot-brand span{color:#17343a}
body.theme-light .boot-brand small,body.theme-light .boot-caption{color:#56666a}
body.theme-light .boot-spinner{border-color:#c4d2cf;border-top-color:#1e6267}
@media(max-width:720px){.header-controls{gap:7px}#admin-preferences{gap:6px}#admin-preferences .utility-button{padding:7px 9px;font-size:11px}}
@media(max-width:440px){header{align-items:flex-start}.header-controls{flex-direction:column;align-items:flex-end}.header-controls #admin-preferences{justify-content:flex-end}}

body:not(.theme-light) header{background:#10282e}body:not(.theme-light) .ops-nav{background:rgba(16,40,46,.97);border-bottom-color:#31565a}
body:not(.theme-light){color-scheme:dark;--bg:#10282e;--surface:#18363c;--line:#31565a;--muted:#b8cacc;--text:#f1f4ed;--accent:#e8d8b7;--sea:#5faead;--deep-sea:#174e55;background:#10282e;color:#f1f4ed}
body:not(.theme-light) .panel,body:not(.theme-light) .metric,body:not(.theme-light) .rental-card,body:not(.theme-light) dialog,body:not(.theme-light) .account,body:not(.theme-light) .form-section,body:not(.theme-light) .ops-panel{background:#18363c;border-color:#31565a;color:#f1f4ed}
body:not(.theme-light) .finance-section{background:#18363c;border-color:#31565a;color:#f1f4ed}
body:not(.theme-light) input,body:not(.theme-light) select,body:not(.theme-light) textarea{background:#102f35;border-color:#426a6d;color:#f1f4ed}
body:not(.theme-light) .brand,body:not(.theme-light) .eyebrow,body:not(.theme-light) .metric strong{color:#e8d8b7}
body:not(.theme-light) button:not(.secondary):not(.password-toggle):not(.danger),body:not(.theme-light) .ops-nav .selected,body:not(.theme-light) .ops-nav .nav-create{background:#174e55;border-color:#5faead;color:#f1f4ed}
body:not(.theme-light) button:not(.secondary):not(.password-toggle):not(.danger):hover,body:not(.theme-light) .ops-nav .nav-create:hover{background:#5faead;border-color:#5faead;color:#10282e}
body:not(.theme-light) .secondary,body:not(.theme-light) #session-actions .secondary,body:not(.theme-light) .password-toggle{background:rgba(95,174,173,.12);border-color:#426a6d;color:#e4efea}
body:not(.theme-light) .secondary:hover,body:not(.theme-light) #session-actions .secondary:hover,body:not(.theme-light) .password-toggle:hover{background:rgba(95,174,173,.2);box-shadow:none}
body:not(.theme-light) .state.active{background:rgba(95,174,173,.2);color:#b9e7df}
body:not(.theme-light) .state.overdue,body:not(.theme-light) .warning,body:not(.theme-light) .inline-error{color:#ffb4a3!important}
body:not(.theme-light) .state.returned{background:rgba(232,216,183,.16);color:#f1dfb9}

/* Keep the admin overview calm and text-led in both Deep Sea themes. */
body:not(.theme-light) .metrics-status .metric,body.theme-light .metrics-status .metric,
body:not(.theme-light) .metrics-finance .metric,body.theme-light .metrics-finance .metric{background:transparent;border-top:0;border-right:0;border-bottom:0;box-shadow:none}
body:not(.theme-light) main#app .metrics-status button.metric,body.theme-light main#app .metrics-status button.metric{background:transparent;border-left-color:var(--line);box-shadow:none}
body:not(.theme-light) main#app .metrics-status button.metric:hover,body.theme-light main#app .metrics-status button.metric:hover{background:rgba(95,174,173,.08);border-left-color:var(--line);box-shadow:none}
body:not(.theme-light) .finance-section,body.theme-light .finance-section{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0}
body:not(.theme-light) .follow-up-panel,body.theme-light .follow-up-panel{background:transparent;border:0;box-shadow:none}
