:root {
  --ink: #111318;
  --porcelain: #f7f8fa;
  --cobalt: #365cff;
  --ice: #dce8fa;
  --lilac: #e8e1f2;
  --sand: #eadfd1;
  --line: #e0e4ea;
  --muted: #626b78;
  --card: #ffffff;
  --green: #15703c;
  --green-dot: #25a35a;
  --green-tint: #e9f6ee;
  --red: #bf2a1f;
  --red-tint: #fdeeec;
  --on-tint: #444b56;
  --nav: 248px;
  --shadow: 0 18px 50px -28px rgba(17, 19, 24, 0.28);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--porcelain); color: var(--ink); }
body { font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}
img { max-width: 100%; }
.leaflet-container img { max-width: none; max-height: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: 32px; line-height: 1.05; letter-spacing: -0.04em; }
h2 { font-size: 18px; }
p { margin: 0; }
a { color: var(--cobalt); text-underline-offset: 3px; }

.shell { min-height: 100vh; }
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  height: calc(56px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0;
  background: var(--porcelain);
  border-bottom: 1px solid var(--line);
}
.top img { height: 20px; width: auto; }
.icon-btn, .text-btn, .btn, .btn-ghost, .btn-sand, .talk {
  border: 1px solid var(--line); background: var(--card); border-radius: 10px;
}
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; }
.who { margin-left: auto; color: var(--muted); font-size: 13px; }
.nav {
  display: none; background: var(--card); border-right: 1px solid var(--line);
  padding: 18px 12px 16px;
}
.nav.open {
  display: flex; flex-direction: column;
  position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(300px, 88vw);
  box-shadow: var(--shadow);
}
.backdrop { position: fixed; inset: 0; background: rgba(17, 19, 24, 0.35); z-index: 35; }
.brand { display: flex; align-items: flex-end; gap: 8px; padding: 4px 8px 16px; }
.brand img { height: 22px; width: auto; }
.brand span { color: var(--muted); font-size: 14px; line-height: 1; }
.nav nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav button.link {
  display: flex; align-items: center; min-height: 42px; padding: 8px 10px;
  border: 0; background: transparent; border-radius: 10px;
  color: var(--ink); text-decoration: none; text-align: left; font-weight: 700; font-size: 15px;
}
.nav a[aria-current="page"], .nav a:hover, .nav button.link:hover { background: var(--porcelain); }
.nav .grow { flex: 1; }
.account { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.account p { padding: 0 10px; font-size: 14px; }
.account .muted { color: var(--muted); font-size: 12px; }
main { padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); }
.wrap { width: min(1080px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 17px; padding: 16px; }
.row { display: flex; align-items: flex-start; gap: 10px; }
.between { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.between > :first-child { min-width: 0; flex: 1; }
.between > :last-child { flex: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #c5cad3; margin-top: 6px; flex: none; }
.dot.green { background: var(--green-dot); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 700; background: var(--porcelain); color: var(--ink);
}
.chip.green { background: var(--green-tint); color: var(--green); }
.chip.ice { background: var(--ice); color: var(--on-tint); }
.chip.sand { background: var(--sand); color: var(--ink); }
.chip.lilac { background: var(--lilac); color: var(--on-tint); }
.chip.red { background: var(--red-tint); color: var(--red); }
.chip.amber { background: #f8e7c4; color: #7a4e09; }
.lease h3 { margin: 16px 0 8px; }
.lease-grid { display: grid; gap: 18px; margin-top: 14px; }
.lease .outputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lease .outputs div { background: var(--porcelain); border-radius: 12px; padding: 10px 12px; }
.lease .outputs span { color: var(--muted); font-size: 12px; }
.lease .outputs b { display: block; font-size: 18px; margin-top: 2px; }
.lease .out-wide { grid-column: 1 / -1; }
.lease table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lease th, .lease td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lease td.num, .lease th.num { text-align: right; white-space: nowrap; }
.lease .flag { background: #f8e7c4; color: #7a4e09; border-radius: 12px; padding: 8px 10px; margin: 6px 0; }
.lease .check { display: flex; gap: 8px; align-items: center; margin: 12px 0; }
.lease input[type="range"] { width: 100%; }
.lease ul.plain { margin: 8px 0 0; padding-left: 18px; }
@media (min-width: 900px) { .lease-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.dnc { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 5px; border: 1px solid var(--red); border-radius: 999px; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.phone { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.reasons { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.stats div { background: var(--porcelain); border-radius: 12px; padding: 10px 12px; }
.stats dt { color: var(--muted); font-size: 12px; }
.stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.fine { color: var(--muted); font-size: 12px; line-height: 1.45; }
.btn, .btn-ghost, .btn-sand, .talk {
  min-height: 44px; padding: 10px 14px; font-weight: 700; border-radius: 12px; text-decoration: none;
}
.btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.cobalt { background: var(--cobalt); border-color: var(--cobalt); }
.btn-sand { background: var(--sand); border-color: transparent; }
.btn-ghost { background: var(--card); }
.btn-row, .actions, .stack { display: grid; gap: 8px; }
.pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pill {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 8px 12px; white-space: nowrap; font-size: 14px;
}
.pill[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: grid; gap: 8px; }
.field input, .field select, .field textarea, .search {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 11px 12px;
}
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar .search { flex: 1; min-width: 0; width: auto; }
.toolbar select {
  width: 112px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 11px 10px;
}
.toolbar select#sort { width: 96px; }
.seg {
  display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px;
}
.seg button {
  flex: 1 1 0; min-width: 0; border: 0; background: transparent; border-radius: 10px; min-height: 40px;
  padding: 7px 6px; font-weight: 700; font-size: 12px; line-height: 1.2; color: var(--muted);
}
.seg button[aria-current="true"] { background: var(--ink); color: #fff; }
.seg.slim { flex: none; width: auto; }
.seg.slim button { flex: none; padding: 7px 12px; white-space: nowrap; }
.pcards { display: grid; gap: 10px; }
.pcard {
  appearance: none; width: 100%; text-align: left; color: inherit; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 12px;
  display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center;
}
.pcard-copy { display: grid; gap: 6px; min-width: 0; }
.pcard-copy strong { font-size: 16px; letter-spacing: -0.03em; }
.pcard-metrics { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pcard:hover { border-color: #c5cad3; }
.pcard p { margin: 0; }
.thumb { position: relative; display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--porcelain); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb i, .loc-shot .pin, .map-pin {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 50% 50% 50% 0;
  background: var(--cobalt); border: 2px solid #fff; transform: translate(-50%, -80%) rotate(-45deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.loc-grid { display: grid; gap: 8px; }
.loc-shot { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--porcelain); text-align: left; }
.loc-shot img { width: 100%; height: 210px; object-fit: cover; display: block; }
.loc-shot .outline { position: absolute; inset: 0; }
.loc-shot .outline svg { width: 100%; height: 100%; }
.loc-shot .outline path { fill: rgba(255, 255, 255, 0.18); stroke: #fff; stroke-width: 1.1; }
.loc-shot .outline.building path { fill: rgba(255, 255, 255, 0.08); stroke-dasharray: 1.4 0.8; }
.loc-label { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(12, 14, 19, 0.82); color: #fff; border-radius: 8px; padding: 6px 8px; font-size: 13px; font-weight: 700; }
.loc-facts { margin-top: 8px; font-weight: 700; }
.gallery img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; background: var(--porcelain); }
.gallery .between { align-items: center; gap: 8px; }
.gallery .seg { margin: 0; }
.thumb.photo i { display: none; }
.idcell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.idcell .thumb { width: 44px; height: 44px; border-radius: 8px; flex: none; }
.idcell .thumb i { width: 8px; height: 8px; border-width: 1.5px; }
.idcell > span:not(.badge) { overflow: hidden; text-overflow: ellipsis; min-width: 0; white-space: nowrap; }
.person { display: flex; gap: 10px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--porcelain); flex: none; display: grid; place-items: center; }
.avatar img, .avatar .letters { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.verified { position: relative; display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--green); font-size: 12px; font-weight: 700; cursor: default; }
.verified::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--green-tint); box-shadow: inset 0 0 0 1.5px var(--green); }
.verified .tip { display: none; position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); width: max-content; max-width: 240px; background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12px; font-weight: 400; line-height: 1.4; }
.verified .tip a { color: #fff; }
.verified:hover .tip, .verified:focus .tip { display: grid; gap: 4px; }
.people { display: grid; gap: 6px; }
a.contact { color: var(--ink); font-weight: 700; text-decoration: none; }
.score { display: inline-flex; align-items: baseline; gap: 6px; border-radius: 999px; padding: 4px 10px; background: var(--porcelain); font-size: 12px; font-weight: 700; }
.score b { font-size: 16px; letter-spacing: -0.03em; }
.score.high { background: var(--green-tint); color: var(--green); }
.score.mid { background: var(--sand); }
.score.low { color: var(--muted); }
.block h3 { font-size: 15px; margin-bottom: 8px; }
ul.plain { margin: 8px 0 0; padding-left: 18px; }
.map { position: relative; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: #fff; }
.map > img { width: 100%; aspect-ratio: 1400 / 640; object-fit: fill; display: block; height: auto; }
.map .pin { position: absolute; width: 14px; height: 14px; min-height: 0; padding: 0; border: 2px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 1px 4px rgba(17, 19, 24, 0.35); }
.map-wrap .legend { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 12px; color: var(--muted); }
.map-wrap .legend .pin { position: static; transform: none; width: 10px; height: 10px; min-height: 0; padding: 0; box-shadow: none; display: inline-block; }
.pin.low { background: #0f6b38; }
.pin.good { background: #25a35a; }
.pin.mid { background: #c4a574; }
.pin.hot { background: #bf2a1f; }
.pin.none { background: #8b93a1; }
.pcard-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pcard .thumb { width: 92px; height: 92px; flex: none; border-radius: 12px; }
.pcard-id { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; min-width: 0; flex: 1; }
.pcard-id strong { font-size: 16px; letter-spacing: -0.02em; }
.pcard-id span, .pcard .meta { color: var(--muted); font-size: 13px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sf {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px;
  font-weight: 700; font-size: 13px; background: var(--porcelain); white-space: nowrap; letter-spacing: -0.02em;
}
.sf.good { background: var(--green-tint); color: var(--green); }
.badge {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px;
  font-size: 11px; font-weight: 700; background: var(--cobalt); color: #fff; letter-spacing: 0.02em;
}
.desk-only { display: none; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 17px; background: #fff; max-height: none; }
.table-wrap.fit { overflow: hidden; }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 13px; }
table.grid { min-width: 0; width: 100%; font-size: 13px; table-layout: fixed; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.grid th, table.grid td {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; height: 44px; padding: 0 12px;
}
table.grid th:nth-child(1), table.grid td:nth-child(1) { width: 19%; }
table.grid th:nth-child(2), table.grid td:nth-child(2) { width: 11%; }
table.grid th:nth-child(3), table.grid td:nth-child(3) { width: 7%; }
table.grid th:nth-child(4), table.grid td:nth-child(4) { width: 8%; }
table.grid th:nth-child(5), table.grid td:nth-child(5) { width: 11%; }
table.grid th:nth-child(6), table.grid td:nth-child(6) { width: 12%; overflow: visible; text-overflow: clip; }
table.grid .sf { padding: 2px 6px; font-size: 12px; }
table.grid th:nth-child(7), table.grid td:nth-child(7) { width: 10%; }
table.grid th:nth-child(8), table.grid td:nth-child(8) { width: 8%; }
table.grid th:nth-child(9), table.grid td:nth-child(9) { width: 14%; }
table.grid td.status { white-space: normal; height: auto; }
table.grid td.status .chip { white-space: normal; }
.idcell .badge { flex: none; }
table.grid td.property { font-weight: 700; white-space: normal; height: auto; }
table.grid td.property .chip { margin-top: 4px; }
table.grid td .badge, table.grid td .chip { margin-right: 4px; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; font-weight: 700; background: #fff; position: sticky; top: 0; z-index: 2; }
th button { border: 0; background: transparent; padding: 0; font-weight: 700; color: var(--muted); text-align: left; }
.name { font-weight: 700; }
.sticky { position: sticky; left: 0; background: #fff; min-width: 180px; box-shadow: 8px 0 12px -12px rgba(17, 19, 24, 0.4); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.hit { cursor: pointer; }
tr.hit:hover td { background: var(--porcelain); }
.drawer-back { position: fixed; inset: 0; background: rgba(17, 19, 24, 0.4); z-index: 45; }
.drawer {
  position: fixed; z-index: 46; left: 0; right: 0; bottom: 0; max-height: 90vh; overflow: auto;
  background: #fff; border-radius: 18px 18px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
}
.handle { width: 40px; height: 4px; border-radius: 99px; background: var(--line); margin: 8px auto 12px; }
dl.facts { display: grid; grid-template-columns: 108px 1fr; gap: 8px 10px; font-size: 14px; }
dl.facts dt { color: var(--muted); }
.note { background: var(--sand); border-radius: 12px; padding: 12px; font-size: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.rail { display: flex; flex-direction: column; align-items: center; }
.mark {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: #fff; margin-top: 3px;
}
.step.done .mark { background: var(--cobalt); border-color: var(--cobalt); }
.step.running .mark { border-color: var(--cobalt); box-shadow: 0 0 0 5px var(--ice); }
.stem { width: 2px; flex: 1; background: var(--line); min-height: 16px; }
.step-body { padding-bottom: 16px; }
.step-body h3 { font-size: 16px; letter-spacing: -0.02em; }
.lines { margin: 8px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lines li { padding: 8px 10px; border-top: 1px solid var(--line); font-size: 13px; }
.lines li:first-child { border-top: 0; }
.talk { width: 100%; min-height: 64px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; font-size: 18px; font-weight: 700; }
.talk.on { background: var(--cobalt); }
.bubbles { display: grid; gap: 8px; margin: 12px 0; }
.bubble { margin: 0; max-width: 92%; padding: 10px 12px; border-radius: 16px; line-height: 1.35; }
.bubble.me { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.bubble.agent { justify-self: start; background: var(--porcelain); border-bottom-left-radius: 4px; }
.ask { display: flex; gap: 8px; margin-top: 10px; }
.ask input { flex: 1; min-width: 0; }
.actions {
  position: sticky; bottom: 0; z-index: 5;
  background: var(--porcelain);
  padding: 12px 0 calc(8px + env(safe-area-inset-bottom));
}
.err { background: var(--red-tint); color: var(--red); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ok { background: var(--green-tint); color: var(--green); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.sign {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.sign .card { width: min(400px, 100%); box-shadow: var(--shadow); }
.sign h1 { font-size: 26px; margin: 18px 0 6px; }
.field { display: grid; gap: 6px; margin-top: 14px; }
.field span { font-size: 12px; color: var(--muted); }
.list { display: flex; flex-direction: column; }
.list button, .list a.item {
  text-align: left; background: transparent; border: 0; border-top: 1px solid var(--line);
  padding: 12px 0; color: inherit; text-decoration: none;
}
.owner { background: var(--ice); border-radius: 14px; padding: 12px; }
.task { border-top: 1px solid var(--line); padding: 10px 0; }
@media (min-width: 900px) {
  .top { display: none; }
  .shell { display: grid; grid-template-columns: var(--nav) minmax(0, 1fr); }
  .nav { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; width: auto; box-shadow: none; }
  .backdrop { display: none; }
  main { padding: 36px 28px 48px; }
  h1 { font-size: 40px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .pcards { grid-template-columns: 1fr 1fr; }
  .desk-only { display: block; }
  .seg button { font-size: 13px; padding: 8px 12px; white-space: nowrap; }
  .toolbar select { width: 220px; }
  .toolbar select#sort { width: 120px; }
  .actions { grid-template-columns: 1fr 1fr; }
  .drawer { top: 0; bottom: 0; left: auto; width: min(460px, 42vw); border-radius: 0; max-height: none; }
}
.beats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.beat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.beat button { display: grid; grid-template-columns: 28px 1fr; gap: 14px; width: 100%; text-align: left; background: transparent; border: 0; padding: 16px 18px; align-items: start; }
.beat .mark { width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 700; }
.beat.done .mark::after { content: "✓"; }
.beat.failed .mark::after { content: "!"; }
.beat-copy { display: grid; gap: 4px; }
.beat strong { font-size: 22px; letter-spacing: -0.03em; }
.beat em { font-style: normal; color: var(--muted); font-size: 16px; }
.beat.pending { color: var(--muted); }
.beat.working { background: #fff6e8; animation: live-pulse 1.3s ease-in-out infinite; }
.beat.working .mark { border-color: #c47b12; background: #c47b12; }
.beat.done { background: var(--green-tint); }
.beat.done .mark { border-color: var(--green); background: var(--green); }
.beat.failed { background: var(--red-tint); }
.beat.failed .mark { border-color: var(--red); background: var(--red); }
.beat-detail { margin: 0; padding: 0 18px 16px 60px; white-space: pre-wrap; font: inherit; color: inherit; }
.beats.compact .beat strong { font-size: 16px; }
.beats.compact .beat em { font-size: 13px; }
.beats.compact .beat button { padding: 10px 12px; }
.projector { background: #0c0e13; color: #f4f1ea; }
.projector .top, .projector .nav, .projector main { background: #0c0e13; color: #f4f1ea; border-color: #2a2e38; }
.projector .nav a, .projector .nav button.link { color: #f4f1ea; }
.projector .nav a[aria-current="page"], .projector .nav a:hover { background: #1a1e27; }
.projector .wrap { width: min(980px, 100%); }
.projector h1 { font-size: 56px; }
.projector .beat { background: #171b24; border-color: #2a2e38; color: #c6c2b8; }
.projector .beat .mark { width: 36px; height: 36px; font-size: 20px; }
.projector .beat strong { font-size: 34px; color: #f4f1ea; }
.projector .beat em { font-size: 20px; color: #c6c2b8; }
.projector .beat.working { background: #3a2a12; color: #fdba74; }
.projector .beat.working strong, .projector .beat.working em { color: #fdba74; }
.projector .beat.done { background: #0d2b1c; }
.projector .beat.done strong { color: #b6f3cf; }
.projector .beat.done em { color: #86efac; }
.projector .beat.failed { background: #3a1216; }
.projector .beat.failed strong { color: #fecaca; }
.projector .beat.failed em { color: #fca5a5; }
.projector .btn-ghost { background: #171b24; color: #f4f1ea; border-color: #2a2e38; }
.rehearse { display: flex; flex-wrap: wrap; gap: 8px; }
.rehearse button { font-size: 13px; }
.projector .rehearse { display: none; }
.map-full { position: fixed; inset: 0; z-index: 60; background: #0c0e13; display: flex; flex-direction: column; }
.map-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px; color: #f4f1ea; }
.map-bar .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.map-bar .btn-ghost, .map-bar a.btn-ghost { color: #f4f1ea; background: #171b24; border-color: #2a2e38; text-decoration: none; display: inline-flex; align-items: center; padding: 8px 10px; }
.map-bar .btn { padding: 8px 12px; }
#loc-map { flex: 1; min-height: 240px; background: #111; }
.map-pin { background: var(--cobalt); border: 2px solid #fff; border-radius: 50%; }
@media (min-width: 800px) {
  .loc-grid { grid-template-columns: 1.35fr 1fr; }
  .loc-shot img { height: 280px; }
}
.projector .eyebrow { color: #a8a29a; }
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 123, 18, 0); }
  50% { box-shadow: 0 0 0 8px rgba(196, 123, 18, 0.28); }
}
@media (prefers-reduced-motion: reduce) {
  .step.running .mark { box-shadow: none; }
  .beat.working { animation: none; }
}
.deal { display: flex; flex-direction: column; gap: 22px; }
.deal > section > h2, .deal > .location > h2 { margin-bottom: 10px; }
.hero { display: grid; gap: 14px; }
.hero-media { border-radius: 18px; overflow: hidden; background: #d5dbe3; }
.hero-media > img, .hero-media .loc-shot, .hero-media .loc-shot img { width: 100%; height: 230px; object-fit: cover; display: block; }
.hero-copy { display: grid; gap: 8px; align-content: center; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.hero-metrics b { font-size: 28px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.verdict { font-size: 17px; line-height: 1.35; max-width: 38rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; min-height: 96px; }
.tile-label { display: flex; align-items: center; gap: 6px; }
.tile-label span, .tile > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.tile b { display: block; margin-top: 6px; font-size: 26px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.tile em { display: block; margin-top: 4px; font-style: normal; color: var(--muted); font-size: 12px; }
.whatif { display: grid; gap: 14px; }
.slider { display: grid; gap: 6px; }
.slider span { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; }
.slider input[type="range"] { width: 100%; accent-color: var(--cobalt); }
.assume { border-top: 1px solid var(--line); padding-top: 10px; }
.assume summary { cursor: pointer; font-weight: 700; }
.assume-grid { display: grid; gap: 4px 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.deal .location { background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 16px; }
.loc-chips { margin-top: 10px; }
.pair { display: grid; gap: 10px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 14px; display: grid; gap: 8px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.mini-stats b { display: block; margin-top: 2px; font-size: 15px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fold { background: #fff; border: 1px solid var(--line); border-radius: 17px; }
.fold > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; gap: 2px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { font-size: 16px; }
.fold > summary span { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.fold-body { padding: 0 16px 16px; display: grid; gap: 10px; }
.comp { background: var(--porcelain); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.comp-cards { display: grid; gap: 8px; }
.clip-list { display: grid; gap: 8px; }
.clip-list .comp-table { display: none; }
.clip-list[data-open="false"] .comp.extra { display: none; }
.flag-line { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.flag-line span { color: var(--muted); font-size: 13px; }
.flag-line.risk strong { color: #7a4e09; }
.info { position: relative; display: inline-flex; }
.info summary { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; list-style: none; background: #fff; }
.info summary::-webkit-details-marker { display: none; }
.info div { position: absolute; z-index: 8; left: 0; top: 24px; width: min(280px, 72vw); background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12px; font-weight: 400; line-height: 1.4; }
.info div a { color: #fff; }
.source-line { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.source-line strong { font-size: 12px; color: var(--muted); }
body:has(.deal) main { padding-bottom: 96px; }
.deal .actions {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) 44px 44px;
  gap: 6px;
  align-items: center;
  min-height: 56px;
  margin: 0 -16px;
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--porcelain) 94%, white);
  border-top: 1px solid var(--line);
}
.deal .actions .btn, .deal .actions .btn-ghost, .deal .actions .btn-sand {
  min-height: 44px; height: 44px; padding: 0 8px; font-size: 12px; line-height: 1.1; white-space: nowrap;
}
.deal .actions .icon-act { width: 44px; padding: 0; display: grid; place-items: center; position: relative; }
.deal .actions .act-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 1fr; align-items: stretch; gap: 22px; }
  .hero { align-items: start; }
  .hero-media > img, .hero-media .loc-shot, .hero-media .loc-shot img { height: 360px; min-height: 360px; max-height: 360px; }
  .hero-metrics b { font-size: 36px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile b { font-size: 30px; }
  .pair { grid-template-columns: 1fr 1fr; }
  .comp-cards { display: none; }
  .clip-list .comp-table { display: block; }
  .clip-list[data-open="false"] .comp-table tbody tr:nth-child(n+4) { display: none; }
  .assume-grid { grid-template-columns: 1fr 1fr; }
  .deal .actions {
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    min-height: 0;
    margin: 0 -28px -36px;
    padding: 10px 28px calc(10px + env(safe-area-inset-bottom));
  }
  .deal .actions .btn, .deal .actions .btn-ghost, .deal .actions .btn-sand { height: auto; min-height: 44px; padding: 10px 14px; font-size: 14px; }
  .deal .actions .icon-act { width: auto; display: inline-flex; align-items: center; justify-content: center; }
  .deal .actions .icon-act svg { display: none; }
  .deal .actions .act-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  body:has(.deal) main { padding-bottom: 120px; }
}
@media (max-width: 899px) {
  .hero { gap: 10px; }
  .hero-media > img, .hero-media .loc-shot, .hero-media .loc-shot img { height: 132px; }
  .hero-metrics b { font-size: 24px; }
  .verdict { font-size: 15px; }
  .deal { gap: 16px; }
  .tiles { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .tile { min-height: 76px; padding: 8px; }
  .tile b { font-size: 16px; }
  .hero-copy .sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
