/* Rooms & Baseline (TASK-property-baseline-v2-f, the owner-approved redesign of 2026-11-10): the off-camera
   palette (tokens from WasNowUI.css): page #26221F; bars and cards Umber; raised #3A342F; table header #2C2724;
   lines Ivory at 6–16 %. Walnut marks selection only; Walnut Deep is the only filled button. Cyan: scan and
   sketch states, Approved, links. Amber: defects at move-in only. Coral: new since move-in (and errors). */
:root {
  --pb-bg: #26221F; --pb-card: #302B27; --pb-raised: #3A342F; --pb-head: #2C2724; --pb-well: #2A2522;
  --pb-line: rgba(242,232,218,.10); --pb-line-soft: rgba(242,232,218,.06); --pb-line-strong: rgba(242,232,218,.16);
  --pb-soft: #2C2724; --pb-text: #F2E8DA; --pb-muted: #CFC3B2;
  --pb-walnut: #A87549; --pb-walnut-deep: #8A5C36; --pb-cyan: #85C8C5; --pb-cyan-light: #E9FBFA;
  --pb-cyan-soft: rgba(133,200,197,.12); --pb-amber: #E7AD52; --pb-amber-bg: rgba(231,173,82,.12); --pb-coral: #EC7B63;
  --pb-error: #EC7B63; --pb-ok: #85C8C5; --pb-ok-bg: rgba(133,200,197,.12);
  /* Older rules' names: the accent is Cyan (links, states); filled buttons use Walnut Deep. */
  --pb-indigo: #85C8C5; --pb-indigo-soft: rgba(133,200,197,.10); --pb-accent: #85C8C5;
  --pb-sketch: #1E1A17;
  --pb-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--pb-font); background: var(--pb-bg); color: var(--pb-text); font-size: 14px;
  font-variant-numeric: tabular-nums; }
a { color: var(--pb-cyan); }
a:hover { color: var(--pb-cyan-light); }
main { margin: 0; padding: 0; }
#wasnowFloorPlans { margin: 0 24px 32px; }

.wn-pb-root select, .wn-pb-root input:not([type="checkbox"]) { min-height: 44px; padding: 8px 10px; border: 1px solid var(--pb-line-strong);
  border-radius: 8px; background: var(--pb-head); color: var(--pb-text); font: 14px var(--pb-font); min-width: 0; color-scheme: dark; }
.wn-pb-root input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--pb-cyan); margin: 0; }
.wn-pb-root button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--pb-line-strong); border-radius: 8px;
  background: var(--pb-raised); color: var(--pb-text); font: 600 13px var(--pb-font); cursor: pointer; }
.wn-pb-root button:disabled { opacity: .45; cursor: default; }
.wn-pb-root button:focus-visible, .wn-pb-root a:focus-visible, .wn-pb-root summary:focus-visible, .wn-pb-root select:focus-visible,
.wn-pb-root input:focus-visible { outline: 2px solid var(--pb-cyan); outline-offset: 2px; }
/* Buttons: one filled colour (Walnut Deep); ghost and raised otherwise. */
.wn-pb-btn, .wn-pb-root .wn-pb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; height: auto;
  padding: 6px 14px; border-radius: 8px; border: 1px solid var(--pb-line-strong); background: var(--pb-raised); color: var(--pb-text);
  font: 600 13px var(--pb-font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.wn-pb-root .wn-pb-ghost { background: transparent; }
.wn-pb-root .wn-pb-cta, .wn-pb-root button.wn-pb-primary { background: var(--pb-walnut-deep); border-color: var(--pb-walnut-deep); color: var(--pb-text); }
.wn-pb-root .wn-pb-sm { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.wn-pb-root button.wn-pb-link { min-height: 0; border: 0; background: none; padding: 6px 0; color: var(--pb-cyan); font-weight: 600; text-decoration: none; }
.wn-pb-root button.wn-pb-link:hover { color: var(--pb-cyan-light); text-decoration: underline; }
.wn-pb-root .wn-pb-danger-quiet { color: var(--pb-coral); }
.wn-pb-root .wn-pb-danger-quiet:disabled { color: var(--pb-muted); }
.wn-pb-root button.wn-pb-danger { background: transparent; border-color: var(--pb-coral); color: var(--pb-coral); }
.wn-pb-icon, .wn-pb-root button.wn-pb-icon { width: 32px; height: 32px; min-height: 32px; padding: 0; display: inline-grid; place-items: center;
  border-radius: 7px; border: 1px solid var(--pb-line-strong); background: transparent; color: var(--pb-muted); }
.wn-pb-message { padding: 10px 12px; border-radius: 8px; background: var(--pb-cyan-soft); color: var(--pb-text); margin: 12px 0; }
.wn-pb-message.wn-pb-error { background: rgba(236,123,99,.12); color: var(--pb-coral); }
.wn-pb-empty { color: var(--pb-muted); }
.wn-pb-hint { color: var(--pb-muted); font-size: 12px; }
.wn-pb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wn-pb-grow { flex: 1 1 auto; }
.wn-pb-pad { padding: 0 16px 14px; margin: 0; }
.wn-pb-actions { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; align-items: center; }
.wn-pb-subhead { margin: 18px 0 8px; font-size: 11px; font-weight: 600; color: var(--pb-muted); text-transform: uppercase; letter-spacing: .8px; }
.wn-pb-k { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--pb-muted); }
.wn-pb-t { margin: 0; font-weight: 600; }
.wn-pb-m { margin: 0; font-size: 12px; color: var(--pb-muted); }
.wn-pb-v { margin: 2px 0; font-size: 14px; font-weight: 600; }
.wn-pb-chip { font-size: 12px; color: var(--pb-muted); padding: 4px 10px; border-radius: 999px; background: var(--pb-card); border: 1px solid var(--pb-line); }

/* The frame: the top bar (56 px, Umber), the property strip, then the rail and the main area (a wrapping row). */
.wn-pb-app { min-height: 100vh; background: var(--pb-bg); }
.wn-pb-top { height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 24px; background: var(--pb-card); border-bottom: 1px solid var(--pb-line); }
.wn-pb-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: .2px; color: var(--pb-text); text-decoration: none; }
.wn-pb-logo:hover { color: var(--pb-text); }
.wn-pb-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--pb-walnut); }
.wn-pb-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--pb-muted); font-size: 13px; }
.wn-pb-crumb-link { color: var(--pb-muted); text-decoration: none; }
.wn-pb-switch { position: relative; display: inline-flex; min-width: 0; }
.wn-pb-root .wn-pb-switch select { appearance: none; -webkit-appearance: none; min-height: 32px; height: 32px; padding: 0 30px 0 10px; max-width: 280px;
  border-radius: 8px; border: 1px solid var(--pb-line-strong); background: transparent; color: var(--pb-text); font: 600 13px var(--pb-font);
  text-overflow: ellipsis; cursor: pointer; }
.wn-pb-switch::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -5px; pointer-events: none;
  border-right: 2px solid var(--pb-muted); border-bottom: 2px solid var(--pb-muted); transform: rotate(45deg); }
.wn-pb-switch option { background: var(--pb-card); color: var(--pb-text); }
.wn-pb-top-links { display: flex; align-items: center; gap: 10px; }
.wn-pb-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--pb-raised); display: grid; place-items: center; font-size: 12px;
  font-weight: 600; color: var(--pb-muted); flex: none; }
.wn-pb-account-menu { flex: none; min-width: 0; }
.wn-pb-root .wn-pb-account-menu summary { width: auto; max-width: min(36vw, 220px); min-height: 36px; padding: 0 8px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.wn-pb-account-menu .wn-pb-menu-body { top: 38px; }
.wn-pb-root .wn-pb-top-plan, .wn-pb-top-menu { display: none; }
.wn-pb-top-menu summary { color: var(--pb-text); }
.wn-pb-top-menu .wn-pb-menu-body { left: 0; right: auto; }
.wn-pb-prop { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding: 24px 24px 20px;
  border-bottom: 1px solid var(--pb-line-soft); }
.wn-pb-prop-name { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.3px; line-height: 1.2; }
.wn-pb-sub { margin: 4px 0 0; color: var(--pb-muted); font-size: 13px; }
.wn-pb-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.wn-pb-stat { display: flex; flex-direction: column; gap: 2px; }
.wn-pb-stat-n { font-size: 18px; font-weight: 600; }
.wn-pb-stat-l { font-size: 12px; color: var(--pb-muted); }
.wn-pb-body { display: flex; flex-wrap: wrap; align-items: stretch; }
.wn-pb-main { flex: 999 1 640px; min-width: 0; padding: 20px 28px 48px; }

/* The rail: the floors stacked like a building (top floor first), then the floor's Spaces. */
.wn-pb-rail { flex: 1 1 280px; min-width: 260px; max-width: 300px; padding: 20px 16px; display: flex; flex-direction: column; gap: 24px;
  border-right: 1px solid var(--pb-line-soft); }
.wn-pb-sec { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wn-pb-sec h2 { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--pb-muted); }
.wn-pb-floor-stack, .wn-pb-space-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wn-pb-root button.wn-pb-floor { width: 100%; height: 44px; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px;
  border-radius: 9px; background: var(--pb-card); border: 1px solid var(--pb-line-soft); color: var(--pb-text); text-align: left; font-weight: 400; }
.wn-pb-root button.wn-pb-floor.wn-pb-current { background: var(--pb-raised); border-color: var(--pb-walnut); box-shadow: inset 3px 0 0 var(--pb-walnut); }
.wn-pb-lv { width: 30px; font-weight: 700; flex: none; }
.wn-pb-floor-count { flex: 1; color: var(--pb-muted); font-size: 12px; white-space: nowrap; }
.wn-pb-plan-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; border: 1.5px solid rgba(242,232,218,.35); }
.wn-pb-plan-dot.wn-pb-plan-dot-on { background: var(--pb-cyan); border-color: var(--pb-cyan); }
.wn-pb-phone-only { display: none; }
.wn-pb-addf { display: flex; gap: 6px; margin-top: 8px; }
.wn-pb-root .wn-pb-addf .wn-pb-btn { flex: 1; min-height: 32px; font-size: 12px; font-weight: 500; padding: 4px 8px; }
.wn-pb-root button.wn-pb-room { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 0;
  border-radius: 9px; background: none; color: var(--pb-text); text-align: left; font-weight: 400; }
.wn-pb-root button.wn-pb-room:hover { background: var(--pb-card); }
.wn-pb-root button.wn-pb-room.wn-pb-current { background: var(--pb-raised); font-weight: 600; }
.wn-pb-room-name { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wn-pb-root button.wn-pb-space-picker { display: none; }
/* Status pills. */
.wn-pb-pill, .wn-pb-state { flex: none; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.wn-pb-pill-approved, .wn-pb-state-approved { color: var(--pb-cyan); background: var(--pb-cyan-soft); }
.wn-pb-pill-draft, .wn-pb-state-draft { color: var(--pb-muted); background: rgba(242,232,218,.08); }
.wn-pb-pill-none, .wn-pb-pill-loading, .wn-pb-state-none, .wn-pb-state-list { color: var(--pb-muted); border: 1px dashed rgba(242,232,218,.25); }
.wn-pb-add-space { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--pb-line); }
.wn-pb-add-space label, .wn-pb-floor-rename label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--pb-muted); }
.wn-pb-add-space .wn-pb-hint { margin: 0; }

/* Headers in the main area. */
.wn-pb-shead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.wn-pb-shead h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.2px; }
.wn-pb-more summary.wn-pb-btn { list-style: none; width: auto; height: 36px; border-radius: 8px; }

/* The Floor overview: the plan card (wide) and the side column. */
.wn-pb-fgrid { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; align-items: flex-start; }
.wn-pb-card { background: var(--pb-card); border: 1px solid var(--pb-line); border-radius: 12px; }
/* clip, not hidden: the selected room's toolbar sticks to the top of the screen while the plan scrolls under it. */
.wn-pb-plan-card { flex: 999 1 560px; min-width: 0; overflow: clip; }
.wn-pb-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.wn-pb-ch { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--pb-line-soft); }
/* The plan as drawn, on a light card so the Spaces' colours read (owner, 2026-11-10). */
.wn-pb-pbox, .wn-pb-plan-light { background: #FBFAF7; padding: 16px; display: grid; place-items: center; }
.wn-pb-plan-light { padding: 8px; border-radius: 8px; }
/* Panel (a): the plan zoomed on the Space (the frame is the Space's padded box; the whole plan moves under it). */
.wn-pb-plan-zoom { position: relative; width: 100%; max-height: 300px; overflow: hidden; }
.wn-pb-plan-zoom > .wn-pb-plan-figure { position: absolute; max-width: none; }
.wn-pb-pill-more { font-weight: 500; opacity: .8; }
.wn-pb-plan-figure { position: relative; width: 100%; max-width: 760px; }
/* The plan, drawn dark like the rest of the page (Full size opens the original). */
.wn-pb-plan-img { display: block; width: 100%; height: auto; }
.wn-pb-ov-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Each Space in its own colour (--ov): fill 30 % (45 % on hover or focus), a 2 px outline; Not scanned dashed; a
   plan room with no Space dotted grey. Names on Umber chips. */
.wn-pb-ov path { fill: var(--ov); fill-opacity: .3; stroke: var(--ov); stroke-width: 2; vector-effect: non-scaling-stroke; }
.wn-pb-ov:hover path, .wn-pb-ov:focus path { fill-opacity: .45; }
.wn-pb-ov:focus { outline: none; }
.wn-pb-ov:focus-visible path { stroke: #302B27; stroke-width: 3; }
.wn-pb-ov-only path { fill-opacity: .4; }
/* Phase H: every room coloured; not linked: dashed; picked: thicker; a merge target: dotted; the arriving stairs;
   exterior rooms hatched; the split line. */
.wn-pb-ov-unlinked path { stroke-dasharray: 8 5; }
.wn-pb-ov-on path { stroke-width: 5; fill-opacity: .5; }
.wn-pb-ov-target:hover path { stroke-width: 4; stroke-dasharray: 2 4; }
.wn-pb-ov-arrival path { fill-opacity: .22; stroke-dasharray: 3 3; }
.wn-pb-ov path.wn-pb-hatch { fill: url(#wn-pb-hatch); fill-opacity: 1; stroke: none; }
#wn-pb-hatch line { stroke: #302B27; stroke-opacity: .35; stroke-width: 2; }
.wn-pb-splitline polyline { fill: none; stroke: #EC7B63; stroke-width: 3; vector-effect: non-scaling-stroke; }
.wn-pb-splitline circle { fill: #FBFAF7; stroke: #EC7B63; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.wn-pb-ov-svg.wn-pb-splitting { cursor: crosshair; touch-action: pinch-zoom; }
.wn-pb-swatch-dashed { background: none; border: 2px dashed var(--ov); }
.wn-pb-planlist-sub { margin-top: 12px; }
.wn-pb-plan-hint { margin: 0; padding: 10px 16px 0; }
/* A plan being read: the model's words and the time so far. */
.wn-pb-reading { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; padding: 10px 16px 0; font-size: 13px; color: var(--pb-text); }
.wn-pb-reading-time { font-variant-numeric: tabular-nums; color: var(--pb-muted); }
/* A reach-in closet, shaded with its host's Space: no outline of its own beyond a hairline. */
.wn-pb-ov-feature path { stroke-width: 1; fill-opacity: .3; }
.wn-pb-plan-tools { margin: 0; gap: 6px; }
/* The selected room's toolbar. */
.wn-pb-roombar { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; background: var(--pb-raised); border-bottom: 1px solid var(--pb-line);
  position: sticky; top: 0; z-index: 4; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
/* A refused change, shown by the toolbar: Ivory on raised Umber with a Walnut edge (Amber is for defects). */
.wn-pb-roomalert { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--pb-card); color: var(--pb-text);
  border: 1px solid var(--pb-walnut); font-size: 13px; }
.wn-pb-roomalert-alone { margin: 10px 16px 0; }
/* Drawing (Split, Extend): only the steps, so the bar covers little of the plan. */
.wn-pb-roombar-drawing .wn-pb-roombar-actions { display: none; }
.wn-pb-root .wn-pb-roomstep .wn-pb-btn { display: inline-block; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 20px; }
.wn-pb-root .wn-pb-roomstep .wn-pb-on { border-color: var(--pb-walnut); background: var(--pb-card); }
.wn-pb-extendshape polygon { fill: #EC7B63; fill-opacity: .18; stroke: #EC7B63; stroke-width: 3; vector-effect: non-scaling-stroke; }
.wn-pb-roombar-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.wn-pb-roombar-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.wn-pb-roomstep { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; }
.wn-pb-roomstep label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--pb-muted); }
.wn-pb-root .wn-pb-roomstep input, .wn-pb-root .wn-pb-roomstep select { min-height: 36px; }
.wn-pb-ov-none path, .wn-pb-ov-loading path { stroke-dasharray: 6 4; }
.wn-pb-ov-free { fill: none; stroke: #8A8580; stroke-width: 1.5; stroke-dasharray: 1 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wn-pb-chipname { pointer-events: none; }
.wn-pb-chipname rect { fill: #302B27; fill-opacity: .92; }
.wn-pb-chipname text { fill: #F2E8DA; font-family: var(--pb-font); font-weight: 600; }
.wn-pb-chipname-muted rect { fill: #6F6A64; fill-opacity: .75; }
.wn-pb-planlist { padding: 12px 16px; border-top: 1px solid var(--pb-line-soft); }
.wn-pb-planlist ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; }
.wn-pb-planlist-item, .wn-pb-planlist-free { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 8px; border-radius: 9px;
  color: var(--pb-text); text-decoration: none; }
.wn-pb-planlist-item:hover { background: var(--pb-raised); color: var(--pb-text); }
.wn-pb-planlist-free { color: var(--pb-muted); }
.wn-pb-swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; background: var(--ov); }
.wn-pb-unlinked { margin: 0; padding: 0 16px 14px; font-size: 12px; color: var(--pb-muted); }
.wn-pb-vers { list-style: none; margin: 0; padding: 0; }
.wn-pb-vers li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 10px 16px; font-size: 13px; }
.wn-pb-vers li + li { border-top: 1px solid var(--pb-line-soft); }
/* The version shown on the Floor overview (TASK-plan-versions-zones-cycle). */
.wn-pb-vers a[aria-current="true"] { font-weight: 600; }
.wn-pb-plan-drop { margin: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px;
  border: 1.5px dashed rgba(242,232,218,.28); border-radius: 10px; text-align: center; font-size: 13px; color: var(--pb-muted); cursor: pointer; }
.wn-pb-plan-drop strong { color: var(--pb-text); }
.wn-pb-plan-drop-big { min-height: 280px; }
.wn-pb-plan-drop.wn-pc-over { border-color: var(--pb-cyan); background: var(--pb-cyan-soft); }
.wn-pb-linkish { color: var(--pb-cyan); }
.wn-pb-card-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.wn-pb-floor-rename { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; }
.wn-pb-floor-rename .wn-pb-actions { margin: 0; }

/* The Space: tabs (Walnut underline, counts), the two cards, the summary, one table, the foot. */
.wn-pb-tabs { display: flex; gap: 4px; margin-top: 20px; border-bottom: 1px solid var(--pb-line); overflow-x: auto; scrollbar-width: none; }
.wn-pb-root .wn-pb-tabs button { flex: none; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 0; background: none; color: var(--pb-muted);
  font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.wn-pb-root .wn-pb-tabs button.wn-pb-tab-on { color: var(--pb-text); border-bottom-color: var(--pb-walnut); }
.wn-pb-count { margin-left: 6px; font-size: 11px; color: var(--pb-muted); background: rgba(242,232,218,.08); padding: 2px 6px; border-radius: 6px; }
.wn-pb-tab-body { padding-top: 0; }
.wn-pb-root button.wn-pb-tab-back { display: inline-block; margin: 12px 0 4px; }
.wn-pb-cmp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 20px; }
.wn-pb-cmp-card { background: var(--pb-card); border: 1px solid var(--pb-line); border-radius: 12px; padding: 14px 16px; display: flex;
  align-items: center; gap: 8px 12px; flex-wrap: wrap; min-width: 0; }
.wn-pb-cmp-text { flex: 1 1 180px; min-width: 0; }
.wn-pb-scan-pick { margin-top: 4px; max-width: 100%; }
.wn-pb-root .wn-pb-scan-pick select { max-width: 100%; }
.wn-pb-review-link { font-size: 12px; font-weight: 600; text-decoration: none; }
.wn-pb-phone-scan { display: none; }
.wn-pb-summary { display: flex; gap: 20px; flex-wrap: wrap; margin: 18px 0 10px; font-size: 13px; color: var(--pb-muted); }
.wn-pb-summary b { color: var(--pb-text); }
.wn-pb-coming { color: var(--pb-muted); font-style: italic; }
.wn-pb-tbl { border: 1px solid var(--pb-line); border-radius: 12px; overflow-x: auto; background: var(--pb-card); }
.wn-pb-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.wn-pb-cmp-table { min-width: 860px; }
.wn-pb-table th { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--pb-muted); text-align: left;
  padding: 10px 12px; border-bottom: 1px solid var(--pb-line); background: var(--pb-head); white-space: nowrap; }
.wn-pb-table tr.wn-pb-grp th { font-size: 12px; letter-spacing: .2px; text-transform: none; color: var(--pb-text); border-bottom-color: var(--pb-line-soft); }
.wn-pb-table td { padding: 10px 12px; border-bottom: 1px solid var(--pb-line-soft); vertical-align: middle; }
.wn-pb-table tbody tr:last-child td { border-bottom: 0; }
.wn-pb-table .wn-pb-sep { border-left: 1px solid rgba(242,232,218,.12); }
.wn-pb-table .wn-pb-flag { text-align: center; }
.wn-pb-all { display: inline-flex; align-items: center; gap: 6px; }
.wn-pb-fx { min-width: 220px; }
.wn-pb-fx-main { display: flex; align-items: center; gap: 10px; }
.wn-pb-fx-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wn-pb-nm { font-weight: 600; }
.wn-pb-pl { font-size: 12px; color: var(--pb-muted); }
.wn-pb-rename { width: 100%; max-width: 260px; }
.wn-pb-root .wn-pb-fx .wn-pb-rename { min-height: 36px; }
.wn-pb-wrong { display: block; font-style: normal; font-size: 12px; color: var(--pb-amber); }
.wn-pb-hint-inline { display: block; font-style: normal; font-size: 12px; color: var(--pb-muted); }
.wn-pb-table tr.wn-pb-flagged td { background: var(--pb-amber-bg); }
.wn-pb-table tr.wn-pb-new td { background: rgba(133,200,197,.04); }
.wn-pb-qty-cell { white-space: nowrap; }
.wn-pb-yes { color: var(--pb-cyan); font-size: 12px; font-weight: 600; white-space: nowrap; }
.wn-pb-miss { color: var(--pb-muted); font-size: 12px; }
.wn-pb-cond { font-size: 12px; font-weight: 600; }
.wn-pb-cond-good { color: var(--pb-text); }
.wn-pb-cond-existing { color: var(--pb-amber); }
.wn-pb-cond-new { color: var(--pb-coral); }
.wn-pb-flagpill { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.wn-pb-not-seen { color: var(--pb-muted); border: 1px dashed rgba(242,232,218,.30); }
.wn-pb-new-pill { color: var(--pb-cyan); background: var(--pb-cyan-soft); }
.wn-pb-scan-photo { display: block; width: 44px; height: 32px; border-radius: 6px; object-fit: cover; background: #4A433D; }
.wn-pb-photo { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; background: #4A433D; flex: none; }
.wn-pb-photo-failed { visibility: hidden; }
.wn-pb-nophoto { display: inline-flex; align-items: center; justify-content: center; color: var(--pb-muted); font-size: 12px; }
.wn-pb-add-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.wn-pb-add-fields > * { flex: 1 1 140px; }
.wn-pb-add-row input[name="qty"] { width: 72px; }
.wn-pb-lcards { display: none; }
.wn-pb-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 16px; }
.wn-pb-foot .wn-pb-actions { margin: 0; }
.wn-pb-savebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wn-pb-unsaved { font-size: 12px; color: var(--pb-muted); }
.wn-pb-confirm .wn-pb-unsaved { color: var(--pb-text); font-weight: 600; font-size: 13px; }
.wn-pb-legend.wn-pb-hint { padding: 0; margin: 10px 0 0; display: block; }

/* The Schematic: three equal panels, what changed, the Baseline's details. */
.wn-pb-schematic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
/* The Schematic tab (TASK-front-scan-record-rows): the floor plan beside one scanned sketch, its selector above it. */
.wn-pb-schematic.wn-pb-schematic-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wn-pb-sch-sketch .wn-pb-ph > div { flex: 1; min-width: 0; }
.wn-pb-root .wn-pb-switch.wn-pb-sketch-pick { display: flex; margin-top: 4px; }
.wn-pb-root .wn-pb-switch.wn-pb-sketch-pick select { width: 100%; max-width: 100%; }
.wn-pb-panel { background: var(--pb-card); border: 1px solid var(--pb-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.wn-pb-ph { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 12px 14px; }
.wn-pb-ph .wn-pb-actions { margin: 0; gap: 4px; }
.wn-pb-pv { flex: 1; min-height: 300px; background: var(--pb-well); padding: 10px; display: flex; flex-direction: column; justify-content: center; }
.wn-pb-pv .wn-pb-sketch { background: transparent; padding: 0; }
.wn-pb-pv .wn-fp-sketch { margin: 0; }
.wn-pb-pv .wn-fp-sketch > h3 { display: none; }
.wn-pb-pv .wn-fp-pair { grid-template-columns: minmax(0, 1fr); }
.wn-pb-pv .wn-pb-walls { display: none; }
.wn-pb-pf { margin: 0; padding: 10px 14px; font-size: 12px; color: var(--pb-muted); border-top: 1px solid var(--pb-line-soft); overflow-wrap: anywhere; }
.wn-pb-diff { list-style: none; margin: 16px 0 0; padding: 6px 0; background: var(--pb-card); border: 1px solid var(--pb-line); border-radius: 12px; }
.wn-pb-dr { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 13px; }
.wn-pb-dr + .wn-pb-dr { border-top: 1px solid var(--pb-line-soft); }
.wn-pb-w { flex: 1; min-width: 0; }
.wn-pb-pin { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.wn-pb-pin-ok { background: var(--pb-cyan); }
.wn-pb-pin-none { border: 1.5px dashed var(--pb-muted); }
.wn-pb-pin-existing { border: 2.5px solid var(--pb-amber); }
.wn-pb-pin-new { border: 2.5px solid var(--pb-coral); }
.wn-pb-sch-more { margin-top: 8px; }
.wn-pb-ceiling { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.wn-pb-ceiling label { display: flex; align-items: center; gap: 8px; }
.wn-pb-ceiling input { width: 6em; }
.wn-pb-ceiling .wn-pb-hint { flex: 1 0 100%; margin: 0; }
.wn-pb-root button.wn-pb-chip { min-height: 36px; padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.wn-pb-walls { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.wn-pb-wall { margin: 0; flex: none; width: 140px; }
.wn-pb-wall img, .wn-pb-wall .wn-pb-nophoto { display: flex; width: 140px; height: 80px; object-fit: cover; border-radius: 8px; background: #4A433D; }
.wn-pb-wall figcaption { font-size: 12px; margin-top: 3px; color: var(--pb-muted); }
.wn-pb-no-baseline { margin: 14px 0 0; }

/* Quantities and the row menu. */
.wn-pb-qty { display: inline-flex; align-items: center; gap: 2px; }
.wn-pb-qty { border: 1px solid var(--pb-line-strong); border-radius: 7px; }
.wn-pb-root .wn-pb-qty button { width: 32px; min-height: 32px; height: 32px; padding: 0; font-size: 16px; border: 0; background: none; color: var(--pb-muted); }
.wn-pb-qty output { min-width: 26px; text-align: center; font-weight: 700; }
.wn-pb-menu { position: relative; }
.wn-pb-menu summary { list-style: none; cursor: pointer; width: 36px; height: 36px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-weight: 700; }
.wn-pb-menu summary::-webkit-details-marker { display: none; }
.wn-pb-menu summary:hover, .wn-pb-menu[open] summary { background: var(--pb-soft); }
.wn-pb-menu-body { position: absolute; right: 0; top: 40px; z-index: 5; width: 230px; background: var(--pb-card); border: 1px solid var(--pb-line);
  border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 6px; }
.wn-pb-menu-body label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--pb-muted); }
.wn-pb-root .wn-pb-menu-body button[data-action="remove"] { color: var(--pb-error); }
.wn-pb-row-menu summary { width: 32px; height: 32px; }
/* Rename, Change type, Move, Delete (S2). */
.wn-pb-space-edit { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 12px; border: 1px solid var(--pb-line); border-radius: 10px; max-width: 460px; background: var(--pb-card); }
.wn-pb-space-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--pb-muted); }
.wn-pb-space-edit .wn-pb-hint, .wn-pb-space-edit .wn-pb-actions { margin: 0; }
.wn-pb-space-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.wn-pb-root .wn-pb-space-actions button { min-height: 36px; padding: 4px 12px; font-size: 13px; }
.wn-pb-space-edit { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--pb-line);
  border-radius: 10px; max-width: 460px; }
.wn-pb-space-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--pb-muted); }
.wn-pb-space-edit .wn-pb-hint, .wn-pb-space-edit .wn-pb-actions { margin: 0; }
.wn-pb-delete-confirm { margin: 0 0 12px; padding: 12px; border: 1px solid rgba(236,123,99,.4); border-radius: 10px; background: rgba(236,123,99,.08); max-width: 560px; }
.wn-pb-delete-confirm p { margin: 0 0 8px; }
.wn-pb-delete-scans { margin: 0 0 8px; padding-left: 18px; font-size: 14px; }
/* The approved version under a draft (S4): the draft waiting, a way to view it. */
.wn-pb-waiting { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; padding: 10px 12px;
  border-radius: 10px; background: var(--pb-raised); color: var(--pb-text); border: 1px solid var(--pb-walnut); font-size: 14px; }
.wn-pb-waiting span { flex: 1 1 240px; }
.wn-pb-waiting.wn-pb-waiting-draft { background: var(--pb-raised); border-color: var(--pb-line-strong); }

/* A list to start from (S5). */
/* A list to start from (S5). */
.wn-pb-list-start { margin: 0 0 14px; padding: 12px; border: 1px dashed var(--pb-indigo); border-radius: 12px; background: var(--pb-indigo-soft); }
.wn-pb-list-start p { margin: 0 0 8px; }
.wn-pb-list-copy { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.wn-pb-list-copy label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--pb-muted); flex: 1 1 200px; min-width: 0; }
/* The history. */
/* The history: each version with its status, who and when; one opened read-only below. */
.wn-pb-history { list-style: none; margin: 0 0 8px; padding: 0; }
.wn-pb-history-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center;
  padding: 8px 6px; border-bottom: 1px solid var(--pb-line); }
.wn-pb-history-row.wn-pb-current { background: var(--pb-raised); }
/* Version | status, when and details stacked | the button: the same on a phone and a desktop. */
.wn-pb-history-version { grid-column: 1; grid-row: 1 / span 3; font-weight: 700; }
.wn-pb-history-row .wn-pb-state { grid-column: 2; justify-self: start; }
.wn-pb-history-when { grid-column: 2; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.wn-pb-history-meta { grid-column: 2; font-size: 12px; color: var(--pb-muted); min-width: 0; }
.wn-pb-history-row .wn-pb-link { grid-column: 3; grid-row: 1 / span 3; }
.wn-pb-history-view { margin-top: 12px; padding: 12px; border: 1px solid var(--pb-line); border-radius: 12px; }
.wn-pb-history-view .wn-pb-sketch { max-width: 420px; margin: 8px 0; }
/* The sketches (the scan's, WasNowWallCarousel) on their dark background. */
/* The sketch is the scan's (WasNowWallCarousel), on its dark background. */
.wn-pb-sketch { background: var(--pb-sketch); border-radius: 12px; padding: 8px; color: #fff; }
.wn-sketch-fineprint { margin: 4px 0 0; color: var(--pb-muted); font-size: 11px; text-align: center; }
.wn-pb-sketch svg { display: block; width: 100%; max-height: 60vh; margin: auto; }
.wn-pb-sketch.wn-pb-editing svg { touch-action: none; }
.wn-pb-sketch polygon { fill: #22c55e22; stroke: #a7f3d0; stroke-width: 2; }
.wn-pb-sketch .wn-sketch-entrance { stroke: #fbbf24; stroke-width: 4; }
.wn-pb-sketch .wn-sketch-chip { fill: #17232e; stroke: #64748b; stroke-width: 1; }
.wn-pb-sketch text { fill: #fff; font: 13px system-ui, sans-serif; }
.wn-pb-sketch .wn-room-sketch-note, .wn-pb-sketch .wn-room-sketch-legend { color: #d1d5db; font-size: 12px; text-align: center; }
.wn-pb-sketch .wn-sketch-handle { cursor: grab; transform: scale(var(--wn-sketch-inverse-scale, 1)); transform-box: fill-box; transform-origin: center; }
.wn-pb-sketch .wn-sketch-hit { fill: transparent; pointer-events: all; }
.wn-pb-sketch .wn-sketch-visible { fill: #a7f3d0; stroke: #0f766e; stroke-width: 1; pointer-events: none; }
.wn-pb-sketch .wn-sketch-wall-handle .wn-sketch-visible { fill: #67e8f9; }
.wn-pb-sketch .wn-sketch-angle-badge { fill: #86efac; font-weight: 700; paint-order: stroke; stroke: #071018; stroke-width: 3; }
/* The crop (WasNowPlanCrop). */
.wn-pc h2 { margin: 0 0 6px; font-size: 22px; }
.wn-pc-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 200px; padding: 20px;
  border: 2px dashed var(--pb-line); border-radius: 14px; background: var(--pb-soft); text-align: center; cursor: pointer; }
.wn-pc-drop.wn-pc-over { border-color: var(--pb-indigo); background: var(--pb-indigo-soft); }
.wn-pc-open { padding: 10px 16px; border-radius: 8px; background: var(--pb-walnut-deep); color: var(--pb-text); font-weight: 600; }
.wn-pc-hint, .wn-pc-busy { font-size: 13px; color: var(--pb-muted); }
.wn-pc-error { color: var(--pb-error); font-weight: 700; }
.wn-pc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0; }
.wn-pc-tools label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.wn-pc-straighten input { width: 160px; }
.wn-pc-stage { width: 100%; overflow: hidden; border-radius: 10px; background: var(--pb-well); }
/* The crop fits the window (TASK-space-builder-fixes): at most the box's width and 60% of the window's height, so the
   tools above it and Save below it stay in view. The pointer maps through the canvas's box, so any size works. */
.wn-pc-stage { display: flex; justify-content: center; }
.wn-pc-canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: min(60vh, calc(100vh - 280px));
  touch-action: none; cursor: crosshair; }
.wn-pc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
/* Floor plans (TASK-baseline-floorplans): the reader and links panel; plans stay on paper white. */
.wn-pb-empty { color: var(--pb-muted); }
.wn-pb-hint { color: var(--pb-muted); font-size: 13px; }

/* Floor plans (TASK-baseline-floorplans): cards, the plan opened large with its rooms and the
   Entrance dots, the links; the room's sketch from the plan with its wall kinds and a key. */
.wn-fp { margin: 0 0 22px; padding: 16px; border: 1px solid var(--pb-line); border-radius: 12px; background: var(--pb-card); }
.wn-fp h2 { margin: 0 0 10px; font-size: 20px; }
.wn-fp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.wn-fp-card { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--pb-line); border-radius: 10px; background: var(--pb-soft); }
.wn-fp-card-open { border-color: var(--pb-indigo); box-shadow: 0 0 0 1px var(--pb-indigo); }
.wn-fp-thumb { flex: 0 0 64px; width: 64px; height: 84px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--pb-line); }
.wn-fp-card-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wn-fp-status { font-size: 14px; }
.wn-fp-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wn-fp-failed { color: var(--pb-error); }
.wn-fp-done { color: var(--pb-ok); }
.wn-fp-reading { color: var(--pb-muted); }
.wn-fp-dots i { display: inline-block; width: 5px; height: 5px; margin-left: 3px; border-radius: 50%; background: #85C8C5;
  animation: wn-fp-dot 1.2s ease-in-out infinite; }
.wn-fp-dots i:nth-child(2) { animation-delay: .2s; } .wn-fp-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes wn-fp-dot { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .wn-fp-dots i { animation: none; } }
.wn-fp-open { margin: 14px 0; }
.wn-fp-open header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wn-fp-open h3 { margin: 0 auto 0 0; }
.wn-fp-figure { position: relative; margin: 10px 0; max-width: 520px; border: 1px solid var(--pb-line); border-radius: 8px; overflow: hidden; background: #fff; }
.wn-fp-image { display: block; width: 100%; height: auto; }
.wn-fp-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.wn-fp-room { fill: rgba(48,43,39,.08); stroke: #302B27; stroke-width: 1.5; }
.wn-fp-room-linked { fill: rgba(133,200,197,.22); }
.wn-fp-room-focus { fill: rgba(133,200,197,.38); stroke-width: 3; }
.wn-fp-room-name { fill: #302B27; font-family: Arial, Helvetica, sans-serif; font-weight: 700; paint-order: stroke;
  stroke: #fff; stroke-width: 3px; }
.wn-fp-dot circle { fill: #fff; stroke: #302B27; stroke-width: 2; }
.wn-fp-dot text { fill: #302B27; font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
.wn-fp-dot-on circle { fill: #E7AD52; stroke: #302B27; }
.wn-fp-dot-on text { fill: #302B27; }
.wn-fp-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wn-fp-link { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; padding: 8px; border: 1px solid var(--pb-line); border-radius: 8px; }
.wn-fp-link-focus { border-color: var(--pb-indigo); }
.wn-fp-link label, .wn-fp-upload label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--pb-muted); }
.wn-fp-link select { max-width: 100%; }
.wn-fp-root button.wn-fp-room-pick { flex: 1 1 200px; border-radius: 8px; text-align: left; }
.wn-fp-save { margin: 10px 0; }
.wn-fp-upload { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 14px; }
.wn-fp-upload h3 { flex-basis: 100%; margin: 0; }
.wn-fp-sketch { margin: 18px 0; }
.wn-fp-sketch-drawing { max-width: 420px; }
.wn-fp-sketch-drawing svg { display: block; width: 100%; height: auto; border: 1px solid var(--pb-line); border-radius: 8px; background: #fff; }
.wn-fp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 8px 0 0; font-size: 13px; color: var(--pb-muted); }
.wn-fp-legend li { display: flex; align-items: center; gap: 6px; }
.wn-fp-legend svg { width: 28px; height: 10px; }
.wn-fp-key { stroke: #1f2328; stroke-width: 4; }
.wn-fp-key-half_wall { stroke-width: 2; stroke-dasharray: 5 3; }
.wn-fp-key-rail { stroke-width: 2.4; stroke-dasharray: 0 5; stroke-linecap: round; }
.wn-fp-key-cabinets { stroke: #A87549; stroke-width: 6; }
/* The inventory list (TASK-inventory-list), in its tab. */
/* The inventory list (TASK-inventory-list), in its tab: one line per row on a wide screen, stacked on a phone. */
.wn-il h2 { margin: 0 0 4px; font-size: 18px; }
.wn-il .wn-pb-hint { margin: 0 0 8px; }
.wn-il-row { display: grid; grid-template-columns: 110px minmax(130px, 2fr) 136px minmax(130px, 2fr) auto auto 44px;
  gap: 8px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--pb-line); }
.wn-il-row label, .wn-il-row .wn-il-qty { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--pb-muted); min-width: 0; }
.wn-il-row .wn-il-closeup { flex-direction: row; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; color: var(--pb-text); }
.wn-pb-root .wn-il-row button.wn-il-remove { width: 44px; padding: 0; border-color: transparent; background: none;
  color: var(--pb-error); font-size: 22px; }
.wn-il-imports { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pb-line); }
.wn-il-file { display: flex; flex-direction: column; gap: 4px; flex: 1 1 240px; font-weight: 700; font-size: 14px; }
.wn-il-file input { font-weight: 400; }
.wn-il-imports .wn-pb-hint { flex: 1 0 100%; margin: 0; }
.wn-il-preview-title { margin-top: 4px; }
.wn-il-group { margin: 12px 0; padding: 10px; border: 1px solid var(--pb-line); border-radius: 10px; }
.wn-il-group.wn-il-unmatched { border-color: var(--pb-amber); background: var(--pb-amber-bg); }
.wn-il-group h3 { margin: 0 0 6px; font-size: 16px; }
.wn-il-count { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--pb-raised); font-size: 12px; text-align: center; }
.wn-il-pick { margin: 0 0 6px; color: var(--pb-amber); font-weight: 700; font-size: 13px; }
.wn-il-space { display: flex; flex-direction: column; gap: 3px; max-width: 320px; font-size: 12px; color: var(--pb-muted); }
/* The Entrance door row (checked last) and the list's copy and door suggestion (TASK-baseline-page review 2). */
.wn-il-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 4px 0 10px; }
.wn-il-copy .wn-pb-hint { margin: 0; flex: 1 1 260px; }
.wn-il-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0; padding: 10px 12px;
  border: 1px dashed var(--pb-indigo); border-radius: 10px; background: var(--pb-indigo-soft); }
.wn-il-suggest p { margin: 0; flex: 1 1 260px; font-size: 14px; }

/* Floor-plan reader v2 (TASK-floorplan-reader-v2 part B): the plan with Terra's rooms beside the
   picked room's sketch; every wall its own element, lit green (#22c55e, the scanner's recognition
   green) on hover or pick in both; the rooms' actions; "Type one length". */
.wn-fp-v2-views { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.wn-fp-v2-views .wn-fp-figure { flex: 1 1 300px; margin: 0; }
.wn-fp-side { flex: 1 1 280px; max-width: 420px; }
.wn-fp-rooms { pointer-events: auto; }
.wn-fp-rooms .wn-fp-room { pointer-events: none; }
.wn-fp-room-confirmed { fill: rgba(34,197,94,.10); }
.wn-fp-wall { stroke: rgba(48,43,39,.55); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.wn-fp-hit { stroke: transparent; stroke-width: var(--wn-fp-hit, 14px); stroke-linecap: round; pointer-events: stroke; cursor: pointer; }
.wn-fp-wall.wn-wall-lit, .wn-fp-wall.wn-wall-picked { stroke: #22c55e; stroke-width: 5; }
.wn-fp-hit.wn-wall-lit, .wn-fp-hit.wn-wall-picked { stroke: rgba(34,197,94,.22); }
.wn-fp-splitting .wn-fp-rooms { cursor: crosshair; }
.wn-fp-split-point { fill: #E7AD52; stroke: #302B27; stroke-width: 2; }
.wn-fp-room-sketch { margin: 0; }
.wn-fp-room-sketch figcaption { font-weight: 700; margin-bottom: 6px; }
.wn-fp-room-sketch svg, .wn-fp-pair svg { display: block; width: 100%; height: auto; border: 1px solid var(--pb-line); border-radius: 8px; background: #fff; }
.wn-plan-hit { stroke: transparent; stroke-width: 16; stroke-linecap: round; pointer-events: stroke; cursor: pointer; }
.wn-fp-room-sketch .wn-plan-wall.wn-wall-lit, .wn-fp-room-sketch .wn-plan-wall.wn-wall-picked,
.wn-fp-sketch-drawing .wn-plan-wall.wn-wall-lit, .wn-fp-sketch-drawing .wn-plan-wall.wn-wall-picked { stroke: #22c55e; }
.wn-plan-hit.wn-wall-lit, .wn-plan-hit.wn-wall-picked { stroke: rgba(34,197,94,.22); }
.wn-fp-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; max-width: 860px; }
.wn-fp-pair .wn-fp-sketch-drawing { max-width: none; }
.wn-fp-room-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1 1 100%; }
.wn-fp-room-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wn-fp-confirmed { color: var(--pb-ok); font-weight: 700; }
.wn-fp-rename { flex: 1 1 160px; }
.wn-fp-scale { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 10px 0; padding: 10px; border-radius: 8px;
  background: var(--pb-amber-bg); }
.wn-fp-scale p { flex-basis: 100%; margin: 0; color: var(--pb-amber); font-weight: 700; }
.wn-fp-scale label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--pb-muted); }
/* At 360 px a room's long names (an open floor's, an Entrance's label) wrap or shrink, never widen the page. */
.wn-fp-link label { flex: 1 1 200px; min-width: 0; max-width: 100%; }
.wn-fp-link select, .wn-fp-room-actions select { width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.wn-fp-room-actions select { flex: 1 1 140px; width: auto; }
.wn-fp-root button.wn-fp-room-pick { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.wn-fp-room-sketch figcaption { overflow-wrap: anywhere; }
.wn-fp-links { grid-template-columns: minmax(0, 1fr); }
.wn-fp-link, .wn-fp-room-line, .wn-fp-room-actions { min-width: 0; }
.wn-fp-scale > * { min-width: 0; max-width: 100%; }
.wn-pb-add-block { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding: 12px 14px;
  background: var(--pb-card); border: 1px solid var(--pb-line); border-radius: 12px; }
.wn-pb-add-block input[name="name"], .wn-pb-add-block input[name="class"] { flex: 2 1 200px; }
.wn-pb-add-block select { flex: 1 1 160px; }
.wn-pb-add-qty { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pb-muted); }
/* Quantities: − [n] + (WasNowQtyStepper). */
.wn-pb-chk { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; }
.wn-pb-add-block .wn-pb-actions { margin: 0; }

@media (max-width: 860px) {
  /* Phone (360–430 px): the bar (menu, the property switcher, the plan icon); the floors as a row of equal buttons;
     the Space as one picker button; tabs that scroll; each line a card; Save draft and Approve at the bottom. */
  .wn-pb-top { padding: 0 6px; gap: 6px; }
  .wn-pb-logo { display: none; }
  .wn-pb-top-menu { display: block; }
  .wn-pb-top-menu summary { width: 44px; height: 44px; }
  .wn-pb-crumb-link, .wn-pb-crumb-sep, .wn-pb-crumb-here, .wn-pb-top-links, .wn-pb-avatar { display: none; }
  .wn-pb-root .wn-pb-top-plan { display: inline-grid; width: 44px; height: 44px; border: 0; color: var(--pb-text); }
  .wn-pb-root .wn-pb-switch select { height: 36px; min-height: 36px; font-size: 14px; max-width: 230px; }
  .wn-pb-prop { padding: 14px 16px 12px; gap: 10px 18px; }
  .wn-pb-prop-name { font-size: 22px; }
  .wn-pb-stats { gap: 18px; }
  .wn-pb-stat-n { font-size: 15px; }
  .wn-pb-body { display: block; }
  .wn-pb-rail { max-width: none; min-width: 0; border-right: 0; padding: 12px 16px 0; gap: 12px; }
  .wn-pb-rail-floors .wn-pb-sec, .wn-pb-addf, .wn-pb-rail-spaces .wn-pb-sec { display: none; }
  .wn-pb-floor-stack { flex-direction: row; gap: 6px; }
  .wn-pb-floor-stack li { flex: 1 1 0; min-width: 0; }
  .wn-pb-phone-only { display: block; }
  .wn-pb-root button.wn-pb-floor { justify-content: center; gap: 6px; padding: 0 6px; font-weight: 600; color: var(--pb-muted); }
  .wn-pb-root button.wn-pb-floor.wn-pb-current { color: var(--pb-text); box-shadow: none; }
  .wn-pb-floor-count { display: none; }
  .wn-pb-lv { width: auto; }
  .wn-pb-root button.wn-pb-space-picker { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 10px; padding: 0 14px;
    border-radius: 12px; background: var(--pb-card); border: 1px solid var(--pb-line); text-align: left; }
  .wn-pb-space-picker .wn-pb-room-name { font-size: 16px; font-weight: 700; }
  .wn-pb-space-list { display: none; margin-top: 6px; padding: 4px; background: var(--pb-card); border: 1px solid var(--pb-line); border-radius: 12px; }
  .wn-pb-space-list.wn-pb-open { display: flex; }
  .wn-pb-main { padding: 12px 16px 112px; }
  .wn-pb-shead { gap: 8px 10px; }
  /* The picker above names the Space or the floor. */
  .wn-pb-shead h2 { display: none; }
  /* The copy and template panels keep their title on a phone (TASK-template-picker). */
  .wn-sb-copy .wn-pb-shead h2, .wn-rt .wn-pb-shead h2 { display: block; font-size: 19px; }
  .wn-pb-tabs { margin: 12px -16px 0; padding: 0 8px; }
  .wn-pb-root .wn-pb-tabs button { padding: 12px 10px; }
  .wn-pb-cmp { display: none; }
  .wn-pb-phone-scan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0 0;
    font-size: 12px; color: var(--pb-muted); }
  .wn-pb-root .wn-pb-phone-scan .wn-pb-switch select { font-size: 12px; max-width: 210px; }
  .wn-pb-summary { gap: 12px; margin: 12px 0 8px; font-size: 12px; }
  .wn-pb-tbl { display: none; }
  .wn-pb-lcards { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
  .wn-pb-lcard { background: var(--pb-card); border: 1px solid var(--pb-line); border-radius: 12px; padding: 12px 14px; display: flex;
    flex-direction: column; gap: 6px; }
  .wn-pb-lcard.wn-pb-new { background: #2F2C29; }
  .wn-pb-lcard.wn-pb-flagged { border-color: rgba(231,173,82,.5); }
  .wn-pb-lcard-top { display: flex; align-items: center; gap: 10px; }
  .wn-pb-lcard .wn-pb-photo { width: 44px; height: 44px; border-radius: 8px; }
  .wn-pb-lrow { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 13px; }
  .wn-pb-lrow-v { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
  .wn-pb-foot { margin-top: 12px; }
  .wn-pb-savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px max(14px, env(safe-area-inset-bottom));
    background: var(--pb-card); border-top: 1px solid var(--pb-line); }
  .wn-pb-root .wn-pb-savebar .wn-pb-btn { flex: 1 1 0; min-height: 48px; }
  .wn-pb-savebar .wn-pb-unsaved { flex: 1 0 100%; }
  .wn-pb-schematic { grid-template-columns: minmax(0, 1fr); }
  .wn-pb-schematic.wn-pb-schematic-two { grid-template-columns: minmax(0, 1fr); }
  .wn-pb-pv { min-height: 220px; }
  .wn-pb-plan-drop-big { min-height: 180px; }
  .wn-pb-fgrid { margin-top: 14px; }
  .wn-pb-legend { gap: 10px 14px; }
  .wn-il-row { grid-template-columns: minmax(0, 1fr) 92px 44px; }
  .wn-il-row .wn-il-kind { grid-column: 1 / 3; grid-row: 1; }
  .wn-il-row .wn-il-remove { grid-column: 3; grid-row: 1; }
  .wn-il-row .wn-il-name { grid-column: 1 / 2; }
  .wn-il-row .wn-il-qty { grid-column: 2 / 4; }
  .wn-il-row .wn-il-note, .wn-il-row .wn-il-closeup { grid-column: 1 / -1; }
}

/* Floors read bottom up (TASK-plans-bottom-up): Read waiting on the floor below; Confirm floor / Confirmed with Change;
   a stairway shared with the floor below, named "(from L1)", not editable here. */
.wn-pb-plan-waiting, .wn-fp-waiting { color: var(--pb-amber); font-size: 12px; font-weight: 600; align-self: center; }
.wn-pb-floor-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--pb-line-strong); background: var(--pb-raised); }
.wn-pb-floor-confirm .wn-pb-hint { flex: 1 1 220px; margin: 0; }
.wn-pb-floor-confirmed { border-color: var(--pb-cyan); background: var(--pb-cyan-soft); }
.wn-pb-chip-ok { color: var(--pb-cyan); border-color: var(--pb-cyan); background: transparent; font-weight: 600; }
.wn-pb-ov-shared path { fill-opacity: .18; stroke-dasharray: 2 4; }
.wn-pb-planlist-shared .wn-pb-room-name { font-style: italic; }

/* Space builder (TASK-space-builder-p1): the floor's Spaces beside the generic names (one column on a phone); the Add
   Space sheet; a Space's list by kind before any Baseline; Defects; Scan Record and the Set as Baseline sheet. */
.wn-sb-grid { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; align-items: flex-start; }
.wn-sb-entrance { margin-top: 16px; }
.wn-sb-entrance .wn-pb-pad { display: grid; gap: 8px; }
.wn-sb-entrance label { display: grid; gap: 6px; color: var(--pb-text); font-weight: 600; }
.wn-sb-entrance select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--pb-line-strong);
  border-radius: 8px; background: var(--pb-card); color: var(--pb-text); font: inherit; }
.wn-sb-entrance-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0;
  border-top: 1px solid var(--pb-line-strong); font-size: 13px; }
.wn-sb-entrance-row button { margin-left: auto; }
.wn-sb-door-mark { color: var(--pb-cyan); }
.wn-sb-door-marker { fill: var(--pb-card); stroke: var(--pb-walnut); stroke-width: 3; }
.wn-sb-door-marker.wn-sb-door-main { fill: var(--pb-cyan); }
/* Outside doors by hand (TASK-outside-doors-by-hand): the tap where a door is being added; the confirm row. */
.wn-sb-door-marker.wn-sb-door-new { fill: var(--pb-walnut-deep); stroke: var(--pb-text); }
.wn-sb-door-confirm { flex-direction: column; align-items: flex-start; }
.wn-sb-door-confirm .wn-pb-m { margin: 0; }
.wn-sb-entrance-row.wn-sb-door-confirm button { margin-left: 0; }
.wn-pb-ov-svg a[data-action="main-entrance-door"] text { fill: var(--pb-text); stroke: var(--pb-card);
  stroke-width: 3; paint-order: stroke; font-size: 13px; font-weight: 700; }
.wn-sb-col { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.wn-sb-spaces { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.wn-sb-spaces .wn-pb-empty { padding: 10px; }
.wn-sb-name-list { list-style: none; margin: 0; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.wn-pb-root button.wn-sb-name { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  background: var(--pb-raised); border: 1px solid var(--pb-line-strong); color: var(--pb-text); font-weight: 500; }
.wn-pb-root button.wn-sb-name.wn-sb-on { border-color: var(--pb-cyan); background: var(--pb-cyan-soft); }
/* The count on this floor (owner, 2026-11-14): a light filled circle, only above zero. Cyan Light with Umber text (the
   page doesn't load WasNowUI.css, so its own tokens stand in: --pb-cyan-light, --pb-card are those colours). */
.wn-sb-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 600; text-align: center;
  line-height: 22px; color: var(--wn-umber, var(--pb-card)); background: var(--wn-cyan-light, var(--pb-cyan-light)); }
/* Or type a name. */
.wn-sb-custom-row { padding: 0 16px 12px; }
.wn-sb-custom { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--pb-muted); }
.wn-sb-custom input { min-height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--pb-line-strong);
  background: var(--pb-card); color: var(--pb-text); font: inherit; font-size: 14px; }
.wn-sb-custom-hint { margin: 6px 0 0; }
/* Delete this floor's Spaces: which reading next (TASK-floor-redo addition). */
.wn-sb-reuse { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.wn-sb-reuse label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.wn-sb-adder { display: flex; flex-direction: column; gap: 10px; margin: 0 16px 16px; padding-top: 12px; border-top: 1px solid var(--pb-line); }
.wn-sb-adder label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--pb-muted); }
.wn-sb-adder .wn-pb-hint, .wn-sb-adder .wn-pb-k { margin: 0; }
.wn-sb-warn { color: var(--pb-amber); }
.wn-sb-lines, .wn-sb-defects, .wn-sb-readlist, .wn-sb-sheetlist, .wn-sb-scanlist { list-style: none; margin: 0; padding: 0; display: flex;
  flex-direction: column; gap: 6px; }
.wn-sb-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 6px 10px; border-radius: 10px;
  background: var(--pb-card); border: 1px solid var(--pb-line); }
.wn-sb-line-name { flex: 1 1 180px; min-width: 0; }
.wn-sb-line-name input { width: 100%; }
.wn-sb-line-qty { flex: none; }
.wn-pb-root .wn-sb-remove { width: 44px; height: 44px; font-size: 18px; color: var(--pb-muted); }
.wn-sb-defect { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--pb-card);
  border: 1px solid var(--pb-line); border-left: 3px solid var(--pb-amber); }
.wn-sb-defect .wn-pb-fx-text { flex: 1; min-width: 0; }
.wn-sb-scanbody { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 16px; }
.wn-sb-sketch { flex: 1 1 240px; min-width: 0; max-width: 360px; }
.wn-sb-scanlists { flex: 2 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.wn-sb-scanlist-part .wn-pb-subhead { margin: 0 0 6px; }
.wn-sb-readlist li, .wn-sb-sheetlist li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.wn-sb-readlist .wn-pb-nm, .wn-sb-sheetlist .wn-pb-nm { flex: 1; min-width: 0; }
.wn-sb-qty { color: var(--pb-muted); white-space: nowrap; }
.wn-sb-scans { margin-top: 16px; }
.wn-sb-scanlist { padding: 6px; }
.wn-sb-scanline { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 10px; }
/* A line opened in place (TASK-front-scan-record-rows): its details under it, the full width. */
.wn-sb-scanline.wn-sb-open { flex-wrap: wrap; }
.wn-sb-scanopen { flex: 1 0 100%; min-width: 0; padding: 8px 4px 12px; }
.wn-sb-openactions { margin: 0 0 10px; }
.wn-sb-counts { color: var(--pb-text); }
.wn-sb-scanline.wn-pb-current { background: var(--pb-raised); box-shadow: inset 3px 0 0 var(--pb-walnut); }
.wn-pb-root button.wn-sb-scanpick { flex: 1; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; gap: 2px; padding: 4px 8px; border: 0; background: none; color: var(--pb-text); text-align: left; font-weight: 400; }
.wn-sb-when { font-weight: 600; font-size: 13px; }
.wn-sb-basetag { flex: none; }
.wn-sb-sheet { margin-bottom: 16px; border-color: var(--pb-walnut); }
.wn-sb-sheet .wn-pb-subhead { margin: 14px 0 6px; }
.wn-sb-sheet .wn-pb-actions { margin-top: 14px; }
.wn-sb-schematic { padding: 48px 16px; text-align: center; border: 1px dashed var(--pb-line-strong); border-radius: 12px; margin-top: 16px; }
@media (max-width: 860px) {
  .wn-sb-grid { margin-top: 12px; }
  .wn-sb-scanbody { padding: 12px; }
  .wn-sb-sketch { max-width: none; }
}

/* Create Spaces from floor plans (TASK-space-builder-p1, the owner's design): the pop-up over the page, one row per
   floor (thumbnail, step, Upload / Replace), Create Spaces; a floor's plan thumbnail in the rail; the Schematic's plan. */
.wn-sb-popup { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding: 24px 16px;
  overflow-y: auto; background: var(--pb-bg); }
.wn-sb-popup[hidden] { display: none; }
body.wn-sb-popup-open { overflow: hidden; }
.wn-sb-popup-box { width: 100%; max-width: 1100px; display: flex; flex-direction: column; gap: 16px; }
.wn-sb-popup-head { position: sticky; top: -24px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; background: var(--pb-bg); border-bottom: 1px solid var(--pb-line); }
.wn-sb-popup-head h2 { margin: 0; font-size: 20px; }
.wn-sb-prows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wn-sb-prow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--pb-card);
  border: 1px solid var(--pb-line); }
.wn-sb-pthumb { width: 64px; height: 48px; flex: none; object-fit: cover; border-radius: 8px; background: var(--pb-text); }
.wn-sb-pthumb-none { background: var(--pb-raised); border: 1px dashed var(--pb-line-strong); }
.wn-sb-prow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wn-sb-pstep { font-size: 12px; color: var(--pb-muted); }
.wn-sb-pstep-reading, .wn-sb-pstep-creating { color: var(--pb-cyan); }
.wn-sb-pstep-done { color: var(--pb-cyan); font-weight: 600; }
.wn-sb-pstep-failed { color: var(--pb-coral); font-weight: 600; }
.wn-pb-root .wn-sb-upload { flex: none; cursor: pointer; }
.wn-sb-pfoot { display: flex; flex-direction: column; gap: 10px; }
.wn-sb-pfoot-line { margin: 0; color: var(--pb-muted); }
.wn-sb-pdone { color: var(--pb-text); font-weight: 600; }
.wn-sb-crop-host { min-height: 320px; }
.wn-pb-floor-stack li:not(.wn-pb-phone-only) { display: flex; align-items: center; gap: 6px; }
.wn-pb-floor-stack li > button.wn-pb-floor { flex: 1; min-width: 0; }
.wn-pb-root button.wn-sb-thumb { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--pb-line-strong); background: var(--pb-text); }
.wn-sb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wn-pb-root .wn-sb-readplans { width: 100%; margin-top: 8px; }
.wn-sb-plan { margin-top: 16px; max-width: 640px; border-radius: 12px; overflow: hidden; }
.wn-sb-plan .wn-pb-plan-zoom { max-height: 70vh; }
.wn-sb-perror { font-size: 12px; color: var(--pb-coral); }
.wn-sb-pnames { font-size: 12px; color: var(--pb-text); overflow-wrap: anywhere; }
.wn-sb-poff { color: var(--pb-coral); }
/* A plan's full view (TASK-space-builder-fixes): over the page, the image within the window, Close always in view. */
.wn-sb-full { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: var(--pb-bg); }
.wn-sb-full-box { width: 100%; max-width: 1100px; max-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.wn-sb-full-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wn-sb-full-head h2 { margin: 0; font-size: 20px; }
.wn-sb-full-img { display: block; margin: 0 auto; max-width: 100%; max-height: 60vh; object-fit: contain; border-radius: 10px;
  background: var(--pb-text); }
/* The floor's view (TASK-floor-view-schematic): the zones over the whole plan, the box exactly the image's, so the
   drawing (same aspect, viewBox in the image's pixels) lies on it; every zone filled, a thin edge, no dashes. */
.wn-sb-full-figure { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.wn-sb-full-figure .wn-sb-full-img { border-radius: 0; }
.wn-sb-full-figure .wn-pb-ov path { fill-opacity: .35; stroke-width: 1; stroke-dasharray: none; }
.wn-sb-full-figure .wn-pb-ov:hover path, .wn-sb-full-figure .wn-pb-ov:focus-visible path { fill-opacity: .55; }
.wn-sb-full-hint { text-align: center; margin: 0; }
/* Merge and split on the floor view (TASK-merge-split-spaces): a zone with no Space grey; the selection; the bar. */
.wn-sb-full-figure .wn-pb-ov-nospace path { fill: var(--pb-muted); stroke: var(--pb-muted); fill-opacity: .25; }
.wn-sb-full-figure g.wn-pb-ov-nospace { pointer-events: none; }
.wn-sb-full-figure .wn-pb-ov-on path { fill-opacity: .6; stroke-width: 3; }
.wn-sb-fvbar { display: flex; flex-direction: column; gap: 8px; max-width: 640px; width: 100%; margin: 0 auto; }
/* The view scrolls when its bar is long (naming a new part on a phone); the plan shrinks while naming. */
.wn-sb-full { align-items: flex-start; overflow-y: auto; }
.wn-sb-full > .wn-sb-full-box { margin: auto 0; max-height: none; }
.wn-sb-full-naming .wn-sb-full-img { max-height: 35vh; }
.wn-sb-fvbar .wn-pb-m { margin: 0; }
.wn-sb-fvname { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.wn-sb-fvname input { min-height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--pb-line-strong);
  background: var(--pb-card); color: var(--pb-text); font: inherit; }
.wn-sb-plansoff { margin: 6px 0 0; }
/* Delete all Spaces (TASK-delete-all-spaces): the confirm above the floor. */
.wn-sb-delall { margin-bottom: 16px; border-color: var(--pb-coral); }
.wn-sb-delall .wn-pb-pad > * + * { margin-top: 10px; }
/* Copy from another property (TASK-copy-spaces): the sources, then the floors and Spaces it makes. */
.wn-sb-copy-list, .wn-sb-copy-floors { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wn-pb-root button.wn-sb-copy-source { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--pb-line); background: var(--pb-card); color: var(--pb-text); text-align: left; cursor: pointer; }
.wn-pb-root button.wn-sb-copy-source:hover { border-color: var(--pb-walnut); }
.wn-sb-tpls { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.wn-sb-tpl { padding: 14px; border-radius: 12px; border: 1px solid var(--pb-line); background: var(--pb-raised); }
.wn-sb-tpl .wn-sb-copy-floors { margin: 8px 0; }
.wn-sb-tpl-types { margin-top: 12px; }
.wn-sb-copy-floors li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--pb-card);
  border: 1px solid var(--pb-line); }
/* The Schematic: the whole plan, uncropped, at most the tab's width and 70% of the window's height (the box exactly
   the image's, so the drawing lies on it); only this Space's zone. */
.wn-sb-plan-whole { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.wn-sb-plan-whole-img { display: block; width: auto; height: auto; max-width: 100%; max-height: 70vh; }
.wn-sb-plan-whole .wn-pb-ov path { stroke-width: 1; stroke-dasharray: none; fill-opacity: .4; }
@media (max-width: 860px) {
  /* A phone: the crop's tools wrap to two rows, so the canvas leaves more room for them and Save. */
  .wn-pc-canvas { max-height: min(60vh, calc(100vh - 400px)); }
  .wn-sb-popup { padding: 16px 12px; }
  .wn-sb-popup-head { top: -16px; }
  .wn-sb-thumb, .wn-pb-root .wn-sb-readplans, .wn-sb-rail-shortcuts { display: none; }
}

/* The inspection route (TASK-inspection-route §2): a section per floor, numbered cards, drag handles, ↑ / ↓. Amber only
   for the warning, Cyan only for Save and focus. */
.wn-rt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wn-rt-sub { margin: 0; color: var(--pb-muted); font-size: 14px; }
.wn-rt-floors { display: flex; flex-direction: column; gap: 14px; }
.wn-rt-floor { border: 1px solid var(--pb-line); border-radius: 12px; background: var(--pb-card); padding: 8px 10px 10px; min-width: 0; }
.wn-rt-fhead { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wn-rt-fhead h3 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 15px; font-weight: 600; }
.wn-rt-cards { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wn-rt-card { display: flex; align-items: flex-start; gap: 8px; padding: 6px 6px 6px 4px; border: 1px solid var(--pb-line);
  border-radius: 10px; background: var(--pb-raised); min-width: 0; }
.wn-rt-card.wn-rt-card-warn { border-color: var(--pb-amber); }
.wn-rt-dragging { position: relative; z-index: 2; box-shadow: 0 8px 20px var(--pb-sketch); opacity: .95; }
.wn-rt-drop-before { box-shadow: 0 -3px 0 var(--pb-muted); }
.wn-pb-root button.wn-rt-handle { flex: none; width: 32px; min-width: 32px; min-height: 40px; padding: 0; border: 0; background: none;
  color: var(--pb-muted); font-size: 18px; cursor: grab; touch-action: none; }
.wn-pb-root button.wn-rt-handle:active { cursor: grabbing; }
.wn-rt-n { flex: none; min-width: 26px; height: 26px; margin-top: 7px; border-radius: 13px; background: var(--pb-head);
  color: var(--pb-text); font-size: 13px; font-weight: 700; line-height: 26px; text-align: center; }
.wn-rt-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 6px; }
.wn-rt-name { display: flex; align-items: center; gap: 6px; font-weight: 600; overflow-wrap: anywhere; }
.wn-rt-stair { width: 16px; height: 16px; flex: none; color: var(--pb-muted); }
.wn-rt-how { color: var(--pb-muted); font-size: 13px; }
.wn-rt-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.wn-rt-warn-text { color: var(--pb-amber); font-weight: 600; }
.wn-rt-hint { color: var(--pb-muted); }
.wn-rt-tick { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--pb-text); }
.wn-rt-moves { flex: none; display: flex; gap: 4px; }
.wn-pb-root button.wn-rt-step { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; border: 1px solid var(--pb-line-strong);
  border-radius: 8px; background: transparent; color: inherit; font-size: 1.1rem; line-height: 1; }
.wn-rt-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wn-pb-root button.wn-rt-save { background: var(--pb-cyan); border-color: var(--pb-cyan); color: var(--pb-card); font-weight: 600; }
.wn-rt-confirm { flex-basis: 100%; }
.wn-rt-confirm .wn-pb-m { margin: 0 0 6px; }
@media (max-width: 480px) {
  .wn-rt-floor { padding: 6px 6px 8px; }
  .wn-rt-moves { flex-direction: column; }
  .wn-pb-root button.wn-rt-step { width: 36px; min-width: 36px; height: 36px; min-height: 36px; }
}
