:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172e2b;background:#f6f7f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.topbar{height:86px;border-bottom:1px solid #dfe5dc;display:flex;align-items:center;gap:35px;padding:0 max(5vw,24px);background:#fafbf7}.brand{text-decoration:none;color:#173e36;font-weight:750;font-size:25px;letter-spacing:-1px;display:flex;align-items:center;gap:12px}.brand-icon{font-size:24px;border:1px solid #335b50;border-radius:12px;width:39px;height:39px;display:inline-flex;justify-content:center;align-items:center;position:relative}.brand-icon span{color:#b1ce75;position:absolute;right:2px;top:-12px;font-size:26px}.local{font-size:12px;color:#5c716a;display:flex;align-items:center;gap:8px}.local i,.small-dot{width:6px;height:6px;background:#537e63;border-radius:50%;display:inline-block}.text-button{margin-left:auto;border:0;background:none;color:#3f6357;font:inherit;font-size:13px;cursor:pointer}.text-button span{margin-left:12px}main{max-width:1420px;padding:0 5vw;margin:auto}.intro{display:flex;justify-content:space-between;align-items:center;padding:45px 0 29px}.eyebrow,.label{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#718078;margin:0 0 12px}h1{font-size:clamp(27px,3vw,43px);letter-spacing:-1.8px;font-weight:550;margin:0 0 12px}.subtitle{color:#718078;font-size:14px;margin:0}.primary{border:0;border-radius:8px;background:#204b3e;color:#fafcf7;padding:13px 20px;font-size:13px;font-weight:550;cursor:pointer;display:flex;gap:10px;align-items:center;box-shadow:0 2px 3px #213e3415}.primary:disabled{opacity:.5;cursor:default}.primary span{font-size:21px;line-height:14px}.workspace{display:grid;grid-template-columns:315px 1fr;min-height:500px;border:1px solid #d5ded3;border-radius:13px;overflow:hidden;background:white;box-shadow:0 8px 30px #294a3810}.device-panel{padding:27px 26px;border-right:1px solid #d5ded3;background:#fcfdf9}.device-heading{display:flex;align-items:center;gap:12px;margin-bottom:23px}.chip-icon{background:#e8eee0;border-radius:10px;display:grid;place-items:center;width:47px;height:47px;font-size:28px;color:#486c53}.device-type{font-size:9px;line-height:1.8;letter-spacing:1px;color:#768076}.device-type strong{font-size:12px;font-weight:600;color:#355443;letter-spacing:.5px}.status-dot{width:7px;height:7px;border-radius:50%;background:#a4afa7;margin-left:auto}h2{font-weight:550;font-size:20px;letter-spacing:-.6px;margin:0 0 12px}.badge{font-size:10px;color:#7b6947;background:#f1eddf;padding:6px 9px;border-radius:5px;display:inline-block}.last-seen{margin-top:30px;padding-bottom:20px;border-bottom:1px solid #e5e9df}.label{font-size:9px;letter-spacing:1.3px;margin-bottom:10px}.age{font-size:26px;letter-spacing:-1px;margin:0 0 7px}.muted{color:#7d897e;font-size:11px;margin:0;line-height:1.7}.metrics{margin:19px 0}.metrics div{display:flex;justify-content:space-between;gap:12px;margin:15px 0;font-size:11px}.metrics dt{color:#7a897e}.metrics dd{margin:0;color:#3b594c;text-align:right;font-weight:500}.coordinates{padding:15px 13px;background:#f1f4eb;border-radius:7px;margin-top:22px}.coordinates .label{font-size:8px;letter-spacing:.7px}.coordinates p:last-child{font:12px ui-monospace,monospace;color:#456754;margin:0}.disclaimer{font-size:10px;line-height:1.8;color:#899184;margin:18px 0 0}.map-panel{position:relative;min-height:500px;overflow:hidden;background:#e7ede8;display:flex;flex-direction:column}.map-top{position:absolute;z-index:1;top:20px;left:21px;right:21px;display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:#426152}.map-top>span:first-child{background:#fcfdf6db;border:1px solid #d5e0d4;padding:8px 11px;border-radius:6px;box-shadow:0 2px 4px #344d3c08}.small-dot{margin-right:5px}.map-label{font-size:8px;letter-spacing:1.2px;color:#798b80}#map{width:100%;height:100%;min-height:450px;flex:1}.map-empty{position:absolute;left:0;right:0;top:31%;text-align:center;pointer-events:none}.empty-symbol{font-size:47px;color:#859f8a;font-weight:200}.map-empty h3{font-size:18px;font-weight:500;margin:10px 0;color:#56725e;letter-spacing:-.3px}.map-empty p{font-size:12px;line-height:1.9;color:#7c8f80}.map-bottom{position:absolute;bottom:40px;left:20px;right:20px;display:flex;justify-content:space-between;gap:12px;font-size:9px;color:#6b8472}.map-note{margin:0;padding:12px 20px;background:#e2e9df;font-size:9px;color:#708575;line-height:1.5}.status-line{display:flex;align-items:center;gap:10px;margin:17px 1px 31px;font-size:11px;color:#768375}.status-line p{margin:0;line-height:1.7}.status-line>span:last-child{margin-left:auto;white-space:nowrap;font-size:10px}.status-symbol{font-size:15px;color:#829d81}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.section-title .eyebrow{font-size:9px;margin-bottom:8px}.section-title h2{margin:0;font-size:22px}.count{font-size:10px;color:#70836e;background:#eaf0e2;padding:7px 10px;border-radius:20px}.table-wrap{border:1px solid #dbe1d5;border-radius:9px;background:#fafbf7;overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}th{text-align:left;font-size:8px;letter-spacing:1.2px;color:#8b9786;font-weight:600;padding:16px 22px;border-bottom:1px solid #e3e7dc}td{padding:14px 22px;font-size:11px;color:#536e58;border-bottom:1px solid #e9eddf}td:nth-child(2){font-family:ui-monospace,monospace;font-size:10px}tbody tr{cursor:pointer}tbody tr:hover,tbody tr.selected{background:#edf2e6}.history-empty{font-size:12px;color:#8c9785;padding:26px 20px;text-align:center;margin:0}footer{display:flex;justify-content:space-between;gap:20px;margin:30px 0 27px;color:#99a18f;font-size:9px;line-height:1.7}.demo-banner{margin-top:20px;border:1px solid #dfbe75;background:#fff3d5;color:#80601e;border-radius:7px;padding:12px 16px;font-size:12px;line-height:1.6}.demo-banner[hidden],.map-empty[hidden],.history-empty[hidden]{display:none}.demo-banner:not([hidden])+.intro{padding-top:25px}dialog{border:1px solid #ccd7c9;border-radius:14px;padding:32px;max-width:570px;width:calc(100% - 32px);color:#284c3c;background:#fafcf7;box-shadow:0 20px 90px #122d2760}dialog::backdrop{background:#18372b66}dialog h2{font-size:27px}.close{float:right;background:none;border:0;font-size:25px;color:#6a806d;cursor:pointer}dialog li{font-size:13px;line-height:1.8;margin:17px 0}dialog p:last-child{font-size:11px;line-height:1.8;color:#7d8b75}button:focus-visible,a:focus-visible{outline:3px solid #98b974;outline-offset:4px}@media(max-width:850px){main{padding:0 22px}.workspace{grid-template-columns:270px 1fr}.device-panel{padding:24px 20px}.map-label{display:none}.map-bottom{font-size:8px}.intro{padding-top:32px}.status-line{flex-wrap:wrap}.status-line>span:last-child{display:block;width:100%;margin-left:25px;white-space:normal}}@media(max-width:640px){.topbar{height:70px;padding:0 20px;gap:15px}.brand{font-size:22px}.local{font-size:10px}.text-button{font-size:11px}.text-button span{display:none}main{padding:0 16px}.intro{display:block;padding:27px 0 22px}h1{font-size:30px;letter-spacing:-1.4px}.subtitle{font-size:12px;line-height:1.7}.primary{margin-top:18px;padding:11px 16px}.workspace{grid-template-columns:1fr}.device-panel{border-right:0;border-bottom:1px solid #d5ded3;padding:21px}.device-heading{margin-bottom:14px}.last-seen{margin-top:21px}.metrics{margin:15px 0}.coordinates{margin-top:15px}.map-panel{min-height:350px}#map{min-height:320px}.map-top{left:14px;top:14px;right:14px}.map-bottom{left:14px;right:14px;bottom:47px}.map-note{font-size:8px;padding:10px 14px}.map-empty{top:23%}.status-line{margin-bottom:27px}.section-title h2{font-size:20px}th,td{padding:14px}footer{display:block;font-size:9px}footer span{display:block;margin:6px 0}.demo-banner{font-size:10px}.count{white-space:nowrap}.coordinates .label{font-size:8px}}

.map-panel #map{height:550px;min-height:450px;flex:1;z-index:0;background:#e7ede8}.map-top{z-index:500;pointer-events:none}.map-consent{position:absolute;z-index:800;top:50%;left:50%;transform:translate(-50%,-50%);width:calc(100% - 40px);max-width:370px;padding:23px;background:#fafdf7f5;border:1px solid #cad7c5;border-radius:10px;box-shadow:0 6px 30px #244e2817}.map-consent h3{font-size:19px;font-weight:550;letter-spacing:-.4px;margin:0 0 12px}.map-consent p{font-size:12px;line-height:1.8;color:#73806c}.map-consent .primary{font-size:11px;padding:12px 14px;margin-top:17px}.map-consent[hidden]{display:none}.map-empty{z-index:450;background:#fafcf3de;margin:0 25px;padding:15px;border-radius:10px}.map-bottom{z-index:500;bottom:63px;background:#fbfdf3e8;border:1px solid #d3ddcc;border-radius:6px;align-items:center;padding:9px 11px;flex-wrap:wrap;pointer-events:auto}.map-views{display:flex;gap:5px}.map-views button{font:inherit;font-size:10px;background:#fff;border:1px solid #cbd8c5;border-radius:4px;padding:6px 9px;color:#45654a;cursor:pointer}.map-views button:disabled{opacity:.4;cursor:default}.map-note{position:relative;z-index:500;min-height:45px}.leaflet-container{font-family:inherit}.leaflet-control-attribution{font-size:9px!important}.leaflet-control-scale{margin-bottom:64px!important}.leaflet-control-zoom{margin-bottom:85px!important}.leaflet-control-zoom a{color:#335740!important}.leaflet-popup-content{font-size:12px;line-height:1.7}.map-label{color:#325540;text-shadow:0 1px 3px white}@media(max-width:640px){.map-panel #map{height:420px;min-height:420px}.map-bottom{bottom:78px;font-size:8px;left:10px;right:10px}.map-note{min-height:62px;font-size:9px}.map-consent{padding:18px}.map-consent h3{font-size:17px}.map-consent p{font-size:11px}.map-consent .primary{font-size:10px}.leaflet-control-scale{margin-bottom:108px!important}.leaflet-control-zoom{margin-bottom:120px!important}}

/* Portal review: readable system type, touch targets and explicit session state. */
:root{color:#0f172a;background:#f8fafc}.topbar{background:#fff;border-color:#cbd5e1}.brand,.brand-icon{color:#1e3a8a;border-color:#1e3a8a}.brand-icon span{color:#1e3a8a}.primary{background:#1e3a8a;color:#fff;min-height:44px;font-size:14px}.text-button{color:#1e3a8a;min-height:44px}.eyebrow,.label,.subtitle,.muted,.disclaimer,.metrics dt,.history-empty,footer{color:#475569}.device-panel{background:#fff}.coordinates{background:#eff6ff}.coordinates p:last-child{color:#1e3a8a}.label{font-size:11px}.coordinates .label{font-size:10px}.muted,.metrics div,.disclaimer{font-size:13px}.map-views button{min-height:44px;min-width:44px}.status-line{font-size:13px}th{font-size:11px}td,td:nth-child(2){font-size:13px}button:focus-visible,a:focus-visible,input:focus-visible,tbody tr:focus-visible{outline:3px solid #1d4ed8;outline-offset:3px}.portal-gate{max-width:540px;padding:36px;margin:32px auto;background:#fff;border:1px solid #cbd5e1;border-radius:12px}.portal-gate p{line-height:1.7;color:#475569}.remember{display:flex;align-items:center;gap:12px;min-height:48px;margin:20px 0}.remember input{width:22px;height:22px}.portal-session{display:flex;gap:24px;align-items:center;padding:16px 0;color:#475569;font-size:14px}.portal-gate[hidden],.portal-session[hidden]{display:none}#cloudAccess form label{display:block;margin:18px 0;font-size:14px}#cloudAccess input{display:block;width:100%;min-height:48px;font:inherit;padding:12px;border:1px solid #64748b;border-radius:6px;margin-top:8px}#cloudCancel{min-height:44px;padding:10px 18px}dialog{background:#fff;color:#0f172a}dialog p{line-height:1.6}.close{min-height:44px;min-width:44px}@media(max-width:640px){.portal-gate{padding:24px 20px}.portal-session{flex-wrap:wrap;gap:8px 16px}.portal-session .text-button{margin-left:auto}.topbar{height:auto;min-height:70px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.map-consent p{font-size:13px}.map-consent .primary{font-size:13px}.map-note{font-size:11px}.coordinates .label{font-size:10px}.status-line>span:last-child{font-size:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.portal-account summary { cursor: pointer; color: #1e3a8a; padding: .65rem; }
.portal-account button { min-height: 44px; }
@media (max-width: 600px) {
  .intro { margin-block: .75rem; }
  .intro > div { display: none; }
  .intro #refresh { width: 100%; min-height: 44px; }
  .device-panel .last-seen { margin-top: .75rem; }
  .portal-session { gap: .25rem .75rem; }
  .portal-session > span:first-child { display: none; }
}
