:root{color-scheme:light}
.cost-line{font-size:12px;color:var(--ink);margin-top:10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cost-line small{font-size:10px;color:var(--muted)}.booking-cost{font-size:12px;margin:-10px 0 20px}.stats .profit-caption{font-size:9px;line-height:1.4;margin:7px 0 0}.profit-positive{color:var(--green)}.profit-negative{color:#b43b45}.theme-toggle{min-height:36px}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.profit-stat{min-width:0}.stats strong{white-space:nowrap;font-size:clamp(20px,2.2vw,27px)}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats>div:nth-child(3):before{display:none}.stats>div:nth-child(n+3){border-top:1px solid var(--line)}.stats strong{font-size:25px}}
@media(max-width:500px){.stats>div{padding:16px}.stats small{font-size:10px}.stats strong,.stats>div:last-of-type strong{font-size:24px}.desk-actions{gap:12px}}
.login-page .theme-toggle{width:auto;padding:9px 12px;border:1px solid #d9cbbb;color:#792e40;background:transparent;margin-bottom:15px;font-size:12px;display:block;margin-left:auto}
@media screen{
html[data-theme=dark]{color-scheme:dark;--ink:#efe6df;--muted:#b8aaa3;--wine:#ed9eaf;--cream:#191718;--line:#44383c;--green:#a3d0af}
html[data-theme=dark] body{background:var(--cream);color:var(--ink)}
html[data-theme=dark] :is(.topbar,.stats,.product,.recent,.table-wrap,dialog,.empty,.pitara-install-help){background:#242022;border-color:var(--line);color:var(--ink)}
html[data-theme=dark] :is(.searchbox,.form-input,select){background:#211d1f;border-color:#5b4a50;color:var(--ink)}
html[data-theme=dark] :is(input::placeholder,.price small,.size-label,.code,.check-label,.source-note,.howto small,.howto p,.recent-empty p,.recent-item time,.recent-heading>span,.optional-toggle,.optional-toggle span,.optional-fields label,.modal-foot,td small,.list-total,footer,.selection small,.pitara-install-help p){color:var(--muted)}
html[data-theme=dark] :is(.sizes button,.selection,.size-pill,kbd,th,.howto,.secondary){background:#30282b;color:var(--ink);border-color:#57464c}
html[data-theme=dark] .sizes button:hover:not(:disabled){background:#8b3d53;color:#fff;border-color:#d27b92}
html[data-theme=dark] .sizes button:disabled{background:#282225;color:#b4a5ab;opacity:.5}
html[data-theme=dark] .primary{background:#a34963;color:#fff;border-color:#b76079}
html[data-theme=dark] .primary:hover:not(:disabled){background:#b25470}
html[data-theme=dark] .secondary:hover{background:#44353b}
html[data-theme=dark] :is(.stat-icon,.count){background:#263b30;color:#b2d7b7}
html[data-theme=dark] :is(.stat-icon.rose,.recent-item .initial){background:#4b2e3a;color:#f0a5bb}
html[data-theme=dark] .stat-icon.gold{background:#42382b;color:#e3c48a}
html[data-theme=dark] :is(.count.sold,.desk-nav nav button>span){background:#41363b;color:#d1bfc6}
html[data-theme=dark] .sheet-sync{background:#253029;border-color:#435447}
html[data-theme=dark] .sheet-sync b{color:#b3d3af}
html[data-theme=dark] .sheet-sync span{color:#bdc5bb}
html[data-theme=dark] .sheet-sync a{color:var(--wine)}
html[data-theme=dark] :is(.alert,.form-error,.duplicate-warning,.sheet-conflict){background:#413024;color:#f3ca96;border-color:#795738}
html[data-theme=dark] .sheet-conflict b{color:#ffbd98}
html[data-theme=dark] .sheet-conflict span{color:#e6c8b8}
html[data-theme=dark] :is(.heading-mark,.howto .eyebrow,.howto li>span){color:#d1b28f}
html[data-theme=dark] .empty h3{color:var(--ink)}
html[data-theme=dark] :is(.howto p,.recent-item,.howto li>span,.selection-size){border-color:var(--line)}
html[data-theme=dark] .connection>span{box-shadow:0 0 0 4px #2a3c2f}
html[data-theme=dark] .profit-negative{color:#ff9d9d}
html[data-theme=dark] :is(.desk-nav nav button,.cancel-button){color:#c1a4b0}
html[data-theme=dark] .desk-nav nav button.active{color:var(--wine)}
html[data-theme=dark] dialog::backdrop{background:#070506bb}
html[data-theme=dark] .login-page main{background:#242022;border-color:#44383c}
html[data-theme=dark] .login-page :is(p,small){color:#c6aaa9}
html[data-theme=dark] .login-page input{background:#191718;border-color:#5b4a50;color:#efe6df}
html[data-theme=dark] .login-page .theme-toggle{color:#ed9eaf;border-color:#5b4a50}
html[data-theme=dark] .login-page #error{color:#ffaba6}
}
@media print{.theme-toggle,.booking-cost{display:none!important}}

/* Compact operational layout; one row of stats at every breakpoint. */
.app-shell .topbar{height:68px}.app-shell main{padding-top:18px;padding-bottom:28px}
.app-shell .compact-stats{display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;overflow-x:auto;padding:8px 0 17px}
.app-shell .compact-stats>div{display:flex;align-items:baseline;gap:9px;padding:0;border:0;flex-shrink:0}
.app-shell .compact-stats>div:before{display:none}.app-shell .compact-stats small{font-size:12px;margin:0;white-space:nowrap}
.app-shell .compact-stats strong{font-size:23px;line-height:1.2}.app-shell .compact-stats strong span{font-size:11px;color:var(--muted)}
.app-shell .desk-nav{margin-top:0}.app-shell .work-grid{display:block;margin-top:18px}.app-shell .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.app-shell .sheet-sync{margin-top:14px}.sheet-sync[hidden]{display:none!important}
.sync-info{border:0;background:transparent;color:var(--green);display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:36px;min-height:36px;padding:6px}.sync-info.sync-warning{color:#b46727}.sync-info span{font-size:10px}
@media(max-width:1000px){.app-shell .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.app-shell .compact-stats{gap:10px;padding:2px 0 13px}.app-shell .compact-stats>div{flex-direction:column;align-items:flex-start;gap:4px}.app-shell .compact-stats small{font-size:10px}.app-shell .compact-stats strong{font-size:18px}.app-shell .compact-stats strong span{font-size:9px}.app-shell .topbar{height:64px}.app-shell main{padding-top:14px}.sync-info.sync-warning span{max-width:65px}}
@media(max-width:500px){.app-shell .product-grid{grid-template-columns:1fr}.app-shell .compact-stats strong{font-size:17px}.app-shell .desk-actions{padding-bottom:10px}.app-shell .connection{gap:5px}}
@media screen{html[data-theme=dark] .app-shell .compact-stats{background:transparent}html[data-theme=dark] .sync-info.sync-warning{color:#efbb7a}}
@media print{.app-shell .compact-stats{display:none!important}}
