/* BwU Connect shell (2026-10-30): logo top bar, jump widgets, collapsible menu, light and dark, phone bottom bar.
   Loaded after every other CRM stylesheet, so it only overrides. */
@font-face{font-family:"Hanken Grotesk";src:url(/assets/fonts/hanken.woff2) format("woff2");font-weight:400 800;font-display:swap}
@font-face{font-family:"Bricolage Grotesque";src:url(/assets/fonts/bricolage.woff2) format("woff2");font-weight:600 800;font-display:swap}
:root{--display:"Bricolage Grotesque",ui-sans-serif,system-ui,sans-serif;--body:"Hanken Grotesk",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --field:#081a30;--chip:#12305a;--th:#071a30;--soft:#0a1f38;--on-hot:#09090b;--hover:#15345c;--sel:rgba(237,200,98,.16);--hot-soft:rgba(224,135,78,.14);--top:rgba(6,23,43,.92);color-scheme:dark}
html[data-theme="light"]{--bg:#f8f3e8;--panel:#ffffff;--panel2:#efe7d6;--line:#e2daca;--text:#071d36;--muted:#55697f;--hot:#c96b35;--cyan:#3d5a80;--yellow:#8a6a10;--violet:#071d36;--green:#2f7d4f;--red:#b8432f;--shadow:0 10px 30px rgba(7,29,54,.08);
  --field:#ffffff;--chip:#efe7d6;--th:#f8f3e8;--soft:#fbf8f1;--on-hot:#ffffff;--hover:#efe6d3;--sel:rgba(7,29,54,.10);--hot-soft:rgba(201,107,53,.10);--top:rgba(248,243,232,.94);color-scheme:light}
html{font-family:var(--body)}
.brand strong,.topbar h1,.stat strong,.panel h2,.card h2,.conversation h2,.step-card .step-no,.auth-card h1,.funnel-list strong,.metric-list strong,.chat-info h3,.followup-form h3,.ai-sec h2,.ai-stat b{font-family:var(--display);letter-spacing:-.02em}
.topbar h1{font-weight:800}
/* light: the places that used fixed dark colours */
html[data-theme="light"] body{background:radial-gradient(circle at 88% 3%,rgba(201,107,53,.06),transparent 28%),radial-gradient(circle at 20% 90%,rgba(11,142,168,.05),transparent 32%),var(--bg)}
html[data-theme="light"] .sidebar{background:var(--bg)}
html[data-theme="light"] .panel,html[data-theme="light"] .card,html[data-theme="light"] .live-card{background:var(--panel)}
html[data-theme="light"] th{background:var(--th)}
html[data-theme="light"] .btn,html[data-theme="light"] .tag button,html[data-theme="light"] .mini,html[data-theme="light"] .editor-toolbar button,html[data-theme="light"] .phone-top button{background:var(--chip)}
html[data-theme="light"] .btn.ghost{background:transparent}
html[data-theme="light"] .btn.hot,html[data-theme="light"] .date-chips .btn.active,html[data-theme="light"] .period-tabs a.active{background:var(--hot);border-color:var(--hot);color:#fff}
html[data-theme="light"] .btn:hover{border-color:var(--violet)}
html[data-theme="light"] .btn.danger,html[data-theme="light"] .danger{background:#fdecef;border-color:#f0b8c3;color:var(--red)}
html[data-theme="light"] .mini.danger,html[data-theme="light"] .bad-text{color:var(--red)!important}
html[data-theme="light"] .big-pill,html[data-theme="light"] .pill{background:var(--chip)}
html[data-theme="light"] input,html[data-theme="light"] textarea,html[data-theme="light"] select,html[data-theme="light"] .date-pick input[type=date]{background:var(--field);color:var(--text);color-scheme:light}
html[data-theme="light"] .timeline p,html[data-theme="light"] .activity-row p{color:var(--text)}
html[data-theme="light"] .pipe-col,html[data-theme="light"] .reply-box,html[data-theme="light"] .email-msg,html[data-theme="light"] .editor-wrap,html[data-theme="light"] .activity-badge,html[data-theme="light"] .funnel-list article,html[data-theme="light"] .slug-line,html[data-theme="light"] .blog-editor-wrap,html[data-theme="light"] .ai-rec,html[data-theme="light"] .ai-codes,html[data-theme="light"] .q-msg,html[data-theme="light"] .followup.done,html[data-theme="light"] .rank-list i{background:var(--soft)}
html[data-theme="light"] .editor-toolbar,html[data-theme="light"] .blog-toolbar{background:var(--panel2)}
html[data-theme="light"] .msg{background:var(--panel2)}
html[data-theme="light"] .msg.admin{background:#f6e3d6;border-color:#ecc4a8}
html[data-theme="light"] .msg.system{background:#e6ebf2;border-color:#c3cfdd}
html[data-theme="light"] .email-body{border:1px solid var(--line)}
html[data-theme="light"] .rich-editor,html[data-theme="light"] .blog-rich-editor{border-bottom:1px solid var(--line)}
html[data-theme="light"] .flash.ok{background:#e9f8ee;border-color:#a7dcb7;color:#185c2c}
html[data-theme="light"] .flash.bad{background:#fdecef;border-color:#f0b8c3;color:#8d2236}
html[data-theme="light"] code{background:var(--panel2);color:#0a6f84}
html[data-theme="light"] .followup{background:#fff7dd;border-color:#ecd28a}
html[data-theme="light"] .chat-item.unread strong,html[data-theme="light"] .chat-item.unread .ci-msg{color:var(--text)}
html[data-theme="light"] .chat-tabs a.on,html[data-theme="light"] .chat-tabs a.on b,html[data-theme="light"] .st.you,html[data-theme="light"] .thread-item b,html[data-theme="light"] .chat-item .badge{color:#fff}
html[data-theme="light"] .bar-track,html[data-theme="light"] .funnel-list>div,html[data-theme="light"] .mini-table>div,html[data-theme="light"] .reader-list>div,html[data-theme="light"] .contact-attribution-list a{border-color:var(--line)}
html[data-theme="light"] .bar-track{background:var(--panel2)}
html[data-theme="light"] .phone-top{background:var(--top)}

/* top bar */
.cx-ico{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.cx-top{position:sticky;top:0;z-index:45;display:flex;align-items:center;gap:10px;padding:8px 16px 8px 10px;padding-top:max(8px,env(safe-area-inset-top));background:var(--top);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.cx-ib{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:var(--muted);background:none;border:0;cursor:pointer;flex:none}
.cx-ib:hover{background:var(--hover);color:var(--text)}
.cx-ib:focus-visible,.cx-w:focus-visible,.sidebar nav a:focus-visible{outline:2px solid var(--violet);outline-offset:2px}
.cx-logo{display:flex;align-items:center;gap:9px;min-width:0;color:var(--text)}
.cx-logo img{width:34px;height:34px;border-radius:9px;flex:none}
.cx-logo b{font:800 21px/1 var(--display);letter-spacing:-.03em;white-space:nowrap}
.cx-logo i{font-style:normal;font-weight:600;background:linear-gradient(90deg,var(--hot),var(--violet));-webkit-background-clip:text;background-clip:text;color:transparent}
.cx-ws{font-size:12px;font-weight:700;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:4px 10px;white-space:nowrap}
.cx-search{flex:1;max-width:680px;margin-left:clamp(8px,4vw,60px);display:flex;align-items:center;gap:8px;background:var(--panel2);border-radius:24px;padding:0 14px;height:44px;min-width:0}
.cx-search input{flex:1;min-width:0;width:auto;background:none!important;border:0;box-shadow:none!important;padding:0;font-size:15px;color:var(--text)}
.cx-search .cx-ico{color:var(--muted)}
.cx-right{margin-left:auto;display:flex;align-items:center;gap:2px}
.cx-theme-light,html[data-theme="light"] .cx-theme-dark{display:none}
html[data-theme="light"] .cx-theme-light{display:block}
.cx-me{position:relative}
.cx-me summary{list-style:none;cursor:pointer;width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--hot),var(--violet));color:#fff;display:grid;place-items:center;font-weight:800;margin-left:6px}
.cx-me summary::-webkit-details-marker{display:none}
.cx-menu{position:absolute;right:0;top:46px;min-width:220px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:var(--shadow);display:grid;gap:2px;z-index:60}
.cx-menu span{padding:8px 10px;font-weight:700}
.cx-menu a,.cx-menu button{padding:9px 10px;border-radius:8px;color:var(--muted);text-align:left;background:none;border:0;font:inherit;cursor:pointer}
.cx-menu a:hover,.cx-menu button:hover{background:var(--hover);color:var(--text)}
/* jump widgets */
.cx-widgets{display:flex;gap:8px;overflow-x:auto;padding:8px 16px;border-bottom:1px solid var(--line);scrollbar-width:none;position:relative;z-index:30;background:var(--bg)}
.cx-widgets::-webkit-scrollbar{display:none}
.cx-w{flex:none;display:flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);font-size:13px;font-weight:650;color:var(--text);white-space:nowrap}
.cx-w:hover{border-color:var(--violet)}
.cx-w.on{border-color:var(--hot);box-shadow:inset 0 0 0 1px var(--hot)}
.cx-w b{font-size:12px;font-variant-numeric:tabular-nums;padding:1px 7px;border-radius:9px;background:var(--hot-soft);color:var(--hot)}
.cx-w small{color:var(--muted);font-size:12px;font-weight:500}
/* menu: collapsible, with icons */
.app-shell{min-height:calc(100vh - 120px)}
.sidebar{top:var(--cx-head,112px);height:calc(100vh - var(--cx-head,112px));padding:12px 10px;transition:width .18s}
.app-shell{transition:grid-template-columns .18s}
.sidebar .brand,.sidebar .side-search{display:none}
.sidebar nav a{display:flex;align-items:center;gap:12px;white-space:nowrap;overflow:hidden}
.sidebar nav a .cx-ico{width:18px;height:18px}
.sidebar nav a.active{color:var(--hot);background:var(--hot-soft);box-shadow:none}
.sidebar nav .pill{margin-left:auto!important}
html.cx-mini .app-shell{grid-template-columns:68px minmax(0,1fr)}
html.cx-mini .sidebar nav a{justify-content:center;padding:10px 0}
html.cx-mini .sidebar nav a .cx-lbl,html.cx-mini .sidebar nav a .pill,html.cx-mini .sidebar-foot{display:none}
html.cx-mini .sidebar nav a .pill{display:none}
/* phone bottom bar */
.cx-bottom{display:none}
.phone-top-stub{display:none!important}
@media(max-width:850px){
  .cx-top{padding-left:6px;padding-right:10px;gap:6px}
  .cx-logo b{font-size:18px}
  .cx-search{margin-left:0;height:40px}
  .cx-search input{font-size:16px}
  .cx-right .cx-hide-s{display:none}
  .cx-ws{display:none}
  .sidebar{top:0;height:100vh;height:100dvh}
  html.cx-mini .app-shell{grid-template-columns:1fr}
  html.cx-mini .sidebar nav a .cx-lbl,html.cx-mini .sidebar-foot{display:revert}
  html.cx-mini .sidebar nav a{justify-content:flex-start;padding:10px 11px}
  .cx-bottom{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;left:0;right:0;bottom:0;z-index:44;background:var(--top);backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:6px 6px max(6px,env(safe-area-inset-bottom))}
  .cx-bottom a{display:grid;justify-items:center;gap:3px;font-size:11px;font-weight:700;color:var(--muted);padding:4px 0;position:relative}
  .cx-bottom a.on{color:var(--hot)}
  .cx-bottom a.on .cx-ico{background:var(--hot-soft);border-radius:14px;width:52px;padding:2px 14px;box-sizing:content-box;height:20px}
  .cx-bottom b{position:absolute;top:0;left:calc(50% + 6px);font-size:10px;background:var(--hot);color:#fff;border-radius:9px;padding:0 5px}
  .main{padding-bottom:96px}
  .cx-shell-mailbox .main{padding:0 0 70px}
}
@media(max-width:420px){.cx-logo b{display:none}}
@media (prefers-reduced-motion:reduce){.sidebar,.app-shell{transition:none}}
/* sign-in pages: the BwU Connect mark on top */
.cx-auth-brand{display:flex;align-items:center;gap:12px;margin:0 0 14px}
.cx-auth-brand img{width:44px;height:44px;border-radius:12px;box-shadow:0 6px 22px rgba(255,78,184,.28)}
.cx-auth-brand span{font:800 24px/1 var(--display);letter-spacing:-.03em;color:var(--text)}
.cx-auth-brand em{font-style:normal;background:linear-gradient(90deg,#ff4eb8,#9a72ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.auth-card .eyebrow{text-transform:none;letter-spacing:.02em}
