/* ==========================================================================
   RBM "Clearwave" look: warm rose page, DM Sans, soft white cards, pill buttons, red accent.
   Loaded LAST on every page (the hub links it, and adds it to every module it opens).
   It only changes how things LOOK. Nothing here changes how anything works.
   Specificity trick: html:root:root:root:not([data-theme="dark"]) beats the older per-module theme rules.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&display=swap");

html:root:root:root:not([data-theme="dark"]){
  --cw-red:#B82926; --cw-red-d:#8F1F1D; --cw-red-soft:#FBEAE9; --cw-red-tint:rgba(184,41,38,.08);
  --cw-page:#F6EEED; --cw-page-2:#F2E7E5; --cw-chip:#EFE2E0; --cw-paper:#F9F2F1;
  --cw-ink:#1E1514; --cw-text:#5C4A48; --cw-mute:#8A7472;
  --cw-line:#E8DAD8; --cw-line-2:#F0E6E4; --cw-edge:rgba(34,20,20,.08);
  --cw-shadow:0 8px 32px rgba(34,20,20,.07); --cw-shadow-h:0 24px 64px rgba(34,20,20,.13);
  --cw-btn:0 8px 24px rgba(184,41,38,.28);
  --cw-font:"DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --cw-serif:"Playfair Display",Georgia,serif;
  /* the names the pages already use, mapped onto the warm palette */
  --page:#F6EEED; --bg:#F6EEED; --neutral:#EFE2E0; --line:#E8DAD8; --line2:#F0E6E4; --line-2:#F0E6E4;
  --line-soft:#F0E6E4; --surface-2:#F9F2F1; --raised:#FFFFFF;
  --text:#1E1514; --text-2:#5C4A48; --text-3:#8A7472; --sub:#8A7472; --ink:#1E1514; --muted:#8A7472;
  --ink-muted:#8A7472; --ink-soft:#8A7472; --mute:#8A7472;
  --rbm-page:#F6EEED; --rbm-grey:#EFE2E0; --rbm-line:#E8DAD8; --rbm-line-soft:#F0E6E4; --rbm-ink:#1E1514; --rbm-text:#5C4A48; --rbm-muted:#8A7472;
  --red:#B82926; --red-d:#8F1F1D; --acc:#B82926; --accent:#B82926; --link:#B82926;
}

/* ---------- page, fonts ---------- */
html:root:root:root:not([data-theme="dark"]) body{
  font-family:var(--cw-font)!important;color:var(--cw-ink);
  background-color:var(--cw-page)!important;
  background-image:radial-gradient(circle at 50% -10%,rgba(184,41,38,.12),rgba(184,41,38,0) 46%)!important;
  background-repeat:no-repeat!important;background-attachment:fixed!important;
  -webkit-font-smoothing:antialiased}
html:root:root:root:not([data-theme="dark"]) body *:not(svg):not(svg *):not(code):not(pre):not(kbd):not(samp):not(.mono):not(.hero h1 em):not(em.k):not(.num):not([class*=icon]){font-family:var(--cw-font)!important}
html:root:root:root:not([data-theme="dark"]) .num,html:root:root:root:not([data-theme="dark"]) td.n{font-variant-numeric:tabular-nums}
html:root:root:root:not([data-theme="dark"]) :is(h1,h2,h3){letter-spacing:-.02em;color:var(--cw-ink)}
html:root:root:root:not([data-theme="dark"]) h1{font-weight:700}
html:root:root:root:not([data-theme="dark"]) a{color:var(--cw-red)}
html:root:root:root:not([data-theme="dark"]) ::selection{background:rgba(184,41,38,.18)}

/* ---------- top bars: light, frosted, like the mockup nav ---------- */
html:root:root:root:not([data-theme="dark"]) :is(header.top,.top,.band,.topbar,body>header){
  background:rgba(255,255,255,.88)!important;color:var(--cw-ink)!important;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-top:0!important;border-bottom:1px solid var(--cw-edge)!important;box-shadow:none!important}
/* tablets and phones: no blur behind the top bar (it makes scrolling and typing lag on Samsung tablets) */
@media (pointer:coarse){html:root:root:root:not([data-theme="dark"]) :is(header.top,.top,.band,.topbar,body>header){-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(255,255,255,.97)!important}}
html:root:root:root:not([data-theme="dark"]) :is(.top,.band,header.top)::after{display:none!important}
html:root:root:root:not([data-theme="dark"]) .top .logo,html:root:root:root:not([data-theme="dark"]) .top .brand,html:root:root:root:not([data-theme="dark"]) header.top .brand,html:root:root:root:not([data-theme="dark"]) .band .mark{color:var(--cw-ink)!important}
html:root:root:root:not([data-theme="dark"]) .band{border-radius:20px!important;box-shadow:var(--cw-shadow)!important;border:1px solid var(--cw-edge)!important}
html:root:root:root:not([data-theme="dark"]) .band .mark span{color:var(--cw-red)!important}
html:root:root:root:not([data-theme="dark"]) .band .sub{color:var(--cw-mute)!important}
html:root:root:root:not([data-theme="dark"]) .band .backlink{color:var(--cw-red)!important;border-color:rgba(184,41,38,.3)!important;border-radius:999px!important;background:transparent}
html:root:root:root:not([data-theme="dark"]) .band .backlink:hover{background:var(--cw-red-tint)!important}
html:root:root:root:not([data-theme="dark"]) .top .iconbtn{color:var(--cw-text)!important}
html:root:root:root:not([data-theme="dark"]) .top .iconbtn:hover{background:var(--cw-chip)!important;color:var(--cw-ink)!important}
html:root:root:root:not([data-theme="dark"]) .top .logo .mk,html:root:root:root:not([data-theme="dark"]) :is(.brand .mark,.top .mark){background:var(--cw-red)!important;color:#fff!important;border-radius:12px!important;box-shadow:0 6px 16px rgba(184,41,38,.28)!important}
html:root:root:root:not([data-theme="dark"]) .top .search input{background:#fff!important;border:1px solid var(--cw-line)!important;color:var(--cw-ink)!important;border-radius:999px!important}
html:root:root:root:not([data-theme="dark"]) .top .search svg{color:var(--cw-mute)!important}
html:root:root:root:not([data-theme="dark"]) .avatar,html:root:root:root:not([data-theme="dark"]) .who{background:var(--cw-red)!important;color:#fff!important}
html:root:root:root:not([data-theme="dark"]) .top .lz{background:var(--cw-red-tint)!important;color:var(--cw-red)!important}
html:root:root:root:not([data-theme="dark"]) header.top :is(a,.nav-link,button:not(.btn)){color:var(--cw-text)}
html:root:root:root:not([data-theme="dark"]) header.top .btn:not(.p):not(.primary){color:var(--cw-ink)}
html:root:root:root:not([data-theme="dark"]) :is(.sidebar,.side){background:transparent!important;border-top:0!important;border-right:1px solid var(--cw-edge)!important}
html[data-theme="dark"]:root:root:root .top{background:rgba(26,26,30,.9)!important;color:#fff!important;border-bottom-color:rgba(255,255,255,.1)!important}
html[data-theme="dark"]:root:root:root .top :is(.logo,.brand,.iconbtn){color:#fff!important}

/* ---------- cards and panels ---------- */
html:root:root:root:not([data-theme="dark"]) :is(.card,.panel,.module-card,.kpi,.stat,.tile,.box,.sheet,.strip,.dpanel,.bpanel,.info,.product,details.vendor,.vtable-wrap,.msg,.empty,.kcol,.kcard,.cred,.lb,.gate .box,.add,.sendrow){
  border:1px solid var(--cw-edge)!important;border-radius:20px!important;box-shadow:var(--cw-shadow)}
html:root:root:root:not([data-theme="dark"]) :is(.card,.panel,.module-card,.kpi,.stat,.tile,.box,.sheet,.strip,.lb){background-color:#fff}
html:root:root:root:not([data-theme="dark"]) :is(.msg,.empty){box-shadow:none}
html:root:root:root:not([data-theme="dark"]) :is(.msg.err,.msg.warn,.msg.ok,.msg.info){border-radius:16px!important}
html:root:root:root:not([data-theme="dark"]) :is(a.card,button.card,.module-card,.card[data-go],.card[data-open],.card[onclick],.kcard,.stat):hover{
  transform:translateY(-3px);box-shadow:var(--cw-shadow-h)!important;border-color:var(--cw-edge)!important}
html:root:root:root:not([data-theme="dark"]) :is(.card,.module-card,.panel,.kpi,.stat,.strip,.sheet)::after{background:none!important}
html:root:root:root:not([data-theme="dark"]) :is(.card,.stat,.module-card,.strip,.sheet){border-bottom:1px solid var(--cw-edge)!important}

/* ---------- buttons: pill, flat red with soft shadow ---------- */
html:root:root:root:not([data-theme="dark"]) :is(.btn,button.btn,a.btn){border-radius:999px!important;font-weight:600;box-shadow:none}
html:root:root:root:not([data-theme="dark"]) :is(.btn.p,.btn.primary,button.p,button.primary,.btn-primary,.btn.accent,.btn.red,.btn.go){
  background:var(--cw-red)!important;border-color:var(--cw-red)!important;color:#fff!important;box-shadow:var(--cw-btn)!important}
html:root:root:root:not([data-theme="dark"]) :is(.btn.p,.btn.primary,button.p,button.primary,.btn-primary,.btn.accent)::after{display:none!important}
html:root:root:root:not([data-theme="dark"]) :is(.btn.p,.btn.primary,button.p,button.primary,.btn-primary,.btn.accent):hover:not(:disabled){
  background:var(--cw-red-d)!important;border-color:var(--cw-red-d)!important;box-shadow:0 12px 30px rgba(184,41,38,.35)!important}
html:root:root:root:not([data-theme="dark"]) :is(.btn.p,.btn.primary,.btn-primary):disabled{box-shadow:none!important}
html:root:root:root:not([data-theme="dark"]) .btn:not(.p):not(.primary):not(.accent):not(.d):not(.danger):not(.l):not(.green):not(.btn-primary):not(.red){
  background:rgba(255,255,255,.75);border:1px solid rgba(184,41,38,.22);color:var(--cw-ink)}
html:root:root:root:not([data-theme="dark"]) .btn:not(.p):not(.primary):not(.accent):not(.d):not(.danger):not(.l):not(.green):not(.btn-primary):not(.red):hover:not(:disabled){
  background:#fff;border-color:rgba(184,41,38,.45);box-shadow:0 8px 18px rgba(34,20,20,.10)}
html:root:root:root:not([data-theme="dark"]) .btn.d,html:root:root:root:not([data-theme="dark"]) .btn.danger,html:root:root:root:not([data-theme="dark"]) .btn-danger{background:#fff;color:var(--cw-red);border:1px solid rgba(184,41,38,.35)}
html:root:root:root:not([data-theme="dark"]) .btn.d:hover,html:root:root:root:not([data-theme="dark"]) .btn.danger:hover{background:var(--cw-red-soft)!important}
html:root:root:root:not([data-theme="dark"]) .btn.l{color:var(--cw-red);background:transparent;border-color:transparent}

/* ---------- inputs ---------- */
html:root:root:root:not([data-theme="dark"]) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),select,textarea){
  border:1px solid var(--cw-line)!important;border-radius:14px!important;background-color:#fff;color:var(--cw-ink)}
html:root:root:root:not([data-theme="dark"]) :is(input,select,textarea):focus{outline:none!important;border-color:var(--cw-red)!important;box-shadow:0 0 0 4px rgba(184,41,38,.14)!important}
html:root:root:root:not([data-theme="dark"]) :is(input,textarea)::placeholder{color:#A8958F}
html:root:root:root:not([data-theme="dark"]) input[type=checkbox],html:root:root:root:not([data-theme="dark"]) input[type=radio]{accent-color:var(--cw-red)}

/* ---------- tables ---------- */
html:root:root:root:not([data-theme="dark"]) :is(table thead th,.tbl th,th){
  background:var(--cw-paper)!important;color:var(--cw-mute)!important;border-bottom:1px solid var(--cw-line)!important;
  font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;text-shadow:none}
html:root:root:root:not([data-theme="dark"]) :is(table thead th *,.tbl th *){color:inherit!important}
html:root:root:root:not([data-theme="dark"]) :is(table td,.tbl td){border-color:var(--cw-line-2)!important}
html:root:root:root:not([data-theme="dark"]) :is(table tbody tr:hover td,.tbl tr:hover td){background:var(--cw-paper)!important}
html:root:root:root:not([data-theme="dark"]) :is(.scroll,.tablewrap,.tbl-wrap,.table-wrap){border-radius:16px}
html:root:root:root:not([data-theme="dark"]) :is(table,.tbl){border-radius:16px}

/* ---------- tabs, chips, pills ---------- */
html:root:root:root:not([data-theme="dark"]) .tabs{border-bottom:0!important;gap:6px}
html:root:root:root:not([data-theme="dark"]) :is(.tabs button,.tab){border-radius:999px!important;border:1px solid transparent!important;border-bottom:1px solid transparent!important;color:var(--cw-text);background:transparent;box-shadow:none!important;font-weight:600}
html:root:root:root:not([data-theme="dark"]) :is(.tabs button,.tab):not(.on):not([aria-selected=true]):hover{background:var(--cw-chip)}
html:root:root:root:not([data-theme="dark"]) :is(.tabs button.on,.tab.on,.tabs .on,.tab[aria-selected=true],.tabs button[aria-selected=true]){background:var(--cw-red-soft)!important;color:var(--cw-red)!important;border-color:rgba(184,41,38,.2)!important}
html:root:root:root:not([data-theme="dark"]) :is(.chip,.pill,.st,.badge,.lozenge,.tag,.lz,.dtag,.docbadge,.counter){border-radius:999px!important}
html:root:root:root:not([data-theme="dark"]) .chip.on,html:root:root:root:not([data-theme="dark"]) .seg button.on{background:var(--cw-red)!important;border-color:var(--cw-red)!important;color:#fff!important}
html:root:root:root:not([data-theme="dark"]) .seg,html:root:root:root:not([data-theme="dark"]) .seg button{border-radius:999px!important}

/* ---------- nav lists ---------- */
html:root:root:root:not([data-theme="dark"]) .nav{border-radius:12px!important}
html:root:root:root:not([data-theme="dark"]) .nav.on,html:root:root:root:not([data-theme="dark"]) .nav button.active,html:root:root:root:not([data-theme="dark"]) .nav.active{background:var(--cw-red-soft)!important;color:var(--cw-red)!important;border-left-color:transparent!important;box-shadow:inset 3px 0 0 var(--cw-red)}
html:root:root:root:not([data-theme="dark"]) .nav button{border-radius:12px!important}
html:root:root:root:not([data-theme="dark"]) .nav:hover{background:var(--cw-chip)}

/* ---------- dialogs ---------- */
html:root:root:root:not([data-theme="dark"]) :is(dialog,.modal,.modal-box,.md){border:1px solid var(--cw-edge)!important;border-top:1px solid var(--cw-edge)!important;border-radius:24px!important;box-shadow:var(--cw-shadow-h)!important;background:#fff}
html:root:root:root:not([data-theme="dark"]) :is(.scrim,.backdrop,dialog::backdrop){background:rgba(30,16,16,.45)}
html:root:root:root:not([data-theme="dark"]) .toast,html:root:root:root:not([data-theme="dark"]) #toast{background:#1E1010!important;color:#fff!important;border-radius:14px!important}

/* ---------- group labels and small headings ---------- */
html:root:root:root:not([data-theme="dark"]) .grp>h3{display:inline-flex;background:var(--cw-red-tint);border:1px solid rgba(184,41,38,.15)!important;border-left:1px solid rgba(184,41,38,.15)!important;border-radius:999px;padding:6px 14px;color:var(--cw-red)!important;font-size:12px;font-weight:700;letter-spacing:.12em;margin-bottom:16px}
html:root:root:root:not([data-theme="dark"]) :is(.crumb,.eyebrow,.kicker){color:var(--cw-mute)}
html:root:root:root:not([data-theme="dark"]) .sub,html:root:root:root:not([data-theme="dark"]) :is(small,.hint){color:var(--cw-mute)}
html:root:root:root:not([data-theme="dark"]) .spinner,html:root:root:root:not([data-theme="dark"]) .spin{border-top-color:var(--cw-red)!important}
html:root:root:root:not([data-theme="dark"]) .progress>i,html:root:root:root:not([data-theme="dark"]) .pbar>i{background:var(--cw-red)}

/* ---------- hub home ---------- */
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .card{flex-direction:row;gap:14px;padding:20px;overflow:hidden}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .card .ic{background:var(--cw-red-tint)!important;border-radius:14px;padding:0;width:46px;height:46px;display:grid;place-items:center;color:var(--cw-red)}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .card .ic svg{width:22px;height:22px;stroke-width:1.9}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .card b{font-size:16px;color:var(--cw-ink)}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .card:hover b{color:var(--cw-red)}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .card small{color:var(--cw-text);font-size:13px;line-height:1.45}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .nav .dot{border-radius:8px}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .hero h1{font-size:64px;line-height:1.02;letter-spacing:-.035em;margin:24px 0 16px}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .hero h1 em{font-family:var(--cw-serif)!important;font-style:italic;font-weight:600;color:var(--cw-red);letter-spacing:-.02em}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) #frames{background:var(--cw-page)}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .lw{background:transparent}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .lb{border-top:1px solid var(--cw-edge)!important;padding:32px}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .lb h1{font-family:var(--cw-font)!important}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .lb .mk{background:var(--cw-red);border-radius:14px}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .drawer{background:#fff;border-radius:0 24px 24px 0}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .menu{border-radius:18px!important;border:1px solid var(--cw-edge)!important}

/* ---------- pages that had their own dark bars ---------- */
html:root:root:root:not([data-theme="dark"]) .top .in{color:var(--cw-ink)}
html:root:root:root:not([data-theme="dark"]) .top .in :is(a,span,b,h1,h2,p,small,label,.sub){color:inherit}
html:root:root:root:not([data-theme="dark"]) .top .in :is(.btn,button,select){color:var(--cw-ink)}
html:root:root:root:not([data-theme="dark"]) .top .in .btn.p{color:#fff}
html:root:root:root:not([data-theme="dark"]) header.top .wrap :is(a,span,b,h1,h2,p,small){color:inherit}

html:root:root:root:not([data-theme="dark"]) #themeBtn{background:var(--cw-chip);color:var(--cw-ink)}

/* ---------- customer-facing pages ---------- */
html[data-app="product"]:root:root:root:not([data-theme="dark"]) header{background:rgba(255,255,255,.88)!important;color:var(--cw-ink)!important;border-bottom:1px solid var(--cw-edge)!important}
html:root:root:root:not([data-theme="dark"]) :is(.gate,#gate,.login){background:transparent}

/* ---------- Reports: the same look for the new page ---------- */
html[data-app="reports"]:root:root:root:not([data-theme="dark"]) :is(.kpi,.kpis>*){border-radius:20px!important}

/* ---------- a small footer used by the hub ---------- */
.sitefoot{margin-top:56px;padding:16px 0 4px;border-top:1px solid rgba(34,20,20,.08);text-align:center;color:var(--cw-mute,#8A7472);font-size:12px;line-height:1.4}
.sitefoot b{font-weight:600;color:var(--cw-text,#5C4A48)}
.sitefoot svg{width:12px;height:12px;vertical-align:-1px;fill:#B82926;margin:0 2px}

/* ---------- gentle motion (switched off by the Animations setting) ---------- */
html:root:root:root:not([data-theme="dark"]) :is(.card,.btn,button,.chip,.tab){transition:transform .3s cubic-bezier(.16,1,.3,1),box-shadow .3s,background-color .2s,border-color .2s,color .2s}

/* ---------- phones: bigger touch targets, tighter shapes ---------- */
@media (max-width:860px){
  html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .hero h1{font-size:40px}
  html:root:root:root:not([data-theme="dark"]) :is(.card,.panel,.module-card,.kpi,.stat,.tile,.sheet,.strip){border-radius:18px!important}
  html:root:root:root:not([data-theme="dark"]) :is(dialog,.modal,.modal-box,.md){border-radius:20px!important}
}

/* ---------- hub home hero (two columns when the stock numbers are available) ---------- */
html[data-app="hub"] .hero{display:flex;gap:56px;align-items:center;flex-wrap:wrap;padding:24px 0 8px}
html[data-app="hub"] .hero .hl{flex:1 1 440px;min-width:0}
html[data-app="hub"] .hero .hr{flex:1 1 380px;min-width:0;position:relative}
html[data-app="hub"] .hero .sub{max-width:520px;font-size:16px;line-height:1.65;color:var(--cw-text)}
html[data-app="hub"] .hero .pill{display:inline-flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--cw-edge);border-radius:999px;padding:6px 16px 6px 6px;box-shadow:0 2px 12px rgba(34,20,20,.06);font-size:13.5px;color:var(--cw-text)}
html[data-app="hub"] .hero .pill i{width:26px;height:26px;border-radius:50%;background:var(--cw-red);color:#fff;display:grid;place-items:center;font-style:normal;font-size:12px}
html[data-app="hub"] .hbtns{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
html[data-app="hub"] .hbtns .btn{height:48px;padding:0 26px;font-size:15px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
html[data-app="hub"] .hcard{background:#fff;border:1px solid var(--cw-edge);border-radius:24px;padding:24px 24px 58px;box-shadow:0 24px 64px rgba(34,20,20,.14);position:relative;margin-bottom:24px}
html[data-app="hub"] .hc-t{display:flex;justify-content:space-between;align-items:center;font-size:16px}
html[data-app="hub"] .hc-t span{font-size:12px;color:var(--cw-mute)}
html[data-app="hub"] .hc-bars{display:flex;align-items:flex-end;gap:10px;height:110px;margin-top:18px}
html[data-app="hub"] .hc-bars i{flex:1;border-radius:8px 8px 3px 3px;background:var(--cw-red);min-height:8px}
html[data-app="hub"] .hc-bars i.lt{background:rgba(184,41,38,.16)}
html[data-app="hub"] .hc-k{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}
html[data-app="hub"] .hc-k .mini{background:var(--cw-paper);border:1px solid rgba(34,20,20,.07);border-radius:14px;padding:12px 14px}
html[data-app="hub"] .hc-k .mini b{display:block;font-size:22px;letter-spacing:-.02em;color:var(--cw-ink)}
html[data-app="hub"] .hc-k .mini b.r{color:var(--cw-red)} html[data-app="hub"] .hc-k .mini b.y{color:#8A5A00}
html[data-app="hub"] .hc-k .mini span{display:block;font-size:12px;color:var(--cw-mute);line-height:1.3;margin-top:2px}
html[data-app="hub"] .hc-float{position:absolute;left:-18px;bottom:-20px;background:var(--cw-red);color:#fff;border-radius:16px;padding:10px 16px;font-size:12px;box-shadow:0 12px 30px rgba(184,41,38,.35)}
html[data-app="hub"] .hc-float b{display:block;font-size:20px}
@media (max-width:860px){html[data-app="hub"] .hero{gap:32px}html[data-app="hub"] .hc-float{left:8px;bottom:-16px}}

/* ---------- inside the hub: one heading, not two ----------
   The hub's own bar already shows the company, the logo and who is logged in. An app opened inside it keeps only its page title and its controls. */
html.in-hub:root:root:root :is(header.top,body>.top,.band){
  background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border:0!important;box-shadow:none!important}
html.in-hub:root:root:root .brand .mark,html.in-hub:root:root:root .top .mark{display:none!important}
html.in-hub:root:root:root #whoName,html.in-hub:root:root:root header.top .who:not(:has(#sync)){display:none!important}
html.in-hub:root:root:root .who{background:transparent!important;color:inherit!important;padding:0!important}
/* Receivables: "Reality Building Materials Trading LLC" under the title */
html.in-hub[data-app="receivables"]:root:root:root .brand p{display:none!important}
/* Image search and Product search: the bar's title was the company name with the page name in small print: show the page name only */
html.in-hub[data-app="search"]:root:root:root header.top .brand{font-size:0!important;line-height:0}
html.in-hub[data-app="search"]:root:root:root header.top .brand small{display:block;font-size:22px!important;line-height:1.2;font-weight:700;letter-spacing:-.02em;color:var(--cw-ink,#1E1514);opacity:1;text-transform:none}
html.in-hub[data-theme="dark"][data-app="search"]:root:root:root header.top .brand small{color:#fff}
/* Prices and Calculators: a plain title instead of a boxed band */
html.in-hub:root:root:root .band{padding-left:0!important;padding-right:0!important;border-radius:0!important}
/* Delivery: the side menu repeated the company name above "Delivery Control" */
html.in-hub[data-app="delivery"]:root:root:root .sidebar .brand h1{display:none!important}
html.in-hub[data-app="delivery"]:root:root:root .sidebar .brand p{font-size:17px!important;font-weight:700;letter-spacing:-.01em;color:var(--cw-ink,#1E1514)!important}
/* Image search inside the hub: the staff PIN is retired (only the Master Admin and Admin edit), so its button is not shown */
html.in-hub[data-app="search"]:root:root:root #loginBtn{display:none!important}

/* ---------- hub side menu: white rounded panel, grouped apps, quiet line icons ---------- */
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .side:not(.rail){background:#fff!important;border:0!important;border-radius:22px;margin:14px 0 14px 14px;padding:14px 10px;top:70px;height:calc(100vh - 84px);box-shadow:0 2px 14px rgba(120,40,40,.06);scrollbar-width:thin}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .side .nav{min-height:38px;font-size:14.5px;font-weight:500;color:var(--cw-ink);border-left:0;padding:7px 12px}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .side .nav.on{box-shadow:none;font-weight:600}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .side .nav>svg{width:18px;height:18px;flex:none;color:var(--cw-text)}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .side .nav.on>svg{color:inherit}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) :is(.side,.drawer) .nav .ni{color:var(--cw-text)}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) :is(.side,.drawer) .nav.on .ni{color:inherit}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .navg{color:var(--cw-text)}
html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .navg:hover{background:var(--cw-chip)}
@media (max-width:860px){html[data-app="hub"]:root:root:root:not([data-theme="dark"]) .side:not(.rail){margin:8px;width:calc(100% - 16px);box-sizing:border-box;border-radius:16px;height:auto;padding:8px}}

/* ---------- search boxes: one box, not a box inside a box ---------- */
html:root:root:root:not([data-theme="dark"]) .searchbar{background:#fff!important;border:1px solid var(--cw-line)!important;border-radius:14px!important;box-shadow:none!important;overflow:hidden}
html:root:root:root:not([data-theme="dark"]) .searchbar:focus-within,html:root:root:root:not([data-theme="dark"]) label.search:focus-within{border-color:var(--cw-red)!important;box-shadow:0 0 0 3px var(--cw-red-tint)!important}
html:root:root:root:root:not([data-theme="dark"]) :is(.searchbar,label.search,.search) input{border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;border-radius:0!important}
html:root:root:root:not([data-theme="dark"]) .scopes button{border-radius:999px!important}
/* ---------- phones: rows of tabs wrap onto more lines instead of scrolling sideways ---------- */
@media (max-width:700px){
  /* an even grid, two buttons per row; a last odd one takes the full row, so nothing looks ragged */
  html:root:root:root .tabs,html:root:root:root nav.nav#nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:auto!important;max-width:none!important;overflow:visible!important;border-radius:18px!important;gap:6px!important}
  html:root:root:root .tabs>*,html:root:root:root nav.nav#nav>*{min-width:0;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;line-height:1.2;padding-left:8px!important;padding-right:8px!important;height:auto!important;min-height:40px}
  html:root:root:root .tabs>*:last-child:nth-child(odd),html:root:root:root nav.nav#nav>*:last-child:nth-child(odd){grid-column:1/-1}
  html:root:root:root header.top .wrap{flex-wrap:wrap}
  html.in-hub:root:root:root header.top .brand{flex:1 1 100%!important;min-width:0!important}
}

/* No swipe-down-to-refresh: pulling down at the top of a page no longer reloads it (use the refresh button in the top bar instead). */
html, body { overscroll-behavior-y: none; }
