/* Calm dark theme: slate surfaces, one cyan accent, coral only for things that need attention. */
:root {
  --bg: #141b1d; --card: #1b2426; --card-2: #212b2e; --hover: #263134; --active: #2c383b;
  --line: #2a3538; --line-2: #34413f;
  --ink: #e7eeee; --ink-2: #c3cdcd; --muted: #8a999b; --faint: #5f6e70;
  --accent: #27a9c9; --accent-ink: #7fd6ea; --accent-soft: rgb(39 169 201 / .16);
  --coral: #e4693f; --coral-soft: rgb(228 105 63 / .16);
  --sand: #d8b36a; --sand-soft: rgb(216 179 106 / .16);
  --ok: #4cc59a; --ok-soft: rgb(76 197 154 / .14);
  --room: #27a9c9; --door: #e4693f; --window: #8fdcef; --fixture: #d8b36a; --unit: #8a999b; --hl: #f2d16b;
  --plan-bg: #172022; --plan-ink: #b9c5c6; --wall: #3b4a4d;
  --r-lg: 22px; --r-md: 14px; --r-sm: 10px;
  --shadow: 0 10px 30px rgb(0 0 0 / .35);
  color-scheme: dark;
  font-family: Outfit, system-ui, sans-serif; font-weight: 400; color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .92em; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

#app {
  display: grid; height: 100dvh; gap: 16px; padding: 16px;
  grid-template-columns: 248px minmax(0, 1fr) 380px;
  grid-template-areas: "side main chat";
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ---------- sidebar ---------- */
.sidebar { grid-area: side; display: flex; flex-direction: column; gap: 4px; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); min-height: 0; }
.project-switch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px; border: 0; background: none;
  border-radius: var(--r-md); text-align: left; font-weight: 500; font-size: 16px; }
.project-switch:hover { background: var(--hover); }
.project-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-switch > svg.i:last-child { width: 16px; height: 16px; color: var(--muted); }
.logo { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); flex: none; }
.logo svg.mark { width: 28px; height: auto; display: block; }
.nav-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 18px 12px 8px;
  border-top: 1px solid var(--line); margin-top: 8px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border: 0; background: none; border-radius: var(--r-md);
  color: var(--ink-2); font-size: 16px; text-align: left; width: 100%; }
.nav-item:hover { background: var(--hover); color: var(--ink); }
.nav-item.active { background: var(--active); color: var(--ink); }
.nav-item span { flex: 1; }
.count { font-size: 12px; font-weight: 500; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center;
  background: var(--accent); color: #0d2228; }
.count.muted { background: var(--card-2); color: var(--muted); }
.count:empty, .count[data-zero] { display: none; }
.grow { flex: 1; }
.import { border: 1px dashed var(--line-2); color: var(--ink-2); cursor: pointer; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 12px 12px 2px;
  border-top: 1px solid var(--line); margin-top: 8px; }
#interp-select { margin-left: auto; max-width: 9.5rem; font: inherit; font-size: 12px; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 2px 4px; }
#interp-select option { background: var(--card); color: var(--ink); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.dot.on { background: var(--ok); }

/* ---------- main ---------- */
.main { grid-area: main; display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 20px; min-width: 0; }
.cost-line { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin: 6px 2px 0; }
#import-cost { margin: -6px 4px 10px; }
.stat .k { font-size: 14px; color: var(--muted); }
.stat .v { font-size: 30px; font-weight: 400; letter-spacing: -.01em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.attn .v { color: var(--coral); }
.stat.clickable { cursor: pointer; } .stat.clickable:hover { border-color: var(--line-2); }

.stage { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px 12px; flex-wrap: wrap; }
.stage-head h2, .chat-head h2 { margin: 0; font-size: 17px; font-weight: 500; }
.sub { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.stage-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.layer-toggles { display: flex; gap: 2px; flex-wrap: wrap; }
.lt { display: flex; align-items: center; gap: 7px; font-size: 13.5px; padding: 6px 10px; border-radius: 99px; border: 0; background: none; color: var(--ink-2); }
.lt i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lt:hover { background: var(--hover); }
.lt.off { color: var(--faint); } .lt.off i { opacity: .3; }
#level-select { padding: 7px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card-2); max-width: 180px; }
.icon-btn { width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card-2); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--ink); background: var(--hover); }
.icon-btn svg.i { width: 18px; height: 18px; }
.height { font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.height input { width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card-2); }

.stage-body { position: relative; flex: 1; min-height: 0; margin: 0 12px 12px; border-radius: var(--r-md); overflow: hidden; background: var(--plan-bg); }
.pane { position: absolute; inset: 0; }
.pane.scroll { overflow: auto; background: var(--card); }
#three-canvas { position: absolute; inset: 0; }
#plan-svg { width: 100%; height: 100%; touch-action: none; cursor: grab; display: block; }
#plan-svg.panning { cursor: grabbing; }
.empty, .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.loading { display: flex; gap: 10px; align-items: center; justify-content: center; background: rgb(23 32 34 / .7); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* plan drawing */
.bg-line { fill: none; stroke: var(--plan-ink); stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bg-WALL { fill: var(--wall); stroke: var(--plan-ink); stroke-width: .5; stroke-opacity: .5; }
.bg-ROOM_OUTLINE { stroke-width: .4; stroke-opacity: .25; }
.bg-DOOR, .bg-WINDOW, .bg-FIXTURE { stroke-width: .7; stroke-opacity: .55; }
.bg-UNIT_OUTLINE { stroke-width: 1.2; stroke-dasharray: 4 3; stroke-opacity: .4; }
.bg-image { opacity: .92; }
.el { vector-effect: non-scaling-stroke; stroke-width: 1.4; cursor: pointer; transition: fill-opacity .15s, opacity .15s; }
.el.room { fill: var(--room); fill-opacity: .06; stroke: var(--room); stroke-opacity: .45; }
.el.unit { fill: none; stroke: var(--unit); stroke-width: 1.6; stroke-dasharray: 6 4; pointer-events: none; }
.el.door { fill: var(--door); fill-opacity: .3; stroke: var(--door); }
.el.window { fill: var(--window); fill-opacity: .25; stroke: var(--window); }
.el.fixture { fill: var(--fixture); fill-opacity: .25; stroke: var(--fixture); }
.el.other { fill: var(--muted); fill-opacity: .18; stroke: var(--muted); stroke-dasharray: 3 2; }
.el.floor { fill: none; stroke: var(--faint); stroke-dasharray: 3 3; stroke-width: 1; pointer-events: none; }
.el:hover { fill-opacity: .45; }
/* "check" items: dashed amber outline, never the door colour (orange = door only) */
.el.flagged { stroke: var(--sand); stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.el.hl { fill: var(--hl) !important; fill-opacity: .5 !important; stroke: var(--hl) !important; stroke-width: 2.4 !important; stroke-opacity: 1 !important; }
.el.sel { stroke: #fff !important; stroke-width: 2.6 !important; }
.el.dim { opacity: .22; }
.room-label { fill: var(--ink-2); paint-order: stroke; stroke: var(--plan-bg); pointer-events: none; text-anchor: middle; font-weight: 500; }
.room-label .a { font-weight: 300; fill: var(--muted); }

.inspector { position: absolute; left: 14px; bottom: 14px; width: min(340px, calc(100% - 28px)); background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: var(--r-md); box-shadow: var(--shadow); padding: 14px 16px; font-size: 14px; }
.inspector h4 { margin: 0 0 8px; font-size: 15px; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.inspector .close { border: 0; background: none; color: var(--muted); padding: 0; }
.inspector .insp-zoom { display: flex; gap: 8px; margin-top: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- chat ---------- */
.chat { grid-area: chat; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.chat-head { display: flex; align-items: baseline; gap: 10px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-head svg.i { align-self: center; color: var(--accent-ink); }
.messages { flex: 1; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.55; }
.hint p { margin: 0 0 12px; }
.read-import { border: 1px solid var(--line); border-radius: var(--r-md, 10px); margin: 0 0 12px; }
.read-import > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13px; }
.read-import > summary::-webkit-details-marker { display: none; }
.read-import > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.read-import[open] > summary::before { transform: rotate(90deg); }
.ri-title { color: var(--ink); font-weight: 600; white-space: nowrap; }
.ri-sum { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.ri-badge { background: none; border: 1px dashed var(--sand); color: var(--sand); border-radius: 99px; padding: 1px 8px; font-size: 12px; white-space: nowrap; }
.ri-body { padding: 0 12px 10px; max-height: 55vh; overflow: auto; }
.ri-sec { margin-top: 10px; }
.ri-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.co2-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13.5px; color: var(--muted); }
.co2-head b { font-size: 18px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.co2-bars { display: flex; flex-direction: column; gap: 3px; margin: 6px 0; }
.co2-row { position: relative; display: flex; justify-content: space-between; gap: 8px; border: 0; background: none; padding: 3px 6px; font-size: 12.5px; color: var(--ink-2); text-align: left; border-radius: 5px; overflow: hidden; }
.co2-row .bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgb(79 191 133 / .16); z-index: 0; }
.co2-row span { position: relative; z-index: 1; } .co2-row .val { font-variant-numeric: tabular-nums; color: var(--ink); }
.co2-row:hover { background: var(--hover); }
.ri-foot { font-size: 11.5px; color: var(--muted); margin-top: 10px; }
.ri-head { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.fact { border: none; background: var(--bg-2, rgba(127,127,127,.08)); border-radius: 6px; padding: 3px 8px; font-size: 13px; color: var(--ink-2); }
.fact b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.fact:hover { color: var(--accent-ink); }
.ri-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: none; border-radius: 99px; padding: 6px 12px; font-size: 13.5px; color: var(--ink-2); }
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.msg-user { align-self: flex-end; background: var(--active); padding: 9px 14px; border-radius: 16px 16px 4px 16px; max-width: 85%; font-size: 15px; }
.msg-bot { align-self: stretch; background: var(--card-2); border-radius: var(--r-md); padding: 14px 16px; font-size: 15px; }
.msg-bot.pending { color: var(--muted); display: flex; gap: 10px; align-items: center; }
.ans-value { font-size: 34px; font-weight: 400; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ans-value small { font-size: 15px; color: var(--muted); margin-left: 6px; }
.ans-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 2px; }
.tag { font-size: 12.5px; padding: 3px 9px; border-radius: 99px; background: var(--hover); color: var(--ink-2); border: 0; white-space: nowrap; }
.tag.good { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--sand-soft); color: var(--sand); }
.tag.bad { background: var(--coral-soft); color: var(--coral); }
button.tag:hover { background: var(--active); }
.note { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
details.reason { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
details.reason summary { cursor: pointer; font-size: 14px; color: var(--accent-ink); list-style: none; }
details.reason summary::before { content: "▸  "; } details.reason[open] summary::before { content: "▾  "; }
.reason h5 { margin: 14px 0 6px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { padding: 2px 0; font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-2); white-space: pre-wrap; }
.qchips { display: flex; flex-wrap: wrap; gap: 4px; }
.qchips span { font-family: "JetBrains Mono", monospace; font-size: 11.5px; background: var(--hover); padding: 2px 7px; border-radius: 6px; color: var(--ink-2); }
.el-list { display: flex; flex-wrap: wrap; gap: 4px; }
.el-list button { font-size: 12px; border: 1px solid var(--line-2); background: none; border-radius: 7px; padding: 2px 7px; color: var(--ink-2); }
.el-list button:hover { border-color: var(--hl); color: var(--hl); }
.flags { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--sand); }
.ask-form { display: flex; gap: 8px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
#ask-input { flex: 1; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--card-2); min-width: 0; font-size: 15px; }
#ask-input:focus { outline: none; border-color: var(--accent); }
.send { width: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #0d2228; display: grid; place-items: center; }
.send svg.i { stroke-width: 2.2; }

.ans-rows { display: flex; flex-direction: column; gap: 2px; }
.ans-row { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border: 0; background: none;
  padding: 8px 2px 10px; text-align: left; border-radius: 8px; }
.ans-row:hover { background: var(--hover); }
.ans-row .lbl { color: var(--ink-2); font-size: 14.5px; }
.ans-row .val { font-size: 20px; font-variant-numeric: tabular-nums; }
.ans-row .val small { font-size: 13px; color: var(--muted); margin-left: 4px; }
.ans-row .bar { position: absolute; left: 2px; bottom: 3px; height: 3px; border-radius: 99px; background: var(--accent); opacity: .8; }
.res-h { color: var(--ink-2) !important; font-size: 12.5px !important; margin-top: 18px !important; }

/* ---------- takeoff / review / rules panes ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 16px 22px 8px; }
.tbl td { padding: 12px 22px; border-top: 1px solid var(--line); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.clickable:hover td { background: var(--hover); cursor: pointer; }
.bar { height: 4px; border-radius: 99px; background: var(--accent); margin-top: 8px; opacity: .85; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 10px; }
.panel-note { padding: 16px 22px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.pane-actions { padding: 4px 22px 20px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: none; color: var(--ink-2); }
.btn:hover { background: var(--hover); color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0d2228; font-weight: 500; }
.btn.primary:hover { filter: brightness(1.08); }
.btn svg.i { width: 16px; height: 16px; }

.rv { margin: 12px 16px; padding: 16px 18px; border-radius: var(--r-md); background: var(--card-2); font-size: 14.5px; }
.rv h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 500; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.rv h4 .tag { margin-left: 6px; }
.rv ul { margin: 6px 0 10px; padding-left: 18px; color: var(--sand); font-size: 13.5px; }
.link { border: 0; background: none; color: var(--accent-ink); font-size: 13.5px; padding: 0; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rule-txt { font-size: 13.5px; color: var(--muted); margin: 2px 0 4px; }
.sub-list { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.sub-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 13.5px; gap: 8px; }
.sub-row .mini { font-size: 12.5px; border: 1px solid var(--line-2); background: none; border-radius: 7px; padding: 2px 9px; margin-left: 4px; color: var(--ink-2); }
.label-q { font-size: 13px; color: var(--muted); margin: 10px 0 6px; }
.section-h { margin: 22px 22px 4px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
details.done { margin: 8px 16px; padding: 12px 18px; border-radius: var(--r-md); border: 1px solid var(--line); font-size: 14px; }
details.done summary { cursor: pointer; color: var(--muted); }
.rule { margin: 12px 16px; padding: 16px 18px; border-radius: var(--r-md); background: var(--card-2); font-size: 14.5px; }
.rule-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rule-top b { font-weight: 500; font-size: 15.5px; margin-right: auto; }
.meter { height: 4px; background: var(--hover); border-radius: 99px; margin: 10px 0 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--sand); border-radius: 99px; }
.meter i.ok { background: var(--ok); }
.del { color: var(--coral); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px));
  background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink); padding: 12px 18px; border-radius: var(--r-md); font-size: 14px; box-shadow: var(--shadow); }

/* ---------- picker ---------- */
.picker { position: fixed; inset: 0; z-index: 40; background: rgb(8 12 13 / .55); display: grid; place-items: start center; padding: 9vh 16px 16px; }
.picker-card { width: min(560px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.picker-search { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.picker-search input { flex: 1; border: 0; background: none; font-size: 16px; color: var(--ink); min-width: 0; }
.picker-search input:focus { outline: none; }
.project-list { overflow: auto; padding: 6px 8px 14px; }
.group-head { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 6px; }
.proj { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: var(--r-sm); font-size: 15px; color: var(--ink-2); }
.proj:hover { background: var(--hover); color: var(--ink); }
.proj.active { background: var(--active); color: var(--ink); }
.proj .fmt { font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 6px; background: var(--card-2); color: var(--muted); flex: none; min-width: 38px; text-align: center; }
.proj .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mobile-top, .bottom-nav { display: none; }

/* ---------- small laptop / tablet: icon rail sidebar, chat stays on the right ---------- */
@media (max-width: 1280px) and (min-width: 901px) {
  #app { grid-template-columns: 68px minmax(0, 1fr) 330px; gap: 12px; padding: 12px; }
  .sidebar { padding: 10px 8px; align-items: center; }
  .sidebar .project-name, .sidebar .project-switch > svg.i:last-child, .nav-item span, .nav-label, .sidebar-foot span:last-child, #interp-select { display: none; }
  .project-switch, .nav-item { justify-content: center; padding: 11px; width: 48px; }
  .nav-item { position: relative; }
  .nav-item .count { position: absolute; top: 2px; right: 0; height: 17px; min-width: 17px; font-size: 10.5px; padding: 0 5px; }
  .sidebar-foot { border: 0; padding: 8px 0 0; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 12px 14px; } .stat .v { font-size: 22px; } .stat .s { font-size: 12px; }
  .stage-head .sub { display: none; }
}

/* ---------- phone ---------- */
.back-pill { display: none; }
@media (max-width: 900px) {
  #app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top" "main" "nav";
    gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 10px 0; }
  .sidebar { display: none; }
  .mobile-top { grid-area: top; display: flex; align-items: center; gap: 8px; }
  .mobile-top .project-switch { flex: 1; min-width: 0; padding: 8px; font-size: 16px; }
  .icon-btn { width: 42px; height: 42px; }
  .main, .chat { grid-area: main; }
  .main { gap: 10px; }
  #app[data-view="chat"] .main { display: none; }
  #app:not([data-view="chat"]) .chat { display: none; }

  /* stats: one swipeable row, compact */
  .stats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -10px; padding: 0 10px; scroll-snap-type: x proximity; }
  .stats::-webkit-scrollbar { display: none; }
  .stat { flex: 0 0 auto; min-width: 116px; padding: 10px 14px; border-radius: var(--r-md); scroll-snap-align: start; }
  .stat .k { font-size: 12.5px; } .stat .v { font-size: 21px; } .stat .s { font-size: 11.5px; max-width: 150px; }
  #app[data-view="takeoff"] .stats, #app[data-view="review"] .stats, #app[data-view="rules"] .stats { display: none; }

  /* stage: title row, then tools as one swipeable row with labels */
  .stage { border-radius: var(--r-md); }
  .stage-head { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 12px 8px; }
  .stage-head .sub { display: none; }
  .stage-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .stage-tools::-webkit-scrollbar { display: none; }
  .layer-toggles { flex-wrap: nowrap; }
  .lt { padding: 8px 11px; font-size: 13px; white-space: nowrap; background: var(--card-2); }
  #btn-fit { margin-left: auto; }
  .stage-body { margin: 0 6px 6px; border-radius: 12px; }

  /* inspector: compact bottom sheet over the plan */
  .inspector { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 46%; overflow: auto; padding: 12px 14px; font-size: 13.5px; }
  .inspector .kv { grid-template-columns: 96px 1fr; }

  /* chat */
  .chat { border-radius: var(--r-md); }
  .chat-head { padding: 14px 16px 10px; }
  .messages { padding: 14px; }
  #ask-input { font-size: 16px; padding: 12px 16px; }   /* 16px: no zoom-on-focus on iOS */
  .send { width: 48px; height: 48px; }
  .chip { padding: 9px 13px; font-size: 14px; }
  .ans-value { font-size: 30px; }

  /* panes */
  .tbl td, .tbl th { padding-left: 14px; padding-right: 14px; }
  .rv, .rule { margin: 10px 8px; padding: 14px; }
  .btn { padding: 10px 16px; }
  .sub-row .mini { padding: 6px 10px; }

  /* picker: full-height sheet */
  .picker { padding: calc(8px + env(safe-area-inset-top)) 8px 0; place-items: stretch; }
  .picker-card { width: 100%; max-height: none; height: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .proj { padding: 12px; }

  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .back-pill { display: flex; position: absolute; z-index: 3; top: 8px; left: 50%; transform: translateX(-50%); align-items: center; gap: 6px;
    background: var(--card-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 8px 14px; font-size: 13.5px; color: var(--accent-ink); box-shadow: var(--shadow); }

  .bottom-nav { grid-area: nav; display: flex; margin: 0 -10px; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav button { flex: 1; border: 0; background: none; padding: 9px 0 10px; font-size: 11.5px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; min-height: 56px; }
  .bottom-nav button.active { color: var(--accent-ink); }
  .bottom-nav .count { position: absolute; top: 4px; left: calc(50% + 6px); height: 17px; min-width: 17px; font-size: 10.5px; padding: 0 5px; }
}

/* ---------- order basket ---------- */
.order { padding: 6px 0 12px; }
.order-top { display: flex; align-items: center; gap: 10px; padding: 12px 22px 4px; }
.order-top .ref { color: var(--muted); font-size: 13px; }
.order-details { margin: 10px 16px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--line); }
.order-details summary { cursor: pointer; color: var(--ink-2); font-size: 14.5px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 12px; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.fld.wide { grid-column: 1 / -1; }
.fld input, .oline input, .oline select { background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 8px 10px; font-size: 14.5px; color: var(--ink); min-width: 0; width: 100%; }
.fld input:focus, .oline input:focus, .oline select:focus { outline: none; border-color: var(--accent); }
input:disabled, select:disabled { opacity: .7; }
.order-lines { display: flex; flex-direction: column; }
.oline { margin: 8px 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--card-2); display: flex; flex-direction: column; gap: 10px; }
.oline input, .oline select { background: var(--card); }
.ol-top { display: flex; align-items: center; gap: 10px; }
.ol-top .n { color: var(--faint); font-size: 13px; width: 18px; }
.ol-label { font-size: 15.5px !important; font-weight: 500; }
.ol-row { display: grid; grid-template-columns: 1.1fr .8fr .7fr 1.1fr; gap: 10px; align-items: end; }
.ol-row label, .ol-row .to { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.ol-row .to b { font-size: 18px; font-weight: 500; color: var(--ink); padding: 6px 0; font-variant-numeric: tabular-nums; }
.ol-notes { font-size: 13.5px !important; }
.ol-basis summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.warn-t { color: var(--sand); }
.icon-btn.sm { width: 32px; height: 32px; } .icon-btn.sm svg.i { width: 16px; height: 16px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.tag svg.i, .note svg.i { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
button.tag.add-order { color: var(--accent-ink); }
button.tag:disabled { opacity: .7; cursor: default; }
/* products from supplier catalogues */
.btn.sm { font-size: 13px; padding: 5px 11px; gap: 6px; }
.btn.sm svg.i { width: 14px; height: 14px; }
.link.muted { color: var(--muted); }
.ol-prod { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--card); border: 1px solid var(--line); }
.ol-prod.none { justify-content: flex-start; background: none; border-style: dashed; padding: 8px 10px; }
.ol-prod.none .rule-txt { margin: 0; }
.pinfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pinfo b { font-weight: 500; font-size: 14.5px; }
.pinfo > span { font-size: 12.5px; color: var(--muted); }
.ptot { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.ptot b { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ptot span { display: flex; gap: 12px; }
.prod-picker { border: 1px solid var(--accent); border-radius: var(--r-sm); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pick-search { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.pick-search > svg.i { width: 16px; height: 16px; flex: none; }
.pick-list { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow-y: auto; }
.pick-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 6px;
  border-radius: 8px; }
.pick-row:hover { background: var(--hover); }
.pq { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; color: var(--muted); }
.pq b { font-size: 14px; font-weight: 500; color: var(--ink); }
.pact { display: flex; gap: 6px; }
.order-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding: 10px 22px 0; }
.order-total > span:first-child { color: var(--muted); font-size: 13px; margin-right: auto; }
.order-total b { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cats { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.cat { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat > div { display: flex; flex-direction: column; min-width: 0; }
.cat .rule-txt { margin: 0; }
.import-cat { cursor: pointer; }
.cat-import { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.fld select { background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 10px;
  font-size: 14px; color: var(--ink); width: 100%; min-width: 0; }
.fld.chk { flex-direction: row; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.fld.chk input { width: auto; }
.sample { overflow-x: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.sample table { border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.sample th, .sample td { padding: 5px 9px; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink-2); }
.sample th { color: var(--muted); font-weight: 500; }
@media (max-width: 900px) {
  #app[data-view="order"] .stats { display: none; }
  .ol-prod { flex-direction: column; align-items: stretch; }
  .ptot { flex-direction: row; justify-content: space-between; align-items: center; }
  .pick-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pact { grid-column: 1 / -1; justify-content: flex-end; }
  .fields { grid-template-columns: 1fr; }
  .oline { margin: 8px; padding: 12px; }
  .ol-row { grid-template-columns: 1fr 1fr; }
  .fld input, .oline input, .oline select { font-size: 16px; }
  .bottom-nav button { font-size: 10.5px; }
}

/* ---------- site check ---------- */
.scale-banner { position: absolute; z-index: 3; top: 10px; left: 10px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 20px);
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 8px 14px; font-size: 13.5px; color: var(--ink-2); box-shadow: var(--shadow); }
.scale-banner svg.i { width: 16px; height: 16px; color: var(--sand); }
.scale-banner .go { color: var(--accent-ink); white-space: nowrap; }
.scale-card { margin: 14px 16px; padding: 16px 18px; border-radius: var(--r-md); background: var(--card-2); }
.sc-top { display: flex; align-items: center; gap: 10px; }
.sc-top .k { color: var(--muted); font-size: 14px; }
.sc-v { font-size: 24px; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.sc-v small { font-size: 13px; color: var(--muted); margin-left: 8px; }
.cands { margin-top: 10px; border-top: 1px solid var(--line); }
.cand { display: grid; grid-template-columns: 1fr auto 64px; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.cand small { display: block; color: var(--muted); font-size: 12px; }
.cand b { font-weight: 400; font-variant-numeric: tabular-nums; }
.cand i { font-style: normal; color: var(--muted); text-align: right; font-size: 12.5px; }
.cand.best { color: var(--ink); } .cand.best i { color: var(--ok); }
.sq { margin: 10px 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--card-2); }
.sq.done { opacity: .85; }
.sq-h { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; font-size: 14.5px; }
.sq-h b { font-weight: 500; flex: 1; }
.sq-n svg.i { width: 16px; height: 16px; color: var(--ok); }
.sq select, .qin input { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 10px; font-size: 15px; color: var(--ink); width: 100%; margin-top: 8px; }
.qin { display: flex; gap: 8px; align-items: center; }
.qin input { flex: 1; }
.qin .u { color: var(--muted); font-size: 13px; margin-top: 8px; }
.qin .btn { margin-top: 8px; }
@media (max-width: 900px) {
  #app[data-view="site"] .stats { display: none; }
  .sq, .scale-card { margin: 10px 8px; }
  .sq select, .qin input { font-size: 16px; }
}

/* ---------- close-up window ---------- */
.focus-box { fill: none; stroke: var(--hl); stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; opacity: 0; pointer-events: none; }
.focus-box.on { opacity: 1; }
.zoom-inset { position: absolute; z-index: 4; top: 12px; right: 12px; width: min(42%, 420px); aspect-ratio: 4 / 3; display: flex; flex-direction: column;
  background: var(--plan-bg); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; }
.zi-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; background: var(--card-2); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.zi-head span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.zi-btn { border: 1px solid var(--line-2); background: none; color: var(--accent-ink); border-radius: 99px; padding: 3px 10px; font-size: 12.5px; }
.zi-btn.x { color: var(--muted); padding: 3px 8px; }
#zoom-svg { flex: 1; width: 100%; cursor: zoom-in; display: block; }
@media (max-width: 900px) {
  .zoom-inset { top: 8px; left: 8px; right: 8px; width: auto; aspect-ratio: auto; height: 33%; }
  .zoom-inset:not(.hidden) ~ .inspector { max-height: 30%; }
}

/* open plan: the whole space is measured wall to wall; its kitchen / living / hall parts are zones */
.el.open-space { fill: var(--room); fill-opacity: .06; stroke: var(--room); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.el.zone { stroke-dasharray: 5 4; }

/* voice: mic next to send; ring while connecting, pulse while the agent listens or speaks */
.mic { width: 46px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink-2);
  display: grid; place-items: center; transition: background .15s, color .15s, box-shadow .15s; cursor: pointer; }
.mic:hover { border-color: var(--accent); color: var(--accent-ink); }
.mic[data-state="connecting"] { border-color: var(--accent); color: var(--accent-ink); animation: spin-ring 1s linear infinite; }
.mic[data-state="listening"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); animation: pulse 1.6s ease-out infinite; }
.mic[data-state="speaking"] { background: var(--accent); border-color: var(--accent); color: #0d2228; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(39 169 201 / .45); } 100% { box-shadow: 0 0 0 12px rgb(39 169 201 / 0); } }
@keyframes spin-ring { 50% { box-shadow: 0 0 0 3px var(--accent-soft); } }
.voice-caption { margin: 0 14px; padding: 8px 12px; border-radius: 12px; background: var(--card-2); color: var(--ink-2); font-size: 13.5px;
  line-height: 1.4; max-height: 4.4em; overflow: hidden; }
.voice-caption b { color: var(--accent-ink); font-weight: 600; margin-right: 4px; }
@media (prefers-reduced-motion: reduce) { .mic[data-state] { animation: none; } }
@media (max-width: 900px) { .mic { width: 48px; height: 48px; } }

/* answer: what was used, row by row (tap = show on the plan) */
.how-lead { margin: 8px 0 8px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.how-rows { display: flex; flex-direction: column; gap: 2px; }
.how-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  border: 0; background: none; padding: 6px 8px; border-radius: 8px; text-align: left; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.how-row:hover { background: var(--hover); }
.how-row:hover .ht { color: var(--hl); }
.how-row .hn { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.how-row .ht { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.how-row .hs { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.how-row .hc { font-size: 11px; color: var(--sand); background: var(--sand-soft); border-radius: 99px; padding: 0 7px; }
.how-row .hv { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; flex: none; }
.how-line { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin: 10px 8px 0; }
.how-line svg.i { width: 15px; height: 15px; }
.how-total { margin: 10px 8px 2px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; }
.how-total b { color: var(--ink); font-weight: 600; }
.link.tech { display: inline-flex; gap: 6px; align-items: center; margin: 12px 8px 0; font-size: 13px; color: var(--muted); }
.link.tech:hover { color: var(--accent-ink); }
.link.tech svg.i { width: 15px; height: 15px; }

/* checks right in the chat */
button.tag[data-checks] { cursor: pointer; }
.checks { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.ck-head { font-size: 13px; color: var(--muted); }
.ck { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.ck-name { border: 0; background: none; padding: 0; text-align: left; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; }
button.ck-name:hover { color: var(--hl); }
.ck-why { font-size: 13px; color: var(--sand); line-height: 1.4; }
.ck-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ck-acts .mini { display: inline-flex; gap: 5px; align-items: center; font: inherit; font-size: 13px; border: 1px solid var(--line-2); background: none; border-radius: 8px; padding: 4px 10px; color: var(--ink-2); cursor: pointer; }
.ck-acts .mini:hover { border-color: var(--accent); color: var(--accent-ink); }
.ck-acts .mini svg.i { width: 14px; height: 14px; }
.ck-label { font: inherit; font-size: 13px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 8px; }

/* technical details pop-up */
.modal { position: fixed; inset: 0; z-index: 60; background: rgb(0 0 0 / .55); display: grid; place-items: center; padding: 24px; }
.modal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); width: min(920px, 100%); max-height: 88vh; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 600; }
.modal-head .close { border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.modal-body { overflow: auto; padding: 6px 20px 20px; font-size: 14px; color: var(--ink-2); }
.modal-body h4 { margin: 18px 0 0; font-size: 15px; color: var(--ink); }
.modal-body h5 { margin: 18px 0 6px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.modal-body pre { margin: 0; font-family: "JetBrains Mono", monospace; font-size: 12px; background: var(--card-2); padding: 10px 12px; border-radius: 8px; overflow: auto; white-space: pre-wrap; }
.modal-body p { margin: 8px 0; line-height: 1.5; }
.tech-scroll { overflow: auto; }
.tech-t { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.tech-t th, .tech-t td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tech-t th { color: var(--faint); font-weight: 500; }
.tech-t .mono { font-family: "JetBrains Mono", monospace; font-size: 11.5px; }
@media (max-width: 900px) { .modal { padding: 0; align-items: end; } .modal-card { max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; } }

/* plain-language answers about what the drawing shows (labels, codes, notes) */
.explain { font-size: 15px; line-height: 1.55; color: var(--ink); }
.explain + .ans-value, .explain + .ans-rows { margin-top: 10px; }

.rv.confirm-all { border-color: var(--accent); }
.rv.confirm-all .btn svg.i { width: 16px; height: 16px; }

.rules-h { margin: 18px 4px 8px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.rules-h:first-child { margin-top: 4px; }
.tag.check { background: none; border: 1px dashed var(--sand); color: var(--sand); }

.ri-sub { font-size: 12.5px; color: var(--muted); margin: 10px 0 6px; }
.irg { border-top: 1px solid var(--line); padding: 8px 0 4px; }
.irg-head { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.irg-head .link { margin-left: auto; }
.irg-crops { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0; }
.irg-crops img { height: 56px; width: auto; max-width: 96px; border-radius: 4px; border: 1px dashed var(--sand); background: #fff; object-fit: contain; }
.ir-label { font-size: 12.5px; border-radius: 6px; border: 1px solid var(--line-2); background: none; color: var(--ink-2); padding: 3px 6px; }
.irg .mini { font-size: 12.5px; border: 1px solid var(--line-2); background: none; border-radius: 7px; padding: 2px 9px; color: var(--ink-2); }
.irg .acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hl-num { pointer-events: none; }
.hl-num circle { fill: var(--hl); fill-opacity: .9; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hl-num text { fill: #fff; text-anchor: middle; dominant-baseline: central; font-weight: 600; font-variant-numeric: tabular-nums; }

.three-off { height: 100%; display: grid; place-content: center; text-align: center; color: var(--ink-2); padding: 24px; }
.three-off p { color: var(--muted); max-width: 420px; margin: 8px auto 0; }
.co2-row .val { white-space: nowrap; }
