/* ============================================================================
   COEXA AURA look for Sales HQ (2026-11-20). Loaded LAST so it wins over every
   other sheet. Joe's decisions: references 1 to 7, directions A (Orb Instrument)
   and C (Ring Index), Swiss Grotesk (Geist), rounded frosted glass, the Coexa orb.
   Tokens only change colour and type for the whole app; the few hard coded dark
   values in the older sheets are fixed at the end. Source of the system:
   coexa-studios/brand/aura/REFERENCE-STUDY.md, mocks/v2/aura/aura-skin.css.
   No behaviour, markup or script logic is touched here.
   ========================================================================== */
:root, html[data-design="v3"]{
  /* style.css palette */
  --bg:#F2F2F0; --panel:rgba(255,255,255,.52); --panel-2:rgba(255,255,255,.72);
  --line:rgba(18,21,28,.13); --line-strong:#8B8E98;
  --text:#12151C; --muted:#3F424D;
  --accent:#B8165D; --accent-soft:rgba(184,22,93,.08); --accent-strong:#12151C;
  --green:#0b6b3c; --yellow:#7d5004; --blue:#1648a8; --violet:#5a37c4; --red:#B8165D; --gray:#464B59;
  --radius:18px;
  /* v3 tokens */
  --bg-0:transparent; --bg-1:rgba(255,255,255,.76); --bg-2:rgba(255,255,255,.68); --bg-3:rgba(18,21,28,.05); --bg-4:rgba(18,21,28,.10);
  --line-1:rgba(18,21,28,.09); --line-2:rgba(18,21,28,.16); --line-3:rgba(18,21,28,.34);
  --ink-0:#12151C; --ink-1:#363942; --ink-2:#3F424D; --ink-3:#565A67;
  --ruby:#B8165D; --ruby-soft:rgba(184,22,93,.34); --ruby-wash:rgba(184,22,93,.07);
  --hot:#0b6b3c; --warm:#7d5004; --cold:#4a4d58;
  --stage-new:#6a6a78; --stage-qualified:#1648a8; --stage-pitched:#5a37c4; --stage-booked:#0b6b3c;
  --font-ui:'Geist',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; --font-display:var(--font-ui); --font-mono:var(--font-ui);
  --r-14:16px; --r-18:20px;
  --v3-card-bg:rgba(255,255,255,.76); --v3-card-border:rgba(255,255,255,.8);
  --v3-card-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 2px 4px rgba(28,39,64,.04),0 36px 60px -34px rgba(40,52,100,.42);
  --v3-glow-hot:0 0 0 1px rgba(15,122,69,.5); --v3-glow-ruby:0 0 0 1px rgba(184,22,93,.55);
  --aura-glass:blur(24px) saturate(1.45);
}
html,body{color-scheme:light}
html[data-design="v3"] body,body{
  background:radial-gradient(1200px 800px at 70% 30%,#F8F8F6,#F0F0EE 60%,#E8EBEB) fixed;
  color:var(--text);font-family:var(--font-ui);font-variant-numeric:tabular-nums;
}
html[data-design="v3"] body::before{opacity:1;mix-blend-mode:normal;background-image:url(../img/aura-grain.png);background-size:240px 240px}
body::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;background:repeating-linear-gradient(115deg,transparent 0 118px,rgba(18,21,28,.03) 118px 119px)}
button,input,select,textarea{font-family:inherit}
.num,.mono,code,kbd,.f-mono{font-family:var(--font-ui)}

/* ---- ONE light object per page, behind everything (aura.js picks it per tab) ---- */
.aura-art{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.aura-art>img{position:absolute;display:block;max-width:none;height:auto;user-select:none}
#root,html[data-design="v3"] #root{position:relative;z-index:1}

/* ---- the orb mark + brand (aura.js swaps the markup) ---- */
.brand{font-family:var(--font-ui);font-weight:600;font-size:15px;letter-spacing:-.01em;color:var(--text);display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.brand em{font-style:normal;color:var(--muted);font-size:11.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase}
.brand .orb{width:22px;height:22px;border-radius:50%;flex:none;background:radial-gradient(circle at 30% 22%,rgba(255,255,255,.92) 0,rgba(255,255,255,0) 32%),radial-gradient(circle at 34% 30%,#FFD9C2 0,#FF8FB8 34%,#8B5CF6 70%,#5B3FD0 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),0 6px 8px rgba(110,70,200,.28)}
.brand .by{flex-basis:100%;margin:-2px 0 0 32px;font-size:10.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}

/* ---- top bar: frosted, no hard edge ---- */
header.topbar{background:rgba(255,255,255,.5);-webkit-backdrop-filter:var(--aura-glass);backdrop-filter:var(--aura-glass);border-bottom:1px solid rgba(255,255,255,.8);box-shadow:0 1px 0 rgba(18,21,28,.04)}
.topbar .who{font-size:11.5px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.topbar .signout{background:rgba(255,255,255,.5);border:1px solid var(--line);color:var(--text);border-radius:999px}
nav.tabs button{font-family:var(--font-ui);font-size:12px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);border-radius:999px;padding:8px 14px}
nav.tabs button:hover{color:var(--text)}
nav.tabs button.active{background:#fff;color:var(--text);box-shadow:0 8px 18px -10px rgba(28,39,64,.5)}

/* the rail only exists when the shell (top bar + tabs) is on screen: the sign-in card stays centred (aura.js sets html.aura-shell) */
/* ---- LAPTOP TEMPLATE (reference A): left rail of tracked caps with a rule leader ---- */
@media (min-width:1100px){
  html.aura-shell #root{display:grid;grid-template-columns:236px minmax(0,1fr);grid-template-rows:repeat(7,auto) 1fr;align-content:start}
  html.aura-shell header.topbar{display:contents}
  header.topbar .brand{grid-column:1;grid-row:1;padding:34px 12px 0 42px;margin-bottom:46px;align-content:flex-start;row-gap:4px}
  header.topbar .spacer{display:none}
  nav.tabs{grid-column:1;grid-row:2;flex-direction:column;align-items:flex-start;gap:0;margin:0;padding:0 0 0 42px;overflow:visible;background:none}
  nav.tabs button{height:34px;padding:0;border-radius:0;background:none;box-shadow:none;display:flex;align-items:center;text-align:left}
  nav.tabs button.active{background:none;box-shadow:none;color:var(--text)}
  nav.tabs button.active::before{content:"";width:42px;height:1px;background:var(--text);margin-left:-42px;margin-right:12px}
  header.topbar .who{grid-column:1;grid-row:3;padding:40px 12px 4px 42px;display:block;line-height:1.5}
  header.topbar .howtour{grid-column:1;grid-row:4;justify-self:start;margin:6px 0 0 42px;width:auto}
  header.topbar .pill{grid-column:1;grid-row:5;margin:8px 0 0 42px;justify-self:start}
  header.topbar .signout{grid-column:1;grid-row:6;margin:8px 0 0 42px;justify-self:start}
  html.aura-shell #root>main{grid-column:2;grid-row:1 / -1;min-width:0;width:100%}
  /* the manager page has a heading block above its main: both sit in the content column */
  html.aura-shell #root>.adminhead{grid-column:2;grid-row:1;align-self:start;width:100%;max-width:none;min-width:0;margin:0;padding-top:30px}
  html.aura-shell #root>.adminhead~main{grid-column:2;grid-row:2 / -1;min-width:0;width:100%}
  html.aura-shell #root>.tf-host{grid-column:2;min-width:0}
}

/* ---- frosted glass cards: about 40% white, 24px blur, white edge, inner highlight, round corners ---- */
html[data-design="v3"] .card,.card,.panel,.stat,.authcard{background:var(--v3-card-bg);border:1px solid var(--v3-card-border);box-shadow:var(--v3-card-shadow);border-radius:18px}
html[data-design="v3"] .card.cat-hot{background:rgba(255,255,255,.78);box-shadow:var(--v3-card-shadow),0 0 0 1px rgba(15,122,69,.4)}
html[data-design="v3"] .card.cat-warm{background:rgba(255,255,255,.78);box-shadow:var(--v3-card-shadow),0 0 0 1px rgba(138,90,5,.4)}
html[data-design="v3"] .card.cat-cold{background:rgba(255,255,255,.78)}
html[data-design="v3"] .card.cat-blue{background:rgba(255,255,255,.78);box-shadow:var(--v3-card-shadow),0 0 0 1px rgba(26,82,184,.35)}
html[data-design="v3"] .card.cat-ruby{background:rgba(255,255,255,.86);box-shadow:var(--v3-card-shadow),0 0 0 1px rgba(184,22,93,.55)}
html[data-design="v3"] .pill,html[data-design="v3"] .stat{background:var(--v3-card-bg);border-color:var(--v3-card-border)}
html[data-design="v3"] .pill{border-radius:999px}

/* ---- controls: round; solid ink for the main action with a soft pink glow under it ---- */
.btn{background:var(--accent-strong);color:#fff;border:1px solid var(--accent-strong);border-radius:999px;font-family:var(--font-ui);font-weight:600;box-shadow:0 0 0 5px rgba(255,255,255,.45),0 16px 32px -12px rgba(255,111,168,.7)}
.btn:hover:not(:disabled){background:#2b3040}
.btn.secondary{background:rgba(255,255,255,.5);color:var(--text);border:1px solid rgba(18,21,28,.22);box-shadow:none}
.btn.secondary:hover:not(:disabled){background:var(--text);color:#fff}
input[type="text"],input[type="number"],input[type="email"],input[type="password"],input[type="date"],input[type="time"],input[type="url"],input[type="search"],select,textarea{background:rgba(255,255,255,.62);border:1px solid rgba(18,21,28,.16);border-radius:10px;color:var(--text)}
input::placeholder,textarea::placeholder{color:var(--ink-3)}
input:focus,select:focus,textarea:focus{border-color:#8B5CF6;box-shadow:0 0 0 3px rgba(139,92,246,.14);outline:none}
a{color:var(--blue)}
::selection{background:rgba(139,92,246,.22);color:#12151C}

/* ---- PHONES (references 6 and 7): the bottom bar floats as a frosted pill, active = solid white ---- */
@media (max-width:767px){
  header.topbar{background:rgba(255,255,255,.55)}
  .bottomnav{left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));padding:5px;padding-bottom:5px;border:1px solid rgba(255,255,255,.8);border-radius:999px;background:rgba(255,255,255,.52);-webkit-backdrop-filter:var(--aura-glass);backdrop-filter:var(--aura-glass);box-shadow:var(--v3-card-shadow)}
  .bottomnav button{min-height:52px;border-radius:999px;color:var(--muted);font-weight:500;letter-spacing:.02em}
  .bottomnav button.active{background:#fff;color:var(--text);box-shadow:0 8px 18px -10px rgba(28,39,64,.5)}
  .more-scrim{background:rgba(18,21,28,.28)}
  .more-sheet{background:rgba(255,255,255,.78);-webkit-backdrop-filter:var(--aura-glass);backdrop-filter:var(--aura-glass);border-top:1px solid rgba(255,255,255,.9);border-radius:24px 24px 0 0}
  .more-item{color:var(--text)}.more-item.active{color:var(--accent)}
  .aura-art{opacity:.42}
  .brand .by{display:none}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---- the Inbox / Leads family keeps its own --ig-* tokens (written for a dark ground): redefine them for Aura ---- */
.inbox,.inbox.leadhub{
  --ig-bg-void:transparent;
  --ig-panel-bg:rgba(255,255,255,.78); --ig-panel-border:rgba(255,255,255,.8);
  --ig-ink:#12151C; --ig-ink-dim:#363942; --ig-ink-faint:#3F424D;
  --ig-field-border:rgba(18,21,28,.34); --ig-hairline:rgba(18,21,28,.09);
  --ig-ruby:#B8165D; --ig-ruby-soft:rgba(184,22,93,.08); --ig-ruby-border:rgba(184,22,93,.34);
  --ig-green:#0b6b3c; --ig-green-soft:rgba(15,122,69,.08); --ig-green-border:rgba(15,122,69,.34);
  --ig-amber:#7d5004; --ig-amber-soft:rgba(138,90,5,.08); --ig-amber-border:rgba(138,90,5,.34);
  --ig-gray:#4a4d58; --ig-gray-soft:rgba(74,77,88,.08); --ig-gray-border:rgba(74,77,88,.3);
  --ig-steel:#2f5f8a; --ig-steel-soft:rgba(47,95,138,.08); --ig-steel-border:rgba(47,95,138,.34);
  --ig-violet:#5a37c4; --ig-violet-soft:rgba(90,55,196,.08); --ig-violet-border:rgba(90,55,196,.34);
}
.inbox{background:transparent}
.inbox-ambient{display:none}

/* the Leads cards' empty state dimmed the big number to 55%: on glass that falls under 3:1, so it only softens to 78% */
.leadhub .hub-card.empty .hc-num{opacity:.78}

/* field edges use the app's own --line-strong token (the forms test pins it), and a disabled action keeps readable text */
input[type="text"],input[type="number"],input[type="email"],input[type="password"],input[type="date"],input[type="time"],input[type="url"],input[type="search"],select,textarea{border-color:var(--line-strong)}
.card-act.off{opacity:1;color:#4a4d58;border-style:dashed}

/* ---- OVERLAYS ARE SOLID (found live 11-20 by the Maya follow-up session): a drawer, the phone More sheet and the guided tour card sit over page
   text, so they cannot be see-through glass. --panel is translucent now (cards want that), so overlays get their own near-solid white. ---- */
.drawer,.more-sheet{background:rgba(255,255,255,.97);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
html #st-tour .stt-card,html #st-tour .stt-arrow{background:rgba(255,255,255,.97)}   /* the extra html beats the generated aura-fix.css, which loads after this file */

/* One last step card on Today: the card it points at lights up for a moment (found 11-22: a clocked out shift is not a sent End of day) */
@keyframes eodflash{0%{box-shadow:0 0 0 0 rgba(184,22,93,.55)}60%{box-shadow:0 0 0 10px rgba(184,22,93,0)}100%{box-shadow:0 0 0 0 rgba(184,22,93,0)}}
.eod-flash{animation:eodflash 1.1s ease-out 2}
@media (prefers-reduced-motion:reduce){.eod-flash{animation:none;outline:2px solid #B8165D;outline-offset:2px}}

/* Sent folder: two chips (what happened, who messaged when) do not fit one line in the narrow list, so they wrap instead of being cut */
.inbox.is-sent .th-pills{flex-wrap:wrap;overflow:visible;row-gap:3px}
.inbox.is-sent .th{flex:none}   /* taller rows must not be squeezed into each other when the list is long */

/* Work scorecard on a setter's card (Admin > Team) */
.sc-card{margin-bottom:14px}
.sc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.sc-head h3{margin:0;font-size:1.05rem}
.sc-periods{display:flex;gap:6px}
.sc-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.sc-tile .v{font-size:1.7rem;font-weight:500;letter-spacing:-.04em;line-height:1.1}
.sc-tile .v small{font-size:.8rem;font-weight:500;color:var(--muted)}
.sc-tile .k{margin-top:2px}
.sc-hint{font-size:11.5px;color:var(--muted);margin-top:4px;line-height:1.35}
.sc-tile .v.sc-warn{color:var(--red)}
a.sc-link{display:block;text-decoration:none;color:inherit}
a.sc-link:hover,a.sc-link:focus-visible{border-color:var(--ink)}
.sc-note{margin:10px 0 0;font-size:12px}
@media (max-width:900px){.sc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
