/* Compressor Room Builder v1.0 – systems, power meter, catalog, attachments, scope,
   sync status, filters, settings, help, dark canvas. Loaded after app.css. */

.pill.accent { background: var(--accent-soft); color: var(--accent); }
.sheet-p { color: var(--text-2); font-size: 13.5px; margin-bottom: 14px; }
.p-hint { color: var(--text-3); font-size: 12.5px; }
.warn-t { color: var(--warn-ink); }

/* dark canvas in the light theme */
html.dark-canvas .stage { --canvas: #172539; --grid: #2a3b57; }
html.dark-canvas .legend { background: rgba(16, 28, 48, 0.72); color: #c3cfdf; }
html.dark-canvas .empty-canvas { color: #c3cfdf; }

/* system switcher */
.sys-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 650; font-size: 13.5px; box-shadow: var(--shadow-2); max-width: 240px; }
.sys-btn .ic { width: 17px; height: 17px; color: var(--accent); flex: none; }
.sys-btn .ic-xs { color: var(--text-3); }
.sys-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-btn.single { color: var(--text-2); font-weight: 600; }
.sys-btn.single .sys-name { font-size: 12.5px; }
.addsys-preview { height: 150px; border-radius: 14px; overflow: hidden; background: #172539; background-image: radial-gradient(#2a3b57 1px, transparent 1px); background-size: 16px 16px; display: flex; margin: 14px 0 6px; }
.is-addsys .sheet { width: min(560px, calc(100vw - 32px)); }
.qs-name { margin-bottom: 8px; }

/* attached sensors (power meter badge on tiles) */
.world .att { cursor: pointer; }
@media (hover: hover) { .world .att:hover rect:not([fill="transparent"]) { stroke: var(--accent); } }

/* catalog */
.src-note { font-size: 11.5px; font-weight: 600; color: var(--accent); margin-top: 3px; }
.cat-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--border-2)); background: var(--accent-soft); text-align: left; color: var(--text); margin-bottom: 4px; transition: border-color 0.15s; }
.cat-btn:hover { border-color: var(--accent); }
.cat-btn > .ic:first-child { width: 22px; height: 22px; color: var(--accent); }
.cat-btn span { flex: 1; display: flex; flex-direction: column; }
.cat-btn b { font-size: 13.5px; }
.cat-btn small { font-size: 12px; color: var(--text-2); }
.cat-sample { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn-ink); font-size: 12.5px; margin-bottom: 12px; }
.cat-sample .ic { width: 16px; height: 16px; flex: none; }
.search.wide { width: 100%; margin-bottom: 10px; }
.cat-list { max-height: 50dvh; overflow: auto; }
.is-catalog .sheet { width: min(560px, calc(100vw - 32px)); }

/* voice notes & attachments */
.audio-block, .files-block { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 10px; }
.anote, .afile { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.anote-play { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.anote-play .ic { width: 16px; height: 16px; margin-left: 2px; }
.anote-name { font: inherit; font-size: 13px; font-weight: 700; color: var(--text); background: transparent; border: 0; border-bottom: 1px dashed transparent; padding: 1px 0; min-width: 0; width: 100%; }
.anote-name:hover, .anote-name:focus { border-bottom-color: var(--border-2); outline: none; }
.anote-name:focus-visible { border-bottom-color: var(--accent); }
.anote-play.on { animation: pulseDot 1s infinite; }
.anote-t, .afile-t { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: 12px; color: var(--text-3); text-align: left; }
.anote-t b, .afile-t b { font-size: 13.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afile-t { border: 0; background: none; padding: 0; }
.afile-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; color: var(--text-2); flex: none; }
.rec { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 0 6px; text-align: center; }
.rec-dot { width: 72px; height: 72px; border-radius: 50%; background: var(--danger); animation: rec 1.4s infinite; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 45%, transparent); } 70% { box-shadow: 0 0 0 22px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.rec-time { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.rec-p { color: var(--text-2); font-size: 13px; max-width: 320px; }
.is-record .sheet { width: min(420px, calc(100vw - 32px)); }

/* keyboard shortcuts */
.kbd-list { display: flex; flex-direction: column; }
.kbd-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.kbd-row:first-child { border-top: 0; }
.kbd-row span:first-child { display: flex; gap: 4px; }

/* review: scope, ROI, status */
.scope { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 20px; }
.scope-g h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 700; margin-bottom: 6px; }
.scope-l { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--border); }
.scope-q { min-width: 54px; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 3px; }
.scope-q small { font-size: 11px; color: var(--text-3); font-weight: 600; }
.scope-t { display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-3); min-width: 0; }
.scope-t b { font-size: 13.5px; color: var(--text); font-weight: 600; }
.scope-l.warn .scope-t span { color: var(--warn-ink); }
.roi { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--text-2); font-size: 13px; }
.roi b { color: var(--ok); font-size: 15px; }
.roi .ic { color: var(--ok); flex: none; }
.roi.missing { background: var(--warn-soft); }
.roi.missing .ic { color: var(--warn); }
.rv-status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); margin-top: 6px; flex-wrap: wrap; }
.rv-status-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.rv-status.ok .rv-status-ic { background: var(--ok-soft); color: var(--ok); }
.rv-status.warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); background: var(--warn-soft); }
.rv-status.warn .rv-status-ic { background: var(--surface); color: var(--warn); }
.rv-status.accent .rv-status-ic { background: var(--accent-soft); color: var(--accent); }
.rv-status-t { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--text-3); text-align: left; }
.rv-status-t b { font-size: 14px; color: var(--text); }
.rv-comment { color: var(--text); font-size: 13.5px; font-style: italic; }
.present-sys { background: rgba(255, 255, 255, 0.08); }
.present-sys button { color: #c3cfdf; }
.present-sys button.on { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: none; }

/* home: account, filters, inbox, install hint */
.acct-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 13px; color: var(--text); }
.acct-chip .ic { width: 16px; height: 16px; color: var(--accent); }
.acct-chip.busy .ic { animation: pulseDot 1s infinite; }
.home-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; overflow-x: auto; margin: -6px 0 18px; padding-bottom: 2px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 13px; }
.fchip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.fchip b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--warn); color: #1c1300; font-size: 11px; display: inline-grid; place-items: center; }
.vcard-thumb { position: relative; }
.vcard-tag { position: absolute; top: 10px; left: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(53, 184, 238, 0.18); color: #7fd3f7; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.vcard.archived { opacity: 0.7; }
.vcard-comment { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--warn-ink); background: var(--warn-soft); padding: 6px 8px; border-radius: 8px; margin-top: 6px; }
.vcard-comment .ic { margin-top: 2px; flex: none; }
.install-hint { display: flex; gap: 12px; align-items: flex-start; margin: 4px 28px 0; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--text-2); font-size: 13px; }
.install-hint > .ic { color: var(--accent); flex: none; margin-top: 1px; }
.install-hint b { color: var(--text); }
.install-hint .ic-xs { vertical-align: -2px; }
.inbox { width: min(1180px, calc(100% - 56px)); margin: 16px auto 0; padding: 14px 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); background: var(--surface); box-shadow: var(--shadow-1); }
.inbox h2 { font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.inbox h2 .ic { color: var(--accent); }
.inbox-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.inbox-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-3); }
.inbox-t b { font-size: 14px; color: var(--text); }

/* settings */
.set-sec { display: flex; flex-direction: column; gap: 12px; }
.set-sec h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 700; }
.set-sec + .set-sec { border-top: 1px solid var(--border); padding-top: 18px; }
.set-p { font-size: 13px; color: var(--text-2); }
.set-row { font-size: 13px; color: var(--text-2); }
.set-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acct { display: flex; align-items: center; gap: 12px; }
.acct > .ic { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.acct div { display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-3); }
.acct b { font-size: 14px; color: var(--text); }
.set-dev { border-top: 1px solid var(--border); padding-top: 12px; }
.set-dev > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-3); list-style: none; }
.set-dev[open] > summary { margin-bottom: 12px; }
.set-dev .fld { margin-bottom: 12px; }
.set-dev .seg { flex-wrap: wrap; }
.diag { white-space: pre-wrap; font-size: 11px; color: var(--text-2); background: var(--surface-2); padding: 10px; border-radius: 10px; max-height: 200px; overflow: auto; }
.mbo { display: flex; flex-direction: column; gap: 10px; }
.mbo-row { display: grid; grid-template-columns: 1fr 160px; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.mbo-t { grid-column: 1 / -1; display: flex; flex-direction: column; font-size: 12.5px; color: var(--text-3); }
.mbo-t b { font-size: 14px; color: var(--text); }
.mbo-row input { grid-column: 1 / -1; }
select.inp { padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }

/* help */
.help-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.help-steps li { display: flex; gap: 12px; align-items: flex-start; }
.help-steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-2); }
.help-steps b { font-size: 14px; color: var(--text); }
.help-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.help-tip { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--text-2); }

/* toasts: bottom-left on laptops so they never cover the dock or zoom tools */
@media (min-width: 900px) { .toasts { left: 20px; transform: none; align-items: flex-start; bottom: calc(24px + var(--safe-b)); } .shell ~ #layer .toasts, body:has(.builder) .toasts { bottom: 84px; } }

/* while a sheet is open, toasts move to the top so they never cover it */
body:has(.overlay.open) .toasts { top: calc(12px + env(safe-area-inset-top, 0px)); bottom: auto; }

/* accessibility: visible focus inside the canvas */
.world [data-node]:focus-visible .card, .world [data-inline]:focus-visible path { stroke: var(--accent); stroke-width: 3; }

@media (max-width: 899px) {
  .is-addsys .sheet, .is-catalog .sheet, .is-record .sheet { width: 100%; }
  .ab-save { width: 36px; padding: 0; }
  .ab-save span { display: none; }
  .appbar .theme-btn { display: none; }
  .stage-top { right: 64px; min-width: 0; }
  .sys-btn { height: 36px; padding: 0 10px; max-width: 124px; min-width: 0; font-size: 12.5px; flex: 0 1 auto; }
  .sugg-btn { height: 36px; padding: 0 10px; flex: none; }
  body:has(.builder) .toasts { bottom: calc(var(--tabbar) + 86px); }
  .sys-btn.single .sys-name { display: none; }
  .install-hint { margin: 4px 14px 0; }
  .inbox { width: calc(100% - 28px); }
  .home-actions .theme-btn { display: none; }
  .acct-chip span { display: none; }
  .acct-chip { width: 36px; justify-content: center; padding: 0; }
  .mbo-row { grid-template-columns: 1fr; }
  .scope { grid-template-columns: 1fr; }
}

/* order of sensors on a pipe */
.ord-dir { text-transform: none; letter-spacing: 0; font-weight: 500; }
.ord-row { display: flex; align-items: center; gap: 6px; margin: 8px 0 6px; }
.ord-seq { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; }
.ord-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.ord-chip .ic { width: 15px; height: 15px; }
button.ord-chip:hover { border-color: var(--accent); color: var(--text); }
.ord-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ord-arrow { display: inline-flex; color: var(--text-3); }
.ord-arrow .ic { width: 14px; height: 14px; }
.ord-btn { flex: none; }
.ord-btn[disabled] { opacity: 0.35; pointer-events: none; }

/* new visit: several systems */
.st-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.st-tab { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.st-tab > button:first-child { height: 34px; padding: 0 12px; font-weight: 600; font-size: 13px; color: var(--text-2); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tab.on { border-color: var(--accent); background: var(--accent-soft); }
.st-tab.on > button:first-child { color: var(--accent); }
.st-tab-x { width: 28px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); border-left: 1px solid var(--border); }
.st-tab-x .ic { width: 14px; height: 14px; }
.st-tab-x:hover { color: var(--text); }
.st-add { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--border-2); color: var(--text-2); font-weight: 600; font-size: 13px; }
.st-add .ic { width: 15px; height: 15px; }
.st-add:hover { border-color: var(--accent); color: var(--accent); }
.preview-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; padding: 10px 14px 0; }
.pv-mini { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); text-align: left; color: #c3cfdf; }
.pv-mini.on { border-color: #35b8ee; background: rgba(53, 184, 238, 0.1); }
.pv-mini-svg { height: 64px; display: flex; }
.pv-mini-svg .thumb-svg { width: 100%; height: 100%; }
.pv-mini-t { font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }

/* Microsoft 365 connection helper */
.cn-copy { display: flex; gap: 8px; align-items: center; }
.cn-copy code { flex: 1; min-width: 0; overflow: auto; white-space: nowrap; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; background: var(--surface-3); }
.cn-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: 13px; }
.cn-list li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.cn-list li.ok { color: var(--ok); background: var(--ok-soft); }
.cn-list li.warn { color: var(--warn-ink); background: var(--warn-soft); }
.cn-list .ic { flex: none; margin-top: 2px; }
.cn-found { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }

/* phone: details panel minimised to a slim bar (item stays selected) */
@media (max-width: 899px) {
  .panel.peek { height: calc(92px + var(--safe-b)); }
  .panel.peek .p-scroll, .panel.peek .p-foot, .panel.peek .p-progress { display: none; }
  .panel.peek .p-head { cursor: pointer; }
  .panel.peek .p-head::after { content: attr(data-peek); position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 11px; color: var(--text-3); pointer-events: none; }
  .builder.panel-peek .dock { opacity: 0; pointer-events: none; }
  .p-head { touch-action: none; }
}

/* ---------- canvas edges: the sketch dissolves under the floating controls ---------- */
/* A scrim in the canvas colour plus a blur that fades out (progressive blur) at the top and bottom edge.
   Pointer events pass through; controls, banner and hints sit above it. */
.canvas-wrap::before, .canvas-wrap::after {
  content: ''; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.canvas-wrap::before {
  top: 0; height: 88px;
  background: linear-gradient(to bottom, var(--canvas) 0%, color-mix(in srgb, var(--canvas) 82%, transparent) 38%, color-mix(in srgb, var(--canvas) 35%, transparent) 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
  mask-image: linear-gradient(to bottom, #000 45%, transparent);
}
.canvas-wrap::after {
  bottom: 0; height: 76px;
  background: linear-gradient(to top, color-mix(in srgb, var(--canvas) 92%, transparent) 0%, color-mix(in srgb, var(--canvas) 50%, transparent) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent);
  mask-image: linear-gradient(to top, #000 40%, transparent);
}
.builder[data-mode="list"] .canvas-wrap::before, .builder[data-mode="list"] .canvas-wrap::after { display: none; }

/* floating controls: one quiet glass layer instead of opaque boxes on top of the tiles */
.stage-top .seg, .sys-btn, .sugg-btn, .cv-tools, .dock {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border-color: color-mix(in srgb, var(--border) 80%, transparent);
}
.sugg-btn { background: color-mix(in srgb, var(--surface) 78%, transparent); }

@media (max-width: 899px) {
  .canvas-wrap::before { height: 76px; }
  .canvas-wrap::after { height: 96px; } /* room for the + button */
  .dock { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; } /* the + button stays solid */
}

/* the browser can't store anything (private window / in-app browser) */
.sys-banner { position: fixed; z-index: 90; left: 12px; right: 12px; top: calc(8px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 14px; background: var(--danger); color: var(--status-ink); font-size: 13px; box-shadow: var(--shadow-3); }
.sys-banner .btn { align-self: flex-end; margin-top: 6px; }
.sys-banner b { font-size: 14px; }

/* Settings → Waiting to send (outbox) */
.outbox h5 { margin: 10px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); }
.ob-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 6px; }
.ob-row.failed { border-color: var(--danger); }
.ob-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.ob-t span { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.ob-row.failed .ob-t span { color: var(--danger); }

.submit-warn.strong { color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); }
.submit .fld { margin: 12px 0 4px; }

/* home: phone menu, compact visit list, collapsible handover inbox */
.phone-only { display: none; }
@media (max-width: 899px) {
  .phone-only { display: inline-flex; }
  .home-actions .wide-only { display: none; }
  .brand b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.vgrid.compact { grid-template-columns: 1fr; gap: 8px; }
.vgrid.compact .vcard { display: grid; grid-template-columns: 76px minmax(0, 1fr); }
.vgrid.compact .vcard-thumb { height: auto; min-height: 76px; }
.vgrid.compact .vcard-body { padding: 8px 10px 8px 12px; gap: 1px; }
.vgrid.compact .vcard-meta { margin-top: 2px; }
.vgrid.compact .vcard-foot { margin-top: 4px; }
.vgrid.compact .vcard-comment { margin-top: 4px; }
.inbox h2 > span { flex: 1; }
.inbox h2 .btn { margin-left: auto; }
.inbox-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; }
.inbox.closed h2 { margin-bottom: 0; }
.toast.danger { border-left: 3px solid var(--danger); }

/* Quick Shape: typeable counts */
.qs-v { width: 44px; height: 36px; text-align: center; font: inherit; font-weight: 750; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 0; }
.qs-v:hover { border-color: var(--border); }
.qs-v:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.qs-v:disabled { color: var(--text-3); }
.fld.is-missing .inp:not(:focus) { border-color: var(--warn); }

/* Copy details to… */
.copy-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 50vh; overflow: auto; }
.copy-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }
.copy-row input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.copy-row span { display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; }
.copy-row small { color: var(--text-3); font-size: 12px; }

/* a number field with something that is not a number */
.fld.is-bad .inp { border-color: var(--danger); }
.bad-hint { font-size: 12px; font-weight: 600; color: var(--danger); margin-top: 3px; }

/* Review: the row and every tag are links */
.rv-row { cursor: pointer; }
.rv-row .row-title { border: 0; background: none; padding: 0; font-family: inherit; color: inherit; text-align: left; cursor: pointer; max-width: 100%; }
.rv-tags .tag { border: 0; font-family: inherit; cursor: pointer; }
.rv-tags .tag:hover { filter: brightness(0.95); text-decoration: underline; text-underline-offset: 2px; }

/* system overview: compressor rooms */
.ov-rooms { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.ov-rooms-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.ov-rooms-t span { color: var(--text-3); font-size: 12px; }
.ov-rooms output { min-width: 32px; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
