/* SPADE service designer. Tokens match spade_redesign: ink, gold, grey, white. Gold is for
   buttons, markers and lines on dark surfaces, and is never used as text on a light one. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-100-900.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #091018;
  --ink-2: #0f1720;
  --ink-3: #17212c;
  --gold: #d0a868;
  --grey: #f1f1f1;
  --white: #ffffff;
  --w80: rgba(255, 255, 255, .82);
  --w60: rgba(255, 255, 255, .62);
  --w40: rgba(255, 255, 255, .4);
  --w15: rgba(255, 255, 255, .15);
  --w08: rgba(255, 255, 255, .08);
  --ok: #7fd1a4;
  --warn: #f2c26b;
  --bad: #ff8a80;
  --aim: #e5221b;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --panel-width: clamp(400px, 33vw, 500px);
  --pad: clamp(18px, 2.4vw, 32px);
  --radius: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--ink); color: var(--w80); font: 400 15px/1.5 var(--font-text); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-underline-offset: 3px; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Layout */
.app { display: grid; grid-template-columns: var(--panel-width) minmax(0, 1fr); height: 100svh; }
.panel { background: var(--ink); border-right: 1px solid var(--w15); display: flex; flex-direction: column; min-height: 0; overflow-y: auto; scrollbar-color: var(--w15) transparent; }
.stage { position: relative; min-width: 0; background: var(--ink-2); }
.map { position: absolute; inset: 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px var(--pad) 14px; }
.brand { display: inline-flex; }
.brand img { display: block; height: 30px; width: auto; }
.chip { border: 1px solid var(--gold); color: var(--gold); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }

/* Step rail */
.rail { border-block: 1px solid var(--w15); padding: 0 var(--pad); }
.rail ol { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.rail__step { flex: 1 0 auto; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rail__step > * { display: flex; flex-direction: column; gap: 1px; width: 100%; padding: 10px 6px 9px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
.rail__step button { cursor: pointer; }
.rail__n { font: 600 10px/1 var(--font-text); letter-spacing: .06em; color: var(--w40); font-variant-numeric: tabular-nums; }
.rail__t { font-size: 11px; color: var(--w40); white-space: nowrap; }
.rail__step.is-done .rail__t, .rail__step.is-done .rail__n { color: var(--w60); }
.rail__step.is-done { border-color: var(--w40); }
.rail__step.is-done button:hover .rail__t { color: var(--white); }
.rail__step.is-now { border-color: var(--gold); }
.rail__step.is-now .rail__n { color: var(--gold); }
.rail__step.is-now .rail__t { color: var(--white); font-weight: 600; }

/* Step content */
.step { flex: 1 0 auto; padding: 26px var(--pad) 22px; }
.step.enter { animation: rise .42s var(--ease) both; }
h1 { font: 800 clamp(25px, 2.25vw, 32px)/1.08 var(--font-display); font-stretch: 125%; letter-spacing: -.012em; color: var(--white); margin: 0 0 12px; }
h1:focus, h1:focus-visible { outline: none; } /* Focus lands here on each step for screen readers. */
h2 { font: 700 15px/1.25 var(--font-display); font-stretch: 112%; color: var(--white); margin: 0 0 4px; }
.lede { color: var(--w80); margin-bottom: 18px; }
.lede strong, .hint strong { color: var(--white); font-weight: 600; }
.hint { color: var(--w60); font-size: 13px; margin-top: 6px; }
.label, label { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--w80); margin-bottom: 6px; }
label span, label output { color: var(--w40); font-weight: 400; }
label output { color: var(--white); font-variant-numeric: tabular-nums; }
.field { margin-top: 14px; position: relative; min-width: 0; }
.field__error { color: var(--bad); font-size: 12.5px; margin-top: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input:not([type]), select, textarea {
  width: 100%; height: 42px; padding: 0 11px; background: var(--ink-2); border: 1px solid var(--w15); border-radius: var(--radius);
  color: var(--white); font: 400 15px/1 var(--font-text); font-variant-numeric: tabular-nums; transition: border-color .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--w40); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
textarea { height: auto; padding: 10px 11px; line-height: 1.45; resize: vertical; }
input[type="date"] { color-scheme: dark; }
input::placeholder { color: var(--w40); }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--w60) 50%), linear-gradient(135deg, var(--w60) 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--ink-2); color: var(--white); }
input[type="range"] { width: 100%; accent-color: var(--gold); height: 24px; }

/* Buttons */
.actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px var(--pad); background: var(--ink); border-top: 1px solid var(--w15); z-index: 2; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: var(--radius); font: 700 14px/1 var(--font-text); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--ink); margin-left: auto; }
.btn--gold:hover { background: #dcb97f; }
.btn--gold:disabled { background: var(--w15); color: var(--w40); cursor: not-allowed; }
.btn--line { background: transparent; border-color: var(--w40); color: var(--white); }
.btn--line:hover { border-color: var(--white); }
.link { background: none; border: 0; padding: 0; margin-top: 14px; color: var(--w60); font: 400 13px/1.4 var(--font-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--white); }
.actions .link { margin: 0; }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* Status */
.status-slot:empty { display: none; }
.note { border-left: 2px solid var(--w40); background: var(--ink-2); padding: 10px 12px; font-size: 13.5px; margin-top: 14px; color: var(--w80); }
.note--ok { border-color: var(--ok); }
.note--warn { border-color: var(--warn); }
.note--error { border-color: var(--bad); color: var(--white); }

/* Outline instructions */
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.howto li { display: flex; gap: 12px; align-items: center; color: var(--w80); font-size: 14px; }
.key { flex: 0 0 18px; height: 18px; display: inline-grid; place-items: center; }
.key::before { content: ""; display: block; border-radius: 50%; }
.key--corner::before { width: 16px; height: 16px; background: var(--white); border: 4px solid var(--gold); }
.key--mid::before { width: 10px; height: 10px; background: var(--white); opacity: .85; }
.key--merge::before { width: 16px; height: 16px; background: transparent; border: 2px dashed var(--gold); }

/* Services dropdown */
.dropdown { border: 1px solid var(--w40); border-radius: var(--radius); background: var(--ink-2); }
.dropdown__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 46px; padding: 8px 14px; background: none; border: 0; color: var(--white); font: 600 14.5px/1.3 var(--font-text); text-align: left; cursor: pointer; }
.dropdown__menu { border-top: 1px solid var(--w15); padding: 4px 0; }
.check { display: flex; align-items: center; gap: 11px; justify-content: flex-start; margin: 0; padding: 9px 14px; font-size: 14.5px; color: var(--white); font-weight: 400; cursor: pointer; }
.check:hover { background: var(--w08); }
.check input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.check span { color: inherit; }
.check__box { flex: 0 0 18px; height: 18px; border: 1px solid var(--w60); border-radius: 3px; display: grid; place-items: center; }
.check input:checked + .check__box { background: var(--gold); border-color: var(--gold); }
.check input:checked + .check__box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold); outline-offset: 2px; }
.check--consent { padding: 14px 0 0; align-items: flex-start; font-size: 13.5px; color: var(--w80); }
.check--consent:hover { background: none; }
.check--consent a { color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.question { color: var(--white); font-weight: 600; font-size: 14.5px; margin: 16px 0 8px; }
.camera-howto { margin: -8px 0 14px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--w15); border-radius: var(--radius); margin-top: 8px; }
.stepper button { width: 44px; height: 40px; background: none; border: 0; color: var(--white); font-size: 20px; line-height: 1; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--w08); }
.stepper button:disabled { color: var(--w15); cursor: not-allowed; }
.stepper output { min-width: 36px; text-align: center; color: var(--white); font: 700 17px/1 var(--font-display); font-variant-numeric: tabular-nums; }

/* Address search */
.suggest { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; background: var(--ink-3); border: 1px solid var(--w40); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.suggest li { padding: 9px 12px; color: var(--white); font-size: 14px; cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--w15); }

/* Camera planner */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.tabs button { min-height: 34px; padding: 0 12px; background: none; border: 1px solid var(--w15); border-radius: var(--radius); color: var(--w80); font: 500 13px/1 var(--font-text); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }
.tabs__add { border-style: dashed !important; }
/* Camera side view and plate preview */
.camera-figure { margin-top: 18px; }
.side-view { display: block; width: 100%; height: auto; border: 1px solid var(--w15); border-radius: var(--radius); background: var(--ink-2); }
.side-view .wedge { fill: var(--gold); fill-opacity: .3; stroke: var(--gold); stroke-opacity: .8; stroke-width: 1; }
.side-view .ground { stroke: var(--w40); stroke-width: 1; }
.side-view .blind { stroke: var(--bad); stroke-width: 3; }
.side-view .pole { stroke: var(--w60); stroke-width: 2; }
.side-view .lens { fill: var(--gold); }
.side-view .person { fill: var(--white); }
.side-view text { fill: var(--w60); font: 600 10px var(--font-text); font-variant-numeric: tabular-nums; }
.plates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plates figure { margin: 0; min-width: 0; }
.plates canvas { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: var(--radius); background: #000; }
.plates figcaption { margin-top: 4px; font-size: 12px; color: var(--w60); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 14px 0 0; border: 1px solid var(--w15); background: var(--w15); }
.specs > div { background: var(--ink); padding: 8px 10px; min-width: 0; }
.specs dt { font-size: 11px; color: var(--w60); }
.specs dd { margin: 2px 0 0; color: var(--white); font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.legend { margin-top: 12px; display: grid; gap: 5px; }
.legend__row { display: grid; grid-template-columns: 14px 1fr auto; gap: 9px; align-items: center; font-size: 12.5px; color: var(--w80); }
.swatch { width: 14px; height: 14px; border: 1px solid var(--w40); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Drone page */
.suggestion { margin: -2px 0 10px; }
.counter + .field { margin-top: 2px; }
.counter { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; background: var(--ink-2); border: 1px solid var(--w15); border-radius: 999px; margin-bottom: 18px; color: var(--white); font-weight: 600; }
.counter .stepper { margin: 0; border: 0; }
.counter .stepper button { border: 1px solid var(--w40); border-radius: 999px; height: 36px; width: 48px; }
.counter .stepper button:disabled { border-color: var(--w15); }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.steps-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 14px; color: var(--w80); }
.steps-list svg { margin-top: 2px; color: var(--gold); }
.list-title { font: 700 14px/1.2 var(--font-display); color: var(--white); margin: 0 0 10px; }

/* Response time card on the map */
.map-card { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; width: min(390px, calc(100% - 28px)); padding: 14px 16px 16px; background: var(--white); color: var(--ink); border-radius: 16px; box-shadow: 0 10px 34px rgba(0, 0, 0, .45); }
.map-card h2 { color: var(--ink); font-size: 15px; margin: 0 0 3px; }
.map-card p { font-size: 13px; color: rgba(9, 16, 24, .7); margin-bottom: 10px; }
.map-card strong { color: var(--ink); }
.chips { display: flex; gap: 6px; }
.chips button { flex: 1; min-height: 36px; background: var(--white); border: 1px solid rgba(9, 16, 24, .26); border-radius: 999px; color: var(--ink); font: 500 13.5px/1 var(--font-text); cursor: pointer; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 700; }

/* Pricing */
.price-card { border-top: 2px solid var(--gold); padding-top: 14px; margin-top: 22px; }
.price-card h2, .subheading { font: 800 19px/1.2 var(--font-display); font-stretch: 112%; color: var(--white); margin: 0; }
.subheading { margin-bottom: 8px; }
.price-card > p { font-size: 13.5px; color: var(--w60); }
.subtotal { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--w15); color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }
.subtotal dd { margin: 0; text-align: right; }
.price-card .question { color: var(--white); font: 600 14.5px/1.3 var(--font-text); margin: 12px 0 2px; }
.included { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.included li { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 13.5px; color: var(--white); }
.included small { display: block; color: var(--w60); font-size: 12.5px; }
.price-tag { color: var(--white); font-weight: 600; font-size: 13.5px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-tag small { display: block; font-weight: 400; color: var(--w60); font-size: 12px; }
.plan { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 11px; align-items: center; justify-content: stretch; margin: 8px 0 0; padding: 12px 13px; background: var(--ink-2); border: 1px solid var(--w15); border-radius: 10px; color: var(--white); cursor: pointer; font-weight: 400; transition: border-color .15s; position: relative; }
.plan:hover { border-color: var(--w40); }
.plan:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.plan input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; }
.plan__dot { width: 18px; height: 18px; border: 1px solid var(--w60); border-radius: 50%; display: grid; place-items: center; }
.plan--addon .plan__dot { border-radius: 3px; }
.plan input:checked + .plan__dot { border-color: var(--gold); }
.plan input:checked + .plan__dot::after { content: ""; width: 10px; height: 10px; background: var(--gold); border-radius: inherit; }
.plan input:focus-visible + .plan__dot { outline: 2px solid var(--gold); outline-offset: 2px; }
.plan__body { color: var(--white); font-size: 14px; font-weight: 500; }
.plan__body small { display: block; color: var(--w60); font-size: 12.5px; font-weight: 400; margin-top: 1px; }

/* Estimate */
.quote { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.quote th, .quote td { padding: 11px 0; border-bottom: 1px solid var(--w15); text-align: left; vertical-align: top; }
.quote thead th { padding-top: 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--w60); font-weight: 500; }
.quote td.num, .quote th.num { text-align: right; padding-left: 12px; color: var(--white); }
.quote td strong { display: block; color: var(--white); font-weight: 600; }
.quote td span { display: block; color: var(--w60); font-size: 13px; margin-top: 2px; }
.quote tfoot th, .quote tfoot td { border-bottom: 0; border-top: 2px solid var(--gold); color: var(--white); font: 800 18px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }

/* Site ledger */
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--w15); margin: 0; }
.ledger > div { padding: 10px 0 10px 14px; border-right: 1px solid var(--w15); min-width: 0; }
.ledger > div:first-child { padding-left: var(--pad); }
.ledger > div:last-child { border-right: 0; }
.ledger dt { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--w40); }
.ledger dd { margin: 3px 0 0; color: var(--white); font: 700 16px/1.1 var(--font-display); font-stretch: 105%; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Map overlays */
.survey { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 9px; background: rgba(9, 16, 24, .78); border-left: 2px solid var(--gold); color: var(--white); font: 500 12px/1.3 var(--font-text); font-variant-numeric: tabular-nums; pointer-events: none; white-space: pre; }
.map-note { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; gap: 8px; padding: 24px; text-align: center; background: var(--ink-2); color: var(--white); }

.map-legend { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; gap: 5px; padding: 8px 10px; background: rgba(9, 16, 24, .82); color: var(--white); font-size: 12px; pointer-events: none; }
.map-legend > div { display: flex; align-items: center; gap: 7px; }

/* Map handles */
.handle { cursor: grab; touch-action: none; }
.handle:active { cursor: grabbing; }
.handle:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 50%; }
.handle::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; } /* Larger touch target. */
.handle--corner { width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 5px solid var(--gold); box-shadow: 0 1px 5px rgba(0, 0, 0, .6); }
.handle--mid { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.handle--pin { width: 30px; height: 38px; cursor: default; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .55)); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 46'%3E%3Cpath fill='%23fff' d='M18 1C9 1 2 8 2 17c0 11 16 28 16 28s16-17 16-28C34 8 27 1 18 1z'/%3E%3Ccircle cx='18' cy='17' r='9' fill='%23d0a868'/%3E%3C/svg%3E") center / contain no-repeat; }
.handle--pin::after { display: none; }
.handle--station { width: 36px; height: 46px; text-align: center; color: var(--white); font: 700 14px/34px var(--font-text); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .55)); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 46'%3E%3Cpath fill='%23fff' d='M18 1C9 1 2 8 2 17c0 11 16 28 16 28s16-17 16-28C34 8 27 1 18 1z'/%3E%3Ccircle cx='18' cy='17' r='12' fill='%232d62d6'/%3E%3C/svg%3E") center / contain no-repeat; }
.handle--station.is-bad { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 46'%3E%3Cpath fill='%23fff' d='M18 1C9 1 2 8 2 17c0 11 16 28 16 28s16-17 16-28C34 8 27 1 18 1z'/%3E%3Ccircle cx='18' cy='17' r='12' fill='%23c6281f'/%3E%3C/svg%3E"); }
.handle--station.is-fixed { cursor: default; }
.handle--ringlabel { padding: 3px 8px; background: var(--white); color: var(--ink); border-radius: 999px; font: 700 11.5px/1.2 var(--font-text); box-shadow: 0 1px 4px rgba(0, 0, 0, .45); cursor: default; pointer-events: none; }
.handle--ringlabel::after { display: none; }
.handle--camera.is-fixed { cursor: default; }
.handle--trailer { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: #e8722c; color: var(--white); border: 2px solid var(--white); font: 700 12px/1 var(--font-text); box-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.handle--trailer.is-fixed { cursor: default; }
.handle--camera { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: var(--ink); color: var(--white); border: 2px solid var(--w80); font: 700 12px/1 var(--font-text); box-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.handle--camera.is-active { background: var(--gold); color: var(--ink); border-color: var(--white); }
.handle--aim { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--aim); box-shadow: 0 1px 5px rgba(0, 0, 0, .6); }
.handle--aim.is-trailer { border-color: #e8722c; }

/* Services that aren't offered at this address */
.check.is-off { cursor: not-allowed; color: var(--w40); }
.check.is-off:hover { background: none; }
.check.is-off .check__box { border-color: var(--w15); }
.check small { display: block; font-size: 12px; color: var(--warn); }

/* Guard post orders */
.duties { border: 0; padding: 0; margin: 22px 0 0; }
.duties .check { padding: 7px 0; }
.duties .check:hover { background: none; }
.subtotal--deposit { margin-top: 8px; padding-top: 8px; }
.quote tfoot tr.deposit th, .quote tfoot tr.deposit td { border-top: 1px solid var(--w15); font-size: 15px; font-weight: 700; color: var(--w80); }

/* Camera grades */
.grades { border: 0; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grades legend { grid-column: 1 / -1; }
.grade { position: relative; display: grid; gap: 3px; padding: 10px 11px; background: var(--ink-2); border: 1px solid var(--w15); border-radius: 10px; cursor: pointer; transition: border-color .15s; }
.grade:hover { border-color: var(--w40); }
.grade:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.grade:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.grade input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.grade__label { color: var(--white); font: 700 15px/1.2 var(--font-display); }
.grade small { color: var(--w60); font-size: 12px; line-height: 1.35; }

/* Robot routes */
.routes { list-style: none; margin: 18px 0 12px; padding: 0; display: grid; gap: 8px; }
.route { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 10px 12px; background: var(--ink-2); border: 1px solid var(--w15); border-radius: 10px; }
.route.is-drawing { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.route__swatch { width: 12px; height: 12px; border-radius: 50%; }
.route__name { color: var(--white); font-weight: 600; font-size: 14px; }
.route__name small { display: block; color: var(--w60); font-weight: 400; font-size: 12.5px; }
.route__actions { display: flex; align-items: center; gap: 12px; }
.route__actions .link { margin: 0; }
.btn--small { min-height: 34px; padding: 0 14px; margin: 0; }
.handle--robot { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #4fd18b; color: var(--ink); border: 2px solid var(--white); font: 800 13px/1 var(--font-text); box-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.handle--robot.is-fixed { cursor: default; }
.handle--routept { width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid #4fd18b; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); }

/* The form over the pricing summary. The summary loads first, then this covers it. */
/* Descriptions are blurred too, since some name an hourly rate. */
.estimate.is-locked .num, .estimate.is-locked td span { filter: blur(7px); user-select: none; }
.gate { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(5, 10, 16, .55); animation: fade .25s var(--ease); }
.gate__card { width: min(560px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; background: var(--ink); border: 1px solid var(--w15); border-top: 3px solid var(--gold); border-radius: 12px; padding: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); animation: rise .35s var(--ease); }
.gate__card h2 { font: 800 24px/1.15 var(--font-display); font-stretch: 112%; color: var(--white); margin: 0 0 6px; }
.gate__card h2:focus { outline: none; }
.gate__card > p { color: var(--w80); font-size: 14px; }
.gate__actions { display: flex; gap: 10px; margin-top: 18px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.noscript { position: fixed; inset: auto 0 0; background: var(--gold); color: var(--ink); padding: 14px; text-align: center; z-index: 20; }
.maplibregl-ctrl-group { border-radius: var(--radius) !important; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Tablet and phone: map on top, controls scroll beneath it. */
@media (max-width: 860px) {
  .app { display: flex; flex-direction: column; height: auto; min-height: 100svh; }
  .stage { order: -1; position: sticky; top: 0; z-index: 3; height: 44svh; min-height: 240px; flex: none; border-bottom: 1px solid var(--w15); }
  .panel { flex: 1; border-right: 0; overflow: visible; }
  .step { padding-top: 20px; }
  h1 { font-size: 24px; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input:not([type]), select { font-size: 16px; } /* Stops iOS zooming on focus. */
  .btn { flex: 1 1 auto; }
  .btn--gold { margin-left: 0; }
  .ledger dd { font-size: 14px; }
  .ledger > div { padding-left: 10px; }
  .map-card { bottom: 10px; padding: 9px 10px; border-radius: 12px; }
  .map-card h2, .map-card p { display: none; }
  .chips button { min-height: 32px; font-size: 12.5px; }
  .grades { grid-template-columns: 1fr; }
  .gate { place-items: end center; padding: 0; }
  .gate__card { border-radius: 14px 14px 0 0; max-height: 88svh; padding: 20px 16px; }
  textarea, input[type="date"] { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .stage, .rail, .actions, .chip, .ledger, .gate { display: none !important; }
  .app { display: block; height: auto; }
  .panel { background: #fff; overflow: visible; border: 0; }
  h1, .quote td.num, .quote th.num, .quote td strong, .quote tfoot th, .quote tfoot td, .lede, .hint, .note { color: #000 !important; }
  .quote th, .quote td { border-color: #bbb; }
  .note { background: none; }
  .brand img { filter: invert(1); }
}
