/* Erbaviva portal on the Calibre OS layout (C 11/15/2026).
   Same structure as our Command Center; dressed in Erbaviva's wrapper colors (indigo, mustard, orange, red-orange) on their cream.
   Rules: deep indigo frame, mustard for "you are here" and primary actions, one brand color per tile, no bone grey. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Newsreader:opsz,wght@6..72,400;6..72,500&family=DM+Mono:wght@400;500&display=swap');
:root{
  --indigo:#5E6B4E;--indigo2:#6F7C5E;--deep:#2C332F;--deeper:#232925;--mustard:#D8762E;--yellow:#E8770F;--orange:#B5774F;--redor:#E07B39;--red:#9B5C6B;
  --cream:#F6F1E8;--cream2:#F3ECDF;--card:#FFFFFF;--line:#E7E0D4;--line2:#DAD2C4;--ink:#1F1C18;--fg2:#3D3833;--muted:#6E665C;
  --acc:var(--indigo);--accsoft:rgba(94,107,78,.08);--gold:var(--yellow);--r:14px}
html,body{background:var(--cream)!important;color:var(--ink);font-family:"DM Sans",-apple-system,sans-serif!important;font-feature-settings:"tnum" 1}
body:has(.side){padding-left:256px!important}
.top{display:none!important}

/* sidebar: deep indigo, mustard for where you are */
.side{position:fixed;left:0;top:0;bottom:0;width:256px;background:linear-gradient(180deg,var(--deep) 0%,var(--deeper) 100%);display:flex;flex-direction:column;padding:22px 14px 14px;overflow-y:auto;z-index:30;box-shadow:inset -1px 0 0 rgba(255,255,255,.06)}
.sbrand{display:flex;flex-direction:column;gap:6px;padding:0 10px 18px}.sbrand img{height:30px;width:auto;align-self:flex-start;}
.sbrand span{font-size:11.5px;font-weight:600;letter-spacing:.08em;color:var(--mustard)}
.slive{display:flex;align-items:center;gap:8px;font-size:12.5px;color:rgba(230,231,255,.7);padding:0 10px 16px}
.snav{display:flex;flex-direction:column;gap:2px}
.nv{display:flex;align-items:center;gap:11px;width:100%;border:0;background:none;border-radius:10px;padding:9px 12px;font:500 14.5px "DM Sans",sans-serif;color:#E2E6DB;text-align:left;transition:background .15s,color .15s}
.nv svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none;opacity:.85}
.nv:hover{background:rgba(255,255,255,.07);color:#fff}
.nv.on{background:rgba(216,118,46,.16);color:#fff;font-weight:600;box-shadow:inset 3px 0 0 var(--mustard)}.nv.on svg{color:var(--mustard);opacity:1}
.nsub{display:flex;flex-direction:column;gap:1px;margin:4px 0 8px 21px;padding-left:12px;border-left:1px solid rgba(255,255,255,.14)}
.side .tab{display:flex!important;align-items:center;justify-content:space-between;width:100%;background:none!important;border:0;border-radius:8px;padding:6px 10px!important;font:400 13.5px "DM Sans",sans-serif!important;color:rgba(217,219,247,.78)!important;text-align:left;box-shadow:none!important}
.side .tab:hover{background:rgba(255,255,255,.06)!important;color:#fff!important}.side .tab.on{color:var(--mustard)!important;font-weight:600!important;background:none!important}
.side .tab.hid{opacity:.55}.thid{font-size:10px;border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:0 6px;color:rgba(255,255,255,.7)}
.sacct{display:flex;align-items:center;gap:10px;border:0;background:rgba(255,255,255,.06);padding:10px;border-radius:12px;width:100%;text-align:left;margin-top:12px;color:#fff}
.sacct:hover{background:rgba(255,255,255,.1)}.sava{width:32px;height:32px;border-radius:9px;background:var(--mustard);color:var(--deeper);display:grid;place-items:center;font-weight:800}
.swho{flex:1;min-width:0}.swho b{display:block;font-size:14px}.swho small{font-size:12px;color:rgba(230,231,255,.65)}
.side .menu{position:fixed!important;left:16px!important;bottom:76px!important;top:auto!important;width:224px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px rgba(31,28,24,.22);z-index:80}
.foot{display:none!important}
main{max-width:1240px;margin:0 auto;padding:32px 36px 64px!important}

/* type */
.eyb,.kpi .band b,.kpi .lbl,.tsep,.xeyb{text-transform:none!important;letter-spacing:.01em!important;font-weight:600!important;font-size:12.5px!important}
.eyb{color:var(--orange)!important}
h1,h2,h3{font-family:"Iowan Old Style","Newsreader",Georgia,serif!important;font-weight:400!important;text-transform:none!important;letter-spacing:-.015em!important;color:var(--ink)}
.sech h2{font-size:19px!important;font-weight:700!important}.sech p{color:var(--muted)!important}

/* hero: indigo, refined (no stripes, no blobs), mustard highlights */
.hero{background:linear-gradient(135deg,var(--indigo) 0%,var(--deep) 70%)!important;color:#fff!important;border:0!important;border-radius:20px!important;box-shadow:0 18px 40px rgba(42,46,126,.22)!important}
.hero:after,.chead:after{display:none!important}
.hero:before{opacity:.5}
.hero h1{color:#fff!important;font-size:30px!important;font-weight:800!important}.hero p{color:#DCDDF7!important}.hero .eyb{color:var(--mustard)!important}
.hero .goal{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:16px!important}.hero .goal *{color:#fff}
.hero .goal .big{color:#fff!important}
.hpill{background:rgba(255,255,255,.1)!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important}.hpill b{color:var(--mustard)!important}

/* page headers: a clean title row with a mustard rule */
.chead{background:none!important;padding:0 0 14px!important;border-radius:0!important;margin-bottom:22px!important;border-bottom:2px solid var(--mustard)}
html body .chead h2,html body .chead h1{color:var(--ink)!important;font-size:28px!important;font-weight:800!important}
html body .chead p,html body .chead .sech p{color:var(--muted)!important;opacity:1}html body .chead .eyb{color:var(--orange)!important;opacity:1}
html body .chead .btn.ghost{border:1px solid var(--line2)!important}

/* cards */
.card{background:var(--card)!important;border:1px solid var(--line)!important;border-radius:var(--r)!important;box-shadow:0 1px 2px rgba(31,28,24,.04),0 8px 24px rgba(31,28,24,.04)!important}
.card h3{color:var(--deep)}

/* KPI tiles: white, one brand color each as a top rule, indigo numbers */
.kpi{border:1px solid var(--line)!important;background:#fff!important;border-radius:var(--r)!important;box-shadow:0 1px 2px rgba(31,28,24,.04)!important;border-top:4px solid var(--c)!important}
.kpi:hover{transform:translateY(-1px)!important;box-shadow:0 10px 24px rgba(31,28,24,.08)!important}
.kpi .band{background:none!important;color:var(--fg2)!important;padding:14px 16px 0!important}.kpi .band:after{display:none!important}.kpi .band b{color:var(--fg2)!important}
.kpi .bd{background:none!important;padding:6px 16px 14px!important}.kpi .val{font-size:28px!important;font-weight:800!important;color:var(--deep)!important}
.kpi.sel{box-shadow:0 0 0 2px var(--indigo)!important}
.scard .eyb{color:var(--orange)!important}.scard.big{background:linear-gradient(135deg,var(--indigo),var(--deep))!important;border:0!important}.scard.big p{color:#fff!important}.scard.big .eyb{color:var(--mustard)!important}

/* buttons, chips, segments */
.btn{border-radius:10px!important;letter-spacing:0!important;text-transform:none!important;font-weight:700!important}
.btn,.btn.gold{background:var(--mustard)!important;color:var(--deeper)!important}.btn:hover,.btn.gold:hover{background:var(--yellow)!important}
.btn.ghost{background:#fff!important;color:var(--deep)!important;border:1px solid var(--line2)!important}.btn.ghost:hover{border-color:var(--indigo)!important}
.chip{border-radius:999px}.chip.on{background:var(--indigo)!important;color:#fff!important}.chip.k{background:rgba(216,118,46,.18)!important;color:#7A5300!important}
.seg{background:#fff!important;border:1px solid var(--line)!important}.seg .on,.seg button.on{background:var(--indigo)!important;color:#fff!important}

/* tables */
table th,table.t th,table.t th:first-child{background:#F0F2EC!important;color:var(--indigo)!important;text-transform:none!important;letter-spacing:0!important;font-weight:700!important}
table.t td:first-child{background:#fff}

/* partners list */
.cr-bar input,.cr-bar select{width:auto!important;border-radius:10px!important;font-size:14px!important;padding:8px 10px!important;border:1px solid var(--line2)!important;background:#fff}.cr-bar #crq{flex:1;min-width:220px}
.cr-list,.cr-pane{border:1px solid var(--line)!important;border-radius:var(--r);overflow:hidden;background:#fff!important}
.cr-row.on{background:rgba(216,118,46,.12)!important;box-shadow:inset 3px 0 0 var(--mustard)}.cr-h{text-transform:none!important;letter-spacing:0!important;background:#F0F2EC!important;color:var(--indigo)!important}
.cr-stats div{background:#F0F2EC!important;border-radius:10px}.cr-stats b{color:var(--deep)}
input:focus,textarea:focus,select:focus{border-color:var(--indigo)!important;box-shadow:0 0 0 3px rgba(94,107,78,.15)!important}


/* ---- Unslop pass (C 11/15/2026): Stripe / Shopify / cal.com data cards ---- */
/* stat tiles: one panel, hairline dividers, label > number > target. No badges, fake sparklines, color stripes or source footers. */
.grid:has(> .kpi){gap:0!important;background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:0 1px 2px rgba(31,28,24,.04)}
.grid > .kpi{border:0!important;border-radius:0!important;box-shadow:none!important;border-right:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;margin:0 -1px -1px 0}
.grid > .kpi:hover{background:#FBFAFE!important;transform:none!important;box-shadow:none!important}
.kpi .band .chip,.kpi svg,.kpi .src{display:none!important}
.kpi .band{padding:18px 20px 0!important}.kpi .band b{font-size:13px!important;font-weight:500!important;color:var(--muted)!important}
.kpi .bd{padding:6px 20px 18px!important;gap:4px!important}.kpi .val{font-size:26px!important;font-weight:600!important;color:var(--ink)!important;letter-spacing:-.02em}
.kpi .tgt{font-size:13px!important;color:var(--muted)!important}.kpi .tgt b{color:var(--indigo);font-weight:600}
.kpi.sel{box-shadow:inset 0 -2px 0 var(--mustard)!important}
/* headings: hierarchy from size, not weight 800; no subtitles that restate the title */
.sech h2{font-size:17px!important;font-weight:600!important}.sech > div > p,.sech > p{display:none!important}
html body .chead h2,html body .chead h1{font-weight:600!important;font-size:26px!important}
.hero h1{font-weight:600!important}.kpi .val,.hero .goal .big{font-variant-numeric:tabular-nums}
/* banner: keep the brand indigo, drop the pill row and the glow */
.hero .meta{display:none!important}.hero:before{display:none!important}
.hero{box-shadow:none!important}
/* one depth cue per surface */
.card{box-shadow:none!important}
/* sidebar brand: logo only */
.sbrand{padding:2px 12px 22px}.sbrand img{height:28px}
/* settings */
.setw{display:grid;grid-template-columns:200px minmax(0,1fr);gap:32px;align-items:start}
.setnav{display:flex;flex-direction:column;gap:2px}.setnav button{text-align:left;border:0;background:none;padding:8px 12px;border-radius:8px;font:500 14px "DM Sans",sans-serif;color:var(--fg2)}.setnav button:hover{background:#fff}.setnav button.on{background:#fff;color:var(--ink);box-shadow:inset 3px 0 0 var(--mustard)}
.sethead h3{font-size:18px;font-weight:600;margin:0}.sethead p{color:var(--muted);margin:4px 0 16px}
.setlist{padding:0!important}.setrow{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;align-items:center;padding:16px 20px;border-top:1px solid var(--line)}.setrow:first-child{border-top:0}
.setrow b,.setlink b{display:block;font-weight:600}.setrow small,.setlink small{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.setlink{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:16px}
@media(max-width:860px){.setw{grid-template-columns:1fr}.setnav{flex-direction:row}}
a.btn{text-decoration:none!important}
.hero{padding:28px 32px!important;align-items:center!important;grid-template-columns:minmax(0,1fr) minmax(0,440px)!important;gap:32px!important}
.hero h1{font-size:34px!important;line-height:1.1!important;margin:6px 0 10px!important}

.ask-ctx{margin:6px 0 0;font-size:14px;color:var(--fg2);white-space:pre-line}.ask-atts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.ask-att{font-size:13px;padding:4px 10px;border:1px solid var(--line2);border-radius:8px;text-decoration:none;color:var(--indigo);background:#fff}.ask-att:hover{border-color:var(--indigo)}
.sethead{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:8px}.sethead #setq{width:240px!important;border-radius:10px}
.setg{font-size:13px;font-weight:600;color:var(--muted);margin:18px 0 8px}.setrow{grid-template-columns:32px minmax(0,1fr) auto auto!important}.setlogo{width:28px;height:28px;object-fit:contain;border-radius:6px}

/* sidebar lockup + footer (C 11/15/2026) */
.sbrand{flex-direction:row!important;align-items:center;gap:10px}.sbrand .sos{font:700 26px/1 "DM Sans",sans-serif;color:#fff;letter-spacing:.02em;padding-left:10px;border-left:1px solid rgba(255,255,255,.3)}
.sfoot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 10px 2px;font-size:12px;color:rgba(230,231,255,.6)}.sfoot b{color:#fff;font-weight:600}.sfoot a{color:rgba(230,231,255,.75);text-decoration:none}.sfoot a:hover{color:#fff}
/* people */
.pcard{display:flex!important;gap:14px;align-items:center}.pav{width:56px;height:56px;border-radius:50%;object-fit:cover;flex:none}.pini{display:grid;place-items:center;background:var(--indigo);color:#fff;font-weight:700;font-size:20px}
/* overview banner condensed: one quiet header row, the target becomes one line with its progress */
.hero{background:none!important;color:var(--ink)!important;border:0!important;border-radius:0!important;padding:0 0 18px!important;box-shadow:none!important;border-bottom:1px solid var(--line)!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important}
.hero h1{color:var(--ink)!important;font-size:28px!important;margin:4px 0 6px!important}.hero p{color:var(--muted)!important}.hero .eyb{color:var(--orange)!important}
.hero .goal{background:#fff!important;border:1px solid var(--line)!important;border-radius:12px!important;padding:14px 18px!important;min-width:320px}.hero .goal *{color:var(--ink)}
.hero .goal .eyb{color:var(--muted)!important;font-size:12px!important}.hero .goal .big{font-size:22px!important;font-weight:600!important;color:var(--deep)!important;margin:2px 0!important}
.hero .goal .of{font-size:13px;color:var(--muted)!important}.hero .goal .row3{display:none!important}.hero .goal .pbar{height:6px!important;margin:8px 0 0!important;background:var(--cream2)!important}.hero .goal .pbar i{background:var(--mustard)!important}
.hero .goal .btn{margin-top:10px!important}
.pcard img.pav,.pcard .pav{width:56px!important;height:56px!important;max-width:56px!important;border-radius:50%!important;object-fit:cover!important;flex:0 0 56px!important}.pcard .pini{color:#fff!important}
html body .hero .goal .of b{color:var(--ink)!important}
.hero{align-items:center!important}

/* interactive charts */
.cint{position:relative}.chit{cursor:pointer}.chit.on,.chit:hover{fill:rgba(94,107,78,.06)}
.ctip{position:absolute;z-index:5;min-width:180px;background:#fff;border:1px solid var(--line2);border-radius:10px;padding:10px 12px;box-shadow:0 10px 24px rgba(31,28,24,.12);font-size:13px;pointer-events:none}
.ct-h{font-weight:600;margin-bottom:6px;color:var(--ink)}.ct-r{display:flex;justify-content:space-between;gap:16px;color:var(--muted)}.ct-r b{color:var(--ink);font-variant-numeric:tabular-nums}
.ct-g{margin-top:4px;font-weight:600}.ct-g.up{color:#13795b}.ct-g.dn{color:#b42318}.ct-k{margin-top:6px;padding-top:6px;border-top:1px solid var(--line);color:var(--indigo)}
.legend i[style*="repeating-linear-gradient"]{background:var(--indigo)!important;height:2px!important}

/* ---- page review pass (C 11/15/2026) ---- */
/* headers say it once: title + one line; no eyebrow above every title */
html body .chead .eyb{display:none!important}
html body .chead{margin-bottom:18px!important;padding-bottom:12px!important}
/* empty numbers read as a quiet state, not a shouted value */
.kpi .val.na{font-size:26px!important;font-weight:600!important}.kpi .val.na.nc{font-size:15px!important;font-weight:500!important;color:var(--muted)!important}
/* charts: no faded gradient wash under lines */
.chart svg path[fill^="url("]{opacity:.18}
/* ABES: product page, not a billboard */
.th-email h1,.abx h1{font-size:30px!important;line-height:1.15!important}
/* calendar and documents chips: calmer */
.chip{font-weight:500!important}
html body .ab-h1{font-size:34px!important;line-height:1.12!important;letter-spacing:-.02em!important}

/* Partners parity with Calibre OS (C 11/15/2026) */
.cr-pt{display:flex!important;gap:0!important;border-bottom:1px solid var(--line);margin:4px 0 16px!important}
.crtab{border:0;background:none;font:500 14px "DM Sans",sans-serif;color:var(--muted);padding:10px 16px;border-bottom:2px solid transparent;margin-bottom:-1px}.crtab span{opacity:.7;margin-left:4px}
.crtab:hover{color:var(--ink)}.crtab.on{color:var(--ink);font-weight:600;border-bottom-color:var(--mustard)}
.cr-bar{display:grid!important;grid-template-columns:minmax(220px,2fr) repeat(5,minmax(120px,1fr));gap:8px!important}.cr-bar input,.cr-bar select{width:100%!important;height:38px;border-radius:8px!important}
.cr-grid.closed{grid-template-columns:minmax(0,1fr)!important}.cr-grid.closed .cr-pane{display:none!important}
.cr-pane{position:sticky!important}.cr-x{position:absolute;top:10px;right:10px;width:30px;height:30px;border:0;border-radius:8px;background:none;font-size:20px;color:var(--muted);cursor:pointer;z-index:2}.cr-x:hover{background:var(--cream2);color:var(--ink)}
@media(max-width:1200px){.cr-bar{grid-template-columns:repeat(3,minmax(0,1fr))!important}}

/* holiday countdown */
html body .hero h1.cdh{display:flex!important;align-items:baseline;gap:18px;flex-wrap:wrap;font-size:26px!important}
.cd{display:inline-flex;gap:8px}.cdu{display:inline-flex;flex-direction:column;align-items:center;min-width:64px;padding:8px 10px;background:#fff;border:1px solid var(--line);border-radius:10px;font-size:11px;font-weight:500;color:var(--muted);letter-spacing:0}
.cdu b{font-size:28px;font-weight:600;color:var(--deep);font-variant-numeric:tabular-nums;line-height:1.1}.cdu:first-child b{color:var(--orange)}
.cd-today{color:var(--orange)}

/* overview header: bigger context line, alerts instead of the target card (C 11/15/2026) */
html body .hero > div:first-child > .eyb{font-size:15px!important;font-weight:600!important;color:var(--orange)!important}
.alerts{display:flex;flex-direction:column;gap:6px;min-width:300px}.al-h{font-size:13px;font-weight:600;color:var(--muted);margin-bottom:2px}
.al{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-left:3px solid var(--orange);border-radius:10px;padding:10px 14px;font:500 14px "DM Sans",sans-serif;color:var(--fg2);cursor:pointer}
.al b{font-size:18px;color:var(--deep);min-width:22px}.al span{margin-left:auto;color:var(--muted)}.al:hover{border-color:var(--orange)}

/* Settings > Team */
.tm-row{grid-template-columns:36px minmax(0,1fr) auto auto!important}.tm-ava{width:34px;height:34px;border-radius:50%;background:var(--indigo);color:#fff;display:grid;place-items:center;font-weight:700}
.tm-row select{width:auto!important;border-radius:8px!important;height:34px;padding:4px 8px!important}
.tm-add{margin-top:16px}.tm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tm-grid input,.tm-grid select{border-radius:8px!important}
.tm-areas{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:12px 0;font-size:14px}.tm-areas input{width:auto!important;margin-right:4px}

/* night mode (portal) */

/* countdown urgency (red) */
.cdu{border-color:#F2C2C2!important}.cdu:first-child{background:#D92D20!important;border-color:#D92D20!important;color:#FFE4E1!important}.cdu:first-child b{color:#fff!important}
.cd-name{color:#B42318!important;display:inline-flex;align-items:center;gap:10px}.cd-name::before{content:"";width:9px;height:9px;border-radius:50%;background:#D92D20;animation:cdp 1.6s infinite}
@keyframes cdp{0%{box-shadow:0 0 0 0 rgba(217,45,32,.5)}70%{box-shadow:0 0 0 8px rgba(217,45,32,0)}100%{box-shadow:0 0 0 0 rgba(217,45,32,0)}}

/* phones (C 11/15/2026): fixed header with menu + page name; sidebar slides in from the left; no sideways wiggle */
#mtop,#mscrim{display:none}
@media(max-width:980px){
 html,body{overflow-x:hidden;max-width:100%}
 body:has(.side){padding-left:0!important}
 #mtop{display:flex;align-items:center;gap:12px;position:fixed;top:0;left:0;right:0;height:56px;padding:0 14px;z-index:60;background:linear-gradient(135deg,var(--indigo),var(--deep));color:#fff}
 #mtop img{height:20px}#mtop b{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:10px;border-left:1px solid rgba(255,255,255,.3)}
 #mburger{width:40px;height:40px;border-radius:10px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center;flex:none}
 .side{position:fixed!important;top:0;bottom:0;left:0;width:280px!important;transform:translateX(-100%);transition:transform .25s ease;z-index:70}
 body.navopen .side{transform:none;box-shadow:8px 0 24px rgba(0,0,0,.3)}
 body.navopen #mscrim{display:block;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:65}
 main{padding:72px 14px 40px!important}
 .grid.g4,.g4{grid-template-columns:repeat(2,minmax(0,1fr))!important}.g2,.g3,.g21,.cr-grid,.setw,.tm-grid{grid-template-columns:1fr!important}
 .hero{grid-template-columns:1fr!important}.alerts{min-width:0}
 .cdu{min-width:0!important;flex:1}.cd{width:100%}html body .hero h1.cdh{font-size:22px!important}
 table{display:block;overflow-x:auto}.cr-row{grid-template-columns:40px minmax(0,1fr) 70px!important}.cr-row>:nth-child(n+4){display:none}
 .cr-bar{grid-template-columns:1fr 1fr!important}.setrow{grid-template-columns:28px minmax(0,1fr) auto!important}.setrow>:nth-child(3){display:none}
}

/* ---- Night mode, real dark theme (C 11/15/2026): satin matte black, crisp white type, brand colors as accents ---- */
html.night{--cream:#0B0B0C;--cream2:#1C1C20;--card:#141416;--line:#26262B;--line2:#323238;--ink:#F2F2F4;--fg2:#C9C9CF;--muted:#9898A2;--bg:#0B0B0C}
html.night body,html.night main{background:#0B0B0C!important;color:#F2F2F4}
html.night h1,html.night h2,html.night h3,html.night h4,html.night b,html.night strong{color:#F2F2F4}
html.night .card,html.night .kpi,html.night .grid:has(> .kpi),html.night .cr-list,html.night .cr-pane,html.night .setlist,html.night .al,html.night .cdu,html.night .ctip,html.night .tm-add,html.night .card.setlink{background:#141416!important;border-color:#26262B!important;color:#F2F2F4}
html.night .grid > .kpi:hover,html.night .cr-row:hover{background:#1A1A1E!important}
html.night .kpi .val,html.night .kpi .val.na:not(.nc),html.night .cdu b,html.night .hero .goal .big{color:#FFFFFF!important}
html.night .kpi .tgt b,html.night .al b{color:#C9D1BF!important}
html.night .note,html.night small,html.night .muted,html.night .kpi .band b,html.night .sech p,html.night .chead p,html.night .cr-s{color:#9898A2!important}
html.night .hero{border-color:#26262B!important}html.night .hero h1,html.night .hero p{color:#F2F2F4!important}
html.night .chead{border-bottom-color:var(--mustard)!important}
html.night input,html.night select,html.night textarea{background:#18181B!important;color:#F2F2F4!important;border-color:#2E2E34!important}
html.night table th,html.night table.t th,html.night .cr-h{background:#1A1A1E!important;color:#C9D1BF!important}
html.night table td,html.night table.t td:first-child{background:transparent!important;color:#E4E4E8;border-color:#26262B!important}
html.night .btn.ghost,html.night .chip,html.night .ask-att,html.night .crtab{background:#18181B!important;color:#F2F2F4!important;border-color:#2E2E34!important}
html.night .crtab.on{border-bottom-color:var(--mustard)!important}
html.night .item{border-color:#26262B!important}html.night .seg{background:#141416!important}
html.night .cr-row.on{background:rgba(216,118,46,.10)!important}html.night .cr-stats div{background:#1A1A1E!important}
html.night .side{background:linear-gradient(180deg,#121214 0%,#0B0B0C 100%)!important;box-shadow:inset -1px 0 0 #222226}
html.night #mtop{background:#0B0B0C!important;border-bottom:1px solid #222226}
html.night .chart svg text{fill:#9898A2}html.night .chart svg line{stroke:#26262B}
html.night .cdu:first-child{background:#D92D20!important;border-color:#D92D20!important}html.night .cdu:first-child b{color:#fff!important}

/* Inbox: fills the screen, team chat + private messages + @mentions (C 11/15/2026) */
.ibx{display:grid;grid-template-columns:240px minmax(0,1fr);gap:0;height:calc(100vh - 210px);min-height:420px;background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.ibx-side{border-right:1px solid var(--line);padding:10px;overflow:auto;background:#FBFAFE}
.ibx-it{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;text-align:left;padding:8px 10px;border-radius:8px;font:500 14px "DM Sans",sans-serif;color:var(--fg2)}
.ibx-it:hover{background:#F0F2EC}.ibx-it.on{background:rgba(216,118,46,.16);color:var(--ink);box-shadow:inset 3px 0 0 var(--mustard)}
.ibx-av{width:26px;height:26px;border-radius:50%;background:var(--indigo);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}.ibx-team{background:var(--mustard);color:var(--deep)}
.ibx-n{margin-left:auto;background:var(--orange);color:#fff;font-size:11px;border-radius:999px;padding:0 7px}
.ibx-lbl{font-size:12px;font-weight:600;color:var(--muted);margin:14px 10px 6px}
.ibx-main{display:flex;flex-direction:column;min-width:0}.ibx-head{padding:14px 18px;border-bottom:1px solid var(--line);font-weight:600}.ibx-head .note{font-weight:400;margin-left:8px}
.ibx-list{flex:1;overflow:auto;padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.ibx-m{max-width:78%;background:#F3F1F8;padding:9px 12px;border-radius:12px;white-space:pre-wrap}.ibx-m.mine{align-self:flex-end;background:rgba(216,118,46,.22)}
.ibx-at{color:var(--indigo)}
.ibx-comp{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line)}.ibx-comp textarea{flex:1;resize:none;min-height:46px;border-radius:10px!important}
@media(max-width:980px){.ibx{grid-template-columns:1fr;height:calc(100vh - 150px)}.ibx-side{display:flex;gap:6px;overflow-x:auto;border-right:0;border-bottom:1px solid var(--line);padding:8px}.ibx-lbl{display:none}.ibx-it{width:auto;white-space:nowrap}}

/* Day mode (neutral Calibre look: bone white, black text, platinum) */
html.day{--cream:#F6F5F2;--cream2:#ECEBE7;--card:#FFFFFF;--line:#E4E3DF;--line2:#D3D2CD;--ink:#141414;--fg2:#3A3936;--muted:#75746F;--indigo:#141414;--deep:#141414;--acc:#141414;--mustard:#A3A8AF}
html.day body,html.day main{background:#F6F5F2!important}
html.day .side{background:#FAFAF7!important;box-shadow:inset -1px 0 0 #E4E3DF}html.day .side *{color:#141414}
html.day .nv.on{background:linear-gradient(135deg,#F4F5F7,#C9CDD3 40%,#EEF0F2 60%,#B4B9C0)!important;box-shadow:none}html.day .nv.on svg{color:#141414}
html.day .side .tab.on{color:#141414!important;font-weight:600!important}html.day .sbrand img{filter:invert(1)}html.day .sbrand .sos{color:#141414;border-color:#D3D2CD}
html.day .btn,html.day .btn.gold{background:#141414!important;color:#fff!important}html.day .sava{background:#141414;color:#fff}html.day .sfoot,html.day .sfoot b,html.day .sfoot a{color:#75746F!important}
html.day .eyb{color:#75746F!important}html.day .chead{border-bottom-color:#C9CDD3!important}html.day .kpi .val{color:#141414!important}
html.day #mtop{background:#141414!important}
/* Appearance settings */
.lk-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.lk-m{border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px;text-align:left;cursor:pointer;display:grid;gap:4px}.lk-m.on{border-color:var(--mustard);box-shadow:0 0 0 2px var(--mustard)}
.lk-m small{color:var(--muted)}.lk-sw{height:44px;border-radius:8px;display:block;margin-bottom:6px}.lk-brand{background:linear-gradient(135deg,#2C332F 55%,#D8762E 55%)}.lk-day{background:linear-gradient(135deg,#F6F5F2 55%,#C9CDD3 55%);border:1px solid #E4E3DF}.lk-night{background:linear-gradient(135deg,#0B0B0C 55%,#3A3A40 55%)}
.lk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-bottom:12px}.lk-row{display:flex;gap:10px;align-items:center}.lk-row input[type=color]{width:44px!important;height:44px;padding:2px!important;border-radius:8px!important}.lk-row span{display:grid;gap:2px}.lk-hex{width:110px!important;padding:6px 8px!important;font-family:monospace}
.nbadge{margin-left:auto;background:var(--orange);color:#fff;font-size:11px;font-weight:700;border-radius:999px;padding:1px 7px}
.pushask{position:fixed;right:20px;bottom:20px;z-index:90;max-width:340px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;box-shadow:0 16px 40px rgba(31,28,24,.18);display:grid;gap:6px}.pushask span{font-size:14px;color:var(--muted)}.pushask div{display:flex;gap:8px;margin-top:6px}@media(max-width:980px){.pushask{left:12px;right:12px;bottom:12px;max-width:none}}
/* phone layout pass (C 11/16/2026, same as Calibre OS): tab rows scroll on one line, words never break mid-word, the menu never wraps sideways */
.side{flex-wrap:nowrap!important}.side>*{flex-shrink:0}
.seg button,.filters button,.chips button,.seg a,.btn,button.tab{white-space:nowrap}
@media(max-width:860px){
 .seg,.filters,.chips{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 .seg::-webkit-scrollbar,.filters::-webkit-scrollbar,.chips::-webkit-scrollbar{display:none}
 .seg>*,.filters>*,.chips>*{flex:0 0 auto}
 h1{font-size:26px!important;line-height:1.15!important;word-break:normal;overflow-wrap:normal}
 h2{font-size:20px!important}
 table{display:block;overflow-x:auto;max-width:100%}
 html,body{overflow-x:hidden}
}
/* Brand Setup questionnaire (11/16/2026) */
.bq-prog{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 16px}.bq-prog i{flex:1 1 160px;height:8px;border-radius:99px;background:var(--line);overflow:hidden}.bq-prog i b{display:block;height:100%;background:var(--mustard,#D8762E);border-radius:99px}.bq-prog small{color:var(--fg2);font-size:12.5px}
.bq-sec{margin-bottom:16px}.bq-sec h2{margin:0 0 6px}.bq-q{padding:14px 0;border-top:1px solid var(--line)}.bq-q:first-of-type{border-top:0}
.bq-l{display:block;font-weight:600;font-size:15px;margin-bottom:4px}.bq-h{font-size:13px;color:var(--fg2);margin-bottom:6px}
.bq-q input:not([type=radio]):not([type=checkbox]):not([type=color]),.bq-q textarea{width:100%;box-sizing:border-box}
.bq-st{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.bq-chip{border:1px solid var(--line);background:transparent;color:var(--fg2);border-radius:99px;padding:5px 11px;font-size:12.5px;cursor:pointer;white-space:nowrap}.bq-chip.on{background:var(--mustard,#D8762E);border-color:var(--mustard,#D8762E);color:#141414;font-weight:600}
.bq-q.has-s input,.bq-q.has-s textarea{opacity:.65}
.bq-opts{display:flex;flex-direction:column;gap:6px}.bq-opt{display:flex;align-items:center;gap:8px;font-size:14px}.bq-opt input{width:auto}
.bq-links{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}.bq-link span{display:block;font-size:12.5px;color:var(--fg2);margin-bottom:3px}
.bq-colors{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.bq-col{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:10px;padding:4px 6px}.bq-col input[type=color]{width:34px;height:30px;border:0;padding:0;background:none}.bq-hex{width:90px!important}.bq-col button{border:0;background:none;color:var(--fg2);font-size:16px;cursor:pointer}
.bq-done{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.bq-nudge{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;border-left:3px solid var(--mustard,#D8762E)}.bq-nudge span{display:block;font-size:13.5px;color:var(--fg2)}
/* client-side phone fit (C 11/16/2026): countdown + hero never exceed the screen, page never slides sideways */
@media(max-width:980px){
 html,body{overflow-x:clip!important;max-width:100vw;position:relative}
 main,.hero,.hero>*,.grid>*,.card,.kpi{min-width:0;max-width:100%}
 html body .hero h1.cdh{display:flex!important;flex-direction:column;align-items:flex-start;gap:10px;font-size:20px!important;line-height:1.2!important;width:100%;min-width:0}
 .cd{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%;max-width:100%}
 .cdu{min-width:0!important;width:100%;padding:8px 2px!important;font-size:10px!important;box-sizing:border-box}
 .cdu b{font-size:clamp(18px,6.4vw,26px)!important}
 .cd-name{flex-wrap:wrap}
 img,svg,video,iframe,pre{max-width:100%}
 .tw,.fcw,.rgw{max-width:100%}
}
/* People v2 + Team Audit (C, 11/16/2026) */
.pp-side{font-size:15px;margin:18px 0 10px;color:var(--ink,#1F1C18)}.pp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.pp-acts{display:flex;gap:14px;margin-top:6px}.pp-link{border:0;background:none;padding:0;font:inherit;font-size:13px;color:var(--deep,#3F4A35);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.pcard .pav{width:52px;height:52px;border-radius:50%;object-fit:cover;flex:none}
.ta-lead{font-size:15px;color:var(--muted,#555);max-width:820px;margin:0 0 14px;line-height:1.55}
.ta-stats{display:flex;flex-wrap:wrap;gap:18px;align-items:baseline;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:14px;font-size:14px}.ta-stats b{font-size:20px;margin-right:4px}.ta-stats small{margin-left:auto;color:var(--muted,#666)}
.ta-tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:16px}.ta-tabs button{border:0;background:none;font:inherit;font-size:15px;padding:8px 12px;color:var(--muted,#555);border-bottom:2px solid transparent;cursor:pointer}.ta-tabs button.on{color:var(--ink,#111);border-bottom-color:var(--deep,#3F4A35);font-weight:600}
.ta-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.ta-f{display:flex;flex-direction:column;gap:6px;font-size:13.5px;font-weight:600;color:var(--ink,#222)}.ta-f input,.ta-f select,.ta-f textarea{font:inherit;font-weight:400;font-size:15px;width:100%;box-sizing:border-box}
.ta-card{border:1px solid var(--line);border-radius:10px;padding:0 14px;margin-bottom:10px;background:#fff}.ta-card.open{padding:14px}
.ta-ch{display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;font:inherit;text-align:left;padding:14px 0;cursor:pointer}.ta-card.open .ta-ch{padding-top:0}.ta-ch b{font-size:15.5px}.ta-ch span{color:var(--muted,#666);font-size:14px}
.ta-tag{margin-left:auto;font-style:normal;font-size:12.5px;font-weight:600;border-radius:99px;padding:2px 10px;background:#EEF0F6;color:#3F4A35}.ta-tag.r{background:#FDECEA;color:#B42318}.ta-tag.a{background:#E8F3EC;color:#1A7F37}
.ta-q{font-size:13.5px;font-weight:600;margin:14px 0 6px}.ta-pills{display:flex;flex-wrap:wrap;gap:8px}.ta-pill{border:1px solid var(--line);background:#fff;border-radius:99px;padding:6px 14px;font:inherit;font-size:14px;cursor:pointer}.ta-pill.on{background:var(--deep,#3F4A35);color:#fff;border-color:var(--deep,#3F4A35)}
.ta-rm{text-align:right;margin-top:10px}.ta-add{display:flex;gap:10px;margin:12px 0 4px;flex-wrap:wrap}.ta-done{margin-top:18px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}.ta-done p{margin:0;flex:1}
@media(max-width:700px){.ta-grid{grid-template-columns:1fr}.ta-stats small{margin-left:0;width:100%}.pp-grid{grid-template-columns:1fr}}
.pp-grid .pcard{display:flex;gap:14px;align-items:center;text-align:left}.pp-grid .pcard .note{text-align:left}.pp-acts{white-space:nowrap}
/* Strategy v2 (C, 11/16/2026) */
.st-meta{font-size:13px;color:var(--muted,#666);margin:-4px 0 12px}.st-card{margin-bottom:12px}.st-h{display:flex;align-items:center;gap:12px;margin-bottom:6px}.st-h h3{margin:0;font-size:15px}.st-h .pp-link{margin-left:auto}
.st-card p{margin:0;line-height:1.55}.st-card textarea{width:100%;font:inherit;font-size:15px;box-sizing:border-box}.st-act{display:flex;gap:8px;align-items:center;margin-top:10px}
.st-sub{font-size:15px;margin:22px 0 10px}.st-aud{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.st-aud .st-card{margin:0}
/* C 11/16/2026: the logo is a Home button */
button.sbrand{background:none;border:0;cursor:pointer;font:inherit;color:inherit;text-align:left;width:100%}
button.mlogo{background:none;border:0;padding:0;cursor:pointer;display:flex;align-items:center}
/* People cards (C 11/16/2026): same compact size for everyone */
.pp-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(180px,210px))!important;grid-auto-rows:1fr;gap:12px!important;justify-content:start}
.ppc{display:flex;flex-direction:column;align-items:center;text-align:center;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:10px;padding:16px 12px 14px;min-width:0}
.ppc-ph{width:84px;height:84px;border-radius:50%;object-fit:cover;flex:none;margin-bottom:10px;display:block}
.ppc-ini{display:grid;place-items:center;background:var(--indigo,#5E6B4E);color:#fff;font-weight:700;font-size:28px}
.ppc-n{font-size:15px;line-height:1.25;color:var(--ink,#1F1C18)}.ppc-r{font-size:12.5px;color:var(--muted,#666);margin-top:3px;line-height:1.3}
.ppc-e{font-size:12px;color:var(--muted,#666);margin-top:4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ppc-acts{display:flex;gap:12px;justify-content:center;margin-top:8px;padding-top:8px;border-top:1px solid rgba(0,0,0,.08);width:100%}
@media(max-width:700px){.pp-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ppc-ph{width:72px;height:72px}}
.ppc-t{display:flex;flex-direction:column;align-items:center;min-width:0;max-width:100%;margin-bottom:10px}.ppc-acts{margin-top:auto!important}
/* What the Team Sees (Settings, admins) */
.vs-list{padding:0!important;overflow:hidden}.vs-row{display:flex;align-items:center;gap:12px;width:100%;border:0;border-bottom:1px solid var(--line);background:none;padding:13px 18px;font:inherit;font-size:14px;color:var(--ink);cursor:pointer;text-align:left}
.vs-row:last-child{border-bottom:0}.vs-row span{flex:1;font-weight:600}.vs-row em{font-style:normal;font-size:12.5px;color:var(--muted)}
.vs-sw{flex:none;width:36px;height:20px;border-radius:10px;background:#D4D4D8;position:relative;transition:background .15s}.vs-sw::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .15s;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.vs-sw.on{background:var(--mustard)}.vs-sw.on::after{left:18px}
/* Night mode (C 11/16/2026): readable active states, brand yellow for what's selected */
html.night .setnav button{color:#C9C9CF}html.night .setnav button:hover{background:#1A1A1E;color:#F2F2F4}
html.night .setnav button.on{background:rgba(216,118,46,.14)!important;color:#F2F2F4!important;box-shadow:inset 3px 0 0 var(--mustard)}
html.night .pp-link,html.night a.pp-link{color:var(--mustard)!important}html.night .ppc{background:#141416;border-color:#26262B}html.night .ppc-acts{border-top-color:#26262B}
html.night .vs-row{color:#F2F2F4;border-bottom-color:#26262B}html.night .vs-sw{background:#3F3F46}
html.night .chip.on,html.night .seg button.on,html.night .crtab.on{background:rgba(216,118,46,.16)!important;color:#F2F2F4!important;border-color:var(--mustard)!important}
html.night .nsub .tab.on{color:var(--mustard)!important}html.night a{color:#C9D1BF}html.night .btn.gold{background:var(--mustard)!important;color:#111!important}
/* Night mode pass 2 (C 11/16/2026) */
html.night .lk-m{background:#141416!important;border-color:#2E2E34!important;color:#F2F2F4!important}html.night .lk-m b,html.night .lk-m span{color:#F2F2F4!important}html.night .lk-m small{color:#9898A2!important}
html.night .lk-m.on{border-color:var(--mustard)!important;box-shadow:0 0 0 2px var(--mustard)!important;background:rgba(216,118,46,.08)!important}
html.night .vs-sw.on{background:var(--mustard)}html.night .vs-row em{color:#9898A2}
