
    .tm-table { width:100%; border-collapse:collapse; font-size:0.86rem; }
    .tm-table th { text-align:left; font-size:0.72rem; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-muted); font-weight:600; padding:8px 12px; border-bottom:1px solid var(--border); }
    .tm-table td { padding:11px 12px; border-bottom:1px solid var(--border); color:var(--text); vertical-align:top; }
    .tm-table tr:last-child td { border-bottom:none; }
    .tm-badge { display:inline-block; font-size:0.7rem; font-weight:600; padding:2px 9px; border-radius:999px; }
    .tm-badge-admin  { background:rgba(251,176,59,0.16); color:#FBB03B; }
    .tm-badge-editor { background:rgba(120,150,255,0.16); color:#8AA0FF; }
    .tm-icon-btn { background:none; border:none; cursor:pointer; color:var(--text-muted); padding:4px; border-radius:6px; display:inline-flex; }
    .tm-icon-btn:hover { background:rgba(255,255,255,0.06); color:var(--text); }
    .tm-role-btn { background:var(--surface); border:1px solid var(--border); color:var(--text-muted); border-radius:8px; padding:8px 0; cursor:pointer; font-size:0.85rem; font-weight:500; }
    .tm-role-btn.active { border-color:var(--brand); color:var(--brand); background:rgba(251,176,59,0.08); }
    .tm-client-group { margin-bottom:4px; }
    .tm-client-head { display:flex; align-items:center; gap:8px; padding:7px 8px; border-radius:7px; cursor:pointer; user-select:none; }
    .tm-client-head:hover { background:rgba(255,255,255,0.04); }
    .tm-caret { color:var(--text-muted); font-size:0.7rem; width:12px; }
    .tm-client-name { font-weight:600; font-size:0.83rem; color:var(--text); flex:1; }
    .tm-client-count { font-size:0.7rem; color:var(--text-muted); }
    .tm-client-projects { padding:2px 0 6px 26px; }
    .tm-project-row { display:flex; align-items:center; gap:8px; padding:5px 6px; border-radius:6px; cursor:pointer; font-size:0.84rem; color:var(--text); }
    .tm-project-row:hover { background:rgba(255,255,255,0.04); }
    .tm-project-row input { accent-color:var(--brand); }

  /* ═══════════════════════════════════════════════════════════════════════════════════════
     MOBILE NAV DRAWER — the shell finally equals the viewport at phone width.
     ⚠️ WHY THIS EXISTS: .sidebar was a static 220px flex item at EVERY width, in zero media
     queries. At 390px it took 220 of them, leaving a 122px content column — so §2.2's whole
     premise ("Mobile (390px)", 356px preview, 172px cards) had never been true, and a two-up
     card was 53px. See CLAUDE.md item 119 and checks/mobile-content-column.mjs.
     ⚠️ AND THIS BLOCK IS DELIBERATELY THE LAST THING IN THE STYLESHEET. It has to beat
     `.sidebar.collapsed`, which is a DESKTOP preference and ties on specificity — source order
     is what settles that (item 110's lesson, where an equal-specificity rule defined earlier
     won and the fix looked like a colour bug).
     ═══════════════════════════════════════════════════════════════════════════════════════ */
  #nav-scrim { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); opacity:0; pointer-events:none; transition:opacity 0.24s ease; }
  .nav-trigger { display:none; align-items:center; justify-content:center; background:transparent; border:0; color:var(--text); cursor:pointer; padding:6px; margin-right:2px; border-radius:4px; flex-shrink:0; }
  .nav-trigger:hover { background:var(--surface2); }
  .nav-trigger:focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
  @media (max-width: 640px) {
    /* ⚠️ `.sidebar.collapsed` IS NEUTRALISED HERE, not just overridden on width. The collapsed
       rail is a 56px icon strip with its labels display:none — as a DRAWER that is useless, so
       the preference must not survive at this width. navCollapseAllowed() also stops the class
       being applied at all; this is the belt to that braces, for the resize-across-breakpoint
       case where the class is already on the element. */
    .sidebar, .sidebar.collapsed {
      /* ⚠️ CAPPED SO THE PAGE STAYS VISIBLE BEHIND IT. At min(82vw,300px) the drawer took 292
         of 390px — 75% of the screen — which reads as a PAGE you have navigated to rather than
         an overlay you can dismiss. min(80vw,280px) leaves the page showing at every phone
         width: 256px at 320 (64px visible), 280 at 390 (110px, 28%), 280 at 430 (150px). The
         80vw term is what protects the small end — a flat 280px would leave only 40px on a
         320px phone — and the 280px cap is what stops it growing on a large one. */
      position:fixed; top:0; left:0; height:100vh; width:min(80vw, 280px);
      transform:translateX(-100%); visibility:hidden;
      transition:transform 0.24s cubic-bezier(0.4,0,0.2,1), visibility 0.24s;
      z-index:50; overflow-y:auto;
    }
    /* visibility, not just transform: an off-canvas sidebar that is still `visible` remains in
       the TAB ORDER, so a keyboard user tabs into a drawer they cannot see. */
    body.drawer-open .sidebar, body.drawer-open .sidebar.collapsed { transform:translateX(0); visibility:visible; z-index:402; }
    /* ⚠️ THE LIFT IS SCOPED TO drawer-open, EXACTLY LIKE item 107's topbar lift, and for the
       same reason: .ui-dialog-overlay sits at 400, so a PERMANENT 402 would put every
       uiConfirm/uiChoose under the sidebar. It is also why nothing in the transcript editor is
       touched — .tr-dl-menu (120) and #rv-range-label (100) are correct at their own values for
       their own reasons, and a shell feature reaching into another view''s stacking is how this
       becomes unpickable. The drawer rises above them for the moment it is open; they keep
       every value they had. */
    #nav-scrim { display:block; z-index:401; }
    body.drawer-open #nav-scrim { opacity:1; pointer-events:auto; }
    .nav-trigger { display:inline-flex; }
    /* ⚠️ THE COLLAPSE CHEVRON IS THE DESKTOP RAIL TOGGLE AND HAS NO MEANING HERE. Collapsing an
       OVERLAID drawer to a 56px icon rail is not a state anyone wants, and navCollapseAllowed()
       already refuses it — so leaving the control visible offers an action that is gated to do
       nothing. Hidden in the SAME media query that suppresses the preference, deliberately: the
       control and the state it sets should stop existing together, or the next reader finds a
       button whose handler returns early and has to work out why. */
    .sidebar-toggle { display:none; }
  }

  /* ⚠️ THE COLOURS ARE THE WORK QUEUE'S, NOT NEW ONES. renderWorkQueue already buckets these
     exact states — Revision requests #E24B4A, Needs notifying #F7931E — and the model's whole
     instruction was to use the queue's words so the indicator and the queue that lists it say
     the same thing. A second palette for the same states is how two surfaces start disagreeing
     about what "ready" looks like. Outline, not fill: §3's rule is that fill means action, and
     this is status (item 110). */
  .del-group-badge { display:inline-flex; align-items:center; gap:5px; font-size:10px; font-weight:600;
                     letter-spacing:.04em; padding:2px 7px; border-radius:3px; white-space:nowrap;
                     background:transparent; border:0.5px solid currentColor; }
  .del-group-badge.is-revisions  { color:#E24B4A; }
  .del-group-badge.is-ready      { color:#F7931E; }
  .del-group-badge.is-withClient { color:#6fa8ff; }
  /* The count sits INSIDE the badge, tinted rather than bordered — it qualifies the word, it is
     not a second claim. */
  .del-group-count { font-variant-numeric:tabular-nums; opacity:.75; font-weight:700; }
  