/*
 * The lighting workspace's shell (LIGHTING-CALCULATOR.md §13, stage S3): DIALux's layout in Sparkline's look. Every
 * colour is bound to the site's theme properties (style.css :root and its two data-theme blocks), so all three themes
 * restyle it; the plan canvas and the 3D view read the --ws-plan-* and --ws-3d-* values below when they paint.
 * Every class is ws- prefixed: the page around it is the site's, with its own .nav, .btn and .section.
 */
/* the workspace's place on the page (S17), its height held before the script draws it: the page's text below it does
   not jump down when it appears (a phone's layout shift had been 0.56) */
#ws-host { min-height: max(560px, calc(100vh - 65px)); }
@media (max-width: 760px) { #ws-host { min-height: max(480px, calc(100svh - 65px)); } }
.ws-app {
  --ws-bg: var(--bg-primary); --ws-surface: var(--bg-surface); --ws-elevated: var(--bg-elevated);
  --ws-text: var(--text-primary); --ws-text-2: var(--text-muted); --ws-border: var(--border);
  --ws-accent: var(--accent); --ws-accent-tint: rgba(var(--accent-rgb), .14); --ws-accent-line: rgba(var(--accent-rgb), .55);
  /* the accent as text (S16c): drawn toward the theme's own text colour, so it reads at 4.5 : 1 on the surfaces and on
     its own tint in every theme — the accent itself stays for borders, fills and focus */
  --ws-accent-text: color-mix(in srgb, var(--ws-accent) 72%, var(--ws-text));
  --ws-pass: var(--success); --ws-fail: var(--danger); --ws-warn: var(--accent-warm);
  --ws-plan-bg: var(--bg-primary); --ws-plan-grid: rgba(var(--accent-rgb), .08); --ws-plan-room: var(--bg-surface);
  --ws-plan-wall: var(--text-muted); --ws-plan-ink: var(--text-primary); --ws-plan-furn: var(--bg-elevated);
  --ws-plan-lum: rgba(var(--accent-warm-rgb), .55); --ws-plan-sel: rgba(var(--accent-rgb), .24); --ws-plan-hover: rgba(var(--accent-rgb), .10);
  --ws-plan-task: var(--accent); --ws-plan-text: var(--text-primary); --ws-plan-dim: var(--text-muted);
  --ws-plan-glass: rgba(var(--accent-rgb), .16); --ws-plan-door: var(--bg-elevated);   /* the elevations (S8c) */
  --ws-3d-line: var(--text-muted); --ws-3d-sel: var(--accent); --ws-3d-lum: var(--accent-warm);
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  height: calc(100vh - var(--ws-offset, 65px)); min-height: 560px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 13px; line-height: 1.45;
  background: var(--ws-bg); color: var(--ws-text); border-top: 1px solid var(--ws-border);
}
.ws-app:fullscreen { height: 100vh; }
.ws-app *, .ws-app *::before, .ws-app *::after { box-sizing: border-box; }
.ws-app button, .ws-app input, .ws-app select { font: inherit; color: inherit; }
.ws-app :focus-visible { outline: 2px solid var(--ws-accent); outline-offset: 1px; }
.ws-num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-muted { color: var(--ws-text-2); }
.ws-grow { flex: 1 1 auto; min-width: 0; }
.ws-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the top bar: modes, then the calculation group on the right */
.ws-top { height: 50px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: var(--ws-surface); border-bottom: 1px solid var(--ws-border); }
.ws-brand { font-weight: 700; font-size: 14px; letter-spacing: -.01em; padding: 0 8px 0 4px; white-space: nowrap; }
.ws-brand b { color: var(--ws-accent-text); font-weight: 700; }
.ws-sep { width: 1px; height: 26px; background: var(--ws-border); margin: 0 4px; flex: none; }
.ws-ib { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 6px; background: transparent; cursor: pointer; color: var(--ws-text); flex: none; padding: 0; }
.ws-ib svg { width: 18px; height: 18px; }
.ws-ib:hover:not(:disabled) { background: var(--ws-elevated); }
.ws-ib.is-on { background: var(--ws-accent-tint); color: var(--ws-accent-text); }
.ws-ib:disabled, .ws-btn:disabled, .ws-tab:disabled, .ws-seg button:disabled { opacity: .38; cursor: not-allowed; }
.ws-tabs { display: flex; align-items: stretch; height: 50px; margin-left: 6px; min-width: 0; overflow: hidden; }
.ws-tab { display: flex; align-items: center; padding: 0 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-weight: 500; color: var(--ws-text-2); cursor: pointer; white-space: nowrap; }
.ws-tab.is-on { color: var(--ws-text); border-bottom-color: var(--ws-accent); font-weight: 600; }
.ws-modesel { display: none; height: 32px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface); padding: 0 6px; }
.ws-btn { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface); color: var(--ws-text); font-weight: 500; cursor: pointer; white-space: nowrap; }
.ws-btn svg { width: 16px; height: 16px; flex: none; }
.ws-btn--pri { border-color: var(--ws-accent); color: var(--ws-accent-text); background: var(--ws-accent-tint); }
.ws-btn--sm { height: 28px; padding: 0 9px; font-size: 12px; }
.ws-group { display: inline-flex; align-items: center; gap: 2px; }
.ws-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--ws-border); background: var(--ws-elevated); font-size: 12px; font-weight: 500; white-space: nowrap; }
.ws-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ws-text-2); }

/* the body: tool strip, one tool panel, the CAD view */
.ws-body { flex: 1 1 auto; display: flex; min-height: 0; position: relative; }
.ws-strip { width: 52px; flex: none; background: var(--ws-surface); border-right: 1px solid var(--ws-border); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; overflow-y: auto; }
.ws-strip .ws-ib { width: 38px; height: 38px; }
.ws-strip .ws-ib svg { width: 20px; height: 20px; }
.ws-strip .ws-end { margin-top: auto; }
.ws-panel { width: 318px; flex: none; background: var(--ws-surface); border-right: 1px solid var(--ws-border); display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.ws-app .ws-panel:focus, .ws-app .ws-top:focus, .ws-app .ws-nav:focus, .ws-app .ws-status:focus { outline: none; }   /* focus left on a bar when its button is drawn away: Tab goes on from here */
.ws-ph { padding: 12px 14px 10px; border-bottom: 1px solid var(--ws-border); }
.ws-ph h2 { margin: 0; font-size: 15px; font-weight: 650; color: var(--ws-text); }
.ws-ph p { margin: 3px 0 0; color: var(--ws-text-2); font-size: 12.5px; }
.ws-sec { border-bottom: 1px solid var(--ws-border); }
.ws-sech { display: flex; align-items: center; gap: 6px; padding: 9px 14px 6px; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ws-text-2); margin: 0; }
.ws-secb { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.ws-kv { display: grid; grid-template-columns: minmax(96px, 40%) minmax(0, 1fr); gap: 4px 10px; font-size: 12.5px; margin: 0; }
.ws-kv dt { color: var(--ws-text-2); }
.ws-kv dd { margin: 0; overflow-wrap: anywhere; }
.ws-kv dd small { display: block; color: var(--ws-text-2); font-size: 11.5px; }
.ws-note { font-size: 12px; color: var(--ws-text-2); background: var(--ws-elevated); border-radius: 7px; padding: 8px 10px; margin: 0; }
.ws-act { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 4px 10px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface); cursor: pointer; text-align: left; font-weight: 500; }
.ws-act svg { width: 17px; height: 17px; flex: none; color: var(--ws-text-2); }
.ws-act.is-on { border-color: var(--ws-accent); background: var(--ws-accent-tint); }
.ws-act.is-on .ws-meta { color: var(--ws-text); }   /* the muted words on the tint read too (S16c) */
.ws-act .ws-meta { margin-left: auto; color: var(--ws-text-2); font-size: 12px; }
.ws-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ws-swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--ws-border); flex: none; }

/* the project tree */
.ws-tree { list-style: none; margin: 0; padding: 6px 6px 12px; font-size: 12.5px; }
.ws-tree ul { list-style: none; margin: 0; padding: 0 0 0 14px; }
.ws-tree [role="treeitem"] > .ws-row { display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 5px; cursor: pointer; min-height: 26px; }
.ws-tree [role="treeitem"] > .ws-row:hover { background: var(--ws-elevated); }
.ws-tree [aria-selected="true"] > .ws-row { background: var(--ws-accent-tint); color: var(--ws-accent-text); font-weight: 600; }
.ws-tree .ws-tw { width: 16px; height: 16px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--ws-text-2); }
.ws-tree .ws-tw svg { width: 12px; height: 12px; transition: transform .12s; }
.ws-tree [aria-expanded="true"] > .ws-row .ws-tw svg { transform: rotate(90deg); }
.ws-tree .ws-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-tree .ws-meta { margin-left: auto; color: var(--ws-text-2); font-size: 11.5px; white-space: nowrap; padding-left: 6px; }
.ws-tree [aria-selected="true"] > .ws-row .ws-meta { color: inherit; }

/* the CAD view: breadcrumb and view switches over one or two viewports */
.ws-cad { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: var(--ws-bg); }
.ws-nav { height: 42px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--ws-surface); border-bottom: 1px solid var(--ws-border); }
.ws-crumb { display: flex; align-items: center; gap: 2px; font-size: 12.5px; white-space: nowrap; overflow: hidden; min-width: 0; flex: 0 1 auto; }
.ws-crumb button { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; border: 0; background: transparent; padding: 3px 6px; border-radius: 5px; cursor: pointer; color: var(--ws-text-2); }
.ws-crumb button[aria-current] { flex: none; color: var(--ws-text); font-weight: 600; background: var(--ws-elevated); }
.ws-crumb svg { width: 12px; height: 12px; color: var(--ws-text-2); flex: none; }
.ws-seg { display: inline-flex; border: 1px solid var(--ws-border); border-radius: 6px; overflow: hidden; flex: none; }
.ws-seg button { height: 28px; padding: 0 10px; border: 0; border-right: 1px solid var(--ws-border); background: var(--ws-surface); font-size: 12px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.ws-seg button:last-child { border-right: 0; }
.ws-seg button[aria-pressed="true"] { background: var(--ws-accent-tint); color: var(--ws-accent-text); font-weight: 600; }
.ws-seg svg { width: 14px; height: 14px; }
.ws-views { position: relative; flex: 1 1 auto; display: flex; min-height: 0; gap: 1px; background: var(--ws-border); }   /* the toast stands over the views */
.ws-vp { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; background: var(--ws-plan-bg); }
.ws-vp[hidden] { display: none; }
.ws-vp canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
.ws-vp--3d { background: linear-gradient(180deg, var(--ws-elevated) 0%, var(--ws-bg) 100%); }
/* S12b: the false colours' scale over the 3D view */
/* Render this view (S14e): the picture over the 3D view, its bar along the top, under the view's tag (the site's Ask
   button keeps the bottom right) — the theme's tokens */
.ws-render { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; background: var(--ws-bg); cursor: pointer; }
.ws-renderbar { position: absolute; left: 10px; right: 10px; top: 44px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--ws-surface); border: 1px solid var(--ws-border); color: var(--ws-text-2); font-size: 12px; }
.ws-renderbar > span { flex: 1 1 auto; min-width: 0; }
.ws-render[hidden], .ws-renderbar[hidden] { display: none; }
.ws-legend { position: absolute; left: 10px; bottom: 40px; z-index: 1; width: 196px; padding: 6px 8px; border-radius: 8px; background: var(--ws-surface); border: 1px solid var(--ws-border); color: var(--ws-text-2); font-size: 11px; pointer-events: none; }
.ws-legend[hidden] { display: none; }
.ws-legend b { display: block; font-weight: 600; margin-bottom: 4px; color: var(--ws-text); }
.ws-legend i { display: block; height: 10px; border-radius: 2px; }
.ws-legend-ticks { display: flex; justify-content: space-between; margin-top: 3px; font-variant-numeric: tabular-nums; }
.ws-tag { position: absolute; left: 10px; top: 9px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--ws-surface); border: 1px solid var(--ws-border); color: var(--ws-text-2); pointer-events: none; z-index: 1; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-tag--note { top: 38px; color: var(--ws-warn); border-color: var(--ws-warn); white-space: normal; }
.ws-tag[hidden] { display: none; }
/* the elevation's sides (S8c): N E S W at its top right, drawn as the view switches */
.ws-facing { position: absolute; right: 10px; top: 8px; z-index: 2; display: inline-flex; border: 1px solid var(--ws-border); border-radius: 6px; overflow: hidden; }
.ws-facing button { width: 30px; height: 26px; border: 0; border-right: 1px solid var(--ws-border); background: var(--ws-surface); color: var(--ws-text); font-size: 12px; font-weight: 600; cursor: pointer; }
.ws-facing button:last-child { border-right: 0; }
.ws-facing button[aria-pressed="true"] { background: var(--ws-accent-tint); color: var(--ws-accent-text); }
.ws-vp--elev .ws-tag { max-width: calc(100% - 150px); }
.ws-hint { position: absolute; left: 10px; bottom: 8px; font-size: 11.5px; color: var(--ws-text-2); background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 6px; padding: 2px 7px; pointer-events: none; z-index: 1; }
.ws-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: var(--ws-text-2); z-index: 1; }

/* the status bar */
.ws-status { height: 30px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 12px; background: var(--ws-surface); border-top: 1px solid var(--ws-border); font-size: 12px; color: var(--ws-text-2); white-space: nowrap; overflow: hidden; }
.ws-status b { color: var(--ws-text); font-weight: 600; }
.ws-status .ws-sel { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ws-msgs { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--ws-border); border-radius: 6px; background: transparent; padding: 1px 8px; cursor: pointer; font-size: 12px; color: var(--ws-text-2); }
.ws-msgs svg { width: 13px; height: 13px; }
.ws-msgs.is-err { border-color: var(--ws-fail); color: var(--ws-fail); }
.ws-msgs.is-warn { border-color: var(--ws-warn); color: var(--ws-warn); }

/* popovers: display options, messages, shortcuts */
.ws-pop { position: absolute; z-index: 20; background: var(--ws-surface); border: 1px solid var(--ws-border); border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .28); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; max-height: 70%; overflow-y: auto; width: min(380px, calc(100% - 16px)); }
.ws-pop h3 { margin: 0; font-size: 13px; font-weight: 650; color: var(--ws-text); }
.ws-opt { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; cursor: pointer; }
.ws-opt input { margin: 2px 0 0; width: 15px; height: 15px; flex: none; accent-color: var(--ws-accent); }
.ws-opt small { display: block; color: var(--ws-text-2); font-size: 12px; }
.ws-issue { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 2px 8px; padding: 6px 8px; border-radius: 6px; border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; width: 100%; }
.ws-issue:hover { background: var(--ws-elevated); }
.ws-issue svg { width: 15px; height: 15px; margin-top: 2px; }
.ws-issue.is-error svg { color: var(--ws-fail); }
.ws-issue.is-warning svg { color: var(--ws-warn); }
.ws-issue.is-info svg { color: var(--ws-text-2); }
.ws-issue small { grid-column: 2; color: var(--ws-text-2); font-size: 12px; }
.ws-keys { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 12.5px; margin: 0; }
.ws-keys dt { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--ws-text); }
.ws-keys dd { margin: 0; color: var(--ws-text-2); }
.ws-panels-btn { display: none; }

/* drawing and editing (S7a): the shapes, fields with their units, the toast over the plan */
.ws-shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--ws-border); }
.ws-shapes .ws-act { flex-direction: column; justify-content: center; gap: 3px; padding: 6px 4px; text-align: center; font-size: 12px; }
.ws-shapes .ws-act svg { width: 20px; height: 20px; }
.ws-shapes .ws-act.is-on svg { color: var(--ws-accent-text); }
.ws-field { display: grid; grid-template-columns: minmax(96px, 40%) minmax(0, 1fr) 16px; align-items: center; gap: 4px 8px; font-size: 12.5px; }
.ws-field > span:first-child { color: var(--ws-text-2); }
.ws-field input { height: 30px; width: 100%; min-width: 0; padding: 0 8px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-bg); color: var(--ws-text); }
.ws-field input[inputmode="decimal"] { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.ws-field input:focus { border-color: var(--ws-accent); }
.ws-unit { color: var(--ws-text-2); font-size: 12px; }
.ws-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-opt input:disabled + span { opacity: .55; cursor: not-allowed; }
.ws-shapes--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.ws-shapes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ws-act:disabled { opacity: .45; cursor: not-allowed; }
/* the furniture catalogue (S9b): its search, its groups and a tile a kind */
.ws-secb input[type="search"] { height: 30px; width: 100%; min-width: 0; padding: 0 8px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-bg); color: var(--ws-text); }
.ws-secb input[type="search"]:focus { border-color: var(--ws-accent); }
.ws-gchips { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-gchip { height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--ws-border); background: var(--ws-surface); font-size: 12px; font-weight: 500; cursor: pointer; }
.ws-gchip.is-on { border-color: var(--ws-accent); background: var(--ws-accent-tint); color: var(--ws-accent-text); }
.ws-gchip:disabled { opacity: .45; cursor: not-allowed; }
.ws-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ws-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; min-width: 0; padding: 6px 4px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface); font-size: 12px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; cursor: pointer; }
.ws-tile svg { width: 22px; height: 22px; flex: none; color: var(--ws-text-2); }
.ws-tile.is-on { border-color: var(--ws-accent); background: var(--ws-accent-tint); }
.ws-tile.is-on svg { color: var(--ws-accent-text); }
.ws-field--wide { grid-template-columns: minmax(96px, 40%) minmax(0, 1fr); }
/* a luminaire type's card (S10a): its polar curve beside its figures */
.ws-typecard { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: center; }
/* a type's UGR table (S13a): CIE's five sets in one view, the rooms down the side */
.ws-ugrt { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.ws-ugrt caption { text-align: left; color: var(--ws-text-2); font-size: 11.5px; padding: 0 0 4px; }
.ws-ugrt th, .ws-ugrt td { padding: 2px 4px; border-top: 1px solid var(--ws-border); text-align: right; white-space: nowrap; }
.ws-ugrt thead th { border-top: 0; color: var(--ws-text-2); font-weight: 600; }
.ws-ugrt tbody th { text-align: left; font-weight: 400; color: var(--ws-text-2); }
.ws-polar { width: 120px; height: 120px; }
.ws-typecard dd { white-space: nowrap; }
/* "Automatic for this space" (S10b): the trim's account as it runs, and its result */
.ws-autolog { font-size: 12px; line-height: 1.5; margin: 0; color: var(--ws-text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ws-autores { font-size: 12px; line-height: 1.5; margin: 0; padding: 8px 10px; border-radius: 7px; border: 1px solid var(--ws-pass); color: var(--ws-text); font-variant-numeric: tabular-nums; }
.ws-autores.is-bad { border-color: var(--ws-warn); }
/* light scenes and groups (S10d) */
.ws-btns--col { display: grid; gap: 8px; }
.ws-chip--sm { height: 22px; padding: 0 8px; font-size: 11px; }
.ws-scenesel { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px 0 8px; border: 1px solid var(--ws-border); border-radius: 6px; font-size: 12px; }
.ws-scenesel select { border: 0; background: transparent; color: inherit; font: inherit; min-width: 88px; max-width: 160px; flex: none; }
.ws-scenesel svg { width: 16px; height: 16px; flex: none; }
/* calculate, room status, results (S11a) */
.ws-busy { color: var(--ws-accent-text); font-weight: 600; }
.ws-rstat { margin-left: auto; padding: 0 6px; border-radius: 9px; font-size: 11px; line-height: 18px; white-space: nowrap; border: 1px solid var(--ws-border); color: var(--ws-text-2); font-variant-numeric: tabular-nums; }
.ws-rstat.is-current { border-color: var(--ws-pass); color: var(--ws-pass); }
.ws-rstat.is-changed { border-color: var(--ws-warn); color: var(--ws-warn); }
.ws-rstat.is-calculating, .ws-rstat.is-queued { border-color: var(--ws-accent-line); color: var(--ws-accent-text); }
.ws-rstat.is-refused { border-color: var(--ws-fail); color: var(--ws-fail); }
.ws-optrow { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ws-poph { margin: 10px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ws-text-2); }
.ws-opt.is-off { opacity: .55; }
.ws-resrow { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 2px 8px; width: 100%; padding: 6px 8px; border: 0; border-bottom: 1px solid var(--ws-border); background: transparent; color: var(--ws-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ws-resrow:hover { background: var(--ws-accent-tint); }
.ws-resrow small { grid-column: 1 / -1; color: var(--ws-text-2); font-size: 11px; }
.ws-resrow.is-changed .ws-resval, .ws-resrow.is-none .ws-resval { color: var(--ws-text-2); }
.ws-resrow:hover :is(small, .ws-resval) { color: var(--ws-text); }   /* the muted words read on the hover's tint too (S16c: 4.31 : 1 dark) */
.ws-resname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-resval { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-resmark { font-weight: 700; text-align: center; }
.ws-resmark.is-ok { color: var(--ws-pass); }
.ws-resmark.is-bad { color: var(--ws-fail); }   /* S10e: the icon at the top bar's size, the scene's name in full */
/* your targets table (S10c): a page in place of the views */
.ws-sheet { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 24px 32px 32px; background: var(--ws-bg); }
.ws-sheet:focus { outline: none; }
.ws-app.is-sheet .ws-nav, .ws-app.is-sheet .ws-views { display: none; }
@media (min-width: 761px) { .ws-app.is-sheet .ws-panel { display: none; } }   /* the strip beside it, as the design's board */
.ws-sheet-head h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.ws-sheet-head p { margin: 0; max-width: 1100px; font-size: 13px; line-height: 1.55; color: var(--ws-text-2); }
.ws-sheet-head .ws-chip { height: 20px; padding: 0 6px; font-size: 11px; vertical-align: 1px; }
.ws-sheet-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 12px; }
.ws-sheet-bar .ws-ed { grid-template-columns: auto minmax(180px, 240px); }
.ws-ttwrap { overflow-x: auto; border: 1px solid var(--ws-border); border-radius: 8px; }
.ws-ttable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ws-ttable th, .ws-ttable td { padding: 4px 8px; text-align: left; border-top: 1px solid var(--ws-border); white-space: nowrap; }
.ws-ttable thead th { border-top: 0; padding: 10px 8px; font-size: 12px; font-weight: 600; color: var(--ws-text-2); }
.ws-ttable tbody th { font-weight: 400; min-width: 220px; white-space: normal; }
.ws-ttable input { width: 84px; height: 28px; padding: 0 8px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-surface); color: var(--ws-text); font: inherit; font-variant-numeric: tabular-nums; }
.ws-ttable input:focus { border-color: var(--ws-accent); outline: none; }
.ws-ttable td.is-sub input { width: 64px; text-align: right; }
.ws-ttable td.is-sub input::placeholder { color: var(--ws-text-2); opacity: 1; }
.ws-ttable thead th.is-sub { text-align: right; }
.ws-sheet-foot { margin: 10px 0 0; font-size: 12px; }
.ws-sheet-msg { position: sticky; bottom: 12px; z-index: 2; margin: 12px 0 0; padding: 8px 12px; border: 1px solid var(--ws-accent-line); border-radius: 7px; background: var(--ws-surface); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); font-size: 13px; }
.ws-sheet-bar .ws-btn.is-off { visibility: hidden; }   /* its place kept: nothing beside it moves when it shows */
.ws-sheet-msg[hidden], .ws-sheet-bar [hidden] { display: none; }
@media (max-width: 760px) { .ws-sheet { padding: 16px; } .ws-ttable tbody th { min-width: 160px; } }
.ws-field select { height: 30px; width: 100%; min-width: 0; padding: 0 6px; border: 1px solid var(--ws-border); border-radius: 6px; background: var(--ws-bg); }
.ws-shapes--5 .ws-act { font-size: 11.5px; padding: 6px 2px; }
.ws-saved { display: flex; align-items: center; gap: 4px; }
.ws-saved .ws-act { flex: 1 1 auto; min-width: 0; }
.ws-saved .ws-act span:not(.ws-meta) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--ws-warn); border-radius: 6px; font-size: 12.5px; }
.ws-confirm > span { flex: 1 1 100%; }
.ws-status .ws-warn { color: var(--ws-warn); }
.ws-tag--toast { top: auto; bottom: 40px; left: 50%; transform: translateX(-50%); color: var(--ws-text); border-color: var(--ws-accent); font-weight: 500; white-space: normal; text-align: center; width: max-content; max-width: min(560px, calc(100% - 20px)); }

/* the simple room (S15a): its folded sections and its working, and the cards beside the view (the board's right column) */
.ws-fold > summary { cursor: pointer; list-style: none; }
.ws-fold > summary::-webkit-details-marker { display: none; }
.ws-fold > summary svg { width: 12px; height: 12px; flex: none; transition: transform .12s; }
.ws-fold[open] > summary svg { transform: rotate(90deg); }
.ws-fold:not([open]) > summary { padding-bottom: 9px; }
.ws-note--warn { margin: 10px 14px 0; color: var(--ws-text); background: var(--ws-surface); border: 1px solid var(--ws-warn); }
.ws-how { width: 100%; border-collapse: collapse; font-size: 12px; }
.ws-how td { padding: 5px 0; border-top: 1px solid var(--ws-border); vertical-align: top; }
.ws-how td:last-child { text-align: right; padding-left: 8px; }
.ws-how .ws-formula { display: block; color: var(--ws-text-2); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; }
.ws-side { flex: 0 0 340px; min-width: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--ws-surface); }
.ws-side[hidden] { display: none; }
.ws-side:focus { outline: none; }
.ws-card { border: 1px solid var(--ws-border); border-radius: 10px; padding: 12px 14px; background: var(--ws-surface); }
.ws-card h3 { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--ws-text-2); }
.ws-card-v { margin: 6px 0 4px; font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--ws-text); }
.ws-card-s { margin: 0; font-size: 12px; color: var(--ws-text-2); overflow-wrap: anywhere; }
.ws-card-n { margin: 4px 0 0; font-size: 12px; font-weight: 600; }
.ws-card.is-pri, .ws-card.is-ok, .ws-card.is-bad, .ws-card.is-busy { border-color: var(--ws-accent-line); }
.ws-card.is-pri .ws-card-v, .ws-card.is-ok .ws-card-v, .ws-card.is-bad .ws-card-v { color: var(--ws-accent-text); }
.ws-card.is-busy .ws-card-v { color: var(--ws-text-2); }
.ws-card.is-ok .ws-card-n { color: var(--ws-pass); }
.ws-card.is-bad .ws-card-n { color: var(--ws-fail); }
.ws-side-btn { width: 100%; justify-content: flex-start; }
@media (max-width: 1100px) { .ws-side { flex-basis: 280px; } }

/* the report (S14a): the page selection's tree, the preview in place of the views, and the A4 sheet itself — paper is white
   whatever the theme, so a sheet's colours are named here, never the theme's */
.ws-docview { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: var(--ws-elevated); }   /* the toast stands over the report too (S16a) */
.ws-docview[hidden] { display: none; }
.ws-app.is-doc .ws-nav, .ws-app.is-doc .ws-views { display: none; }
.ws-docbar { height: 42px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: var(--ws-surface); border-bottom: 1px solid var(--ws-border); }
.ws-docscroll { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.ws-pscale { flex: none; position: relative; }
.ws-pscale > .ws-page { transform-origin: top left; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.ws-docbtns { padding-top: 12px; }
.ws-docbtns .ws-btn { justify-content: flex-start; }
.ws-doctree { display: flex; flex-direction: column; gap: 1px; }
.ws-docline { display: flex; align-items: center; gap: 4px; min-height: 30px; }
.ws-docline input { width: 15px; height: 15px; margin: 0; flex: none; accent-color: var(--ws-accent); }
.ws-doctw { width: 22px; height: 22px; flex: none; }
.ws-doctw svg { width: 12px; height: 12px; transition: transform .12s; }
.ws-doctw[aria-expanded="true"] svg { transform: rotate(90deg); }
.ws-docrow { flex: 1 1 auto; min-width: 0; text-align: left; border: 0; border-radius: 5px; background: transparent; padding: 4px 8px; cursor: pointer; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-docrow:hover { background: var(--ws-elevated); }
.ws-docrow.is-on { background: var(--ws-accent-tint); color: var(--ws-accent-text); font-weight: 600; }
.ws-page { width: 210mm; height: 297mm; padding: 13mm 15mm 11mm; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden;
  background: white; color: black; font-family: 'Inter', system-ui, sans-serif; font-size: 9pt; line-height: 1.4; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ws-page h1 { margin: 40mm 0 4mm; font-size: 24pt; line-height: 1.15; font-weight: 700; color: black; }
.ws-page h2 { margin: 2mm 0 4mm; font-size: 13pt; font-weight: 700; color: black; }
.ws-page h3 { margin: 5mm 0 2mm; font-size: 10pt; font-weight: 700; color: black; }
.ws-page p { margin: 0 0 2.5mm; color: black; }
.ws-phd, .ws-pft { display: flex; justify-content: space-between; gap: 8mm; font-size: 7.5pt; color: dimgray; }
.ws-phd { padding-bottom: 2mm; border-bottom: 0.3mm solid black; margin-bottom: 5mm; font-weight: 600; color: black; }
.ws-phd span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* a long project name: one line, whole on the cover */
.ws-phd span:last-child { flex: none; }
.ws-page h1, .ws-page h2, .ws-page h3, .ws-page p, .ws-pkv dd { overflow-wrap: anywhere; }
.ws-pft { margin-top: auto; padding-top: 2mm; border-top: 0.2mm solid silver; }
.ws-pbody { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ws-pkicker { font-size: 10pt; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: dimgray; margin-top: 30mm !important; }
.ws-page.is-cover h1 { margin-top: 2mm; }
.ws-psub { font-size: 11pt; color: dimgray !important; margin-bottom: 10mm !important; }
.ws-pstate { margin-top: 8mm !important; font-weight: 600; }
.ws-pcredit { font-size: 7.5pt; color: dimgray !important; }
.ws-pmuted { font-size: 8pt; color: dimgray !important; }
.ws-pwarn { font-weight: 600; border-left: 1mm solid black; padding-left: 3mm; }
.ws-pkv { display: grid; grid-template-columns: 45mm minmax(0, 1fr); gap: 1.5mm 4mm; margin: 0 0 4mm; }
.ws-pkv dt { color: dimgray; }
.ws-pkv dd { margin: 0; font-weight: 600; }
.ws-ptab { width: 100%; border-collapse: collapse; margin: 0 0 4mm; font-size: 8pt; font-variant-numeric: tabular-nums; }
.ws-ptab th, .ws-ptab td { padding: 1.2mm 2mm 1.2mm 0; border-bottom: 0.2mm solid gainsboro; text-align: left; vertical-align: top; font-weight: 400; color: black; }
.ws-ptab thead th { font-weight: 700; border-bottom: 0.3mm solid black; font-size: 7.5pt; }
.ws-ptab.is-layout td, .ws-ptab.is-layout th { text-align: right; }
/* a table that runs on: its columns fixed (report-view.js widths), any word broken rather than pushed past its column; in
   the others a name breaks anywhere rather than push the table past the sheet (a figure never: it keeps its column) */
.ws-ptab[data-split] { table-layout: fixed; }
.ws-ptab[data-split] th, .ws-ptab[data-split] td { overflow-wrap: anywhere; }
.ws-ptab tbody th, .ws-ptab tr.is-group th { overflow-wrap: anywhere; }
.ws-ptab tr.is-group th { padding-top: 3mm; font-size: 9pt; font-weight: 700; border-bottom: 0.3mm solid black; }
.ws-ptab.is-contents td { text-align: right; width: 15mm; }
.ws-pfig { margin: 0 0 4mm; }
.ws-pplan { display: block; width: 100%; max-height: 110mm; border: 0.2mm solid silver; background: white; }
.ws-page.is-layout .ws-pplan { max-height: 100mm; }   /* with 16 rows, the note and the footer inside A4 (Codex SPE-149) */
.ws-pplan .is-other { fill: whitesmoke; stroke: none; }
.ws-pplan .is-room { fill: white; stroke: none; }
.ws-pplan .is-task { fill: none; stroke: gray; stroke-dasharray: 0.08 0.06; }
.ws-pplan .is-furn { fill: gainsboro; stroke: darkgray; }
.ws-pplan .is-elem { fill: gray; }
.ws-pplan .is-wall { fill: dimgray; }
.ws-pplan .is-gap { fill: white; }
.ws-pplan .is-glass { fill: none; stroke: steelblue; }
.ws-pplan .is-leaf { fill: none; stroke: black; }
.ws-pplan .is-cut { fill: none; stroke: black; stroke-dasharray: 0.12 0.08; }
.ws-pplan .is-lum { fill: lightyellow; stroke: black; }
.ws-pplan .is-faint { opacity: .4; }
.ws-pplan .is-x { stroke: black; fill: none; }
.ws-pplan .is-edge { fill: none; stroke: black; }
.ws-pplan .is-plane { fill: none; stroke: dimgray; }   /* SPE-169: the working plane's outline, dashed (paper colours: the sheet is white whatever the theme) */
.ws-pplan .is-no { fill: black; font-family: 'Inter', system-ui, sans-serif; font-weight: 600; }
.ws-pplan .is-bar { stroke: black; }
/* a room's working plane (S14b): the false colours under the isolines, the target's bold, a label on a white halo, what
   stands through the plane outlined over a veil, the room's edge; its scale beside the words under it */
.ws-page.is-plane .ws-pplan { max-height: 125mm; }   /* report-view.js PLANE_MM */
.ws-pplane .is-iso { fill: none; stroke: black; stroke-linecap: round; }
.ws-pplane .is-isolabel { fill: black; stroke: white; paint-order: stroke; font-family: 'Inter', system-ui, sans-serif; font-weight: 600; }
.ws-pplane .is-out { fill: white; fill-opacity: .6; stroke: black; }
.ws-plegendrow { display: grid; grid-template-columns: 80mm minmax(0, 1fr); gap: 5mm; align-items: start; margin: 0 0 3mm; }
.ws-plegend { display: block; width: 80mm; height: 7.2mm; overflow: visible; }
.ws-plegend .is-bar { stroke: black; stroke-width: .3; }
.ws-plegend .is-tick { fill: black; font-family: 'Inter', system-ui, sans-serif; }
.ws-plegend .is-mark { stroke: black; stroke-width: 1.4; }
.ws-ptab.is-values th, .ws-ptab.is-values td { text-align: right; padding-right: 1.5mm; }
.ws-ptab.is-values thead th, .ws-ptab.is-values tbody th { font-weight: 700; }
/* a room's 3D views (S14d): each picture 180 × 100 mm (app.js SHOT, 1800 × 1000 px), drawn by a 3D view nobody sees in the
   paper's colours — named, as every sheet's, never the theme's */
.ws-p3d { display: block; width: 100%; height: 100mm; object-fit: contain; border: 0.2mm solid silver; background: white; }
.ws-p3d.is-wait { display: flex; align-items: center; justify-content: center; color: dimgray; font-size: 9pt; }
.ws-page.is-views3d figcaption { margin-top: 1.5mm; }
.ws-shot { display: none; --ws-3d-line: dimgray; --ws-3d-lum: darkorange; --ws-3d-sel: steelblue; --ws-accent: steelblue; }
.ws-psheet { display: grid; grid-template-columns: 62mm minmax(0, 1fr); gap: 8mm; align-items: start; margin-bottom: 4mm; }
.ws-psheet figure { margin: 0; }
.ws-psheet figcaption { font-size: 7.5pt; color: dimgray; margin-top: 1.5mm; }
/* a data sheet's UGR table (S13a): figures to the right, the room down the side */
.ws-ptab.is-ugr th, .ws-ptab.is-ugr td { padding: 0.8mm 1.2mm; text-align: right; }
.ws-ptab.is-ugr tbody th, .ws-ptab.is-ugr thead tr:first-child th:first-child { text-align: left; }
.ws-ptab.is-ugr thead th[colspan] { text-align: center; }
.ws-ppolar { display: block; width: 62mm; height: 62mm; }
.ws-ppolar .is-ring { fill: none; stroke: silver; stroke-width: .006; }
.ws-ppolar .is-c0 { fill: none; stroke: black; stroke-width: .02; }
.ws-ppolar .is-c90 { fill: none; stroke: black; stroke-width: .015; stroke-dasharray: .06 .04; }
.ws-psign { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6mm; margin-top: auto; padding-top: 8mm; }
.ws-psign div { border-top: 0.3mm solid black; padding-top: 1.5mm; display: flex; flex-direction: column; gap: 1mm; }
.ws-psign span { font-size: 7.5pt; color: dimgray; }
#ws-print { display: none; }
.ws-measure { position: fixed; left: -10000px; top: 0; visibility: hidden; pointer-events: none; }   /* a sheet measured (S14a) */
@media print {
  @page { size: A4 portrait; margin: 0; }
  body.ws-printing > *:not(#ws-print) { display: none !important; }
  body.ws-printing #ws-print { display: block; }
  body.ws-printing { background: white; margin: 0; }
  #ws-print .ws-page { break-after: page; page-break-after: always; box-shadow: none; transform: none; }
  #ws-print .ws-page:last-child { break-after: auto; page-break-after: auto; }
}

/* a laptop window: the light scene and engine chip give way to the modes; a tablet: the modes become a list */
@media (max-width: 1439px) { .ws-app .ws-hide-mid { display: none; } }
@media (max-width: 1239px) { .ws-tabs { display: none; } .ws-modesel { display: inline-block; } }
@media (max-width: 900px) { .ws-seg .ws-seg-text { display: none; } }
/* phone and narrow windows: one column, the panel as a drawer, the views one above the other */
@media (max-width: 760px) {
  .ws-app { height: calc(100svh - var(--ws-offset, 65px)); min-height: 480px; }
  .ws-app .ws-hide-narrow { display: none; }
  .ws-modesel { max-width: 46vw; }
  .ws-panels-btn { display: inline-flex; }
  .ws-strip { display: none; }
  .ws-panel { position: absolute; left: 0; top: 0; bottom: 0; z-index: 15; width: min(340px, 92vw); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); display: none; }
  .ws-app.is-panels .ws-strip { display: flex; position: absolute; left: 0; top: 0; bottom: 0; z-index: 16; }
  .ws-app.is-panels .ws-panel { display: flex; left: 52px; width: min(320px, calc(100vw - 60px)); }
  .ws-nav { gap: 4px; padding: 0 6px; }
  .ws-seg .ws-seg-text { display: none; }
  .ws-views { flex-direction: column; }
  .ws-side { flex: none; max-height: 46%; }
  .ws-status .ws-coords { display: none; }
}
/* the phone viewer (S15b): the design's Phone board — a title and tabs, the 3D or the plan, the results, the quick room.
   On a phone (≤ 600 px, or a touch screen ≤ 500 px high) the workspace is a page that scrolls; the tools are not shown. */
.ws-phone, .ws-phone-only { display: none; }
.ws-app.is-phone { height: auto; min-height: 0; overflow: visible; border-top: 0; }
.ws-app.is-phone .ws-top, .ws-app.is-phone .ws-strip, .ws-app.is-phone .ws-panel, .ws-app.is-phone .ws-nav, .ws-app.is-phone .ws-status,
.ws-app.is-phone .ws-side, .ws-app.is-phone .ws-sheet, .ws-app.is-phone .ws-hint.ws-hide-narrow { display: none; }
.ws-app.is-phone .ws-phone { display: block; }
.ws-app.is-phone .ws-phone-only { display: inline-flex; }
.ws-app.is-phone .ws-body { flex: none; height: min(450px, 64svh); margin: 0 16px; border: 1px solid var(--ws-border); border-radius: 12px; overflow: hidden; }
.ws-app.is-phone .ws-views { flex-direction: row; }
@media (max-height: 500px) { .ws-app.is-phone .ws-body { height: 80svh; } }
.ws-phead { padding: 18px 16px 12px; }
.ws-phead h1 { margin: 0 0 6px; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--ws-text); }
.ws-phead p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--ws-text-2); }
.ws-ptabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ws-border); border-radius: 8px; overflow: hidden; background: var(--ws-surface); }
.ws-ptabs button { min-height: 44px; min-width: 0; padding: 0 4px; border: 0; border-right: 1px solid var(--ws-border); background: transparent; font-size: 13px; font-weight: 500; cursor: pointer; }
.ws-ptabs button:last-child { border-right: 0; }
.ws-ptabs button[aria-pressed="true"] { background: var(--ws-accent-tint); color: var(--ws-accent-text); font-weight: 650; }
.ws-pfoot { padding: 10px 16px 28px; }
.ws-prow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ws-pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--ws-border); border-radius: 8px; background: var(--ws-surface); color: var(--ws-text); font-size: 14px; font-weight: 600; cursor: pointer; }
.ws-pbtn svg { width: 18px; height: 18px; flex: none; }
.ws-pbtn select { flex: 1 1 auto; width: 100%; min-width: 0; height: 44px; padding: 0 24px 0 2px; border: 0; background-color: transparent; color: inherit; font: inherit; font-size: 16px; font-weight: 500; }   /* the site's select keeps its arrow, less its 16 + 40 px padding */
.ws-prow .ws-pbtn { height: 48px; }
.ws-prow label.ws-pbtn { justify-content: flex-start; padding: 0 10px; }
.ws-pbtn.is-flat { cursor: default; font-weight: 500; }
.ws-pbtn.is-flat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-pbtn.is-on { border-color: var(--ws-accent); color: var(--ws-accent-text); }
.ws-pbtn--pri { border-color: var(--ws-accent); background: var(--ws-accent-tint); color: var(--ws-accent-text); }
.ws-psec > .ws-pbtn { width: 100%; margin-top: 10px; }
.ws-pbtn:disabled { opacity: .45; cursor: not-allowed; }
.ws-psec { margin-top: 22px; }
/* the site's bar stays fixed over the page: a place the tabs go to, or a box being typed in, stops below it */
.ws-app.is-phone .ws-psec, .ws-app.is-phone .ws-pquick input, .ws-app.is-phone .ws-pquick select { scroll-margin-top: calc(var(--ws-offset, 65px) + 12px); }
.ws-psec h2 { margin: 0 0 10px; font-size: 17px; font-weight: 700; color: var(--ws-text); }
.ws-plist { border: 1px solid var(--ws-border); border-radius: 10px; overflow: hidden; background: var(--ws-surface); }
.ws-popen { margin-top: 8px; }
.ws-prow-r { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 6px 12px; border: 0; border-bottom: 1px solid var(--ws-border); background: transparent; color: var(--ws-text); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.ws-prow-r:last-child { border-bottom: 0; }
.ws-pname { display: flex; flex-direction: column; min-width: 0; }
.ws-pname > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-popen .ws-pname { flex-direction: row; align-items: center; gap: 8px; }
.ws-pname svg { width: 18px; height: 18px; flex: none; color: var(--ws-text-2); }
.ws-pname small { font-size: 12px; color: var(--ws-fail); white-space: normal; }
.ws-prow-r.is-changed .ws-pname small { color: var(--ws-warn); }
.ws-pname small.ws-pglare { color: var(--ws-text-2); }   /* a room's UGR (S13a): muted, the failure colour only above its limit */
.ws-pname small.ws-pglare.is-bad { color: var(--ws-fail); }
.ws-pval { font-size: 14px; color: var(--ws-text-2); white-space: nowrap; }
.ws-pmark { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; font-size: 14px; font-weight: 700; }
.ws-pmark.is-ok { color: var(--ws-pass); background: rgba(var(--success-rgb), .14); }
.ws-pmark.is-bad { color: var(--ws-fail); background: rgba(var(--danger-rgb), .14); }
.ws-pnote { margin: 8px 2px 0; font-size: 13px; color: var(--ws-text-2); }
.ws-pquick { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--ws-border); border-radius: 10px; background: var(--ws-surface); }
.ws-app.is-phone .ws-pquick .ws-field { grid-template-columns: 34% minmax(0, 1fr) 22px; font-size: 14px; }
.ws-app.is-phone .ws-pquick .ws-field--wide { grid-template-columns: 34% minmax(0, 1fr); }
.ws-app.is-phone .ws-pquick input, .ws-app.is-phone .ws-pquick select { height: 44px; font-size: 16px; }
.ws-pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ws-pcard { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 12px; border-radius: 8px; background: var(--ws-elevated); }
.ws-pcard span { font-size: 12.5px; color: var(--ws-text-2); }
.ws-pcard b { font-size: 20px; font-weight: 650; color: var(--ws-text); }
@media (prefers-reduced-motion: reduce) { .ws-tree .ws-tw svg { transition: none; } }
/* the site's Ask button stands above the status bar while the workspace is on the page */
body:has(.ws-app) .btn.ask-launch { bottom: calc(42px + env(safe-area-inset-bottom, 0px)); }
body:has(.ws-app.is-phone) .btn.ask-launch { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }   /* the phone viewer has no status bar (S15b) */
