:root{color-scheme:dark;--bg:#111916;--panel:#1a2420;--panel2:#202d26;--line:#344139;--text:#f0f4ef;--muted:#a5b4a9;--accent:#d1ee91;--ink:#172416;--danger:#ffb2a5;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-size:16px;line-height:1.6}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);min-width:300px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:var(--accent);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button,input,select{border:1px solid var(--line);border-radius:12px;color:var(--text);background:var(--panel)}button{min-height:48px;padding:10px 18px;transition:background .15s}button:hover:enabled{background:#2d3d32}button.primary{background:var(--accent);border-color:var(--accent);color:var(--ink);font-weight:700}button.primary:hover:enabled{background:#e0f5b8}button.quiet{background:transparent}button.danger{color:var(--danger);border-color:#6d4540}input,select{width:100%;min-height:52px;padding:12px 14px}input::placeholder{color:#8a9c90}input[type=range]{accent-color:var(--accent);padding:0;min-height:32px;border:0}input[type=checkbox]{width:20px;min-height:20px;accent-color:var(--accent)}label{display:block;color:var(--muted);font-size:14px;margin-bottom:8px}h1,h2,h3,p{margin:0}h1{font-size:clamp(26px,4vw,40px);font-weight:600;letter-spacing:-1px;line-height:1.25}h2{font-size:21px;font-weight:600;letter-spacing:-.5px}h3{font-size:16px;font-weight:600}.muted{color:var(--muted)}.small{font-size:14px}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:600;color:var(--accent)}.icon{width:22px;height:22px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.row{display:flex;align-items:center;gap:12px}.spread{justify-content:space-between}.stack{display:grid;gap:18px}.brand{display:flex;align-items:center;gap:10px;font-weight:600;letter-spacing:.2px}.brand-mark{display:inline-grid;place-items:center;background:var(--accent);color:var(--ink);width:38px;height:38px;border-radius:12px;font-weight:800;font-size:25px}.brand small{display:block;font-size:10px;color:var(--muted);font-weight:400;letter-spacing:2px}.badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap;border:1px solid var(--line);border-radius:30px;padding:4px 10px;color:var(--muted)}.badge .dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}.boot{min-height:100svh;display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center}.auth-wrap{max-width:1040px;margin:auto;min-height:100svh;padding:46px 32px;display:flex;flex-direction:column;justify-content:space-between;gap:48px}.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:92px;align-items:center}.auth-intro h1{margin:18px 0 20px;font-size:46px;line-height:1.24}.auth-intro p{max-width:330px}.auth-notes{display:flex;flex-wrap:wrap;gap:10px;margin-top:32px}.auth-card{background:var(--panel);border:1px solid var(--line);padding:32px;border-radius:24px}.auth-card h2{font-size:26px;margin-bottom:8px}.auth-card form{display:grid;gap:20px;margin-top:26px}.input-group{display:flex;gap:10px}.input-group input{min-width:0}.input-group button{flex-shrink:0;font-size:14px;padding:10px 14px}.field-error{font-size:14px;color:var(--danger);min-height:22px}.auth-footer{font-size:12px;color:#819488;display:flex;justify-content:space-between;gap:10px}.check-label{display:flex;align-items:center;gap:10px;margin:0;cursor:pointer}.app-shell{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100svh}.sidebar{border-right:1px solid var(--line);padding:32px 24px;position:sticky;top:0;height:100svh;display:flex;flex-direction:column;gap:46px}.nav{display:grid;gap:8px}.nav button{display:flex;align-items:center;gap:13px;background:none;border-color:transparent;text-align:left;color:var(--muted)}.nav button.active{background:var(--panel2);color:var(--accent)}.sidebar-footer{margin-top:auto;display:grid;gap:10px;font-size:12px;color:var(--muted)}.main{max-width:1320px;width:100%;margin:auto;padding:28px 44px 60px}.topbar{display:flex;justify-content:space-between;align-items:center;padding-bottom:26px;gap:18px;border-bottom:1px solid var(--line)}.vehicle-select{max-width:370px;min-height:46px;padding:8px 14px;background:transparent}.header-actions{display:flex;align-items:center;gap:12px}.header-actions .phone{font-size:13px;color:var(--muted)}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:34px 0 28px}.page-heading h1{margin:7px 0 10px}.refresh{display:flex;gap:8px;align-items:center;flex-shrink:0;font-size:14px}.updated{font-size:12px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:22px 20px;min-width:0}.stat-title{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.stat-value{font-size:34px;font-weight:500;line-height:1.3;margin:16px 0 0;letter-spacing:-1px;overflow-wrap:anywhere}.stat-value small{font-size:13px;color:var(--muted);margin-left:5px;letter-spacing:0}.stat:first-child{background:#253323;border-color:#4e6040}.stat:first-child .stat-value{color:var(--accent)}.dashboard-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}.panel{border:1px solid var(--line);border-radius:20px;background:var(--panel);padding:24px;min-width:0}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.panel-header a,.panel-header button{font-size:13px}.panel-header button{min-height:36px;padding:4px 10px}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick-button{padding:20px 14px;min-height:100px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;background:var(--panel2);font-size:14px}.quick-button .icon{color:var(--accent);width:25px;height:25px}.status-list{display:grid;gap:0}.status-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.status-row:last-child{border-bottom:0;padding-bottom:0}.status-row span:first-child{color:var(--muted)}.status-row strong{font-weight:500;text-align:right;overflow-wrap:anywhere}.panel-bottom{margin-top:20px;font-size:12px;color:var(--muted)}.section-gap{margin-top:22px}.control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.control-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.control-actions button{font-size:14px;padding:12px 10px;min-height:54px}.control-actions button.wide{grid-column:1/-1}.control-title{display:flex;align-items:center;gap:10px;margin-bottom:20px}.control-title .icon{color:var(--accent)}.temperature{display:flex;align-items:center;justify-content:space-between;margin:20px 0;gap:16px}.temperature output{font-size:40px;letter-spacing:-2px}.temperature output small{font-size:17px;letter-spacing:0}.temperature button{width:46px;min-height:46px;padding:0;font-size:22px}.range-labels{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:20px}.tab-strip{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.tab-strip button{font-size:14px;min-height:42px;background:transparent}.tab-strip button.active{background:var(--accent);color:var(--ink);border-color:var(--accent)}.empty{border:1px dashed var(--line);border-radius:16px;padding:46px 20px;text-align:center;color:var(--muted)}.empty .icon{width:32px;height:32px;margin-bottom:12px}.empty p+p{margin-top:8px}.record{display:grid;grid-template-columns:1fr auto;gap:6px 20px;padding:20px 0;border-bottom:1px solid var(--line)}.record:last-child{border:0}.record time{color:var(--muted);font-size:13px}.record-status{font-size:12px;color:var(--accent)}.photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.photos img{width:100%;border-radius:12px;background:var(--panel2)}.setting{display:grid;grid-template-columns:1fr 220px;align-items:center;gap:24px;padding:22px 0;border-bottom:1px solid var(--line)}.setting:last-child{border:0}.setting p{color:var(--muted);font-size:14px;margin-top:4px}.setting select{font-size:14px}.location-box p{overflow-wrap:anywhere}.location-box .location-address{font-size:20px;margin:16px 0 12px}.location-box button{margin-top:20px}.notice{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);max-width:min(580px,calc(100vw - 32px));width:max-content;background:#e5efdc;border:1px solid #bfd597;color:var(--ink);border-radius:14px;padding:16px 22px;box-shadow:0 10px 40px #0005;z-index:20;font-size:14px}.notice.error{background:#ffdace;border-color:#dc9e8b;color:#52281e}.notice[hidden]{display:none}dialog{border:1px solid #52624f;border-radius:24px;background:var(--panel);color:var(--text);max-width:440px;width:calc(100vw - 32px);padding:30px;box-shadow:0 24px 100px #0008}dialog::backdrop{background:#060e0bcc}dialog h2{font-size:24px}dialog .dialog-car{font-size:14px;color:var(--muted);margin:10px 0 22px}dialog .dialog-operation{font-size:24px;color:var(--accent);background:var(--panel2);padding:20px;border-radius:14px;margin-bottom:18px}dialog .dialog-buttons{display:flex;gap:12px;margin-top:24px}dialog .dialog-buttons button{flex:1}dialog .field-error{margin-top:12px}.inline-error{border-left:3px solid var(--danger);background:#382922;padding:14px 18px;border-radius:8px;color:#ffd4cb;font-size:14px;margin-bottom:20px}.mobile-brand{display:none}.loading-pulse{animation:pulse 1.2s infinite}@keyframes pulse{50%{opacity:.45}}.help-text{font-size:12px;color:var(--muted);margin-top:12px}.details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
@media(min-width:1500px){.main{padding-left:60px;padding-right:60px}}
@media(max-width:1100px){.app-shell{grid-template-columns:184px minmax(0,1fr)}.sidebar{padding:28px 18px}.main{padding:24px}.stats{gap:10px}.stat{padding:18px 14px}.stat-value{font-size:28px}.dashboard-grid{grid-template-columns:1fr 1fr}.details-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.header-actions .phone{display:none}.auth-grid{gap:42px}}
@media(max-width:760px){.app-shell{display:block}.sidebar{height:auto;position:fixed;top:auto;bottom:0;left:0;right:0;z-index:10;background:#141f19;border-top:1px solid var(--line);border-right:0;padding:8px 8px max(8px,env(safe-area-inset-bottom));display:block}.sidebar>.brand,.sidebar-footer{display:none}.nav{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.nav button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 4px;font-size:11px;min-height:55px;border-radius:12px}.nav button .icon{width:22px;height:22px}.main{padding:20px 18px 120px}.topbar{padding-bottom:18px;gap:12px;flex-wrap:wrap}.mobile-brand{display:flex}.mobile-brand .brand-mark{width:32px;height:32px;font-size:22px}.mobile-brand .brand small{display:none}.vehicle-select{max-width:100%;width:100%;order:3;background:var(--panel);font-size:14px}.header-actions button{min-height:40px;padding:7px 12px;font-size:12px}.page-heading{padding:26px 0 22px;gap:14px}.page-heading h1{font-size:30px}.page-heading .badge{font-size:11px}.refresh{min-height:42px;padding:8px 11px;font-size:12px}.refresh .icon{width:17px;height:17px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.stat{padding:18px}.stat-value{font-size:32px;margin-top:12px}.stat-title{font-size:12px}.dashboard-grid{grid-template-columns:1fr;gap:16px}.panel{padding:20px;border-radius:18px}.control-grid{grid-template-columns:1fr;gap:16px}.control-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.control-actions button{min-height:54px}.setting{grid-template-columns:1fr;gap:14px}.setting>button,.setting>select{width:100%}.details-grid{grid-template-columns:1fr}.auth-wrap{padding:24px 20px;gap:24px;justify-content:flex-start}.auth-grid{display:block;margin-top:14px}.auth-intro h1{font-size:30px;margin:10px 0}.auth-intro p{font-size:14px}.auth-intro .auth-notes{display:none}.auth-card{margin-top:26px;padding:24px 20px}.auth-card h2{font-size:23px}.auth-card form{gap:18px;margin-top:22px}.auth-footer{margin-top:auto;flex-direction:column;padding-top:16px}.notice{bottom:105px;padding:14px 18px}.input-group button{padding:8px 12px}.page-heading .eyebrow{font-size:10px}.photos{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
