@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap");

/* ─── Tokens ─────────────────────────────────────────────── */
:root{
  --teal:#0DA4A9;
  --teal-dark:#0B8A8E;
  --teal-deep:#0A6E72;
  --teal-tint:#EDF7F7;
  --teal-soft:#E2F3F3;
  --orange:#F26C2A;
  --orange-dark:#DE5C1C;
  --orange-tint:#FEF1E9;
  --green:#12B76A;
  --green-tint:#E9F8EF;
  --amber:#B54708;
  --amber-tint:#FFF6E8;
  --red:#B42318;
  --red-tint:#FFF1F0;
  --ink:#173236;
  --muted:#6B7A7E;
  --faint:#98A6A9;
  --bg:#F7F9F9;
  --surface:#FFFFFF;
  --line:#E7EDEE;
  --line-strong:#D8E1E2;
  --shadow-sm:0 1px 2px rgba(13,60,64,.04);
  --shadow:0 1px 3px rgba(13,60,64,.05),0 8px 24px -12px rgba(13,60,64,.08);
  --shadow-lg:0 2px 6px rgba(13,60,64,.05),0 20px 44px -18px rgba(13,60,64,.14);
  --radius-lg:20px;
  --radius:14px;
  --radius-sm:10px;
}

/* ─── Base ───────────────────────────────────────────────── */
*{box-sizing:border-box;min-width:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg);
  font-family:"Cairo","Segoe UI",Tahoma,Arial,sans-serif;
  color:var(--ink);
  font-weight:400;
  font-size:clamp(13.5px,.9vw + 11px,15px);
  line-height:1.75;
  overflow-x:hidden;
}
button,input,textarea,select{font:inherit;color:inherit}
.hidden{display:none!important}
h1,h2,h3,h4{font-weight:700;letter-spacing:0}
.muted{color:var(--muted);line-height:1.85}
.small{font-size:12px;color:var(--muted)}
:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
img,svg{max-width:100%}

.shell{max-width:1240px;margin:auto;padding:clamp(12px,3vw,20px) clamp(14px,4vw,24px) clamp(32px,6vw,64px);position:relative;z-index:1}

/* ─── Topbar ─────────────────────────────────────────────── */
.topbar{
  display:flex;justify-content:space-between;align-items:center;gap:clamp(12px,2vw,20px);
  background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
  padding:clamp(13px,2vw,18px) clamp(16px,3vw,26px);
  flex-wrap:wrap;
}
.brand{display:flex;align-items:center;gap:clamp(12px,1.6vw,16px);min-width:0}
.mark{
  width:46px;height:46px;flex:0 0 46px;border-radius:13px;
  background:
    linear-gradient(135deg,var(--teal) 0 58%,transparent 58%),
    linear-gradient(315deg,var(--orange) 0 34%,var(--teal-dark) 34% 42%,transparent 42%);
  background-color:var(--teal-tint);
  box-shadow:0 4px 12px -6px rgba(13,164,169,.45);
}
.brandText{min-width:0;display:flex;flex-direction:column;gap:3px}
.brand h1{
  margin:0;font-size:clamp(16px,1.1vw + 12.4px,20px);font-weight:800;
  line-height:1.25;letter-spacing:-.005em;color:var(--teal-dark);
}
.brand p{
  margin:0;font-size:clamp(12px,.35vw + 11px,13.5px);color:var(--muted);
  line-height:1.5;font-weight:600;letter-spacing:.005em;
}

/* subtle evaluator login action — header, opposite the brand (landing only) */
.topbar .btn.headerLogin{
  display:none;align-items:center;gap:8px;
  padding:9px 18px;min-height:40px;
  font-size:13.5px;font-weight:700;
  color:var(--teal-deep);background:var(--surface);
  border:1px solid var(--line-strong);border-radius:var(--radius-sm);
  box-shadow:none;flex:0 0 auto;
}
.topbar .btn.headerLogin svg{width:17px;height:17px;flex:0 0 17px;color:var(--teal)}
.topbar .btn.headerLogin:hover:not(:disabled){background:var(--teal-tint);border-color:var(--teal);color:var(--teal-deep)}
body:has(#landing:not(.hidden)) .btn.headerLogin{display:inline-flex}

/* ─── Buttons ────────────────────────────────────────────── */
.btn{
  border:0;border-radius:var(--radius-sm);
  padding:11px 22px;font-weight:700;font-size:14px;cursor:pointer;
  min-height:44px;
  transition:background .15s,border-color .15s,box-shadow .15s,transform .1s;
}
.btn:active:not(:disabled){transform:translateY(1px)}
.btn.primary{background:var(--teal);color:#fff;box-shadow:0 6px 16px -8px rgba(13,164,169,.55)}
.btn.primary:hover:not(:disabled){background:var(--teal-dark)}
.btn.orange{background:var(--orange);color:#fff;box-shadow:0 6px 16px -8px rgba(242,108,42,.55)}
.btn.orange:hover:not(:disabled){background:var(--orange-dark)}
.btn.secondary{background:var(--teal-tint);color:var(--teal-deep)}
.btn.secondary:hover:not(:disabled){background:var(--teal-soft)}
.btn.ghost{background:var(--surface);border:1px solid var(--line-strong);color:#33454A}
.btn.ghost:hover:not(:disabled){border-color:var(--teal);color:var(--teal-deep)}
.btn.danger{background:var(--red-tint);color:var(--red)}
.btn.small{padding:8px 14px;font-size:12.5px;min-height:38px}
.btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}

/* ─── Cards ──────────────────────────────────────────────── */
.card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);
  box-shadow:var(--shadow);padding:clamp(18px,4vw,32px);margin-top:clamp(16px,3vw,24px);
}
.eyebrow{font-size:11px;color:var(--teal);font-weight:800;letter-spacing:.1em}

/* --- Ambient background: soft brand blobs + geometric texture ---------- */
/* Body background propagates to the canvas, so .bgFx sits above it and
   below .shell (z-index:1). Decorative only: aria-hidden + pointer-events:none. */
.bgFx{
  position:fixed;inset:0;z-index:0;
  overflow:hidden;pointer-events:none;
  opacity:0;transition:opacity .7s ease;
}
/* only on the public-facing screens — never behind the assessment itself */
body:has(#landing:not(.hidden)) .bgFx,
body:has(#adminLogin:not(.hidden)) .bgFx{opacity:1}

.bgFx .blob{
  position:absolute;display:block;border-radius:50%;
  filter:blur(70px);will-change:transform;
}
.bgFx .blob1{
  width:min(46vw,540px);height:min(46vw,540px);
  top:-12%;inset-inline-end:-8%;
  background:radial-gradient(circle at 35% 35%,rgba(13,164,169,.30),rgba(13,164,169,0) 70%);
  animation:bgFloatA 21s ease-in-out infinite;
}
.bgFx .blob2{
  width:min(40vw,470px);height:min(40vw,470px);
  bottom:-14%;inset-inline-start:-10%;
  background:radial-gradient(circle at 60% 40%,rgba(242,108,42,.22),rgba(242,108,42,0) 70%);
  animation:bgFloatB 27s ease-in-out infinite;
}
.bgFx .blob3{
  width:min(34vw,400px);height:min(34vw,400px);
  top:38%;inset-inline-start:34%;
  background:radial-gradient(circle at 50% 50%,rgba(11,138,142,.16),rgba(11,138,142,0) 70%);
  animation:bgFloatC 33s ease-in-out infinite;
}

/* fine dot grid, faded out toward the edges so text keeps full contrast */
.bgFx .bgDots{
  position:absolute;inset:-40px;display:block;
  background-image:radial-gradient(rgba(23,50,54,.16) 1px,transparent 1px);
  background-size:26px 26px;opacity:.45;
  -webkit-mask-image:radial-gradient(ellipse 62% 55% at 50% 42%,#000,transparent 78%);
  mask-image:radial-gradient(ellipse 62% 55% at 50% 42%,#000,transparent 78%);
  animation:bgDrift 24s ease-in-out infinite;
}
/* two hairline diagonals — a quiet nod to the infinity mark */
.bgFx .bgLines{
  position:absolute;inset:-20%;display:block;
  background-image:
    linear-gradient(115deg,transparent 49.85%,rgba(13,164,169,.16) 50%,transparent 50.15%),
    linear-gradient(65deg,transparent 49.85%,rgba(242,108,42,.12) 50%,transparent 50.15%);
  opacity:.55;
  -webkit-mask-image:radial-gradient(ellipse 70% 70% at 50% 45%,#000,transparent 80%);
  mask-image:radial-gradient(ellipse 70% 70% at 50% 45%,#000,transparent 80%);
  animation:bgDriftSlow 30s ease-in-out infinite;
}

@keyframes bgFloatA{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(-3.5%,4%,0) scale(1.07)}
}
@keyframes bgFloatB{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(4%,-3.5%,0) scale(1.09)}
}
@keyframes bgFloatC{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(3%,3.5%,0) scale(.93)}
}
@keyframes bgDrift{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(13px,13px,0)}
}
@keyframes bgDriftSlow{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(-1.5%,1.5%,0)}
}

/* ─── Landing hero ───────────────────────────────────────── */
.hero{max-width:820px;margin:clamp(20px,6vw,56px) auto;padding:clamp(28px,6vw,58px) clamp(22px,6vw,58px) clamp(30px,5vw,52px);text-align:right}
.heroHeadline{font-size:clamp(26px,4vw + 10px,42px);line-height:1.38;font-weight:800;margin:clamp(10px,1.6vw,14px) 0 0}
.heroHeadline .t{color:var(--teal)}
.heroHeadline .o{color:var(--orange)}
.heroDivider{
  width:150px;height:3px;border-radius:99px;background:var(--teal);
  position:relative;margin:clamp(18px,2.4vw,24px) 0 clamp(20px,2.6vw,26px);
}
.heroDivider::after{
  content:"";position:absolute;inset:-4px 0 auto 50%;width:11px;height:11px;
  transform:translateX(50%) rotate(45deg);background:var(--teal);border-radius:2px;
}
.hero .muted{margin:0;font-size:clamp(14px,.6vw + 12px,16px);max-width:540px;line-height:1.95}
.featureRow{display:flex;gap:clamp(12px,1.6vw,16px);flex-wrap:wrap;margin:clamp(26px,4.5vw,38px) 0 0}
.feature{
  flex:1 1 130px;display:flex;flex-direction:column;align-items:center;gap:6px;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:18px 12px 14px;box-shadow:var(--shadow-sm);text-align:center;
}
.feature .ficon{
  width:46px;height:46px;border-radius:50%;
  background:var(--teal-tint);color:var(--teal);
  display:flex;align-items:center;justify-content:center;
}
.feature .ficon svg{width:22px;height:22px}
.feature strong{font-size:13.5px;color:var(--ink);line-height:1.4}
.feature span{font-size:11.5px;color:var(--muted);line-height:1.5}

/* primary CTA — centered under the feature cards */
.heroCta{
  display:flex;justify-content:center;
  margin-top:clamp(30px,5vw,44px);
  padding-top:clamp(24px,4vw,32px);
  border-top:1px solid var(--line);
}
.heroCta .btn{
  min-width:clamp(240px,42%,300px);
  padding:15px 40px;font-size:15px;font-weight:800;
  letter-spacing:.01em;border-radius:12px;
  box-shadow:0 10px 26px -12px rgba(13,164,169,.75);
}
.heroCta .btn:hover:not(:disabled){box-shadow:0 12px 30px -12px rgba(13,164,169,.85)}

/* ─── Auth / narrow forms ────────────────────────────────── */
.authCard{max-width:480px;margin:clamp(24px,8vw,64px) auto;padding:clamp(26px,6vw,44px) clamp(20px,6vw,44px) clamp(24px,5vw,40px);text-align:center}
.authIcon{
  width:64px;height:64px;border-radius:50%;margin:0 auto 14px;
  background:var(--teal-tint);color:var(--teal);
  display:flex;align-items:center;justify-content:center;
}
.authIcon svg{width:30px;height:30px}
.authCard h2{margin:0 0 4px;font-size:clamp(20px,2vw + 14px,24px)}
.authCard .field{text-align:right}
.authCard .btn{width:100%;margin-top:10px;padding:13px}

.formCard{max-width:720px;margin:clamp(20px,6vw,40px) auto;padding:clamp(24px,6vw,40px) clamp(20px,6vw,44px)}
.formCard h2{margin:4px 0 20px;font-size:clamp(20px,2vw + 14px,24px)}

/* ─── Layout helpers / forms ─────────────────────────────── */
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.field{margin:16px 0}
.field label{display:block;font-weight:700;font-size:13.5px;margin-bottom:7px}
input,textarea,select{
  width:100%;background:var(--surface);
  border:1px solid var(--line-strong);border-radius:var(--radius-sm);
  padding:12px 14px;outline:none;min-height:44px;
  transition:border-color .15s,box-shadow .15s;
  font-size:16px;
}
textarea{min-height:120px;resize:vertical;line-height:1.85}
input:focus,textarea:focus,select:focus{
  border-color:var(--teal);box-shadow:0 0 0 4px rgba(13,164,169,.1);outline:none;
}
input[type="file"]{border:1px dashed var(--line-strong);background:var(--bg);padding:12px;cursor:pointer}

/* ─── Notes / tasks / chat samples ───────────────────────── */
.note{
  background:var(--teal-tint);border:1px solid #D2EBEB;border-radius:var(--radius-sm);
  padding:14px 18px;line-height:1.85;margin:16px 0;
}
.note.orange{background:var(--orange-tint);border-color:#F6DAC6}
.note.warn{background:#FFFAF0;border-color:#F0E2C4}
.note.red{background:#FFF5F4;border-color:#F0D3D0}
.task{
  border:1px solid var(--line);border-radius:var(--radius);
  padding:20px 22px;margin:16px 0;background:var(--surface);
}
.task h3{margin:0 0 12px;font-size:15.5px}
.chat{background:#F2F6F7;border-radius:var(--radius-sm);padding:14px}
.bubble{
  background:var(--surface);border:1px solid var(--line);border-radius:14px;
  padding:11px 15px;max-width:80%;margin-left:auto;line-height:1.8;
  box-shadow:var(--shadow-sm);
}

/* ─── Radio options ──────────────────────────────────────── */
input[type="radio"],input[type="checkbox"]{
  width:18px!important;min-width:auto!important;height:18px;
  padding:0!important;margin:0!important;box-shadow:none!important;
  accent-color:var(--teal);flex:0 0 18px;cursor:pointer;
}
.options{display:grid;gap:10px;margin:12px 0}
.options label{
  display:flex;align-items:center;gap:14px;
  min-height:52px;padding:13px 16px;
  border:1px solid var(--line);border-radius:var(--radius-sm);
  background:var(--surface);cursor:pointer;font-weight:400;text-align:right;
  transition:border-color .12s,background .12s,box-shadow .12s;
}
.options label:hover{background:#FAFCFC;border-color:var(--line-strong)}
.options label:has(input:checked){
  background:var(--surface);border-color:var(--teal);
  box-shadow:0 0 0 1px var(--teal),0 4px 12px -6px rgba(13,164,169,.35);
  font-weight:600;color:var(--teal-deep);
}
.options label:has(input:disabled){cursor:default}

/* ─── Candidate Mode ─────────────────────────────────────── */
.candWrap{max-width:820px;margin:clamp(16px,4vw,32px) auto 0}
.candStrip{
  display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;
  padding:0 4px 12px;
}
.candStrip strong{font-weight:700;font-size:14px}
.candCard{
  display:block;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);padding:clamp(20px,5vw,40px) clamp(16px,5vw,44px) clamp(18px,4vw,28px);
}
.dayBadge{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--teal-tint);color:var(--teal-deep);
  border-radius:99px;padding:6px 16px;
  font-size:12.5px;font-weight:700;
}
.dayBadge svg{width:15px;height:15px;flex:0 0 15px}
.candHead{text-align:center;margin-bottom:22px}
.candHead h2{margin:14px 0 6px;font-size:clamp(19px,2.5vw + 12px,26px);font-weight:800}
.candHead .muted{margin:0;font-size:14px;display:inline-flex;align-items:center;gap:7px;text-align:center}
.candHead .muted svg{width:16px;height:16px;color:var(--teal);flex:0 0 16px}

/* status bar: save state · timer · progress */
.statusBar{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:0;
  border:1px solid var(--line);border-radius:var(--radius);
  background:var(--surface);box-shadow:var(--shadow-sm);
  padding:14px clamp(10px,3vw,20px);margin:0 0 26px;
}
.statusBar>div{display:flex;flex-direction:column;align-items:center;gap:2px;padding:0 clamp(6px,2vw,20px);min-width:0}
.statusBar>div+div{border-right:1px solid var(--line)}
.saveState{flex-direction:row!important;gap:9px!important;justify-content:center}
.saveState svg{width:20px;height:20px;color:var(--teal);flex:0 0 20px}
.saveState .txt{font-size:13px;font-weight:600;color:var(--ink);direction:ltr;white-space:nowrap}
.saveState .dot{width:8px;height:8px;border-radius:50%;background:var(--green);transition:background .2s;flex:0 0 8px}
.saveState.saving .dot{background:var(--orange)}
.statusLabel{font-size:11.5px;color:var(--muted);font-weight:600;display:flex;align-items:center;gap:6px;white-space:nowrap}
.statusLabel svg{width:14px;height:14px;flex:0 0 14px}
.timerValue{
  font-size:clamp(16px,1vw + 13px,19px);font-weight:800;color:var(--ink);
  font-variant-numeric:tabular-nums;direction:ltr;line-height:1.3;
}
.progressCol .statusLabel{color:var(--ink);font-weight:700;font-size:12.5px}
.progressLine{
  width:min(150px,100%);height:6px;background:#E8EEEF;border-radius:99px;overflow:hidden;
  margin-top:7px;
}
.progressLine>div{height:100%;background:var(--teal);border-radius:99px;transition:width .3s}

.autosaveBanner{
  display:flex;align-items:center;justify-content:center;gap:9px;
  background:var(--teal-tint);border:1px solid #D2EBEB;border-radius:var(--radius-sm);
  padding:12px 16px;margin:26px 0 0;text-align:center;
  font-size:13px;color:var(--teal-deep);font-weight:600;
}
.autosaveBanner svg{width:16px;height:16px;flex:0 0 16px}

.actions{
  border-top:1px solid var(--line);margin-top:22px;padding-top:20px;
  display:flex;justify-content:space-between;align-items:center;gap:12px;
}
.actions .btn{min-width:130px}
.autosaveHint{
  font-size:12.5px;color:var(--faint);font-weight:600;
  display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
}

/* ─── Typing test ────────────────────────────────────────── */
.typingref{
  border:1px dashed var(--line-strong);background:#FAFCFC;border-radius:var(--radius-sm);
  padding:18px;line-height:2.1;user-select:none;margin:14px 0;
}
.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.metric{
  border:1px solid var(--line);border-radius:var(--radius);
  padding:14px 16px;background:var(--surface);box-shadow:var(--shadow-sm);
  font-size:12.5px;color:var(--muted);font-weight:600;
}
.metric strong{display:block;font-size:clamp(19px,1.5vw + 14px,24px);color:var(--teal-dark);font-variant-numeric:tabular-nums}

/* ─── AI simulation ──────────────────────────────────────── */
.aiChat{border:1px solid var(--line);border-radius:var(--radius);background:var(--bg);padding:clamp(12px,3vw,18px);min-height:220px;margin:16px 0}
.aiMsg{max-width:88%;padding:11px 15px;border-radius:14px;margin:12px 0;white-space:pre-wrap;line-height:1.8;box-shadow:var(--shadow-sm)}
.aiMsg.customer{background:var(--surface);border:1px solid var(--line);margin-left:auto;border-bottom-left-radius:5px}
.aiMsg.candidate{background:var(--teal-tint);border:1px solid #CFE8E9;margin-right:auto;border-bottom-right-radius:5px}
.aiRole{font-size:10.5px;font-weight:800;color:var(--faint);margin-bottom:4px}
.aiComposer{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}
.aiComposer textarea{min-height:85px}
.aiComposer .btn{min-height:44px}
.aiLoading{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}
.aiDot{width:7px;height:7px;border-radius:50%;background:var(--teal);animation:pulse 1s infinite alternate}
@keyframes pulse{from{opacity:.25;transform:scale(.8)}to{opacity:1;transform:scale(1.15)}}
@media(prefers-reduced-motion:reduce){
  .aiDot{animation:none}
  .progressLine>div{transition:none}
  html{scroll-behavior:auto}
  .bgFx .blob,.bgFx .bgDots,.bgFx .bgLines{animation:none}
  .bgFx{transition:none}
  .waitDot{animation:none}
  .btn.back:hover:not(:disabled) svg{transform:none}
}

/* ─── Evaluator ──────────────────────────────────────────── */
.adminHead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.pageIcon{
  width:52px;height:52px;border-radius:50%;flex:0 0 52px;
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-sm);
  display:flex;align-items:center;justify-content:center;color:var(--teal);
}
.pageIcon svg{width:24px;height:24px}
.dashTitle{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.dashTitle h2{margin:0;font-size:clamp(21px,2vw + 14px,26px);font-weight:800}
.dashTitle h2 .dotAccent{color:var(--orange)}
.dashTitle .muted{margin:2px 0 0;font-size:13.5px}

.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}
.stat{
  border:1px solid var(--line);border-radius:var(--radius);
  padding:18px 20px;background:var(--surface);box-shadow:var(--shadow-sm);
  font-size:12.5px;color:var(--muted);font-weight:600;
  display:flex;justify-content:space-between;align-items:center;gap:12px;
}
.stat strong{font-size:clamp(22px,1.5vw + 16px,28px);display:block;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.3}
.statIcon{
  width:44px;height:44px;border-radius:50%;flex:0 0 44px;
  display:flex;align-items:center;justify-content:center;
  background:var(--teal-tint);color:var(--teal);
}
.statIcon.orange{background:var(--orange-tint);color:var(--orange)}
.statIcon.green{background:var(--green-tint);color:var(--green)}
.statIcon svg{width:21px;height:21px}

.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:var(--radius);margin-top:8px;background:var(--surface)}
table{width:100%;border-collapse:collapse}
.tablewrap table{min-width:900px}
#compareContent{overflow-x:auto;-webkit-overflow-scrolling:touch}
#compareContent table{min-width:480px;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
th,td{padding:13px 16px;border-bottom:1px solid var(--line);text-align:right;font-size:13px;vertical-align:top}
tr:last-child td{border-bottom:0}
th{background:#F8FBFB;font-weight:700;color:var(--muted);font-size:12px;white-space:nowrap}
tbody tr{transition:background .12s}
tbody tr:hover{background:#FAFCFC}
.status{display:inline-block;padding:4px 12px;border-radius:99px;font-size:11px;font-weight:700}
.status.ok{background:var(--green-tint);color:#067647}
.status.pending{background:var(--amber-tint);color:var(--amber)}
.status.locked{background:#F1F4F5;color:#66757A}
.detailGrid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px}
.answer{border:1px solid var(--line);border-radius:var(--radius-sm);padding:13px 15px;background:#FAFCFC;margin:8px 0;white-space:pre-wrap;line-height:1.75;overflow-wrap:anywhere}
.rubric{border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;margin:12px 0;background:var(--surface)}
.rubric summary{cursor:pointer;font-size:14px}
.rubric li{margin:5px 0}
.score{font-size:clamp(26px,2vw + 20px,34px);font-weight:800;color:var(--teal);font-variant-numeric:tabular-nums}
.compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.barrow{display:grid;grid-template-columns:minmax(70px,130px) 1fr 42px;gap:10px;align-items:center;margin:9px 0;font-size:13px}
.barrow span{overflow-wrap:anywhere}
.bar{height:8px;background:#E8EEEF;border-radius:99px;overflow:hidden}
.bar>div{height:100%;background:var(--teal);border-radius:99px}
.kpiLine{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
.kpiMini{background:#F8FBFB;border:1px solid var(--line);border-radius:var(--radius-sm);padding:7px 12px;font-size:12px;font-weight:600}

/* ─── Evaluator header navigation ────────────────────────── */
.evalNav{
  display:flex;align-items:center;gap:clamp(8px,1.5vw,14px);
  flex-wrap:wrap;min-width:0;
}
.evalLinks{
  display:flex;align-items:center;gap:4px;flex-wrap:wrap;
  background:#F5F9F9;border:1px solid var(--line);
  border-radius:99px;padding:4px;
}
.navLink{
  display:inline-flex;align-items:center;gap:7px;
  border:0;background:transparent;cursor:pointer;
  padding:8px 15px;min-height:38px;border-radius:99px;
  font-weight:700;font-size:13px;color:var(--muted);
  white-space:nowrap;
  transition:background .15s,color .15s,box-shadow .15s;
}
.navLink svg{width:16px;height:16px;flex:0 0 16px}
.navLink:hover{color:var(--teal-deep);background:#EAF4F4}
.navLink.on{
  background:var(--surface);color:var(--teal-deep);
  box-shadow:0 1px 2px rgba(13,60,64,.06),0 0 0 1px var(--line);
}
.navLink.on svg{color:var(--teal)}
.topbar .btn.evalLogout{
  display:inline-flex;align-items:center;gap:7px;
  padding:8px 15px;min-height:38px;font-size:13px;
  color:#33454A;background:var(--surface);
}
.topbar .btn.evalLogout svg{width:16px;height:16px;flex:0 0 16px}
.topbar .btn.evalLogout:hover:not(:disabled){border-color:var(--red);color:var(--red)}

/* ─── Unified evaluator Back button ──────────────────────── */
.pageBack{display:flex;align-items:center;gap:10px;margin:0 0 16px;flex-wrap:wrap}
.pageBack.subBack{margin-bottom:14px}
.btn.back{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--surface);border:1px solid var(--line-strong);
  color:#33454A;padding:9px 16px;min-height:40px;
  font-size:13.5px;font-weight:700;border-radius:var(--radius-sm);
}
.btn.back svg{width:16px;height:16px;flex:0 0 16px;color:var(--teal);transition:transform .15s}
.btn.back:hover:not(:disabled){border-color:var(--teal);color:var(--teal-deep);background:var(--teal-tint)}
.btn.back:hover:not(:disabled) svg{transform:translateX(3px)}
.backHint{font-size:12px;color:var(--faint);font-weight:600}

/* ─── Candidate submitted / completed screens ────────────── */
.candDone{text-align:center;padding:clamp(18px,5vw,40px) clamp(4px,3vw,20px)}
.doneMark{
  width:76px;height:76px;border-radius:50%;margin:0 auto 22px;
  display:flex;align-items:center;justify-content:center;
  background:var(--green-tint);color:var(--green);
  box-shadow:0 0 0 8px rgba(18,183,106,.07);
}
.doneMark svg{width:36px;height:36px}
.doneMark.gold{
  background:var(--orange-tint);color:var(--orange);
  box-shadow:0 0 0 8px rgba(242,108,42,.07);
}
.candDone h2{margin:0 0 12px;font-size:clamp(21px,2.4vw + 14px,28px);font-weight:800}
.candDone .muted{margin:0 auto;max-width:440px;font-size:clamp(14px,.6vw + 12px,15.5px)}
.doneDivider{
  width:90px;height:3px;border-radius:99px;background:var(--teal);
  margin:clamp(22px,4vw,30px) auto;opacity:.5;
}
.doneMeta{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.doneCta{min-width:min(280px,100%);padding:14px 34px;font-size:15px;margin-top:4px}
.waitBox{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--amber-tint);border:1px solid #F0E2C4;
  color:var(--amber);border-radius:99px;
  padding:11px 22px;font-size:13.5px;font-weight:700;
  line-height:1.6;text-align:start;
}
.waitDot{
  width:9px;height:9px;border-radius:50%;flex:0 0 9px;
  background:var(--orange);animation:waitPulse 1.6s ease-in-out infinite;
}
@keyframes waitPulse{0%,100%{opacity:.35;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}
.candDone .small{display:block;margin-top:16px;color:var(--faint)}

/* Read-only reference data inside a candidate task */
.dataTable{margin:14px 0}
.dataTable table{min-width:0}
.dataTable th,.dataTable td{padding:9px 14px;font-size:13px}

/* ─── Candidate assessment link ──────────────────────────── */
.linkBlock{margin:16px 0}
.linkRow{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px}
.linkRow input{flex:1 1 300px;min-width:0;font-size:13px;background:var(--surface)}
.linkRow .btn{flex:0 0 auto}

/* ─── Candidate Details tabs ─────────────────────────────── */
.tabs{
  display:flex;gap:6px;flex-wrap:wrap;
  border-bottom:1px solid var(--line);
  margin:22px 0 0;padding-bottom:0;
}
.tab{
  border:1px solid transparent;border-bottom:0;background:transparent;
  padding:11px 20px;min-height:44px;cursor:pointer;
  font-weight:700;font-size:13.5px;color:var(--muted);
  border-radius:var(--radius-sm) var(--radius-sm) 0 0;
  transition:background .15s,color .15s,border-color .15s;
  position:relative;top:1px;
}
.tab:hover{color:var(--teal-deep);background:#F8FBFB}
.tab.on{
  background:var(--surface);border-color:var(--line);
  border-bottom:1px solid var(--surface);
  color:var(--teal-deep);
}
.tabPanel{padding-top:22px}

.dayHead{
  display:flex;justify-content:space-between;align-items:flex-start;
  gap:12px;flex-wrap:wrap;margin-bottom:16px;
}
.dayHead h3{margin:2px 0 6px;font-size:clamp(17px,1.4vw + 12px,20px);font-weight:800}
.dayHead .small span{vertical-align:middle}
.dayStats{margin:0 0 18px}
.dayStats .stat strong{display:block}
.detailFooter{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  border-top:1px solid var(--line);margin-top:26px;padding-top:20px;
}
.summaryTable table{min-width:640px}

/* ─── Customer journey progress ──────────────────────────── */
.journey{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}
.jStep{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 11px;border-radius:99px;
  font-size:11.5px;font-weight:700;line-height:1.5;
  border:1px solid var(--line);background:#F8FBFB;color:var(--faint);
}
.jStep i{
  font-style:normal;width:17px;height:17px;flex:0 0 17px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;font-size:10px;
  background:#E8EEEF;color:var(--muted);
}
.jStep.done{background:var(--teal-tint);border-color:#D2EBEB;color:var(--teal-deep)}
.jStep.done i{background:var(--teal);color:#fff}
.jStep.now{
  background:var(--orange-tint);border-color:#F6DAC6;color:var(--amber);
  box-shadow:0 0 0 1px #F6DAC6;
}
.jStep.now i{background:var(--orange);color:#fff}

/* ─── Evaluator transcript view ──────────────────────────── */
.transcript{margin-top:10px;display:grid;gap:8px}
.tMsg{
  padding:9px 13px;border-radius:var(--radius-sm);line-height:1.8;
  border:1px solid var(--line);background:var(--surface);
  overflow-wrap:anywhere;
}
.tMsg.cand{background:var(--teal-tint);border-color:#D2EBEB}
.stageTag{
  display:inline-block;padding:2px 9px;border-radius:99px;
  background:#EEF3F4;color:var(--muted);
  font-size:10.5px;font-weight:700;margin-inline-end:4px;
}

/* ─── Training Center ────────────────────────────────────── */
.trActions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.feedbackCard{border-color:var(--line-strong)}
.feedbackCard h4{margin:14px 0 8px;font-size:14px}
.fbList{margin:0;padding-inline-start:20px}
.fbList li{margin:7px 0;line-height:1.8}
.fbList.good li::marker{color:var(--green)}
.fbList.bad li::marker{color:var(--orange)}
.answer.suggested{background:var(--teal-tint);border-color:#D2EBEB}

/* ─── Responsive ─────────────────────────────────────────── */

/* Laptop: 1024–1365px — trim outer scale slightly */
@media(max-width:1365px){
  .shell{max-width:100%}
}

/* Tablet: 768–1023px — collapse two-column layouts, ease padding */
@media(max-width:1023px){
  .detailGrid,.grid2,.metrics,.compare{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(3,1fr)}
  .candCard{padding:30px 26px 22px}
  .dashTitle{gap:12px}
  .adminHead>div:last-child{width:100%;display:flex;flex-wrap:wrap;gap:8px}
  .adminHead>div:last-child .btn{flex:1 1 auto}
  .dayStats{grid-template-columns:repeat(3,1fr)}
  .navLink{padding:8px 12px;font-size:12.5px}
  .backHint{display:none}
  .feature{flex:1 1 calc(50% - 8px)}
  .heroCta .btn{min-width:min(300px,80%)}
  .bgFx .blob{filter:blur(60px)}
}

/* Mobile: below 768px — single column everywhere, simplified header */
@media(max-width:767px){
  .stats{grid-template-columns:1fr}
  .dayStats{grid-template-columns:1fr}
  /* header nav drops onto its own full-width row under the branding */
  .evalNav{width:100%;order:3;gap:8px;justify-content:space-between;flex-wrap:nowrap}
  /* labels stay on one line; the strip scrolls sideways if space runs out */
  .evalLinks{
    flex:1 1 auto;min-width:0;flex-wrap:nowrap;gap:2px;
    padding:3px;border-radius:var(--radius-sm);
    overflow-x:auto;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .evalLinks::-webkit-scrollbar{display:none}
  /* soft fade at the scrolling edge so it reads as swipeable */
  .evalNav[data-scrollable="1"] .evalLinks{
    -webkit-mask-image:linear-gradient(to left,#000 84%,rgba(0,0,0,.15) 100%);
    mask-image:linear-gradient(to left,#000 84%,rgba(0,0,0,.15) 100%);
  }
  .navLink{
    flex:0 0 auto;justify-content:center;
    padding:8px 11px;font-size:11.5px;gap:5px;min-height:36px;
    white-space:nowrap;
    border-radius:calc(var(--radius-sm) - 3px);
  }
  .navLink svg{display:none}
  .topbar .btn.evalLogout{flex:0 0 auto;padding:8px 12px;font-size:12px;min-height:36px}
  .topbar .btn.evalLogout span{display:none}
  .pageBack{margin-bottom:14px}
  .btn.back{padding:8px 14px;min-height:38px;font-size:13px}
  .doneMark{width:66px;height:66px}
  .doneMark svg{width:31px;height:31px}
  .waitBox{padding:11px 16px;font-size:12.5px}
  .tabs{gap:4px}
  .tab{flex:1 1 auto;padding:10px 12px;font-size:12.5px;text-align:center}
  .tabPanel{padding-top:18px}
  .dayHead>div:last-child{width:100%;display:flex;gap:8px;flex-wrap:wrap}
  .dayHead>div:last-child .btn{flex:1 1 auto}
  .linkRow{gap:8px}
  .linkRow input{flex:1 1 100%}
  .linkRow .btn{flex:1 1 auto}
  .journey{gap:5px}
  .jStep{font-size:11px;padding:4px 9px}
  .trActions .btn{flex:1 1 auto}
  .detailFooter #saveEval{width:100%}
  .shell{padding:10px 12px 40px}
  .topbar{padding:10px 14px;border-radius:var(--radius)}
  .topbar{gap:10px;flex-wrap:wrap;row-gap:12px}
  .brand{gap:11px;flex:1 1 auto}
  .mark{width:40px;height:40px;flex:0 0 40px;border-radius:11px}
  .brand h1{font-size:14.5px;line-height:1.3}
  .brand p{font-size:11.5px;line-height:1.45}
  .btn.headerLogin{padding:8px 13px;font-size:12.5px;min-height:36px;gap:6px}
  .btn.headerLogin svg{width:15px;height:15px;flex:0 0 15px}
  .candCard{padding:22px 16px 18px}
  .candWrap{margin-top:12px}
  .candStrip{padding:0 2px 10px}
  .statusBar{grid-template-columns:1fr;gap:10px;padding:14px}
  .statusBar>div{padding:0}
  .statusBar>div+div{border-right:0;border-top:1px solid var(--line);padding-top:10px}
  .progressLine{width:100%}
  .hero{padding:26px 18px 28px;margin:16px auto;border-radius:var(--radius)}
  .heroHeadline{font-size:26px}
  .featureRow{gap:10px;margin:24px 0 0}
  .feature{flex:1 1 calc(50% - 5px)}
  .heroCta{margin-top:26px;padding-top:22px}
  .heroCta .btn{width:100%;min-width:0;padding:14px 24px}
  .bgFx .blob{filter:blur(50px)}
  .bgFx .blob3{display:none}
  .bgFx .bgDots{background-size:22px 22px;opacity:.35}
  .bgFx .bgLines{display:none}
  .authCard,.formCard{padding:24px 18px;margin:20px auto;border-radius:var(--radius)}
  .actions{flex-wrap:wrap}
  .actions .btn{flex:1 1 auto;min-width:0}
  .autosaveHint{order:3;width:100%;justify-content:center;padding-top:4px}
  .metrics{grid-template-columns:1fr 1fr}
  .aiComposer{grid-template-columns:1fr}
  .aiComposer .btn{width:100%}
  .aiMsg{max-width:94%}
  .adminHead{align-items:flex-start}
  .dashTitle{width:100%}
  .adminHead>div:last-child{justify-content:flex-start}
  .tablewrap table{min-width:760px}
  .barrow{grid-template-columns:minmax(60px,90px) 1fr 38px;font-size:12px}
  .grid2{gap:12px}
}

@media(max-width:420px){
  .feature{flex:1 1 100%}
  .metrics{grid-template-columns:1fr}
  .brand h1{font-size:13.5px}
  .navLink{padding:8px 9px;font-size:11px}
  /* icon-only, but as a deliberate circular action — not a clipped button */
  .btn.headerLogin{width:38px;height:38px;min-height:38px;padding:0;border-radius:50%;justify-content:center;background:var(--teal-tint);border-color:#D2EBEB}
  .btn.headerLogin span{display:none}
  .btn.headerLogin svg{width:18px;height:18px;flex:0 0 18px}
}
