/* The use cases page (use-cases.html, de/use-cases.html, use-cases.js): the use cases of today
   and the prototypes as tabs over one window at a time, arrows at its sides, and under it what the agent
   does. The windows are the first version's (uc-views.js, uc-3d.js; their frame and the invoice
   view are in uc.css, the 3D and archive views below). The site's CI: white, Geist, hairlines,
   square corners; orange only for what is yours. */
.ag-top { padding: 152px 0 0; }
.ag { padding: 48px 0 80px; }
.cf { display: block; width: 100%; height: 100%; overflow: visible; color: var(--ink); }
.cf rect { fill: currentColor; }
.cf .eyes { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) { .cf .eyes { animation: ag-blink 4.8s var(--blink, 0s) infinite; } }
@keyframes ag-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.12); } }

/* The tabs: one per use case, its name only; the chosen one hatched, as the kinds of work on the
   home page. */
.ag-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 0.5px solid var(--hair); }
.ag-tab { display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--muted); white-space: nowrap; cursor: pointer; transition: color 0.25s; }
.ag-tab + .ag-tab { border-left: 0.5px solid var(--hair); }
.ag-tn { padding: 3px 9px; background: var(--bg); }
.ag-tab[aria-selected="true"] { color: var(--ink); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7'%3E%3Cpath d='M-1 1l2-2M0 7l7-7M6 8l2-2' stroke='%230a0a0a' stroke-width='.7' stroke-opacity='.7'/%3E%3C/svg%3E") 0 0 / 7px 7px; }
@media (hover: hover) { .ag-tab:hover { color: var(--ink); } }
.ag-tab:focus-visible { outline-offset: -3px; }

/* The window, with the arrows at its sides. */
.ag-stage { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; gap: 0; padding: 28px 0 0; }
.ag-panes { min-width: 0; }
.ag-pane .ucw-body { height: clamp(360px, 38vw, 500px); }
.ag-arrow { justify-self: start; width: 40px; height: 40px; border: 0.5px solid var(--hair); background: var(--bg); font-size: 16px; line-height: 1; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.ag-arrow[data-step="1"] { justify-self: end; }
@media (hover: hover) { .ag-arrow:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); } }
.ag-foot { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 56px; align-items: baseline; gap: 16px; padding-top: 20px; }
.ag-count { grid-column: 1; font: 10px/1 var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.ag-txt { grid-column: 2; min-width: 0; }
.ag-st { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 7px; font: 10px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.ag-st::before { content: ""; width: 6px; height: 6px; background: var(--ink); }
.ag-st[hidden] { display: none; }
.ag-d { max-width: 560px; margin: 0; font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.ag-more { grid-column: 3; font-size: 14px; white-space: nowrap; text-decoration: underline 0.5px var(--hair); text-underline-offset: 5px; }
@media (hover: hover) { .ag-more:hover { color: var(--accent); } }

/* ── 02 and 03 · the 3D views (uc-3d.js): the canvas, tags over it, a card
   with the figures and the call ─────────────────────────────────────────── */
.v3d { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.v3d-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.v3d-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.v3d-tags { position: absolute; inset: 0; pointer-events: none; }
.v3d-tags .tag { position: absolute; translate: -50% 0; background: var(--bg); transition: opacity 0.4s, background 0.3s, border-color 0.3s, color 0.3s; }
.v3d-tags .tag.wait, .v3d-kpi .tag.wait { opacity: 0; }
.v3d-tags .tag.dim { opacity: 0.45; }
.v3d-kpi { position: absolute; z-index: 2; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 24px); }
.v3d-kpi .tag { background: var(--bg); color: var(--muted); font-variant-numeric: tabular-nums; transition: opacity 0.4s, background 0.3s, color 0.3s, border-color 0.3s; }
.v3d-kpi .tag b { margin-right: 4px; font-weight: 400; color: var(--ink); }
.v3d-tags .tag.ink, .v3d-kpi .tag.ink { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.v3d-kpi .tag.ink b { color: var(--bg); }
.v3d-tags .tag.you { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.v3d-call { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 8px 12px; border-top: 0.5px solid var(--ink); font-size: 12px; line-height: 1.3; }
.v3d-call > * { opacity: 0; transition: opacity 0.5s; }
.v3d-call.in > * { opacity: 1; }
.v3d-call p { min-width: 0; }
.v3d-call b { display: block; font-weight: 400; }
.v3d-call p span { display: block; min-height: 1.3em; color: var(--muted); font-variant-numeric: tabular-nums; }
.v3d-call .call { flex: none; flex-wrap: nowrap; }

/* ── 04 · Archive: a question, its answer fact by fact, and the sheet each
   fact stands on ────────────────────────────────────────────────────────── */
.arc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); height: 100%; }
.arc-chat { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px 12px 12px; border-right: 0.5px solid var(--hair-soft); }
.arc-q { align-self: flex-end; max-width: 94%; padding: 8px 10px; background: var(--inset); font-size: 12px; line-height: 1.35; }
.arc-a { display: flex; flex: 1; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.arc-a li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 2px 8px; padding: 8px 0; border-top: 0.5px solid var(--hair-soft); font-size: 12px; line-height: 1.3; opacity: 0; translate: 0 4px; transition: opacity 0.4s, translate 0.4s; cursor: default; }
.arc-a li.in { opacity: 1; translate: 0; }
.arc-a li small { grid-column: 2; font: 9px/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.tier { align-self: start; width: 8px; height: 8px; margin-top: 4px; border: 1px solid var(--ink); border-radius: 50%; }
.tier.printed { background: var(--ink); }
.tier.inferred { border-style: dashed; border-color: var(--muted); }
.arc-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 9px/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.arc-key span { display: inline-flex; align-items: center; gap: 5px; }
.arc-key .tier { margin: 0; }
.arc-sheet { position: relative; overflow: hidden; background: var(--inset); }
.arc-sheet img { position: absolute; left: 0; top: 0; display: block; max-width: none; background: var(--bg); transform-origin: 0 0; will-change: transform; }
.arc-sheet.move img { transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1); }
.arc-ring { position: absolute; left: 50%; top: 50%; width: 96px; height: 62px; translate: -50% -50%; border: 1px solid var(--ink); opacity: 0; scale: 1.5; transition: opacity 0.4s, scale 0.5s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.arc-ring.in { opacity: 1; scale: 1; }
.arc-no { position: absolute; left: 12px; bottom: 12px; background: var(--bg); }


@media (max-width: 720px) {
  .ag-top { padding-top: 112px; }
  .ag { padding: 32px 0 64px; }
  .ag-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .ag-tabs::-webkit-scrollbar { display: none; }
  .ag-tab { flex: none; height: 44px; padding: 0 10px; font-size: 14px; }

  .ag-stage { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
  .ag-arrow { display: none; }
  .ag-pane .ucw-body { height: auto; }
  .ag-foot { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ag-count, .ag-txt, .ag-more { grid-column: 1; }
  .v3d { position: relative; height: 380px; }
  .arc { grid-template-columns: 1fr; height: auto; }
  .arc-chat { border-right: 0; border-bottom: 0.5px solid var(--hair-soft); }
  .arc-sheet { height: 260px; }
}

/* ── 05 · Bill of quantities check (uc-views.js boq): the invoice view's sheet and list, with the
   model's quantity beside the bill's; it comes up as the agent counts the row ─────────────────── */
.inv-row.boq { grid-template-columns: 46px minmax(0, 1fr) 70px 74px 48px 16px; }
.inv-row.boq .m i { font-style: normal; opacity: 0; transition: opacity 0.3s; }
.inv-row.boq.seen .m i { opacity: 1; }
.inv-row.boq .d { color: var(--muted); opacity: 0; transition: opacity 0.3s; }
.inv-row.boq.seen .d { opacity: 1; }
.inv-row.boq.add .t::after { content: " +"; color: var(--muted); }
.inv-row.boq.kept .n.q { color: var(--muted); text-decoration: line-through; }

/* ── 06 · Tender (uc-views.js tender): the price comparison, bids filling in column by column ── */
.tdr { display: flex; flex-direction: column; height: 100%; font-size: 10px; line-height: 1.3; }
.tdr-top { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 0.5px solid var(--hair-soft); font-size: 12px; }
.tdr-top b { font-weight: 500; }
.tdr-top span { color: var(--muted); font-variant-numeric: tabular-nums; }
.tdr-grid { flex: none; padding: 6px 14px 0; }
.tdr-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 70px repeat(4, 74px); gap: 8px; align-items: center; height: 27px; border-bottom: 0.5px solid var(--hair-soft); font-variant-numeric: tabular-nums; }
.tdr-row > * { min-width: 0; white-space: nowrap; }
.tdr-row.head { height: 26px; font: 8px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tdr-row .pos { font: 9px/1 var(--mono); color: var(--muted); }
.tdr-row .t { overflow: hidden; text-overflow: ellipsis; }
.tdr-row .n { justify-self: end; padding: 2px 3px; margin-right: -3px; border: 0.5px solid transparent; transition: border-color 0.3s, background 0.3s, color 0.3s, opacity 0.3s; }
.tdr-row .bid i { display: inline-block; width: 6px; height: 6px; margin-left: 5px; border: 0.5px solid var(--hair); vertical-align: 0; transition: background 0.3s, border-color 0.3s; }
.tdr-row .bid.in i { background: var(--ink); border-color: var(--ink); }
.tdr-row .c { opacity: 0; }
.tdr-row .c.in { opacity: 1; }
.tdr.marked .c.low { border-color: var(--ink); }
.tdr.marked .c.hi { border-style: dashed; border-color: var(--ink); }
.tdr.marked .c.gap { border-style: dashed; border-color: var(--hair); color: var(--muted); }
.tdr-row.sum { height: 32px; border-bottom: 0.5px solid var(--ink); font-size: 11px; opacity: 0; transition: opacity 0.4s; }
.tdr-row.sum.in, .tdr-row.rank.in { opacity: 1; }
.tdr-row.sum .part { color: var(--muted); text-decoration: line-through; }
.tdr-row.rank { border-bottom: 0; color: var(--muted); opacity: 0; transition: opacity 0.4s; }
.tdr-row.rank b { display: inline-flex; justify-content: center; align-items: center; min-width: 18px; height: 18px; border: 0.5px solid var(--hair); font-weight: 400; color: var(--ink); }
.tdr-row.rank b.one { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tdr-foot { display: grid; flex: 1; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 16px; min-height: 0; padding: 10px 14px 14px; }
.tdr-find { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 11px; }
.tdr-find li { padding-left: 12px; box-shadow: inset 1px 0 var(--ink); opacity: 0; translate: 0 4px; transition: opacity 0.4s, translate 0.4s; }
.tdr-find li.in { opacity: 1; translate: 0; }
.tdr-call { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: rgb(245 78 0 / 0.07); box-shadow: inset 2px 0 var(--accent); font-size: 12px; opacity: 0; transition: opacity 0.4s; }
.tdr-call.in { opacity: 1; }
.tdr-call p { margin: 0; }
.tdr-call small { min-height: 1.3em; font-size: 11px; color: var(--muted); }

@media (max-width: 720px) {
  .inv-row.boq { grid-template-columns: 40px minmax(0, 1fr) 62px 62px 14px; }
  .inv-row.boq > .d { display: none; }
  .tdr { height: auto; }
  .tdr-grid { overflow-x: auto; padding: 6px 10px 0; }
  .tdr-row { grid-template-columns: 44px repeat(4, minmax(52px, 1fr)); gap: 6px; }
  .tdr-row > :nth-child(2), .tdr-row > :nth-child(3) { display: none; }
  .tdr-row.sum, .tdr-row.rank { font-size: 10px; }
  .tdr-foot { grid-template-columns: 1fr; padding: 10px; }
}

/* ── More windows (uc-more.js) ───────────────────────────────────────────────────────────────── */
/* Shared: a header line in a column, and the parts that come in. */
.brf-h { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-bottom: 0.5px solid var(--hair-soft); font-size: 12px; white-space: nowrap; }
.brf-h b { font-weight: 500; }
.brf-h span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* From the bill to the award: two steps, one pane each. */
.awd { display: flex; flex-direction: column; height: 100%; }
.awd-steps { display: flex; flex: none; border-bottom: 0.5px solid var(--hair-soft); }
.awd-steps button { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 0; background: none; font: inherit; font-size: 11px; color: var(--muted); cursor: pointer; box-shadow: inset 0 -1px transparent; transition: color 0.25s, box-shadow 0.25s; }
.awd-steps button b { font: 400 9px/1 var(--mono); }
.awd-steps button[aria-current] { color: var(--ink); box-shadow: inset 0 -1px var(--ink); }
.awd-pane { position: relative; flex: 1; min-height: 0; }
.awd-pane > .inv, .awd-pane > .tdr { height: 100%; }

/* The morning briefing: the night's messages, then the cards for you. */
.brf { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); height: 100%; font-size: 11px; line-height: 1.3; }
.brf-in { display: flex; flex-direction: column; min-width: 0; border-right: 0.5px solid var(--hair-soft); }
.brf-list { flex: 1; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.brf-row { display: grid; grid-template-columns: 66px minmax(0, 0.9fr) minmax(0, 1.4fr); grid-template-rows: auto auto; gap: 2px 10px; padding: 7px 12px; border-bottom: 0.5px solid var(--hair-soft); opacity: 0; translate: 0 4px; transition: opacity 0.35s, translate 0.35s, color 0.3s; }
.brf-row.in { opacity: 1; translate: 0; }
.brf-row .tag { grid-row: 1 / 3; align-self: start; justify-self: start; }
.brf-row b { overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.brf-row .w { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.brf-row i { grid-column: 2 / -1; font: normal 9px/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity 0.3s; }
.brf-row.seen i { opacity: 1; }
.brf-row.seen:not(.you) b, .brf-row.seen:not(.you) .w { color: var(--muted); }
.brf-row.you i { color: var(--accent); }
.brf-out { display: flex; flex-direction: column; min-width: 0; }
.brf-cards { flex: 1; margin: 0; padding: 0; list-style: none; }
.brf-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-bottom: 0.5px solid var(--hair-soft); opacity: 0; translate: 0 4px; transition: opacity 0.4s, translate 0.4s; }
.brf-card.in { opacity: 1; translate: 0; }
.brf-card b { font-weight: 500; font-size: 12px; }
.brf-card span { color: var(--muted); }
.brf-card .call { margin-top: 4px; }
.brf-card:first-child.in { background: rgb(245 78 0 / 0.07); box-shadow: inset 2px 0 var(--accent); }
.brf-done { flex: none; min-height: 40px; margin: 0; padding: 12px; border-top: 0.5px solid var(--ink); font-size: 12px; }

/* The zoning check: the site plan, the rules under it, the breaches yours. */
.zon { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); height: 100%; }
.zon-left { display: flex; flex-direction: column; min-width: 0; padding: 12px 14px 0; background: var(--inset); border-right: 0.5px solid var(--hair-soft); }
.zon-map { display: block; width: 100%; height: auto; max-height: 58%; background: var(--bg); border: 0.5px solid var(--hair-soft); }
.zon-map .plot { fill: none; stroke: var(--ink); stroke-width: 0.6; }
.zon-map .el { fill: none; stroke: var(--hair); stroke-width: 0.6; transition: stroke 0.3s, fill 0.3s, stroke-width 0.3s; }
.zon-map .line { stroke-dasharray: 3 2; }
.zon-map .north { stroke-dasharray: 2 2; }
.zon-map .foot { fill: var(--bg); stroke: var(--ink); stroke-width: 0.8; }
.zon-map .top { fill: rgb(10 10 10 / 0.06); stroke: var(--ink); }
.zon-map .park rect { fill: none; stroke: var(--hair); stroke-width: 0.5; }
.zon-map .hit, .zon-map .hit rect { stroke: var(--ink); stroke-width: 1.4; }
.zon-map .breach { stroke: var(--accent); stroke-width: 1.2; fill: rgb(245 78 0 / 0.08); }
.zon-map .fixed { stroke: var(--ink); stroke-width: 1; }
.zon-map .road { stroke: var(--hair); stroke-width: 0.6; }
.zon-map .arrow { fill: none; stroke: var(--ink); stroke-width: 0.8; }
.zon-map text { font: 6px/1 var(--mono); letter-spacing: 0.04em; fill: var(--muted); text-anchor: middle; }
.zon-rules { padding: 8px 0 0; font-size: 11px; }
.zon-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 64px 16px; gap: 8px; align-items: center; height: 26px; border-bottom: 0.5px solid var(--hair-soft); font-variant-numeric: tabular-nums; }
.zon-row .need { color: var(--muted); text-align: right; }
.zon-row .has { text-align: right; }
.zon-row .mk svg { display: block; width: 14px; height: 14px; overflow: visible; opacity: 0; transition: opacity 0.25s; }
.zon-row .mk path { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.zon-row .mk rect { fill: none; stroke: var(--accent); stroke-width: 1; }
.zon-row.seen .mk svg { opacity: 1; }
.zon-row.seen.open .has { color: var(--accent); }

/* Reading what exists: a real scan (Bavariaring 24, Munich, 1912), straightened, the scale taken
   off its bar, its walls traced over it piece by piece and its rooms laid in with their areas;
   in the scan's own pixels (assets/uc/bavariaring-24.json). */
.svy { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); height: 100%; }
.svy-scan { position: relative; min-width: 0; padding: 10px; overflow: hidden; background: var(--inset); border-right: 0.5px solid var(--hair-soft); }
.svy-scan svg { display: block; width: 100%; height: 100%; overflow: visible; }
.svy-scan .old { transform-box: fill-box; transform-origin: 50% 50%; rotate: -0.9deg; transition: rotate 0.9s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.9s; }
.svy-scan .old rect { fill: #f6f3ea; }
.svy-scan .old image { mix-blend-mode: multiply; }
.svy.straight .old { rotate: 0deg; }
.svy.reading .old { opacity: 0.3; }
.svy.clean .old { opacity: 0; transition: opacity 1.4s cubic-bezier(0.65, 0, 0.35, 1); }   /* at the end only the drawing is left */
.svy-scan .bar rect { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.svy-scan .bar text { font: 22px/1 var(--mono); letter-spacing: 0.04em; fill: var(--ink); }
.svy-scan .bar { opacity: 0; transition: opacity 0.35s; }
.svy.scale .bar { opacity: 1; }
.svy-scan .w { fill: var(--ink); fill-opacity: 0; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; stroke-dasharray: var(--l) var(--l); stroke-dashoffset: var(--l); transition: stroke-dashoffset 0.45s ease-out, fill-opacity 0.3s 0.25s; }
.svy-scan .w.in { stroke-dashoffset: 0; fill-opacity: 1; }
/* Windows and doors as the plan draws them: thin lines along the wall faces, a window's glass in the middle; doors lighter */
.svy-scan .op { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: var(--l) var(--l); stroke-dashoffset: var(--l); transition: stroke-dashoffset 0.4s ease-out; }
.svy-scan .op.d { stroke-opacity: 0.4; }
.svy-scan .op.in { stroke-dashoffset: 0; }
.svy-scan .rm path { fill: rgb(10 10 10 / 0.06); opacity: 0; transition: opacity 0.4s, fill 0.2s; }
.svy-scan .rm text { font-family: var(--mono); fill: var(--ink); text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 0.4s; }
.svy-scan .rm.in path, .svy-scan .rm.in text { opacity: 1; }
.svy-scan .rm.hot path { fill: rgb(10 10 10 / 0.16); }
.svy-scan .inv-scan { left: 10px; right: 10px; top: 10px; }
.svy-no { position: absolute; left: 10px; bottom: 10px; background: var(--bg); }
.svy-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; flex: none; margin: 0; padding: 6px 12px 8px; border-bottom: 0.5px solid var(--hair-soft); list-style: none; font-size: 11px; line-height: 1.3; }
.svy-list li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 0.5px solid var(--hair-soft); opacity: 0.25; transition: opacity 0.3s, background 0.2s; cursor: default; }
.svy-list li.in { opacity: 1; }
.svy-list li span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.svy-list li b { flex: none; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--muted); }
.svy-list li.in:hover b { color: var(--ink); }
.svy-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); flex: none; border-bottom: 0.5px solid var(--hair-soft); }
.svy-nums div { min-width: 0; padding: 12px 10px; }
.svy-nums div + div { border-left: 0.5px solid var(--hair-soft); }
.svy-nums b { display: block; font-weight: 400; font-size: 16px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.svy-nums span { font: 9px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* The cost estimate: the groups, then the total against the budget. */
.cst { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); height: 100%; }
.cst-table { padding: 10px 14px 0; border-right: 0.5px solid var(--hair-soft); font-size: 11px; }
.cst-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 92px 64px 84px; gap: 8px; align-items: center; height: 28px; border-bottom: 0.5px solid var(--hair-soft); font-variant-numeric: tabular-nums; }
.cst-row > * { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cst-row.head { height: 24px; font: 8px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cst-row .pos { font: 9px/1 var(--mono); color: var(--muted); }
.cst-row .n { text-align: right; }
.cst-row[data-r] .n { opacity: 0; transition: opacity 0.3s; }
.cst-row[data-r].in .n { opacity: 1; }
.cst-row.sum { height: 34px; border-bottom: 0.5px solid var(--ink); font-size: 12px; }
.cst-bar { flex: none; padding: 12px; border-bottom: 0.5px solid var(--hair-soft); }
.cst-k small { display: block; font-size: 10px; color: var(--muted); }
.cst-k b { font-weight: 400; font-size: 15px; font-variant-numeric: tabular-nums; }
.cst-track { position: relative; height: 10px; margin: 12px 0 8px; background: var(--inset); }
.cst-track .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.cst-track .line { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--accent); }
.cst-bar p { min-height: 1.3em; margin: 0; font-size: 12px; }

/* Simulation: three panes, each with its result and the call. */
.sim { display: flex; flex-direction: column; height: 100%; }
.sim-tabs { display: flex; flex: none; border-bottom: 0.5px solid var(--hair-soft); }
.sim-tabs button { height: 32px; padding: 0 14px; border: 0; background: none; font: inherit; font-size: 11px; color: var(--muted); cursor: pointer; box-shadow: inset 0 -1px transparent; transition: color 0.25s, box-shadow 0.25s; }
.sim-tabs button[aria-current] { color: var(--ink); box-shadow: inset 0 -1px var(--ink); }
.sim-pane { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 10px 14px; background: var(--inset); }
.sim-pane[hidden], .awd-pane[hidden] { display: none; }
.sim-pane svg { display: block; width: 100%; height: 100%; max-height: 100%; background: var(--bg); border: 0.5px solid var(--hair-soft); }
.sim-pane .df rect { fill: var(--ink); fill-opacity: var(--a); }
.sim-pane.run .df rect { animation: sim-in 0.5s var(--d) both; }
@keyframes sim-in { from { fill-opacity: 0; } }
.sim-pane .walls { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.sim-pane .lbl text { font: 8px/1 var(--mono); text-anchor: middle; fill: var(--bg); paint-order: stroke; stroke: var(--ink); stroke-width: 2.4px; }
.sim-pane .lbl text.low { fill: var(--accent); stroke: var(--bg); }
.sim-pane .ground { stroke: var(--hair); stroke-width: 0.8; }
.sim-pane .mem path { stroke: rgb(10 10 10 / calc(0.25 + var(--u) * 0.75)); stroke-width: 3.2; stroke-linecap: square; }
.sim-pane .mem.over path { stroke: var(--accent); }
.sim-pane .mem text { font: 6px/1 var(--mono); fill: var(--muted); text-anchor: middle; }
.sim-pane .mem.over text { fill: var(--accent); }
.sim-pane.run .mem { animation: sim-mem 0.4s both; }
.sim-pane.run .mem:nth-child(n) { animation-delay: calc(var(--u) * 1200ms); }
@keyframes sim-mem { from { opacity: 0; } }
.sim-pane .bar rect { fill: var(--ink); transform-box: fill-box; transform-origin: 50% 100%; }
.sim-pane.run .bar rect { animation: sim-bar 0.6s var(--d) cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes sim-bar { from { transform: scaleY(0); } }
.sim-pane .bar text { font: 6px/1 var(--mono); fill: var(--muted); text-anchor: middle; }
.sim-say { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-top: 0.5px solid var(--ink); font-size: 12px; }
.sim-say p { margin: 0; }

/* The plan set: the list of sheets, and the sheets themselves cut from the example drawing. */
.sht { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); height: 100%; }
.sht-list { display: flex; flex-direction: column; padding: 10px 14px 0; border-right: 0.5px solid var(--hair-soft); font-size: 11px; }
.sht-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 40px 16px; gap: 8px; align-items: center; height: 28px; border-bottom: 0.5px solid var(--hair-soft); opacity: 0.25; transition: opacity 0.3s; }
.sht-row.in { opacity: 1; }
.sht-row .pos { font: 9px/1 var(--mono); color: var(--muted); }
.sht-row .n { text-align: right; color: var(--muted); }
.sht-row .mk svg { display: block; width: 14px; height: 14px; overflow: visible; opacity: 0; transition: opacity 0.25s; }
.sht-row .mk path { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.sht-row.in .mk svg { opacity: 1; }
.sht-say { margin-top: auto; padding: 12px 0; }
.sht-say p { min-height: 1.3em; margin: 0 0 8px; font-size: 12px; }
.sht-say .call { opacity: 0; transition: opacity 0.4s; }
.sht-say .call.in { opacity: 1; }
.sht-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; gap: 12px; padding: 14px; background: var(--inset); }
.sht-sheet { margin: 0; background: var(--bg); border: 0.5px solid var(--hair-soft); opacity: 0; scale: 0.96; transition: opacity 0.4s, scale 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.sht-sheet.in { opacity: 1; scale: 1; }
.sht-sheet .pic { position: relative; aspect-ratio: 1.414; overflow: hidden; }
.sht-sheet img { position: absolute; width: calc(var(--z) * 100%); max-width: none; left: calc(50% - var(--x) * var(--z) * 100%); top: calc(50% - var(--y) * var(--z) * 100%); }
.sht-sheet figcaption { display: flex; justify-content: space-between; gap: 6px; padding: 4px 6px; border-top: 0.5px solid var(--ink); font-size: 8px; white-space: nowrap; }
.sht-sheet figcaption b { font: 400 8px/1.2 var(--mono); }
.sht-sheet figcaption span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; }

/* Minutes from the transcript: what was said, then what it became. */
.mnt { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); height: 100%; font-size: 11px; line-height: 1.35; }
.mnt-said { margin: 0; padding: 8px 0; overflow: hidden; list-style: none; border-right: 0.5px solid var(--hair-soft); }
.mnt-said li { display: grid; grid-template-columns: 38px 78px minmax(0, 1fr); gap: 8px; padding: 6px 12px; opacity: 0; translate: 0 4px; transition: opacity 0.35s, translate 0.35s, background 0.3s; }
.mnt-said li.in { opacity: 1; translate: 0; }
.mnt-said li.hit { background: rgb(10 10 10 / 0.04); box-shadow: inset 2px 0 var(--ink); }
.mnt-said .pos { font: 9px/1.5 var(--mono); color: var(--muted); }
.mnt-said b { font-weight: 500; }
.mnt-doc { display: flex; flex-direction: column; min-width: 0; }
.mnt-doc h4 { margin: 12px 12px 4px; font: 9px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mnt-doc ul { margin: 0; padding: 0 12px; list-style: none; }
.mnt-doc li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 6px 0; border-bottom: 0.5px solid var(--hair-soft); opacity: 0; transition: opacity 0.4s; }
.mnt-doc li.in { opacity: 1; }
.mnt-doc li span:first-child { flex: 1 1 100%; }
.mnt-call { margin-top: auto; padding: 10px 12px; background: rgb(245 78 0 / 0.07); box-shadow: inset 2px 0 var(--accent); opacity: 0; transition: opacity 0.4s; }
.mnt-call.in { opacity: 1; }
.mnt-call p { margin: 0 0 8px; font-size: 12px; }

@media (max-width: 720px) {
  .brf, .zon, .svy, .cst, .sht, .mnt { grid-template-columns: 1fr; height: auto; }
  .brf-in, .zon-left, .svy-scan, .cst-table, .sht-list, .mnt-said { border-right: 0; border-bottom: 0.5px solid var(--hair-soft); }
  .brf-row { grid-template-columns: 60px minmax(0, 1fr); }
  .brf-row .w { grid-column: 2; }
  .zon-map { max-height: none; }
  .svy-scan svg { height: auto; }
  .svy .inv-list { min-height: 112px; }   /* the one question, with its buttons */
  .cst-row { grid-template-columns: 30px minmax(0, 1fr) 70px 72px; }
  .cst-row > :nth-child(4) { display: none; }
  .sim { height: auto; }
  .sim-pane { height: 300px; flex: none; }
  .sim-say { flex-direction: column; align-items: flex-start; }
  .sht-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mnt-said li { grid-template-columns: 34px minmax(0, 1fr); }
  .mnt-said li b { grid-column: 2; }
  .mnt-said li .w { grid-column: 2; }
}
