.theme-picker{position:relative;flex-shrink:0;z-index:50}.theme-picker summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;cursor:pointer;list-style:none;font-size:12px;font-weight:700;background:var(--paper);color:var(--ink)}.theme-picker summary::-webkit-details-marker{display:none}.theme-picker summary::marker{content:''}.theme-moon{display:none}:root[data-theme=dark] .theme-moon{display:block}:root[data-theme=dark] .theme-sun{display:none}.theme-options{position:absolute;right:0;top:calc(100% + 9px);width:230px;padding:14px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:14px;box-shadow:0 12px 36px #0002}.theme-options strong{display:block;font-size:12px;margin:3px 7px 10px}.theme-options button{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:12px;border-radius:9px;text-align:left;font-size:14px}.theme-options button:hover{background:var(--bg)}.theme-options button[aria-pressed=true]{background:var(--navy);color:#fff}.theme-options button[aria-pressed=true]::after{content:'✓';font-weight:800}.theme-options small{display:block;line-height:1.6;color:var(--muted);font-size:11px;margin:10px 7px 2px}.guest-theme{max-width:1150px;margin:20px auto -35px;padding:0 30px;display:flex;justify-content:flex-end}.report-scope{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}.report-scope .button{font-size:13px}.server-app .sidebar nav{overflow-y:auto;min-height:0}.server-app .sidebar .profile{flex-shrink:0}
@media(max-width:720px){.server-app .topbar{gap:6px}.server-app .topbar>.mobile-brand{font-size:23px;gap:5px}.server-app .topbar>.mobile-brand svg{width:24px;height:24px}.topbar .theme-picker summary{width:44px;padding:10px}.topbar .theme-picker summary>span{display:none}.server-app .topbar>.button.small{padding:8px;min-width:40px}.server-app .topbar form .button{padding:10px 9px}.server-app .mobile-nav{padding-left:8px;padding-right:8px}.server-app .mobile-nav a{min-width:44px}.guest-theme{margin:14px auto -4px;padding:0 15px}.guest-page #main{padding-top:16px}.report-scope .button{flex:1;padding:12px 10px;font-size:12px}.server-app .sidebar-note{display:none}}
@media screen {
 :root[data-theme=dark]{color-scheme:dark;--ink:#e5eef6;--muted:#a6b8c8;--line:#35495c;--paper:#172637;--bg:#0c1622;--blue:#9dccff;background:var(--bg);color:var(--ink)}
 :root[data-theme=dark] body{background:var(--bg);color:var(--ink)}
 :root[data-theme=dark] .server-app .topbar,:root[data-theme=dark] .mobile-nav{background:#142131;border-color:var(--line)}
 :root[data-theme=dark] .form-card,:root[data-theme=dark] .monthly-stat,:root[data-theme=dark] .monthly-filters,:root[data-theme=dark] .monthly-table-wrap,:root[data-theme=dark] .monthly-table tr,:root[data-theme=dark] .login-shell,:root[data-theme=dark] .trip-actions{background:var(--paper);border-color:var(--line)}
 :root[data-theme=dark] input,:root[data-theme=dark] select,:root[data-theme=dark] textarea{background-color:#101e2c;border-color:#496075;color:var(--ink)}
 :root[data-theme=dark] input::placeholder,:root[data-theme=dark] textarea::placeholder{color:#98adbf}
 :root[data-theme=dark] input[type=file]::file-selector-button{background:#2c4358;color:#e5eef6;border:1px solid #57718a;border-radius:6px;padding:7px}
 :root[data-theme=dark] select{background-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23b7d3ea" stroke-width="2"%3E%3Cpath d="m7 10 5 5 5-5"/%3E%3C/svg%3E')}
 :root[data-theme=dark] .button.primary,:root[data-theme=dark] .theme-options button[aria-pressed=true]{background:#d8ef76;color:#142e28}
 :root[data-theme=dark] .button.primary:hover{background:#e7f7a6}
 :root[data-theme=dark] .button.secondary{background:#22384c;border-color:#4b647b;color:#edf4fa}
 :root[data-theme=dark] .button.ghost{color:#b9ccdc}
 :root[data-theme=dark] .button.lime{background:#d8ef76;color:#142e28}
 :root[data-theme=dark] .info-box{background:#172f45;border-color:#3a5d7b;color:#c4e0f8}
 :root[data-theme=dark] .info-box p,:root[data-theme=dark] .info-box small{color:inherit}
 :root[data-theme=dark] .info-box.warning{background:#382e1a;border-color:#796032;color:#f4dca3}
 :root[data-theme=dark] .server-notice{background:#203929;border-color:#476e4f;color:#d0edbd}
 :root[data-theme=dark] .error-message{background:#40242d;border-color:#985665;color:#ffdae1}
 :root[data-theme=dark] .status{background:#2e4358;color:#deebf5}
 :root[data-theme=dark] .status.done{background:#244936;color:#c7f2d7}
 :root[data-theme=dark] .status.draft,:root[data-theme=dark] .password-pending{background:#3c301b;color:#f4d598}
 :root[data-theme=dark] .account-inactive{background:#344255;color:#d3dce6}
 :root[data-theme=dark] .avatar{background:#314b63;color:#e7f1fa}
 :root[data-theme=dark] .monthly-table th{background:#263e53;color:#d7e6f2}
 :root[data-theme=dark] .monthly-net{background:#234032;border-color:#486b47;color:#ecf6e3}
 :root[data-theme=dark] .monthly-net p{color:#cde3c2}
 :root[data-theme=dark] .summary-panel{background:#142b40;color:#e5eef6;border:1px solid #3b5872}
 :root[data-theme=dark] .summary-panel .eyebrow{color:#bcd3e9}
 :root[data-theme=dark] .summary-panel dt,:root[data-theme=dark] .summary-panel .formula-note{color:#b6cada}
 :root[data-theme=dark] .server-stepper li{color:#9bb0c3}
 :root[data-theme=dark] .server-stepper li.current{color:#d8ef76;border-color:#d8ef76}
 :root[data-theme=dark] .server-stepper li.complete{color:#bcdfbd}
 :root[data-theme=dark] .mobile-brand svg{color:#d8ef76}
 :root[data-theme=dark] .server-app .mobile-nav a.active{background:#2b4359;color:#e3f1fc}
 :root[data-theme=dark] .login-shell{box-shadow:0 16px 65px #0005}
 :root[data-theme=dark] .theme-options{box-shadow:0 12px 36px #0007}
 :root[data-theme=dark] input[type=checkbox]{accent-color:#d8ef76}
}
@media print{.theme-picker,.guest-theme,.report-scope{display:none!important}}
@media screen{:root[data-theme=dark] .info-box strong{color:inherit}}
@media(max-width:720px){.topbar .theme-options{right:auto;left:50%;transform:translateX(-50%);width:220px}}
