/* ============================================================
   Avalara skin

   Loaded after app.css and studio.css. It turns the shared product
   build into Avalara's own UI, following Skylab, Avalara's design
   system (skylab.avalara.com and the Skylab SDK 4.73.3):

   · Chrome is white. The header is Surface.Chrome with a hairline,
     the Avalara wordmark, a divider and the product name.
   · One action color: Color.Accent (Blue.Dark #057BA6). Orange is the
     brand and the AI icon, never a button.
   · Corners come from the radius tokens: 8px on buttons, fields and
     cards, full pills on tags and badges.
   · The side nav's active item is beige (Surface.Nav-Active) with an
     orange icon (Components.Sidenav.Active-Icon).
   · Tags are 24px pills: dark text on a light tint with a matching
     border (Components.Tag.*).
   · Source Sans 3 for UI text, Inter for headings.
   Colors themselves live in js/theme.js.
   ============================================================ */
:root{
  --head-h:60px;
  --sh-1:0 0 4px 0 rgb(0 0 0 / .1);
  --sh-2:0 0 4px 0 rgb(0 0 0 / .1);
  --sh-3:0 4px 30px 0 rgb(0 0 0 / .1), 0 0 4px 0 rgb(0 0 0 / .08);
  --sh-page:0 0 4px 0 rgb(0 0 0 / .08), 0 4px 30px 0 rgb(0 0 0 / .06);
  --sh-btn:0 1px 2px 0 rgb(0 0 0 / .12);
  --ava-orange:#FA6400;
  --ava-orange-dark:#E05200;
  --ava-sky:#059BD2;
  --ava-beige:#F6F2EC;
  --ava-beige-line:#D7D0C3;
  --f-doc:'Inter','Source Sans 3',-apple-system,system-ui,Arial,sans-serif;
}
body{font-family:var(--f)}
::selection{background:#C5ECFB}

/* ---------- header (Skylab › Header) ---------- */
.app-header,.sc-bar{background:#FFFFFF;color:var(--ink);border-bottom:1px solid var(--line);box-shadow:none}
.app-brand{gap:14px}
.app-brand .div{background:var(--line-strong);height:22px}
/* Apertura is licensed; Inter stands in for the product name. */
.app-brand .prod,.sc-bar-t{font-family:var(--f-display);font-size:16px;font-weight:500;color:var(--ink);letter-spacing:-.005em}
.app-brand .prod b,.sc-bar-t b{color:var(--ava-orange-dark)}
.sc-bar .linkbtn{color:var(--ink-2)}
.sc-bar .linkbtn:hover{color:var(--accent)}
.hbtn{color:var(--ink-2);border-radius:var(--r-sm)}
.hbtn:hover{background:var(--fill);color:var(--ink)}
/* The notification count is the header badge: orange, white numerals. */
.hbtn .dot{background:var(--ava-orange-dark);color:#fff;border:0;border-radius:4px;min-width:18px;height:16px;font-size:10px;top:3px;right:1px}
.hperson{color:var(--ink-2)}
.hperson:hover{background:var(--fill)}
.hperson .av{background:var(--fill-2);color:var(--ink);border-radius:50%}
.hperson .av.editor{background:#C5ECFB;color:#066183}
.hperson .nm b{color:var(--ink)}
.hperson .nm span{color:var(--muted)}
.app-search{background:var(--paper);border-color:var(--line-strong);color:var(--ink-4)}
.app-search:hover{background:var(--paper);border-color:#ACB7BD}
.hdonut .donut circle:last-child{stroke:var(--ava-orange-dark)}

/* ---------- side navigation (Skylab › Side navigation) ---------- */
.p-side{background:#FFFFFF;border-right:1px solid var(--line)}
.navgroup{gap:2px;padding:0 12px}
.navitem{border-left:0;border-radius:var(--r-sm);padding:9px 12px;font-size:14px;color:var(--ink)}
.navitem .ic{color:var(--ink-2)}
.navitem:hover{background:var(--fill);color:var(--ink)}
.navitem.on{background:var(--ava-beige);color:var(--ink);font-weight:600;border-left:0}
.navitem.on .ic{color:var(--ava-orange-dark)}
.navitem.on .cnt{background:#FFFFFF;color:var(--ink-2)}
.navitem .cnt{border-radius:var(--r-pill)}
.side-new{margin:4px 12px 14px}
.cur-story{border-left:1px solid var(--line);border-radius:var(--r-sm)}

/* ---------- headings (Skylab › Typography) ---------- */
h1{font-size:28px;font-weight:500;line-height:1.3;letter-spacing:-.01em}
h2{font-size:20px;font-weight:500;line-height:1.4;letter-spacing:-.005em}
.kicker{letter-spacing:.06em}

/* ---------- buttons (Skylab › Button) ---------- */
.btn{border-radius:var(--r-sm);font-weight:600;min-height:38px;padding:8px 18px;border-color:var(--line-strong);box-shadow:var(--sh-btn)}
.btn:hover{border-color:#83949C;color:var(--ink)}
.btn.primary,.btn.blue,.btn.grad{background:#057BA6;border-color:#057BA6;color:#fff}
.btn.primary:hover,.btn.blue:hover,.btn.grad:hover{background:#066183;border-color:#066183;color:#fff}
.btn.soft{background:#FFFFFF;border:1px solid var(--line-strong);color:var(--ink);font-weight:600}
.btn.soft:hover{background:#FFFFFF;border-color:#83949C;color:var(--ink)}
.btn.ghost{box-shadow:none;color:#057BA6}
.btn.ghost:hover{color:#066183}
.btn.dark{background:var(--ink);border-color:var(--ink)}
.btn.sm{min-height:32px;padding:5px 14px}
.btn.lg{min-height:42px;padding:10px 24px;font-family:var(--f-display);font-size:15px}
.btn[disabled]{opacity:1;background:#FAFBFC;border-color:transparent;color:#ACB7BD;box-shadow:none}
.linkbtn{color:#057BA6}
.linkbtn:hover{color:#066183}
.side-new.on{border-color:#057BA6;box-shadow:inset 0 0 0 1px #057BA6}

/* ---------- tags and chips (Skylab › Tag, Chip, Badge) ---------- */
.pill{border-radius:var(--r-pill);border:1px solid #9CDFF8;background:#C5ECFB;color:#066183;
  font-size:12.5px;font-weight:500;padding:2px 9px;min-height:22px;line-height:1.3}
.pill.ok{background:#DCF1C7;border-color:#B4E486;color:#37591B}
.pill.warn{background:#F6EEAB;border-color:#E2C82D;color:#903A00}
.pill.miss{background:#FDCFCE;border-color:#F77576;color:#9B1629}
.pill.park,.pill.grad{background:#C5ECFB;border-color:#9CDFF8;color:#066183}
.pill.neutral{background:#F5F6F7;border-color:#DEE2E4;color:#3A5264}
.spill{border-radius:var(--r-pill)}
.chip{border-radius:var(--r-pill);background:#F5F6F7;border-color:transparent;color:var(--ink)}
button.chip:hover{border-color:#ACB7BD;color:var(--ink)}

/* ---------- tabs (Skylab › Tabs) ---------- */
.tabs button.on{color:var(--ink)}
.tabs button.on::after{background:var(--ava-orange-dark);height:3px}
.studio-tabs{border-radius:var(--r-sm)}
.studio-tabs button{border-radius:6px}

/* ---------- fields (Skylab › Input) ---------- */
.field input,.field select,.field textarea{border-color:#C1C7CF;border-radius:var(--r-sm)}
.field input:hover,.field select:hover,.field textarea:hover{border-color:#ACB7BD}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#059BD2;box-shadow:0 0 0 1px #059BD2}
button:focus-visible,a:focus-visible,select:focus-visible,[role="button"]:focus-visible{outline:2px solid #059BD2;outline-offset:2px}
/* The document and slides are edited in place: no box while typing. */
.ql-editor:focus,.ql-editor:focus-visible,[contenteditable]:focus,[contenteditable]:focus-visible{outline:none}

/* ---------- surfaces (Skylab › Cards, Box) ---------- */
.card{border-radius:var(--r-lg);border-color:var(--line)}
.sc-card{border-radius:var(--r-2xl)}

/* ---------- toasts (Skylab › Toast, plain) ---------- */
.toast{background:#F6F2EC;color:#0E1D2F;border:1px solid #726D64;border-radius:var(--r-sm);box-shadow:var(--sh-3)}
.toast .ic{color:#53504A}

/* ---------- conversation (Skylab › AI chat, Chat layout) ---------- */
/* The person's own turns: Blue.Medium bubbles, end aligned, a tight corner. */
.chat-m.me .chat-b{background:#059BD2;color:#FFFFFF;border-radius:12px 12px 2px 12px}
body.cx .turn.user .bubble{background:#059BD2;color:#FFFFFF;border-radius:12px 12px 2px 12px}
.chat-fab{background:#FFFFFF;color:var(--ink);border:1px solid var(--line-strong);border-radius:var(--r-pill);box-shadow:0 4px 30px 0 rgb(0 0 0 / .12), 0 0 4px 0 rgb(0 0 0 / .1)}
.chat-fab:hover{filter:none;border-color:#83949C}
.chat-av{background:#FFF4ED;color:var(--ava-orange-dark)}
.chat-send{background:#057BA6}

/* ---------- the gate ---------- */
#gate-input:focus{border-color:#059BD2;box-shadow:0 0 0 1px #059BD2}
.gate-btn{border-radius:var(--r-sm)}

/* ---------- sentence case (Skylab › Typography: no all-caps labels) ----------
   Product labels drop the uppercase. The document letterhead and slide
   kickers are marketing typography and keep theirs. */
.kicker,.navlabel,.tbl th,.cardsec .csk,.home-meta .mk,.ev-head h3,.sum-group h4,.ck-group h4,
.cmp-sugg .lbl,.coach-pop .coach-k,.vx-state,.cx-badge,.vx-now small,.outgroup-h,.dt-h,
#vx.talk .vx-next .vx-nl,.vt-livehd,.sum-h,.wd-t th,.wd-g td{
  text-transform:none;letter-spacing:0;
}
.kicker,.navlabel{font-size:12px;font-weight:600;color:var(--ink-2)}
.tbl th{font-size:12.5px;font-weight:600;color:var(--ink-2)}
.cx-badge{border-radius:var(--r-pill);padding:2px 8px}

/* ---------- flat surfaces: no decorative glows ---------- */
.cx-pick::after{display:none}

/* ---------- responsive header (Skylab › Header › Brand area) ---------- */
.app-brand .ava-acheck{display:none;height:28px;width:auto}
@media (max-width:839px){
  .app-brand .ava-full,.app-brand .div,.app-brand .prod{display:none}
  .app-brand .ava-acheck{display:block}
}

/* ---------- ask a colleague ---------- */
.cl-err{color:#B91728;margin-top:-6px}
.turn-acts .turn-act[data-park="colleague"]{color:#057BA6}

/* ---------- interview feedback and signals ---------- */
.cx-feel{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;font-size:13px;color:var(--ink-2)}
.cx-feel.done{color:var(--green);margin:10px 0 0}
.iv-signals{margin:0 0 12px;padding:10px 12px;border-radius:var(--r-sm);background:var(--fill)}
.iv-signals .ivs{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;line-height:1.45;color:var(--ink-2);margin-top:4px}
.iv-signals .ivs .ic{flex:none;margin-top:2px;color:#E05200}
