:root{--font:'Poppins',Arial,sans-serif;--text:#112235;--surface:#fff;--surface-alt:#f1f5f4;--brand-navy:#112235}
h1,h2,h3,h4,strong,b{font-weight:500}html{color-scheme:light}body{font-family:var(--font)}.live-app{color:var(--text)}.live-app input,.live-app select,.live-app textarea,.live-app button{font-family:var(--font)}
.sidebar{background:var(--brand-navy);color:#f0f5f7;border-right:1px solid #ffffff12;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#536d80 #112235}.sidebar .brand{padding:12px 14px;background:white;border-radius:10px;margin:0 3px 23px}.sidebar .brand img{width:100%;max-width:175px;height:56px;margin:auto}.sidebar .workspace-label{color:#96b1c2;font-weight:500}.sidebar nav button,.sidebar nav a{font-size:14px;color:#c7d4df;min-height:46px;transition:background .15s,color .15s;gap:12px}.sidebar nav button span,.sidebar nav a span{color:#98b4c5;flex-shrink:0;display:grid;place-items:center}.sidebar nav button:hover,.sidebar nav a:hover{background:#213b50;color:white}.sidebar nav button.active{background:#54a99024;color:white;box-shadow:inset 3px 0 #54a990}.sidebar nav button.active span{color:#8ed2be}.sidebar-bottom{border-top-color:#ffffff1c}.sidebar-bottom strong{color:#f0f5f7;font-weight:500}.sidebar-bottom small{color:#a4b8c8}.sidebar .environment{background:#54a99019;color:#a2d5c4;border:1px solid #54a99025}
.theme-toggle{display:inline-flex;flex-shrink:0;align-items:center;gap:3px;padding:4px;border:1px solid var(--line,#dee4e8);border-radius:30px;background:#edf1f3;color:#697a89;cursor:pointer;font-family:var(--font);font-size:11px;font-weight:500;line-height:1.3;min-height:39px;box-shadow:none}.theme-option{display:flex;align-items:center;justify-content:center;gap:6px;border-radius:24px;padding:6px 9px;transition:background .15s,color .15s,box-shadow .15s}.theme-option svg{display:block;flex-shrink:0}.theme-toggle .theme-day{background:#fff;color:#264b3e;box-shadow:0 1px 4px #11223516}.theme-toggle:hover{border-color:#54a990}.theme-toggle:focus-visible{outline:3px solid #54a990;outline-offset:3px}.theme-toggle .theme-option>span{font-size:11px;letter-spacing:0}
html[data-theme=dark]{color-scheme:dark;--text:#e6eef5;--surface:#152b3e;--surface-alt:#1d3549;--page:#0b1726;--line:#304657;--muted:#adbbc9;--red:#ffabb3}
html[data-theme=dark] body,html[data-theme=dark] .live-app{background:var(--page);color:var(--text)}
html[data-theme=dark] .topbar,html[data-theme=dark] .card,html[data-theme=dark] .metric,html[data-theme=dark] .active-card,html[data-theme=dark] .empty,html[data-theme=dark] dialog{background:var(--surface);color:var(--text);border-color:var(--line)}
html[data-theme=dark] .topbar>div>small,html[data-theme=dark] .metric em,html[data-theme=dark] footer{color:#a2b3c1}
html[data-theme=dark] .hero{background:#112235;border:1px solid #294255}
html[data-theme=dark] .assignment strong,html[data-theme=dark] .empty strong,html[data-theme=dark] .summary-strip strong{color:var(--text)}
html[data-theme=dark] .eyebrow.dark,html[data-theme=dark] .text-btn,html[data-theme=dark] .timer,html[data-theme=dark] .active-location,html[data-theme=dark] .connection,html[data-theme=dark] .field-resolved.resolved,html[data-theme=dark] .form-message.success{color:#91d2bb}
html[data-theme=dark] .connection.offline{color:var(--red)}
html[data-theme=dark] .btn.primary{background:#54a990;color:#10261f;border-color:#54a990}html[data-theme=dark] .btn.primary:hover{background:#77bea7}html[data-theme=dark] .btn.secondary{background:#20394e;color:var(--text);border-color:#3a5264}html[data-theme=dark] .btn.secondary:hover{background:#2a4960}html[data-theme=dark] .btn.danger-outline{background:#3b2738;color:var(--red);border-color:#78515e}
html[data-theme=dark] input:not([type=checkbox]),html[data-theme=dark] select,html[data-theme=dark] textarea{background:#102235;color:var(--text);border-color:#3c5466}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#99aaba}html[data-theme=dark] input[type=date],html[data-theme=dark] input[type=datetime-local]{color-scheme:dark}
html[data-theme=dark] .initials,html[data-theme=dark] .user-avatar,html[data-theme=dark] .step-number,html[data-theme=dark] .paragraph-code,html[data-theme=dark] .process li:before{background:#244438;color:#a8ddc9}
html[data-theme=dark] .badge{background:#244438;color:#a8ddc9}html[data-theme=dark] .badge.neutral{background:#263e53;color:#c7d7e4}html[data-theme=dark] .badge.warning,html[data-theme=dark] .badge.pending{background:#483426;color:#ffc596}html[data-theme=dark] .badge.prepared{background:#293d60;color:#c0d2ff}html[data-theme=dark] .badge.running{background:#1e4939;color:#a0e1bd}
html[data-theme=dark] .integration-state{background:#293333}html[data-theme=dark] .project-callout{background:#3a302a;color:#eedbcc}html[data-theme=dark] .project-heading .code{color:#91d2bb}
html[data-theme=dark] th{background:#102235;color:#bdceda}html[data-theme=dark] td,html[data-theme=dark] .summary-row,html[data-theme=dark] .paragraph-row,html[data-theme=dark] .active-card .timer-line{border-color:var(--line)}html[data-theme=dark] .table-actions button{background:#264539;color:#c0e5d5;border-color:#3f6956}html[data-theme=dark] .table-actions button:hover{background:#365b49}
html[data-theme=dark] .column-chips span,html[data-theme=dark] dialog details{background:#20394b}html[data-theme=dark] .column-chips b{color:#a2d5c4}html[data-theme=dark] .notice{background:#3e2831;border-color:#84535e;color:#ffc4ca}html[data-theme=dark] #toast{background:#29465d;border:1px solid #4a667b;color:white}html[data-theme=dark] dialog::backdrop{background:#030a13bb}
html[data-theme=dark] .floorplan-map-scroll,html[data-theme=dark] .floorplan-occupancy{background:#102235;border-color:var(--line)}html[data-theme=dark] .floorplan-stage{background-color:#102235;background-image:linear-gradient(#6c8b9e20 1px,transparent 1px),linear-gradient(90deg,#6c8b9e20 1px,transparent 1px)}html[data-theme=dark] .floor-zone{background:#54a99013;border-color:#628c7c;color:#bbd8ca}html[data-theme=dark] .floor-zone.occupied,html[data-theme=dark] .floor-zone.selected{background:#54a99028;border-color:#82bea7}html[data-theme=dark] .has-drawing .floor-zone>span{background:#fffffff0;color:#1f4735;border-radius:4px;padding:3px}html[data-theme=dark] .floor-pin-caption{background:#f5faf7;color:#112235;border-color:#d8e5de}html[data-theme=dark] .floor-pin-caption small{color:#365d4d}html[data-theme=dark] .floorplan-empty{background:#173148f2;border-color:#4c7364;color:#c0d9cc}html[data-theme=dark] .floorplan-empty p{color:var(--muted)}html[data-theme=dark] .floor-person,html[data-theme=dark] .floorplan-occupancy h3{border-color:var(--line)}html[data-theme=dark] .floor-person-place{color:#9cd8c1}html[data-theme=dark] .floor-person-place.unknown{color:#efba8d}
html[data-theme=dark] .theme-toggle{background:#0e2031;color:#9caebf;border-color:#385164}html[data-theme=dark] .theme-day{background:none;color:#9caebf;box-shadow:none}html[data-theme=dark] .theme-night{background:#2b4c61;color:#b6e5d5;box-shadow:0 1px 4px #0003}
.aph-login-body,.aph-login-body input,.aph-login-body button{font-family:var(--font)!important}.aph-login-body strong,.aph-login-body b{font-weight:500}.aph-login-theme{position:absolute;right:30px;top:30px;z-index:5}
html[data-theme=dark] body.aph-login-body,html[data-theme=dark] .aph-login-shell,html[data-theme=dark] .aph-login-panel{background:var(--surface);color:var(--text)}html[data-theme=dark] .aph-login-brand{background:#fff;padding:10px 14px;border-radius:9px}html[data-theme=dark] .aph-login-logo{max-width:100%}html[data-theme=dark] .aph-login-input{background:#102235;border-color:#3c5466}html[data-theme=dark] .aph-login-input input{background:transparent;color:var(--text)}html[data-theme=dark] .aph-login-kicker{color:#9dd8c1!important}html[data-theme=dark] .aph-login-help,html[data-theme=dark] .aph-login-check,html[data-theme=dark] .aph-login-secure{color:#adbdcb}html[data-theme=dark] .aph-login-submit{background:#54a990!important;color:#10261f!important}html[data-theme=dark] .aph-login-error{background:#3e2831;border-color:#84535e;color:#ffc4ca}
@media(max-width:1150px){.sidebar nav button,.sidebar nav a{font-size:13px;padding-inline:12px;gap:10px}.sidebar .brand{padding:10px}}
@media(max-width:820px){.sidebar{padding:14px 18px;overflow:visible}.sidebar .brand{width:164px;margin:0;padding:5px 9px}.sidebar .brand img{width:146px;height:46px}.sidebar nav{margin-top:12px}.sidebar nav button,.sidebar nav a{min-height:38px}.sidebar nav button.active{box-shadow:inset 0 -2px #54a990}.topbar{gap:12px}.topbar-right{gap:9px}.theme-option{padding:6px 7px}.theme-option>span{display:none}.theme-toggle{min-height:37px}.user-name strong{max-width:90px}.aph-login-theme{top:30px;right:24px}}
@media(max-width:480px){.aph-login-brand{max-width:calc(100% - 130px)}.aph-login-logo{max-width:100%}.aph-login-theme{right:20px;top:28px}.topbar h1{font-size:20px}.topbar-right{gap:7px}.user-name strong{max-width:75px}.theme-toggle{padding:3px}.theme-option{padding:5px 6px}}
@media(prefers-reduced-motion:reduce){.theme-option,.sidebar nav button,.sidebar nav a{transition:none}}
