/* Vigiar · planejador de cobertura — a planning instrument on a dark ground */
:root {
  --bg: #090C0B; --bg2: #0D1211; --card: #111816; --card2: #17201D; --line: #232D29; --line2: #34413B;
  --ink: #E6EDE9; --ink2: #A9B6B0; --ink3: #84918B;
  --ph: #62F29A; --ph2: #39C877; --phf: rgba(98, 242, 154, .15); --amb: #FFB547; --red: #FF5B4F; --ir: #D4EDE0;
  --lot: #18211E; --bld: #2Av. Portugal, 2501: #060807; --walk: #131917;
  --fd: 'Chakra Petch', 'Arial Narrow', sans-serif; --ft: 'Sarabun', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1); --dark: 1;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--ft); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ph); color: #06100A; }
a { color: var(--ink); text-decoration-color: var(--ph2); text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ph); outline-offset: 2px; }
.num { font-family: var(--fd); font-variant-numeric: tabular-nums; }
.k { font: 600 11px/1.3 var(--fd); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); margin: 0; }
[hidden] { display: none !important; }

/* ---------- frame ---------- */
.app { display: grid; grid-template-columns: 312px minmax(0, 1fr) 404px; grid-template-rows: 64px minmax(0, 1fr) auto;
  grid-template-areas: "bar bar bar" "side plan read" "leg leg leg"; height: 100vh; min-height: 760px; }

/* ---------- top bar: lot presets and the hour (the reference's slider strip) ---------- */
.bar { grid-area: bar; display: flex; align-items: center; gap: 28px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--bg2); min-width: 0; }
.brand { display: flex; align-items: center; flex: 0 0 auto; margin-right: 6px; }
.brand img { height: 30px; width: auto; display: block; }
.lot { display: flex; align-items: center; gap: 12px; min-width: 0; }
.presets { display: flex; border: 1px solid var(--line2); border-radius: 4px; overflow: hidden; }
.presets button { background: transparent; border: 0; border-right: 1px solid var(--line2); padding: 8px 12px; font: 500 13px/1.1 var(--fd); color: var(--ink2); white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease); }
.presets button:last-child { border-right: 0; }
.presets button:hover { color: var(--ink); background: var(--card); }
.presets button.on { color: #06100A; background: var(--ph); }
.hour { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.hour-track { position: relative; width: 240px; height: 22px; display: flex; align-items: center; }
.hour-track .sky { position: absolute; left: 0; right: 0; top: 7px; height: 8px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, #0F1A2A 0%, #0F1A2A 20%, #6C4A2C 25%, #C9A24B 30%, #D9E3DC 36%, #E8EEE9 55%, #D9E3DC 68%, #C98A3E 74%, #4A2F2A 80%, #0F1A2A 85%, #0F1A2A 100%); }
.hour output { min-width: 108px; font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.hour output small { font: 500 11px var(--fd); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); margin-left: 4px; }
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; margin: 0; height: 22px; position: relative; z-index: 1; width: 100%; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; background: transparent; }
input[type=range]::-moz-range-track { height: 8px; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 22px; margin-top: -7px; border-radius: 1px; background: var(--ink); box-shadow: 0 0 0 3px var(--bg), 0 0 12px rgba(98, 242, 154, .6); }
input[type=range]::-moz-range-thumb { width: 6px; height: 22px; border: 0; border-radius: 1px; background: var(--ink); box-shadow: 0 0 0 3px var(--bg); }
.langs { display: flex; gap: 2px; }
.langs button { background: transparent; border: 1px solid transparent; border-radius: 3px; padding: 5px 8px; font: 600 12px/1 var(--fd); letter-spacing: .1em; color: var(--ink3); }
.langs button.on { color: var(--ink); border-color: var(--line2); }

/* ---------- left: intro and trays ---------- */
.side { grid-area: side; overflow: auto; padding: 26px 22px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.eyebrow { font: 600 11px/1.3 var(--fd); letter-spacing: .16em; text-transform: uppercase; color: var(--ph); margin: 0 0 14px; }
.intro h1 { font: 600 40px/1.0 var(--fd); letter-spacing: -.025em; margin: 0 0 14px; text-wrap: balance; }
.intro h1 em { font-style: normal; color: var(--red); text-decoration: underline 3px; text-underline-offset: 6px; }
.lede { margin: 0; color: var(--ink2); font-size: 14.5px; line-height: 1.6; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line2); }
.tabs button { display: flex; align-items: center; gap: 7px; justify-content: center; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 4px; font: 600 13px/1 var(--fd); color: var(--ink3); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ph); }
.tabs .ct { font: 600 11px/1 var(--fd); color: var(--ink3); min-width: 18px; padding: 3px 4px; border: 1px solid var(--line2); border-radius: 3px; }
.tabs button.on .ct { color: var(--ph); border-color: var(--ph2); }
.g { width: 14px; height: 14px; display: inline-block; flex: 0 0 auto; }
.g-cam { background: conic-gradient(from 30deg at 0 100%, var(--ph) 0 60deg, transparent 0); opacity: .9; }
.g-sens { border: 2px solid var(--amb); border-radius: 3px; }
.g-gate { border-top: 2px solid var(--ink2); border-bottom: 2px dashed var(--ink2); height: 10px; }
.tray-h { margin: 14px 0 10px; font-size: 13px; color: var(--ink3); line-height: 1.5; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.item { width: 100%; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 9px 12px 9px 9px; touch-action: none; user-select: none;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease); }
.item svg { grid-row: span 2; width: 40px; height: 40px; overflow: visible; }
.item svg .cone { fill: var(--phf); stroke: var(--ph); stroke-width: 1.4; }
.item svg circle { fill: var(--bg); stroke: var(--ph); stroke-width: 2; }
.item svg .wall { stroke: var(--ink3); stroke-width: 2; fill: none; }
.item svg rect { fill: var(--card2); stroke: var(--ink2); stroke-width: 1.5; }
.item svg .arr { stroke: var(--ph); stroke-width: 1.8; fill: none; }
.item.amber svg .cone { fill: rgba(255, 181, 71, .14); stroke: var(--amb); stroke-dasharray: 3 2; }
.item.amber svg rect { stroke: var(--amb); fill: var(--bg); }
.item > span { font: 600 15px/1.2 var(--fd); color: var(--ink); }
.item small { font-size: 12.5px; color: var(--ink3); line-height: 1.35; }
.item:hover { border-color: var(--ph2); background: var(--card2); transform: translateX(2px); }
.item.amber:hover { border-color: var(--amb); }
.item.ghost { display: block; background: transparent; border-style: dashed; padding: 9px 12px; }
.item.ghost span { font: 500 13px var(--fd); color: var(--ink2); }
.keys { margin: auto 0 0; font-size: 12px; color: var(--ink3); border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- centre: the plan ---------- */
.plan { grid-area: plan; position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 16px 20px 10px;
  background: radial-gradient(120% 90% at 50% 40%, #0E1412 0%, var(--bg) 70%); }
.plan-head { position: absolute; left: 24px; top: 20px; z-index: 2; width: 200px; }
.plan-head .k { color: var(--ph); }
.plan-dim { font: 600 44px/.95 var(--fd); letter-spacing: -.03em; margin: 6px 0 14px; }
.dims { display: grid; gap: 6px; }
.dim { display: grid; grid-template-columns: 1fr 50px; align-items: center; column-gap: 8px; }
.dim .k { grid-column: 1 / -1; font-size: 10.5px; }
.dim input[type=range]::-webkit-slider-runnable-track { background: var(--line2); height: 2px; }
.dim input[type=range]::-webkit-slider-thumb { margin-top: -10px; }
.dim input[type=range]::-moz-range-track { background: var(--line2); height: 2px; }
.dim output { font-size: 14px; color: var(--ink2); }
#svg { flex: 1 1 auto; width: 100%; min-height: 0; display: block; touch-action: none; user-select: none; overflow: hidden; }
.plan-hint { margin: 4px 4px 0; font-size: 12px; color: var(--ink3); }
@media (min-width: 901px) { #svg { margin-left: 206px; width: calc(100% - 206px); } .plan-hint { margin-left: 210px; } }
@media (min-width: 901px) and (max-width: 1280px) { #svg { margin-left: 176px; width: calc(100% - 176px); } .plan-hint { margin-left: 180px; } }

/* svg drawing */
#svg text { font-family: var(--fd); }
#svg .gl { stroke: rgba(230, 237, 233, .06); }
#svg .hl { stroke: var(--nb); }
#svg .walk { fill: var(--walk); } #svg .road { fill: var(--road); }
#svg .lane { stroke: #2B2F22; fill: none; }
#svg .t-street { fill: #4E5A55; letter-spacing: .5em; font-weight: 600; }
#svg .lotf { fill: var(--lot); }
#svg .bld { fill: var(--bld); }
#svg .veil { fill: #020406; pointer-events: none; transition: opacity .6s var(--ease); }
#svg .muro { stroke: #59645F; }
#svg .grade { stroke: #59645F; fill: none; }
#svg .wall { stroke: var(--wall); fill: none; stroke-linecap: square; }
#svg .t-room { fill: #56625D; font-weight: 500; letter-spacing: .08em; }
#svg .t-room.big { fill: #44504B; font-weight: 700; letter-spacing: .3em; }
#svg .veh { fill: none; stroke: #3B4641; } #svg .counter { fill: #1F2926; stroke: #3B4641; } #svg .stall { stroke: #3B4641; fill: none; }
#svg .cone { fill: var(--phf); stroke: var(--ph); stroke-linejoin: round; mix-blend-mode: screen; transition: fill .4s var(--ease); }
#svg .cone.on { fill: rgba(98, 242, 154, .26); }
#svg .nt .cone { fill: rgba(98, 242, 154, .19); }
#svg .scone { fill: rgba(255, 181, 71, .08); stroke: var(--amb); stroke-linejoin: round; }
#svg .scone.on { fill: rgba(255, 181, 71, .16); }
#svg .cable path { stroke: rgba(169, 182, 176, .45); fill: none; }
#svg .rec { fill: var(--card2); stroke: var(--ink2); }
#svg .t-rec { fill: var(--ink3); letter-spacing: .1em; }
#svg .gap { stroke: var(--lot); }
#svg .ent { fill: none; }
#svg .ent.ok { stroke: var(--ink); } #svg .ent.bad { stroke: var(--red); }
#svg .em .ring { fill: none; }
#svg .em.ok .ring { stroke: var(--ph2); opacity: .9; }
#svg .em.bad .ring { stroke: var(--red); fill: rgba(255, 91, 79, .18); }
#svg .em .pulse { fill: none; stroke: var(--red); transform-box: fill-box; transform-origin: center; animation: pulse 2.2s var(--ease) infinite; }
#svg .em .t-ent { display: none; fill: var(--ink); font-weight: 500; }
#svg .em.bad .t-ent, #svg .em.hi .t-ent { display: inline; }
#svg .em.bad .t-ent { fill: #FF7A70; font-weight: 600; }
#svg .em.hi .ring { stroke-width: .2; }
#svg .em.hi .t-ent { fill: var(--ink); }
#svg .alm { fill: var(--amb); }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
#svg .dev { cursor: grab; }
#svg .dev .hit { fill: transparent; }
#svg .cam .body { fill: var(--bg); stroke: var(--ph); }
#svg .cam .lensb { fill: var(--ph); }
#svg .cam.irc .body { stroke: var(--ir); } #svg .cam.irc .lensb { fill: var(--ir); }
#svg .cam .irr { fill: none; stroke: var(--ir); opacity: .7; }
#svg .t-dev { fill: var(--ph); font-weight: 700; letter-spacing: .06em; }
#svg .cam.irc .t-dev { fill: var(--ir); }
#svg .cam.on .body { fill: var(--ph); } #svg .cam.on.irc .body { fill: var(--ir); }
#svg .cam.on .lensb { fill: var(--bg); }
#svg .arm { stroke: var(--ph); } #svg .arm.s { stroke: var(--amb); }
#svg .knob { fill: var(--bg); stroke: var(--ph); cursor: grab; } #svg .knob.s { stroke: var(--amb); }
#svg .sb { fill: var(--bg); stroke: var(--amb); } #svg .sdot { fill: var(--amb); }
#svg .on .sb { fill: var(--amb); } #svg .pres.on .sdot { fill: var(--bg); }
#svg .t-sens { fill: var(--amb); font-weight: 700; letter-spacing: .06em; }
#svg .gop .motor { fill: var(--card2); stroke: var(--amb); }
#svg .gop .pc { fill: var(--amb); }
#svg .gop .beam { stroke: var(--amb); fill: none; opacity: .8; }
#svg .gop .travel { stroke: var(--ink2); fill: none; }
#svg .gop.on .motor { fill: var(--amb); }
#svg .scale .sb1 { fill: var(--ink2); } #svg .scale .sb2 { fill: var(--line2); }
#svg .t-dim { fill: var(--ink3); font-weight: 500; }
#svg .dim path { stroke: var(--line2); fill: none; }

/* ---------- right: the readout card ---------- */
.readout { grid-area: read; overflow: auto; border-left: 1px solid var(--line); background: var(--bg2); min-width: 0; }
.rtabs { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg2); border-bottom: 1px solid var(--line2); }
.rtabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 15px 6px 13px; font: 600 12px/1 var(--fd); letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); }
.rtabs button.on { color: var(--ink); border-bottom-color: var(--ph); }
.pane { padding: 22px 24px 28px; }
.blind { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.blind .k { grid-column: 1 / -1; color: var(--red); margin-bottom: 2px; }
.blind .big { font-size: 112px; line-height: .82; font-weight: 600; letter-spacing: -.05em; margin: 0; color: var(--red); text-shadow: 0 0 34px rgba(255, 91, 79, .35); }
.blind .big.zero { color: var(--ph); text-shadow: 0 0 34px rgba(98, 242, 154, .35); }
.blind .big.zero + .blind-of { color: var(--ink2); }
.blind-of { margin: 0 0 4px; font-size: 14px; line-height: 1.4; color: var(--ink2); max-width: 22ch; }
.ents { list-style: none; margin: 0; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
.ents li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 14px; }
.ents .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ph2); }
.ents li.bad .dot { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 91, 79, .2); }
.ents li.bad .en { color: var(--ink); }
.ents .en { color: var(--ink2); }
.ents .mk { font: 600 10.5px/1 var(--fd); letter-spacing: .1em; text-transform: uppercase; padding: 4px 6px; border-radius: 2px; border: 1px solid var(--line2); color: var(--ink3); }
.ents .mk.y { border-color: var(--ph2); color: var(--ph); }
.ents .mk.n { opacity: .45; border-style: dashed; }
.ents li:nth-child(n) .mk.y + .mk.y { border-color: var(--amb); color: var(--amb); }
.ents li .mk:last-child.y { border-color: var(--amb); color: var(--amb); }
.sel { margin: 16px 0 0; padding: 14px 16px 16px; background: var(--card); border: 1px solid var(--line2); border-left: 3px solid var(--ph); border-radius: 4px; }
.sel-h { margin: 0 0 10px; font: 500 15px/1.2 var(--fd); color: var(--ink2); }
.sel-h b { font-size: 22px; color: var(--ph); margin-right: 6px; }
.sel-h.amber b { color: var(--amb); }
.sel:has(.amber) { border-left-color: var(--amb); }
.sel-s { margin: 8px 0 0; font-size: 13px; color: var(--ink3); line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chips button { background: var(--bg); border: 1px solid var(--line2); border-radius: 3px; padding: 7px 10px; font: 600 13px/1 var(--fd); color: var(--ink2); }
.chips button.on { background: var(--ph); color: #06100A; border-color: var(--ph); }
.angle { display: grid; grid-template-columns: auto 1fr 48px; gap: 12px; align-items: center; margin-top: 12px; }
.angle input[type=range]::-webkit-slider-runnable-track { background: var(--line2); height: 2px; }
.angle input[type=range]::-webkit-slider-thumb { margin-top: -10px; }
.angle input[type=range]::-moz-range-track { background: var(--line2); height: 2px; }
.angle output { font-size: 15px; text-align: right; }
.rm { margin-top: 12px; background: none; border: 0; padding: 0; font: 500 13px var(--fd); color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.meter { margin: 6px 0 0; }
.meter > div { display: grid; grid-template-columns: 132px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.meter dt { font: 600 11px/1.5 var(--fd); letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); padding-top: 2px; }
.meter dd { margin: 0; }
.meter .v { display: block; font: 500 16px/1.3 var(--fd); color: var(--ink); }
.meter small { display: block; font: 500 10.5px/1.4 var(--fd); letter-spacing: .12em; text-transform: uppercase; color: var(--amb); margin-top: 2px; }
.from { margin: 18px 0 0; }
.from ul { list-style: none; margin: 8px 0 0; padding: 0; }
.from li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line2); font-size: 14px; color: var(--ink2); }
.from li b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.from .k { color: var(--amb); }
.fine { margin: 16px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink3); }
.go { margin-top: 18px; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; border: 0; border-radius: 4px;
  background: var(--ph); color: #06100A; font: 700 15px/1.1 var(--fd); letter-spacing: .02em; text-align: left; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.go i { font-style: normal; font-size: 20px; transition: transform .3s var(--ease); }
.go:hover { box-shadow: 0 0 0 4px rgba(98, 242, 154, .18), 0 10px 30px -10px rgba(98, 242, 154, .6); }
.go:hover i { transform: translateX(4px); }

/* services pane */
.pane-h { margin: 0 0 16px; color: var(--ink2); font-size: 14.5px; line-height: 1.55; }
.svcs { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc-h { width: 100%; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; text-align: left; background: none; border: 0; padding: 14px 0; }
.svc-h .code { grid-row: span 2; font-size: 13px; font-weight: 600; color: var(--ph); padding-top: 2px; }
.svc-t { font: 600 16px/1.25 var(--fd); color: var(--ink); }
.svc-p { font-size: 13px; color: var(--amb); margin-top: 3px; }
.svc-h:hover .svc-t { color: var(--ph); }
.svc-b { display: none; margin: 0 0 16px 44px; }
.svc.open .svc-b { display: block; }
.svc.open .svc-h .code { color: #06100A; background: var(--ph); border-radius: 2px; text-align: center; height: 20px; }
.svc-b > div { padding: 6px 0; }
.svc-b dt { font: 600 10.5px/1.4 var(--fd); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.svc-b dd { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.svc-b dd.price { color: var(--ink); font-weight: 500; }
.svc-b .act button { margin-top: 8px; background: none; border: 1px solid var(--ph2); border-radius: 3px; padding: 8px 12px; font: 600 13px/1 var(--fd); color: var(--ph); }
.svc-b .act button:hover { background: var(--ph); color: #06100A; }
.svc-b .act i { font-style: normal; }

/* request pane */
.ask fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.ask legend { padding: 0; margin-bottom: 8px; }
.seg3 { display: grid !important; grid-template-columns: repeat(3, 1fr); }
.seg3 legend { grid-column: 1 / -1; }
.seg3 label { position: relative; }
.seg3 input, .checks input { position: absolute; opacity: 0; pointer-events: none; }
.seg3 span { display: block; text-align: center; padding: 9px 4px; border: 1px solid var(--line2); margin-left: -1px; font: 600 13px/1.1 var(--fd); color: var(--ink2); cursor: pointer; }
.seg3 label:first-of-type span { border-radius: 3px 0 0 3px; margin-left: 0; }
.seg3 label:last-of-type span { border-radius: 0 3px 3px 0; }
.seg3 input:checked + span { background: var(--ph); color: #06100A; border-color: var(--ph); }
.seg3 input:focus-visible + span, .checks input:focus-visible + span { outline: 2px solid var(--ph); outline-offset: 2px; }
.checks label { display: block; position: relative; }
.checks span { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; color: var(--ink2); cursor: pointer; }
.checks span::before { content: ''; flex: 0 0 auto; width: 16px; height: 16px; border: 1.5px solid var(--line2); border-radius: 2px; background: var(--bg); }
.checks input:checked + span { color: var(--ink); }
.checks input:checked + span::before { background: var(--amb); border-color: var(--amb); box-shadow: inset 0 0 0 3px var(--bg); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.fields label { display: grid; gap: 5px; min-width: 0; }
.fields .wide { grid-column: 1 / -1; }
.fields input, .fields textarea { width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: 3px; padding: 10px 11px; font-size: 14.5px; color: var(--ink); resize: vertical; }
.fields input::placeholder, .fields textarea::placeholder { color: #6B7772; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--ph); box-shadow: 0 0 0 3px rgba(98, 242, 154, .15); }
.preview { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; }
.preview pre { margin: 8px 0 0; white-space: pre-wrap; font: 400 13px/1.55 var(--ft); color: var(--ink2); max-height: 220px; overflow: auto; }
.send { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 12px; }
.send .go { margin-top: 14px; }
.send .alt { font: 500 13.5px var(--fd); color: var(--ink2); }
.send .alt:hover { color: var(--ink); }
.ask .lead-note { color: var(--ink2); }
.sent { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--ph2); border-left: 3px solid var(--ph); border-radius: 4px; background: rgba(98, 242, 154, .06); }
.sent .k { color: var(--ph); }
.sent-t { margin: 6px 0 4px; font: 600 17px/1.25 var(--fd); }
.sent p:last-child { margin: 0; font-size: 13.5px; color: var(--ink2); }

/* ---------- bottom: the legend strip ---------- */
.legend { grid-area: leg; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--bg2); font-size: 12.5px; color: var(--ink3); }
.keyrow { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
.keyrow li { display: flex; align-items: center; gap: 7px; }
.sw { width: 18px; height: 10px; display: inline-block; }
.sw-cone { background: var(--phf); border: 1px solid var(--ph); clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.sw-sens { border: 1px dashed var(--amb); background: rgba(255, 181, 71, .12); }
.sw-blind { width: 10px; border-radius: 50%; background: rgba(255, 91, 79, .3); border: 1.5px solid var(--red); }
.sw-ir { width: 10px; border-radius: 50%; border: 1.5px dashed var(--ir); }
.legend p { margin: 0; }
.honest { color: var(--ink2); }
.who b { color: var(--ink); font-family: var(--fd); letter-spacing: .06em; }
.who a, .links a { color: var(--ink2); }
.links { margin-left: auto !important; }

/* dragging from the tray */
.ghost-drag { position: fixed; left: 0; top: 0; width: 28px; height: 28px; pointer-events: none; z-index: 50; opacity: 0; }
.ghost-drag.on { opacity: 1; }
.ghost-drag::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ph); background: var(--bg); box-shadow: 0 0 18px rgba(98, 242, 154, .7); }
.ghost-drag.gs::before { border-color: var(--amb); border-radius: 4px; box-shadow: 0 0 18px rgba(255, 181, 71, .6); }

/* load choreography */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.static) .intro > * { animation: rise .9s var(--ease) both; }
  html.js:not(.static) .intro > *:nth-child(2) { animation-delay: .12s; } html.js:not(.static) .intro > *:nth-child(3) { animation-delay: .22s; }
  html.js:not(.static) #svg { animation: scan 1.2s var(--ease) .1s both; }
  html.js:not(.static) .blind .big { animation: rise .9s var(--ease) .35s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes scan { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
html.static *, html.static *::before, html.static *::after { transition: none !important; animation: none !important; }

/* ---------- medium screens ---------- */
@media (max-width: 1280px) {
  .app { grid-template-columns: 276px minmax(0, 1fr) 372px; }
  .bar { gap: 18px; }
  .presets button { padding: 8px 9px; font-size: 12.5px; }
  .hour-track { width: 170px; }
  .intro h1 { font-size: 34px; }
  .plan-head { width: 170px; }
  .plan-dim { font-size: 36px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .bar { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  .app { grid-template-rows: auto minmax(0, 1fr) auto; }
}

/* ---------- phone and tablet: one column, trays as a bottom bar ---------- */
@media (max-width: 900px) {
  .app { display: block; height: auto; min-height: 0; }
  body { padding-bottom: 128px; }
  .bar { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .brand img { height: 26px; }
  .langs { margin-left: auto; }
  .lot { order: 3; width: 100%; }
  .lot > .k { display: none; }
  .presets { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .presets button { white-space: normal; text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line2); }
  .presets button:nth-child(2n) { border-right: 0; }
  .presets button:nth-child(n+3) { border-bottom: 0; }
  .hour { order: 4; width: 100%; margin: 0; }
  .hour-track { flex: 1; width: auto; }
  .hour output { min-width: 96px; font-size: 16px; }
  .side { display: block; overflow: visible; border: 0; padding: 22px 16px 6px; }
  .intro h1 { font-size: 34px; }
  .side .keys { display: none; }
  .tabs, .trays { position: fixed; left: 0; right: 0; z-index: 40; background: rgba(13, 18, 17, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .tabs { bottom: 74px; border-top: 1px solid var(--line2); }
  .tabs button { padding: 9px 4px; }
  .trays { bottom: 0; height: 74px; padding: 8px 12px; border-top: 1px solid var(--line); }
  .tray-h { display: none; }
  .items { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .items li { flex: 0 0 auto; }
  .item { width: auto; grid-template-columns: 32px auto; padding: 6px 12px 6px 6px; min-height: 56px; }
  .item svg { width: 32px; height: 32px; }
  .item small { display: none; }
  .item.ghost { display: flex; align-items: center; }
  .plan { padding: 12px 16px 6px; background: none; }
  .plan-head { position: static; width: auto; padding: 0 0 8px; }
  .plan-dim { font-size: 34px; margin: 4px 0 10px; }
  .dim { grid-template-columns: 96px 1fr 52px; }
  .dim .k { grid-column: auto; }
  #svg { flex: none; height: auto; aspect-ratio: var(--ar, 1 / 1.6); max-height: 78vh; }
  .readout { border: 0; border-top: 1px solid var(--line); overflow: visible; }
  .rtabs { top: 0; }
  .pane { padding: 20px 16px 24px; }
  .blind .big { font-size: 92px; }
  .meter > div { grid-template-columns: 112px 1fr; }
  .legend { padding: 16px; }
  .links { margin-left: 0 !important; }
}
@media (max-width: 420px) { .fields { grid-template-columns: 1fr; } .send .go { width: 100%; } }

/* == legal == cookie banner + seller block (generated by sites/_legal/gen.py; the banner look comes from _legal/cookie-styles.css) */
.ck { position: fixed; left: 16px; bottom: 16px; z-index: 9999; max-width: 400px; font-family: inherit; font-size: 14px; line-height: 1.5; letter-spacing: 0; text-transform: none; text-align: left; }
.ck, .ck * { box-sizing: border-box; } .ck .ck-k { display: block; } .ck .ck-t, .ck .ck-p { margin: 0; } .ck .b { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ck button, .ck a.more { cursor: pointer; text-decoration: none; line-height: 1.2; margin: 0; }
/* banner: vigiar-sistemas-eletronicos */
.ck { --ck-bottom: 140px; left: 20px; bottom: 20px; width: 404px; max-width: calc(100vw - 32px); padding: 16px 20px 18px 20px; background: #111816; color: #E6EDE9; border: 1px solid #34413B; border-left: 3px solid #62F29A; border-radius: 4px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4); font-family: 'Sarabun', 'Segoe UI', sans-serif; }
.ck::before { content: ''; position: absolute; left: 20px; top: 15px; width: 34px; height: 22px; background: rgba(98,242,154,.18); border-left: 2px solid #62F29A; clip-path: polygon(0 55%, 100% 0, 100% 100%); }
.ck::after { content: ''; position: absolute; left: 16px; top: 21px; width: 9px; height: 9px; border-radius: 50%; background: #111816; border: 2px solid #62F29A; }
.ck .ck-k { margin: 0 0 10px; padding-left: 46px; min-height: 22px; display: flex; align-items: center; font: 600 11px/1 'Chakra Petch', 'Arial Narrow', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #62F29A; }
.ck .ck-t b { display: block; font: 600 22px/1.12 'Chakra Petch', 'Arial Narrow', sans-serif; letter-spacing: -.01em; color: #E6EDE9; margin-bottom: 6px; }
.ck .ck-p { font-size: 13.5px; line-height: 1.55; color: #A9B6B0; padding-top: 8px; border-top: 1px solid #232D29; }
.ck .b { gap: 8px 14px; margin-top: 14px; }
.ck button { border-radius: 3px; padding: 9px 14px; font: 700 12.5px/1 'Chakra Petch', 'Arial Narrow', sans-serif; letter-spacing: .04em; }
.ck button.ok { background: #62F29A; color: #06100A; border: 1px solid #62F29A; }
.ck button.no { background: transparent; color: #E6EDE9; border: 1px solid #34413B; }
.ck button.no:hover { border-color: #A9B6B0; }
.ck a.more { color: #E6EDE9; font: 500 12.5px/1 'Chakra Petch', 'Arial Narrow', sans-serif; text-decoration: underline; text-decoration-color: #39C877; text-underline-offset: 4px; }
@media (max-width: 900px) { .ck { bottom: 140px; } }
footer.seller { background: #0D1211; color: #A9B6B0; border-top: 1px solid #232D29; font-family: 'Sarabun', 'Segoe UI', sans-serif; }
footer.seller b { color: #84918B; opacity: 1; font-family: 'Chakra Petch', 'Arial Narrow', sans-serif; }
footer.seller strong { color: #E6EDE9; }
footer.seller a { color: #E6EDE9; text-decoration-color: #39C877; text-underline-offset: 3px; }

@media (max-width: 600px) { .ck { left: 10px; right: 10px; bottom: var(--ck-bottom, 10px); width: auto; max-width: none; transform: none; } }
.seller { font-size: 12.5px; line-height: 1.6; color: inherit; padding: 22px 24px 26px; border-top: 1px solid rgba(128,128,128,.35); letter-spacing: 0; text-transform: none; font-family: inherit; }
.seller-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.seller b { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; font-weight: 700; }
.seller a { color: inherit; } .seller address { font-style: normal; } .seller strong { font-weight: 700; }
.seller.panel { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9998; background: #fff; color: #111; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); max-width: 940px; margin: 0 auto; border-top: 0; padding: 24px 26px 22px; }
.seller.panel:target { display: block; }
.seller .x { position: absolute; top: 6px; right: 12px; text-decoration: none; font-size: 22px; line-height: 1; padding: 6px 8px; }
.ck-page .st { padding: 10px 14px; border: 1px solid rgba(128,128,128,.4); border-radius: 8px; margin: 10px 0 14px; font-weight: 700; } .ck-page .b { display: flex; gap: 8px; flex-wrap: wrap; } .ck-page button { font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
@media (max-width: 760px) { table.lgl-t, table.lgl-t tbody, table.lgl-t tr, table.lgl-t td { display: block; width: auto; } table.lgl-t thead { display: none; } table.lgl-t tr { padding: 10px 0; border-bottom: 1px solid rgba(128,128,128,.35); } table.lgl-t td { border: 0 !important; padding: 2px 0 !important; overflow-wrap: anywhere; } table.lgl-t td::before { content: attr(data-l) ": "; font-weight: 700; } }
table.lgl-t code { overflow-wrap: anywhere; }
.lead-note.lead-note { font-size: 12px; line-height: 1.5; margin: 0; letter-spacing: 0; text-transform: none; font-weight: 400; font-style: normal; text-align: left; max-width: 62ch; } .lead-note.lead-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) { .seller-in { grid-template-columns: 1fr; } .seller.panel { left: 8px; right: 8px; bottom: 8px; max-height: 80dvh; overflow: auto; } }
