/*~ Studio front end styles: base (moved out of index.html, batch 96 - same rules, same order) */
  /* Text, colours and components follow BMS AR's admin UI (Shawforge Light theme): same fonts, sizes, cards with a
     blue header band, outline buttons with a filled primary, gridded tables, small grey field labels. */
  @font-face { font-family: "Inter"; src: url(/static/brand/fonts/Inter-Regular.ttf); font-weight: 400; }
  @font-face { font-family: "Inter"; src: url(/static/brand/fonts/Inter-SemiBold.ttf); font-weight: 500 600; }
  @font-face { font-family: "Inter"; src: url(/static/brand/fonts/Inter-Bold.ttf); font-weight: 700; }
  :root {
    --blue: #0B1D9C; --blue-dark: #081571; --mint: #A9C1FF; --on-primary: #FFFFFF; --link: #0B1D9C;
    --link-visited: color-mix(in srgb, var(--link) 78%, var(--ink));
    --bg: #F7F8FB; --surface: #FFFFFF; --surface-alt: #F4F7FC; --grey-band: #EEF0F5; --grid: #EEF0F4; --line: #E1E5EC;
    --input-line: #CBD2DC; --ink: #10141C; --muted: #5E6878;
    --ctl-h: 38px;                 /* every search + filter row's one control height (Simon, 29 Oct 2026, image 825) */
    --blue-tint: color-mix(in srgb, var(--blue) 70%, #fff); --blue-pale: color-mix(in srgb, var(--blue) 12%, var(--surface));
    --ok: #00B050; --warn: #ED7D31; --alarm: #E03A3A; --stale: #A6A6A6;
    --head: "Neue Haas Grotesk Text Pro", "Inter", "Helvetica Now Text", Calibri, "Segoe UI", Arial, sans-serif;
    --body: "Inter", -apple-system, "Segoe UI", Roboto, Calibri, Arial, sans-serif;   /* the same face as --head: one typeface */
  }
  html.booting body { visibility: hidden; }
  /* ONE delete / remove icon across Studio (batch 81 item 5): the bin, faint red at rest, dark red on hover - BMS AR's
     .qvBin is the same (shared styling) */
  :root { --bin-rest: color-mix(in srgb, #d32f2f 55%, transparent); --bin-hover: #8e0000; }
  .qvBin { border: 0; background: none; color: var(--bin-rest); cursor: pointer; padding: 2px 3px; border-radius: 4px; line-height: 0; vertical-align: middle; }
  .qvBin:hover, .qvBin:focus-visible { color: var(--bin-hover); background: color-mix(in srgb, #d32f2f 10%, transparent); }
  .qvBin svg { display: block; }
  * { box-sizing: border-box; }
  /* Type scale (one typeface): 24 page title · 15 card / dialog titles · 14 text · 13 secondary + buttons · 12 labels,
     chips, small buttons. Weights 400 and 600 only. */
  body { margin: 0; font: 14px/1.5 var(--body); color: var(--ink); background: var(--bg); }
  b, strong, th { font-weight: 600; }
  h1, h2, h3, .brandtext, button, .btn, .tabs a { font-family: var(--head); }
  h1 { font-size: 24px; font-weight: 600; margin: 0 0 18px; }
  h2 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
  h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; color: var(--link); }
  .hidden { display: none !important; }
  .muted { color: var(--muted); font-size: 13px; } .small { font-size: 13px; } .small .muted, .muted .small { font-size: inherit; }
  /* links: Shawforge blue, visited a little darker, hover a pale underline */
  main a:not(.tile):not(.btn) { color: var(--link); text-decoration: none; }
  main a:not(.tile):not(.btn):visited { color: var(--link-visited); }
  main a:not(.tile):not(.btn):hover, main a:not(.tile):not(.btn):focus-visible { color: var(--link-visited); text-decoration: underline;
    text-decoration-color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 3px; }
  /* the Recent jobs pop-out is outside <main>: its links are the same as My jobs' (batch 131 item 3) */
  #sideJobs a:not(.btn) { color: var(--link); text-decoration: none; }
  #sideJobs a:not(.btn):visited { color: var(--link-visited); }
  #sideJobs a:not(.btn):hover, #sideJobs a:not(.btn):focus-visible { color: var(--link-visited); text-decoration: underline;
    text-decoration-color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 3px; }

  /* ---- buttons: outline by default, filled for the main action */
  button, .btn { font-size: 13px; font-weight: 600; padding: 6px 14px; border: 1px solid var(--blue); border-radius: 4px; background: var(--surface);
    color: var(--link); cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.4; }
  button:hover, .btn:hover { background: var(--blue-pale); }
  button.primary, .btn.primary, button[type=submit] { background: var(--blue); color: var(--on-primary); }
  button.primary:hover, .btn.primary:hover, button[type=submit]:hover { background: var(--blue-dark); }
  button.small, .btn.small { padding: 3px 9px; font-size: 12px; }
  /* batch 219 item 6 (Simon 7 Nov 2026, 862): a popover's / dialog's action buttons are one size - the same height,
     padding and font (Cancel was small with tiny text beside a bigger Add); the primary action keeps its primary fill */
  .btns > button, .btns > .btn, .qvBtnPair > button, .qvBtnPair > .btn { font-size: 13px; padding: 6px 14px; line-height: 1.4;
    min-height: 32px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
  button.danger { color: var(--alarm); border-color: var(--alarm); }
  button.danger:hover { background: color-mix(in srgb, var(--alarm) 10%, var(--surface)); }
  button:disabled { opacity: .5; cursor: default; }

  /* ---- fields */
  label.f { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); margin: 0 0 12px; }
  input, select, textarea { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid var(--input-line); border-radius: 4px; margin-top: 3px;
    background: var(--surface); color: var(--ink); }
  input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue-tint); outline-offset: 0; border-color: var(--blue); }
  input[type=checkbox] { margin: 0 6px 0 0; vertical-align: -1px; }
  label.f > input, label.f > select, label.f > textarea { width: 100%; }
  label.f > .badge { align-self: flex-start; margin: 2px 0 1px; }
  /* a "set" chip rides on the label's own line, so its box lines up with the boxes beside it */
  .recentjobs { max-height: 560px; overflow-y: auto; }
.recentjobs table.grid tr:first-child th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
/* batch 216 item 14 (Simon 7 Nov 2026 - "Heading off page"): a list page's filter row (Filter / All tasks / Everyone / Any
   status) held in full just under the top bar and the tabs while the list scrolls - never under them */
.jfbar.jfsticky { position: sticky; top: var(--listtop, 108px); z-index: 20; background: var(--surface); padding: 8px 0 6px;
  margin-top: -8px !important; box-shadow: 0 1px 0 var(--grid); }
.card:has(.jfsticky) { overflow: clip; }   /* (a card's overflow hidden made it a sticky container - the bar never held) */
label.f { position: relative; }
  label.f > .chip { position: absolute; top: 0; right: 0; margin: 0; padding: 0 8px; font-size: 10px; line-height: 15px; }

  /* ---- splash / sign-in (BMS AR's) */
  .login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; position: relative; }
  .login .art { position: relative; padding: 42px; color: var(--mint); display: flex; flex-direction: column;
    justify-content: space-between; background: var(--blue); overflow: hidden; }
  .login .art > * { position: relative; z-index: 1; }
  .login .art img { width: 220px; }
  .login .art .wordmark { display: none; font: 600 22px var(--head); color: #fff; margin-top: 14px; letter-spacing: .01em; }
  .login .art .tagline { font: 400 38px/1.1 var(--head); letter-spacing: -.01em; max-width: 460px; }
  /* Sign-in artwork (BMS AR's): a faint tree with a band of light travelling down it into the hub, which flares */
  .login .art .flow { position: absolute; left: 0; right: 0; top: 96px; bottom: 250px; z-index: 0; pointer-events: none; }
  .login .art .flow i { position: absolute; inset: 0; background: url(/static/brand/signin-flow.png) center bottom / contain no-repeat; }
  .login .art .flow .base { opacity: .42; }
  .login .art .flow .glow { filter: drop-shadow(0 0 6px rgba(169, 193, 255, .9));
    -webkit-mask-image: linear-gradient(to top, transparent 38%, #000 47%, #000 53%, transparent 62%);
    mask-image: linear-gradient(to top, transparent 38%, #000 47%, #000 53%, transparent 62%);
    -webkit-mask-size: 100% 300%; mask-size: 100% 300%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: dataflow 6s linear infinite; }
  @keyframes dataflow { from { -webkit-mask-position: 0 100%; mask-position: 0 100%; } to { -webkit-mask-position: 0 0%; mask-position: 0 0%; } }
  .login .art .hub { position: absolute; left: 50%; bottom: 128px; width: 124px; height: 140px; transform: translateX(-50%); z-index: 0; pointer-events: none; }
  .login .art .hub i { position: absolute; inset: 0; background: url(/static/brand/signin-hub.png) center / contain no-repeat; }
  .login .art .hub .rest { opacity: .6; }
  .login .art .hub .lit { opacity: 0; filter: drop-shadow(0 0 6px rgba(225, 234, 255, .95)) drop-shadow(0 0 18px rgba(169, 193, 255, .8));
    animation: hubflare 6s linear infinite; }
  .login .art .hub::after { content: ''; position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; transform: translate(-50%, -50%);
    border-radius: 50%; background: radial-gradient(circle, rgba(169, 193, 255, .38), transparent 65%); opacity: 0; animation: hubflare 6s linear infinite; }
  @keyframes hubflare { 0%, 68% { opacity: 0; } 78% { opacity: 1; } 100% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .login .art .flow .glow { animation: none; opacity: 0; } .login .art .flow .base { opacity: .6; }
    .login .art .hub .lit, .login .art .hub::after { animation: none; opacity: 0; } .login .art .hub .rest { opacity: .8; } }
  .login .formside { display: flex; align-items: center; justify-content: center; background: var(--surface); padding: 24px; }
  .login form { width: 340px; max-width: 100%; }
  .login h1 { font-size: 26px; font-weight: 600; color: var(--link); margin: 0 0 6px; }
  .login input { width: 100%; padding: 9px 10px; }
  .login button[type=submit] { width: 100%; padding: 10px; font-size: 15px; margin-top: 8px; }
  .login .err { color: var(--alarm); min-height: 20px; font-size: 14px; }
  .login .links { margin-top: 12px; font-size: 14px; color: var(--ink); }
  .login .links a { color: var(--link); }
  .login .vertag { position: absolute; right: 16px; bottom: 12px; color: #000; font-size: 12px; }
  @media (max-width: 800px) { .login { grid-template-columns: 1fr; } .login .art { min-height: 200px; } }   /* as BMS AR */
  /* every password box gets an eye to show / hide what was typed */
  .pw { position: relative; display: block; margin-top: 3px; }
  .pw input { width: 100%; padding-right: 40px; margin-top: 0 !important; }
  .pw .eye, .login .pw .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: auto; margin: 0;
    border: none; background: transparent; padding: 4px 6px; color: var(--muted); cursor: pointer; line-height: 0; }
  .pw .eye:hover { color: var(--link); background: transparent; }
  .pw .eye svg { width: 20px; height: 20px; }

  /* ---- app shell: header, tabs below it, page, footer bar */
  #app:not(.hidden) { display: flex; flex-direction: column; min-height: 100vh; }
  header.top { display: flex; align-items: center; gap: 18px; height: 60px; padding: 0 22px; background: var(--blue); color: var(--on-primary); flex: none;
    position: sticky; top: 0; z-index: 30; overflow: hidden; }   /* the top bar and the menu stay put while the page scrolls */
  header.top::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 34%; pointer-events: none;
    background-image: radial-gradient(circle, color-mix(in srgb, var(--mint) 55%, transparent) 2px, transparent 2.5px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 60%); mask-image: linear-gradient(to right, transparent, #000 60%); }
  header.top > * { position: relative; z-index: 1; }
  header.top img { height: 30px; }
  header.top .productlogo { display: inline-flex; align-items: center; margin-left: 4px; }
  header.top .productlogo img { height: 38px; width: auto; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .25)); }
  header.top .brandtext { color: var(--mint); font-weight: 600; font-size: 17px; letter-spacing: .02em;
    border-left: 1px solid color-mix(in srgb, var(--mint) 40%, transparent); padding-left: 16px; }
  header.top .hdrwhere { color: var(--on-primary); font: 600 16px var(--head); opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  header.top .hdrwhere:not(:empty)::before { content: "›"; margin-right: 12px; color: var(--mint); }   /* Studio › the module / page you're in */
  header.top .spacer { flex: 1; }
  header.top .who { font-size: 14px; display: flex; gap: 10px; align-items: center; color: var(--on-primary); }
  header.top .who a.me, header.top .who button { font: 600 13px var(--head); padding: 6px 14px; border-radius: 4px; background: var(--blue);
    color: var(--on-primary); border: 1px solid color-mix(in srgb, var(--on-primary) 75%, transparent); text-decoration: none; }
  header.top .who a.me:hover, header.top .who button:hover { background: var(--blue-dark); }
  nav.tabs { display: flex; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 16px; flex: none;
    position: sticky; top: 60px; z-index: 29; }
  nav.tabs a { padding: 11px 16px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; }
  nav.tabs a:hover { color: var(--link); }
  nav.tabs a.on { color: var(--link); border-bottom-color: var(--blue); }
  nav.tabs a.navright { margin-left: auto; }   /* Studio Monitor sits at the far right of the menu bar */
  main { flex: 1; padding: 22px 28px 60px; }
  footer.appfoot { flex: none; display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; padding: 6px 18px; font-size: 12px;
    background: var(--blue-dark); color: color-mix(in srgb, var(--on-primary) 80%, transparent);
    position: sticky; bottom: 0; z-index: 46; }                     /* held at the bottom while the page scrolls, like the top bar */
  footer.appfoot a { color: var(--mint); } footer.appfoot .sp { flex: 1; }
  /* the live status bar just above the footer (batch 15 item 5): one line, full width, held at the bottom with it */
  /* popups (tray, toasts, job notes) sit at 31, above the bars */
  /* batch 93 item 12: 46 - above the quote board's folded-column rail (40 / 45), which covered the open pane's first letters */
  .statusbar { flex: none; position: sticky; bottom: 27px; z-index: 46; background: color-mix(in srgb, var(--blue) 10%, var(--surface));
    border-top: 1px solid var(--line); }
  .statusbar .sbline { display: block; width: 100%; height: auto; text-align: left; border: 0; border-radius: 0; background: transparent; color: var(--ink);
    font: 13px/1.4 var(--body); padding: 5px 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
  .statusbar .sbline:hover { background: var(--blue-pale); }
  .statusbar .sbline b { color: var(--link); }
  .statusbar .sbpane { position: absolute; left: 12px; right: 12px; bottom: 100%; max-height: 50vh; overflow: auto; background: var(--surface);
    border: 1px solid var(--line); border-radius: 8px 8px 0 0; box-shadow: 0 -6px 20px rgba(0,0,0,.14); padding: 8px 14px 10px; }
  .statusbar .sbpane h4 { margin: 8px 0 4px; font: 600 12px var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .statusbar .sbitem { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(140px, 1fr); gap: 4px 12px; align-items: center; padding: 4px 0;
    border-bottom: 1px solid var(--grid); font-size: 13px; }
  @media (max-width: 760px) { .statusbar .sbitem { grid-template-columns: 1fr; } }

  /* ---- cards: a blue band with the title, then the body */
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 18px; overflow: hidden; }
  /* a card's heading is a plain bold subheading - no band, nothing folds (Simon, 29 Oct 2026: "Every page uses plain
     subheadings and nothing collapses"); a page of one section has none - its title is the page's h1 (.card.solo) */
  .card > h2 { margin: 0; padding: 12px 16px 2px; background: transparent; color: var(--link); font-size: 15px; font-weight: 700;
    display: flex; align-items: center; gap: 10px; }
  /* every section title on a pale-blue bar the card's width, a slight radius (Simon, 29 Oct 2026 - batch 14 item 10:
     "to break the sections up"): one class, .secbar, on every tile's section cards - a card's h2 has it already; the
     theme's own pale blue (--blue-pale: its primary 12% over its surface, dark themes too). BMS AR: .secbar the same. */
  .secbar, .card > h2 { margin: 6px 6px 8px; padding: 7px 10px; background: var(--blue-pale); color: var(--link); border-radius: 4px;
    font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
  .card > h2 .right { margin-left: auto; display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 400; color: var(--muted, inherit); }
  .card > h2 button, .card > h2 .btn { padding: 3px 10px; font-size: 13px; }
  .jumps { margin: 2px 0 14px; line-height: 1.9; } .jumps a { white-space: nowrap; }
  /* BMS AR's sub-tabs (shared styling): Settings' areas */
  nav.subtabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--surface-alt, var(--surface)); border-bottom: 1px solid var(--line); padding: 6px 12px; margin: 0 0 14px; border-radius: 6px 6px 0 0; }
  nav.subtabs:empty { display: none; }
  /* the #view forms beat "main a:...:visited/:hover" (dark link colours), which hid the selected tab's text on the
     dark-blue pill (Simon, 31 Oct 2026: "text hidden") */
  nav.subtabs a, #view nav.subtabs a, #view nav.subtabs a:visited { padding: 4px 12px; border-radius: 14px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; font-family: var(--head); }
  nav.subtabs a:hover, #view nav.subtabs a:hover, #view nav.subtabs a:focus-visible { color: var(--link); text-decoration: none; }
  nav.subtabs a.on, #view nav.subtabs a.on, #view nav.subtabs a.on:visited, #view nav.subtabs a.on:hover, #view nav.subtabs a.on:focus-visible { background: var(--blue); color: var(--on-primary, #fff); }
  #view > .card[data-tab][hidden], section.subsec[data-tab][hidden] { display: none; }
  /* every contact row: the same left bar (its source's colour) and a source tag in its own column, so the columns line up
     (Simon, 29 Oct 2026, image 828): blue = from documents / an import, green = added or edited by a user */
  .clcon { box-shadow: inset 3px 0 0 var(--src-c, var(--ok, #2E7D32)); padding-left: 8px; }
  .clcon[data-src-kind="import"] { --src-c: var(--blue); }
  .clcon[data-src-kind="user"] { --src-c: var(--ok, #2E7D32); }
  .clcon .srctag { align-self: center; font-size: 11px; line-height: 1.2; padding: 2px 6px; border-radius: 9px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--src-c) 12%, var(--surface)); color: var(--src-c); }
  .clcon.hit { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
  .clhits { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
  .clhit { display: block; padding: 5px 8px; border-left: 3px solid var(--blue); text-decoration: none; }
  .clhit:hover { background: var(--surface); }
  .clcon.clhead { box-shadow: none; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 0; }
  .clcon.clhead span { padding: 0 2px; }
  .cldrop { border: 2px dashed var(--input-line); border-radius: 6px; padding: 10px 14px; margin: 0 0 14px; cursor: pointer; }
  .cldrop .symcount { margin: 0; }
  .cldrop:hover, .cldrop.over { border-color: var(--blue); background: var(--blue-pale); }
  .card.solo > h2 > .cardttl { display: none; }
  .card.solo > h2.empty { display: none; }
  .card.solo > h2 { padding-top: 10px; }
  details.foundcard > summary { list-style: none; pointer-events: none; padding: 12px 16px 2px; color: var(--link); font-size: 15px; font-weight: 700; }
  details.foundcard > summary::-webkit-details-marker { display: none; }
  .card > .body { padding: 14px 16px; }
  /* fold: every card header can roll its card up (remembered per user, page and card - as BMS AR) */
  .card > h2 .fold { flex: none; width: 22px; height: 22px; padding: 0; margin: 0 -2px 0 -6px; border: 0; border-radius: 4px; background: transparent;
    color: var(--mint); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
  .card > h2 .fold:hover { background: color-mix(in srgb, var(--mint) 18%, transparent); }
  .card > h2 .fold svg { width: 14px; height: 14px; transition: transform .15s; }
  .card.folded > h2 .fold svg { transform: rotate(-90deg); }
  .card.folded > :not(h2) { display: none !important; }
  .card.folded > h2 .right > :not(.chip) { display: none; }
  .pdpanel > h2 { flex-wrap: wrap; row-gap: 2px; }          /* a panel's bar: on a phone its counts go under its name */
  @media (max-width: 640px) { .pdpanel > h2 .right { flex-basis: 100%; justify-content: flex-start; padding-left: 46px; } }
  /* batch 74 item 11 (Simon 1 Nov 2026, image 337): never under a side panel - above the board's folded / peeking
     columns (40-45) and its docs pane / lists (60), under dialogs and viewers (1000+); Home's tray stays above it */
  .fbbtn { position: fixed; right: 18px; bottom: 44px; z-index: 61; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    border-radius: 20px; border: 0; background: var(--blue); color: var(--on-primary, #fff); font: 600 13px var(--head); cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18); opacity: .92; }
  .fbbtn:hover { opacity: 1; }
  .fbcode { font: 12px/1.45 Consolas, monospace; background: var(--surface-alt, #f5f7fa); border: 1px solid var(--line); border-radius: 6px;
    padding: 8px 10px; margin: 6px 0; white-space: pre-wrap; }
  /* batch 206 item 15 (Simon 6 Nov 2026, "indented more than the other pages?"): every list starts at the shared .nlist
     offset - not the browser's 40px - so a list in an indented box never sits ~40 px in; classed lists keep their own */
  ul, ol { padding-left: 20px; }
  /* batch 206 item 6: a signal type as the board's pill (core.js ioChip - typecolours) */
  .ioChip { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 7px; font: 700 11px/16px Arial, sans-serif; white-space: nowrap; }
  .nlist { margin: 3px 0 0; padding-left: 20px; list-style: disc; } .nlist li { margin: 1px 0; } .nline { margin: 2px 0; }
  .foldall { display: flex; justify-content: flex-end; gap: 6px; margin: -6px 0 8px; }
  .card > .body > :first-child { margin-top: 0; } .card > .body > :last-child { margin-bottom: 0; }
  h3.subhead { margin: 18px 0 8px; padding-top: 12px; border-top: 1px solid var(--grid); font-size: 15px; color: var(--link); }
  /* Settings' merged sections (Studio settings, Studio system check): a sub-heading per part, the first without a rule */
  .card .body > section.subsec:first-child > h3.subhead { margin-top: 0; padding-top: 0; border-top: 0; }
  h3.subhead.headrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  details.res-cov > summary { cursor: pointer; margin: 18px 0 8px; padding-top: 12px; border-top: 1px solid var(--grid); font-size: 15px; color: var(--link); font-weight: 600; }
  section.subsec h4 { font-size: 14px; font-weight: 600; margin: 14px 0 4px; color: var(--link); }

  /* ---- tables */
  table.grid { border-collapse: collapse; width: 100%; font-size: 14px; }
  table.grid.small, table.grid .small { font-size: 13px; }
  table.grid th, table.grid td { text-align: left; padding: 6px 9px; border: 1px solid var(--grid); vertical-align: middle; }
  table.grid th { color: var(--link); font-weight: 600; background: var(--surface); font-size: 13px; }
  /* batch 206 item 28 (Simon 6 Nov 2026, 822: "Right align"): ONE numeric column class - heading and figures right-aligned */
  table th.num, table td.num { text-align: right; font-variant-numeric: tabular-nums; }
  table.grid tr.off td { opacity: .45; }
  /* admin tables (Feedback & learning, Strategy library, Activity log, Messages sent - Simon, 16 Oct 2026: "Boxes need to be
     bigger, text squashed"): a column whose header is .nw (When, Who, Type ...) stays on one line at its own width and the
     text columns share the rest; on a phone each row is a card of label / value (gridStack copies the headers in) */
  table.grid.stack .nw { white-space: nowrap; width: 1%; }
  @media (max-width: 640px) {
    table.grid.stack, table.grid.stack tbody, table.grid.stack tr, table.grid.stack td { display: block; width: auto; }
    table.grid.stack tr.stackhead { display: none; }
    table.grid.stack tr { border: 1px solid var(--grid); border-radius: 6px; margin: 0 0 8px; padding: 4px 0; background: var(--surface); }
    table.grid.stack td { border: 0; padding: 3px 10px; white-space: normal; }
    table.grid.stack td[data-l]:not([data-l=""])::before { content: attr(data-l); display: block; font: 600 11px var(--head);
      color: var(--link); text-transform: uppercase; letter-spacing: .04em; }
    table.grid.stack td:empty { display: none; }
  }
  /* Strategy library (Simon, 16 Oct 2026): a card per system - its logo and counts in the header, its gaps, its strategies */
  .card > h2 img.libsyslogo { height: 20px; max-width: 84px; object-fit: contain; background: #fff; padding: 2px 6px; border-radius: 4px; flex: none; }
  .libsys > h2 { flex-wrap: wrap; row-gap: 4px; }
  .libsys > h2 .right .chip { text-transform: none; letter-spacing: 0; }
  @media (max-width: 640px) { .libsys > h2 .right { flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; margin-left: 0; } }
  ul.libgaps { margin: 4px 0 12px; padding: 0; list-style: none; columns: 2 340px; column-gap: 24px; }
  ul.libgaps li { break-inside: avoid; padding: 3px 0; font-size: 13px; }
  ul.libgaps li .chip { font-size: 10px; padding: 1px 7px; margin-right: 6px; vertical-align: 1px; }
  /* Accounts: every users table the same fixed columns (they line up across accounts); scrolls sideways on a phone */
  .tblscroll { overflow-x: auto; }
  table.usersgrid { table-layout: fixed; min-width: 760px; }
  table.usersgrid td, table.usersgrid th { overflow-wrap: anywhere; }
  .invhead { margin: 10px 0 4px; }
  /* Accounts as one grid (Simon, 14 Oct 2026: "a line break between accounts, align the boxes on the vertical"): each
     account its own block with a gap between; its row, users and invites tables share the users table's column edges
     (ACC_COLS / INV_COLS are sums of USER_COLS), and the whole list scrolls sideways as one on a phone */
  .acclist { min-width: 782px; }
  .acchead, .accblock { padding: 0 10px; border: 1px solid transparent; }
  .accblock { padding: 10px; margin: 0 0 16px; border-color: var(--grid); border-radius: 8px; background: color-mix(in srgb, var(--link) 3%, transparent); }
  .accblock.off { opacity: .6; }
  .acchead table.accgrid th { border: 0; background: none; padding-bottom: 4px; }
  table.accgrid { table-layout: fixed; min-width: 760px; } table.accgrid td { border: 0; padding: 4px 9px; }
  table.accgrid select { max-width: 100%; }
  table.accgrid .accname { display: flex; align-items: center; gap: 6px 14px; min-height: 32px; }
  table.accgrid .accname > span { flex: 0 0 46%; font-size: 15px; } table.accgrid .accname > span:only-child { flex: 1; } table.accgrid .accname > span .small { font-size: 12px; }
  img.acclogo { height: 30px; max-width: 46%; object-fit: contain; object-position: left center; padding: 2px 0; border-radius: 4px; }
  /* company / client / maker logos are served as transparent display copies (server/logoalpha.py, Simon 16 Oct 2026:
     "Transparent PNGs would be better here") - no white box on a light theme; on a dark theme a dark logo (.darklogo,
     judged by logoIsDark when it loads) gets a pale plate so it doesn't vanish, a light one (Learnd's mint) sits as it is */
  :root[data-base=dark] :is(img.acclogo, .platlogo, .platmini, .cofound-logo, img.joblogo).darklogo {
    background: rgba(255, 255, 255, .9); padding-left: 6px; padding-right: 6px; }
  .accblock .tblscroll { margin-top: 8px; overflow-x: visible; } .accblock .invhead + .tblscroll { margin-top: 0; }
  .accblock.dropok { outline: 2px dashed var(--link); outline-offset: -2px; background: color-mix(in srgb, var(--mint) 22%, transparent); }
  fieldset.access { border: 1px solid var(--grid); border-radius: 6px; padding: 6px 12px 10px; margin: 12px 0 6px; }
  fieldset.access legend { font-size: 13px; font-weight: 600; color: var(--link); padding: 0 4px; }
  fieldset.access p { margin: 0 0 6px; }
  .acgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
  .acarea { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .acarea h4 { margin: 0 0 2px; font-size: 13px; display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--grid); padding-bottom: 2px; }
  .acarea h4 .acsome { margin-left: auto; font-weight: 400; font-size: 12px; white-space: nowrap; }
  .acarea h4 .acsome a { cursor: pointer; }
  .acgrid label { display: flex; gap: 6px; align-items: flex-start; line-height: 1.3; }
  .acgrid input { margin-top: 2px; flex: none; }
  @media (max-width: 600px) { .acgrid { grid-template-columns: 1fr; gap: 10px; } }

  /* ---- badges, status pills, notes */
  ul.notes { margin: 0; padding-left: 20px; line-height: 1.6; } ul.notes li { margin: 3px 0; }
  /* BMS AR's credits table (shared styling): fixed columns, long names wrap */
  table.credtable { table-layout: fixed; width: 100%; } table.credtable td { overflow-wrap: anywhere; }
  /* date / time and people's names never wrap in a table (Simon, 29 Oct 2026) - gridNowrap() marks them */
  table th.nw, table td.nw { white-space: nowrap; }
  .badge.bad { background: color-mix(in srgb, var(--alarm) 14%, var(--surface)); color: var(--alarm); }
  .badge.good { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
  .badge, .tag { font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 8px; background: var(--blue-pale); color: var(--link); white-space: nowrap; display: inline-block; }   /* a tag never splits over two lines - it drops to the next line whole */
  tr.attn td { background: color-mix(in srgb, var(--warn, #ED7D31) 8%, transparent); }
  tr.pickable { cursor: pointer; }
tr.pl-amber td { background: color-mix(in srgb, var(--warn) 12%, transparent); }
tr.pl-red td { background: color-mix(in srgb, var(--alarm) 11%, transparent); }
  /* the log grows with the page - no scroll bar of its own beside the page's (Simon, 10 Oct 2026) */
  .activity { overflow-wrap: anywhere; background: var(--surface-alt); border: 1px solid var(--grid); border-radius: 6px;
    padding: 8px 12px; font-size: 13px; line-height: 1.55; }
  .activity .livewait { font-style: italic; } .activity div { padding: 1px 0; } .activity .t { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 10px; }
  button.rate.on { background: var(--blue-pale); border-color: var(--link); color: var(--link); font-weight: 600; }
  .chip { display: inline-block; padding: 2px 10px; border-radius: 10px; font: 600 12px var(--head); text-transform: uppercase; letter-spacing: .04em;
    background: var(--grey-band); color: var(--ink); }
  /* Every pie the same size; a card grows (and its legend goes into columns) to fit, using the full width (Simon, 14 Oct 2026) */
  .pies { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
  .pies > .card { flex: 1 1 280px; min-width: 0; margin: 0; }
  .pies > .card.wide { flex: 2 1 540px; }
  .pie { display: flex; gap: 14px; align-items: center; }
  .pie svg { flex: none; width: 110px; height: 110px; }
  .pie ul { list-style: none; padding: 0; margin: 0; font-size: 13px; flex: 1; min-width: 0; }
  .pies > .card.wide .pie ul { column-width: 190px; column-gap: 16px; }
  .pie li { break-inside: avoid; margin-bottom: 2px; }
  @media (max-width: 640px) { .pies > .card, .pies > .card.wide { flex-basis: 100%; } }
  .costdays { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 8px; }
  .costdays section { min-width: 0; }
  .costdays table { margin-bottom: 10px; }
  @media (max-width: 760px) { .costdays { grid-template-columns: 1fr; } }
  .costtotal { margin: 4px 0 8px; }
  .costbar { background: #E15D44; height: 7px; border-radius: 3px; }
  /* every Costs table shares one set of column widths so Jobs / Claude costs line up (Simon, 18 Oct 2026) */
  .costs table.grid { table-layout: fixed; width: 100%; }
  .costs table.grid td, .costs table.grid th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .costs tr.cm-head { cursor: pointer; }
  .costs tbody.cm tr.cm-kind { display: none; }
  .costs tbody.cm.open tr.cm-kind { display: table-row; }
  .costs tbody.cm tr.cm-kind td:first-child { padding-left: 22px; }
  .costs .cm-arrow { display: inline-block; transition: transform .15s; }
  .costs tbody.cm.open .cm-arrow { transform: rotate(90deg); }
  .pie li i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
  /* Live activity: each heading left-aligned exactly over its column (Simon, 13 Oct 2026) */
  table.livetbl { border-collapse: collapse; }
  table.livetbl th, table.livetbl td { text-align: left; padding: 2px 12px 2px 0; vertical-align: top; }
  table.livetbl th { color: var(--link); font-weight: 600; font-size: 13px; padding-bottom: 4px; }
  .kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
  .kpi { border: 1px solid var(--line, #e3e8ef); border-radius: 10px; padding: 12px 14px; }
  .kpi b { display: block; font: 600 22px var(--head); }
  .chip.ok { background: color-mix(in srgb, var(--ok) 18%, var(--surface)); color: #0e6b34; }
  .chip.warn { background: color-mix(in srgb, var(--warn) 20%, var(--surface)); color: #9a4a12; }
  .chip.bad { background: color-mix(in srgb, var(--alarm) 16%, var(--surface)); color: #a52020; }
  .chip.info { background: var(--blue-pale); color: var(--link); }
  /* Settings > Symbol library: a tile per symbol - its picture, terminals, aliases (one column on a phone) */
  .symgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
  .symtile { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 10px 12px; min-width: 0; }
  .symtile .pic { display: flex; align-items: center; justify-content: center; height: 150px; background: #fff; border: 1px solid var(--grid);
    border-radius: 4px; margin-bottom: 8px; overflow: hidden; }
  .symtile .pic img { max-width: 100%; max-height: 146px; object-fit: contain; }
  .symtile .pic, .symthumb { cursor: zoom-in; }
  /* each band I entry its own card (Simon, 29 Oct 2026, image 826): border, its name a bold heading at the top, its
     comments inside it, clear space before the next */
  .symentry { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
    padding: 10px 12px; margin: 0 0 14px; }
  .symentry > h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
  .symentry .symcom { border-top: 1px solid var(--grid); }
  .symthumb { float: right; display: flex; align-items: center; justify-content: center; width: 220px; height: 130px; margin: 0 0 8px 12px;
    background: #fff; border: 1px solid var(--grid); border-radius: 4px; overflow: hidden; }
  .symthumb img { max-width: 100%; max-height: 126px; object-fit: contain; }
  .symthumb.none { cursor: default; color: var(--muted); font-size: 12px; background: var(--surface); }
  @media (max-width: 640px) { .symthumb { float: none; width: 100%; margin: 0 0 8px; } }
  .symlb { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .78); display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
  .symlb .frame { background: #fff; border-radius: 6px; max-width: 96vw; max-height: 86vh; overflow: auto; }
  .symlb img { display: block; max-width: none; height: auto; }
  .symlb img.fit { max-width: 94vw; max-height: 84vh; }
  .symlb .cap { color: #fff; margin-top: 8px; font-size: 13px; text-align: center; }
  .symtile h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
  .symgrid { row-gap: 18px; }
  .symtile .terms { font-family: Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
  .symtile details { font-size: 13px; margin-top: 4px; } .symtile details ul { margin: 4px 0 0; padding-left: 18px; }
  .symcom { margin-top: 8px; border-top: 1px solid var(--grid); padding-top: 6px; font-size: 13px; }
  .symcom ol { list-style: none; margin: 0 0 6px; padding: 0; } .symcom li { margin: 0 0 6px; }
  .symcom .txt { white-space: pre-wrap; overflow-wrap: anywhere; } .symcom .reply { margin: 2px 0 0 10px; overflow-wrap: anywhere; }
  .symcom textarea { width: 100%; min-height: 54px; resize: vertical; font: inherit; box-sizing: border-box; }
  .symcom .row { gap: 8px; align-items: center; margin-top: 4px; } .symcom .del { padding: 0 6px; }
  /* a search + filter row (.symtools / .filterbar, on any page): the search box, its dropdowns, buttons and ticks on
     one line at one height (--ctl-h), centred on it */
  .symtools, .filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
  .symtools :is(input:not([type=checkbox]):not([type=radio]), select, button, .btn),
  .filterbar :is(input:not([type=checkbox]):not([type=radio]), select, button, .btn) {
    height: var(--ctl-h); box-sizing: border-box; margin-top: 0; padding-top: 0; padding-bottom: 0; }
  .symtools :is(input, select), .filterbar :is(input, select) { font-size: 14px; }
  .symtools .btn, .filterbar .btn { display: inline-flex; align-items: center; }
  .symtools label.chk, .filterbar label.chk { display: inline-flex; gap: 6px; align-items: center; height: var(--ctl-h); font-size: 13px; white-space: nowrap; }
  .symtools label.chk input, .filterbar label.chk input { margin: 0; }
  input[type=search] { height: var(--ctl-h); box-sizing: border-box; }
  .symtools { margin-bottom: 14px; position: sticky; top: 0; z-index: 5;
    background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--line); }
  .symtools input[type=search], .filterbar input[type=search] { flex: 1 1 320px; min-width: 0; padding-left: 12px; padding-right: 12px; }
  .symtools .symcount { flex: 1 1 100%; margin: 0; }
  @media (max-width: 640px) { .symgrid { grid-template-columns: 1fr; } .symtools > * { flex: 1 1 100%; } }
  /* Clients: the directory as a table (logo, name, address, jobs), a client's page, merge (same look as the Symbol library) */
  .cltbl td.lg { width: 92px; padding: 4px 8px; } .cltbl td.n { white-space: nowrap; text-align: right; }
  .cllogo { display: flex; align-items: center; justify-content: center; width: 84px; height: 42px; background: #fff; border: 1px solid var(--grid); border-radius: 4px; overflow: hidden; }
  .cllogo img { max-width: 80px; max-height: 38px; object-fit: contain; } .cllogo .none { font-size: 11px; color: var(--muted); }
  .cltbl .addr { overflow-wrap: anywhere; } .cltbl a.cname { font-weight: 600; }
  .clpage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
  .clpage .bigl { display: flex; align-items: center; justify-content: center; height: 150px; background: #fff; border: 1px solid var(--grid); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
  .clpage .bigl img { max-width: 100%; max-height: 146px; object-fit: contain; }
  .clform label { display: block; font-size: 13px; margin: 8px 0 2px; color: var(--link); font-weight: 600; }
  .clform input[type=text], .clform textarea { width: 100%; box-sizing: border-box; font: inherit; }
  .clform textarea { min-height: 96px; resize: vertical; }
  .clcon { display: grid; grid-template-columns: 8.5em 1fr 1fr 1.3fr 1fr 2em; gap: 6px; margin: 4px 0; } .clcon input { min-width: 0; } .clcon.cloff { grid-template-columns: 8.5em 1fr 1fr 1.3fr 1fr 1fr 2em; } .clcon select { min-width: 0; } .clcon .clphone { min-width: 0; } .clcon .clphone input { width: 100%; box-sizing: border-box; }
  .clal { list-style: none; padding: 0; margin: 4px 0 8px; } .clal li { display: flex; gap: 8px; align-items: center; padding: 3px 0; border-top: 1px solid var(--grid); overflow-wrap: anywhere; }
  .clal li:first-child { border-top: 0; } .clal .grow { flex: 1; min-width: 0; }
  .cldrop { display: block; text-align: center; padding: 12px; cursor: pointer; }
  .cldup { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; padding: 8px 0; border-top: 1px solid var(--grid); }
  .cldup:first-child { border-top: 0; } .cldup .who { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
  .clmerge { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .clmerge .side { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-width: 0; overflow-wrap: anywhere; }
  .clmerge .side .cllogo { width: 100%; height: 70px; } .clmerge .side .cllogo img { max-width: 96%; max-height: 64px; }
  .clmerge .addr { white-space: pre-line; font-size: 13px; }
  @media (max-width: 760px) { .clpage, .clmerge { grid-template-columns: 1fr; } .clcon, .clcon.cloff { grid-template-columns: 1fr 1fr; } .clcon.clhead { display: none; } .cltbl .hide-sm { display: none; } }
  .note { border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); padding: 8px 12px; border-radius: 4px; margin: 6px 0; }
  /* batch 468 item 7 (Simon, 19 Nov 2026, "Can we align": a vertical line down a check screen's left edges met the waiting bar, the
     card, the card's title bar and the "Check these" rows at four different places). Three edges, the same on every task's check
     screen: the CARD edge - the cards and the "Waiting for you" bar (the same box: width, border, corners); the BAR edge - a card's
     title bar and the note rows inside it (6 px in); and the TEXT edge - the words of the title, the notes, lists and drop boxes
     (a title bar's 10 px padding in = a card body's 16 px). A note inside a card sits on the bar edge, its words on the text edge. */
  /* (Simon, 19 Nov 2026, "Still looks off": the waiting bar's orange edge sat on the card edge, the Check these rows' 6 px in -
     every orange edge now on the BAR edge, its words on the TEXT edge, so one line runs down them all) */
  #jobBody > #carryOn { margin: 0 6px 18px; padding: 9px 16px 9px 6px; border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 6px; }
  #jobBody .card:has(> h2) > .body > .note, #jobBody .card:has(> h2) > .body > details.alldetails > .note, #jobBody .card:has(> h2) > .body > #briefPart > .note {
    margin-left: -10px; margin-right: -10px; padding-left: 6px; }     /* (a card with no title bar - the O&M "Check these" - keeps its notes on the text edge) */
  /* the info notes behind one "Show all details" in every tile (notesHtml, docs 9.206) */
  /* the O&M equipment table's group sub-heading rows (Field devices / BMS / Panel / Plant by others - docs 9.209) */
  table.grid tr.omgroup th { background: var(--surface-alt, var(--surface)); color: var(--link); font-weight: 600; text-align: left; padding-top: 8px; }
  details.alldetails { margin: 8px 0 2px; } details.alldetails > summary { cursor: pointer; color: var(--muted); font-size: 13px; width: fit-content; }
  details.alldetails > summary:hover { color: var(--link); } details.alldetails[open] > summary { margin-bottom: 4px; }
  details.alldetails .note { border-left-color: var(--line); background: var(--surface-alt, var(--surface)); }
  /* the one result-page layout (Simon, 30 Oct 2026 - batch 20 item 6, "less confusing"): Download everything, a card per
     panel / item with its buttons grouped under small headings (one button size, a grid that wraps), the project's own
     files with one-line descriptions (the detail in a (?) tip), then the notes grouped, counted and collapsible */
  .res-all { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 6px; }
  .res-all .what { color: var(--muted); font-size: 13px; }
  .res-unit { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px 12px; margin: 12px 0; background: var(--surface); }
  /* one heading style for every group on a ready page - panel, Drawings, For the panel builder, Paperwork, For the
     project: same size, weight and case (batch 71 item 1) */
  .res-unit > .res-title, .res-group h4 { font-size: 13px; font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0; }
  .res-unit > .res-title { margin: 0 0 6px; } .res-unit > .res-title .muted { font-weight: 400; }
  .res-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 16px; }
  .res-group h4 { margin: 4px 0 6px; }
  .res-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
  .res-btns .btn { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
  .res-proj { display: grid; grid-template-columns: minmax(190px, 230px) 1fr; gap: 6px 14px; align-items: center; }
  .res-proj .btn { text-align: center; margin: 0; } .res-proj .what { color: var(--muted); font-size: 13px; }
  .res-tip { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 50%;
    border: 1px solid var(--line); color: var(--muted); font-size: 11px; cursor: help; margin-left: 4px; }
  details.res-notes { margin: 8px 0; } details.res-notes > summary { cursor: pointer; font-weight: 600; width: fit-content; }
  details.res-notes > summary .n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px;
    background: var(--blue-pale); color: var(--link); font-size: 12px; text-align: center; }
  details.res-notes.info .note { border-left-color: var(--line); background: var(--surface-alt, var(--surface)); }
  details.res-notes.assumed .note { border-left-color: var(--link); background: color-mix(in srgb, var(--link) 6%, var(--surface)); }
  @media (max-width: 640px) { .res-proj { grid-template-columns: 1fr; } .res-proj .what { margin-bottom: 6px; } }
  /* the blue note (batch 184, Simon 5 Nov 2026): the orange .note's shape for what is NOT an issue - what Studio acted on / assumed / did,
     what was given to it, read results, status. Same look as the Monitor page's .note.info; light and dark through the theme's --link */
  .note.info { border-left-color: var(--link); background: color-mix(in srgb, var(--link) 8%, var(--surface)); }
  /* the blue note (batch 184, Simon 5 Nov 2026): the orange .note's shape for what is NOT an issue - what Studio acted on / assumed / did,
     what was given to it, read results, status. Same look as the Monitor page's .note.info; light and dark through the theme's --link */
  .note.info { border-left-color: var(--link); background: color-mix(in srgb, var(--link) 8%, var(--surface)); }
  .note.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
  .note.bad { border-color: var(--alarm); background: color-mix(in srgb, var(--alarm) 7%, var(--surface)); }
  /* a client not on file: what was found online / in documents, in one note (wireClientAddress + wireClientOnline) */
  .cofound-part:empty { display: none; }
  .cofound-part + .cofound-part:not(:empty) { border-top: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); margin-top: 8px; padding-top: 8px; }
  .cofound-addr { margin: 6px 0; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; width: fit-content; max-width: 100%; line-height: 1.45; overflow-wrap: anywhere; }
  .libadd > details > summary { cursor: pointer; } .libadd h3.subhead { margin-top: 12px; }
  .libadd-it { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); }
  .libadd h3.subhead + .libadd-it { border-top: 0; }
  .libadd-txt { min-width: 0; flex: 1; overflow-wrap: anywhere; }
  .libadd-thumb { width: 72px; max-height: 60px; flex: none; }
  .cofound-row { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
  .cofound-logo { width: 120px; max-height: 90px; object-fit: contain; padding: 4px; border: 1px solid var(--line); border-radius: 4px; }
  .cofound-fill { border-color: var(--warn) !important; background: color-mix(in srgb, var(--warn) 8%, var(--surface)) !important; }
  .cofound-tag { margin: 0 0 0 6px; font-size: 11px; }
  .note .logodrop { display: block; width: fit-content; max-width: 100%; margin-top: 8px; padding: 10px 16px; }
  /* saved clients: a client field's type-ahead (clientPicker) - logo, name, address - and the "which client?" question */
  .cpick-wrap { position: relative; }
  label.f > .cpick-wrap > input { width: 100%; }
  .cpick { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; max-height: 320px; overflow: auto; margin-top: 2px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.18); min-width: min(360px, 90vw); }
  .cpick[hidden] { display: none; }
  .cpick-it { display: flex; gap: 10px; align-items: center; padding: 6px 10px; cursor: pointer; border-top: 1px solid var(--line); }
  .cpick-it:first-child { border-top: 0; }
  .cpick-it.on, .cpick-it:hover { background: color-mix(in srgb, var(--accent, #2b7bd6) 12%, var(--surface)); }
  .cpick-logo { width: 56px; height: 32px; flex: none; object-fit: contain; }
  .cpick-txt { min-width: 0; flex: 1; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
  .cpick-txt .muted { font-size: 12px; }
  .cpick-ask { margin-top: 6px; }
  /* title block / client details: the fields at their own width on the left, the client logo the job uses on the right
     (Simon, 15 Oct 2026: "if we trim these boxes back, client logo could go here"); a phone stacks fields, then logo */
  .tbwrap { display: grid; grid-template-columns: minmax(0, 680px) minmax(240px, 1fr); gap: 14px 28px; align-items: start; }
  .tbwrap > * { min-width: 0; }
  .tblogo { border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; background: var(--surface); }
  .tblogo .subhead { margin-top: 0; padding-top: 0; border-top: 0; }
  .tblogo .cofound-logo { width: auto; max-width: 100%; max-height: 120px; }
  .tblogo .logodrop { display: block; width: fit-content; max-width: 100%; margin-top: 8px; padding: 10px 16px; }
  @media (max-width: 800px) { .tbwrap { grid-template-columns: 1fr; } }
  .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  /* a result page's download buttons one width - the card's widest (sameButtons; Simon, 23 Oct 2026: "make the buttons
     the same size"): stacked ones line up, a row's are equal; never wrapped or cut; full width on a phone */
  a.btn.dlsame { width: var(--dlw, auto); max-width: 100%; text-align: center; white-space: nowrap; flex: 0 0 auto; }
  @media (max-width: 640px) { a.btn.dlsame { width: 100%; } }
  .row.bottom { align-items: flex-end; }               /* a labelled box and its button: the button level with the box */
  .grow { flex: 1; }
  .status { font: 600 14px var(--head); }
  .empty { padding: 40px; text-align: center; color: var(--muted); }
