/* VantageX — the agent desk.
 *
 * The Clikin console system: the ground is #FBF8F1, cards are white, the
 * hairline inside a card is cool (--line) and the hairline against the ground is
 * warm (--ground-line). Values are copied from the control panel's own token
 * block, which copies them from the website — changes flow that way, never back.
 *
 * The shell never scrolls. Three columns own their own overflow, because an
 * agent on a call must never lose the call bar to a scroll position.
 */

/* ------------------------------------------------------------------ faces */
@font-face { font-family:'Hanken Grotesk'; font-style:normal; font-weight:400; font-display:swap;
  src:url(../assets/fonts/hanken-grotesk-cc9d37a8.woff2) format('woff2'); }
@font-face { font-family:'Hanken Grotesk'; font-style:normal; font-weight:500; font-display:swap;
  src:url(../assets/fonts/hanken-grotesk-756deb8e.woff2) format('woff2'); }
@font-face { font-family:'Hanken Grotesk'; font-style:normal; font-weight:600; font-display:swap;
  src:url(../assets/fonts/hanken-grotesk-eca67f4a.woff2) format('woff2'); }
@font-face { font-family:'Hanken Grotesk'; font-style:normal; font-weight:700; font-display:swap;
  src:url(../assets/fonts/hanken-grotesk-92ee8237.woff2) format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400; font-display:swap;
  src:url(../assets/fonts/jetbrains-mono-a495a9f5.woff2) format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:500; font-display:swap;
  src:url(../assets/fonts/jetbrains-mono-39ef8357.woff2) format('woff2'); }
@font-face { font-family:'Newsreader'; font-style:normal; font-weight:500; font-display:swap;
  src:url(../assets/fonts/newsreader-5dab3a80.woff2) format('woff2'); }
@font-face { font-family:'Newsreader'; font-style:normal; font-weight:600; font-display:swap;
  src:url(../assets/fonts/newsreader-f5d7d70a.woff2) format('woff2'); }

/* ----------------------------------------------------------------- tokens */
:root{
  color-scheme: light;
  --bg:#FBF8F1;
  --bg2:#F5F1E6;
  --surface:#FFFFFF;
  --surface-2:#FBFCFE;
  --text:#070A12;
  --muted:#55607A;
  --muted-2:#59637A;
  --faint:#8C95AC;
  --line:#E5E9F2;
  --line-2:#EFF2F8;
  --line-strong:#CBD2DE;
  --ground-line:#EFEADD;
  --accent:#3B6CFF;
  --accent-2:#7B5CFF;
  --accent-deep:#2450D8;
  --accent-soft:#EDF2FF;
  --success:#00996F;
  --success-soft:#E6F8F1;
  --warn:#B26A00;
  --warn-soft:#FFF6E6;
  --danger:#C1362B;
  --danger-soft:#FEF1EF;
  --shadow-sm:0 1px 2px rgba(7,10,18,.05), 0 4px 12px -6px rgba(7,10,18,.08);
  --shadow-md:0 1px 2px rgba(7,10,18,.05), 0 10px 26px -12px rgba(7,10,18,.10);
  --shadow-lg:0 2px 6px rgba(7,10,18,.06), 0 18px 40px -18px rgba(7,10,18,.16);
  --r-xs:6px; --r-sm:8px; --r-md:10px; --r-lg:12px; --r-pill:999px;
  --focus:0 0 0 3px rgba(59,108,255,.20);
  --font-sans:"Hanken Grotesk",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --font-display:"Newsreader","Iowan Old Style",Georgia,serif;
  --rail:308px;
  --panel:376px;
}

*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font:14px/1.45 var(--font-sans);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  overflow:hidden;
}
button,input,select,textarea{ font:inherit; color:inherit; }
button{ background:transparent; border:0; cursor:pointer; }
a{ color:var(--accent-deep); text-decoration:none; }
a:hover{ text-decoration:underline; }
::selection{ background:rgba(59,108,255,.16); }
:focus-visible{ outline:none; box-shadow:var(--focus); border-radius:var(--r-sm); }

::-webkit-scrollbar{ width:9px; height:9px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:#DDE3EE; border-radius:999px; border:2px solid transparent; background-clip:padding-box; }
::-webkit-scrollbar-thumb:hover{ background:#C7D0E0; }

.mono{ font-family:var(--font-mono); font-variant-numeric:tabular-nums; }
.eyebrow{ font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.muted{ color:var(--muted); }
.hide{ display:none !important; }
.tnum{ font-variant-numeric:tabular-nums; }

/* ------------------------------------------------------------------ shell */
.desk{
  height:100vh;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;   /* top block, body, status bar */
}
.desk__top{ display:flex; flex-direction:column; }

/* ----------------------------------------------------------------- topbar */
.topbar{
  background:var(--surface);
  border-bottom:1px solid var(--line);
  box-shadow:0 1px 2px rgba(60,64,67,.06);
  display:flex; align-items:center; gap:14px;
  padding:10px 18px;
  min-height:62px;
}
.mark{ display:flex; align-items:center; gap:10px; min-width:0; }
/* The Clikin mark, verbatim from the clikin.ai header — the open C in the blue
 * to violet gradient with the amber dot. Inline SVG, so it needs no request and
 * stays sharp at any size. */
.mark__logo{ display:block; flex:none; }
.mark__name{ font-size:16px; font-weight:700; letter-spacing:-.01em; line-height:1.1; }
.mark__sub{ font-size:11.5px; color:var(--muted); line-height:1.2; }

.topbar__spacer{ flex:1; }

.shift{ display:flex; align-items:center; gap:0; padding:0 4px; }
.shift__cell{ padding:0 13px; border-left:1px solid var(--line-2); }
.shift__cell:first-child{ border-left:0; }
.shift__k{ font-size:10px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); }
.shift__v{ font-size:17px; font-weight:700; line-height:1.15; font-variant-numeric:tabular-nums; }

/* presence ------------------------------------------------------------- */
.presence{ position:relative; }
.presence__btn{
  display:flex; align-items:center; gap:8px; height:38px; padding:0 12px 0 11px;
  border-radius:var(--r-pill); border:1px solid var(--line-strong); background:var(--surface);
  font-weight:600; font-size:13.5px; transition:box-shadow .15s ease, border-color .15s ease;
}
.presence__btn:hover{ box-shadow:var(--shadow-sm); }
.dot{ width:8px; height:8px; border-radius:50%; background:var(--faint); flex:none; }
.is-available .dot{ background:var(--success); }
.is-available .presence__btn{ background:var(--success-soft); border-color:rgba(0,153,111,.28); color:#046A50; }
.is-oncall .dot{ background:var(--danger); }
.is-oncall .presence__btn{ background:var(--danger-soft); border-color:rgba(193,54,43,.24); color:var(--danger); }
.is-wrapup .dot{ background:var(--warn); }
.is-wrapup .presence__btn{ background:var(--warn-soft); border-color:rgba(178,106,0,.26); color:var(--warn); }
.is-notready .dot{ background:var(--warn); }
.is-notready .presence__btn{ background:var(--warn-soft); border-color:rgba(178,106,0,.26); color:var(--warn); }
.is-offline .presence__btn{ color:var(--muted); }

.menu{
  position:absolute; top:calc(100% + 7px); right:0; min-width:238px; z-index:60;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md);
  box-shadow:var(--shadow-lg); padding:6px;
}
.menu__label{ padding:8px 10px 5px; }
.menu__item{
  display:flex; align-items:center; gap:9px; width:100%; text-align:left;
  padding:8px 10px; border-radius:var(--r-sm); font-size:13.5px; font-weight:500;
}
.menu__item:hover{ background:var(--accent-soft); }
.menu__item .dot{ width:7px; height:7px; }
.menu__sep{ height:1px; background:var(--line-2); margin:5px 4px; }

/* device chooser -------------------------------------------------------- */
.device__seg{ display:flex; gap:3px; padding:3px; background:var(--bg2); border:1px solid var(--ground-line); border-radius:var(--r-sm); }
.device__opt{
  display:flex; align-items:center; gap:7px; height:28px; padding:0 11px;
  border-radius:var(--r-xs); font-size:12.5px; font-weight:600; color:var(--muted);
}
.device__opt[aria-pressed="true"]{ background:var(--surface); color:var(--text); box-shadow:0 1px 2px rgba(7,10,18,.12); }
.device__opt:disabled{ opacity:.45; cursor:not-allowed; }
.device__note{ display:flex; align-items:center; gap:6px; margin-top:4px; font-size:11px; color:var(--muted); }
.device__note .dot{ width:6px; height:6px; }

.avatar{
  width:34px; height:34px; border-radius:50%; flex:none; display:grid; place-items:center;
  background:var(--accent-soft); color:var(--accent-deep); font-size:12.5px; font-weight:700;
}
.iconbtn{
  width:34px; height:34px; border-radius:var(--r-sm); display:grid; place-items:center;
  border:1px solid var(--line); background:var(--surface); color:var(--muted);
}
.iconbtn:hover{ color:var(--text); box-shadow:var(--shadow-sm); }

/* ------------------------------------------------------------------- body */
.body{
  display:grid;
  grid-template-columns:var(--rail) minmax(0,1fr) var(--panel);
  min-height:0;
}

/* ------------------------------------------------------------------- rail */
.rail{
  background:var(--surface); border-right:1px solid var(--line);
  display:flex; flex-direction:column; min-height:0;
}
.rail__head{ padding:12px 14px 10px; border-bottom:1px solid var(--line-2); }
.listpick{
  width:100%; height:36px; padding:0 10px; border:1px solid var(--line); border-radius:var(--r-sm);
  background:var(--surface); font-weight:600; font-size:13.5px;
}
.listpick:focus{ border-color:var(--accent); box-shadow:var(--focus); outline:none; }
.progress{ margin-top:9px; }
.progress__bar{ height:5px; border-radius:999px; background:var(--bg2); overflow:hidden; }
.progress__fill{ height:100%; border-radius:999px; background:linear-gradient(90deg,#3B6CFF,#7B5CFF); transition:width .4s ease; }
.progress__meta{ display:flex; justify-content:space-between; margin-top:6px; font-size:11.5px; color:var(--muted); }

.search{
  display:flex; align-items:center; gap:8px; margin-top:9px; height:34px; padding:0 10px;
  border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2); color:var(--muted);
}
.search:focus-within{ border-color:var(--accent); box-shadow:var(--focus); background:var(--surface); }
.search input{ border:0; background:transparent; outline:none; width:100%; font-size:13px; }

.rail__scroll{ flex:1; overflow-y:auto; padding:8px 8px 18px; }
.seg{ display:flex; align-items:center; gap:7px; padding:12px 8px 6px; position:sticky; top:0; background:var(--surface); z-index:2; }
.seg:first-child{ padding-top:6px; }
.seg__count{
  font-size:10.5px; font-weight:700; color:var(--muted); background:var(--bg2);
  border-radius:var(--r-pill); padding:1px 7px; font-variant-numeric:tabular-nums;
}
.seg--due .seg__count{ color:var(--warn); background:var(--warn-soft); }

.qrow{
  display:flex; align-items:center; gap:9px; width:100%; text-align:left;
  padding:8px 9px; border-radius:var(--r-sm); border:1px solid transparent;
}
.qrow:hover{ background:var(--surface-2); border-color:var(--line-2); }
.qrow[aria-current="true"]{ background:var(--accent-soft); border-color:rgba(59,108,255,.3); }
.qrow__pip{
  width:30px; height:30px; border-radius:50%; flex:none; display:grid; place-items:center;
  background:var(--bg2); color:var(--muted); font-size:11px; font-weight:700;
}
.qrow[aria-current="true"] .qrow__pip{ background:var(--surface); color:var(--accent-deep); }
.qrow__main{ flex:1; min-width:0; }
.qrow__name{ font-size:13.5px; font-weight:600; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qrow__sub{ font-size:11.5px; color:var(--muted); line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.qrow__tag{ flex:none; font-size:10.5px; font-weight:700; border-radius:var(--r-pill); padding:2px 7px; }
.tag--due{ color:var(--warn); background:var(--warn-soft); }
.tag--hot{ color:var(--success); background:var(--success-soft); }
.tag--try{ color:var(--muted); background:var(--bg2); }
.tag--lock{ color:var(--faint); background:var(--bg2); }
.qrow.is-locked{ opacity:.5; }
.emptyline{ padding:10px 12px; margin:0 2px; border:1px dashed var(--line); border-radius:var(--r-sm); font-size:12.5px; color:var(--muted); }

/* ------------------------------------------------------------------- work */
.work{ min-height:0; overflow-y:auto; padding:18px 22px 26px; }
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
}
.card + .card{ margin-top:14px; }
.card__pad{ padding:16px 18px; }

.rec__head{ display:flex; align-items:flex-start; gap:14px; padding:16px 18px; }
.rec__avatar{
  width:48px; height:48px; border-radius:50%; flex:none; display:grid; place-items:center;
  background:var(--accent-soft); color:var(--accent-deep); font-size:16px; font-weight:700;
}
.rec__title{ font-family:var(--font-display); font-size:25px; font-weight:600; letter-spacing:-.01em; line-height:1.12; }
.rec__phone{ font-family:var(--font-mono); font-size:13px; color:var(--muted); margin-top:3px; letter-spacing:-.01em; }
.rec__chips{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.chip{
  font-size:11px; font-weight:600; border-radius:var(--r-pill); padding:2.5px 9px;
  background:var(--bg2); color:var(--muted-2); border:1px solid transparent;
}
.chip--accent{ background:var(--accent-soft); color:var(--accent-deep); }
.chip--good{ background:var(--success-soft); color:#046A50; }
.chip--warn{ background:var(--warn-soft); color:var(--warn); }
.chip--bad{ background:var(--danger-soft); color:var(--danger); }

.rec__facts{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; border-top:1px solid var(--line-2); }
.fact{ padding:11px 18px; border-left:1px solid var(--line-2); min-width:0; }
.fact:first-child{ border-left:0; }
.fact__v{ font-size:13.5px; font-weight:600; margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.tabs{ display:flex; gap:2px; padding:0 12px; border-bottom:1px solid var(--line-2); }
.tab{
  padding:11px 12px 9px; font-size:13px; font-weight:600; color:var(--muted);
  border-bottom:2px solid transparent; margin-bottom:-1px;
}
.tab[aria-selected="true"]{ color:var(--accent-deep); border-bottom-color:var(--accent); }
.tab:hover{ color:var(--text); }
.tabpanel{ padding:14px 18px 18px; }

.script h4{ margin:0 0 6px; font-size:13px; font-weight:700; }
.script__block + .script__block{ margin-top:14px; padding-top:14px; border-top:1px solid var(--line-2); }
.script p{ margin:0 0 7px; font-size:13.5px; line-height:1.55; color:#232A3A; }
.script li{ font-size:13.5px; line-height:1.55; margin-bottom:4px; }
.script ul{ margin:0; padding-left:18px; }
.script blockquote{
  margin:0; padding:10px 13px; border-left:3px solid var(--accent);
  background:var(--accent-soft); border-radius:0 var(--r-sm) var(--r-sm) 0;
  font-size:13.5px; line-height:1.5;
}

.hist{ display:flex; flex-direction:column; }
.hist__row{ display:flex; align-items:flex-start; gap:11px; padding:11px 0; border-bottom:1px solid var(--line-2); }
.hist__row:last-child{ border-bottom:0; }
.hist__icon{ width:22px; height:22px; border-radius:50%; display:grid; place-items:center; flex:none; margin-top:1px; }
.hist__body{ flex:1; min-width:0; }
.hist__when{ font-size:11.5px; color:var(--muted); flex:none; font-variant-numeric:tabular-nums; }

.comment__list{ display:flex; flex-direction:column; gap:10px; margin-bottom:12px; }
.comment{ padding:10px 12px; background:var(--surface-2); border:1px solid var(--line-2); border-radius:var(--r-sm); }
.comment__meta{ font-size:11px; color:var(--muted); margin-bottom:3px; }
.comment__body{ font-size:13.5px; line-height:1.5; white-space:pre-wrap; }

textarea.field, input.field, select.field{
  width:100%; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface);
  padding:9px 11px; font-size:13.5px; line-height:1.5; outline:none; resize:vertical;
}
textarea.field:focus, input.field:focus, select.field:focus{ border-color:var(--accent); box-shadow:var(--focus); }
label.lbl{ display:block; margin-bottom:6px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:38px; padding:0 16px; border-radius:var(--r-sm); font-size:13.5px; font-weight:600;
  border:1px solid var(--line-strong); background:var(--surface); color:var(--text);
  transition:box-shadow .15s ease, background .15s ease, transform .06s ease;
}
.btn:hover{ box-shadow:var(--shadow-sm); }
.btn:active{ transform:translateY(1px); }
.btn:disabled{ opacity:.5; cursor:not-allowed; box-shadow:none; }
.btn--primary{ background:var(--accent); border-color:var(--accent); color:#fff; box-shadow:0 6px 18px -8px rgba(59,108,255,.7); }
.btn--primary:hover{ background:var(--accent-deep); border-color:var(--accent-deep); }
.btn--danger{ background:var(--danger); border-color:var(--danger); color:#fff; }
.btn--ghost{ border-color:transparent; background:transparent; color:var(--muted); }
.btn--ghost:hover{ background:var(--bg2); color:var(--text); }
.btn--lg{ height:46px; padding:0 22px; font-size:15px; }
.btn--block{ width:100%; }
.kbd{
  font-family:var(--font-mono); font-size:10.5px; font-weight:500; padding:1px 5px;
  border:1px solid var(--line-strong); border-bottom-width:2px; border-radius:4px;
  background:var(--surface); color:var(--muted); line-height:1.5;
}
.btn--primary .kbd{ background:rgba(255,255,255,.16); border-color:rgba(255,255,255,.3); color:#fff; }

/* ------------------------------------------------------------------ panel */
.panel{
  background:var(--surface); border-left:1px solid var(--line);
  display:flex; flex-direction:column; min-height:0;
}
.panel__head{
  display:flex; align-items:center; gap:9px; padding:12px 16px; border-bottom:1px solid var(--line-2);
  min-height:50px;
}
.panel__title{ font-size:14px; font-weight:700; }
.panel__scroll{ flex:1; overflow-y:auto; padding:16px; }

.callcard{ border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow-md); }
.callcard__top{ display:flex; align-items:center; gap:9px; padding:11px 14px; border-bottom:1px solid var(--line-2); background:var(--surface-2); }
.callcard__state{ font-size:13.5px; font-weight:700; }
.callcard__timer{ margin-left:auto; font-family:var(--font-mono); font-size:14px; font-variant-numeric:tabular-nums; }
.callcard__who{ display:flex; align-items:center; gap:11px; padding:14px; }
.callcard__ctl{ display:grid; grid-template-columns:repeat(4,1fr); gap:7px; padding:0 14px 14px; }
.ctl{
  height:44px; border:1px solid var(--line); border-radius:var(--r-sm); display:grid; place-items:center;
  color:var(--text); background:var(--surface);
}
.ctl:hover{ background:var(--bg2); }
.ctl[aria-pressed="true"]{ background:var(--warn-soft); border-color:rgba(178,106,0,.4); color:var(--warn); }
.ctl--end{ background:var(--danger); border-color:var(--danger); color:#fff; }
.ctl--end:hover{ background:#A82C23; }
.ctl:disabled{ opacity:.4; cursor:not-allowed; }

.ringing{ animation:pulse 1.4s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{ opacity:1 } 50%{ opacity:.45 } }

.dialpad{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin-top:12px; }
.dialpad button{ height:40px; border:1px solid var(--line); border-radius:var(--r-sm); font-family:var(--font-mono); font-size:15px; font-weight:500; }
.dialpad button:hover{ background:var(--bg2); }

/* wrap-up ---------------------------------------------------------------- */
.wrap__timer{
  display:flex; align-items:center; gap:8px; padding:9px 12px; border-radius:var(--r-sm);
  background:var(--warn-soft); border:1px solid rgba(178,106,0,.24); color:var(--warn);
  font-size:12.5px; font-weight:600;
}
.wrap__timer .tnum{ font-family:var(--font-mono); }
.dispgrid{ display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:9px; }
.disp{
  display:flex; align-items:center; gap:7px; padding:9px 10px; border:1px solid var(--line);
  border-radius:var(--r-sm); font-size:12.5px; font-weight:600; text-align:left; line-height:1.25;
  color:var(--text); background:var(--surface);
}
.disp:hover{ border-color:var(--line-strong); background:var(--surface-2); }
.disp[aria-pressed="true"]{ border-color:var(--accent); background:var(--accent-soft); color:var(--accent-deep); box-shadow:var(--focus); }
.disp__key{ flex:none; }
.disp__label{ flex:1; min-width:0; }
.disp--good[aria-pressed="true"]{ border-color:var(--success); background:var(--success-soft); color:#046A50; box-shadow:0 0 0 3px rgba(0,153,111,.16); }
.disp--bad[aria-pressed="true"]{ border-color:var(--danger); background:var(--danger-soft); color:var(--danger); box-shadow:0 0 0 3px rgba(193,54,43,.14); }
.disp__hint{ margin-top:9px; padding:9px 11px; background:var(--accent-soft); border-radius:var(--r-sm); font-size:12.5px; line-height:1.45; color:var(--accent-deep); }

.section{ margin-top:16px; }
.section + .section{ padding-top:16px; border-top:1px solid var(--line-2); }

/* --------------------------------------------------------------- statusbar */
.statusbar{
  display:flex; align-items:center; gap:16px; padding:0 16px; height:34px;
  background:var(--surface); border-top:1px solid var(--line); font-size:11.5px; color:var(--muted);
}
.status{ display:flex; align-items:center; gap:6px; }
.status .dot{ width:7px; height:7px; }
.dot--ok{ background:var(--success) !important; }
.dot--warn{ background:var(--warn) !important; }
.dot--bad{ background:var(--danger) !important; }
.statusbar__spacer{ flex:1; }

/* ------------------------------------------------------------ banner/toast */
.banner{
  padding:8px 18px; font-size:12.5px; font-weight:600; line-height:1.45;
  background:var(--warn-soft); color:var(--warn); border-bottom:1px solid rgba(178,106,0,.2);
}
.banner--bad{ background:var(--danger-soft); color:var(--danger); border-bottom-color:rgba(193,54,43,.2); }
.banner a{ color:inherit; text-decoration:underline; }

.toasts{ position:fixed; right:18px; bottom:46px; display:flex; flex-direction:column; gap:8px; z-index:200; }
.toast{
  min-width:250px; max-width:380px; padding:11px 14px; border-radius:var(--r-md);
  background:#0B1020; color:#F2F4F8; box-shadow:var(--shadow-lg); font-size:13px; line-height:1.45;
  animation:rise .18s ease;
}
.toast--good{ background:#04503C; }
.toast--bad{ background:#7A2019; }
@keyframes rise{ from{ opacity:0; transform:translateY(6px) } to{ opacity:1; transform:none } }

/* ------------------------------------------------------------------ modal */
.scrim{
  position:fixed; inset:0; background:rgba(7,10,18,.42); z-index:150;
  display:grid; place-items:center; padding:24px;
}
.modal{
  width:min(660px,100%); max-height:86vh; overflow:auto; background:var(--surface);
  border-radius:var(--r-lg); box-shadow:var(--shadow-lg); border:1px solid var(--line);
}
.modal__head{ display:flex; align-items:center; gap:12px; padding:16px 20px; border-bottom:1px solid var(--line-2); }
.modal__title{ font-family:var(--font-display); font-size:21px; font-weight:600; }
.modal__body{ padding:18px 20px; }
.modal__foot{ display:flex; justify-content:flex-end; gap:8px; padding:14px 20px; border-top:1px solid var(--line-2); background:var(--surface-2); border-radius:0 0 var(--r-lg) var(--r-lg); }

.drop{
  border:1.5px dashed var(--line-strong); border-radius:var(--r-md); padding:22px;
  text-align:center; color:var(--muted); background:var(--surface-2);
}
.drop.is-over{ border-color:var(--accent); background:var(--accent-soft); color:var(--accent-deep); }

.shortcuts{ display:grid; grid-template-columns:1fr 1fr; gap:8px 24px; }
.shortcut{ display:flex; align-items:center; gap:10px; font-size:13px; padding:4px 0; }
.shortcut .kbd{ min-width:26px; text-align:center; }
.shortcut span{ color:var(--muted); }

.report{ font-size:13px; }
.report table{ width:100%; border-collapse:collapse; margin-top:10px; }
.report th, .report td{ text-align:left; padding:6px 8px; border-bottom:1px solid var(--line-2); font-size:12.5px; }
.report th{ color:var(--muted); font-weight:700; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; }

/* ------------------------------------------------------------------- live */
/* Area 6: the Live tab. On a call the middle column stops scrolling as a page and hands its height to two
 * panes — the conversation, and what to say — each with its own scroll, so a long call never pushes the
 * suggestion off screen. The record shrinks to its head: the facts were read before dialling. */
.work--live{ display:flex; flex-direction:column; overflow:hidden; padding-bottom:18px; }
.work--live > .card{ flex:none; }
.work--live > .card:last-child{ flex:1; min-height:0; display:flex; flex-direction:column; }
.work--live .rec__facts{ display:none; }
.work--live .rec__head{ padding:11px 18px; align-items:center; }
.work--live .rec__title{ font-size:21px; }
.work--live .rec__avatar{ width:40px; height:40px; font-size:14px; }
.work--live .rec__chips{ margin-top:5px; }
.tabpanel--live{ flex:1; min-height:0; padding:0; display:flex; }

.tab__air{ display:none; width:7px; height:7px; border-radius:50%; background:var(--danger); margin-right:6px; vertical-align:1px; }
.tab--on-air .tab__air{ display:inline-block; animation:vx-air 1.6s ease-in-out infinite; }
@keyframes vx-air{ 0%,100%{ opacity:1; } 50%{ opacity:.3; } }

.live{ flex:1; min-width:0; min-height:0; display:flex; flex-direction:column; }
.live__bar{
  display:flex; align-items:center; gap:9px; padding:8px 18px; min-height:38px;
  border-bottom:1px solid var(--line-2); background:var(--surface-2); font-size:12.5px;
}
.live__pulse{ width:9px; height:9px; border-radius:50%; background:var(--faint); flex:none; position:relative; }
.live__pulse--on{ background:var(--success); }
.live__pulse--on::after{
  content:""; position:absolute; inset:-4px; border-radius:50%; border:2px solid var(--success);
  opacity:0; animation:vx-ping 1.8s ease-out infinite;
}
.live__pulse--wait{ background:var(--warn); }
.live__pulse--bad{ background:var(--danger); }
@keyframes vx-ping{ 0%{ transform:scale(.6); opacity:.7; } 100%{ transform:scale(1.7); opacity:0; } }
.live__state{ font-weight:600; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.live__spacer{ flex:1; }
.live__meta{ color:var(--muted); font-size:11.5px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.live__meta + .live__meta{ padding-left:9px; border-left:1px solid var(--line); }
.live__notice{ color:var(--warn); max-width:46%; overflow:hidden; text-overflow:ellipsis; }

.live__grid{ flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); }
.live__col{ min-height:0; display:flex; flex-direction:column; position:relative; }
.live__col--talk{ border-right:1px solid var(--line-2); }
.live__head{ display:flex; align-items:center; gap:10px; padding:11px 18px 6px; }
.live__legend{ margin-left:auto; font-size:11.5px; color:var(--muted); display:flex; align-items:center; gap:5px; white-space:nowrap; }
.swatch{ width:8px; height:8px; border-radius:2px; display:inline-block; margin-left:7px; }
.swatch:first-child{ margin-left:0; }
.swatch--customer{ background:#F5A300; }
.swatch--agent{ background:var(--accent); }
.live__scroll{ flex:1; min-height:0; overflow-y:auto; padding:4px 18px 20px; }

/* the conversation: the customer on an amber rule, the agent indented on a blue one */
.turn{ padding:7px 0 7px 11px; border-left:3px solid transparent; }
.turn + .turn{ margin-top:2px; }
.turn--customer{ border-left-color:#F5A300; }
.turn--agent{ border-left-color:rgba(59,108,255,.42); margin-left:26px; }
.turn--cont{ padding-top:1px; margin-top:0 !important; }
.turn__who{ display:flex; gap:8px; align-items:baseline; font-size:11.5px; font-weight:700; color:var(--muted-2); margin-bottom:2px; }
.turn__at{ font-family:var(--font-mono); font-weight:400; font-size:10.5px; color:var(--faint); }
.turn__text{ font-size:14.5px; line-height:1.5; color:var(--text); overflow-wrap:anywhere; }
.turn--agent .turn__text{ color:#3A4256; font-size:13.5px; }
.turn--partial .turn__text{ color:var(--muted); }
.turn--partial .turn__text::after{
  content:""; display:inline-block; width:2px; height:14px; margin-left:3px; vertical-align:-2px;
  background:currentColor; animation:vx-caret 1s steps(2) infinite;
}
@keyframes vx-caret{ 50%{ opacity:0; } }
.live__empty{ margin:14px 0; padding:16px 18px; border:1px dashed var(--line); border-radius:var(--r-md); color:var(--muted); font-size:13px; line-height:1.5; }
.live__emptyhead{ font-weight:700; color:var(--text); margin-bottom:3px; }
.live__jump{
  position:absolute; bottom:14px; left:50%; transform:translateX(-50%); height:30px; padding:0 13px;
  border-radius:var(--r-pill); background:var(--text); color:#fff; font-size:12px; font-weight:600; box-shadow:var(--shadow-md);
}

/* what to say: one card, the line in large type, the next move under it, where it came from at the foot */
.say{
  position:relative; border:1px solid rgba(59,108,255,.26); border-radius:var(--r-lg);
  background:linear-gradient(180deg,#F5F7FF 0%,#FFFFFF 72%); padding:12px 15px 13px 19px; box-shadow:var(--shadow-sm);
}
.say::before{
  content:""; position:absolute; left:0; top:12px; bottom:12px; width:4px; border-radius:0 4px 4px 0;
  background:linear-gradient(180deg,#3B6CFF,#7B5CFF);
}
.say--stale .say__line, .say--stale .say__next, .say--stale .say__for{ opacity:.42; }
.say--held{ border-color:rgba(178,106,0,.32); background:linear-gradient(180deg,#FFF8EC 0%,#FFFFFF 72%); }
.say--held::before{ background:var(--warn); }
.say--faq{ border-color:rgba(0,153,111,.28); background:linear-gradient(180deg,#F0FAF6 0%,#FFFFFF 72%); }
.say--faq::before{ background:var(--success); }
.say--empty{ background:var(--surface-2); border:1px dashed var(--line); box-shadow:none; padding:14px 16px; }
.say--empty::before{ display:none; }
.say__emptyhead{ font-weight:700; font-size:13.5px; }
.say__emptytext{ font-size:13px; color:var(--muted); line-height:1.5; margin-top:3px; }
.say__top{ display:flex; align-items:center; gap:8px; min-height:22px; }
.say__label{ font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-deep); }
.say--held .say__label{ color:var(--warn); }
.say--faq .say__label{ color:#046A50; }
.say__meta{ font-size:11px; color:var(--faint); font-variant-numeric:tabular-nums; }
.say__for{ font-size:12px; color:var(--muted); margin-top:5px; font-style:italic; overflow-wrap:anywhere; }
.say__line{ font-size:17.5px; line-height:1.5; font-weight:500; color:var(--text); margin-top:6px; letter-spacing:-.004em; overflow-wrap:anywhere; }
.say__next{ display:flex; gap:10px; align-items:baseline; margin-top:10px; padding-top:10px; border-top:1px solid var(--line-2); font-size:14px; line-height:1.45; }
.say__nextlabel{ flex:none; font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--accent-2); }
.say__caution{
  display:flex; gap:7px; margin-top:10px; padding:8px 10px; border-radius:var(--r-sm);
  background:var(--warn-soft); color:var(--warn); font-size:12.5px; line-height:1.45; font-weight:600;
}
.say__src{ display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin-top:11px; }
.say__srclabel{ font-size:11px; color:var(--muted); margin-right:2px; }
.say__actions{ display:flex; gap:6px; margin-top:11px; }
.say__actions .btn{ height:30px; padding:0 11px; font-size:12.5px; }
.btn--on{ background:var(--success-soft); border-color:rgba(0,153,111,.35); color:#046A50; }
.btn--on-bad{ color:var(--danger); }
.say__working{ display:inline-flex; gap:3px; }
.say__working i{ width:5px; height:5px; border-radius:50%; background:var(--accent); animation:vx-bob 1s ease-in-out infinite; }
.say__working i:nth-child(2){ animation-delay:.15s; }
.say__working i:nth-child(3){ animation-delay:.3s; }
@keyframes vx-bob{ 0%,80%,100%{ transform:translateY(0); opacity:.4; } 40%{ transform:translateY(-3px); opacity:1; } }
.say__skeleton{ margin-top:12px; display:grid; gap:8px; }
.say__skeleton span{
  height:12px; border-radius:6px; background:linear-gradient(90deg,var(--line-2),#E1E6F2,var(--line-2));
  background-size:200% 100%; animation:vx-shimmer 1.2s linear infinite;
}
.say__skeleton span:nth-child(2){ width:86%; }
.say__skeleton span:nth-child(3){ width:55%; }
@keyframes vx-shimmer{ to{ background-position:-200% 0; } }
.live__hint{ font-size:12px; color:var(--muted); margin-top:7px; }

.live__section{ margin-top:18px; }
.live__sechead{ display:flex; align-items:center; gap:8px; margin-bottom:7px; }
.btn--xs{ height:26px; padding:0 9px; font-size:12px; }
.live__sechead .btn--xs{ margin-left:auto; }
.heard{ display:flex; flex-wrap:wrap; gap:6px; }
.heard__chip{
  display:inline-flex; gap:6px; align-items:baseline; font-size:12.5px; padding:4px 10px;
  border-radius:var(--r-pill); background:var(--surface); border:1px solid var(--line);
}
.heard__k{ font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
.heard--hint{ align-items:center; margin:8px 0 4px; padding:8px 10px; border-radius:var(--r-sm); background:var(--accent-soft); }
.heard--hint .heard__chip{ padding:2px 9px; }
.heard__label{ font-size:11.5px; font-weight:700; color:var(--accent-deep); margin-right:2px; }

.faq{ border-top:1px solid var(--line-2); padding:9px 0; }
.faq__q{ display:flex; width:100%; gap:8px; align-items:baseline; text-align:left; font-size:13px; font-weight:700; color:var(--text); }
.faq__more{ margin-left:auto; font-size:11px; font-weight:600; color:var(--accent-deep); flex:none; }
.faq__say{ font-size:13.5px; line-height:1.5; color:#232A3A; margin-top:3px; }
.faq__written{ font-size:12.5px; line-height:1.5; color:var(--muted); margin-top:7px; padding:8px 10px; background:var(--surface-2); border-radius:var(--r-sm); }
.live__earlier summary{ cursor:pointer; list-style:none; padding:2px 0 7px; }
.live__earlier summary::-webkit-details-marker{ display:none; }
.earlier{ padding:8px 0; border-top:1px solid var(--line-2); }
.earlier__q{ font-size:12px; color:var(--muted); font-style:italic; }
.earlier__say{ font-size:13px; line-height:1.45; margin-top:2px; }

@media (max-width: 1240px){
  .live__grid{ grid-template-columns:1fr; grid-template-rows:minmax(0,1.1fr) minmax(0,1fr); }
  .live__col--assist{ order:-1; border-bottom:1px solid var(--line-2); }
  .live__col--talk{ border-right:0; }
}

/* --------------------------------------------------------------- narrower */
@media (max-width: 1360px){
  :root{ --rail:268px; --panel:340px; }
  .rec__facts{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .fact:nth-child(3){ border-left:0; }
  .fact:nth-child(n+3){ border-top:1px solid var(--line-2); }
}
@media (max-width: 1120px){
  .shift{ display:none; }
}

/* ------------------------------------------------------------- supervisor */
.sup{ height:100vh; overflow-y:auto; }
.sup__in{ max-width:1240px; margin:0 auto; padding:22px 24px 60px; }
.sup h1{ font-family:var(--font-display); font-size:30px; font-weight:600; letter-spacing:-.01em; margin:0 0 4px; }
.grid3{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.stat{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:14px 16px; box-shadow:var(--shadow-sm); }
.stat__v{ font-size:26px; font-weight:700; line-height:1.15; margin-top:4px; font-variant-numeric:tabular-nums; }
table.grid{ width:100%; border-collapse:collapse; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; }
table.grid th{ text-align:left; padding:9px 14px; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); background:var(--surface-2); border-bottom:1px solid var(--line); }
table.grid td{ padding:10px 14px; border-bottom:1px solid var(--line-2); font-size:13px; }
table.grid tr:last-child td{ border-bottom:0; }
.bar{ height:7px; border-radius:999px; background:var(--bg2); overflow:hidden; min-width:90px; }
.bar span{ display:block; height:100%; background:var(--accent); }


/* ------------------------------------------------------------------ answers */
.kb__search{
  display:flex; align-items:center; gap:9px; height:38px; padding:0 12px; margin-bottom:12px;
  border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface-2); color:var(--muted);
}
.kb__search:focus-within{ border-color:var(--accent); box-shadow:var(--focus); background:var(--surface); }
.kb__search input{ border:0; background:transparent; outline:none; width:100%; font-size:14px; }
.kb__card{ padding:12px 0; border-bottom:1px solid var(--line-2); }
.kb__card:last-child{ border-bottom:0; }
.kb__q{ font-size:14px; font-weight:700; }
.kb__a{ font-size:13.5px; line-height:1.55; color:#232A3A; margin-top:4px; }
.kb__a mark{ background:#FFF0B3; color:inherit; padding:0 1px; border-radius:2px; }
.kb__fill{ color:var(--warn); font-weight:600; }
.kb__obj{ display:grid; grid-template-columns:minmax(0,0.9fr) minmax(0,1.4fr); gap:14px;
  padding:11px 0; border-bottom:1px solid var(--line-2); align-items:start; }
.kb__obj:last-child{ border-bottom:0; }
.kb__trigger{ font-size:13.5px; font-weight:600; font-style:italic; color:var(--muted-2); }
.kb__none{ padding:16px 0; color:var(--muted); font-size:13.5px; }

/* ----------------------------------------------------------------- palette */
.palette{ width:min(600px,100%); background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); box-shadow:var(--shadow-lg); overflow:hidden; }
.palette__in{ display:flex; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid var(--line-2); }
.palette__in input{ border:0; outline:none; width:100%; font-size:16px; background:transparent; }
.palette__list{ max-height:52vh; overflow-y:auto; padding:6px; }
.palette__row{ display:flex; align-items:center; gap:11px; width:100%; text-align:left;
  padding:9px 11px; border-radius:var(--r-sm); font-size:13.5px; }
.palette__row[aria-selected="true"]{ background:var(--accent-soft); }
.palette__row .kbd{ margin-left:auto; }
.palette__kind{ font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  color:var(--muted); background:var(--bg2); border-radius:var(--r-pill); padding:2px 8px; flex:none; }
.palette__hint{ padding:8px 16px; border-top:1px solid var(--line-2); font-size:11.5px;
  color:var(--muted); background:var(--surface-2); }

/* ---------------------------------------------------------------- promises */
.promise{ display:flex; align-items:center; gap:7px; padding:7px 11px; border:1px solid var(--line);
  border-radius:var(--r-pill); font-size:12.5px; font-weight:600; color:var(--muted-2); background:var(--surface); }
.promise:hover{ border-color:var(--line-strong); }
.promise[aria-pressed="true"]{ border-color:var(--accent); background:var(--accent-soft); color:var(--accent-deep); }
.promise__tick{ width:14px; height:14px; flex:none; }
.promiseWrap{ display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }

.guardline{ display:flex; align-items:flex-start; gap:8px; padding:9px 12px; border-radius:var(--r-sm);
  background:var(--danger-soft); color:var(--danger); font-size:12.5px; font-weight:600; line-height:1.45; }
.overdue{ color:var(--danger) !important; background:var(--danger-soft) !important; }

/* ---------------------------------------------------------------- the nav */
.nav{
  display:flex; align-items:center; gap:22px; padding:0 24px; height:58px;
  background:var(--surface); border-bottom:1px solid var(--line);
  box-shadow:0 1px 2px rgba(60,64,67,.06); position:sticky; top:0; z-index:50;
}
.nav__brand{ display:flex; align-items:center; gap:10px; flex:none; color:inherit; }
.nav__brand:hover{ text-decoration:none; }
.nav__brand b{ font-size:15px; font-weight:700; letter-spacing:-.01em; display:block; line-height:1.1; }
.nav__sub{ font-size:11px; color:var(--muted); display:block; line-height:1.2; }
.nav__links{ display:flex; gap:2px; }
.nav__link{
  padding:7px 13px; border-radius:var(--r-sm); font-size:13.5px; font-weight:600;
  color:var(--muted);
}
.nav__link:hover{ background:var(--bg2); color:var(--text); text-decoration:none; }
.nav__link[aria-current="page"]{ background:var(--accent-soft); color:var(--accent-deep); }
.nav__state{ margin-left:auto; display:flex; align-items:center; gap:7px; }

/* --------------------------------------------------------------- the door */
.home{ max-width:1080px; margin:0 auto; padding:44px 24px 70px; }
.home__lede{ max-width:640px; }
.home h1{ font-family:var(--font-display); font-size:38px; font-weight:600; letter-spacing:-.015em; margin:0 0 8px; }
.home__cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(214px,1fr)); gap:14px; margin-top:32px; }
.door{
  display:block; padding:20px 22px 22px; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); box-shadow:var(--shadow-sm); color:inherit;
  transition:box-shadow .16s ease, transform .08s ease, border-color .16s ease;
}
.door:hover{ text-decoration:none; box-shadow:var(--shadow-md); border-color:var(--line-strong); transform:translateY(-1px); }
.door__icon{
  width:38px; height:38px; border-radius:10px; display:grid; place-items:center;
  background:var(--accent-soft); color:var(--accent-deep); margin-bottom:13px;
}
.door__title{ font-size:16px; font-weight:700; letter-spacing:-.01em; }
.door__body{ font-size:13px; line-height:1.5; color:var(--muted); margin-top:5px; }
.door__meta{ font-size:12px; font-weight:600; color:var(--accent-deep); margin-top:11px; }
.home__status{
  margin-top:32px; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); overflow:hidden;
}
.home__status tr td{ padding:11px 18px; border-bottom:1px solid var(--line-2); font-size:13.5px; }
.home__status tr:last-child td{ border-bottom:0; }
.home__status td:first-child{ width:210px; color:var(--muted); font-size:10.5px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; }

/* ======================================================================
   Design pass, 2026-09-08. Structure borrowed from the Genesys marketing
   system — a floating rounded nav, an accent rule down the left of every
   figure, big tight numbers, and a lot more air — rendered in Clikin's
   palette rather than theirs. The agent desk is deliberately excluded:
   an agent lives on one screen all day and air costs them rows.
   ====================================================================== */

/* the nav lifts off the page ------------------------------------------- */
body.sup .nav, body:not(.desk) .nav{
  position:sticky; top:12px; z-index:60;
  margin:12px 16px 0; height:62px; padding:0 12px 0 20px;
  border:1px solid var(--line); border-radius:16px;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  box-shadow:0 1px 2px rgba(7,10,18,.04), 0 14px 34px -20px rgba(7,10,18,.28);
}
.nav__link{ padding:8px 14px; border-radius:10px; }

/* a figure wears a rule, not a box ------------------------------------- */
.stat{
  position:relative; padding:18px 20px 20px 24px; border-radius:14px;
  border:1px solid var(--line); box-shadow:0 1px 2px rgba(7,10,18,.04);
}
.stat::before{
  content:""; position:absolute; left:0; top:16px; bottom:16px; width:3px;
  border-radius:0 3px 3px 0;
  background:linear-gradient(180deg,#2B4EFF,#8B5CF6);
}
.stat__v{
  font-size:34px; font-weight:600; letter-spacing:-.025em; line-height:1.08;
  margin-top:6px; font-variant-numeric:tabular-nums;
}
.stat .eyebrow{ font-size:10px; letter-spacing:.09em; }

/* sections get an eyebrow and room ------------------------------------- */
.sup__in{ max-width:1240px; margin:0 auto; padding:26px 24px 70px; }
.sup h1{ font-size:34px; letter-spacing:-.02em; }
.sectionHead{ display:flex; align-items:baseline; gap:12px; margin:34px 0 12px; }
.sectionHead__title{ font-size:19px; font-weight:700; letter-spacing:-.015em; }
.sectionHead__note{ font-size:12.5px; color:var(--muted); }

/* cards and tables settle down ---------------------------------------- */
table.grid{ border-radius:14px; }
table.grid th{ font-size:10px; letter-spacing:.09em; padding:11px 16px; }
table.grid td{ padding:12px 16px; }
.door{ border-radius:14px; padding-left:26px; position:relative; }
.door::before{
  content:""; position:absolute; left:0; top:20px; bottom:20px; width:3px;
  border-radius:0 3px 3px 0; background:linear-gradient(180deg,#2B4EFF,#8B5CF6);
  opacity:0; transition:opacity .16s ease;
}
.door:hover::before{ opacity:1; }

/* the door gets its artwork — the mark's own arc, very large and quiet -- */
.home{ position:relative; padding-top:52px; overflow:hidden; }
/* `.home > *` must not touch the artwork: both selectors weigh the same, so the
 * later one was overriding position:absolute and the arc joined the flow —
 * 560px of it, shoving the page off the screen. */
.home > *:not(.homeArt){ position:relative; z-index:1; }
.home > .homeArt{
  position:absolute; right:-70px; top:-110px; width:440px; height:440px;
  pointer-events:none; z-index:0; opacity:.42;
}
.home h1{ font-size:52px; letter-spacing:-.03em; line-height:1.02; }
.home__lede p{ font-size:16px; }
@media (max-width: 900px){ .homeArt{ display:none; } .home h1{ font-size:38px; } }

/* ------------------------------------------------- rail actions (CR-003) */
/* The three ways a list comes into being. Prominent on purpose: they were in a
   dropdown and a command palette before, and an agent opening an empty desk had
   no visible way to begin. */
.railActions{
  display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:10px;
}
.railActions .btn{ height:32px; padding:0 10px; font-size:13px; justify-content:center; }
.railActions .btn:first-child{ grid-column:1 / -1; height:34px; font-weight:600; }
.railActions .btn[disabled]{ opacity:.45; cursor:not-allowed; }

/* ------------------------------------------------ account menu (CR-003) */
.whoami{ position:relative; }
.whoami .avatar{ border:0; cursor:pointer; font-family:inherit; }
.whoami .avatar:hover{ background:var(--accent); color:#fff; }
.whoami__menu{
  position:absolute; right:0; top:42px; z-index:60; width:264px;
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); box-shadow:var(--shadow-lg); padding:6px;
}
.whoami__who{ padding:11px 12px 10px; border-bottom:1px solid var(--line-2); margin-bottom:6px; }
.whoami__name{ font-weight:600; font-size:14.5px; }
.whoami__sub{ font-size:12.5px; color:var(--muted); margin-top:2px; word-break:break-all; }
.whoami__rows{ padding:2px 12px 8px; border-bottom:1px solid var(--line-2); margin-bottom:6px; }
.whoami__row{ display:flex; justify-content:space-between; gap:10px; font-size:12.5px; padding:3px 0; }
.whoami__row span:first-child{ color:var(--faint); }
.whoami__row span:last-child{ color:var(--text); text-align:right; }
.whoami__act{
  display:block; width:100%; text-align:left; padding:9px 12px; border:0; cursor:pointer;
  background:transparent; border-radius:var(--r-sm); font:inherit; font-size:13.5px; color:var(--text);
}
.whoami__act:hover{ background:var(--bg2); }
.whoami__act--out{ color:var(--danger); font-weight:600; }
.whoami__act--out:hover{ background:var(--danger-soft); }

/* #59: the requirement pickers in the qualify pop-up — two columns on a desk, one on a phone */
.reqgrid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; margin-top:9px; }
.reqfield{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.reqfield__k{ font-size:11px; letter-spacing:.02em; text-transform:uppercase; color:var(--muted, #6b7280); }
.reqfield select.field{ width:100%; height:36px; padding:0 10px; line-height:normal; font-size:13px; resize:none; }
@media (max-width:520px){ .reqgrid{ grid-template-columns:1fr; } }
/* #59: the pop-up grew by the requirement; its two buttons stay in view while the body scrolls */
#qualifyModal .modal__foot{ position:sticky; bottom:0; z-index:1; }
