.theme-toggle{position:fixed;right:22px;bottom:20px;z-index:20;border:1px solid var(--border);border-radius:24px;padding:12px 18px;background:var(--white);color:var(--ink);box-shadow:0 3px 18px #0002;font-size:12px;font-weight:700;min-height:44px}.theme-toggle:hover{border-color:var(--teal)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
:root[data-theme="night"]{--ink:#edf0f1;--ink2:#e0e5e7;--paper:#171a1c;--white:#22272a;--border:#3b4347;--muted:#b1babf;--soft:#2c3337;--red:#ffac99;--green:#8dd4ae;--shadow:0 16px 45px #0005;color-scheme:dark}
[data-theme="night"] .sidebar,[data-theme="night"] .mobile-header,[data-theme="night"] .login-left{background:#111416}
[data-theme="night"] .lead,[data-theme="night"] .eyebrow,[data-theme="night"] .tiny,[data-theme="night"] .copy,[data-theme="night"] .foot-note,[data-theme="night"] .crumbs,[data-theme="night"] .right-top,[data-theme="night"] .stat small,[data-theme="night"] .module small,[data-theme="night"] .admin-user small,[data-theme="night"] .login-box p,[data-theme="night"] .d-stop-main span,[data-theme="night"] .d-stop-main small,[data-theme="night"] .d-history span{color:var(--muted)}
[data-theme="night"] .stat,[data-theme="night"] .module,[data-theme="night"] .pane,[data-theme="night"] .admin-user,[data-theme="night"] .login-page,[data-theme="night"] .d-stop,[data-theme="night"] .d-history,[data-theme="night"] .d-dialog{background:var(--white);color:var(--ink);border-color:var(--border)}
[data-theme="night"] .card .foot,[data-theme="night"] .detail-row,[data-theme="night"] .d-check,[data-theme="night"] .amounts td,[data-theme="night"] .amounts th{border-color:var(--border)}
[data-theme="night"] .card .foot,[data-theme="night"] .field label,[data-theme="night"] .empty{color:var(--muted)}
[data-theme="night"] .field input,[data-theme="night"] .field select,[data-theme="night"] .field textarea{background:#191e21;border-color:#536067;color:var(--ink)}
[data-theme="night"] input::placeholder,[data-theme="night"] textarea::placeholder{color:#99a5ab}
[data-theme="night"] .btn{background:#45c3ca;color:#102426;border-color:#45c3ca}
[data-theme="night"] .btn:hover{background:#70d5da}
[data-theme="night"] .btn.ghost{background:#2b3236;color:var(--ink);border-color:#536067}
[data-theme="night"] .btn.ghost:hover{background:#384247}
[data-theme="night"] .notice,[data-theme="night"] .badge-notice,[data-theme="night"] .tag,[data-theme="night"] .status,[data-theme="night"] .switcher,[data-theme="night"] .amounts th{background:#2b3337;color:#c6d0d5;border-color:#536067}
[data-theme="night"] .notice{border-left-color:var(--teal)}
[data-theme="night"] .status.on{background:#203b30;color:#a0e3bb;border-color:#416b53}
[data-theme="night"] .status.warn{background:#40341e;color:#f0ce8a;border-color:#78633a}
[data-theme="night"] .error{color:#ffac99}
[data-theme="night"] .success{color:#a0e3bb}
[data-theme="night"] .switcher button{color:var(--ink)}
[data-theme="night"] .switcher button.active{background:#48545b;color:#fff}
[data-theme="night"] .switcher button.active.sip{background:var(--teal);color:#111}
[data-theme="night"] .d-stop.is-done{background:#1e332b}
[data-theme="night"] .d-stop-main,[data-theme="night"] .d-grip{color:var(--ink)}
[data-theme="night"] .d-index,[data-theme="night"] .d-denom{color:#a5b1b7}
[data-theme="night"] .is-done .d-index{color:var(--green)}
[data-theme="night"] .callout{background:#101416;border:1px solid var(--border)}
@media(max-width:700px){.theme-toggle{right:14px;bottom:calc(12px + env(safe-area-inset-bottom));padding:11px 15px}}
@media print{.theme-toggle{display:none}}

/* Coffee accents: warmth in selected surfaces, with status colors preserved. */
:root{--coffee:#79563e;--coffee-soft:#f3ece5;--coffee-line:#d6c1ae;--coffee-ink:#62432f;--coffee-deep:#392a22}
:root[data-theme="night"]{--coffee:#c69c78;--coffee-soft:#342a24;--coffee-line:#70533e;--coffee-ink:#e0bc9d;--coffee-deep:#29211c}
.nav button.selected{background:#49362a;color:#fff;box-shadow:inset 3px 0 #c79b76}
.nav button:hover{background:#352b24;color:#fff}
.nav button.selected:hover{background:#554031}
.avatar{background:#654732;color:#fff}
.section-head h2{border-left:3px solid var(--coffee);padding-left:11px}
.cards>.card:first-child,.stat-grid>.stat:first-child{background:var(--coffee-soft);border-color:var(--coffee-line)}
.cards>.card:first-child .symbol,.stat-grid>.stat:first-child .number{color:var(--coffee-ink)}
.module-grid>.module:nth-child(4n+1){border-top:3px solid var(--coffee-line)}
.module:hover,.card.action:hover{border-color:var(--coffee)}
.callout,[data-theme="night"] .callout{background:var(--coffee-deep);border:1px solid var(--coffee-line)}
.callout p{color:#dfd0c4}
#operations>details.pane{background:var(--coffee-soft);border-color:var(--coffee-line)}
#operations>details.pane>summary{color:var(--coffee-ink)}
.theme-toggle:hover{border-color:var(--coffee);background:var(--coffee-soft)}
@media print{.cards>.card:first-child,.stat-grid>.stat:first-child,#operations>details.pane{background:#fff!important;color:#111!important}}

/* Keep a predictable return path visible, including on small screens. */
.return-nav{position:sticky;top:0;z-index:12;display:flex;align-items:center;gap:16px;padding:12px 0;margin:-12px 0 24px;background:var(--paper);border-bottom:1px solid var(--border)}
.return-nav .return-back{flex-shrink:0;min-height:44px;border-color:var(--coffee-line);color:var(--coffee-ink);background:var(--coffee-soft)}
.return-trail{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.return-trail button{border:0;background:none;color:var(--coffee-ink);font-weight:700;padding:8px 4px;min-height:44px;text-align:left}
.return-trail button:hover{text-decoration:underline}
@media(max-width:700px){.return-nav{gap:10px;margin-top:-8px}.return-trail{gap:4px;font-size:11px}.return-back{padding:11px 13px}}
@media print{.return-nav{display:none!important}}
.member-name-button{margin-top:12px;min-height:44px}.member-name-form{margin-top:14px;max-width:360px}.member-name-form .actions{display:flex;gap:8px;margin-top:10px}.member-name-form .field{display:block;font-size:12px;font-weight:700}.member-name-form input{margin-top:8px}

/* Original PRESS eagle artwork, provided by PRESS Coffee's brand resources. */
.press-logo{display:block;width:48px;height:48px;flex:0 0 auto;object-fit:contain;background:#fff;border-radius:6px;padding:5px;box-sizing:border-box}
.wordmark{display:flex;align-items:center;gap:12px;padding-left:4px;padding-right:4px}
.login-mark{display:flex;align-items:center;gap:20px}
.login-mark .press-logo{width:76px;height:76px;padding:8px;border-radius:8px}
.mobile-brand{display:flex;align-items:center;gap:9px;min-width:0}
.mobile-brand .press-logo{width:32px;height:32px;padding:3px}
@media(max-width:600px){.mobile-header{gap:10px;padding:14px 12px}.mobile-header strong{font-size:12px;letter-spacing:.06em}.mobile-header select{min-width:0;max-width:135px}.login-mark{gap:14px}.login-mark .press-logo{width:60px;height:60px}}

.role-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 16px;margin-bottom:24px;background:var(--coffee-soft);border:1px solid var(--coffee-line);border-radius:8px;color:var(--coffee-ink)}
.role-toolbar label,.role-toolbar strong{font-weight:700}.role-toolbar select{max-width:100%;padding:10px;border:1px solid var(--coffee-line);border-radius:5px;background:var(--coffee-soft);color:var(--coffee-ink)}.role-toolbar>span{font-size:12px;flex:1;min-width:180px}.role-preview-active{border-left:4px solid var(--coffee)}
@media(max-width:600px){.role-toolbar{gap:10px}.role-toolbar select{width:100%}.role-toolbar .btn{width:100%}}
