/* The left menu — everyone's since 2026-10-29 (no switch back). Every rule that
   touches the old menu's items lives under html.nav-v2, which index.html puts on
   in the <head>. js/sidebar-v2.js adds the pieces this styles (the phone row, the
   quick-tools row, the Property Mgmt heading, the Asset Management group, the footer row) and moves the old
   items into it. See docs/claude-rules/the-new-left-menu-is-a-switch-301.md. */

/* ── Pieces the script adds: only the new menu shows them ───────────────── */
.sbv2-only{display:none}
#grp-assets,#grp-investors{display:none}
#grp-investors-beta{display:none}
html:not(.nav-v2) #grp-marketing-beta{display:none}
#grp-pmgmt{display:none}
/* Finance (beta) is a page of the new menu only */
html:not(.nav-v2) #nav-finance{display:none!important}
html.nav-v2 #grp-assets,html.nav-v2 #grp-investors{display:block}
html.nav-v2 #grp-investors-beta,html.nav-v2 #grp-marketing-beta{display:block}
html.nav-v2 #grp-pmgmt{display:block}
/* Asset Management is retired from Nov 7 2026 (js/sidebar-v2.js ASSETS_UNTIL). */
html.nav-v2 #grp-assets.sbv2-retired{display:none !important}
.g-ico2{display:none}
.sbv2-svg{display:none}

/* ── Header: logo beside the two quick-add buttons, then the phone, then the
      quick tools. The old Grouped switch, the quick-tools pin and the rotate
      switch go; the collapse button moves to the footer. ─────────────────── */
html.nav-v2 .sb-brand{
  display:grid;grid-template-columns:auto minmax(0,1fr);
  grid-template-areas:"logo qa" "phone phone" "dock dock" "duo duo";
  align-items:center;justify-items:stretch;gap:8px;
  padding:10px 9px 8px;border-bottom:0;
}
html.nav-v2 .sb-brand img.sb-brand-full{
  grid-area:logo;justify-self:start;
  width:92px !important;height:auto !important;padding:0 !important;
  mix-blend-mode:screen;filter:contrast(1.7) brightness(1.08) !important;
}
html.nav-v2 #sb-navmode-toggle,
html.nav-v2 #dock-sb-pin-row,
html.nav-v2 #dock-sb-pin,
html.nav-v2 .rc-cc-switch,
html.nav-v2 .sb-collapse-btn{display:none !important}
html.nav-v2 .sb-quickadd{grid-area:qa;flex-direction:column;gap:5px;min-width:0}
html.nav-v2 .sb-qa-btn{
  justify-content:center;height:26px;padding:0 6px;border-radius:8px;
  font-family:'DM Sans',sans-serif;font-size:11.5px;font-weight:600;letter-spacing:0;text-transform:none;
}
html.nav-v2 .sb-qa-ico{display:none}
html.nav-v2 .sb-qa-todo{color:#9cc7ff;background:rgba(59,139,255,.13);border-color:rgba(59,139,255,.38)}
html.nav-v2 .sb-qa-issue{color:#fda4af;background:rgba(244,63,94,.12);border-color:rgba(244,63,94,.36)}

/* The old phone button hands over to the phone row (it still runs the phone —
   the row only mirrors it). Collapsed, the old button is the phone again. */
html.nav-v2:not(.sidebar-collapsed) #sb-phone-btn{display:none !important}

/* ── Phone row ───────────────────────────────────────────────────────────── */
html.nav-v2 .sbv2-phone{
  grid-area:phone;display:flex;align-items:center;gap:7px;min-width:0;box-sizing:border-box;
  height:34px;padding:0 4px 0 0;border-radius:10px;border:1px solid;position:relative;
  font-family:'DM Sans',sans-serif;
}
html.nav-v2 .sbv2-phone[hidden]{display:none}
/* The whole row is the way to the Phone page; lit while it is open. */
html.nav-v2 .sbv2-phone{cursor:pointer}
html.nav-v2 .sbv2-phone:hover{filter:brightness(1.12)}
html.nav-v2 .sbv2-phone.on{box-shadow:inset 0 0 0 1px currentColor}
.sbv2-st-ok{color:#6ee7b7;background:rgba(52,211,153,.12);border-color:rgba(52,211,153,.42)}
.sbv2-st-off{color:#fca5a5;background:rgba(248,113,113,.12);border-color:rgba(248,113,113,.44)}
.sbv2-st-call{color:#9cc7ff;background:rgba(59,139,255,.14);border-color:rgba(59,139,255,.45)}
.sbv2-st-ring{animation:sbv2ring 1s ease-in-out infinite}
@keyframes sbv2ring{0%,100%{box-shadow:0 0 0 0 rgba(52,211,153,.55)}50%{box-shadow:0 0 0 4px rgba(52,211,153,0)}}
.sbv2-pmain{
  flex:1 1 auto;min-width:0;height:100%;display:flex;align-items:center;gap:7px;padding:0 0 0 9px;
  background:none;border:0;color:inherit;font:inherit;cursor:pointer;text-align:left;
}
.sbv2-pi{position:relative;display:flex;width:16px;height:16px;flex:none}
.sbv2-pdot{position:absolute;right:-4px;top:-4px;width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 2px #0e1424}
.sbv2-pt{font-size:11.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sbv2-pn,.sbv2-bdg{
  min-width:15px;height:15px;padding:0 4px;box-sizing:border-box;border-radius:8px;
  background:#dc2626;color:#fff;font-size:9.5px;font-weight:700;line-height:15px;text-align:center;flex:none;
}
.sbv2-pn[hidden],.sbv2-bdg[hidden]{display:none}
/* The phone's count sits on the corner of the strip's icon, so it never takes room from the label. */
html.nav-v2 .sbv2-phone .sbv2-pn{position:absolute;left:19px;top:-7px;z-index:1;box-shadow:0 0 0 2px #0e1424}
.sbv2-rb{
  width:26px;height:26px;flex:none;display:flex;align-items:center;justify-content:center;
  border-radius:7px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#eaf0fb;
  cursor:pointer;padding:0;
}
.sbv2-rb:hover{background:rgba(255,255,255,.18)}
.sbv2-rb.on{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.4)}
.sbv2-rb+.sbv2-rb{margin-left:-3px}

/* ── Quick tools: Email, Calendar, Contacts, Radio, Atlas ────────────────── */
html.nav-v2 .sbv2-dock{grid-area:dock;display:flex;gap:4px;min-width:0}
.sbv2-dw{position:relative;flex:1 1 0;min-width:0;display:flex}
.sbv2-dk{
  position:relative;flex:1 1 0;min-width:0;height:30px;display:flex;align-items:center;justify-content:center;
  border-radius:9px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.045);color:#d5ddee;
  cursor:pointer;padding:0;
}
.sbv2-dk:hover{background:rgba(255,255,255,.1);color:#fff}
.sbv2-dk.on{background:rgba(59,139,255,.2);border-color:rgba(59,139,255,.55);color:#fff}
.sbv2-dk[data-k="email"] svg{color:#fdba74}
.sbv2-dk[data-k="betacalendar"] svg{color:#7db4ff}
.sbv2-dk[data-k="mastercontacts"] svg{color:#f0abfc}
.sbv2-dk[data-k="comms"] svg{color:#5eead4}
.sbv2-dk[data-k="atlas"] svg{color:#c4b5fd}
.sbv2-dk[data-k="signor"] svg{color:#c4b5fd}
.sbv2-dk[data-k="outbox"] svg{color:#fcd34d}
.sbv2-dw .sbv2-bdg{position:absolute;left:-4px;top:-6px;z-index:2}
.sbv2-dw:has(.sbv2-dk[data-k="outbox"]) .sbv2-bdg{left:auto;right:-4px}

/* Atlas and Metrics: two labeled buttons under the quick tools (Kyle, 2026-11-11) */
html.nav-v2 .sbv2-duo{grid-area:duo;display:flex;gap:4px;min-width:0}
html.nav-v2 .sbv2-duo:not(:has(.sbv2-dw:not(.sbv2-gone))){display:none}
.sbv2-dk.sbv2-db{justify-content:flex-start;gap:7px;padding:0 10px;font:600 12.5px 'DM Sans',sans-serif;color:#e6ecf7}
.sbv2-dbi{display:flex;flex:none}
.sbv2-dbl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sbv2-dk[data-k="metrics"] svg{color:#d5ddee}
.sbv2-dw .sbv2-db .sbv2-bdg{position:static;margin-left:auto}
.sbv2-dbchip{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);z-index:2;width:20px;height:20px;border-radius:6px;
  border:0;background:transparent;color:#94a3b8;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;
}
.sbv2-dbchip:hover{background:rgba(255,255,255,.1);color:#fff}
.sbv2-dbchip:focus-visible{outline:2px solid #8fc2ff;outline-offset:1px}
.sbv2-dw:has(.sbv2-dbchip) .sbv2-db{padding-right:30px}
.sbv2-chip{
  position:absolute;top:-5px;right:-4px;z-index:2;width:15px;height:15px;border-radius:5px;
  border:1px solid rgba(255,255,255,.24);background:#1b2540;color:#d5ddee;
  display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;
}
.sbv2-chip:hover{background:#2a3860;color:#fff}
.sbv2-dk:focus-visible,.sbv2-rb:focus-visible,.sbv2-chip:focus-visible,.sbv2-pmain:focus-visible,.sbv2-cb:focus-visible{
  outline:2px solid #8fc2ff;outline-offset:1px;
}

/* ── The floating bubbles are replaced by the buttons above (desktop) ───── */
@media (min-width:769px){
  html.nav-v2 #eostodo-fab,
  html.nav-v2 #eosissue-fab,
  html.nav-v2 #ai-fab,
  html.nav-v2 #help-fab,
  html.nav-v2 #radio-fab,
  html.nav-v2 #dock-collapse-btn{display:none !important}
}

/* ── The list: no Pinned, no Communications / Leasing / Construction /
      Property Mgmt groups (their pages moved into Asset Management or into the
      buttons above), small caps headings with a line icon, items that keep their own symbol. ── */
html.nav-v2 #grp-pinned,
html.nav-v2 #grp-eos,
html.nav-v2 #grp-comms,
html.nav-v2 #grp-leasing,
html.nav-v2 #grp-construction,
html.nav-v2 #grp-propmgmt,
html.nav-v2 #nav-betacalendar,
html.nav-v2 #nav-hiring,
html.nav-v2 #nav-proforma,
html.nav-v2 #nav-proformas,
html.nav-v2 #sb-sops,
html.nav-v2 #nav-workflowmap,
html.nav-v2 #nav-layout,
html.nav-v2 #nav-goaltracker,
html.nav-v2 #nav-deck,
html.nav-v2 #nav-spamcheck,
html.nav-v2 #nav-atlas,
html.nav-v2 #nav-metrics_tab,
html.nav-v2 #nav-partnerpages,
html.nav-v2 #sb-admin-section{display:none !important}
/* A little wider than the old 218px (234px), just enough for the 🔍 on the Acquisitions Pipeline row
   (Kyle, 2026-11-11). The rail (collapsed) and the phone drawer keep their own widths. */
html.nav-v2:not(.sidebar-collapsed) .sidebar{width:234px;min-width:234px}
html.nav-v2:not(.sidebar-collapsed) .sb-item::after,
html.nav-v2:not(.sidebar-collapsed) .sb-item-hb::after{left:240px}
html.nav-v2 .sb-scroll{padding:0 7px 6px}
html.nav-v2 .group-head{
  height:28px;padding:0 8px;gap:8px;border-radius:7px;font-size:9.5px;letter-spacing:.05em;color:#9fb0cf;
  box-sizing:border-box;
}
html.nav-v2 .nav-group .group-head{border-left-color:transparent !important}
html.nav-v2 .group-head:hover{background:rgba(255,255,255,.05);color:#fff}
html.nav-v2 .nav-group.open>.group-head{background:transparent;color:#fff}
html.nav-v2 .nav-group:has(.active)>.group-head{color:#fff}
html.nav-v2 .group-head .g-icon{display:none}
html.nav-v2 .group-head .g-ico2{display:inline-flex;width:15px;height:15px;flex:none;color:#9fb0cf}
/* Each category has its own colour, so the list reads at a glance. */
html.nav-v2 #grp-acq .g-ico2,html.nav-v2 #grp-proppipe .g-ico2{color:#34d399}
html.nav-v2 #grp-dd .g-ico2{color:#a5b4fc}
html.nav-v2 #grp-pmgmt .g-ico2{color:#60a5fa}
html.nav-v2 #grp-assets .g-ico2{color:#fb923c}
html.nav-v2 #grp-marketing .g-ico2{color:#f472b6}
html.nav-v2 #grp-finance .g-ico2{color:#fbbf24}
html.nav-v2 #grp-investors .g-ico2{color:#a3e635}
html.nav-v2 #grp-investors-beta .g-ico2{color:#a3e635}
html.nav-v2 #grp-marketing-beta .g-ico2{color:#f472b6}
html.nav-v2 #grp-hr .g-ico2{color:#a78bfa}
html.nav-v2 #grp-files .g-ico2{color:#2dd4bf}
html.nav-v2 #sb-admin-section .g-ico2{color:#fb7185}
html.nav-v2 #sb-partner-support-section .g-ico2{color:#38bdf8}
html.nav-v2 .group-head .g-caret{font-size:9px;margin-left:2px}
/* What the app is not showing this person: an empty category, an old page a beta replaces, a quick tool whose page they do not have. */
html.nav-v2 .nav-group.sbv2-empty,
html.nav-v2 .sbv2-pairhide,
html.nav-v2 .sbv2-gone{display:none !important}
/* A category that is one page: the heading opens it, so no caret and no list. */
.sbv2-hlbl{display:none}
html.nav-v2 .sbv2-pagegrp>.group-head .g-caret{display:none}
html.nav-v2 .sbv2-pagegrp>.submenu{display:none !important}
html.nav-v2 .sbv2-relabeled>.group-head .g-label{display:none}
html.nav-v2 .sbv2-pagegrp>.group-head .sbv2-hlbl{display:block;flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Property Mgmt is a page heading: it lights up on its page, as Hiring's does. */
html.nav-v2 #grp-pmgmt.sbv2-on>.group-head,html.nav-v2 #grp-investors-beta.sbv2-on>.group-head,html.nav-v2 #grp-marketing-beta.sbv2-on>.group-head,
html.nav-v2 #grp-proppipe.sbv2-on>.group-head,html.nav-v2 #grp-dd.sbv2-on>.group-head,html.nav-v2 #grp-acq.sbv2-on>.group-head{color:#fff}
/* Acquisitions Pipeline (Kyle, 2026-11-11): its heading opens the pipeline, so the pipeline item is not in its list;
   the new name shows, and the Autodialer always shows under it (no ▾). */
html.nav-v2 #grp-acq>.group-head .sbv2-hlbl{display:block;flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.nav-v2 #grp-acq #nav-pipeline{display:none !important}
html.nav-v2 #grp-acq>.group-head .g-caret{display:none}
html.nav-v2 #grp-acq>.group-head #sbv2-pffind{margin-left:6px;flex:none}
/* The Autodialer is a small ☎ button beside 🔍 (Casey, 2026-11-12): nothing is listed under the heading. */
html.nav-v2 #grp-acq>.submenu{display:none !important}
html.nav-v2 #grp-acq>.group-head #sbv2-adbtn{margin-left:-4px;flex:none;position:relative;overflow:visible}
html.nav-v2 #sbv2-adbtn #sbv2-ad-count{position:absolute;top:-6px;right:-7px;margin:0;min-width:14px;height:14px;padding:0 3px;font-size:9px;line-height:14px;border-radius:7px}
html.nav-v2 #sbv2-ad-count[hidden]{display:none}
html.nav-v2 .submenu{
  background:transparent;box-shadow:none;margin:0 0 0 17px;
  border-left:1px solid rgba(255,255,255,.09);
}
html.nav-v2 .submenu::before{display:none}
html.nav-v2 .nav-group.open>.submenu{padding:1px 0 5px 8px}
html.nav-v2 .submenu .sb-item,
html.nav-v2 .submenu .sb-item-hb{
  height:26px;padding:0 8px;gap:6px;box-sizing:border-box;border-left:0;border-radius:6px;
  font-size:12.5px;font-weight:500;color:#b9c4db;white-space:nowrap;overflow:hidden;
}
html.nav-v2 .submenu .sb-item:hover,
html.nav-v2 .submenu .sb-item-hb:hover{background:rgba(255,255,255,.06);color:#fff}
html.nav-v2 .submenu .sb-item.active,
html.nav-v2 .submenu .sb-item-hb.active{
  background:rgba(59,139,255,.16) !important;color:#fff;font-weight:500;
  border-left-color:transparent !important;box-shadow:inset 2px 0 0 #3b8bff;
}
/* A hire still working through Getting Started: it sits at the top of the
   menu, under Accountability, with how far along they are (js/page-lock.js
   placeGettingStarted). It goes to Tools once everything is done. */
html.nav-v2 #nav-onboarding.apl-gs-top{
  display:flex;align-items:center;gap:8px;margin:2px 4px 10px;padding:9px 10px;border-radius:10px;
  background:linear-gradient(135deg,rgba(37,99,235,.32),rgba(22,163,74,.22));
  border:1px solid rgba(143,194,255,.55);color:#fff;font-size:13.5px;font-weight:700;cursor:pointer;
  box-shadow:0 0 0 0 rgba(59,139,255,.5);animation:aplGsPulse 2.6s ease-out 3;
}
html.nav-v2 #nav-onboarding.apl-gs-top:hover{background:linear-gradient(135deg,rgba(37,99,235,.45),rgba(22,163,74,.3))}
html.nav-v2 #nav-onboarding.apl-gs-top.active{box-shadow:inset 3px 0 0 #8fc2ff}
html.nav-v2 #nav-onboarding .apl-gs-n{
  margin-left:auto;flex:none;font-size:11px;font-weight:800;padding:2px 7px;border-radius:999px;
  background:rgba(255,255,255,.16);color:#e6efff;
}
html.nav-v2.sidebar-collapsed #nav-onboarding .apl-gs-n{display:none}
html.nav-v2.sidebar-collapsed #nav-onboarding.apl-gs-top{font-size:0;justify-content:center;gap:0;padding:8px 0;margin:2px 4px 8px}
@keyframes aplGsPulse{0%{box-shadow:0 0 0 0 rgba(59,139,255,.55)}70%{box-shadow:0 0 0 8px rgba(59,139,255,0)}100%{box-shadow:0 0 0 0 rgba(59,139,255,0)}}
@media (prefers-reduced-motion:reduce){html.nav-v2 #nav-onboarding.apl-gs-top{animation:none}}
/* Acquisitions Pipeline: a small 🔍 at the right end of its row finds a proforma
   (All Proformas is off the menu — Kyle, 2026-11-10; it is a slide-out on the board now).
   The Property Mgmt heading carries the same small buttons for Construction and Leasing. */
html.nav-v2 .submenu .sbv2-itembtn,
html.nav-v2 .group-head .sbv2-itembtn{
  display:flex;align-items:center;justify-content:center;flex:none;margin-left:auto;
  width:20px;height:20px;padding:0;border-radius:6px;cursor:pointer;
  border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.07);color:#b9c4db;
}
html.nav-v2 .submenu .sbv2-itembtn:hover,
html.nav-v2 .group-head .sbv2-itembtn:hover{background:rgba(255,255,255,.18);color:#fff}
html.nav-v2 .submenu .sbv2-itembtn.on,
html.nav-v2 .group-head .sbv2-itembtn.on{background:rgba(59,139,255,.3);border-color:rgba(143,194,255,.7);color:#fff}
html.nav-v2 .submenu .sbv2-itembtn:focus-visible,
html.nav-v2 .group-head .sbv2-itembtn:focus-visible{outline:2px solid #8fc2ff;outline-offset:1px}
html.nav-v2 .submenu .sbv2-itembtn+.sbv2-itembtn{margin-left:4px}
/* the heading already spaces its children 8px apart */
html.nav-v2 .group-head .sbv2-itembtn+.sbv2-itembtn{margin-left:-4px}
html.nav-v2 .submenu .sbv2-itembtn.open{background:rgba(59,139,255,.3);border-color:rgba(143,194,255,.7);color:#fff}
/* 🔍 Find a proforma: a box beside the Acquisitions Pipeline row (js/sidebar-v2.js pfFind). */
html.nav-v2 .sbv2-pfq{
  position:fixed;z-index:10050;display:flex;flex-direction:column;max-height:min(460px,calc(100vh - 20px));
  box-sizing:border-box;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:#111a2e;
  box-shadow:0 18px 40px rgba(0,0,0,.55);font-family:'DM Sans',sans-serif;overflow:hidden;
}
html.nav-v2 .sbv2-pfq[hidden]{display:none}
html.nav-v2 .sbv2-pfq-in{
  display:flex;align-items:center;gap:8px;margin:8px;padding:0 10px;height:38px;border-radius:9px;
  border:1px solid rgba(143,194,255,.55);background:rgba(255,255,255,.06);color:#8fc2ff;flex:none;cursor:text;
}
html.nav-v2 .sbv2-pfq-in input{
  flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;color:#fff;font:500 14px 'DM Sans',sans-serif;
}
html.nav-v2 .sbv2-pfq-in input::placeholder{color:#8a96b0}
html.nav-v2 .sbv2-pfq-list{flex:1;min-height:0;overflow-y:auto;padding:0 6px 6px}
html.nav-v2 .sbv2-pfq-hd{
  padding:4px 8px 6px;font-family:'Syne',sans-serif;font-size:10px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:#14b8a6;
}
html.nav-v2 .sbv2-pfq-row{
  box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:center;width:100%;
  padding:7px 9px;border:0;border-radius:8px;background:transparent;color:#e6ecf7;text-align:left;cursor:pointer;
  font-family:'DM Sans',sans-serif;
}
html.nav-v2 .sbv2-pfq-row:hover,
html.nav-v2 .sbv2-pfq-row.sel{background:rgba(59,139,255,.2)}
html.nav-v2 .sbv2-pfq-nm{grid-column:1;font-size:13px;font-weight:700;color:#fff;overflow-wrap:anywhere;line-height:1.3}
html.nav-v2 .sbv2-pfq-ad{grid-column:1;font-size:11.5px;color:#9aa6bf;overflow-wrap:anywhere;line-height:1.3}
/* The buttons take no room until the row is picked, so the address reads in full (Kyle, 2026-11-11). */
html.nav-v2 .sbv2-pfq-acts{grid-column:2;grid-row:1/span 2;display:none;gap:5px}
html.nav-v2 .sbv2-pfq-row:hover .sbv2-pfq-acts,
html.nav-v2 .sbv2-pfq-row.sel .sbv2-pfq-acts{display:flex}
html.nav-v2 .sbv2-pfq-go{
  font-size:11.5px;font-weight:700;color:#fff;padding:4px 9px;border-radius:6px;background:#3b7f8a;white-space:nowrap;
}
html.nav-v2 .sbv2-pfq-go.card{background:#5b4bb7}
html.nav-v2 .sbv2-pfq-go:hover{filter:brightness(1.18)}
/* ＋ New blank: small and out of the way, in the footer beside All Proformas › (Kyle, 2026-11-11). */
html.nav-v2 .sbv2-pfq-fr{display:flex;align-items:center;gap:12px;flex:none}
html.nav-v2 .sbv2-pfq-new{
  border:0;background:transparent;padding:0;cursor:pointer;color:#7f8ba5;font:600 11px 'DM Sans',sans-serif;
}
html.nav-v2 .sbv2-pfq-new:hover{color:#cfe2ff;text-decoration:underline}
html.nav-v2 .sbv2-pfq-msg{padding:12px 10px;font-size:12.5px;color:#b9c4db}
html.nav-v2 .sbv2-pfq-msg button,
html.nav-v2 .sbv2-pfq-all{
  border:0;background:transparent;color:#8fc2ff;font:600 12px 'DM Sans',sans-serif;cursor:pointer;padding:0;
}
html.nav-v2 .sbv2-pfq-msg button:hover,
html.nav-v2 .sbv2-pfq-all:hover{text-decoration:underline}
html.nav-v2 .sbv2-pfq-foot{
  display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;padding:7px 12px;
  border-top:1px solid rgba(255,255,255,.08);font-size:11px;color:#7f8ba5;
}
/* Each page keeps the symbol it had in the old menu. */
html.nav-v2 .submenu .sb-icon{font-size:15px;width:18px;margin:0}
html.nav-v2 .sb-pin-btn{display:none !important}

/* Metrics is the old "Metrics & Insights" item under a shorter name: its own
   text is hidden and the script adds the new label beside it. */
html.nav-v2 .submenu .sbv2-renamed{font-size:0;gap:0}
html.nav-v2 .submenu .sbv2-renamed .sbv2-lbl{font-size:12.5px;margin-left:6px}

/* Accountability, and the three pages that sat under EOS, right under the
   quick tools. */
.sbv2-acct{display:none}
html.nav-v2 .sbv2-acct{display:block;padding:0 2px 8px}
/* One strip like the phone's: the Accountability button, then three small icon buttons. */
.sbv2-astrip{
  display:flex;align-items:center;gap:4px;height:34px;padding:0 3px 0 0;box-sizing:border-box;min-width:0;
  border-radius:10px;border:1px solid rgba(59,139,255,.38);background:rgba(59,139,255,.1);
}
.sbv2-ai{
  flex:1 1 auto;min-width:0;height:100%;display:flex;align-items:center;gap:6px;padding:0 0 0 8px;
  border:0;border-radius:9px;background:transparent;color:#cfe0ff;cursor:pointer;text-align:left;
  font-family:'DM Sans',sans-serif;font-size:11px;font-weight:600;white-space:nowrap;
}
.sbv2-ai span{overflow:hidden;text-overflow:ellipsis}
.sbv2-ai svg{color:#5aa2ff;flex:none}
.sbv2-ai:hover{color:#fff}
.sbv2-ai.on{color:#fff}
.sbv2-astrip:has(.sbv2-ai.on){background:rgba(59,139,255,.22);border-color:rgba(59,139,255,.6)}
.sbv2-ab{
  width:23px;height:24px;flex:none;display:flex;align-items:center;justify-content:center;padding:0;
  border-radius:7px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#eaf0fb;cursor:pointer;
}
.sbv2-ab:hover{background:rgba(255,255,255,.18)}
.sbv2-ab.on{background:rgba(59,139,255,.35);border-color:rgba(143,194,255,.7);color:#fff}
.sbv2-ai:focus-visible,.sbv2-ab:focus-visible{outline:2px solid #8fc2ff;outline-offset:1px}
/* A fourth button (the My Seats panel, js/seats-dock.js): the row tightens so the word Accountability still fits. */
.sbv2-astrip:has(#sbv2-seats:not(.sbv2-gone)){gap:2px}
.sbv2-astrip:has(#sbv2-seats:not(.sbv2-gone)) .sbv2-ab{width:21px}
.sbv2-astrip:has(#sbv2-seats:not(.sbv2-gone)) .sbv2-ai{gap:5px;padding-left:7px}
/* The quarter bar (Kyle, 2026-11-11): "Q4 2026 · wk 9 of 13", days left, a bar a
   week — past weeks filled, this week filled up to today. It sits at the top of the
   footer, above Manage Team / View As ("move it to the bottom"). */
.sbv2-qtr{
  display:block;width:100%;margin:0 0 5px;padding:2px 3px 0;box-sizing:border-box;border:0;background:transparent;cursor:pointer;
  text-align:left;font-family:'DM Sans',sans-serif;color:#9fb3d1;
}
.sbv2-qtr.sbv2-gone{display:none}
.sbv2-qtl{display:flex;justify-content:space-between;align-items:baseline;gap:6px;font-size:10.5px;line-height:1.2;white-space:nowrap}
.sbv2-qtl b{font-weight:600;color:#cfe0ff;overflow:hidden;text-overflow:ellipsis}
.sbv2-qtl em{font-style:normal;color:#8ea2c0;flex:none}
.sbv2-qtb{display:flex;gap:3px;margin-top:5px}
.sbv2-qtb i{flex:1 1 0;height:5px;border-radius:2px;background:rgba(255,255,255,.14);overflow:hidden;position:relative}
.sbv2-qtb i.f{background:#3b8bff}
.sbv2-qtb i.c{background:rgba(59,139,255,.28);box-shadow:0 0 0 1px rgba(143,194,255,.75)}
.sbv2-qtb i.c::before{content:'';position:absolute;left:0;top:0;bottom:0;width:var(--p,50%);background:#8fc2ff}
.sbv2-qtr:hover .sbv2-qtl b{color:#fff}
.sbv2-qtr:focus-visible{outline:2px solid #8fc2ff;outline-offset:2px;border-radius:6px}

/* ── Footer: one row of four icon buttons, one line for who you are, the
      switch back, and the licence line. The floating-menu toggles are gone. ── */
html.nav-v2 .sb-footer{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;align-items:center;position:relative;
  width:100%;box-sizing:border-box;padding:7px 9px 8px;
  background:rgba(0,0,0,.18);border-top:1px solid rgba(255,255,255,.07);
}
html.nav-v2 .sb-footer:has(#sbv2-pw[hidden]),
html.nav-v2 .sb-footer:not(:has(#sbv2-pw)){grid-template-columns:repeat(4,minmax(0,1fr))}
/* The 📤 Outbox is one more button at the start of the row once it shows (Kyle, 2026-11-12). */
html.nav-v2 .sb-footer:has(#sbv2-obx:not(.sbv2-gone)){grid-template-columns:repeat(6,minmax(0,1fr))}
html.nav-v2 .sb-footer:has(#sbv2-obx:not(.sbv2-gone)):has(#sbv2-pw[hidden]){grid-template-columns:repeat(5,minmax(0,1fr))}
/* Passwords is the key in the footer row and Files is off the menu (Kyle, 2026-11-11);
   both items stay in the page so their pages, the highlight and ?view= still work. */
html.nav-v2 #nav-passwords,
html.nav-v2 #nav-files{display:none !important}
/* No Tools heading (Kyle, 2026-11-12): Document Signer is a quick tool, Invoice a button on the Finance heading,
   Factory an admin button. The group stays in the page, hidden, so its items keep their pages and ?view=. */
html.nav-v2 #grp-files{display:none !important}
html.nav-v2 .sb-footer>*{grid-column:1/-1;order:5}
/* Passwords (the key), change password, dark mode, language, sign out — in that order along the row. */
html.nav-v2 .sb-footer>.sb-item[data-tip="Change My Password"]{order:1}
html.nav-v2 .sb-footer>#sb-theme-toggle{order:2}
html.nav-v2 .sb-footer>#sb-lang-toggle{order:3}
html.nav-v2 .sb-footer>.sb-item[data-tip="Sign Out"]{order:4}
html.nav-v2 .sb-toggle-row,
html.nav-v2 #sb-clock,
html.nav-v2 #CU,
html.nav-v2 .sb-footer>div:has(>.sb-status-dot){display:none !important}
html.nav-v2 .sb-footer>.sb-item{grid-column:auto}
html.nav-v2 .sb-footer .sb-item{
  height:26px;padding:0 !important;margin:0 !important;box-sizing:border-box;
  justify-content:center;gap:0;font-size:0;
  border:1px solid rgba(255,255,255,.1) !important;border-radius:8px;background:rgba(255,255,255,.045);
  color:#c3cde2;
}
html.nav-v2 .sb-footer .sb-item:hover{background:rgba(255,255,255,.1);color:#fff}
html.nav-v2 .sb-footer .sb-item::after{display:none}
html.nav-v2 .sb-footer .sb-item .sb-icon,
html.nav-v2 #sb-theme-label{display:none}
html.nav-v2 .sb-footer .sbv2-svg{display:flex}
html.nav-v2 .sbv2-sun{display:none !important}
html.nav-v2.apex-dark .sbv2-sun{display:flex !important}
html.nav-v2.apex-dark .sbv2-moon{display:none !important}
html.nav-v2 #sb-lang-toggle .sbv2-svg{display:none}
html.nav-v2 #sb-lang-label{font-size:9px;font-weight:700;letter-spacing:-.01em;font-family:'DM Sans',sans-serif}
html.nav-v2 .sb-footer .sb-item[data-tip="Sign Out"]:hover{color:#fca5a5;border-color:rgba(248,113,113,.45) !important}
html.nav-v2 .sb-footer .sb-item.active{background:rgba(59,139,255,.2)}

/* ── Admin: Manage Team and View As, two labeled buttons on their own row above
      the footer icons (Kyle, 2026-11-11). Hidden for anyone the old Admin group
      is hidden for. Passwords is the key at the start of the icon row. ─────── */
html.nav-v2 .sb-footer>.sbv2-qtr{order:-2;grid-column:1/-1}
html.nav-v2 .sb-footer>.sbv2-admrow{order:-1;grid-column:1/-1;display:flex;gap:4px;min-width:0}
html.nav-v2 .sb-footer>.sbv2-admrow[hidden]{display:none}
html.nav-v2 .sbv2-admb{
  flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;gap:5px;
  height:28px;padding:0 4px;box-sizing:border-box;cursor:pointer;
  border:1px solid rgba(255,255,255,.1);border-radius:8px;background:rgba(255,255,255,.045);
  color:#e6ecf7;font:600 11px 'DM Sans',sans-serif;white-space:nowrap;letter-spacing:-.01em;
}
html.nav-v2 .sbv2-admb svg{color:#fb7185;flex:none}
html.nav-v2 .sbv2-admb span{overflow:hidden;text-overflow:ellipsis}
html.nav-v2 .sbv2-admb:hover{background:rgba(255,255,255,.1);color:#fff}
html.nav-v2 .sbv2-admb.on{background:rgba(251,113,133,.16);border-color:rgba(251,113,133,.5);color:#fff}
html.nav-v2 .sbv2-admb:focus-visible{outline:2px solid #8fc2ff;outline-offset:1px}
html.nav-v2 .sb-footer>.sbv2-pw{
  order:0;grid-column:auto;display:flex;align-items:center;justify-content:center;
  height:26px;padding:0;box-sizing:border-box;cursor:pointer;
  border:1px solid rgba(255,255,255,.1);border-radius:8px;background:rgba(255,255,255,.045);color:#a5b4fc;
}
html.nav-v2 .sb-footer>.sbv2-pw[hidden]{display:none}
html.nav-v2 .sb-footer>.sbv2-pw:hover{background:rgba(255,255,255,.1)}
html.nav-v2 .sb-footer>.sbv2-pw.on{background:rgba(129,140,248,.18);border-color:rgba(129,140,248,.5)}
html.nav-v2 .sb-footer>.sbv2-pw:focus-visible{outline:2px solid #8fc2ff;outline-offset:1px}
html.nav-v2 .sb-footer>.sbv2-obx{position:relative;color:#fcd34d}
html.nav-v2 .sb-footer>.sbv2-obx .sbv2-bdg{position:absolute;right:-5px;top:-7px;z-index:2}

.sbv2-meta{display:none;align-items:center;gap:6px;font-size:10.5px;font-weight:500;color:#93a0bb;font-family:'DM Sans',sans-serif}
html.nav-v2 .sbv2-meta{display:flex}
.sbv2-dotg{width:6px;height:6px;border-radius:50%;background:#34d399;box-shadow:0 0 3px rgba(52,211,153,.6);flex:none}
.sbv2-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sbv2-clock{font-family:ui-monospace,Menlo,monospace;font-size:10px;flex:none}
/* ⏰ Set an alarm is the clock: the alarm icon and the time are one button (js/alarms.js; Casey, 2026-11-13).
   Amber, with a count when there is more than one, while alarms are set. */
.sbv2-alarm{
  margin-left:auto;position:relative;flex:none;display:flex;align-items:center;gap:4px;height:22px;padding:0 6px;
  box-sizing:border-box;border:1px solid rgba(255,255,255,.12);border-radius:7px;background:rgba(255,255,255,.04);
  color:#93a0bb;cursor:pointer;font:inherit;
}
.sbv2-alarm-i{display:flex;color:#a5b4c9}
.sbv2-alarm:hover{background:rgba(255,255,255,.1);color:#fff;border-color:rgba(252,211,77,.5)}
.sbv2-alarm:hover .sbv2-alarm-i{color:#fcd34d}
.sbv2-alarm:focus-visible{outline:2px solid #8fc2ff;outline-offset:1px}
.sbv2-alarm.sbv2-alarm-on{border-color:rgba(252,211,77,.55);background:rgba(252,211,77,.12);color:#fde68a}
.sbv2-alarm.sbv2-alarm-on .sbv2-alarm-i{color:#fcd34d}
.sbv2-alarm-n{position:absolute;right:-6px;top:-7px;min-width:14px;height:14px;padding:0 3px;box-sizing:border-box;border-radius:7px;
  background:#f59e0b;color:#111827;font:700 9px/14px 'DM Sans',sans-serif;text-align:center}
.sbv2-alarm-n[hidden]{display:none}
.sbv2-cb{
  width:22px;height:22px;flex:none;border:0;border-radius:6px;background:transparent;color:#8493b0;
  display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;
}
.sbv2-cb:hover{background:rgba(255,255,255,.08);color:#fff}
html.sidebar-collapsed .sbv2-cb svg{transform:rotate(180deg)}

/* ── Minimized (icon-only) rail ───────────────────────────────────────────── */
@media (min-width:769px){
  html.nav-v2.sidebar-collapsed .sb-brand{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 0 8px}
  html.nav-v2.sidebar-collapsed .sb-brand img.sb-brand-mini{width:26px !important;height:26px !important}
  html.nav-v2.sidebar-collapsed .sb-qa-btn{height:auto;padding:5px;border-radius:50%}
  html.nav-v2.sidebar-collapsed .sb-qa-ico{display:inline}
  html.nav-v2.sidebar-collapsed .sbv2-phone{display:none}
  /* In the rail the Accountability button stays, as its icon alone. */
  html.nav-v2.sidebar-collapsed .sbv2-acct{padding:0 0 6px}
  html.nav-v2.sidebar-collapsed .sbv2-astrip{width:38px;margin:0 auto;padding:0;justify-content:center}
  html.nav-v2.sidebar-collapsed .sbv2-ai{padding:0;justify-content:center;flex:none;width:100%}
  html.nav-v2.sidebar-collapsed .sbv2-ai span,
  html.nav-v2.sidebar-collapsed .sbv2-ab,
  html.nav-v2.sidebar-collapsed .sbv2-qtr{display:none}
  html.nav-v2.sidebar-collapsed .sbv2-dock{flex-direction:column;align-items:center;gap:6px}
  html.nav-v2.sidebar-collapsed .sbv2-dw{flex:none;width:38px}
  html.nav-v2.sidebar-collapsed .sbv2-duo{flex-direction:column;align-items:center;gap:6px}
  html.nav-v2.sidebar-collapsed .sbv2-dbl,
  html.nav-v2.sidebar-collapsed .sbv2-dbchip{display:none}
  html.nav-v2.sidebar-collapsed .sbv2-dk.sbv2-db{justify-content:center;padding:0}
  html.nav-v2.sidebar-collapsed .group-head .g-label,
  html.nav-v2.sidebar-collapsed .group-head .sbv2-hlbl,
  html.nav-v2.sidebar-collapsed .group-head .g-caret{display:none}
  html.nav-v2.sidebar-collapsed .group-head{justify-content:center;padding:0}
  /* An open group in the rail shows its items as icons, as the old rail does. */
  html.nav-v2.sidebar-collapsed .submenu{margin:0;border-left:0}
  html.nav-v2.sidebar-collapsed .nav-group.open>.submenu{padding:0}
  html.nav-v2.sidebar-collapsed .submenu .sb-item,
  html.nav-v2.sidebar-collapsed .submenu .sb-item-hb{height:auto;font-size:0;gap:0;padding:8px 0;justify-content:center;box-shadow:none}
  html.nav-v2.sidebar-collapsed .submenu .sb-icon{display:inline-block;font-size:16px;width:20px}
  html.nav-v2.sidebar-collapsed .submenu .sbv2-itembtn,
  html.nav-v2.sidebar-collapsed .group-head .sbv2-itembtn{display:none}
  html.nav-v2.sidebar-collapsed .sb-footer>div:last-child{display:none}
  html.nav-v2.sidebar-collapsed .sb-footer,
  html.nav-v2.sidebar-collapsed .sb-footer:has(#sbv2-pw[hidden]),
  html.nav-v2.sidebar-collapsed .sb-footer:not(:has(#sbv2-pw)),
  html.nav-v2.sidebar-collapsed .sb-footer:has(#sbv2-obx:not(.sbv2-gone)),
  html.nav-v2.sidebar-collapsed .sb-footer:has(#sbv2-obx:not(.sbv2-gone)):has(#sbv2-pw[hidden]){grid-template-columns:1fr}
  html.nav-v2.sidebar-collapsed .sb-footer>.sbv2-pw{grid-column:1/-1}
  html.nav-v2.sidebar-collapsed .sb-footer>.sbv2-admrow{flex-direction:column}
  html.nav-v2.sidebar-collapsed .sbv2-admb{padding:0}
  html.nav-v2.sidebar-collapsed .sbv2-admb span{display:none}
  html.nav-v2.sidebar-collapsed .sb-footer>.sb-item{grid-column:1/-1}
  html.nav-v2.sidebar-collapsed #sb-lang-label{font-size:9px}
  html.nav-v2.sidebar-collapsed .sbv2-name,
  html.nav-v2.sidebar-collapsed .sbv2-clock,
  html.nav-v2.sidebar-collapsed .sbv2-dotg{display:none}
  html.nav-v2.sidebar-collapsed .sbv2-meta{justify-content:center;flex-direction:column;gap:4px}
  html.nav-v2.sidebar-collapsed .sbv2-alarm{margin-left:0;padding:0 4px}
}
