:root{--ink:#163d3b;--muted:#4f6661;--paper:#f1eee2;--line:#bcc7b8;--a:#af4b25;--b:#27569a;--c:#79518e;--good:#17645b;--bad:#a44328;color-scheme:light}
.guide-action{display:block;width:100%;min-height:44px;margin-top:10px;padding:9px 12px;border:1px solid #a5b6a4;border-radius:4px;background:#e7e8d9;color:var(--ink);text-align:left;font:600 12px/1.4 Arial,sans-serif;cursor:pointer}.guide-action:hover{background:#dce4d4}
.candidate-marker.label-below span{top:38px}
#workbench-exact-note{font-size:13px!important;line-height:1.4;color:var(--ink);background:#e7e8d9;border-left:3px solid var(--good);padding:9px 11px}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.45 Arial,Helvetica,sans-serif}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #c65e2d;outline-offset:4px}button:disabled{cursor:not-allowed;opacity:.6}[hidden]{display:none!important}a{color:inherit;text-underline-offset:3px}.skip-link{position:fixed;left:15px;top:-80px;background:#fff;padding:12px;z-index:300}.skip-link:focus{top:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.signal-shell{max-width:1600px;padding:22px clamp(16px,2.5vw,42px) 12px;margin:auto}.mast{display:flex;align-items:center;justify-content:space-between;gap:24px}.eyebrow{font:700 10px/1.4 Consolas,'Courier New',monospace;letter-spacing:1.7px;margin:0 0 7px}.radio-mark{font-size:19px;vertical-align:middle;margin-right:8px}.edition{font-weight:400;opacity:.62;margin-left:14px;font-size:9px}.mast h1{font:400 clamp(30px,3.1vw,48px)/1.08 Georgia,serif;letter-spacing:-1.5px;margin:4px 0 8px}.dek{font-size:14px;margin:0;color:var(--muted)}.quiet{background:transparent;border:1px solid var(--line);border-radius:5px;padding:10px 14px;font-size:12px;white-space:nowrap;min-height:40px}
.cases{display:flex;gap:24px;border-bottom:1px solid #aebbac;margin:18px 0 18px}.cases button{background:transparent;border:0;border-bottom:3px solid transparent;padding:12px 3px 11px;color:var(--muted);font-size:12px;min-height:43px;white-space:nowrap}.cases button span{font:10px Consolas,monospace;margin-right:7px;color:var(--muted)}.cases button[aria-current]{border-color:var(--a);color:var(--ink);font-weight:700}.cases button:hover{color:var(--a)}
.board{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:26px;align-items:stretch}.map-card{border:1px solid #9eaf9f;border-radius:9px;overflow:hidden;background:#e3ebe1;display:flex;flex-direction:column;min-width:0}.map-heading{display:flex;justify-content:space-between;gap:10px;padding:12px 17px;border-bottom:1px solid #b5c3b1;font:9px Consolas,monospace;letter-spacing:1.3px;background:#e6ecdf}.map-heading i{display:inline-block;width:6px;height:6px;background:var(--good);border-radius:100%;margin-right:5px}.map-frame{position:relative;min-width:0;flex:1;aspect-ratio:7/6;max-height:500px;overflow:hidden}.map-frame svg{display:block;width:100%;height:100%}.terrain{fill:#eaf0d980;stroke:#c0cda977;stroke-width:2}.terrain path:nth-child(even){fill:none}.compass path{stroke:#365f585e;stroke-width:2;fill:none}.compass text{fill:#365f588c;font:14px Georgia,serif}.range-ring{fill:none;stroke-width:2.5;vector-effect:non-scaling-stroke;opacity:.88}.range-fill{opacity:.025}.range-line{stroke-width:1.2;stroke-dasharray:5 5;opacity:.5;vector-effect:non-scaling-stroke}.map-items{position:absolute;inset:0;pointer-events:none}.station{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px;border:2px solid #fff7e4;border-radius:6px;background:var(--station);color:#fff;box-shadow:0 2px 7px #173c3b2a;display:grid;place-content:center;font:700 14px/1 Arial,sans-serif;z-index:2}.station small{position:absolute;top:36px;left:50%;transform:translateX(-50%);color:var(--ink);font:700 10px Consolas,monospace;background:#f1eee2df;white-space:nowrap;border-radius:3px;padding:1px 4px}.search-pin{position:absolute;transform:translate(-50%,-50%);height:44px;width:44px;border:0;background:transparent;padding:0;z-index:4;touch-action:none;display:grid;place-items:center;border-radius:50%}.search-pin span[aria-hidden]{display:grid;place-items:center;width:25px;height:25px;border-radius:100%;font:25px/1 Arial,sans-serif;color:#fff;background:#163d3b;box-shadow:0 0 0 4px #f8f5e4,0 0 0 5px #163d3b8a,0 3px 10px #163d3b40}.search-pin:active{cursor:grabbing}.search-pin.is-exact span[aria-hidden]{background:var(--a)}.candidate-marker{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;pointer-events:auto;background:none;border:0;border-radius:50%;z-index:3}.candidate-marker::before{content:'';display:block;width:24px;height:24px;border:2px solid #9c5025;border-radius:50%;background:#efd39477;margin:auto;box-shadow:0 0 0 5px #fff6}.candidate-marker span{position:absolute;left:50%;transform:translateX(-50%);top:-13px;white-space:nowrap;font:700 10px Consolas,monospace;background:#f9edd5;color:#6c351b;padding:2px 5px;border:1px solid #ae7f4e;border-radius:3px}.map-stamp{position:absolute;bottom:12px;left:15px;color:#456559b3;font:8px Consolas,monospace;letter-spacing:1.5px;pointer-events:none}.map-foot{padding:10px 14px;display:flex;gap:10px;justify-content:space-between;border-top:1px solid #b5c3b1;background:#e6ecdf}.map-foot p{font-size:11px;color:#3f5c52;margin:0;max-width:420px}.map-foot>span{white-space:nowrap;font:11px Consolas,monospace;align-self:center}kbd{font:10px Consolas,monospace;border:1px solid #b0bca8;border-radius:3px;padding:0 3px}
.instrument{padding:5px 0;display:flex;flex-direction:column;min-width:0}.case-intro h2{font:400 clamp(23px,2.2vw,32px)/1.12 Georgia,serif;letter-spacing:-.5px;margin:0 0 10px}.case-intro>p:last-child{font-size:13px;color:var(--muted);margin:0 0 15px;line-height:1.5}.readings{border-top:1px solid var(--line);margin-bottom:13px}.reading{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.station-badge{width:22px;height:22px;display:grid;place-content:center;border-radius:4px;background:var(--station);color:white;font-weight:700;font-size:11px}.reading-name{color:var(--muted);font-size:10px}.reading-name strong{font-size:13px;color:var(--ink);display:block;font-weight:600}.reading-value{text-align:right;font:12px/1.5 Consolas,monospace}.reading-value small{font-size:10px;display:block;color:var(--muted)}.reading-value .fits{color:var(--good);font-weight:700}.adjuster{background:#e7e8d9;padding:10px 12px;margin-bottom:12px;border-radius:5px}.adjuster label{font-size:11px;font-weight:700}.slider-row{display:flex;gap:12px;align-items:center}.slider-row input{accent-color:var(--c);width:100%;min-width:0;min-height:32px;cursor:ew-resize}.slider-row output{font:14px Consolas,monospace;min-width:30px;text-align:right}.adjuster p{font-size:10px;color:var(--muted);margin:0}.main-actions{display:grid;gap:7px}.primary,.secondary{border-radius:4px;padding:11px 14px;min-height:42px;font-size:12px;font-weight:700}.primary{background:var(--ink);border:1px solid var(--ink);color:#f8f4e5}.primary:hover{background:#245853}.primary span{float:right;margin-left:16px}.secondary{background:transparent;border:1px solid #94a99b;color:var(--ink)}.secondary:hover{background:#e3e6d6}.feedback{display:flex;gap:10px;margin-top:14px;padding:12px 0 0;border-top:1px solid var(--line)}.result-icon{display:grid;place-content:center;flex:0 0 27px;height:27px;border-radius:50%;background:#dbe2d1;font:18px Georgia,serif}.feedback h3{font:700 13px/1.35 Arial,sans-serif;margin:0 0 4px}.feedback p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.feedback[data-status="INFEASIBLE"] .result-icon{background:#ecd7c7;color:var(--bad)}.feedback[data-status="UNIQUE"] .result-icon{background:#cde1d6;color:var(--good)}.text-action{border:0;background:none;text-align:left;text-decoration:underline;text-underline-offset:3px;font-size:11px;color:var(--ink);padding:12px 0 0 37px}.local-footer{display:flex;justify-content:space-between;gap:24px;align-items:center;border-top:1px solid #bbc5b4;margin-top:15px;padding-top:12px}.local-footer>p{font-size:12px;margin:0;max-width:650px;line-height:1.5}.local-footer nav{display:flex;gap:14px;flex-shrink:0}.local-footer button{border:0;padding:8px 0;background:none;color:var(--ink);font-size:11px;text-decoration:underline;text-underline-offset:4px;min-height:36px}.scope-note{color:#617064;font:9px/1.5 Consolas,monospace;margin:8px 0 0}.notice{padding:8px 12px;background:#f6dfc8;border:1px solid #ccaa86;margin-bottom:10px;font-size:12px}
dialog{width:min(640px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #809887;border-radius:9px;color:var(--ink);background:#f5f1e5;box-shadow:0 25px 90px #0b272b5a}dialog::backdrop{background:#0c272b80;backdrop-filter:blur(3px)}.dialog-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:22px 25px;background:#f5f1e5;border-bottom:1px solid var(--line)}.dialog-heading h2{font:28px/1.1 Georgia,serif;margin:0}.dialog-close{border:1px solid var(--line);background:transparent;border-radius:4px;padding:9px 13px;font-size:12px;min-height:38px}.dialog-body{padding:7px 25px 25px}.dialog-body p{font-size:14px;line-height:1.65}.dialog-body details{border-block:1px solid var(--line);margin:20px 0;padding:14px 0}.dialog-body summary{font-size:13px;font-weight:700;cursor:pointer}.dialog-body details p{font-size:12px}.proof-box{background:#e5eadc;border-left:3px solid #5f8677;padding:16px 18px;margin:20px 0}.proof-box h3{font:700 12px Arial;margin:0 0 10px}.proof-box p{font-size:13px;margin:8px 0;overflow-wrap:anywhere}.proof-box code{font-size:12px}.proof-box pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.7 Consolas,monospace}.work-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dialog-body label{font-size:12px;font-weight:700;display:block}.dialog-body input[type="number"],.dialog-body input[type="text"]{display:block;width:100%;padding:10px;margin-top:6px;background:#fffdf5;border:1px solid #9aaa98;border-radius:4px;color:var(--ink);font-weight:400;min-height:42px}.dialog-body label.check-line{display:flex;gap:10px;align-items:center;margin-top:18px}.check-line input{accent-color:var(--good);width:18px;height:18px}.fine-print{font-size:11px!important;color:var(--muted)}.coordinate-editor{display:flex;gap:14px;align-items:end;border-top:1px solid var(--line);padding:14px 0 20px}.coordinate-editor h3{font:13px/1.5 Arial;margin:0 auto 0 0;max-width:150px}.coordinate-editor label{width:90px}
/* The SVG is out of flow: its evolving viewBox must never grow its own frame. */
.map-frame{flex:0 0 auto}.map-frame>svg{position:absolute;inset:0}.main-actions{grid-template-columns:1fr 1fr}
.mobile-summary{display:none}.map-card>.adjuster{margin:0;border-radius:0;border-top:1px solid #b5c3b1;padding:7px 14px}.map-card>.adjuster .slider-row{gap:14px}.map-card>.adjuster p{font-size:10px}
@media(min-width:1100px) and (max-height:800px){.signal-shell{padding-top:12px}.mast>.eyebrow,.mast>div>.eyebrow{display:none}.mast h1{font-size:36px}.cases{margin:10px 0}.map-frame{height:340px;max-height:none;aspect-ratio:auto}.map-heading{padding:9px 14px}.map-foot{padding:8px 12px}.instrument{padding-top:1px}.case-intro h2{font-size:27px}.case-intro>p:last-child{margin-bottom:10px;font-size:12px}.reading{padding:6px 0}.readings{margin-bottom:9px}.adjuster{padding:7px 10px;margin-bottom:9px}.primary,.secondary{padding:9px 10px;min-height:43px;font-size:11px}.primary span{margin-left:5px}.feedback{margin-top:10px;padding-top:10px}.feedback p{font-size:11px}.local-footer{margin-top:12px;padding-top:8px}.scope-note{margin-top:5px}}
@media(min-width:1450px){.board{grid-template-columns:minmax(0,1fr) 370px;gap:34px}.map-frame{max-height:560px}.instrument{padding-top:10px}.case-intro>p:last-child{font-size:14px}.reading{padding:12px 0}.main-actions .primary,.main-actions .secondary{font-size:13px}.feedback p{font-size:13px}}
@media(max-width:950px){.board{grid-template-columns:minmax(0,1fr) 300px;gap:18px}.edition{display:none}.cases{gap:16px}.cases button{font-size:11px}.local-footer{align-items:start}.local-footer nav{gap:12px;flex-wrap:wrap;justify-content:end}.map-heading{font-size:8px;padding-inline:12px}.map-foot{flex-direction:column;gap:4px}.map-foot>span{align-self:start}}
@media(max-width:720px){.signal-shell{padding:20px 15px 14px}.mast{align-items:start;gap:8px}.mast h1{font-size:34px;letter-spacing:-1.1px}.mast .quiet{font-size:0;min-width:39px;padding:9px}.mast .quiet::after{content:'↺';font-size:20px}.eyebrow{font-size:9px;letter-spacing:1px}.radio-mark{font-size:16px}.dek{font-size:13px;line-height:1.55;max-width:310px}.cases{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;margin:16px 0}.cases button{text-align:left;min-height:42px;font-size:11px;white-space:normal;padding:9px 2px}.cases button span{margin-right:5px}.board{display:flex;flex-direction:column;gap:18px}.map-frame{aspect-ratio:7/6;min-height:270px;max-height:none}.map-heading{font-size:8px;letter-spacing:1px}.map-heading #map-scale{font-size:7px;letter-spacing:.4px}.map-foot{flex-direction:row;align-items:start;padding:9px 11px}.map-foot p{font-size:10px;max-width:210px}.map-foot>span{font-size:10px;align-self:start;padding-top:2px}.map-stamp{font-size:6px;bottom:6px;left:11px}.station{width:26px;height:26px;font-size:12px}.station small{top:29px;font-size:9px}.candidate-marker span{font-size:9px;top:-12px}.instrument{padding:0}.case-intro h2{font-size:29px}.case-intro>p:last-child{font-size:13px;margin-bottom:14px}.readings{margin-bottom:14px}.reading{padding:10px 0}.reading-name strong{font-size:14px}.main-actions{grid-template-columns:1fr 1fr}.primary,.secondary{padding:10px;font-size:11px;min-height:46px}.primary span{margin-left:4px}.feedback{padding:14px 0;margin-top:14px}.feedback p{font-size:13px}.feedback h3{font-size:15px}.local-footer{flex-direction:column;gap:7px;margin-top:8px}.local-footer>p{font-size:13px}.local-footer nav{gap:20px;justify-content:start}.scope-note{font-size:9px}.dialog-heading{padding:17px}.dialog-heading h2{font-size:25px}.dialog-body{padding:4px 17px 20px}.work-grid{gap:14px}.coordinate-editor{flex-wrap:wrap}.coordinate-editor h3{flex-basis:100%;max-width:none}.coordinate-editor label{flex:1}.text-action{padding-top:0;padding-bottom:10px}.adjuster label{font-size:12px}.adjuster p{font-size:11px}}
@media(prefers-reduced-motion:no-preference){.search-pin span[aria-hidden]{transition:background .15s}.candidate-marker::before{animation:appear .35s ease-out}@keyframes appear{from{box-shadow:0 0 0 16px #efd39400;transform:scale(.6)}to{box-shadow:0 0 0 5px #fff6;transform:scale(1)}}}
@media(min-width:1100px) and (max-height:800px){.mast>div{display:grid;grid-template-columns:max-content minmax(210px,340px);gap:0 24px;align-items:center}.mast h1{margin:4px 0}.mast .dek{max-width:340px;font-size:13px}.map-card:has(.adjuster:not([hidden])) .map-frame{height:325px}.map-card>.adjuster{padding:5px 12px}.map-card>.adjuster .slider-row input{min-height:27px}}
@media(max-width:720px){
  .signal-shell{padding-top:14px}
  .mast>div>.eyebrow{display:none}
  .mast h1{font-size:30px;margin-bottom:6px}
  .mast .dek{line-height:1.4}
  .cases{margin:10px 0}
  .map-frame{height:225px;min-height:0;aspect-ratio:auto}
  .map-card>.adjuster{padding:6px 11px}
  .map-card>.adjuster p{font-size:10px}
  .map-foot p{font-size:10px}
  .local-footer{padding-bottom:6px}
}

.next-investigation{font-size:14px;display:flex;gap:10px 16px;align-items:baseline;flex-wrap:wrap;padding:15px 0;border-top:1px solid var(--line,#c4ccbb);margin:10px 0 0}.next-investigation a{font-weight:600;text-underline-offset:4px}.next-investigation span{font-size:12px;opacity:.8}

/* Show the competing exact locations without treating either as the answer. */
.alternative-line{fill:none;stroke-width:1.3;stroke-dasharray:4 5;opacity:.4;pointer-events:none}
.map-heading #map-scale{max-width:50%;text-align:right;line-height:1.5;letter-spacing:.5px}
.application-bridge{display:grid;grid-template-columns:.8fr 1.2fr;gap:28px;border-top:1px solid var(--line,#c4ccbb);padding:22px 0 8px;margin-top:10px}
.application-bridge h2{font:400 26px/1.2 Georgia,serif;letter-spacing:-.4px;margin:0;max-width:22ch}.application-bridge p:not(.eyebrow){font-size:14px;line-height:1.7;margin:0 0 10px;color:var(--muted,#5d6c62);max-width:66ch}
@media(max-width:720px){.application-bridge{grid-template-columns:1fr;gap:14px}.application-bridge h2{font-size:25px}.application-bridge p:not(.eyebrow){font-size:13px}.map-heading #map-scale{font-size:7px;max-width:46%}}

.map-scope{display:block;font-size:10px;line-height:1.5;color:var(--muted,#5d6c62);margin-top:3px}

/* A field instrument, with receivers and possible cart locations kept distinct. */
.map-card{border-color:#8ba79c;border-radius:8px;box-shadow:0 8px 24px #173d3510}
.map-heading{background:#214b46;color:#f5f0dc;border-color:#214b46;min-height:35px}
.map-heading i{background:#e8ca7d;box-shadow:0 0 0 3px #e8ca7d14}
.terrain{fill:#e9e3ce99;stroke:#b0b99b99;stroke-width:2}
.terrain path:nth-child(even){fill:none;stroke:#a6b49688}
.range-ring{stroke-width:2.6;opacity:.95}.range-fill{opacity:.035}
.range-line{stroke-width:1.5;opacity:.65}.alternative-line{opacity:.52}
.map-items .station{width:37px;height:40px;display:block;border-radius:7px;border-color:#fbf7e8;box-shadow:0 2px 0 #143a3230,0 4px 10px #143a3222}
.map-items .station svg{width:100%;height:100%;display:block}.map-items .station text{font:700 16px Arial,sans-serif;fill:currentColor}
.map-items .station small{top:44px;font-size:10px;padding:2px 5px;border:1px solid #b8c5af;background:#f8f4e8}
.candidate-marker::before{width:36px;height:36px;background:#fff6de;border-color:#a17429;box-shadow:0 0 0 4px #fff9}
.map-frame .candidate-cart{position:absolute;inset:8px;width:28px;height:28px;fill:none;stroke:#79521a;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.candidate-marker>span{top:-20px;font-size:10px;padding:3px 7px;background:#fff6de;border-color:#b5965c}
.candidate-marker.label-below>span{top:44px}
.search-pin.is-exact span[aria-hidden]{width:38px;height:38px;background:transparent;color:transparent;box-shadow:0 0 0 2px #9c5e22,0 0 0 6px #f8f4df99}
.reading-key{display:flex;justify-content:space-between;gap:10px;font:9px/1.4 Consolas,monospace;letter-spacing:1px;padding:0 4px 7px;color:var(--muted)}
.readings{border-top:0;margin-bottom:12px}.reading{padding:9px 10px;margin-bottom:6px;border:1px solid #c7cdbc;border-radius:5px;background:#faf8ef;gap:9px}
.reading[data-match="yes"]{border-color:#81a898;background:#edf4ec}.reading-value{font-size:14px;line-height:1.5}.reading-value small{font-size:11px}.reading-name strong{font-size:13px}
.feedback{padding:12px;margin-top:12px;border:1px solid #c4ccbb;border-left:3px solid #6c8877;background:#e9ede1;border-radius:4px;min-height:84px}
.feedback[data-status="AMBIGUOUS"]{border-left-color:#b78c37;background:#f5edda}.feedback[data-status="INFEASIBLE"]{border-left-color:#ad573b;background:#f5e7dc}.feedback[data-status="UNIQUE"]{border-left-color:#438472;background:#e1eee4}
.feedback h3{font-size:14px}.feedback p{font-size:12px;line-height:1.55}
.guide-action{background:#214b46;border-color:#214b46;color:#faf4df;min-height:46px;font-size:12px}.guide-action:hover{background:#2e5e56}
.map-foot{background:#edf0e3}.map-stamp{color:#3a655b}
@media(min-width:1100px) and (max-height:800px){.case-intro h2{font-size:26px}.reading{padding:7px 9px}.reading-value{font-size:13px}.feedback{min-height:80px}.feedback p{font-size:11px}.guide-action{font-size:11px}.board{grid-template-columns:minmax(0,1fr) 345px}}
@media(max-width:720px){.map-items .station{width:32px;height:35px}.map-items .station small{top:38px;font-size:9px}.candidate-marker>span{font-size:9px}.feedback p{font-size:13px}.feedback h3{font-size:15px}.reading-key{font-size:8px}.reading{padding:10px}.reading-value{font-size:14px}.map-heading #map-scale{color:#eee8d4}.main-actions .primary{background:#214b46}}
@media(min-width:721px){.board{align-items:start}}

/* Survey presentation 1.4: the selected pin's agreement is visible in its lines. */
.map-card{border-color:#9dbbb0;box-shadow:0 3px 0 #cbd8cf,0 16px 38px #1d4b4512}
.map-heading{background:linear-gradient(100deg,#173f3e,#2a5750)}
.range-line[data-match=yes]{stroke-width:2.4;stroke-dasharray:none;opacity:.95}
.range-line[data-match=no]{stroke-width:1.6;stroke-dasharray:5 4;opacity:.8}
.reading[data-match=yes]{box-shadow:inset 3px 0 #397e67;background:#edf5ec}
.reading-value small:not(.fits){color:#79503b}
.signal-shell button:focus-visible,.signal-shell input:focus-visible,.signal-shell a:focus-visible{outline:2px solid #236e71;outline-offset:3px}
.signal-shell .main-actions .primary{box-shadow:0 2px 0 #153f3b}
@media print{.map-card{box-shadow:none}.range-line{print-color-adjust:exact}}
@media(max-width:360px){.reading-value{max-width:124px}.reading-value small{white-space:normal;line-height:1.4}.reading-name strong{white-space:nowrap}}

/* A survey sheet under crafted field receivers, with no implied obstacles. */
.map-frame{background:#284e4c;box-shadow:inset 0 0 24px #173e3723}
.map-stamp{color:#e8e6c8;bottom:4px;left:26px}
@media(max-width:1099px){.map-frame{aspect-ratio:3/2}}
.survey-paper path{fill:none}
.survey-paper path:nth-last-child(4){fill:#ecedd3}
.survey-paper{stroke-width:1;fill:none}
.survey-paper path:nth-child(even){stroke:#73917b;fill:none}
.map-items .station{width:46px;height:64px;border:0;background:transparent;color:var(--station);box-shadow:none;border-radius:0}
.map-items .station svg{overflow:visible;width:100%;height:100%;filter:drop-shadow(1px 3px 1px #274d3930)}
.map-items .station small{top:55px;background:#fff9e7e8;border-color:#9aae96;box-shadow:0 2px 2px #395c4214}
.map-frame .candidate-cart{inset:3px;width:38px;height:38px;stroke-width:1;stroke-linejoin:round;filter:drop-shadow(1px 2px 1px #79552222)}
.candidate-marker::before{width:40px;height:40px;background:#fff9decc;border-width:1.3px;box-shadow:0 0 0 3px #fff9}
.instrument{position:relative;background:linear-gradient(145deg,#fbf8e8,#f1f1de)}
.reading{box-shadow:inset 0 1px #fffdf3,0 2px 0 #dce1ce}
.station-badge{box-shadow:inset 0 1px #ffffff55,0 2px 0 #193f3122;border:1px solid #ffffff55}
@media(max-width:720px){.map-items .station{width:40px;height:56px}.map-items .station small{top:49px}.map-frame .candidate-cart{inset:4px;width:36px;height:36px}}

/* Keep the evidence and controls on the same board. */
.map-card>.main-actions{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:8px 12px 10px;
  background:#eef2e8;
}
.map-card>.main-actions>button{min-height:44px}
.candidate-actions{
  display:grid;
  grid-template-columns:minmax(112px,auto) 1fr;
  align-items:center;
  gap:12px;
  padding:9px 12px;
  background:#e5eddf;
  border-block:1px solid #bacbb7;
}
.candidate-actions[hidden]{display:none}
.candidate-heading{display:grid;gap:2px;font-size:13px}
.candidate-heading span{font-size:11px;color:#39574f}
.candidate-options{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}
.candidate-options button{
  display:flex;
  align-items:center;
  align-content:center;
  justify-content:center;
  flex-wrap:wrap;
  column-gap:8px;
  min-height:44px;
  min-width:0;
  padding:8px;
  background:#f8f3e0;
  border:1px solid #a38c5e;
  border-radius:4px;
  color:#493821;
  line-height:1.12;
}
.candidate-options button:hover{background:#fff9e6}
.candidate-options button[aria-pressed=true]{background:#fff9e6;box-shadow:inset 0 0 0 1px #8d6629}
.candidate-options button[aria-pressed=true] strong{text-decoration:underline;text-underline-offset:2px}
.candidate-options strong{font-size:12px}
.candidate-options small{color:#5b4b33;font:11px/1.25 Consolas,monospace}
@media(min-width:1100px) and (min-height:801px){
  .map-frame{max-height:clamp(340px,calc(100vh - 475px),500px)}
}
@media(min-width:721px) and (max-width:1099px){
  .map-frame{max-height:clamp(285px,calc(100vh - 467px),450px)}
}
@media(max-width:720px){
  .map-card>.main-actions{padding:6px 8px 8px}
  .map-card>.main-actions>button{padding-inline:6px}
  .candidate-actions{grid-template-columns:1fr;gap:5px;padding:7px 8px 8px}
  .candidate-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 8px}
  .candidate-options{gap:6px}
  .candidate-options button{column-gap:6px;padding:6px}
  .map-card>.mobile-summary{
    display:block;
    min-height:42px;
    padding:6px 10px;
    border:0;
    background:#eff2e8;
    color:var(--ink);
    font:700 11px/1.35 Arial,sans-serif;
    text-align:left;
    cursor:pointer;
  }
  .map-card>.mobile-summary:disabled{opacity:1;cursor:default}
}
