
.anton-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:28px;align-items:start}.anton-shell{max-width:1320px;margin:auto;padding:24px}.anton-side{position:sticky;top:24px;background:var(--card);border:1px solid var(--card-border);border-radius:18px;min-height:760px;padding:22px 14px}.anton-brand{font-size:20px;font-weight:800;letter-spacing:2px;margin:0 10px 25px}.anton-brand small{display:block;font-size:9px;letter-spacing:3px;color:var(--text-muted);margin-top:5px}.anton-side .input{font-size:13px}.anton-side nav{margin-top:28px;display:grid;gap:7px}.anton-nav{border:0;background:none;text-align:left;padding:13px 14px;border-radius:9px;font-size:13px;color:var(--text-muted);cursor:pointer}.anton-nav.active{background:#1d3a59;color:#e4f6ff}.anton-side-foot{font-size:12px;color:var(--text-muted);margin:36px 10px 0}.anton-eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:10px;color:#8ecfe8}.anton-title{font-size:28px;font-weight:750;letter-spacing:-.8px;margin:6px 0}.anton-sub{color:var(--text-muted);font-size:13px;line-height:1.7}.anton-titlebar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.anton-pill{font-size:11px;padding:5px 9px;border:1px solid var(--card-border);border-radius:7px;white-space:nowrap;color:var(--text-muted)}.anton-pill.online{color:#55e1b7;background:#10b98115;border-color:#10b98140}.anton-scene{border:1px solid #315069;border-radius:16px;overflow:hidden;background:#102339}.anton-hero{position:relative;min-height:310px;background:#112a40 url('/static/anton-scene.svg') center/cover}.anton-hero:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#061427aa,transparent 55%,#07162799)}.anton-hero-copy{position:relative;padding:24px;color:white}.anton-hero-copy h2{font-size:26px;font-weight:750;margin:8px 0}.anton-hotspot{position:absolute;z-index:1;border:1px solid #b0cad8;background:#142b3ee8;border-radius:10px;color:#fff;display:flex;align-items:center;gap:10px;padding:12px 16px;font-size:12px;cursor:pointer;box-shadow:0 10px 25px #0004}.anton-hotspot span{background:#2079a2;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-weight:bold}.anton-hotspot:hover,.anton-hotspot:focus-visible{outline:2px solid #77daff;outline-offset:4px}.anton-hotspot.gate{left:37%;top:58%}.anton-hotspot.wicket{left:68%;top:67%}.anton-hotspot.guard{left:10%;top:42%}.anton-hero-note{position:absolute;bottom:12px;right:15px;font-size:9px;color:#dce9f5;background:#071528bb;padding:5px 7px;border-radius:5px}.anton-scene-caption{padding:16px 20px;color:var(--text-muted);font-size:12px;line-height:1.75}.anton-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0}.anton-stat{border:1px solid var(--card-border);border-radius:12px;background:var(--card);padding:17px}.anton-stat span{font-size:11px;color:var(--text-muted)}.anton-stat strong{display:block;font-size:25px;font-weight:700;margin:5px 0}.anton-stat small{font-size:10px;color:#63dabf}.anton-devices{display:grid;grid-template-columns:1fr 1fr;gap:18px}.anton-device{background:var(--card);border:1px solid #335064;border-radius:14px;overflow:hidden;scroll-margin-top:20px}.anton-device-head{padding:20px;display:flex;justify-content:space-between;gap:12px;align-items:start}.anton-device h3{font-size:18px;font-weight:700;margin:0 0 6px}.anton-device-visual{height:170px;position:relative;margin:0 20px;background:radial-gradient(ellipse at center bottom,#23425788,transparent 70%);display:flex;align-items:center;justify-content:center}.anton-device-visual img{height:135px;width:90%;object-fit:contain}.anton-unknown{color:var(--text-muted);border:1px solid var(--card-border);padding:5px 8px;border-radius:5px;font-size:10px}.anton-reading{display:flex;justify-content:space-between;gap:12px;padding:13px 20px;border-top:1px solid var(--card-border);font-size:11px;color:var(--text-muted)}.anton-reading strong{color:var(--text);font-weight:500}.anton-controls{display:flex;gap:10px;padding:16px 20px}.anton-control{flex:1;padding:12px 10px;border:1px solid #348ef3;border-radius:8px;background:#2582f3;color:white;cursor:pointer;font-weight:600;font-size:12px}.anton-control.stop{background:#9f3b4022;border-color:#9f3b4060;color:#f5a8ab}.anton-control:disabled{opacity:.45;cursor:not-allowed}.anton-control:focus-visible{outline:3px solid #85d7ff;outline-offset:3px}.anton-device-footer{padding:0 20px 18px;font-size:11px;line-height:1.7;color:var(--text-muted)}.anton-panel{border:1px solid var(--card-border);background:var(--card);border-radius:14px;padding:20px;margin-top:20px}.anton-panel h3{font-weight:650;font-size:16px;margin-bottom:14px}.anton-warning{font-size:12px;line-height:1.7;border-left:3px solid #4b90af;padding:10px 14px;background:#367b9510;color:var(--text-muted);margin:18px 0}.anton-lights{display:grid;grid-template-columns:1fr 1fr;gap:18px}.anton-photo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.anton-event{border:1px solid var(--card-border);border-radius:10px;padding:15px;overflow:hidden}.anton-event-head{display:flex;justify-content:space-between;font-size:12px;gap:10px}.anton-event p{font-size:11px;color:var(--text-muted);margin-top:7px;line-height:1.6}.anton-photo{display:block;width:100%;max-height:250px;object-fit:contain;border-radius:7px;margin:12px 0;background:#071321}.anton-empty{padding:28px;border:1px dashed var(--card-border);border-radius:10px;text-align:center;font-size:12px;color:var(--text-muted)}.anton-system{display:grid;gap:8px;font-size:12px;line-height:1.6;color:var(--text-muted)}.anton-error{color:#f5a8ab;font-size:12px;margin-top:12px}.anton-channels{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.anton-channel{background:var(--input-bg);padding:12px 8px;border:1px solid var(--card-border);border-radius:8px;font-size:11px;text-align:center}.anton-channel strong{display:block;margin:5px 0}.anton-refresh{background:none;border:1px solid var(--card-border);padding:7px 12px;border-radius:7px;color:var(--text-muted);font-size:12px;cursor:pointer}html[data-theme='light'] .anton-nav.active{background:#d8ecfa;color:#164466}@media(max-width:900px){.anton-layout{grid-template-columns:1fr}.anton-side{position:static;min-height:0;padding:15px}.anton-side nav{display:flex;overflow:auto;margin-top:12px;gap:4px}.anton-side-foot{display:none}.anton-brand{display:none}.anton-side .input{max-width:none}.anton-nav{white-space:nowrap;padding:10px}.anton-shell{padding:16px}.anton-titlebar{margin:3px 0 18px}.anton-hero{min-height:280px}}@media(max-width:560px){.anton-stats{grid-template-columns:1fr 1fr}.anton-devices,.anton-lights,.anton-photo-grid{grid-template-columns:1fr}.anton-title{font-size:24px}.anton-hero{min-height:270px}.anton-hero-copy{padding:17px}.anton-hotspot{padding:9px;gap:6px;font-size:10px}.anton-hotspot.gate{left:24%;top:58%}.anton-hotspot.wicket{left:58%;top:77%}.anton-hotspot.guard{left:5%;top:42%}.anton-hero-note{bottom:5px;font-size:8px}.anton-channels{grid-template-columns:repeat(3,1fr)}}@media(prefers-reduced-motion:reduce){.anton-layout *{transition:none!important;scroll-behavior:auto}}

/* Real entrance photograph: visual selection only, never sensor feedback. */
.anton-hero{min-height:360px;background-image:url('/static/anton-entrance-clean.png');background-position:50% 55%;background-size:cover;isolation:isolate}
.anton-hero:before{z-index:0;background:linear-gradient(180deg,rgba(5,17,31,.76) 0%,rgba(5,17,31,.25) 42%,rgba(5,17,31,.35) 72%,rgba(5,17,31,.67) 100%)}
.anton-hero-copy{z-index:2;pointer-events:none}.anton-hotspot{z-index:3}.anton-hero-note{z-index:3}.anton-zone{position:absolute;z-index:1;pointer-events:none;border:2px solid rgba(105,221,255,.9);box-shadow:0 0 15px #62dcff99,inset 0 0 24px #4dcfff66;background:#50d9ff15;border-radius:3px;opacity:0;transition:opacity .2s ease}
.anton-zone.gate{left:30%;top:35%;width:46%;height:49%}.anton-zone.wicket{left:77%;top:40%;width:14%;height:44%}.anton-zone.guard{left:1%;top:18%;width:29%;height:66%}
.anton-hero[data-selected="gate"] .anton-zone.gate,.anton-hero[data-selected="wicket"] .anton-zone.wicket,.anton-hero[data-selected="guard"] .anton-zone.guard{opacity:1}
@media(max-width:560px){.anton-hero{min-height:300px;background-position:50% 55%}.anton-zone.gate{top:48%;height:27%}.anton-zone.wicket{top:49%;height:27%}.anton-zone.guard{top:18%;height:57%}}

/* Gate direction is illustrative. Lock colors require real lock feedback. */
.anton-gate-visual{padding-bottom:14px}.anton-gate-arrows{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;color:#80d7ff;overflow:visible}.anton-flow-track{stroke:#80d7ff30}.anton-flow-path{stroke:currentColor;stroke-dasharray:5 7;animation:anton-arrow-flow 1.4s linear infinite;filter:drop-shadow(0 0 3px #69ccff77)}.anton-motion-caption{position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:9px;color:var(--text-muted);letter-spacing:.2px}.anton-lock-badge{position:absolute;top:3px;right:0;display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid currentColor;border-radius:10px;background:var(--input-bg);box-shadow:0 8px 26px #0002;line-height:1.4}.anton-lock-badge strong{display:block;font-size:12px;font-weight:650}.anton-lock-badge small{display:block;font-size:10px;opacity:.75;margin-top:3px}.anton-lock-badge[data-lock-state="locked"]{color:#4ddcb0}.anton-lock-badge[data-lock-state="unlocked"]{color:#ffc567}.anton-lock-badge[data-lock-state="unknown"]{color:var(--text-muted);border-color:var(--input-border)}.anton-wicket-card[data-lock-state="locked"]{border-color:#35c99b80;background:linear-gradient(145deg,#15936a12,var(--card))}.anton-wicket-card[data-lock-state="unlocked"]{border-color:#e9aa4d80;background:linear-gradient(145deg,#e9aa4d12,var(--card))}.anton-wicket-card[data-lock-state="unknown"]{border-color:var(--card-border)}.anton-wicket-card[data-lock-state="locked"] .anton-wicket-visual{background:radial-gradient(ellipse at center bottom,#16b98935,transparent 75%)}.anton-wicket-card[data-lock-state="unlocked"] .anton-wicket-visual{background:radial-gradient(ellipse at center bottom,#e9aa4d30,transparent 75%)}.anton-wicket-card[data-lock-state="unknown"] .anton-wicket-visual{background:radial-gradient(ellipse at center bottom,#64748b20,transparent 75%)}
@keyframes anton-arrow-flow{to{stroke-dashoffset:-48}}
@media(prefers-reduced-motion:reduce){.anton-flow-path{animation:none;stroke-dasharray:none}.anton-lock-badge{transition:none}}

/* Wicket contour follows the photographed leaf, independent of lock feedback. */
.anton-zone.wicket{left:78%;top:27%;width:10%;height:56%;opacity:1;border:0;box-shadow:none;background:none}
.anton-wicket-contour{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 4px #73dcff66)}.anton-wicket-contour path{stroke:#a0d3e88c;stroke-width:1.5;fill:#55d4ff09;transition:stroke .2s,fill .2s,stroke-width .2s}
.anton-hero[data-selected="wicket"] .anton-wicket-contour{filter:drop-shadow(0 0 7px #73dcffcc)}.anton-hero[data-selected="wicket"] .anton-wicket-contour path{stroke:#8deaff;stroke-width:2.5;fill:#55d4ff25}
@media(max-width:560px){.anton-zone.wicket{left:78%;top:43%;width:11%;height:34%}}

/* Align numbered photo labels and center the wicket label on its contour. */
.anton-hotspot{align-items:center;white-space:nowrap;line-height:1.2;min-height:50px}
.anton-hotspot>span{flex:0 0 26px;align-self:center;line-height:1;display:grid;place-items:center}
.anton-hotspot.wicket{left:83%;top:58%;transform:translateX(-50%)}
@media(max-width:560px){.anton-hotspot{min-height:44px}.anton-hotspot.wicket{left:83%;top:77%}.anton-hotspot>span{flex-basis:26px}}

/* Compact mobile disclosure; desktop navigation remains visible. */
.anton-menu-toggle{display:none}
@media(max-width:900px){
 .anton-menu-toggle{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:10px 12px;background:transparent;border:0;border-radius:8px;color:var(--text);font:inherit;text-align:left;cursor:pointer}
 .anton-menu-toggle:focus-visible{outline:2px solid #77daff;outline-offset:2px}
 .anton-menu-current{margin-left:auto;color:var(--text-muted);font-size:12px}
 .anton-menu-chevron{font-size:20px;line-height:1}
 .anton-side{padding:7px}
 .anton-side .anton-menu-body{display:none}
 .anton-side.menu-open .anton-menu-body{display:block;padding:14px 8px 8px;border-top:1px solid var(--card-border);margin-top:7px}
 .anton-side.menu-open .anton-menu-chevron{transform:rotate(180deg)}
 .anton-side nav{display:grid;grid-template-columns:1fr;overflow:visible;gap:4px;margin-top:12px}
 .anton-side .anton-nav{width:100%;min-height:44px;text-align:left;white-space:normal}
}

/* Fine curved direction strokes, independent of physical gate state. */
.anton-flow-track{stroke:currentColor;opacity:.45;stroke-linecap:round}
.anton-flow-path{stroke-dasharray:12 88;animation:anton-arrow-glide 3s cubic-bezier(.4,0,.2,1) infinite;filter:none;opacity:.85}
@keyframes anton-arrow-glide{from{stroke-dashoffset:12;opacity:0}20%{opacity:.85}80%{opacity:.85}to{stroke-dashoffset:-100;opacity:0}}
.anton-weather{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;padding:10px 0 16px;margin-top:-10px;color:var(--text-muted);font-size:12px;line-height:1.6}
.anton-weather strong{color:var(--text);font-weight:500}
.anton-weather-source{margin-left:auto;font-size:10px;color:var(--text-muted);text-decoration:underline;text-underline-offset:3px}
@media(max-width:560px){.anton-weather{gap:4px 10px}.anton-weather-value{flex-basis:100%;order:2}.anton-weather-source{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.anton-flow-path{animation:none;stroke-dasharray:none;opacity:.5}}

/* Animate only while an accepted START awaits a terminal sensor. */
.anton-gate-visual[data-motion="idle"] .anton-flow-path{animation:none;opacity:0}
.anton-gate-visual[data-motion="idle"] .anton-flow-track{opacity:.18}
.anton-gate-visual[data-motion="active"] .anton-flow-track{opacity:.45}

/* Q-Power branding and scoped light theme contrast. */
.anton-brand-gradient{display:inline-block;padding:10px 18px!important;border-radius:12px;background:linear-gradient(120deg,#143858 0%,#126277 58%,#273d73 100%);color:#fff!important;box-shadow:0 5px 18px #08263c20;letter-spacing:-.6px}
html[data-theme="light"] .anton-shell{--text:#14283e;--text-muted:#475569;--card-border:#c3cfdb;--input-border:#94a3b8;--input-bg:#f1f5f9}
html[data-theme="light"] .anton-shell .anton-eyebrow{color:#17617d}
html[data-theme="light"] .anton-shell .anton-hero-copy .anton-eyebrow{color:#c4efff}
html[data-theme="light"] .anton-shell .anton-scene-caption{color:#d1e4f2}
html[data-theme="light"] .anton-shell .anton-stat small{color:#11664f}
html[data-theme="light"] .anton-shell .anton-pill.online{color:#08614b;background:#d9f3e9;border-color:#69b59b}
html[data-theme="light"] .anton-shell .anton-control:disabled{opacity:1;background:#e2e8f0;color:#475569;border-color:#aab7c6;box-shadow:none}
html[data-theme="light"] .anton-shell .anton-control.stop:not(:disabled){color:#963c43;background:#fff1f2;border-color:#be737a}
html[data-theme="light"] .anton-shell .anton-gate-arrows{color:#176786}
html[data-theme="light"] .anton-shell .anton-warning{color:#334155;background:#e9f1f6;border-left-color:#347b9b}
html[data-theme="light"] .anton-shell .anton-lock-badge[data-lock-state="locked"]{color:#096c50}
html[data-theme="light"] .anton-shell .anton-lock-badge[data-lock-state="unlocked"]{color:#855006}
html[data-theme="light"] .anton-shell .anton-error{color:#a52d3a}
.anton-weather{min-height:44px}
@media(max-width:560px){.anton-brand-gradient{padding:9px 15px!important}.anton-weather{min-height:72px}}

/* Compact Q-Power header; account actions stay inside an accessible disclosure. */
.anton-header{flex-wrap:nowrap!important;margin-bottom:12px!important;gap:10px!important}
.anton-header>div:first-child{min-width:0}
.anton-account-menu{position:relative;flex-shrink:0;z-index:20}
.anton-account-menu summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:9px 12px;border:1px solid var(--card-border);border-radius:9px;font-size:12px;color:var(--text);background:var(--card)}
.anton-account-menu summary::-webkit-details-marker{display:none}
.anton-account-menu summary:focus-visible{outline:2px solid #207ba4;outline-offset:3px}
.anton-account-menu[open] summary span{transform:rotate(180deg)}
.anton-account-actions{position:absolute;right:0;top:calc(100% + 7px);display:flex!important;flex-direction:column;align-items:stretch!important;gap:7px!important;min-width:190px;padding:12px;border:1px solid var(--card-border);border-radius:12px;background:var(--card);box-shadow:0 12px 30px #0003}
.anton-account-actions>span{display:block!important;font-size:11px;padding:2px 4px 6px;color:var(--text-muted)}
.anton-account-actions .theme-toggle{width:100%;text-align:left;padding:8px 12px}
.anton-section-title{font-size:22px;font-weight:700;margin:0 0 12px}
.anton-agent-status{margin-left:0}
.anton-weather{margin-top:0;padding-top:0;padding-bottom:10px;min-height:36px}
@media(max-width:900px){.anton-layout{gap:12px}.anton-shell{padding-top:10px}.anton-weather{margin:0;min-height:44px}.anton-header>div:first-child>span{display:none}.anton-header .logo{width:30px;height:30px}.anton-header h1{font-size:20px}.anton-weather-value{order:3;flex-basis:100%}.anton-weather-source{margin-left:auto}.anton-agent-status{font-size:10px}.anton-scene-caption{padding:12px 15px}}
@media(max-width:560px){.anton-weather{min-height:64px}.anton-header{margin-bottom:10px!important}.anton-layout{gap:10px}}

.anton-account-menu:not([open]) .anton-account-actions{display:none!important}

/* Two-second hold is a command; a tap only selects the photographed object. */
.anton-zone.gate,.anton-zone.wicket{pointer-events:auto;cursor:pointer;touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.anton-hotspot.gate,.anton-hotspot.wicket{touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overflow:hidden}
.anton-control.anton-holding:after,.anton-hotspot.anton-holding:after{content:'';position:absolute;left:0;bottom:0;height:4px;background:#61e7c4;animation:anton-hold-progress 1s linear forwards}
.anton-zone.anton-holding{opacity:1;outline:3px solid #61e7c4;outline-offset:2px}
.anton-zone:focus-visible{opacity:1;outline:3px solid #61e7c4;outline-offset:3px}
.anton-command-status{min-height:34px;padding:8px 2px;color:var(--text-muted);font-size:11px;line-height:1.6}
@keyframes anton-hold-progress{from{width:0}to{width:100%}}
@media(prefers-reduced-motion:reduce){.anton-control.anton-holding:after,.anton-hotspot.anton-holding:after{animation:none;width:100%}}

/* Keep the wicket label at the right edge of the entrance photo. */
.anton-hotspot.wicket{left:auto;right:clamp(8px,3%,32px);transform:none}

/* Mobile location navigation is opened by the logo, without a separate menu row. */
.anton-logo-menu{display:flex;align-items:center;gap:12px;min-width:0;padding:0;border:0;background:none;color:var(--text);cursor:pointer;text-align:left}
.anton-logo-title{font-size:24px;font-weight:650;line-height:1.2}
.anton-logo-chevron{display:none;font-size:17px;color:var(--text-muted)}
.anton-logo-menu:focus-visible{outline:2px solid #207ba4;outline-offset:5px;border-radius:5px}
.anton-logo-menu[aria-expanded="true"] .anton-logo-chevron{transform:rotate(180deg)}
@media(max-width:900px){
 .anton-logo-title{font-size:20px}.anton-logo-chevron{display:block}
 .anton-logo-menu>.text-sm{display:none}
 .anton-side{display:none}
 .anton-side.menu-open{display:block}
 .anton-side .anton-menu-toggle{display:none}
 .anton-side.menu-open .anton-menu-body{margin-top:0;border-top:0;padding-top:8px}
 .anton-header{margin-bottom:8px!important}
}

.anton-relay-pair{display:inline-flex;gap:10px;align-items:center}
.anton-relay-indicator{display:inline-block;width:24px;height:24px;border-radius:7px;border:1px solid #8291a4;vertical-align:middle}
.anton-relay-indicator[data-state="on"]{background:#16a36f;border-color:#47d49f;box-shadow:0 0 8px #16a36f40}
.anton-relay-indicator[data-state="off"]{background:#64748b;border-color:#94a3b8}
.anton-relay-indicator[data-state="unknown"]{background:#e3ac32;border-color:#8c681c;border-style:dashed}

.anton-control{position:relative;overflow:hidden;touch-action:manipulation;user-select:none}
