
/* BLACK AND WHITE. Clay, 2026-09-27: "light and dark is white and black... not all the other
   stuff. I want to keep the colour coding down, very simple."

   So dark is truly black and light is truly white -- no tinted greys pretending to be neutral. Colour
   appears in exactly three places and nowhere else: the accent (one per tenant), a red for
   something genuinely wrong, and an amber for something stale. A board is black type on white,
   like a spreadsheet, because that is what people can read all day. */
:root{
  --bg:#000000; --surface:#0a0a0a; --hover:#1b1b1b; --border:#333333; --text:#ffffff; --muted:#8c8c8c;
  /* row-alt is the zebra stripe, and it earns its value from a screenshot rather than from
     taste: #0f0f0f against #000000 was invisible at 100%, which makes the stripe decorative
     instead of what it is for -- keeping your eye on one row across twelve columns. */
  --accent:#00a54f; --accent-text:#ffffff; --row-alt:#171717; --head:#202020;
  --accent-ink:var(--accent); --accent-fill:#008841; --ink-to:#ffffff;
  /* THE REST OF THE ACCENT SET (Clay 2026-10-25, "allow them to brand themselves"): the pressed
     shade, the selected-row tint and the focus ring. These lines are GREEN, the default; a company
     that picked another accent in Settings -> Branding gets app/branding.py's block after this one.
     The selftest pins every value here against branding.PALETTE["green"]. */
  --accent-hover:#007437; --accent-tint:#0b2e1b; --focus:#00a54f;
  --warn-bg:#241c08; --warn-border:#5c4d1f; --bad:#ff6b6b;
  --tool-bg:#0d1f3a; --tool-border:#2f63b5;
  /* D-TBD — DESIGN TOKENS: spacing steps, type scale, radius scale.
     Breakpoints cannot be CSS custom properties (they live in @media only);
     the canonical widths are phone ≤760px and tablet ≤1100px.
     The ratchet rules FV2-S1/S2/S3 (fv2_lint) count bypasses of these tokens. */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px; --sp-6:32px;
  --fz-xs:11px; --fz-sm:12px; --fz-base:14px; --fz-lg:16px; --fz-xl:19px;
  --r-sm:4px; --r-md:6px; --r-lg:8px; --r-xl:10px;
}
/* LIGHT APPLIES TWO WAYS, and the second one is what makes "Follow my device" mean anything.
   The attribute is an explicit choice -- from the header toggle, or from a preference stored
   against the person. The media query is the fallback for somebody who has chosen neither: with
   no attribute at all, a phone set to light gets light. Without it, "system" silently meant
   "dark", which is a preference the app invented on the person's behalf.
   The two declaration lists are identical on purpose and a selftest pins them, because two
   copies of a palette is exactly the kind of thing that drifts by one hex value and is then
   visible only on one of the two paths. */
:root[data-theme="light"]{
  --bg:#ffffff; --surface:#ffffff; --hover:#f1f1f1; --border:#cccccc; --text:#000000; --muted:#666666;
  --accent:#00a54f; --accent-text:#ffffff; --row-alt:#f0f0f0; --head:#e4e4e4;
  --accent-ink:#007437; --accent-fill:#008841; --ink-to:#000000;
  --accent-hover:#007437; --accent-tint:#e3f4ea; --focus:#00a54f;
  --warn-bg:#fdf6e3; --warn-border:#d8c48a; --bad:#c62828;
  --tool-bg:#e6effb; --tool-border:#7fa3d9;
}
@media (prefers-color-scheme: light){
  :root:not([data-theme]){
  --bg:#ffffff; --surface:#ffffff; --hover:#f1f1f1; --border:#cccccc; --text:#000000; --muted:#666666;
  --accent:#00a54f; --accent-text:#ffffff; --row-alt:#f0f0f0; --head:#e4e4e4;
  --accent-ink:#007437; --accent-fill:#008841; --ink-to:#000000;
  --accent-hover:#007437; --accent-tint:#e3f4ea; --focus:#00a54f;
  --warn-bg:#fdf6e3; --warn-border:#d8c48a; --bad:#c62828;
  --tool-bg:#e6effb; --tool-border:#7fa3d9;
  }
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);
     font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
/* ---- offline ----
   The bar only appears when the app is genuinely serving from cache. It carries the AGE of what
   is on screen, because "offline" alone tells somebody nothing useful: a lockbox code from ten
   minutes ago is fine, the same code from last week is a locked door and a wasted trip. */
.offline-bar{display:none;padding:9px 14px;background:var(--warn-bg);color:var(--text);
     border-bottom:1px solid var(--warn-border);font-size:13px;
     padding-top:calc(9px + env(safe-area-inset-top,0px))}
.offline-bar.on{display:block}
/* Installed on a notched phone, the app owns the whole screen -- so the shell has to keep its
   own content out of the rounded corners and away from the home indicator. */
header.app{padding-top:calc(10px + env(safe-area-inset-top,0px))}
footer.app{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
.offline-bar.on ~ header.app{padding-top:10px}
a{color:var(--accent-ink)}
header.app{display:flex;align-items:center;gap:16px;padding:10px 16px;
           background:var(--surface);border-bottom:1px solid var(--border)}
header.app .name{font-weight:600;font-size:16px}
header.app .spacer{flex:1}
header.app button,header.app a.btn{font:inherit;cursor:pointer;background:none;color:var(--text);
           border:1px solid var(--border);border-radius:6px;padding:4px 10px;text-decoration:none}
nav.app{display:flex;flex-wrap:wrap;gap:2px;padding:6px 16px;background:var(--surface);
        border-bottom:1px solid var(--border)}
nav.app a,nav.app span{padding:5px 10px;border-radius:6px;text-decoration:none;color:var(--muted)}
nav.app a:hover{background:var(--bg)}
nav.app a.on{background:var(--accent-fill);color:var(--accent-text)}
nav.app span.off{opacity:.45;cursor:not-allowed}
nav.app .divider{width:1px;background:var(--border);margin:2px 8px;padding:0}
main{padding:16px;max-width:100%}
h1{font-size:19px;margin:0 0 4px}
.sub{color:var(--muted);margin:0 0 14px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:16px;
      max-width:620px}
.notice{background:var(--warn-bg);border:1px solid var(--warn-border);border-radius:8px;
        padding:12px 14px;margin:0 0 14px;max-width:820px}
.notice.bad{border-color:var(--bad)}
/* ---- settings (Clay 2026-10-25: "uses 1/3 of screen") ----
   Every page filed under Settings is wrapped in .settings-page by page(): the full content width up
   to 1200px, cards and notices as wide as the page, and on a desktop a form row is label | field.
   The index is a grid of compact cards, 3 to 4 across on a desktop, one on a phone. */
/* Clay 2026-10-25: "settings pages still don't use full screen they seem limited and not aware of user
   screen size, are they optimized for mobile also?" So the 1200px cap is gone: the page is as wide as
   the content area (the app's normal 16px side padding is main's), whatever the screen. A stack of
   independent cards is wrapped in .st-cards where the page builds it and flows into columns on a wide
   screen; a text box stays a readable width (640px) however wide its card is, and a table has the lot. */
.settings-page{width:100%;max-width:none}
.settings-page .card,.settings-page .notice,.settings-page .conn-card,.settings-page .pf,
.settings-page .bf-tablewrap,.settings-page .bf-opts,.settings-page .bf-add,.settings-page .in-form{max-width:none}
.settings-page .card+.card{margin-top:12px}
.st-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(460px,100%),1fr));gap:12px;align-items:start;margin:12px 0}
.st-cards>.card,.st-cards>.card+.card{margin:0;min-width:0}
.st-cards>.st-span{grid-column:1/-1}
/* a Save on a settings card is the house button, not the browser's grey one (audit 2026-10-31) */
.st-cards .card form button{font:inherit;font-weight:600;padding:6px 14px;border-radius:6px;border:1px solid var(--accent);background:var(--accent-fill);color:var(--accent-text);cursor:pointer;min-height:34px}
.st-cards .card form select{font:inherit;padding:6px 8px;border-radius:6px;border:1px solid var(--border);background:var(--surface);color:var(--text);max-width:100%}
.settings-page :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select,textarea){max-width:640px}
.settings-page .st-wide :is(input,select,textarea){max-width:none}
.settings-page :is(.bd-wrap,.in-scroll,.ph-t){max-width:100%}
.settings-page table.bd,.settings-page .bd-wrap{width:100%}
.st-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin:12px 0}
.st-go{display:inline-flex;align-items:center;min-height:44px}
.st-card{position:relative;display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--border);
     border-radius:8px;background:var(--surface);color:var(--text)}
.st-card:hover,.st-card:focus-within{border-color:var(--accent)}
.st-card strong a{color:inherit;text-decoration:none}.st-card strong a::after{content:"";position:absolute;inset:0}
.st-card .sub{margin:0;font-size:13px;line-height:1.4}
.st-form{display:grid;grid-template-columns:minmax(160px,240px) minmax(0,1fr);gap:10px 18px;align-items:start}
.st-form>.st-l{font-weight:600;padding-top:6px}.st-form .sub{margin:4px 0 0}
.settings-page .conn-f{display:grid;grid-template-columns:minmax(160px,240px) minmax(0,560px);column-gap:18px;row-gap:3px}
.settings-page .conn-f>span{grid-column:1;padding-top:9px}.settings-page .conn-f>input,.settings-page .conn-f>em{grid-column:2}
/* A SETTINGS TABLE IS NOT A BOARD: it must not scroll inside its own box. `.bd-wrap` caps a board
   at 72vh so the column headings stay put while you scroll rows; on a settings page that cap cut
   the last row in half (found 2026-10-27, rendering Settings -> Automations, whose rows are whole
   paragraphs). It needs BOTH class names to beat `.bd-wrap`, which is defined further down this
   same stylesheet -- `.st-bd` alone ties on specificity and loses on order, so it did nothing. */
.bd-wrap.st-bd{max-height:none}.st-bd table.bd tbody td{vertical-align:top}
.st-bd table.bd td.wrap{white-space:normal;max-width:none;min-width:180px}
/* SETTINGS ON A PHONE (Clay 2026-10-25: "are they optimized for mobile also?"): one column with the app's
   16px gutter, nothing wider than the screen (a table scrolls inside its own box, long words wrap),
   every button, box and tick at least 44px to touch, text boxes 16px so the browser does not zoom in. */
@media (max-width:760px){
  .settings-page{min-width:0;overflow-wrap:anywhere}
  .st-grid,.st-cards{grid-template-columns:1fr}
  .settings-page :is(table.ph-t,table.br-log){display:block;overflow-x:auto;max-width:100%}
  .settings-page .bd-wrap,.settings-page .ai-tbl,.settings-page .in-scroll{overflow-x:auto;max-width:100%}
  .settings-page :is(button,a.btn,.btn,select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file])){min-height:44px}
  .settings-page :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px;max-width:100%;width:100%;box-sizing:border-box}
  .settings-page :is(input[type=checkbox],input[type=radio]){width:22px;height:22px}
  .settings-page label:has(>input[type=checkbox],>input[type=radio]){min-height:44px;display:flex;align-items:center;gap:8px}
  .settings-page .st-card{min-height:44px}
  /* A settings card's OWN link is the tap target the phone QA measures (it counts the <a>, not the card):
     size it to the 44px floor like every other control above, so a new card can never be a small target.
     The /usage card made Settings the 13th card link and tripped the mobile ratchet (TODO 1772, held 1.88.51). */
  .st-card strong{display:block}
  .st-card strong a{display:flex;align-items:center;min-height:44px}
}
/* THE SHARED SETTINGS FORM (Clay 2026-10-25, on /inspections/templates: "looks kind of misaligned and
   clunky"): a card of settings is a .st-form -- sentence-case label | field on a desktop, label above
   field on a phone, every box one height, a section heading the house size (not the browser's 26px h2),
   notes and the Save row spanning the grid. Any page can use it: a new form is laid out right without
   remembering how. */
.st-wide{max-width:none}
.card h2,.st-h{font-size:15px;line-height:1.3;margin:0 0 6px;font-weight:600}
.st-form>.st-h,.st-form>.st-note,.st-form>.st-act{grid-column:1/-1;margin:0}
.st-form>.st-h:not(:first-child){margin-top:10px;padding-top:12px;border-top:1px solid var(--border)}
.st-form>.st-note{font-size:12.5px;color:var(--muted);line-height:1.45}
.st-form>.st-l{font-weight:600;font-size:13px;text-transform:none;letter-spacing:normal;color:var(--text)}
.st-form :is(input:not([type=checkbox]):not([type=radio]),select){height:36px;box-sizing:border-box}
.st-form :is(input,select,textarea){width:100%;max-width:640px;box-sizing:border-box;font:inherit;font-size:14px;
     padding:6px 10px;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--text)}
.st-form textarea{padding:8px 10px;line-height:1.4}
.st-form .st-field>.sub,.st-form .st-field>.st-hint{display:block;margin:4px 0 0;font-size:12px;color:var(--muted)}
.st-form>.st-act{display:flex;gap:8px;align-items:center}
@media (max-width:760px){.st-form,.settings-page .conn-f{grid-template-columns:1fr}
  .settings-page .conn-f>span,.settings-page .conn-f>input,.settings-page .conn-f>em{grid-column:1;padding-top:0}
  .st-form>.st-l{padding-top:0}.st-form{gap:6px 0}.st-form>.st-field{margin-bottom:8px}
  .st-form :is(input:not([type=checkbox]):not([type=radio]),select){height:44px}
  .st-form :is(input,select,textarea){font-size:16px;max-width:100%}.st-form>.st-act .ix-btn,.st-form>.st-act button{min-height:44px}}
/* ---- ROW ACTIONS (Clay 2026-10-25, "same issues we have had in other areas of the apps with buttons
   misaligning") ----
   The actions at the end of a table row are ONE group: side by side, a 6px gap, a fixed compact height,
   never stretched to the row, and lined up with the row's first line of text. A button's height was
   being decided by whatever stylesheet the page happened to load (44px in one, a form's block flow in
   another), which is why Edit and "Make a copy" sat at different heights. This is the one place that
   decides it; selftest fails a <td> with two buttons that is not wrapped in it (row_actions()). */
.row-actions{--ra-h:32px;display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center;vertical-align:top;max-width:100%}
.row-actions form{display:inline-flex;align-items:center;gap:6px;margin:0}
.row-actions.row-actions :is(button,a.btn,a.ix-btn,.btn,.ix-btn,.vp-btn,input:not([type=hidden]),select){
     height:var(--ra-h);min-height:var(--ra-h);box-sizing:border-box;margin:0;align-self:center;line-height:1;white-space:nowrap}
.row-actions.row-actions :is(button,a.btn,a.ix-btn,.btn,.ix-btn,.vp-btn){
     display:inline-flex;align-items:center;justify-content:center;padding:0 12px;text-decoration:none}
td>.row-actions{margin-block:calc((18px - var(--ra-h)) / 2)}
td:has(>.row-actions){vertical-align:top;white-space:normal}
@media (pointer:coarse),(max-width:760px){.row-actions{--ra-h:44px}}
/* ---- connections ----
   A stacked form, because it is the one screen in the app where a mis-typed value is invisible
   afterwards: nothing here can be read back to check, so every box gets its own line and its own
   sentence of explanation rather than being packed two-up to save height. */
.conn-card{max-width:560px;margin-top:18px}
.conn-f{display:flex;flex-direction:column;gap:3px;margin:0 0 13px}
.conn-f>span{font-size:13px;font-weight:600}
.conn-f input{font:inherit;padding:9px 10px;border:1px solid var(--border);border-radius:6px;
        background:var(--bg);color:var(--text)}
.conn-f em{font-size:12px;color:var(--muted);font-style:normal}
.conn-act{display:flex;gap:10px;align-items:center;margin-top:4px}
.conn-act button.primary{font:inherit;font-weight:700;padding:9px 16px;border-radius:6px;border:none;background:var(--accent-fill);color:var(--accent-text);cursor:pointer;min-height:40px}  /* mobile UAT #16: was the browser default */
.conn-act a.btn{font:inherit;font-size:13px;color:var(--text);border:1px solid var(--border);
        border-radius:6px;padding:7px 12px;text-decoration:none}
.conn-foot{font-size:12px;margin:14px 0 0}
/* A radio option is a whole row, tappable anywhere along it. A 16px control alone is a small
   target on a phone, and the label beside it is the part a thumb actually goes for. */
.pref-opt{display:flex;gap:12px;align-items:flex-start;padding:12px;margin:0 0 8px;
        border:1px solid var(--border);border-radius:8px;cursor:pointer}
.pref-opt:hover{background:var(--bg)}
.pref-opt input{margin-top:3px;width:18px;height:18px;accent-color:var(--accent)}
.pref-opt b{display:block;font-size:14px}
.pref-opt em{display:block;font-style:normal;color:var(--muted);font-size:12px;margin-top:2px}
/* Status stays black and white except for a failure, which is the one thing on the screen that
   has to be seen without being read. */
.pill{font-size:12px;border:1px solid var(--border);border-radius:99px;padding:1px 9px;
        color:var(--muted);white-space:nowrap}
.pill.bad{color:var(--bad);border-color:var(--bad);font-weight:600}
.pill.ok{color:var(--text)}
/* STATUS LABELS, Monday-style: a status column's values are filled chips, the picker is the
   same chips in a grid, the empty value is grey (Clay 2026-10-08). Colours come from the
   option's position in the column's option list, not from the theme: they are the data's. */
.lab{display:inline-block;min-width:88px;max-width:100%;box-sizing:border-box;text-align:center;font-size:12px;font-weight:500;
     line-height:24px;padding:0 10px;border-radius:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;user-select:none}
/* A status cell IS its colour, edge to edge, the way Monday draws it -- not a button sitting
   inside a cell (Clay 2026-10-09, screenshot of the Directory). height:1px on the cell is what
   lets the label's height:100% fill a row that grew taller than the label. */
table.bd td.labcell{padding:0;height:1px}
table.bd td.labcell .lab{display:flex;align-items:center;justify-content:center;width:100%;height:100%;
     min-width:0;min-height:36px;border-radius:0;padding:0 10px}
table.bd td.labcell.sel .lab{box-shadow:inset 0 0 0 2px var(--accent),inset 0 0 0 3px var(--surface)}
.pop.labpick{width:220px;padding:8px}
.vtabs{display:flex;align-items:flex-end;gap:2px;border-bottom:1px solid var(--border);margin:0 0 10px;overflow-x:auto;scrollbar-width:thin}
.vtab{display:flex;align-items:center;gap:0;padding:0 2px 0 10px;border-bottom:2px solid transparent;white-space:nowrap;border-radius:6px 6px 0 0}
.vtab a{color:var(--muted);text-decoration:none;font-size:14px;padding:9px 2px;display:inline-flex;gap:5px;align-items:center}
.vtab.on{border-bottom-color:var(--accent)}
.vtab.on a{color:var(--text);font-weight:600}
.vtab:hover{background:var(--hover)}
.vtab .vmore{visibility:hidden;border:none;background:none;color:var(--muted);cursor:pointer;width:26px;height:26px;border-radius:4px;font-size:15px;line-height:1}
.vtab:hover .vmore,.vtab.on .vmore,.vtab .vmore:focus-visible{visibility:visible}
.vtab .vmore:hover{background:var(--head)}
.vtabs .vadd{border:none;background:none;font-size:20px;line-height:1;padding:6px 12px;color:var(--muted);cursor:pointer;border-radius:6px}
.vtabs .vadd:hover{color:var(--text);background:var(--hover)}
.vtab .vt-ic svg{width:12px;height:12px;vertical-align:-1px;color:var(--muted)}
.vtab .vt-shared{font-size:10px;font-weight:600;color:var(--muted);border:1px solid var(--border);border-radius:8px;padding:0 5px;margin-right:4px;vertical-align:1px}
.pop.addcol .row button[data-a=this],.pop.addcol .row button[data-a=new]{min-height:44px;min-width:44px}
.pop.addcol .row button[data-a=this]:disabled{opacity:.45;cursor:not-allowed;background:var(--surface);color:var(--muted);border:1px solid var(--border)}
@media (pointer: coarse){.vtab .vmore{visibility:visible}}
/* Item 12: a tab being carried (mouse drag, or a finger's hold-and-slide); no iOS link callout on the hold. */
/* THE CARRIED TAB IS THE GAP (Clay QA 2026-10-25, stripDrag): lifted, faded, outlined, an accent bar on the edge where it lands. */
.vtab.vt-drag{opacity:.6;background:var(--hover);outline:2px dashed var(--accent);outline-offset:-2px;box-shadow:inset 3px 0 0 var(--accent),0 6px 14px rgba(0,0,0,.18);transform:translateY(-2px)}
.vtab a{-webkit-touch-callout:none}
/* Item 16: a private view that shares its name with a view for everyone. */
.vtab .vt-mine{font-size:10px;line-height:1;padding:2px 5px;border:1px solid var(--border);border-radius:99px;color:var(--muted);margin-left:2px;font-weight:500}
.pop .vconfirm{margin:0 0 6px;font-size:13px;max-width:280px}.pop .vconfirm.strong{font-weight:600}
.bd-bar .bd-save.dirty{background:var(--accent-fill);color:var(--accent-text,#fff);border-color:var(--accent)}
/* A CALENDAR PAGE RUNS ON THE BOARD'S TABLE (Clay 2026-10-27): the table is its engine and is not drawn;
   the toolbar's Person, Filter, Sort and Save view stay, and the cards mirror the rows (mirrorCards). */
.lay-host .bd-wrap,.lay-host .pager,.lay-host .bd-groupby,.lay-host .bd-unhide,.lay-host .bd-additem,.lay-host .bd-export,.lay-host .bd-new,.lay-host .bd-color{display:none!important}
.bd-bar .bd-fold{border:none;background:none;color:var(--muted);cursor:pointer;width:30px;height:30px;border-radius:50%;margin-left:auto;display:inline-flex;align-items:center;justify-content:center}
.bd-bar .bd-fold:hover{background:var(--hover)}
/* D-197: Trash and Archived live in the toolbar's ... menu, not as pills above the tabs. */
.bd-bar .bd-more{position:relative}.bd-bar .bd-more summary{list-style:none;cursor:pointer;letter-spacing:1px}
.bd-bar .bd-more summary::-webkit-details-marker{display:none}
.bd-more-menu{position:absolute;right:0;top:calc(100% + 4px);z-index:20;min-width:200px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 22px rgba(0,0,0,.14);padding:4px;display:flex;flex-direction:column}
.bd-more-menu .bm-x{display:flex;justify-content:space-between;gap:12px;padding:8px 10px;border-radius:6px;color:var(--text);text-decoration:none}
.bd-more-menu .bm-x:hover{background:var(--hover)}
.bd-where{margin:0 0 6px}
.bd-bar .bd-fold svg{width:16px;height:16px;transition:transform .15s}
.bd-bar .bd-fold.folded svg{transform:rotate(180deg)}
.fv-folded{display:none!important}
.bd-bar .bd-new{background:var(--accent-fill);color:var(--accent-text,#fff);border:none;border-radius:6px;padding:6px 14px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
table.bd td.wrap{white-space:normal;word-break:break-word;overflow:hidden;text-overflow:clip;min-width:120px;max-width:260px}
table.bd th.wrap{max-width:260px}
/* A PINNED board (fixed layout, every column given its width on load) sizes columns by their heading
   alone. There the 260px cap only fought the drag: the column stopped at 260 while the table grew by the
   whole drag, so the browser handed the difference to every OTHER column (Clay, the voucher pre-audit). */
table.bd.pinned th.wrap,table.bd.pinned td.wrap{max-width:none;min-width:0}
table.bd td .clamp{display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;max-width:100%;overflow-wrap:anywhere}
table.bd[data-hh="2"] thead th .nm,table.bd[data-hh="3"] thead th .nm{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;line-height:1.25}
table.bd[data-hh="2"] thead th .nm{-webkit-line-clamp:2}
table.bd[data-hh="3"] thead th .nm{-webkit-line-clamp:3}
table.bd[data-hh="2"] thead th{height:52px}
table.bd[data-hh="3"] thead th{height:70px}
.pop.fmtpop .fmts{display:grid;gap:4px;margin:6px 0}
.pop.fmtpop .fmt{text-align:left;font:inherit;font-size:13px;padding:7px 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);cursor:pointer}
.pop.fmtpop .fmt:hover{background:var(--hover)}
.pop.fmtpop .fmt.cur{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
table.bd th.collapsed,table.bd td.collapsed{width:34px !important;min-width:34px;max-width:34px;padding-left:4px;padding-right:4px;overflow:hidden;white-space:nowrap;text-overflow:clip}
table.bd th.collapsed{cursor:pointer;text-align:center}
table.bd th.collapsed::after{content:"\203A";display:block;font-size:18px;line-height:1;color:var(--muted)}  /* the chevron that opens it (a collapsed heading has no name on screen) */
table.bd th.collapsed .nm,table.bd th.collapsed .lk,table.bd th.collapsed .arrow,table.bd th.collapsed .src,table.bd th.collapsed .kebab{display:none}
table.bd td.collapsed > *{visibility:hidden}
table.bd td.collapsed{color:transparent}
.pop.labpick.editing{width:280px}
.pop.labpick button.labedit{border:none;background:none;width:100%;cursor:pointer;font:inherit}
.led{display:grid;gap:6px}
.led .lrow{display:flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:6px;padding:3px}
.led .lsw{width:26px;height:26px;border:none;border-radius:4px;cursor:pointer;flex:none}
.led .lnm{flex:1;min-width:0;font:inherit;font-size:13px;border:none;background:transparent;color:var(--text);padding:4px}
.led .lnm:focus{outline:2px solid var(--accent);outline-offset:0;border-radius:4px}
.led .lmore{border:none;background:none;cursor:pointer;color:var(--muted);font-size:16px;width:26px;height:26px;flex:none}
.led .lmore:hover{background:var(--hover);border-radius:4px}
.led .lpal{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;padding:2px}
.led .lpc{aspect-ratio:1;width:100%;border:none;border-radius:4px;cursor:pointer}
.led .lpc.cur{outline:2px solid var(--text);outline-offset:1px}
.led .lmenu{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:6px;overflow:hidden}
.led .lmenu button{text-align:left;border:none;background:var(--surface);padding:8px 10px;font:inherit;font-size:13px;cursor:pointer;color:var(--text)}
.led .lmenu button:hover{background:var(--hover)}
.led .lmenu .danger{color:#d83a52}
.led .ldsc{font-size:11px;color:var(--muted);padding:0 6px;margin-top:-3px}
.led .ldesc textarea{width:100%;box-sizing:border-box;font:inherit;font-size:13px;padding:6px;border:1px solid var(--accent);border-radius:6px;background:var(--surface);color:var(--text)}
.led .lcount{font-size:11px;color:var(--muted);text-align:right}
.led .lbtns{display:flex;gap:8px;justify-content:flex-end}
.led .lbtns button{font:inherit;font-size:13px;padding:6px 12px;border-radius:6px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer}
.led .lbtns button.primary{background:var(--accent-fill);border-color:var(--accent);color:var(--accent-text)}
.led .lnew{border:1px solid var(--border);background:var(--surface);padding:7px;border-radius:6px;cursor:pointer;font:inherit;font-size:13px;color:var(--text)}
.led .lerr{color:#d83a52;font-size:12px}
.led .lerr:empty{display:none}
.led .sub{font-size:12px;color:var(--muted)}
.pop.labpick .labs{display:grid;grid-template-columns:1fr;gap:6px}
.pop.labpick .labopt{display:block;width:100%;height:32px;border:none;border-radius:5px;font:inherit;font-size:13px;font-weight:500;cursor:pointer;text-align:center;padding:0 10px}
.pop.labpick .labopt:hover,.pop.labpick .labopt:focus-visible{filter:brightness(1.08);outline:2px solid var(--text);outline-offset:1px}
.pop.labpick .labopt.cur{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--text)}
.pop.labpick .labedit{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text);text-decoration:none;padding:6px 4px;border-radius:6px}
.pop.labpick .labedit:hover{background:var(--hover)}
.pop.labpick .labedit svg{width:16px;height:16px}
a.rowact{font-size:12px;color:var(--text)}
@media (max-width: 560px){
  /* 16px or iOS zooms the page on focus -- same reason as the sign-in form. */
  .conn-f input{font-size:16px;padding:11px}
}
/* Touch screens get finger-sized controls (fieldvine-rubric 5: tap targets ~44px). The phone
   pass in fv_qa_click.py counted the board toolbar, the column "..." menus and the account menu
   under 32px on every board (shore-up 2026-10-09). Mouse users keep the compact desktop sizes. */
@media (pointer: coarse), (max-width: 600px){
  .bd-bar .bd-filter,.bd-bar .bd-sort,.bd-bar .bd-unhide,.bd-bar .bd-groupby,
  .bd-bar .bd-save,.bd-bar .bd-reset,.bd-bar a.btn,.bd-bar .bd-views,.bd-bar .bd-group,.bd-bar .bd-new{min-height:40px}
  table.bd thead th .kebab{min-width:36px;min-height:36px;opacity:.8}
  .acct-item{padding:12px}
  a.vchip{min-height:40px;display:inline-flex;align-items:center}
  /* .views .vchip (30px, later in this sheet) out-ranked a.vchip, so the chips measured 31px on a phone; and the
     toolbar's Highlight button was left out of the list above (QA 2026-10-31, TODO 1036) */
  .views a.vchip,.bd-bar .bd-color{min-height:40px}
  .bd-bar .bsrch-go{min-height:40px}
  /* 16px or iOS zooms the page on focus; the open box fits the row on a phone */
  .bd-bar .bsrch:focus-within input[type=search],.bd-bar .bsrch.open input[type=search]{width:min(200px,46vw);font-size:16px}
}
footer.app{padding:14px 16px;color:var(--muted);border-top:1px solid var(--border);
           margin-top:24px;display:flex;flex-wrap:wrap;gap:14px}
/* ---- sign in ---- */
.signin{max-width:420px;margin:8vh auto 0;padding:0 24px;text-align:center}
/* THE LOGO ONLY, a direct child (Clay 2026-10-25 QA: the Microsoft icon sat "up and left" of its
   text). `.signin svg` also caught the button's svg and the vault icons -- display:block with auto
   side margins pulled the four squares out of the button's row. */
.signin > svg{display:block;margin:0 auto 22px}
.wordmark{font-size:44px;font-weight:800;letter-spacing:-1px;margin:0}
.tagline{color:var(--muted);font-size:17px;margin:8px 0 34px}
.signin-sso{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;box-sizing:border-box;
 padding:12px 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);
 text-decoration:none;font-weight:600;font-size:16px;min-height:48px}
.signin-sso:hover{background:var(--row-alt)}
.signin-sso .signin-ms{display:inline-block;flex:none;margin:0}
.signin-or{color:var(--muted);font-size:13px;margin:14px 0 10px}
.signin-form{display:flex;flex-direction:column;gap:14px;text-align:left}
.signin-form label{display:flex;flex-direction:column;gap:6px}
.signin-form label span{font-size:13px;color:var(--muted)}
.signin-form input{font:inherit;padding:13px 14px;border-radius:10px;
     border:1px solid var(--border);background:var(--surface);color:var(--text)}
.signin-form input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
.signin-form button.primary{font:inherit;font-weight:700;padding:14px;border-radius:10px;
     border:none;background:var(--accent-fill);color:var(--accent-text);cursor:pointer;margin-top:6px}
.signin-vault{margin:28px auto 0;max-width:720px;text-align:left}.signin-vault .vault-h{text-align:center;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 12px}.vault-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px}.vault-card{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:var(--surface)}.vault-card svg{flex:none;margin-top:2px;color:var(--accent-ink)}.vault-card strong{display:block;font-size:13px;margin-bottom:2px}.vault-card span{font-size:12px;color:var(--muted);line-height:1.45}.signin-vault .vault-f{text-align:center;font-size:11px;color:var(--muted);margin:12px 0 0}
.signin-note{color:var(--muted);font-size:14px;margin:22px 0 0;line-height:1.5}
.signin-link{margin:18px 0 0}
.signin-link a{color:var(--accent-ink);font-weight:600;text-decoration:none}
.signin-error{background:var(--warn-bg);border:1px solid var(--warn-border);color:var(--text);
     border-radius:8px;padding:10px 12px;font-size:14px;margin:0 0 16px}
/* ---- avatar: the photo sits on top of the initial, which shows through if it 404s ---- */
.avatar-stack{position:relative;overflow:hidden;padding:0}
.avatar-stack .avatar-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  border-radius:50%;z-index:1}
.avatar-stack .avatar-ini{font-style:normal;display:flex;align-items:center;justify-content:center;
  width:100%;height:100%}

/* ---- my profile ---- */
.pf{max-width:560px}
.pf h1{margin:0 0 4px}
.pf-row{display:block;margin:0 0 16px}
.pf-lab{display:block;font-size:13px;font-weight:700;letter-spacing:.2px;margin-bottom:6px}
.pf-hint{display:block;font-size:12px;opacity:.68;font-style:normal;margin-top:5px}
.pf-row input{width:100%;box-sizing:border-box}
.pf-static{font-size:14px;opacity:.85}
.pf-photo{display:flex;gap:18px;align-items:flex-start;flex-wrap:wrap;margin:18px 0 22px}
.pf-photo-ctl{flex:1;min-width:220px}
.pf-face{width:84px;height:84px;border-radius:50%;flex:0 0 auto;display:inline-flex;
  align-items:center;justify-content:center;font-size:32px;font-weight:700;object-fit:cover;
  overflow:hidden;background:var(--accent-fill);color:var(--accent-text)}
.pf-check{display:inline-flex;align-items:center;gap:7px;font-size:12px;margin-top:10px;
  cursor:pointer}
.pf-check input{width:auto}
.pf-save{margin-top:6px}

/* ---- account menu ---- */
.acct{position:relative}
.acct summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;
     padding:4px 8px;border:1px solid var(--border);border-radius:99px}
.acct summary::-webkit-details-marker{display:none}
.avatar{width:26px;height:26px;border-radius:50%;background:var(--accent-fill);color:var(--accent-text);
     display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px}
.acct .who{font-size:14px}
.acct .caret{color:var(--muted);font-size:11px}
.acct-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;z-index:20;
     background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:6px;
     box-shadow:0 12px 30px rgba(0,0,0,.45),0 0 0 1px color-mix(in srgb,var(--text) 14%,transparent)}
/* every row the same height, link or button (Light or dark was 38px beside 58px rows) */
.acct-item{min-height:38px;box-sizing:border-box}
.acct-item[hidden]{display:none}
.acct-item{display:block;padding:9px 12px;border-radius:8px;cursor:pointer;
     color:var(--text);text-decoration:none}
.acct-item:hover{background:var(--bg)}
header.app button.acct-item{width:100%;text-align:left;font:inherit;background:none;border:0;padding:9px 12px;border-radius:8px}
/* An item that is not built says so, rather than looking clickable and doing nothing. There is
   no hover state and no pointer: on a phone there is no hover at all, so the only signal a
   tooltip would give is one Clay could never see. */
.acct-item.off{cursor:not-allowed}
.acct-item.off:hover{background:none}
.acct-item.off b{color:var(--muted);font-weight:500}
.acct-item.off em{opacity:.8}
.acct-sect{padding:10px 12px 4px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);border-top:1px solid var(--border);margin-top:6px}
.acct-sep{border-top:1px solid var(--border);margin:6px 0 2px}.acct-out b{color:var(--muted)}.acct-here{cursor:default}.acct-here b{color:var(--accent-ink,var(--text))}
.acct-item b{display:block;font-weight:600;font-size:14px}
.acct-item em{display:block;font-style:normal;color:var(--muted);font-size:12px;margin-top:2px}
/* ---- the board selector, top left ----
   It replaced a row of tabs. Tabs are fine at five boards and unusable at twenty, and they cost
   a line of vertical space on every screen to show what is mostly not being looked at. */
.bm{position:relative;min-width:0;flex:0 1 auto}  /* shrinks before the header overflows (a long screen name on /knowledge pushed it 15px past a 390px phone) */
.bm > summary{min-width:0}
.bm summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;
     padding:5px 10px;border:1px solid var(--border);border-radius:8px}
.bm summary::-webkit-details-marker{display:none}
.bm-now{display:inline-block;vertical-align:middle;font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(48vw,320px)}
@media (max-width: 600px){ header.app{gap:8px} .bm-now{max-width:52vw} }
.bm .caret{color:var(--muted);font-size:11px}
.bm-menu{position:absolute;left:0;top:calc(100% + 8px);min-width:240px;z-index:20;
     background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:6px;
     box-shadow:0 12px 30px rgba(0,0,0,.45);max-height:70vh;overflow:auto}
.bm-head{display:block;padding:6px 12px 8px;color:var(--muted);font-size:12px;
     text-transform:uppercase;letter-spacing:.6px;border-bottom:1px solid var(--border);
     margin-bottom:4px}
.bm-item{display:block;padding:9px 12px;border-radius:8px;color:var(--text);
     text-decoration:none;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bm-item .bm-app{display:inline-block;vertical-align:-1px;margin-left:5px;flex:none}
.bm-item:hover{background:var(--bg)}
.bm-item.on{background:var(--accent-fill);color:var(--accent-text);font-weight:600}
.bm-item.off{color:var(--muted)}
.bm-item.bm-edit{color:var(--muted);font-size:13px;border-top:1px solid var(--border);margin-top:6px}
.bm-sec{display:block;padding:10px 12px 4px;color:var(--muted);font-size:11px;
     text-transform:uppercase;letter-spacing:.6px}
.bm-item.off em{font-style:normal;font-size:11px;margin-left:6px}
/* THE EYE ON EVERY ROW (Clay 2026-10-25: hide/unhide "in the menu itself as an eyeball with slash
   or not"). Faint until the row is hovered or the eye has focus, so a list of twenty boards does
   not read as twenty buttons; always visible on a touch screen, which has no hover, and 44px there
   so a thumb can hit it without opening the board beside it. */
.bm-row{display:flex;align-items:center;gap:2px}
.bm-row > .bm-item{flex:1;min-width:0}
header.app .bm-eye,.bm-eye{flex:none;width:32px;height:32px;min-width:0;padding:0;border:0;border-radius:8px;
     background:none;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;
     cursor:pointer;opacity:.45}
/* Clay 2026-10-25: "don't show eye unless hovering?" On a device that can hover the eye is invisible
   until the row is hovered or the eye has keyboard focus (a hidden board's slashed eye stays visible
   in the Hidden group so it can be put back); a touch screen has no hover, so it keeps the faint
   always-visible eye above and is tapped. */
@media (hover:hover){
  .bm-eye{opacity:0}
  .bm-row:hover .bm-eye,.bm-eye:focus-visible,.bm-eye[aria-pressed="true"],.bm-row[data-hidden="1"] .bm-eye{opacity:1}
}
@media (hover:none){ .bm-row:hover .bm-eye,.bm-eye:focus-visible,.bm-row[data-hidden="1"] .bm-eye{opacity:1} }
/* The empty-state line carries the `hidden` attribute once the section has rows, but .bm-item is
   display:block and beats the browser's [hidden] rule (Clay 2026-10-25: "No boards yet" shown above
   the real boards). */
.bm [hidden]{display:none !important}
.bm-eye:hover{background:var(--bg);color:var(--text)}
.bm-eye:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.bm-eye svg{width:16px;height:16px}
.bm-eye .eye-off,.bm-row[data-hidden="1"] .bm-eye .eye-on{display:none}
.bm-row[data-hidden="1"] .bm-eye .eye-off{display:inline}
.bm-row.bm-fail{box-shadow:inset 0 0 0 1px #d64545;border-radius:8px}
.bm .bm-hid > summary{display:block;border:0;padding:8px 12px;min-height:0;color:var(--muted);font-size:12px;
     border-radius:8px;cursor:pointer;list-style:none}
.bm .bm-hid > summary::-webkit-details-marker{display:none}
.bm .bm-hid > summary::before{content:"\25B8";display:inline-block;margin-right:6px;transition:transform .12s}
.bm .bm-hid[open] > summary::before{transform:rotate(90deg)}
.bm .bm-hid > summary:hover{background:var(--bg)}
.bm-hid .bm-item{color:var(--muted)}
.bm-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* THE MENU, BY DEPARTMENT, WITH SEARCH AND PINS (Clay 2026-11-27: "a long scroll and related boards are scattered").
   Search sits at the top and stays there; Pinned and Recent come next; each department is a small header whose rows
   fold away. The pin is the eye's sibling: faint on a mouse until the row is hovered, always there on a touch screen. */
.bm-find{position:sticky;top:-6px;z-index:2;background:var(--surface);padding:6px 6px 8px;margin:-6px -6px 2px}
.bm-q{width:100%;box-sizing:border-box;min-height:36px;padding:6px 10px;border:1px solid var(--border);border-radius:8px;
     background:var(--bg);color:var(--text);font:inherit;font-size:14px}
.bm-q:focus{outline:none;border-color:var(--accent)}
.bm .bm-dept > summary{display:flex;align-items:center;gap:6px;padding:8px 12px;min-height:0;border:0;border-radius:8px;
     color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.6px;cursor:pointer;list-style:none}
.bm .bm-dept > summary::-webkit-details-marker{display:none}
.bm .bm-dept > summary::before{content:"\25B8";display:inline-block;transition:transform .12s}
.bm .bm-dept[open] > summary::before{transform:rotate(90deg)}
.bm .bm-dept > summary:hover{background:var(--bg)}
.bm .bm-dept .bm-dn{font-weight:500;letter-spacing:0;opacity:.8}
.bm-prow{display:flex;align-items:center;gap:2px}
.bm-prow > .bm-item{flex:1;min-width:0}
.bm-pin{flex:none;width:32px;height:32px;min-width:0;padding:0;border:0;border-radius:8px;background:none;color:var(--muted);
     display:inline-flex;align-items:center;justify-content:center;cursor:pointer;opacity:.45}
.bm-pin svg{width:16px;height:16px}
.bm-pin[aria-pressed="true"]{color:var(--accent-ink,var(--text));opacity:1}
.bm-pin[aria-pressed="true"] svg path{fill:currentColor}
.bm-pin:hover{background:var(--bg);color:var(--text)}
.bm-pin:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
@media (hover:hover){
  .bm-pin:not([aria-pressed="true"]){opacity:0}
  .bm-row:hover .bm-pin,.bm-prow:hover .bm-pin,.bm-pin:focus-visible{opacity:1}
}
@media (pointer: coarse), (max-width: 760px){
  header.app .bm-eye,.bm-eye{width:44px;height:44px;min-height:44px;opacity:.85}
  .bm-pin{width:44px;height:44px;min-height:44px;opacity:.85}
  .bm-pin[aria-pressed="true"]{opacity:1}
  .bm .bm-hid > summary,.bm .bm-dept > summary{min-height:44px;display:flex;align-items:center}
  .bm-q{min-height:44px;font-size:16px}
  .bm-item{min-height:44px;box-sizing:border-box;display:block;line-height:26px}
}
/* ---- the global search in the header, desktop only (Clay 2026-10-25) ----
   Below 900px there is no room in the header, so the box is hidden and the menu keeps its Search
   entry; at 900px and up the box shows and that menu entry is hidden. One search per layout. */
.hs{display:none}
@media (min-width: 900px){
  header.app .hs{display:flex;align-items:center;gap:8px;flex:0 1 520px;margin:0 auto;min-width:200px;
       padding:0 10px;height:36px;border:1px solid var(--border);border-radius:999px;background:var(--bg);
       color:var(--muted)}
  header.app .hs:focus-within{border-color:var(--accent)}
  header.app .hs svg{width:15px;height:15px;flex:none}
  header.app .hs input{flex:1;min-width:0;border:0;background:none;color:var(--text);font:inherit;
       font-size:14px;outline:none;padding:0}
  header.app .hs-k{flex:none;font:inherit;font-size:11px;color:var(--muted);border:1px solid var(--border);
       border-radius:5px;padding:1px 6px}
  header.app .hs + .spacer{display:none}
  .bm-row[data-href="/search"]{display:none}
}
/* ON A PHONE THE MENU IS A SHEET, with the page dimmed behind it. Without the backdrop the screen
   underneath stayed readable through and beside the panel and competed with it, and at 70% of the
   height the Company section was cut off below its own heading (design review, 2026-09-29).
   The backdrop is the summary's own pseudo-element, so tapping it is a tap on the summary --
   which closes the menu with no script at all. */
@media (max-width: 760px){
  .bm[open] > summary::before{content:"";position:fixed;inset:0;background:rgba(0,0,0,.55);
       z-index:19;cursor:default}
  .bm-menu{max-height:calc(100dvh - 90px);width:min(320px, calc(100vw - 24px))}
}
/* ---- LABEL: Value ----
   The house convention, everywhere a record is shown: an UPPERCASE label, a colon, a space,
   then a Proper Case value. Clay, 2026-09-27: "that's my theme, throughout the whole app."
   It is one rule, so a screen nobody has designed yet still looks like the rest of the app. */
.fields{display:grid;gap:0;margin:0}
.fld{display:flex;gap:10px;align-items:baseline;padding:11px 0;border-top:1px solid var(--border)}
.fld:first-child{border-top:none}
.fld dt{font-weight:700;letter-spacing:.6px;text-transform:uppercase;font-size:13px;
        color:var(--muted);flex:none}
.fld dd{margin:0;font-size:15px}
.fld dd .muted{color:var(--muted)}
/* A status chip. The ONLY thing on a record that is allowed to carry colour, and it is an
   outline rather than a filled block, so a screen with eight of them still reads as black and
   white. Clay: "I want to keep the colour coding down." */
.badge{display:inline-block;border:1px solid var(--accent);color:var(--accent-ink);border-radius:99px;
     padding:1px 10px;font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;
     vertical-align:2px}
/* Where the property photo goes. It is a labelled hole rather than a placeholder image: an
   empty grey box reads as "broken", a box that says what belongs there reads as "not yet". */
.photo-slot{height:180px;display:flex;align-items:center;justify-content:center;
     color:var(--muted);font-size:13px;letter-spacing:.6px;text-transform:uppercase;
     border:1px dashed var(--border);margin:-4px 0 14px}
/* ---- board: a spreadsheet, in black and white ---- */
.asof{font-size:12px;color:var(--muted);border:1px solid var(--border);border-radius:99px;padding:2px 9px}
.asof.stale{color:var(--bad);border-color:var(--bad);font-weight:600}
.asof.warn{color:var(--muted);border-color:var(--warn-border);background:var(--warn-bg)}
.bd-wrap{border:1px solid var(--border);overflow:auto;max-height:72vh}
table.bd{border-collapse:separate;border-spacing:0;width:100%;font-variant-numeric:tabular-nums}
table.bd th,table.bd td{padding:7px 12px;border-right:1px solid var(--border);
     border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}
/* A NARROWED COLUMN CUTS ITS TEXT OFF with an ellipsis -- it never spills over the next one (Clay
   2026-10-09: "the text overlapped when i resized columns instead of cutting off"). */
table.bd tbody td{overflow:hidden;text-overflow:ellipsis}
table.bd thead th{position:sticky;top:0;z-index:3;background:var(--head);font-size:12px;
     letter-spacing:.6px;text-transform:uppercase;font-weight:700;user-select:none}
/* EVERYTHING A COLUMN DOES LIVES IN ITS OWN HEADER (Clay, 2026-09-27). There is no filter row:
   a second row of boxes costs a row of vertical space on every board forever, to show twelve
   empty inputs that are nearly always empty. The funnel and the ... sit in the header, the
   header is a grab handle, and the row underneath is data. */
table.bd thead th{cursor:grab}
table.bd thead th .hd{display:flex;align-items:center;gap:8px}
/* THE CHECKBOX AND BUBBLE COLUMNS LINE UP, header over rows (Clay 2026-10-24, a phone screenshot: "Check boxes
   look midaligned"): both centred, and the row's drag handle -- invisible but still taking room, so it pushed
   every row's box right of the header's -- is not drawn on a touch screen, where it cannot be used anyway. */
table.bd thead th.selc .hd,table.bd thead th.talk .hd{justify-content:center}
/* ON A CARD, NOTHING RUNS OFF THE SCREEN AND NOTHING FLOATS IN THE MIDDLE (Clay 2026-10-24, phone screenshots:
   "Centering looks off and words run off screen"): a picker is never wider than its box -- a long conversation
   or template name ends in an ellipsis -- and an empty box says so flush left, like everything around it. */
select{max-width:100%;text-overflow:ellipsis}
.icb-body .ix-empty,.rec-grid .ix-empty{text-align:left;padding:10px 0}
table.bd th.selc,table.bd td.selc{text-align:center}
@media (pointer: coarse), (max-width: 900px){ table.bd td.selc .rhandle{display:none} }
/* REAL BUTTONS, not spans with role="button". A span does not fire a click from Enter or Space
   -- that is behaviour a button gets from the browser for free -- so the earlier version was
   focusable, announced itself as actionable, and then did nothing on a keyboard. Worse than
   absent. These are buttons stripped back to look like text. */
table.bd thead th button{font:inherit;color:inherit;background:none;border:none;padding:0;
     margin:0;letter-spacing:inherit;text-transform:inherit;cursor:pointer}
table.bd thead th button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
table.bd thead th .lbl{flex:1;display:flex;align-items:center;gap:5px;overflow:hidden;
     text-align:left}
table.bd thead th .nm{overflow:hidden;text-overflow:ellipsis}
table.bd thead th .nm[contenteditable]{outline:2px solid var(--accent);outline-offset:2px;
     cursor:text;text-transform:none}
table.bd thead th .arrow{color:var(--accent-ink);font-size:9px}
/* The funnel and the kebab are dimmed until you are in the header, so twelve columns do not
   show twenty-four icons at rest. A funnel on a column that IS filtered stays lit -- with no
   filter row on screen, that icon is the only thing saying the board is showing you a subset. */
table.bd thead th .fx,table.bd thead th .kebab{color:var(--muted);flex:none;
     opacity:.3;transition:opacity .12s,color .12s;display:flex;align-items:center;
     /* A 24px target around an 11px glyph. Below that, on a phone, a tap meant for the sort
        lands on the funnel. */
     min-width:24px;min-height:24px;justify-content:center}
table.bd thead th:hover .fx,table.bd thead th:hover .kebab{opacity:.8}
table.bd thead th .fx:hover,table.bd thead th .kebab:hover,
table.bd thead th .fx:focus-visible,table.bd thead th .kebab:focus-visible{opacity:1;
     color:var(--text)}
table.bd thead th .fx.on{opacity:1;color:var(--accent-ink)}
table.bd thead th .kebab{font-size:15px;letter-spacing:1px;line-height:1}
table.bd thead th.th-drag{opacity:.4;cursor:grabbing}
table.bd thead th.th-over{box-shadow:inset 3px 0 0 var(--accent)}
/* ---- column resizing ----
   A grip on the right edge of every heading. It is 9px wide against a 1px border because a
   1px target cannot be hit reliably with a mouse and not at all with a thumb; it stays
   invisible until hovered so twelve columns do not show twelve handles at rest.
   `position:relative` on the th is what the grip is positioned against. */
table.bd thead th{position:sticky;position:-webkit-sticky}
table.bd thead th .grip{position:absolute;top:0;right:-4px;width:9px;height:100%;
     cursor:col-resize;z-index:5;touch-action:none}
table.bd thead th .grip::after{content:"";position:absolute;top:20%;left:4px;width:2px;
     height:60%;background:var(--accent-fill);opacity:0;transition:opacity .12s}
table.bd thead th .grip:hover::after,table.bd thead th .grip.on::after{opacity:1}
/* While a column is being dragged wider, the cursor must not change as it crosses other
   elements and text must not select -- both make the drag feel broken even when it works. */
body.fv-resizing{cursor:col-resize;user-select:none}
body.fv-resizing table.bd thead th{cursor:col-resize}
/* Every column is fixed at a width: the standard one (pinWidths, 2026-10-19), or the one a person
   dragged and saved with the view. Content never decides a column's width. */
table.bd th[style*="width"]{overflow:hidden}
/* The popovers: filter, and the column menu. Fixed rather than absolute so the scrolling board
   cannot clip them, which is what happens to a menu on the twelfth column of a wide table. */
.pop .lkline{font-size:12px;color:var(--muted);padding:6px 8px 8px;border-bottom:1px solid var(--border);margin-bottom:4px;max-width:260px;white-space:normal}
.pop{position:fixed;z-index:50;background:var(--surface);border:1px solid var(--border);
     border-radius:8px;box-shadow:0 12px 30px rgba(0,0,0,.45);padding:8px;min-width:200px}
.pop .pl{display:block;font-size:11px;letter-spacing:.6px;text-transform:uppercase;
     color:var(--muted);margin:0 0 5px}
.pop .pi{font:inherit;font-size:13px;width:100%;padding:6px 8px;border:1px solid var(--border);
     background:var(--bg);color:var(--text);border-radius:6px}
.pop .pb{display:flex;justify-content:flex-end;margin-top:7px}
.pop button{font:inherit;font-size:13px;cursor:pointer;background:none;color:var(--text);
     border:none;border-radius:6px;padding:7px 10px;text-align:left;width:100%}
.pop button:hover{background:var(--hover)}
.pop.menu{padding:5px;min-width:186px}
.pop .sep{height:1px;background:var(--border);margin:5px 2px}
.pop .sect{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:4px 2px 2px}
/* the column menu, Monday-shaped and Monday-sized (design review 2026-10-08): a fixed 240px,
   32px rows, a 16px icon in a 20px gutter, the chevron in its own slot on the right, the id row
   ellipsised, a locked column's source on a muted second line, reasons on disabled items */
.pop{max-height:calc(100dvh - 16px);overflow:auto}
.pop.menu{width:240px;min-width:0;padding:4px}
.pop.menu button{display:flex;align-items:center;gap:10px;height:32px;padding:0 8px 0 6px;border-radius:6px;width:100%;text-align:left}
.pop.menu button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.pop.menu .ic{width:20px;height:16px;display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--muted)}
.pop.menu .ic svg{width:16px;height:16px}
.pop.menu .lb{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pop.menu .why{font-size:11px;color:var(--muted);flex:none}
.pop.menu .chev{width:16px;height:16px;color:var(--muted);flex:none}
.pop.menu button.cid{height:30px;font-size:12px;color:var(--muted)}
.pop.menu button.cid code{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px;color:var(--text);background:none;border:none;padding:0}
.pop.menu .cid-sub{display:flex;align-items:center;gap:10px;padding:0 8px 6px 6px;font-size:11px;color:var(--muted)}
.pop.menu .cid-sub .ic{color:var(--muted)}
.pop.menu button[aria-disabled="true"]{color:var(--muted);cursor:not-allowed}
.pop.menu button[aria-disabled="true"]:hover{background:none}
.pop.menu button.danger{color:var(--bad)} .pop.menu button.danger .ic{color:var(--bad)}
.pop.menu .sub{margin:0 0 2px 14px;padding-left:4px;border-left:2px solid var(--border)}
.pop.menu .sub button{height:30px}
.pop .pm{font-size:12px;color:var(--muted);margin-top:6px}
.pop .pclear.link{width:auto;padding:4px 2px;color:var(--accent-ink);background:none}
/* the hide panel: search, All columns, then one row per column */
.pop.hidep{width:min(300px,90vw);padding:10px}
/* NO FLASH OF THE OLD DEFAULT (Clay 2026-10-26: "i keep seeing it flash back for a sec every time i edit the
   default to the oldest one"). The server draws the board's built-in Default and the saved view is applied
   once /views answers, so the table waits, hidden, for that; a CSS-only fallback shows it after 2.5s
   whatever happens, so a failed script can never leave a board blank. */
.board:not(.vready) table.bd{visibility:hidden;animation:fvready 0s 2.5s forwards}
@keyframes fvready{to{visibility:visible}}
.pop.hidep .colsck{max-height:280px;overflow:auto;margin:4px 0 6px}
.pop.hidep .hidep-go{gap:6px}
.pop.hidep .hidep-go button{width:auto;padding:6px 12px;border:1px solid var(--border)}
.pop.hidep .hidep-go .hp-ok{background:var(--accent-fill);color:var(--accent-text);border-color:var(--accent-fill)}
.pop.hidep .colck{display:flex;flex-direction:row;gap:10px;align-items:center;font-size:13px;min-height:32px;padding:0 6px;border-radius:6px}
.pop.hidep .colck:hover{background:var(--hover)}
.pop [hidden]{display:none!important}   /* every pop: a display rule beat [hidden] twice (Add column 10/25, the Hide panel's column search 10/26) */
.pop.hidep .colck.all{margin-top:8px;font-weight:600}
.pop.hidep .colsrc{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);padding:8px 6px 2px}
.pop.hidep .colck input{margin:0;width:15px;height:15px;flex:none;accent-color:var(--accent)}
.pop.hidep .colck .lk svg{width:14px;height:14px;display:block}
.bd-bar .bd-unhide{display:inline-flex;align-items:center;gap:6px}
.bd-bar .bd-unhide svg{width:14px;height:14px}
.pop.hidep .colck label{flex:1;cursor:pointer;color:var(--text)}
.pop.hidep .colck .lk{font-size:11px;opacity:.7;flex:none}
.pop.hidep .sub{font-size:12px;color:var(--muted)}
/* the toolbar's four controls, one look: Filter, Sort, Hide, Group by -- lit when they are on */
.bd-bar .bd-filter,.bd-bar .bd-sort,.bd-bar .bd-unhide,.bd-bar .bd-groupby,.bd-bar .bd-additem{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:13px;
  padding:4px 10px;border:1px solid transparent;border-radius:8px;background:none;color:var(--text);cursor:pointer}
.bd-bar .bd-filter svg,.bd-bar .bd-sort svg,.bd-bar .bd-unhide svg,.bd-bar .bd-groupby svg{width:14px;height:14px;color:var(--muted)}
.bd-bar .bd-color{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:13px;background:none;border:0;border-radius:6px;padding:5px 8px;cursor:pointer;color:var(--text)}
.bd-bar .bd-color:hover{background:var(--hover)}.bd-bar .bd-color.on{background:color-mix(in srgb, var(--accent) 14%, var(--surface))}
.bd-bar .ccdot{width:12px;height:12px;border-radius:50%;background:conic-gradient(#00c875,#fdab3d,#e2445c,#579bfc,#00c875)}
/* THE HIGHLIGHT RULE ROW (Clay 2026-11-03: "a dot sitting misaligned to the left ... you need to control the design here").
   ONE grid for the row, the same tracks whether the row is empty or full: When | column | operator | value | row-or-cell +
   COLOUR | remove. The colour is a labelled swatch (chip + its name) IN the row, not a dot under it; an empty row holds the
   colour's and the remove button's places with spacers, so the controls never shift when a column is chosen. */
.pop .ccr{padding:6px 0 8px;border-bottom:1px solid var(--border)}
.pop.fpanel .ccr .fr{grid-template-columns:72px minmax(110px,1.1fr) 150px minmax(150px,1.6fr) 28px;gap:8px;align-items:center}
/* A RULE IS A CARD (D-355): its condition rows (When / And / Or), then one line -- "+ And / or" on the left, "Colour the row /
   cell" and the colour on the right. The And / Or select sits in the When column so the conditions line up. */
.pop.fpanel .ccr .fr + .fr{margin-top:6px}
.pop.fpanel .ccr .ccconj{width:100%}
.pop .ccft{display:flex;align-items:center;gap:8px;margin-top:6px;padding-left:80px}
.pop .ccft > .ccend{margin-left:auto}.pop .ccft .fw{color:var(--muted);white-space:nowrap}
.pop .fval{display:flex;align-items:center;gap:6px;min-width:0}
.pop .fval > *{min-width:0}.pop .fval .pi,.pop .fval select{flex:1 1 0;width:100%}.pop .fval .fw{flex:none}
.pop .ccend{display:inline-flex;align-items:center;gap:8px}
.pop.fpanel .ccend select{width:auto}
.pop .ccsel,.pop .ccsel-ph{width:136px;box-sizing:border-box;flex:none}
.pop .ccsel{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 8px;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--text);font:inherit;font-size:13px;cursor:pointer;text-align:left}
.pop .ccsel:hover{background:var(--hover)}.pop .ccsel:focus-visible,.pop .ccsw:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.pop .ccchip{width:16px;height:16px;border-radius:4px;flex:none;box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--text) 25%, transparent)}
.pop .cclab{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pop .ccsel .chev{color:var(--muted);font-size:11px;flex:none}
.pop .ccsel-ph{display:inline-block;height:32px}
.pop .frm-ph{display:block;width:28px;height:28px}
.pop .ccpal{display:grid;grid-template-columns:repeat(6,32px);gap:8px;margin:8px 0 2px 80px}
.pop .ccsw{width:32px;height:32px;padding:0;border-radius:8px;border:2px solid transparent;cursor:pointer;box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--text) 25%, transparent);display:inline-flex;align-items:center;justify-content:center}
.pop .ccsw.cur{border-color:var(--text)}
.pop .ccsw.cur::after{content:"✓";color:#fff;font-size:15px;font-weight:700;text-shadow:0 0 3px rgba(0,0,0,.6)}
.bd-bar .bd-filter:hover,.bd-bar .bd-sort:hover,.bd-bar .bd-unhide:hover,.bd-bar .bd-groupby:hover{background:var(--hover)}
/* + ADD ITEM IS THE BOARD'S ONE ADD BUTTON, and it looks like one (Clay 2026-11-02, enterprise-wide: "we don't need the
   button in top right now we have an add item here ... but it needs a button color"). The company's accent, like
   every primary button. Where a board has it, the separate top-right "+ New ..." form is not shown -- unless a link
   opened that form on purpose with values filled in (it is then [open]). */
.bd-bar .bd-additem{background:var(--accent-fill,var(--accent));color:var(--accent-text,#fff);border-color:var(--accent);font-weight:600}
.bd-bar .bd-additem:hover{background:var(--accent-fill);filter:brightness(.92)}
body:has(.bd-bar .bd-additem) .pb-new:not([open]){display:none}
.bd-bar .bd-filter.on,.bd-bar .bd-sort.on,.bd-bar .bd-unhide.on,.bd-bar .bd-groupby.on{background:color-mix(in srgb, var(--accent) 14%, var(--surface));color:var(--text)}
.bd-bar .on svg{color:var(--accent-ink)}
/* the lock on a sourced column: a small grey mark, nothing more */
table.bd thead th .lk{display:inline-flex;align-items:center;color:var(--muted);opacity:.7;margin-left:5px}
table.bd thead th .lk svg{width:11px;height:11px}
/* the filter / sort / group panels */
.pop.fpanel{width:min(760px,94vw);padding:12px 14px}
.pop.fpanel.small{width:min(420px,94vw)}
.pop.fpanel .fh{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.pop.fpanel .fh strong{font-size:14px}
.pop.fpanel .fh .fcount{font-size:12px;color:var(--muted)}
.pop.fpanel .fh button{width:auto;font-size:13px;padding:5px 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface)}
.pop.fpanel .fh button.link,.pop.fpanel .fb button.link{border:none;background:none;color:var(--accent-ink);padding:5px 4px}
.pop.fpanel .frows{display:flex;flex-direction:column;gap:8px}
.pop.fpanel .fr{display:grid;grid-template-columns:72px minmax(140px,1fr) 150px minmax(180px,2fr) 28px;gap:8px;align-items:center}
.pop.fpanel.small .fr{grid-template-columns:72px 1fr 1fr}
.pop.fpanel.small .srows .fr{grid-template-columns:72px minmax(0,1fr) minmax(0,1fr) 28px}
.pop.fpanel .fw{font-size:13px;color:var(--muted)}
.pop.fpanel select,.pop.fpanel .ftext{font:inherit;font-size:13px;padding:6px 8px;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--text);width:100%;box-sizing:border-box}
.pop.fpanel .fvals{display:flex;align-items:center;gap:6px;width:100%;min-height:32px;padding:3px 8px;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--text);font:inherit;font-size:13px;text-align:left;overflow:hidden}
.pop.fpanel .fvals .chev{margin-left:auto;color:var(--muted)}
.pop.fpanel .fchip{display:inline-block;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;padding:1px 8px;border-radius:99px;background:color-mix(in srgb, var(--accent) 16%, var(--surface));color:var(--text)}
.pop.fpanel .fchip.more{background:var(--row-alt)}
.pop.fpanel .frm{width:28px;height:28px;padding:0;border:none;background:none;color:var(--muted);font-size:18px;line-height:1;cursor:pointer;border-radius:6px}
.pop.fpanel .frm:hover{background:var(--hover);color:var(--text)}
.pop.fpanel .fvlist{grid-column:1 / -1;margin:0 0 4px 80px;max-height:220px;overflow:auto;border:1px solid var(--border);border-radius:6px;padding:6px}
.pop.fpanel .fvlist .fvsearch{margin-bottom:4px}
.pop.fpanel .fvopt{display:flex;align-items:center;gap:8px;padding:5px 6px;border-radius:6px;font-size:13px;cursor:pointer}
.pop.fpanel .fvopt:hover{background:var(--hover)}
.pop.fpanel .fvopt input{accent-color:var(--accent);margin:0}
.pop.fpanel .fvopt em{margin-left:auto;font-style:normal;font-size:11px;color:var(--muted)}
.pop.fpanel .fb{display:flex;align-items:center;gap:8px;margin-top:10px}
.pop.fpanel .fb button.primary{width:auto;background:var(--accent-fill);color:var(--accent-text);border-radius:6px;padding:6px 12px;margin-left:auto}
.pop.fpanel .sub{font-size:12px;color:var(--muted);margin-top:8px}
.pop .pclear{width:auto;color:var(--muted);border:1px solid var(--border);padding:4px 10px}
/* Zebra stripes, and the background must live on the ROW so a sticky first cell paints over
   it rather than letting the stripe show through.
   The stripe is a CLASS the script puts on visible rows, not :nth-child -- nth-child counts
   hidden rows, so a filtered board would show two adjacent same-coloured rows. */
table.bd tbody tr{background:var(--bg)}
table.bd tbody tr.alt{background:var(--row-alt)}
table.bd tbody tr:hover{background:var(--head)}
table.bd th:first-child,table.bd td:first-child{position:sticky;left:0;z-index:1;
     background:inherit;border-right:1px solid var(--border)}
table.bd thead th:first-child{z-index:4;background:var(--head)}
table.bd td.num{text-align:right}
table.bd td.empty{color:var(--muted)}
.bd-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 8px}
/* Monday's Search on the toolbar (ui.toolbar_search): a magnifier + word that opens into a box */
.bd-bar .bsrch{display:inline-flex;align-items:center;gap:2px;margin:0;border:1px solid transparent;border-radius:6px}
.bd-bar .bsrch-go{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:5px 8px;cursor:pointer;color:var(--text);font:inherit;font-size:13px;border-radius:6px}
.bd-bar .bsrch-go svg{width:14px;height:14px;color:var(--muted)}
.bd-bar .bsrch-go:hover{background:var(--hover)}
.bd-bar .bsrch input[type=search]{width:0;min-width:0;padding:0;border:0;opacity:0;font:inherit;font-size:13px;background:transparent;color:var(--text);transition:width .15s,opacity .15s}
.bd-bar .bsrch:focus-within,.bd-bar .bsrch.open{border-color:var(--border);background:var(--surface)}
.bd-bar .bsrch:focus-within .lb,.bd-bar .bsrch.open .lb{display:none}
.bd-bar .bsrch:focus-within input[type=search],.bd-bar .bsrch.open input[type=search]{width:200px;padding:4px 6px;opacity:1;outline:none}
.bd-bar .bsrch .qn{font-size:12px;color:var(--muted);margin-right:6px}
header.app .hdr-info{display:inline-flex;align-items:center;flex:0 0 auto}
header.app .hdr-info .fv-how{margin-left:2px}
header.app .hdr-info .hdr-about{cursor:help;color:var(--muted);font-size:16px;padding:6px}
.bd-members{display:inline-flex;align-items:center;margin-left:auto;text-decoration:none;padding:2px 4px}
.bd-members .bm-face{width:28px;height:28px;border-radius:50%;border:2px solid var(--surface);margin-left:-8px;object-fit:cover;
  display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;background:var(--head);color:var(--text);box-sizing:border-box}
.bd-members .bm-face:first-child{margin-left:0}
.bd-members .bm-face.mgr{box-shadow:0 0 0 2px var(--accent)}
.bd-members .bm-more{background:var(--row-alt);color:var(--muted)}
.bd-members:hover .bm-face{border-color:var(--row-alt)}
.bd-bar .count{color:var(--muted);font-size:13px}
.bd-bar .bd-view{font-size:12px;color:var(--accent-ink);border:1px solid var(--accent);
     border-radius:99px;padding:1px 9px}
.bd-bar .bd-view:empty{display:none}
.bd-bar .bd-sp{flex:1}
table.bd th.hid,table.bd td.hid{display:none}
table.bd td .tp{display:block;width:34px;height:34px;border-radius:50%;object-fit:cover;border:1px solid var(--border)}
table.bd td .tp-ini{display:flex;align-items:center;justify-content:center;background:var(--head);color:var(--muted);font-size:12px;font-weight:600}
table.bd th[data-edit]{box-shadow:inset 0 -2px 0 var(--accent)}
/* no glyph after an editable heading: the pencil rendered as a stray "_E" wherever the font lacks
   it (QA 2026-10-09). An editable column says so by the green underline and the click; a locked
   one shows the grey padlock. */
.lockg{display:inline-block;width:12px;height:12px;vertical-align:-1px;margin-right:2px;background:var(--muted);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3.5' y='7' width='9' height='7' rx='1.2' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 0 1 5 0v2' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='3.5' y='7' width='9' height='7' rx='1.2' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 0 1 5 0v2' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat}
table.bd td.sel{outline:2px solid var(--accent);outline-offset:-2px;cursor:text}
table.bd td.sel:focus{outline:2px solid var(--accent)}
table.bd td.editing{padding:2px 4px}
table.bd td.editing .cell-edit{font:inherit;width:100%;min-width:90px;box-sizing:border-box;padding:4px 6px;
 background:var(--bg);color:var(--text);border:1px solid var(--accent);border-radius:4px}
table.bd td.editing input[type=checkbox].cell-edit{width:18px;min-width:0}
table.bd td.saving{opacity:.6;background-image:linear-gradient(90deg,transparent 0,color-mix(in srgb,var(--accent) 22%,transparent) 50%,transparent 100%);background-size:200% 100%;animation:fvsaving 1s linear infinite}  /* D12: a save you can see */
@keyframes fvsaving{from{background-position:100% 0}to{background-position:-100% 0}}
@media (prefers-reduced-motion: reduce){table.bd td.saving{animation:none}}
/* the tags editor: chips with x, a box to type the next one */
.cell-tags{display:flex;flex-wrap:wrap;gap:4px;align-items:center;min-width:180px}
.cell-tags .ct-chip{display:inline-flex;align-items:center;gap:2px}
.cell-tags .ct-x{border:0;background:none;color:inherit;font-size:14px;line-height:1;padding:0 2px;cursor:pointer;min-height:0}
.cell-tags input{flex:1;min-width:70px;border:0;outline:none;background:transparent;font:inherit;color:var(--text)}
/* Board engine (2026-10-10): the two-date timeline editor, long text in a box, the summary
   footer under a Numbers column, a heading being renamed in place, link and location cells. */
table.bd td.editing .cell-range{display:inline-flex;gap:4px;align-items:center;white-space:nowrap}
table.bd td.editing .cell-range input{font:inherit;padding:3px 4px;border:1px solid var(--accent);border-radius:4px;background:var(--bg);color:var(--text)}
table.bd td.editing textarea.cell-edit{min-width:220px;min-height:80px;white-space:pre-wrap;resize:vertical}
table.bd tfoot td{position:sticky;bottom:0;background:var(--surface);border-top:2px solid var(--border);font-size:12px;white-space:nowrap}
table.bd tfoot .sum-v{font-weight:600;color:var(--text)}
table.bd tfoot .sum-l{display:block;font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
table.bd th .nm.renaming{outline:2px solid var(--accent);outline-offset:1px;border-radius:3px;padding:0 3px;cursor:text;user-select:text;background:var(--bg)}
table.bd th.saving{opacity:.6}
table.bd td a.bf-link,table.bd td a.bf-loc{color:var(--accent-ink);text-decoration:underline}
/* Board engine step 3: Monday's groups (a coloured title, a fold, a count, a menu), the row
   checkbox and drag handle, "+ Add item", the group summary row, the batch bar, the Undo toast. */
table.bd td.selc .rhandle{cursor:grab;color:var(--muted);visibility:hidden;margin-right:2px;font-size:11px}
table.bd tr:hover td.selc .rhandle{visibility:visible}
table.bd tr.rsel td{background:var(--hover)}
table.bd tr.bgrp td{background:var(--bg);border-left:4px solid var(--gc);padding:10px 8px 6px;position:sticky;left:0;font-weight:600}
table.bd tr.bgrp .bg-t{color:color-mix(in srgb,var(--gc) 62%,var(--ink-to));font-size:15px;cursor:text;padding:0 4px}
table.bd tr.bgrp .bg-t.renaming{outline:2px solid var(--accent);border-radius:3px;background:var(--surface);color:var(--text)}
table.bd tr.bgrp .bg-n{margin-left:10px;font-size:12px;color:var(--muted);font-weight:400}
table.bd tr.bgrp .bg-tg,table.bd tr.bgrp .bg-menu{border:0;background:none;color:color-mix(in srgb,var(--gc) 62%,var(--ink-to));font-size:14px;cursor:pointer;padding:0 6px}
table.bd tr.bgrp .bg-menu{color:var(--muted);visibility:hidden}table.bd tr.bgrp:hover .bg-menu,table.bd tr.bgrp .bg-menu:focus{visibility:visible}
table.bd tr.bgrp.dropon td{outline:2px dashed var(--accent);outline-offset:-2px}
/* ONE RAIL (Clay 2026-10-24, a phone screenshot: "angles overlapping green and grey"): the add row is also a
   section row, which already draws the green inset rail; its own grey border sat beside it. */
table.bd tr.badd td{border-left:0;padding:2px 8px}
table.bd tr.badd .bg-add{font:inherit;font-size:13px;width:min(360px,100%);border:0;background:transparent;color:var(--text);padding:6px 4px}
table.bd tr.badd .bg-add:focus{outline:1px solid var(--accent);background:var(--surface)}
.bd-batch{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:40;display:flex;gap:4px;align-items:center;
 background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:6px 8px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.bd-batch button{font:inherit;font-size:13px;border:0;background:none;color:var(--text);padding:8px 10px;border-radius:6px;cursor:pointer}
.bd-batch button:hover{background:var(--hover)}.bd-batch button[aria-disabled=true]{opacity:.45;cursor:not-allowed}
.bd-batch .bb-n{padding:0 10px;font-size:13px}.bd-batch .bb-x{font-size:18px;color:var(--muted)}
/* QA 2026-10-10, D10: at 390px the bar ran from x=-54 to 444. It fits the screen and wraps. */
.bd-batch{max-width:calc(100vw - 16px);box-sizing:border-box;flex-wrap:wrap;justify-content:center}
@media (max-width: 560px){ .bd-batch{bottom:12px} .bd-batch button{padding:10px 8px;min-height:40px} .bd-toast{left:8px;right:8px;bottom:12px} }
.bd-toast{position:fixed;left:22px;bottom:22px;z-index:41;display:flex;gap:10px;align-items:center;background:var(--text);color:var(--bg);
 border-radius:8px;padding:10px 14px;font-size:13px;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.bd-toast button{font:inherit;border:0;background:none;color:inherit;cursor:pointer;text-decoration:underline}.bd-toast .bt-x{text-decoration:none;font-size:16px}
.pop .gpick,.pop .cpick,.pop .ppick{display:flex;gap:8px;align-items:center;width:100%;text-align:left;padding:6px 4px}
.pop .ppick.on{font-weight:600}.pop .ppick em{margin-left:auto;font-style:normal;color:var(--muted);font-size:12px}
.pop .gdot{display:inline-block;width:10px;height:10px;border-radius:50%}
.fpanel .fgroup{border:1px solid var(--border);background:var(--hover);border-radius:6px;padding:6px 8px;margin:6px 0}
.fpanel .fgh{display:flex;gap:8px;align-items:center}
/* Connect boards: linked items as chips that open their card; Mirror: a status keeps its colour,
   several statuses show as a strip of their colours, a roll-up names its function. */
a.lk-chip{display:inline-block;max-width:180px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;font-size:12px;
 padding:1px 8px;margin:0 4px 0 0;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);text-decoration:none}
a.lk-chip:hover{border-color:var(--accent);color:var(--accent-ink)}
/* A PHONE NUMBER IS A TAP-TO-CALL LINK (Clay 2026-11-30, app/phone_fmt.py): one line always; on a phone the hit area grows to
   44px tall with padding and a matching negative margin, so a grid row or card box does not get taller. */
a.tel{white-space:nowrap;color:inherit;text-decoration:none}
a.tel:hover{text-decoration:underline}
@media (max-width:768px){a.tel{display:inline-block;min-width:44px;padding:13px 4px;margin:-13px -4px}}
.lab.mlab{display:inline-block;padding:1px 8px;border-radius:3px;font-size:12px}
.mstrip{display:inline-flex;width:100%;min-width:60px;height:14px;border-radius:3px;overflow:hidden;vertical-align:middle}
.mstrip span{display:block;height:100%}
.magg{margin-left:6px;font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.pop.linkpick{width:300px}.pop.linkpick .lkl{max-height:260px;overflow:auto;margin:6px 0}
.pop.linkpick .lko{display:flex;gap:8px;align-items:center;padding:5px 6px;border-radius:4px;cursor:pointer;font-size:13px}
.pop.linkpick .lko.on{background:var(--hover)}.pop.linkpick .lks{width:100%;margin-bottom:6px}
.pop.linkpick .lkg{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:8px 0 2px}
.mbat{display:inline-block;width:70px;height:10px;border-radius:5px;background:var(--hover);overflow:hidden;vertical-align:middle}
.mbat span{display:block;height:100%;background:#00c875}
.pop.addcol .cbl{max-height:180px;overflow:auto;display:flex;flex-direction:column;gap:2px;margin:4px 0}
.pop.addcol .lerr{color:var(--bad);font-size:12px}
.pop.addcol{padding:10px;width:min(320px,90vw);display:flex;flex-direction:column;gap:8px}
.pop.addcol label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--muted)}
.pop.addcol [hidden]{display:none!important}   /* display:flex above beat [hidden]: Values showed on a Mirror (Clay 2026-10-25) */
.pop.addcol input,.pop.addcol select,.pop.addcol textarea{font:inherit;padding:6px 8px;background:var(--bg);color:var(--text);
 border:1px solid var(--border);border-radius:6px}
.pop.addcol .row{display:flex;gap:8px;align-items:center}
.pop.addcol.acol{width:min(400px,92vw)}
.pop.addcol .addmore{display:flex;flex-direction:column;gap:8px}
.pop.addcol .addmore>summary{cursor:pointer;font-size:12px;color:var(--muted);padding:2px 0}
.pop.addcol.addform{width:min(380px,94vw);max-height:80vh;overflow:auto}   /* the one Add item form: scrolls on a phone */
.pop.addcol.addform input,.pop.addcol.addform select,.pop.addcol.addform textarea{font-size:16px}   /* 16px: iOS does not zoom the page */
.pop.addcol .tgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;max-height:236px;overflow:auto;margin-top:6px}
.pop.addcol .tt{font:inherit;font-size:12px;text-align:left;padding:6px 8px;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--text);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pop.addcol .tt:hover{background:var(--hover)}
.pop.addcol .tt.on{border-color:var(--accent);background:var(--accent-fill);color:var(--accent-text)}
.pop.addcol .tt[hidden]{display:none}
.pop.addcol .tchosen{display:flex;gap:6px;align-items:center;font-size:13px}
.pop.addcol .amanage{font-size:12px}
.pop.addcol button.danger{color:var(--bad);border-color:var(--bad)}
/* the popover's own action looks like one (audit 2026-10-31: 'Add column' read as plain text) */
.pop.addcol .row button.primary{width:auto;background:var(--accent-fill);color:var(--accent-text);border:1px solid var(--accent);border-radius:6px;padding:6px 14px;font-weight:600}
.pop.addcol .row button.primary:hover{filter:brightness(1.08);background:var(--accent-fill)}
.pop.menu button.dim{color:var(--muted);cursor:not-allowed}
.bd-bar .bd-grp{font-size:13px;color:var(--muted);display:inline-flex;gap:6px;align-items:center}
.bd-bar .bd-views{font:inherit;font-size:13px;padding:4px 8px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);max-width:220px}
.pop label.rad,.pop.addcol label.rad{display:flex;flex-direction:row;gap:8px;align-items:center;font-size:13px;margin:4px 0;color:var(--text)}  /* D11: never stacked like a field label */
.pop label.rad[hidden],.pop.addcol label.rad[hidden]{display:none}  /* the board search hides what it does not match (display:flex above beat [hidden]) */
.bd-bar .bd-group{font:inherit;font-size:13px;padding:4px 8px;border-radius:6px;background:var(--surface);
 color:var(--text);border:1px solid var(--border);min-height:30px}
/* SECTION ROWS GET A LITTLE COLOUR -- the one place on a board that does (Clay 2026-10-02:
   "some colour may be allowed for the first time on the separators, maybe a green"). The
   accent, tinted, with a bar on the left; nothing a status pill would be mistaken for. */
table.bd tbody tr.grp td{position:static;font-weight:600;padding:7px 10px;white-space:nowrap;
 background:color-mix(in srgb, var(--accent) 14%, var(--surface));
 border-top:2px solid color-mix(in srgb, var(--accent) 45%, var(--border));
 box-shadow:inset 4px 0 0 var(--accent)}
table.bd tbody tr.grp:hover td{background:color-mix(in srgb, var(--accent) 20%, var(--surface))}
/* ITEM 13 (Clay 2026-10-23): the section bar right under the headings draws no tinted top border.
   Under an editable heading it stacked on the heading's own accent line -- two green underlines on
   Title and Department. An editable heading draws exactly one: th[data-edit]'s inset. */
table.bd tbody tr.grp.gtop td{border-top-color:transparent}
table.bd tbody tr.grp .grp-l{color:color-mix(in srgb,var(--text) 78%,transparent);font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.04em;margin-right:4px}
/* a section grouped on a status column wears the label's colour: a bar on the left, a tint on the row, the chip itself */
table.bd tbody tr.grp.colored td{border-left:4px solid var(--grpc);background:color-mix(in srgb, var(--grpc) 12%, var(--surface));
 box-shadow:none;border-top-color:color-mix(in srgb, var(--grpc) 45%, var(--border))}
/* ^ no green inside the colour (Clay 2026-10-29): the plain section's accent bar is an inset shadow, and on a
   coloured section it drew a green stripe just inside the status colour's own bar. */
table.bd tbody tr.grp.colored:hover td{background:color-mix(in srgb, var(--grpc) 22%, var(--surface))}
table.bd tbody tr.grp.colored .grp-v .lab{vertical-align:middle;min-width:0}
table.bd tbody tr.grp .grp-n{color:var(--muted);font-weight:400;margin-left:10px;font-variant-numeric:tabular-nums}
table.bd tbody tr.grp .grp-n:not(:empty)::before{content:'· ';}
table.bd tbody tr.grp .grp-tg{font:inherit;background:none;border:0;cursor:pointer;color:var(--text);
 width:22px;height:22px;margin-right:4px;border-radius:4px}
table.bd tbody tr.grp .grp-tg:hover{background:var(--row-alt)}
.bd-bar .bd-grpall{display:inline-flex;gap:2px;align-items:center}
.bd-bar .bd-grpall[hidden]{display:inline-flex;visibility:hidden}          /* its room is kept, so grouping never moves the buttons after it */
@media (max-width:700px){.bd-bar .bd-grpall[hidden]{display:none}}
.bd-bar .bd-grpall button{font:inherit;font-size:12px;font-weight:500;background:none;border:0;border-radius:6px;padding:5px 8px;cursor:pointer;color:var(--accent-ink);min-height:0}
.bd-bar .bd-grpall button:hover:not(:disabled){background:var(--hover)}
.bd-bar .bd-grpall button:disabled{color:var(--muted);cursor:default;opacity:.6}
.bd-bar button,.bd-bar a.btn{font:inherit;font-size:13px;cursor:pointer;background:var(--surface);
     color:var(--text);border:1px solid var(--border);padding:4px 10px;text-decoration:none}
/* Where a joined column came from, under its heading. Small and muted: it is provenance, not
   a second name, and it must not compete with the heading it explains. */
table.bd thead th .lk{font-size:12px;margin-left:4px;opacity:.75;line-height:1}
table.bd thead th .src{display:block;font-size:12px;font-weight:500;letter-spacing:.2px;
     text-transform:none;color:var(--muted);margin-top:2px;white-space:nowrap}
/* ---- the conversation column ----
   First and frozen, narrow, and the one cell on a board that is a control rather than a datum.
   The bubble is an outline at rest and lights in the accent when the record has updates, so a
   board of two hundred rows shows at a glance which twelve somebody has said something about.
   Same discipline as the status badge: an outline, never a filled block, so twelve lit bubbles
   still read as black and white. */
table.bd th.talk,table.bd td.talk{width:62px;min-width:62px;max-width:62px;padding:4px 6px;
     text-align:center;cursor:default}
table.bd th.talk{cursor:default}
table.bd td.talk a.bubble{display:inline-flex;align-items:center;justify-content:center;gap:3px;
     min-width:34px;min-height:36px;border-radius:6px;color:var(--muted);text-decoration:none;
     font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
table.bd td.talk a.bubble:hover,table.bd td.talk a.bubble:focus-visible{background:var(--head);
     color:var(--text);outline:none}
table.bd td.talk a.bubble.on{color:var(--accent-ink)}
table.bd td.talk a.bubble b{font-weight:700}
table.bd td.talk a.bubble i.tk{font-style:normal;font-weight:700;font-size:12px}
/* ---- THE COMMENTS PANE (Clay 2026-10-19: "the popout pane that is 1/3 of screen or whatever for
   comments"). The bubble opens the record's card in a pane on the right, a third of the screen,
   and the board moves over rather than being covered, so the row you are talking about stays in
   view. On a phone there is no room beside anything: the pane is the whole screen. */
.fv-pane{position:fixed;top:0;right:0;bottom:0;width:33.333vw;min-width:380px;max-width:760px;
     background:var(--surface);border-left:1px solid var(--border);box-shadow:-12px 0 30px rgba(0,0,0,.28);
     z-index:60;display:flex;flex-direction:column;transform:translateX(105%);transition:transform .18s ease;
     visibility:hidden}
.fv-pane.on{transform:none;visibility:visible}
.fv-pane .pane-h{display:flex;align-items:center;gap:8px;padding:calc(8px + env(safe-area-inset-top,0px)) 10px 8px;
     border-bottom:1px solid var(--border);background:var(--head)}
.fv-pane .pane-h .pane-t{flex:1;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fv-pane .pane-h a,.fv-pane .pane-h button{font:inherit;font-size:13px;color:var(--text);background:var(--surface);
     border:1px solid var(--border);border-radius:6px;padding:4px 10px;text-decoration:none;cursor:pointer;min-height:32px}
.fv-pane .pane-h button.pane-x{font-size:20px;line-height:1;padding:2px 10px}
.fv-pane iframe{flex:1;border:0;width:100%;background:var(--bg)}
body.pane-open main{margin-right:min(max(33.333vw,380px),760px)}
/* Dragged wider or narrower (Clay 2026-10-23): the board makes room for the width the person chose. */
body.pane-open.pane-sized main{margin-right:var(--pane-w)}
.fv-pane .pane-grip{position:absolute;left:-5px;top:0;bottom:0;width:10px;cursor:col-resize;z-index:2;touch-action:none}
.fv-pane .pane-grip:hover,.fv-pane .pane-grip:focus-visible{background:linear-gradient(90deg,transparent 4px,var(--accent) 4px,var(--accent) 6px,transparent 6px);outline:none}
body.pane-drag{cursor:col-resize;user-select:none}
body.pane-drag .fv-pane iframe{pointer-events:none}
body.pane-drag .fv-pane{transition:none}
table.bd tbody tr.pane-row > td{box-shadow:inset 0 2px 0 var(--accent),inset 0 -2px 0 var(--accent)}
/* A PHONE IS ANY TOUCH SCREEN UP TO 1100px, not just one under 900 (Clay 2026-10-24, on his phone: "the two-thirds
   split shouldn't happen. It should just open to full screen"): a large phone held sideways is wider than 900. */
@media (max-width: 900px), (pointer: coarse) and (max-width: 1100px){
  .fv-pane{width:100vw !important;min-width:0;max-width:none !important;border-left:0}
  body.pane-open main{margin-right:0 !important}
  body.pane-open{overflow:hidden}
  .fv-pane .pane-grip{display:none}
}
/* The card INSIDE the pane: no app header or footer -- the pane has its own bar. */
html.in-pane header.app,html.in-pane footer.app,html.in-pane .offline-bar{display:none}
html.in-pane main{padding:10px 12px}
/* With the bubble in front, the FIRST DATA COLUMN stays frozen too -- the house rule is that the
   identifying column never scrolls away, and the bubble must not be the thing that costs it. */
table.bd th.talk + th,table.bd td.talk + td{position:sticky;left:62px;z-index:1;
     background:inherit;border-right:1px solid var(--border)}
table.bd thead th.talk + th{z-index:4;background:var(--head)}
/* The row checkbox (board engine step 3) is first and frozen; the card column and the first data
   column freeze after it, so the identifying column still never scrolls away. */
table.bd th.talk.selc,table.bd td.talk.selc{width:44px;min-width:44px;max-width:44px;white-space:nowrap}
table.bd th.selc + th.talk,table.bd td.selc + td.talk{position:sticky;left:44px;z-index:1;background:inherit}
table.bd thead th.selc + th.talk{z-index:4;background:var(--head)}
table.bd th.selc + th.talk + th,table.bd td.selc + td.talk + td{left:106px}
table.bd th.selc + th:not(.talk),table.bd td.selc + td:not(.talk){position:sticky;left:44px;z-index:1;background:inherit}
/* The Chat column is a normal pick in Columns: when it is hidden the first data column freezes where the chat column was. */
table.bd th.talk.hid + th,table.bd td.talk.hid + td{left:0}
table.bd th.selc + th.talk.hid + th,table.bd td.selc + td.talk.hid + td{left:44px}
/* ---- the record page: the record on the left, the conversation and the log on the right ---- */
.crumb{margin:0 0 8px;font-size:13px}
.crumb a{color:var(--muted);text-decoration:none}
.crumb a:hover{color:var(--text)}
.rec-grid{display:grid;grid-template-columns:minmax(280px,1fr) minmax(320px,1.2fr);gap:16px;
     align-items:start}
.rec-grid .card{max-width:none}
.rec-grid h2{font-size:15px;margin:0 0 10px;display:flex;align-items:center;gap:8px}
.rec-grid h2 .count{font-size:12px;color:var(--muted);border:1px solid var(--border);
     border-radius:99px;padding:1px 8px;font-weight:600}
/* The rec-empty / rec-more folds were removed 2026-10-31 (Clay: "I dont want the hidden fields.
   I just want them there or not there"). A field a box holds is drawn; nothing on a card hides
   behind a summary that Ctrl+F can still find. */
.rec-src{font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);
     margin:18px 0 4px;padding-top:12px;border-top:1px solid var(--border);
     display:flex;align-items:center;gap:6px}
/* ALWAYS VISIBLE, NEVER HOVER-TO-REVEAL: this card is used on a phone, where there is no hover,
   and a control nobody can find is the same as no control. Only a manager is served it at all. */
.rec-src .rs-ren{border:0;background:none;color:var(--muted);cursor:pointer;padding:2px 6px;
     border-radius:6px;font-size:13px;line-height:1;min-height:32px;min-width:32px}
.rec-src .rs-ren:hover{background:var(--hover);color:var(--text)}
.rec-side{display:flex;flex-direction:column;gap:16px}
.empty:not(td){border:1px dashed var(--border);border-radius:8px;padding:16px;color:var(--muted);
     font-size:13px;line-height:1.6}
.small{font-size:12px}
.muted{color:var(--muted)}
/* An update is a card inside the card: author and time on one line, the text under it, files
   under that, replies indented. Our own text is not coloured -- a conversation of one company
   has no "us and them". */
.upd{border:1px solid var(--border);border-radius:8px;padding:10px 12px;margin:0 0 10px;
     background:var(--bg)}
.upd header{display:flex;align-items:baseline;gap:10px;margin:0 0 5px}
.upd header .who{font-size:14px}
.upd header time{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}
.upd .body{font-size:14px;line-height:1.5;word-break:break-word}
.upd .body .mention{color:var(--accent-ink);font-weight:700}
.upd .files{margin-top:8px;display:flex;flex-wrap:wrap;gap:8px}
.upd .att{font-size:13px;color:var(--text);border:1px solid var(--border);border-radius:6px;
     padding:5px 9px;text-decoration:none;display:inline-flex;align-items:center;gap:4px}
.upd .att:hover{background:var(--head)}
.upd .replies{margin:10px 0 0 18px;border-left:2px solid var(--border);padding-left:10px}
.upd .replies .upd{margin-bottom:8px}
.upd details.reply summary{cursor:pointer;font-size:12.5px;color:var(--muted);margin-top:6px;
     list-style:none;display:inline-block;padding:4px 0}
.upd details.reply summary::-webkit-details-marker{display:none}
.upd details.reply summary:hover{color:var(--text)}
.upd-form{display:flex;flex-direction:column;gap:8px;margin:0 0 14px}
.upd-form textarea{font:inherit;padding:9px 10px;border:1px solid var(--border);border-radius:6px;
     background:var(--bg);color:var(--text);resize:vertical;min-height:44px}
.upd-form textarea:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
/* THE ONE PRIMARY ACTION IS SOLID. Chips, pills and links are outlined or plain, so a person
   can tell at a glance which thing on the screen posts. */
.upd-form button.primary{font:inherit;font-weight:700;padding:9px 16px;border-radius:6px;
     border:none;background:var(--accent-fill);color:var(--accent-text);cursor:pointer;min-height:40px;
     align-self:flex-start}
.upd-form .upd-act{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.upd-form .upd-att{font-size:13px;color:var(--text);border:1px solid var(--border);
     border-radius:6px;padding:8px 10px;cursor:pointer;min-height:40px;display:inline-flex;
     align-items:center;gap:4px}
.upd-form .upd-att input{display:none}
.upd-form .mentions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12.5px}
/* A mention chip INSERTS text; it is a small button and looks like one, not like a badge. */
.mention-chip{font:inherit;font-size:12.5px;cursor:pointer;background:var(--surface);
     color:var(--text);border:1px solid var(--border);border-radius:6px;padding:5px 9px;
     min-height:30px}
.mention-chip:hover{background:var(--head)}
.bd-wrap.act{max-height:60vh}
@media (max-width: 760px), (pointer: coarse) and (max-width: 1100px){ .rec-grid{grid-template-columns:1fr} }
/* ---- communications: search first, then the board ---- */
.comms-find{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.comms-find input[type=search]{flex:1 1 320px;min-width:0;font:inherit;padding:9px 11px;
     border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text)}
.comms-find select{font:inherit;padding:9px 10px;border:1px solid var(--border);border-radius:6px;
     background:var(--surface);color:var(--text)}
.comms-find button.primary{font:inherit;font-weight:700;padding:9px 16px;border-radius:6px;
     border:none;background:var(--accent-fill);color:var(--accent-text);cursor:pointer;min-height:40px}
@media (max-width: 560px){ .comms-find input[type=search],.comms-find select{font-size:16px} }
/* ---- system views: the switch above a board ---- */
.views{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px}
.views .vlbl{font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);
     margin-right:4px}
/* A view chip is NAVIGATION and looks like it: outlined, with the current one filled in the
   accent -- the same treatment as the current board in the board menu, so one rule says
   "you are here" everywhere. Distinct from a status badge (uppercase, tiny) on purpose. */
.views .vchip{font-size:13px;padding:5px 12px;border:1px solid var(--border);border-radius:8px;
     color:var(--text);text-decoration:none;min-height:30px;display:inline-flex;align-items:center}
.views .vchip:hover{background:var(--head)}
.vnote{font-size:13px;margin:-4px 0 10px}
.views .vchip.on{background:var(--accent-fill);color:var(--accent-text);border-color:var(--accent);
     font-weight:600}
.sheetbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 10px}
.sheetbar form{display:flex;gap:6px}
.sheetbar input[type=search]{font:inherit;padding:5px 8px;border:1px solid var(--border);
        border-radius:6px;background:var(--surface);color:var(--text);min-width:200px}
.sheetbar .count{color:var(--muted)}
.scroll{overflow:auto;border:1px solid var(--border);border-radius:8px;background:var(--surface)}
table.sheet{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
table.sheet th,table.sheet td{padding:6px 10px;border-bottom:1px solid var(--border);
        white-space:nowrap;max-width:360px;overflow:hidden;text-overflow:ellipsis;text-align:left}
table.sheet thead th{position:sticky;top:0;z-index:2;background:var(--surface)}
table.sheet thead th a{color:var(--text);text-decoration:none;display:block}
table.sheet thead th .type{display:block;font-weight:400;font-size:11px;color:var(--muted)}
/* first column frozen -- base app spec */
table.sheet th:first-child,table.sheet td:first-child{position:sticky;left:0;z-index:1;
        background:var(--surface);border-right:1px solid var(--border)}
table.sheet thead th:first-child{z-index:3}
table.sheet tbody tr:nth-child(even) td{background:var(--row-alt)}
table.sheet tbody tr:nth-child(even) td:first-child{background:var(--row-alt)}
td.null{color:var(--muted);font-style:italic}
.pager{display:flex;gap:10px;align-items:center;margin:10px 0;color:var(--muted)}
/* SOFT NAVIGATION (ui.py initBoard / softGo): while the next table is on its way only the table dims; the menu, tabs and toolbar never move. */
main.fv-soft-busy .bd-wrap,main.fv-soft-busy .pager{opacity:.5;transition:opacity .12s}
main.fv-soft-busy .bd-wrap{pointer-events:none}
/* ---- phones ----
   The sign-in screen was built at desk size and it showed: a 92px mark, a 44px wordmark and
   8vh of air above all of it meant a client's name wrapped onto two lines and the password
   field sat below the fold. Sign-in is the FIRST thing anyone sees of this product and, for a
   field tech, often the only screen they use -- so it gets sized for the phone, not shrunk
   onto it afterwards.

   Nothing here is a separate mobile layout. Same markup, fewer pixels. */
@media (max-width: 560px){
  .signin{margin:3vh auto 0;padding:0 16px}
  .signin > svg{width:60px;height:60px;margin-bottom:14px}
  .wordmark{font-size:30px;letter-spacing:-.5px;line-height:1.15}
  .tagline{font-size:15px;margin:6px 0 22px}
  .signin-form{gap:12px}
  /* 16px minimum on the inputs, or iOS Safari zooms the whole page in on focus and the person
     is left panning around a form they cannot see. */
  .signin-form input{font-size:16px;padding:12px}
  .signin-note{font-size:13px;margin-top:18px}
  header.app{gap:10px;padding:9px 12px;flex-wrap:nowrap}
  header.app .name{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  /* The account menu keeps the avatar and drops the name -- the initial is enough to tap, and
     the full name is what pushes the header into two rows on a narrow screen. */
  .acct .who{display:none}
  .acct-menu{position:fixed;left:8px;right:8px;top:56px;min-width:0;max-height:calc(100dvh - 72px);overflow:auto}
  nav.app{padding:5px 8px;overflow-x:auto;flex-wrap:nowrap}
  nav.app a,nav.app span{white-space:nowrap}
  main{padding:12px}
  h1{font-size:17px}
  .card{padding:13px}
  .bd-wrap{max-height:none}
  .bd-bar .bd-sp{flex:0 0 100%}
  .fld{flex-wrap:wrap;gap:2px}
  .photo-slot{height:140px}
}
/* THE BOARD TOOLBAR, ONE CONTROL SHAPE (Clay's phone, 1.55.0: the Person button stood as a tall
   square with its icon over its label, Export CSV's text sat high, Filter / Sort / Hide / Group by
   did not line up). Monday's compact toolbar: every control the same height, its icon inline to
   the left of its label, text centred, the same padding -- New item included -- and on a phone
   the bar wraps into clean rows. Last in the sheet so it wins over the older per-control rules. */
.bd-bar .bd-new,.bd-bar .bd-person,.bd-bar .bd-filter,.bd-bar .bd-sort,.bd-bar .bd-unhide,.bd-bar .bd-groupby,
.bd-bar .bd-save,.bd-bar .bd-reset,.bd-bar > a.btn{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;
  gap:6px;height:36px;min-height:36px;box-sizing:border-box;padding:0 12px;margin:0;line-height:1;font-size:13px;
  white-space:nowrap;vertical-align:middle;border-radius:8px;text-decoration:none}
.bd-bar .bd-person,.bd-bar .bd-filter,.bd-bar .bd-sort,.bd-bar .bd-unhide,.bd-bar .bd-groupby{border:1px solid transparent;background:none;color:var(--text)}
.bd-bar .bd-person:hover{background:var(--hover)}
.bd-bar .bd-person.on{background:color-mix(in srgb, var(--accent) 14%, var(--surface))}
.bd-bar .bd-new svg,.bd-bar .bd-person svg,.bd-bar .bd-filter svg,.bd-bar .bd-sort svg,.bd-bar .bd-unhide svg,.bd-bar .bd-groupby svg{
  width:14px;height:14px;flex:none;display:block;color:var(--muted)}
.bd-bar .bd-person .lb,.bd-bar .bd-filter .lb,.bd-bar .bd-sort .lb,.bd-bar .bd-unhide .lb,.bd-bar .bd-groupby .lb{display:inline-block;line-height:1}
.bd-bar .count{display:inline-block;line-height:36px}   /* not flex: that eats the space in "12 of 40" */
.bd-bar .bd-fold{height:36px;width:36px}
.bd-bar [hidden]{display:none!important}   /* Discard stays hidden until something changed */
@media (pointer: coarse), (max-width: 600px){
  .bd-bar .bd-new,.bd-bar .bd-person,.bd-bar .bd-filter,.bd-bar .bd-sort,.bd-bar .bd-unhide,.bd-bar .bd-groupby,
  .bd-bar .bd-save,.bd-bar .bd-reset,.bd-bar > a.btn{height:40px;min-height:40px}
  .bd-bar .bd-fold{height:40px;width:40px}
}
@media (max-width: 560px){
  .bd-bar{gap:6px}
  .bd-bar .count{flex:0 0 100%;line-height:1.4;order:-1;font-size:12px}
  .bd-bar .bd-new,.bd-bar .bd-person,.bd-bar .bd-filter,.bd-bar .bd-sort,.bd-bar .bd-unhide,.bd-bar .bd-groupby,
  .bd-bar .bd-save,.bd-bar .bd-reset,.bd-bar > a.btn{padding:0 10px}
}
/* SIDEWAYS ON A PHONE (Clay, 1.55.0: "the group header lines pan but the detail rows don't
   move"). The rows did scroll -- but the checkbox, the card column and the first data column were
   all frozen, about 240 of 390px, so a swipe moved a sliver; and a group's header is one cell as
   wide as the table, so its title slid out of sight. Now a group header's title is pinned to the
   visible left edge while the rows pan beneath it, and on a phone only the FIRST DATA COLUMN
   stays frozen (narrowed) -- the checkbox and card columns scroll away with the rest. The header
   cell must not clip (overflow:visible): a clipping cell becomes the sticky box's scroller and the
   title scrolls away with it. */
/* VIEWS ARE THE LAYOUT: the tab strip above a Kanban / Calendar / Tasks page (ui.view_tabs_strip). */
.vboard .vb-bar{margin:0}
.vboard .vb-bar .bd-view:not(:empty){margin:0 0 8px}
.pop .vtypes{display:flex;flex-wrap:wrap;gap:2px 12px}
table.bd tbody tr.grp > td{position:static;overflow:visible}
table.bd tbody tr.grp .bg-in{position:sticky;left:8px;display:inline-flex;align-items:center;gap:4px;max-width:calc(100vw - 56px);
  white-space:nowrap;overflow:hidden}
/* THE SECTION'S BAR STAYS UNDER THE FROZEN COLUMNS (TODO 745, Clay 2026-10-29: border pieces missing under the
   checkbox and updates columns on a coloured section). The bar was the cell's own left edge, and the cell spans the
   whole row, so a board scrolled sideways carried it off-screen and left the frozen columns without it. It is now
   the left edge of the sticky label strip, stretched to the row's full height, so it never moves. */
table.bd tbody tr.grp > td{padding-top:0;padding-bottom:0;box-shadow:none}
table.bd tbody tr.grp.colored > td{border-left:0}
table.bd tbody tr.grp .bg-in{left:0;margin-left:-10px;padding:7px 0 7px 14px;border-left:4px solid var(--accent)}
table.bd tbody tr.grp.colored .bg-in{border-left-color:var(--grpc)}
@media (max-width: 560px){
  /* D-TBD: the checkbox and chat columns stay PINNED FIRST on a phone (no drag can move them), but they
     scroll away here -- the 1.55.0 rule above: one narrowed frozen column so a swipe moves the rows. */
  table.bd thead th.selc,table.bd thead th.talk,table.bd thead th.selc + th.talk{left:auto}
  table.bd tbody td.selc,table.bd tbody td.talk,table.bd tbody td.selc + td.talk{position:static;overflow:visible}  /* a static cell that clips is not tappable in Chromium */
  table.bd thead th.selc + th.talk + th,table.bd thead th.talk + th,table.bd thead th.selc + th:not(.talk){left:0;max-width:42vw}
  table.bd tbody td.selc + td.talk + td,table.bd tbody td.talk + td,table.bd tbody td.selc + td:not(.talk){position:sticky;left:0;max-width:42vw;overflow:hidden;text-overflow:ellipsis;  /* its text never runs over the next cell */
    box-shadow:2px 0 0 var(--border)}
  /* A table with no checkbox or card column (Users) freezes its first column -- capped the same way
     (mobile UAT #1/#17: Users froze a 230px Name, 56% of the screen). */
  table.bd th:first-child:not(.selc):not(.talk),table.bd td:first-child:not(.selc):not(.talk){max-width:42vw;overflow:hidden;text-overflow:ellipsis}
}
/* THE FILTER PANEL ON A PHONE (mobile UAT 1.55, #5): its row was a five-track grid about 570px
   wide, so the comparator and the value ran 186px off a 412px screen. Under 600px each condition
   stacks: the And/Where word with the remove button, then column, comparator and value, full width. */
@media (max-width: 600px){
  .pop.fpanel .fr,.pop.fpanel.small .fr{grid-template-columns:minmax(0,1fr) 40px;gap:6px}
  .pop.fpanel .fr > *{grid-column:1;min-width:0}
  .pop.fpanel .fr > .fw{grid-row:1}
  .pop.fpanel .fr > .frm{grid-column:2;grid-row:1;justify-self:end}
  .pop.fpanel .fr + .fr{border-top:1px solid var(--border);padding-top:8px}
  .pop.fpanel .fvlist{margin-left:0}
  .pop.fpanel .fgroup .fr{grid-template-columns:minmax(0,1fr) 40px}
  /* the Highlight row stacks the same way: controls full width, the colour beside row / cell, the remove button at the top right */
  .pop.fpanel .ccr .fr{grid-template-columns:minmax(0,1fr) 40px;gap:6px}
  .pop.fpanel .fr > .frm-ph{grid-column:2;grid-row:1;justify-self:end}
  .pop.fpanel .ccr .fr > .ccconj{grid-row:1;width:auto;justify-self:start}
  .pop .ccft{flex-wrap:wrap;padding-left:0}.pop .ccft > .ccend{display:flex;flex:1 1 100%;margin-left:0}
  .pop.fpanel .ccr .ccend select{flex:1;width:auto}
  .pop .ccsel,.pop .ccsel-ph{width:auto;flex:1;min-height:40px}.pop .ccsel-ph{visibility:hidden}
  .pop .ccpal{grid-template-columns:repeat(6,minmax(0,1fr));margin-left:0}.pop .ccsw{width:100%;height:40px}
  .pop .fval{flex-wrap:wrap}
}
/* PHONES HAVE NO ESCAPE KEY (mobile UAT #19): every pop-out gets a Close button on a touch screen. */
.pop .pclose{display:none}
@media (pointer: coarse), (max-width: 600px){
  .pop .pclose{display:block;position:sticky;top:0;float:right;z-index:1;width:40px;height:40px;margin:-6px 0 0 6px;
    border:none;background:var(--surface);color:var(--muted);font-size:24px;line-height:1;cursor:pointer;border-radius:8px}
}
/* FINGER-SIZED, AND NO ZOOM ON FOCUS (mobile UAT 1.55, #13 #15 #18). On a touch screen every control
   a finger aims at is at least 40px; every text field is 16px, or an iPhone zooms the page when it
   is tapped; nothing a person must read is under 12px. Mouse screens keep the compact sizes.
   Also at phone WIDTH, not only on a touch pointer: a check that loses touch emulation (a full-page
   screenshot does) or a phone browser that reports a fine pointer still gets finger-sized controls. */
@media (pointer: coarse), (max-width: 600px){
  header.app .btn,header.app button,header.app summary,header.app a.btn,.bm > summary,.acct > summary{min-height:40px;min-width:40px}
  footer.app{align-items:center} footer.app a{display:inline-flex;align-items:center;min-height:40px}
  .bm-item,.acct-item{min-height:40px;box-sizing:border-box}
  .vtabs .vtab a{min-height:40px;display:inline-flex;align-items:center}
  .vtabs .vmore,.vtabs .vadd,.bd-bar .bd-fold{min-width:40px;min-height:40px}
  table.bd thead th .kebab{min-width:40px;min-height:40px}
  table.bd td.talk a.bubble{min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center}
  table.bd tbody tr.grp .bg-tg,table.bd tbody tr.grp .bg-menu,table.bd tbody tr.grp .grp-tg{min-width:40px;min-height:40px}
  table.bd tbody tr.grp .bg-sel,table.bd td.selc input,table.bd th.selc input,label.bf-tagopt input,form.bf-inline input[type=checkbox]{width:24px;height:24px}
  header.app a.btn{display:inline-flex;align-items:center;justify-content:center}
  footer.app a{min-width:40px;justify-content:center}
  .rec-pulse,form.rec-refresh button,.rec-src .rs-ren,form.bf-inline select,form.bf-inline button,form.bf-inline input:not([type=checkbox]){min-height:40px}
  .sheetbar input,.sheetbar button,.sheetbar .btn,.ix-pill,a.ix-pill,.ix-btn,a.ix-btn,button.ix-btn{min-height:40px}
  .pop button,.pop a.mi,.pop .fvopt,.pop label.rad{min-height:40px}
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea{font-size:16px!important}
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=hidden]),select{min-height:40px;box-sizing:border-box}
  table.bd thead th .lbl{min-height:40px;min-width:32px;display:inline-flex;align-items:center}
  table.bd thead th .src,table.bd thead th .lk,table.bd tfoot .sum-l,.magg,.views .vlbl,.pop .pl,.pop .sect,.pop.menu .why,
  table.bd td.talk a.bubble i.tk,.rec-src,.acct-sect,.bm-sec,.led .ldsc,.led .lcount,.pop.fpanel .fvopt em{font-size:12px}
}
