/* public/env.css — v3.1196.0 (18 October 2026): the two environments (design brief A6, the decided model), drawn by
   public/env.js; and the All apps grid's search, chips and tiles (A9).
   Darren, 18 Oct 2026: "we can either be in a workspace, or we can be in the office/consultant environment … For consultants,
   I don't want them to get confused about where they are or what they're doing. For customers, I don't want a whole lot of
   nameless menu options." Blue is a workspace; ORANGE is the Office — the orange rule under the header and the orange
   current-item pill, the same signal as the mobile app, so "where am I" is answered by colour before a word.
   Theme colours only (tokens from theme.css); only opacity, colour and transform animate (A1), every duration a token;
   prefers-reduced-motion zeroes them (the block at the end). */

/* =====================================================================================================================
   THE SIDEBAR: A WORKSPACE KEEPS THE SHORT NAMED MENU AND THE APP YOU ARE IN; THE OFFICE KEEPS ITS OWN MENU
   ===================================================================================================================== */
.sb-env[hidden],.env-drawer[hidden]{display:none !important}
html[data-env="office"] .sb-env{display:none !important}
/* v3.1199.0 — THE AREAS, for staff, in both environments, between two lines like Recent (public/env.js drawAreas). Forced to
   flex like .sb-env, because ui.js hides any group it thinks is empty. The Office's own Platinum Apps door (#sb-apps) is
   the areas block's job now, so it is not shown twice. */
.sb-areas[hidden]{display:none !important}
html .sidebar .sb-areas:not([hidden]){display:flex !important}
.sb-areas{flex-direction:column;gap:1px;padding-top:var(--sp-1);padding-bottom:var(--sp-2);margin-bottom:var(--sp-1);border-top:1px solid var(--s-line-2);
  border-bottom:1px solid var(--s-line-2)}
.sb-areas .env-area{text-align:left}
/* Recent already draws the line above the areas when it is there. */
.nav-quick:not([hidden]) + .sb-areas{border-top:0}
html.has-areas #sb-apps{display:none !important}
/* In a workspace, nothing from the Office: Communications is the tray (the header button), not a menu item; Messages, the
   staff area homes, the Office's grouped menu and Administration live on the Office side. The screens folded into tabs
   (Membership's, Team's, Account's, Platinum Apps') leave the top level — their doors stay in the markup, hidden. */
html[data-env="workspace"] #sb-area-grp,
html[data-env="workspace"] #sb-areamenu,
html[data-env="workspace"] #sb-admin-grp,
html[data-env="workspace"] #sb-edge-grp,
html[data-env="workspace"] #sb-bi-grp,
html[data-env="workspace"] #sb-you-grp,
html[data-env="workspace"] .sidebar .sb-grp.you > :not(#btn-signout){display:none !important}
html[data-env="workspace"] .sidebar .sb-env{display:flex !important}
.sb-env{flex-direction:column;gap:1px;padding-bottom:var(--sp-2);margin-bottom:var(--sp-1);border-bottom:1px solid var(--s-line-2)}
.sb-env .env-item{text-align:left}
.sb-env .env-app-h{margin-top:var(--sp-3);padding-top:var(--sp-2);border-top:1px solid var(--s-line-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar.collapsed .sb-env .env-app-h{display:none}

/* The Office: the orange current-item pill, in the Office's own menu and the area doors above it. */
html[data-env="office"] .sidebar .tab.active,
html[data-env="office"] .am-items .tab.am-item.active{color:var(--o-ink);background:var(--o-soft)}
html[data-env="office"] .am-items .tab.am-item.active::after{background:var(--o-500)}
html[data-env="office"] .sidebar .tab.active svg{stroke:var(--o-ink)}

/* =====================================================================================================================
   THE TOP BAR: the workspace selector + "Office →" — or the Office label + "← Back to a workspace". Never both.
   ===================================================================================================================== */
html[data-env="office"] .apptop{box-shadow:inset 0 -3px 0 var(--o-500)}
html[data-env="office"] #ws-switch,html[data-env="office"] .run-flag{display:none !important}
/* The Membership is an "area" in the app list, but it lives in a workspace: its selector is live, not the greyed one the
   3.347 rule drew for a staff area (the Office hides the selector altogether now). */
html.in-area[data-env="workspace"] #ws-switch{opacity:1;filter:none}
html.in-area[data-env="workspace"] #ws-switch .ws-btn{pointer-events:auto;cursor:pointer}
html.in-area[data-env="workspace"] #ws-switch .ws-menu:not(.hidden){display:block !important}
.env-bar{display:flex;align-items:center;gap:var(--sp-2);order:0;min-width:0}
.env-bar:empty{display:none}
.env-pill{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:var(--rad-pill);background:var(--o-soft);
  color:var(--o-ink);font-size:var(--fs-sm);font-weight:700;letter-spacing:.01em;border:1px solid var(--o-500);white-space:nowrap}
.env-bar .btn{min-height:36px;padding:0 14px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:var(--fs-sm)}
.env-bar .env-office{font-weight:700}
.env-bar .env-office span,.env-bar .env-back span{transition:transform var(--dur-1) var(--ease-out)}
.env-bar .env-office:hover span{transform:translateX(2px)}
.env-bar .env-back:hover span{transform:translateX(-2px)}
/* The selector: the house listbox's trigger, sized for the bar; one workspace is a chip, not a choice. */
.apptop-right .ws-switch{display:flex;align-items:center;gap:var(--sp-2);min-width:0}
.ws-switch .lbx-trigger.env-ws-sel,.ws-switch .lbx-trigger{height:36px;max-width:260px;font-weight:600}
.ws-switch .lbx-trigger .lbx-ini,.env-ws-one .lbx-ini{background:var(--b-500);color:var(--s-hero-ink)}
.env-ws-one{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 12px 0 6px;border:1px solid var(--s-line);border-radius:var(--rad-in);
  background:var(--s-panel);color:var(--s-ink);min-width:0;max-width:260px}
.env-ws-one .lbx-ini{flex:0 0 auto}
.env-ws-one .env-ws-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:var(--fs-sm)}
.env-plan[hidden]{display:none}
.env-plan{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:var(--rad-pill);background:var(--s-accent-soft);
  color:var(--blue-ink);font-size:var(--fs-xs);font-weight:700;white-space:nowrap}
.ws-switch .ws-manage{width:36px;height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.ws-switch .ws-manage[hidden]{display:none !important}   /* v3.1199.0 — the "…" is gone; "Manage workspaces…" is in the dropdown */
.ws-switch .ws-manage svg{width:18px;height:18px;fill:currentColor}
@media (max-width:1180px){ .env-plan{display:none !important} }
@media (max-width:900px){
  /* On a phone the environment is named in the drawer's header; the bar keeps the one control that crosses over. */
  .env-pill{display:none}
  .env-bar .btn{min-height:40px;padding:0 10px}
  .env-bar .env-back{font-size:0;gap:0;width:40px;justify-content:center}
  .env-bar .env-back span{font-size:var(--fs-md)}
  .ws-switch .lbx-trigger,.env-ws-one{max-width:40vw}
}
@media (max-width:600px){
  /* A phone's bar has no room for the crossing: it is in the drawer's header, beside the environment's name. */
  .env-bar{display:none !important}
  .apptop-right .ws-switch .lbx-trigger .lbx-lab,.env-ws-one .env-ws-name{display:none}
  .apptop-right .ws-switch .lbx-trigger{width:58px !important;min-width:0 !important;max-width:none;padding-right:24px}
  .ws-switch .ws-manage{display:none}
}

/* The drawer's header on a phone: the environment's name, and the orange rule in the Office. */
.env-drawer{display:none}
@media (max-width:900px){
  .env-drawer{display:flex;align-items:center;gap:10px;margin:0 var(--sp-3) var(--sp-2);padding:10px 12px;border-radius:var(--rad);
    background:var(--s-sunk);border:1px solid var(--s-line-2)}
  html[data-env="office"] .env-drawer{background:var(--o-soft);border-color:var(--o-500);box-shadow:inset 0 -3px 0 var(--o-500)}
}
.env-dr-tile{width:32px;height:32px;flex:0 0 auto;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;
  background:var(--b-500);color:var(--s-hero-ink);font-size:12px;font-weight:700}
.env-dr-tile.env-dr-office{background:var(--o-500);color:var(--ink-brand)}
.env-dr-t{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}
.env-dr-go{flex:0 0 auto;min-height:36px;padding:0 12px;font-size:var(--fs-sm);font-weight:700;white-space:nowrap}
@media (min-width:601px){ .env-dr-go{display:none} }
.env-dr-t b{font-size:var(--fs-md);color:var(--s-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.env-dr-t small{font-size:var(--fs-xs);color:var(--s-muted)}
html[data-env="office"] .env-dr-t small{color:var(--o-ink)}

/* =====================================================================================================================
   THE FOLDED SCREENS' TABS (Membership · Platinum Apps · Team · Account)
   ===================================================================================================================== */
.env-tabs{display:flex;gap:4px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 0 var(--sp-4);padding:4px;
  background:var(--s-sunk);border:1px solid var(--s-line-2);border-radius:var(--rad-pill);width:max-content;max-width:100%}
.env-tabs::-webkit-scrollbar{display:none}
.env-tab{flex:0 0 auto;border:0;background:transparent;color:var(--s-muted);font:inherit;font-size:var(--fs-sm);font-weight:600;
  padding:7px 16px;min-height:34px;border-radius:var(--rad-pill);cursor:pointer;white-space:nowrap;
  transition:background-color var(--dur-1) var(--ease-out),color var(--dur-1) var(--ease-out),box-shadow var(--dur-1) var(--ease-out)}
.env-tab:hover{color:var(--s-ink)}
.env-tab.on{background:var(--s-panel);color:var(--blue-ink);box-shadow:var(--sh-1)}
.env-tab:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
@media (max-width:600px){ .env-tabs{border-radius:var(--rad);width:auto} .env-tab{min-height:40px;padding:8px 14px} }

/* =====================================================================================================================
   THE WORKSPACE QUESTION
   ===================================================================================================================== */
.env-ask-ov{position:fixed;inset:0;z-index:92;background:var(--s-glass);display:flex;align-items:flex-start;justify-content:center;
  padding:14vh 16px 16px;opacity:0;transition:opacity var(--dur-2) var(--ease-out)}
.env-ask-ov.on{opacity:1}
.env-ask-ov.off{opacity:0;transition-duration:calc(var(--dur-2) * .6);transition-timing-function:var(--ease-in)}
.env-ask{width:min(560px,100%);background:var(--s-raised);border:1px solid var(--s-line-2);border-radius:var(--rad-lg);box-shadow:var(--sh-3);
  padding:22px 24px 18px;transform:translateY(var(--rise)) scale(.985);transition:transform var(--dur-2) var(--ease-out)}
.env-ask-ov.on .env-ask{transform:none}
.env-ask-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.env-ask-top h2{margin:0;font-size:var(--fs-xl);color:var(--s-ink);line-height:1.25}
.env-ask-x{width:36px;height:36px;flex:0 0 auto;border:0;border-radius:var(--rad-pill);background:var(--s-sunk);color:var(--s-ink);font-size:20px;cursor:pointer}
.env-ask-lead{margin:8px 0 18px;color:var(--s-muted);font-size:var(--fs-sm);line-height:1.55;max-width:56ch}
.env-ask-l{display:block;font-size:var(--fs-sm);font-weight:600;color:var(--s-ink);margin:0 0 6px}
.env-ask-body .lbx-trigger{width:100%}
.env-ask-body select{width:100%}
.env-ask-state{display:flex;align-items:center;gap:10px;padding:14px 0;color:var(--s-muted);font-size:var(--fs-sm)}
.env-ask-bad{color:var(--s-warn)}
.env-ask-foot{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap;margin-top:22px;padding-top:16px;border-top:1px solid var(--s-line-2)}
.env-ask-find{margin-right:auto}
.env-ask-said:empty{display:none}
@media (max-width:600px){
  .env-ask-ov{padding:8px;align-items:flex-end}
  .env-ask{border-radius:var(--rad-lg) var(--rad-lg) var(--rad) var(--rad);padding:18px 16px 14px}
  .env-ask-foot .btn{flex:1 1 auto;min-height:44px}
  .env-ask-find{flex:1 1 100%;text-align:left}
}

/* =====================================================================================================================
   A9 — THE ALL APPS GRID: "Find an app…", the chips, and tiles that read as rows (~120px, icon left, title beside)
   ===================================================================================================================== */
.apph-find{display:flex;align-items:center;gap:var(--sp-3);flex-wrap:wrap;margin:2px 0 var(--sp-3)}
.apph-find-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.apph-find .apph-sf{flex:1 1 320px;max-width:520px}
.apph-find .apph-sf .search-field{width:100%}
.apph-count{font-size:var(--fs-sm);color:var(--s-muted);white-space:nowrap}
.apph-chips{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 var(--sp-4)}
.apph-chip{border:1px solid var(--s-line);background:var(--s-panel);color:var(--s-ink);font:inherit;font-size:var(--fs-sm);font-weight:600;
  padding:6px 14px;min-height:34px;border-radius:var(--rad-pill);cursor:pointer;
  transition:background-color var(--dur-1) var(--ease-out),border-color var(--dur-1) var(--ease-out),color var(--dur-1) var(--ease-out)}
.apph-chip:hover{border-color:var(--s-line-hover)}
.apph-chip.on{background:var(--s-accent-soft);border-color:var(--b-500);color:var(--blue-ink)}
.apph-chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#appshome-body .apps-home.apph-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin-top:0}
#appshome-body .apph-grid.ls-busy{opacity:.6}
#appshome-body .apph-card.apph-tile{display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto 1fr;
  grid-template-areas:"ico name name" "desc desc go";column-gap:12px;row-gap:8px;align-items:center;min-height:116px;
  padding:14px 16px 14px;text-align:left;background:var(--s-panel);border:1px solid var(--s-line-2);border-radius:var(--rad);
  box-shadow:var(--sh-1);cursor:pointer;opacity:1;color:var(--s-ink);
  transition:box-shadow var(--dur-1) var(--ease-out),transform var(--dur-1) var(--ease-out),border-color var(--dur-1) var(--ease-out)}
#appshome-body .apph-card.apph-tile:hover{box-shadow:var(--sh-2);transform:translateY(-1px);border-color:var(--s-line-hover)}
#appshome-body .apph-card.apph-tile:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#appshome-body .apph-tile .apph-ico{grid-area:ico;position:relative;width:44px;height:44px;border-radius:12px;display:inline-flex;align-items:center;
  justify-content:center;font-size:22px;line-height:1;background:var(--b-500);color:var(--s-hero-ink);
  transition:background-color var(--dur-1) var(--ease-out)}
#appshome-body .apph-tile .apph-ico.apph-ico-svg{width:44px;height:44px;box-shadow:none}
#appshome-body .apph-tile .apph-ico .ax-svg,#appshome-body .apph-tile .apph-ico svg{width:22px;height:22px}
#appshome-body .apph-tile:hover .apph-ico{background:var(--b-600)}
#appshome-body .apph-tile.locked .apph-ico{background:var(--s-accent-soft);color:var(--blue-ink)}
.apph-lock{position:absolute;right:-5px;bottom:-5px;width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  background:var(--s-panel);border:1px solid var(--s-line);color:var(--s-ink)}
.apph-lock svg{width:12px !important;height:12px !important;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
#appshome-body .apph-tile .apph-name{grid-area:name;font-size:var(--fs-lg);font-weight:700;line-height:1.25;color:var(--s-ink);
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#appshome-body .apph-tile .apph-desc{grid-area:desc;align-self:start;font-size:var(--fs-sm);line-height:1.45;color:var(--s-muted);
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#appshome-body .apph-tile .apph-pill{grid-area:go;justify-self:end;align-self:end;display:inline-flex;align-items:center;height:24px;padding:0 10px;margin:0;
  border-radius:var(--rad-pill);font-size:var(--fs-xs);font-weight:700;white-space:nowrap;background:var(--s-sunk);color:var(--s-ink)}
#appshome-body .apph-pill.apph-open{background:transparent;color:var(--blue-ink);padding-right:0}
#appshome-body .apph-pill.apph-free{background:var(--s-accent-soft);color:var(--blue-ink)}
#appshome-body .apph-pill.apph-incl{background:var(--s-accent-soft);color:var(--blue-ink)}
#appshome-body .apph-pill.apph-here{background:var(--b-500);color:var(--s-hero-ink)}
#appshome-body .apph-pill.apph-unsure{background:var(--s-sunk);color:var(--s-muted)}
#appshome-body .apph-pill.apph-warn{background:var(--orange-soft);color:var(--o-ink)}
#appshome-body .apph-pill.apph-locked{background:var(--s-sunk);color:var(--s-ink)}
#appshome-body .apph-tile.is-active{border-color:var(--b-500)}
#appshome-body .apph-tile .runmark{top:10px;right:12px}
.apph-foot{margin-top:var(--sp-4)}
@media (max-width:600px){
  /* A9 on a phone: a single column, the title beside the icon. */
  #appshome-body .apps-home.apph-grid{grid-template-columns:minmax(0,1fr)}
  #appshome-body .apph-card.apph-tile{min-height:0}
  .apph-find .apph-sf{flex-basis:100%;max-width:none}
  .apph-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:-2px;padding:2px}
  .apph-chips::-webkit-scrollbar{display:none}
  .apph-chip{flex:0 0 auto;min-height:40px}
}

/* =====================================================================================================================
   A1 — WITH REDUCED MOTION, NOTHING HERE MOVES
   ===================================================================================================================== */
@media (prefers-reduced-motion: reduce){
  .env-tab,.env-ask-ov,.env-ask,.apph-chip,#appshome-body .apph-card.apph-tile,#appshome-body .apph-tile .apph-ico,
  .env-bar .env-office span,.env-bar .env-back span{transition-duration:0ms !important}
}

/* v3.1196.0 (18 October 2026) — an app with no face of its own wears its initials on the blue tile (A9), never an emoji. */
#appshome-body .apph-tile .apph-mono{font-size:var(--fs-md);font-weight:700;letter-spacing:.02em;line-height:1}
/* v3.1196.0 — on a phone the header's search box folds to its icon button (styles.css), but the box's own magnifier was
   left drawn, hanging over whatever sat next to it (the workspace tile). It shows again when the search opens. */
@media (max-width:600px){
  html body .apptop:not(.find-open) .apptop-find .search-field .sf-icon{display:none}
}
/* v3.1196.0 — the drawer header's second line stays one line beside its button ("The Platinum side", the plan word). */
.env-dr-t small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* v3.1196.0 — a laptop's header (1024px) has to hold the screen's title whole beside the search, "Office →", the workspace,
   Communications, the phone and the theme. Below 1180px the workspace is its initials tile (its name is the hover text and
   the open list), as on a phone, so the title is never the thing that gives way. */
@media (max-width:1180px){
  .apptop-right .ws-switch .lbx-trigger .lbx-lab,.env-ws-one .env-ws-name{display:none}
  .apptop-right .ws-switch .lbx-trigger{width:58px !important;min-width:0 !important;max-width:none;padding-right:24px}
  .env-ws-one{padding:0 6px}
  .env-bar .btn{padding:0 10px}
  .env-bar .env-office span{display:none}
  /* The palette's trigger keeps its magnifier; "Ctrl K" is its hover text here (the key still works everywhere). */
  .apptop:has(#apptop-find:not([hidden])) .navk-trigger .navk-kbd{display:none}
  .apptop:has(#apptop-find:not([hidden])) .navk-trigger{padding:0;width:36px;justify-content:center}
}
/* v3.1196.0 — a phone on its side keeps its one-line header under 64px: the crossing button is the header's own 34px, like
   Communications and the phone beside it (theme.css "THE SHORT SCREEN"). */
@media (max-height:500px) and (orientation:landscape) and (pointer:coarse){
  .env-pill{display:none}
  .env-bar .btn{min-height:34px;height:34px;padding:0 9px}
  .env-bar .env-back{font-size:0;gap:0;width:34px;justify-content:center}
  .env-bar .env-back span{font-size:var(--fs-md);display:inline}
}

/* =====================================================================================================================
   v3.1204.0 (24 October 2026) — THE NEW MENU (lane navbuild, from the agreed mock-up _handover/menu-mockup)
   Darren, 24 Oct: "build it from this" — "make this complicated software as simple to use as we can." Staff: the small mark
   and the switcher on one line; Search and + Create; Pinned; three plain blocks under light dividers; Help, Settings and your
   initials at the foot. Customers: the large logo, the workspace card, their menu. Inside an app, the app's own menu stands
   out and the rest is small and quiet. One menu open at a time, and no collapse button. Theme tokens only.
   ===================================================================================================================== */
/* ---- v3.1219.0.60.1 (10 November 2026) — THE SHRUNK MENU (lane menushrink) --------------------------------------------------
   Darren, 10 Nov 2026: "Can we also add a button to reduce the menu bar size? We used to have that, and it's disappeared." Then:
   "And I mean that as in the left-hand menu." This replaces 3.1204's "no collapse button" (that was about the groups: "Only one
   menu at a time, so when you open one, it collapses the next."). The round chevron on the menu's edge (#sb-collapse, theme.css)
   shrinks the menu to a 64px strip of icons: every item keeps its icon and says its name in hover text; counts stay as small
   numbers in the corner; a group heading is an icon that opens its items in a panel beside the strip, one group at a time
   (ui.js, `am-fly`). The Office stays orange and a workspace blue; an app's own menu (app focus, 3.1204) shrinks the same way.
   Only where the menu is a column: below 900px it is the phone's drawer, and the button is not shown. Theme tokens only. */
@media (min-width:900.02px){
  /* Above the page (its sticky top bar is 15), so the edge button and a group's panel are not drawn under the content. */
  .sidebar{z-index:20}
  .sidebar.collapsed .sb-switch-t,.sidebar.collapsed .sb-search-t,.sidebar.collapsed .sb-search .navk-kbd,
  .sidebar.collapsed .sb-create-t,.sidebar.collapsed .sb-me-t,.sidebar.collapsed .nq-n,.sidebar.collapsed .nq-empty,.sidebar.collapsed .am-title,
  .sidebar.collapsed .am-chev,.sidebar.collapsed .sb-ws-t,.sidebar.collapsed .sb-ws-chev,.sidebar.collapsed .sb-apphead-t,
  .sidebar.collapsed .env-sec,.sidebar.collapsed .am-pin,.sidebar.collapsed .plus-badge-row{display:none !important}
  /* html.nav-shrunk: stronger than an app's own top row (html.app-focus.nav-customer .sb-top puts the mark and card side by side). */
  html.nav-shrunk .sidebar.collapsed .sb-top,html.nav-shrunk .sidebar.collapsed .sb-find{flex-direction:column;align-items:center;gap:6px;padding:10px 6px 6px}
  .sidebar.collapsed .sb-switch,.sidebar.collapsed .sb-search,.sidebar.collapsed .sb-create{flex:0 0 auto;width:40px;justify-content:center;padding:0}
  .sidebar.collapsed .sb-switch{height:32px}
  .sidebar.collapsed .sb-wscard{width:40px;padding:6px 0;justify-content:center}
  .sidebar.collapsed .sb-brand{padding-top:4px;min-height:0}
  .sidebar.collapsed #sb-areamenu,.sidebar.collapsed .sb-env,.sidebar.collapsed .sb-grp,.sidebar.collapsed .sb-focus,
  .sidebar.collapsed .sb-focus-end{padding-left:8px;padding-right:8px}
  .sidebar.collapsed .sb-foot{padding:6px 8px 8px;align-items:center}
  .sidebar.collapsed .sb-foot > .tab,.sidebar.collapsed .sb-foot-menu{width:100%}
  .sidebar.collapsed .sb-me{justify-content:center;padding:6px 0}
  .sidebar.collapsed .sb-apphead{justify-content:center;padding:6px 0;margin:4px 0 2px}
  .sidebar.collapsed .am-div{margin:6px 4px}
  /* A group heading is an icon; its count sits in the corner; open or shut, its items only show in the panel. */
  .sidebar.collapsed .am-head{position:relative;justify-content:center;gap:0;padding:9px 0}
  .sidebar.collapsed .am-head .am-gi{width:18px;height:18px}
  .sidebar.collapsed .tab .cm-badge{position:absolute;top:2px;right:4px;margin:0;font-size:10px;line-height:15px;min-width:16px;padding:0 4px}
  .sidebar.collapsed .am-head .am-badge{position:absolute;top:2px;right:2px;font-size:10px;line-height:15px;min-width:16px;padding:0 4px}
  .sidebar.collapsed .am-grp[open]:not(.am-fly) > .am-head .am-badge:not([hidden]){display:block}
  .sidebar.collapsed .am-grp:not(.am-fly) > .am-items{display:none}
  .sidebar.collapsed .am-grp.am-here > .am-head{color:var(--blue-ink);background:var(--s-accent-soft)}
  html[data-env="office"] .sidebar.collapsed .am-grp.am-here > .am-head{color:var(--o-ink);background:var(--o-soft)}
  .sidebar.collapsed .am-grp.am-fly > .am-head{color:var(--s-ink);background:var(--s-sunk)}
  /* The panel beside the strip: the group's name, then its items with their words. Placed by ui.js flyPlace. */
  .sidebar.collapsed .am-grp.am-fly > .am-items{position:fixed;z-index:95;margin:0;width:max-content;min-width:200px;max-width:280px;
    max-height:calc(100vh - 16px);overflow-y:auto;background:var(--s-raised);border:1px solid var(--s-line);border-radius:var(--rad);
    box-shadow:var(--sh-3);padding:4px 6px 6px;animation:mv-rise var(--dur-2) var(--ease-out) both}
  html[data-env="office"] .sidebar.collapsed .am-grp.am-fly > .am-items{border-left:3px solid var(--o-500)}
  html:not([data-env="office"]) .sidebar.collapsed .am-grp.am-fly > .am-items{border-left:3px solid var(--b-500)}
  .sidebar.collapsed .am-grp.am-fly > .am-items::before{content:attr(data-fly-title);display:block;padding:8px 10px 4px;font-size:11px;
    font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
  .sidebar.collapsed .am-fly > .am-items .tab{justify-content:flex-start;gap:10px;padding:7px 10px;white-space:normal}
  .sidebar.collapsed .am-fly > .am-items .tab .lab{position:static;font-size:var(--fs-sm);line-height:1.25;color:inherit;pointer-events:auto}
  .sidebar.collapsed .am-fly > .am-items .tab .nav-badge{position:static;margin-left:6px}
  .sidebar.collapsed .am-fly > .am-items .tab.am-item.active::after{display:none}
}
@media (prefers-reduced-motion: reduce){ .sidebar.collapsed .am-grp.am-fly > .am-items{animation:none} .sb-collapse,.sb-collapse svg{transition:none} }
/* What the menu replaced stays in the page (old links, tests and the reachability census still find it), out of sight. */
#sb-areas,.sidebar .sb-grp.you,#sb-you-grp,#sb-admin-grp,.sidebar .sb-build,#sb-guides{display:none !important}
html[data-env="office"] #sb-area-grp{display:none !important}

/* ---- the top ---- */
.sb-mark{display:none;width:26px;height:26px;flex:0 0 auto}
.sb-mark .lg{display:none;width:26px;height:26px}
html:not([data-theme="dark"]) .sb-mark .lg-mark-light,html[data-theme="dark"] .sb-mark .lg-mark-dark{display:block}
html.nav-staff .sb-top{display:flex;align-items:center;gap:8px;padding:12px 10px 8px 12px;border-bottom:0}
html.nav-staff .sb-brand{display:none}
html.nav-staff .sb-mark{display:block}
.sb-switch[hidden],.sb-wscard[hidden],.sb-create[hidden],.sb-help[hidden]{display:none !important}
.sb-switch{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:36px;padding:0 8px 0 10px;border:1px solid var(--s-line);
  border-radius:var(--rad-in);background:var(--s-panel);color:var(--s-ink);cursor:pointer;text-align:left;font:inherit;
  box-shadow:inset 3px 0 0 var(--b-500);transition:border-color var(--dur-1) var(--ease-out)}
html[data-env="office"] .sb-switch{box-shadow:inset 3px 0 0 var(--o-500)}
.sb-switch:hover{border-color:var(--muted)}
.sb-switch-t{flex:1;min-width:0;line-height:1.15}
.sb-switch-t b{display:block;font-size:var(--fs-sm);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-switch-t small{display:block;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-env="office"] .sb-switch-t small{color:var(--o-ink)}
.sb-switch-chev,.sb-ws-chev{width:14px;height:14px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--muted)}
html.nav-customer .sb-top{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:16px 14px 8px;border-bottom:0}
html.nav-customer .sb-brand{padding-top:0;min-height:0;justify-content:flex-start}
.sb-wscard{display:flex;align-items:center;gap:8px;width:100%;padding:7px 10px;border:1px solid var(--s-line);border-radius:var(--rad-in);
  background:var(--s-panel);color:var(--s-ink);text-align:left;font:inherit;cursor:default}
.sb-wscard.sb-ws-many{cursor:pointer}
.sb-wscard.sb-ws-many:hover{border-color:var(--b-500)}
.sb-wscard .sb-ws-chev{display:none}
.sb-wscard.sb-ws-many .sb-ws-chev{display:block}
.sb-ws-tile{width:26px;height:26px;border-radius:7px;background:var(--s-accent-soft);color:var(--blue-ink);display:grid;place-items:center;
  font-size:11px;font-weight:700;flex:0 0 auto}
.sb-ws-t{flex:1;min-width:0;line-height:1.15}
.sb-ws-t b{display:block;font-size:var(--fs-sm);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-ws-t small{display:block;font-size:11px;color:var(--muted)}
.sb-ws-t small[hidden]{display:none}

/* ---- Search and + Create ---- */
.sb-find{display:flex;gap:6px;padding:4px 10px 8px 12px}
.sb-search{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:32px;padding:0 8px;border:1px solid var(--s-line);
  border-radius:var(--rad-in);background:var(--s-sunk);color:var(--muted);cursor:pointer;font:inherit;font-size:var(--fs-sm);text-align:left}
.sb-search:hover{color:var(--s-ink)}
.sb-search svg,.sb-create svg{width:15px;height:15px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sb-search-t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-search .navk-kbd{font-size:10.5px;font-weight:600;padding:1px 5px;border:1px solid var(--s-line);border-bottom-width:2px;border-radius:5px;
  background:var(--s-panel);color:var(--muted)}
.sb-create{height:32px;flex:0 0 auto;border:0;border-radius:var(--rad-in);background:var(--b-500);color:var(--s-hero-ink);display:inline-flex;
  align-items:center;gap:4px;padding:0 11px 0 8px;font:inherit;font-size:var(--fs-sm);font-weight:700;cursor:pointer}
html[data-env="office"] .sb-create{background:var(--o-500);color:var(--ink-brand)}
.sb-create svg{stroke-width:2.4}

/* ---- the scroll, its blocks and its rows ---- */
.sb-scroll{display:flex;flex-direction:column}
#sb-areamenu{padding:0 8px;margin:0 0 6px}
.am-div{height:1px;background:var(--s-line-2);margin:8px 6px;flex:0 0 auto}
.am-row{position:relative}
.am-row > .tab{margin:1px 0}
.am-pinnable > .tab{padding-right:32px}
.am-pin{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:24px;height:24px;display:none;place-items:center;border:0;
  border-radius:6px;background:transparent;color:var(--muted);cursor:pointer;padding:0}
.am-pin svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.am-row:hover > .am-pin,.am-row:focus-within > .am-pin{display:grid}
.am-pin:hover{background:var(--s-line-2);color:var(--s-ink)}
.am-pin.on{color:var(--o-ink)}
.am-pin.on svg{fill:currentColor}
.am-pinnable:hover .nav-badge,.am-pinnable:focus-within .nav-badge{visibility:hidden}
.tab.am-item.am-dragging{opacity:.5}
.am-slot > .tab{margin:1px 0}
/* One number per row: the Communications row carries only what is waiting for YOU; the team's count is on the top bar's button. */
.am-slot #sb-comms .cm-badge:not(.cm-mine-badge){display:none !important}
.am-grp[open] > .am-head .am-badge{display:none}
.am-grp.am-here:not([open]) > .am-head{color:var(--blue-ink);background:var(--s-accent-soft)}
html[data-env="office"] .am-grp.am-here:not([open]) > .am-head{color:var(--o-ink);background:var(--o-soft)}
.sb-env .env-sec{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:10px 10px 4px}
.sb-env .am-grp{margin:1px 0}
.env-lockic{display:inline-grid;place-items:center;margin-left:6px;color:var(--muted);vertical-align:middle}
.env-lock{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:1.8}

/* ---- Pinned ---- */
.nav-quick{padding:2px 8px 6px}
.nav-quick .nq-h{display:flex;align-items:center;gap:6px}
.nq-hi{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nq-n{margin-left:auto;text-transform:none;letter-spacing:0;font-weight:500}
.nq-empty{margin:2px 4px 4px;padding:8px 10px;border:1px dashed var(--s-line);border-radius:var(--rad-in);font-size:var(--fs-xs);color:var(--muted);line-height:1.35}
.nq-said{font-size:var(--fs-xs);color:var(--o-ink);padding:0 10px 2px;min-height:0}
.nq-said:empty{display:none}
.nav-quick.nq-over{background:var(--o-soft);outline:2px dashed var(--o-500);outline-offset:-2px;border-radius:var(--rad-in)}

/* ---- the foot ---- */
.sb-foot{border-top:1px solid var(--s-line-2);padding:6px 8px 8px;display:flex;flex-direction:column;gap:1px;flex:0 0 auto}
#sb-foot-menu:empty{display:none}
.sb-me{display:flex;align-items:center;gap:10px;width:100%;padding:6px 8px;border:0;background:none;border-radius:var(--rad-in);cursor:pointer;
  text-align:left;color:var(--s-ink);font:inherit}
.sb-me:hover{background:var(--s-sunk)}
.sb-av{width:28px;height:28px;border-radius:50%;background:var(--b-500);color:var(--s-hero-ink);display:grid;place-items:center;font-size:11px;
  font-weight:700;flex:0 0 auto}
html[data-env="office"] .sb-av{background:var(--o-500);color:var(--ink-brand)}
.sb-me-t{flex:1;min-width:0;line-height:1.15}
.sb-me-t b{display:block;font-size:var(--fs-sm);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-me-t small{display:block;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Staff have no round help button: Help is a row at the foot (Darren, 24 Oct). Customers keep theirs, bottom-right. */
html.nav-staff #sh-fab{display:none !important}

/* ---- the switcher, + Create and the avatar menu ---- */
.nav-pop{position:fixed;z-index:95;min-width:220px;max-width:300px;background:var(--s-raised);border:1px solid var(--s-line);border-radius:var(--rad);
  box-shadow:var(--sh-3);padding:6px;animation:mv-rise var(--dur-2) var(--ease-out) both}
.nav-pop-h{padding:8px 10px 4px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.nav-pop-row{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border:0;background:none;border-radius:var(--rad-in);cursor:pointer;
  text-align:left;font:inherit;font-size:var(--fs-sm);color:var(--s-ink)}
.nav-pop-row:hover,.nav-pop-row:focus-visible{background:var(--s-sunk);outline:none}
/* 3.1217.0 (lane bec-ui) — a link row (Vault) looks like the rows beside it; the arrow says it opens in a new tab. */
a.nav-pop-row{text-decoration:none;color:var(--s-ink)}
.nav-pop-link .nav-pop-t::after{content:" \2197";color:var(--muted)}
.nav-pop-row.on{color:var(--blue-ink);font-weight:700}
html[data-env="office"] .nav-pop-row.on{color:var(--o-ink)}
.nav-pop-t{flex:1;min-width:0;line-height:1.2}
.nav-pop-t small{display:block;color:var(--muted);font-size:11.5px;font-weight:400}
.nav-pop-tile{width:28px;height:28px;border-radius:7px;display:grid;place-items:center;font-size:11px;font-weight:700;flex:0 0 auto}
.nav-pop-tile.o{background:var(--o-soft);color:var(--o-ink)}
.nav-pop-tile.b{background:var(--s-accent-soft);color:var(--blue-ink)}
.nav-pop-tile svg,.nav-pop-tick{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nav-pop-sep{height:1px;background:var(--s-line-2);margin:4px 6px}
.nav-pop-foot{padding:6px 10px 2px;font-size:11px;color:var(--muted)}

/* ---- the Settings and Customer view pages ---- */
.set-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.set-q{height:36px;padding:0 12px;border:1px solid var(--s-line);border-radius:var(--rad-in);background:var(--s-panel);color:var(--s-ink);font:inherit;
  font-size:var(--fs-sm);min-width:260px}
.set-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin:0 0 22px}
.set-card{background:var(--s-panel);border:1px solid var(--s-line);border-radius:var(--rad);padding:14px 14px 8px}
.set-card[hidden],.set-item[hidden]{display:none}
.set-card h2{margin:0 0 6px;font-size:var(--fs-md)}
.set-item{display:flex;align-items:center;gap:8px;width:calc(100% + 16px);text-align:left;border:0;background:none;padding:7px 8px;margin:0 -8px;
  border-radius:var(--rad-sm);cursor:pointer;font:inherit;font-size:var(--fs-sm);color:var(--s-ink)}
.set-item:hover{background:var(--s-sunk);color:var(--blue-ink)}
html[data-env="office"] .set-item:hover{color:var(--o-ink)}
.set-item-t{flex:1;min-width:0}
.set-item-go{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;color:var(--muted)}
@media (max-width:600px){ .set-q{min-width:0;width:100%} }

/* ---- APP FOCUS: the app's own rows stand out; the rest is small and quiet ---- */
.sb-focus[hidden],.sb-focus-end[hidden]{display:none !important}
.sb-focus-only{display:none}
html.app-focus .sb-focus-only{display:block}
html.app-focus[data-env] .sidebar .sb-env,html.app-focus .sidebar .sb-hand{display:none !important}
html.app-focus #sb-focus{order:-2}
html.app-focus .nav-quick{order:20}
html.app-focus #sb-focus-end{order:21}
html.app-focus:not(.focus-calc) .sb-scroll .sb-grp > .sb-gl{display:none}
.sb-focus,.sb-focus-end{padding:0 8px}
.sb-quiet .tab,.sb-quiet .navx,html.app-focus .nav-quick .tab,html.app-focus .sb-foot .tab,html.app-focus .sb-foot .am-head{padding-top:5px;padding-bottom:5px;
  font-size:12px;color:var(--muted)}
.sb-quiet .tab svg,.sb-quiet .navx svg,html.app-focus .sb-foot .tab svg,html.app-focus .sb-foot .am-gi{width:13px;height:13px}
.sb-back svg{stroke:currentColor;fill:none;stroke-width:2}
html.app-focus .nav-quick .nq-h{padding-top:6px;padding-bottom:2px;font-size:10px}
html.app-focus .nav-quick .nq-empty{display:none}
.sb-apphead{display:flex;align-items:center;gap:10px;padding:8px 8px 6px 10px;margin:6px 0 2px}
.sb-aico{width:30px;height:30px;border-radius:8px;background:var(--s-accent-soft);color:var(--blue-ink);display:grid;place-items:center;flex:0 0 auto}
.sb-aico svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8}
.sb-apphead-t{min-width:0;line-height:1.2}
.sb-apphead-t b{display:block;font-size:var(--fs-md);font-weight:700;color:var(--s-ink);overflow-wrap:anywhere}
.sb-apphead-t small{display:block;font-size:11px;color:var(--muted)}
html.app-focus.nav-staff .sb-top{padding:8px 10px 4px 12px}
html.app-focus .sb-switch{height:28px}
html.app-focus .sb-switch-t b{font-size:12px}
html.app-focus .sb-switch-t small{display:none}
html.app-focus .sb-find{padding:2px 10px 4px 12px}
html.app-focus .sb-search{height:26px;font-size:12px}
html.app-focus .sb-search .navk-kbd{display:none}
html.app-focus.nav-customer .sb-top{flex-direction:row;align-items:center;gap:8px;padding:8px 10px 4px 12px}
html.app-focus.nav-customer .sb-brand{display:none}
html.app-focus.nav-customer .sb-mark{display:block}
html.app-focus .sb-wscard{padding:3px 8px}
html.app-focus .sb-ws-tile{width:20px;height:20px;font-size:9px}
html.app-focus .sb-ws-t b{font-size:12px}
html.app-focus .sb-ws-t small{display:none}
html.app-focus .sb-foot{padding:4px 8px 6px}
html.app-focus .sb-me{padding:3px 8px}
html.app-focus .sb-av{width:22px;height:22px;font-size:9.5px}
html.app-focus .sb-me-t b{font-size:12px}
html.app-focus .sb-me-t small{display:none}
@media (prefers-reduced-motion: reduce){ .nav-pop{animation:none} .sb-switch{transition:none} }
/* v3.1204.0 — where you are is said by the switcher (staff) or the workspace card (customers), so the phone drawer header goes;
   Pinned already draws the line above the menu, so its first divider is not drawn twice. */
html.nav-staff .env-drawer,html.nav-customer .env-drawer{display:none !important}
#sb-areamenu > .am-div:first-child{display:none}
/* v3.1204.0 — "Shared with you" at the top of Resources (app.js libSharedWithYou). */
.lib-shared-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.lib-shared-h h2{margin:0}
.lib-shared-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.lib-shared-list li{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
/* lane tidy1 (25 Oct 2026) — "Couldn't check your access. Trying again…" under the header, with Retry beside it (app.js accessLine).
   A plain line, never a full-screen block: the page under it still works, and it goes by itself when the check answers. */
.acc-retry{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap;padding:var(--sp-2) var(--sp-4);font-size:13px;color:var(--ink);
  background:color-mix(in srgb, var(--warn) 9%, var(--panel));border-bottom:1px solid color-mix(in srgb, var(--warn) 35%, transparent)}
.acc-retry .btn[hidden]{display:none}
