/* ===== KarirKita — Job Application Flow ===== */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', monospace;

  /* color tokens — primary is overridden from JS via --brand */
  --brand: #4f46e5;
  --brand-ink: #ffffff;
  --brand-soft: color-mix(in oklab, var(--brand) 12%, white);
  --brand-soft2: color-mix(in oklab, var(--brand) 6%, white);
  --brand-ring: color-mix(in oklab, var(--brand) 35%, white);

  --accent: #fb7185;
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;

  --bg: #f5f6fb;
  --bg2: #eef0f8;
  --surface: #ffffff;
  --ink: #1b1f2e;
  --ink2: #41475c;
  --muted: #7b8298;
  --line: #e7e9f2;
  --line2: #f0f1f7;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(20,22,40,.05), 0 1px 3px rgba(20,22,40,.06);
  --shadow: 0 4px 14px rgba(28,32,60,.07), 0 2px 6px rgba(28,32,60,.05);
  --shadow-lg: 0 24px 60px rgba(28,32,60,.14), 0 8px 24px rgba(28,32,60,.08);
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
#root { min-height: 100vh; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
a { color: var(--brand); }

::selection { background: var(--brand-ring); }

/* ---------- App shell ---------- */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--brand-soft2), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, color-mix(in oklab, var(--accent) 7%, transparent), transparent 60%),
    var(--bg);
}

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in oklab, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .spacer { flex: 1; }

.content {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 44px) clamp(16px, 4vw, 40px) 64px;
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 11px; user-select: none; }
.logo-img img { width: 36px; height: 36px; display: block; border-radius: 9px; }
.logo-img.on-dark { background: #fff; padding: 5px; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.logo-img.on-dark img { width: 34px; height: 34px; }
.logo-suffix { font-weight: 800; font-size: 19px; letter-spacing: -.5px; color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(140deg, var(--brand), color-mix(in oklab, var(--brand) 55%, var(--accent)));
  color: var(--brand-ink);
  display: grid; place-items: center;
  font-weight: 800; font-size: 17px; letter-spacing: -.5px;
}
.logo-name { font-weight: 800; font-size: 18px; letter-spacing: -.4px; }
.logo-name b { color: var(--brand); }

/* ---------- Stepper ---------- */
.stepper { display: flex; align-items: center; gap: 6px; }
.step-dot {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  white-space: nowrap;
}
.step-dot .num {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12.5px;
  background: var(--line); color: var(--ink2);
  transition: all .3s ease;
}
.step-dot.active .num { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 4px var(--brand-ring); }
.step-dot.done .num { background: var(--success); color: #fff; }
.step-dot.active { color: var(--ink); }
.step-line { width: 26px; height: 2px; background: var(--line); border-radius: 2px; }
.step-line.done { background: var(--success); }
@media (max-width: 720px){ .step-dot .label { display: none; } .step-line { width: 14px; } }
@media (max-width: 480px){
  .topbar { gap: 8px; padding: 12px clamp(14px, 4vw, 40px); }
  .stepper { gap: 3px; }
  .step-dot .num { width: 20px; height: 20px; font-size: 11px; }
  .step-line { width: 8px; }
  .lang-toggle button { padding: 4px 8px; font-size: 11px; }
}

/* ---------- Lang toggle ---------- */
.lang-toggle {
  display: inline-flex; background: var(--line2); border-radius: 999px; padding: 3px;
  border: 1px solid var(--line);
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--muted);
  font-weight: 700; font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
}
.lang-toggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card-pad { padding: clamp(22px, 4vw, 38px); }

.center-wrap { display: flex; flex-direction: column; align-items: center; }
.col-narrow { width: 100%; max-width: 480px; }
.col-mid { width: 100%; max-width: 640px; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); font-weight: 600;
}
h1.title { font-size: clamp(24px, 4.5vw, 32px); font-weight: 800; letter-spacing: -.6px; margin: 10px 0 6px; line-height: 1.12; }
.sub { color: var(--muted); font-size: 15px; margin: 0 0 4px; }

/* ---------- Split auth layout ---------- */
.split {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.split-brand {
  padding: clamp(28px, 4vw, 46px);
  background:
    radial-gradient(600px 300px at 110% -20%, color-mix(in oklab, var(--accent) 40%, var(--brand)), transparent 60%),
    linear-gradient(150deg, var(--brand), color-mix(in oklab, var(--brand) 60%, #1a1a40));
  color: #fff; display: flex; flex-direction: column; gap: 22px;
  position: relative; overflow: hidden;
}
.split-brand .logo-name { color: #fff; }
.split-brand .logo-name b { color: #fff; }
.split-brand .logo-mark { background: rgba(255,255,255,.16); box-shadow: none; backdrop-filter: blur(4px); }
.split-form { padding: clamp(24px, 4vw, 42px); display: flex; flex-direction: column; justify-content: center; }
.brand-hero-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.8px; line-height: 1.1; }
.brand-bullets { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.brand-bullet { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: rgba(255,255,255,.9); }
.brand-bullet .bi { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.deco-ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.14); }
@media (max-width: 760px){ .split { grid-template-columns: 1fr; } .split-brand { display: none; } }

/* ---------- Form fields ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink2); margin-bottom: 7px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field .err { font-size: 12.5px; color: var(--danger); margin-top: 6px; font-weight: 600; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .lead { position: absolute; left: 13px; color: var(--muted); display: grid; place-items: center; pointer-events: none; }
.input-wrap .lead-text { position: absolute; left: 13px; color: var(--ink2); font-weight: 600; font-size: 14.5px; pointer-events: none; }
.inp, .sel, .ta {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.inp.has-lead { padding-left: 42px; }
.inp.has-lead-text { padding-left: 64px; }
.inp:focus, .sel:focus, .ta:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.inp.invalid { border-color: var(--danger); }
.inp::placeholder, .ta::placeholder { color: #aab0c2; }
.inp-verified { background: color-mix(in oklab, var(--success) 6%, white); border-color: color-mix(in oklab, var(--success) 30%, white); color: var(--ink); cursor: default; padding-right: 38px; }
.inp-verified:focus { border-color: color-mix(in oklab, var(--success) 40%, white); box-shadow: 0 0 0 4px color-mix(in oklab, var(--success) 12%, white); }
.lead-verified { position: absolute; right: 12px; color: var(--success); display: grid; place-items: center; pointer-events: none; }
.ta { resize: vertical; min-height: 84px; line-height: 1.5; }
.sel { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%237b8298' stroke-width='2'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px){ .row2 { grid-template-columns: 1fr; } }

/* checkbox */
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin-top: 1px; flex: 0 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px; padding: 13px 20px; transition: all .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px color-mix(in oklab, var(--brand) 30%, transparent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:disabled { background: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-ring); background: var(--brand-soft2); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-soft:hover { filter: brightness(.98); }
.btn-text { background: transparent; color: var(--brand); padding: 8px 10px; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 24px; font-size: 16px; }

/* ---------- File drop ---------- */
.drop {
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--brand-soft2);
  padding: 28px 22px; text-align: center; transition: all .18s ease; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop .dicon { width: 52px; height: 52px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; color: var(--brand); box-shadow: var(--shadow-sm); }
.drop .dtitle { font-weight: 700; font-size: 15px; }
.drop .dsub { font-size: 13px; color: var(--muted); }

.filechip {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.filechip .ficon { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #fff; }
.filechip .fmeta { flex: 1; min-width: 0; }
.filechip .fname { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filechip .fsize { font-size: 12px; color: var(--muted); }
.filechip .fx { border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: 8px; }
.filechip .fx:hover { background: var(--line2); color: var(--danger); }

/* image upload tile */
.imgtile {
  border: 2px dashed var(--line); border-radius: var(--radius); background: var(--brand-soft2);
  aspect-ratio: 1/1; display: grid; place-items: center; cursor: pointer; overflow: hidden;
  text-align: center; transition: all .18s; position: relative;
}
.imgtile.wide { aspect-ratio: 1.586/1; }
.imgtile:hover { border-color: var(--brand); }
.imgtile .ph { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px; color: var(--muted); }
.imgtile .ph .t { font-weight: 700; font-size: 13.5px; color: var(--ink2); }
.imgtile .ph .s { font-size: 11.5px; }
.imgtile .filled { position: absolute; inset: 0; display: grid; place-items: center; }
.imgtile .filled .doc {
  width: 100%; height: 100%;
  background-image: repeating-linear-gradient(45deg, var(--brand-soft) 0 12px, color-mix(in oklab, var(--brand) 16%, white) 12px 24px);
  display: grid; place-items: center;
}
.imgtile .badge { position: absolute; top: 8px; right: 8px; background: var(--success); color: #fff; border-radius: 999px; width: 26px; height: 26px; display: grid; place-items: center; box-shadow: var(--shadow); }
.imgtile .cap { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.5); color: #fff; font-family: var(--font-mono); font-size: 10.5px; padding: 4px; }

/* ---------- Scanning (CV parse) ---------- */
.scanwrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--line); background: var(--surface); }
.scan-doc { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.scan-line { height: 11px; border-radius: 6px; background: var(--line2); }
.scan-beam {
  position: absolute; left: 0; right: 0; height: 64px; top: -64px;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--brand) 22%, transparent), transparent);
  border-top: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  animation: beam 1.6s ease-in-out infinite;
}
@keyframes beam { 0%{ top:-64px } 100%{ top:100% } }
.parse-list { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.parse-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); opacity: .4; transition: opacity .3s, color .3s; }
.parse-item.on { opacity: 1; color: var(--ink); }
.parse-item .pc { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); flex: 0 0 auto; }
.parse-item.on .pc { background: var(--success); color: #fff; }

/* ---------- Method choice ---------- */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px){ .method-grid { grid-template-columns: 1fr; } }
.method {
  text-align: left; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 24px; transition: all .18s ease; position: relative; overflow: hidden;
}
.method:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.method .mi { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.method .recommended { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.method h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.method p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.method .go { margin-top: 18px; display: flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: 14px; }

/* ---------- Banner ---------- */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 20px; }
.banner.ok { background: color-mix(in oklab, var(--success) 12%, white); color: color-mix(in oklab, var(--success) 75%, #0a3); border: 1px solid color-mix(in oklab, var(--success) 30%, white); }
.banner.err-banner { background: color-mix(in oklab, var(--danger) 10%, white); color: color-mix(in oklab, var(--danger) 78%, #600); border: 1px solid color-mix(in oklab, var(--danger) 32%, white); }
.banner .bi { flex: 0 0 auto; }
.banner b { font-weight: 800; }

/* section heading inside forms */
.fsec { margin: 26px 0 14px; display: flex; align-items: center; gap: 10px; }
.fsec:first-child { margin-top: 4px; }
.fsec .n { width: 24px; height: 24px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 12px; font-weight: 800; font-family: var(--font-mono); }
.fsec h3 { margin: 0; font-size: 15.5px; font-weight: 800; letter-spacing: -.2px; }

/* ---------- DISC ---------- */
.disc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.disc-prog { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); font-weight: 600; }
.disc-table { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.disc-colhead { display: grid; grid-template-columns: 1fr 92px 92px; align-items: center; gap: 8px; padding: 0 4px; }
.disc-colhead .ch { text-align: center; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.disc-colhead .most { color: var(--success); }
.disc-colhead .least { color: var(--danger); }
.disc-row { display: grid; grid-template-columns: 1fr 92px 92px; align-items: center; gap: 8px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s; }
.disc-row .word { font-weight: 600; font-size: 15px; }
.disc-pick { width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; transition: all .15s; color: transparent; }
.disc-pick.most.on { border-color: var(--success); background: var(--success); color: #fff; }
.disc-pick.least.on { border-color: var(--danger); background: var(--danger); color: #fff; }
.disc-pick:hover { border-color: var(--ink2); }
@media (max-width: 560px){
  .disc-colhead, .disc-row { grid-template-columns: 1fr 60px 60px; }
  .disc-colhead .ch { font-size: 10px; }
  .disc-pick { width: 30px; height: 30px; }
}

/* ---------- IQ ---------- */
.iq-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; position: sticky; top: 70px; z-index: 10; }
.timer { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.timer.warn { color: var(--danger); border-color: color-mix(in oklab, var(--danger) 40%, white); background: color-mix(in oklab, var(--danger) 8%, white); }
.iq-track { flex: 1; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.iq-fill { height: 100%; background: linear-gradient(90deg, var(--brand), color-mix(in oklab, var(--brand) 55%, var(--accent))); border-radius: 999px; transition: width .4s ease; }
.iq-q { font-size: clamp(18px, 2.6vw, 22px); font-weight: 800; letter-spacing: -.3px; line-height: 1.35; margin: 0 0 6px; }
.iq-figs { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.iq-fig { width: 64px; height: 64px; border-radius: 12px; border: 1.5px solid var(--line); display: grid; place-items: center; background: var(--brand-soft2); font-family: var(--font-mono); font-size: 22px; font-weight: 700; }
.iq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
@media (max-width: 540px){ .iq-opts { grid-template-columns: 1fr; } }
.iq-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px auto; max-width: 240px; }
.iq-matrix-cell { aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 8px; background: var(--brand-soft2); display: grid; place-items: center; padding: 4px; color: var(--text); overflow: hidden; }
.iq-matrix-cell svg { width: 100%; height: 100%; display: block; }
.iq-matrix-unknown { border-style: dashed; border-color: var(--brand); background: color-mix(in oklab, var(--brand) 8%, white); }
.iq-opt-fig { flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px; }
.iq-opt-fig svg { width: 38px; height: 38px; flex: 0 0 38px; display: block; }
.iq-opt {
  text-align: left; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  font-size: 15px; font-weight: 600; transition: all .15s;
}
.iq-opt:hover { border-color: var(--brand-ring); background: var(--brand-soft2); }
.iq-opt.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-ring); }
.iq-opt .ol { width: 28px; height: 28px; border-radius: 8px; background: var(--line2); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.iq-opt.on .ol { background: var(--brand); color: #fff; }
.iq-nums { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.iq-num { width: 36px; height: 36px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13px; color: var(--ink2); display: grid; place-items: center; }
.iq-num.cur { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.iq-num.ans { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); }

/* ---------- Done ---------- */
.done-hero { text-align: center; }
.done-check { width: 92px; height: 92px; border-radius: 50%; background: color-mix(in oklab, var(--success) 14%, white); color: var(--success); display: grid; place-items: center; margin: 0 auto 22px; animation: pop .5s cubic-bezier(.2,1.4,.5,1); }
@keyframes pop { 0%{ transform: scale(.4); opacity: 0 } 100%{ transform: scale(1); opacity: 1 } }
.summary { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 26px; text-align: left; }
@media (max-width: 540px){ .summary { grid-template-columns: 1fr; } }
.sum-item { padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.sum-item .k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.sum-item .v { font-size: 16px; font-weight: 800; margin-top: 4px; letter-spacing: -.2px; }
.sum-item .badge2 { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }

/* ---------- OTP ---------- */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 24px 0 8px; }
.otp-box {
  width: 52px; height: 60px; text-align: center; font-size: 26px; font-weight: 800;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  outline: none; transition: all .15s;
}
.otp-box:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.otp-box.filled { border-color: var(--brand); background: var(--brand-soft2); }
@media (max-width: 420px){ .otp-box { width: 44px; height: 52px; font-size: 22px; } }
.resend { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* helper */
.muted { color: var(--muted); }

/* ---------- Aptitude (SJT + reasoning) ---------- */
.sjt-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; background: var(--surface); transition: border-color .15s; }
.sjt-card.answered { border-color: color-mix(in oklab, var(--brand) 35%, var(--line)); }
.sjt-num { font-family: var(--font-mono); font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: .04em; }
.sjt-scn { background: var(--brand-soft2); border-radius: var(--radius-sm); padding: 13px 15px; margin: 10px 0 12px; font-size: 14.5px; color: var(--ink2); display: flex; gap: 10px; }
.sjt-scn .ic { color: var(--brand); flex: 0 0 auto; margin-top: 1px; }
.sjt-act { font-weight: 700; font-size: 15.5px; letter-spacing: -.2px; margin-bottom: 16px; }
.sjt-act .tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; margin-right: 8px; vertical-align: 2px; text-transform: uppercase; letter-spacing: .05em; }
.likert { display: flex; gap: 8px; }
.lk { flex: 1; min-width: 0; height: 52px; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); font-weight: 800; font-size: 16px; color: var(--ink2); display: grid; place-items: center; transition: all .14s; font-family: var(--font-mono); position: relative; }
.lk:hover { border-color: var(--brand-ring); background: var(--brand-soft2); }
.lk.on { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 4px 12px color-mix(in oklab, var(--brand) 30%, transparent); }
.likert-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.likert-picked { text-align: center; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--brand); min-height: 18px; }
@media (max-width: 540px){ .lk { height: 46px; font-size: 14px; } }

.apt-partbar { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--brand-soft2); border: 1px solid var(--line); }
.apt-partbar .pn { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.apt-partbar .pt { font-weight: 800; font-size: 15px; letter-spacing: -.2px; }
.apt-partbar .ps { font-size: 12.5px; color: var(--muted); }
.tcenter { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.flexbtns { display: flex; gap: 12px; margin-top: 26px; }
.flexbtns .grow { flex: 1; }
.fadein { animation: fadein .4s ease both; }
@keyframes fadein { from { transform: translateY(10px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .fadein { animation: none; } }

/* simulated note pill */
.sim-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); background: var(--line2); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }

/* ---------- App footer ---------- */
.app-footer { margin-top: auto; border-top: 1px solid var(--line); background: #fff; }
.af-inner { max-width: var(--maxw); margin: 0 auto; padding: 36px clamp(16px, 4vw, 40px) 24px; }
.footer-simple { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--ink2); font-size: 14px; text-decoration: none; }
.footer-nav a:hover { color: var(--brand); }
.footer-bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--brand); }
.footer-simple .logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.footer-simple .logo img { width: 36px; height: 36px; border-radius: 9px; }
.footer-simple .logo b { font-weight: 800; font-size: 18px; letter-spacing: -.5px; }
.footer-simple .logo .k { color: var(--brand); }

/* repeatable sub-cards (work history) */
.subcard { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 16px 16px 2px; margin-bottom: 12px; background: var(--brand-soft2); }
.subcard-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.subcard-head .t { font-weight: 800; font-size: 13px; color: var(--brand); font-family: var(--font-mono); letter-spacing: .02em; }
.subcard-head .rm { border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 12.5px; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 7px; }
.subcard-head .rm:hover { color: var(--danger); background: color-mix(in oklab, var(--danger) 8%, white); }
.addbtn { display: inline-flex; align-items: center; gap: 7px; border: 1.5px dashed var(--line); background: var(--surface); color: var(--brand); font-weight: 700; font-size: 13.5px; padding: 12px 16px; border-radius: var(--radius-sm); cursor: pointer; width: 100%; justify-content: center; transition: all .15s; }
.addbtn:hover { border-color: var(--brand); background: var(--brand-soft2); }
.note-line { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--ink2); background: var(--brand-soft2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; margin-top: 4px; }
.note-line .ni { color: var(--brand); flex: 0 0 auto; margin-top: 1px; }

/* ---------- Member dashboard ---------- */
.member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px){ .member-grid { grid-template-columns: 1fr; } }
.dash-hero {
  border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 32px); color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(500px 260px at 110% -30%, color-mix(in oklab, var(--accent) 55%, var(--brand)), transparent 60%),
    linear-gradient(150deg, var(--brand), color-mix(in oklab, var(--brand) 55%, #2a0d3a));
}
.dash-hero .deco-ring { border-color: rgba(255,255,255,.16); }
.dash-hi { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.6px; }
.dash-sub { color: rgba(255,255,255,.85); font-size: 14.5px; margin-top: 4px; }
.dash-submitted { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; background: rgba(255,255,255,.16); padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; backdrop-filter: blur(4px); }
.dash-meta { display: flex; gap: 22px; margin-top: 22px; flex-wrap: wrap; }
.dash-meta .dm .k { font-size: 11.5px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.dash-meta .dm .v { font-size: 15px; font-weight: 800; margin-top: 3px; font-family: var(--font-mono); }

.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.dash-card h3 { margin: 0 0 16px; font-size: 16px; font-weight: 800; letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; }

/* timeline */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 14px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; }
.tl-node { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-weight: 700; font-size: 12px; z-index: 1; }
.tl-node.done { background: var(--success); color: #fff; }
.tl-node.cur { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-ring); }
.tl-node.todo { background: var(--line); color: var(--muted); }
.tl-bar { width: 2px; flex: 1; background: var(--line); margin: 2px 0; min-height: 22px; }
.tl-bar.done { background: var(--success); }
.tl-body { padding-bottom: 18px; }
.tl-item:last-child .tl-body { padding-bottom: 0; }
.tl-title { font-weight: 700; font-size: 14.5px; }
.tl-badge { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 8px; }
.tl-badge.done { background: color-mix(in oklab, var(--success) 14%, white); color: color-mix(in oklab, var(--success) 70%, #063); }
.tl-badge.cur { background: var(--brand-soft); color: var(--brand); }
.tl-badge.todo { background: var(--line2); color: var(--muted); }
.tl-node.skip { background: var(--line); color: var(--muted); text-decoration: line-through; }
.tl-badge.skip { background: var(--line2); color: var(--muted); }
.tl-when { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* result tiles */
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.res { padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--brand-soft2); }
.res .rk { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.res .rv { font-size: 26px; font-weight: 800; color: var(--brand); margin-top: 4px; letter-spacing: -.4px; }
.res .rs { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.res.full { grid-column: 1 / -1; background: var(--surface); }
.res.full .rv { font-size: 18px; color: var(--ink); }

.edit-cta { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); margin-top: 16px; cursor: pointer; transition: all .15s; background: var(--surface); width: 100%; text-align: left; }
.edit-cta:hover { border-color: var(--brand); background: var(--brand-soft2); }
.edit-cta .ei { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.edit-cta .et { font-weight: 700; font-size: 14.5px; }
.edit-cta .es { font-size: 12.5px; color: var(--muted); }

/* Contract popup content */
.contract-body{font-size:13.5px;line-height:1.75;color:#1a1a2e;}
.contract-body h1{font-size:20px;font-weight:800;margin:0 0 8px;}
.contract-body h2{font-size:17px;font-weight:800;text-align:center;margin:0 0 6px;}
.contract-body h3{font-size:14px;font-weight:700;margin:14px 0 5px;color:#1a1a2e;}
.contract-body p{margin:0 0 8px;font-size:13.5px;line-height:1.75;}
.contract-body ol,.contract-body ul{padding-left:20px;margin:4px 0 10px;}
.contract-body li{font-size:13.5px;line-height:1.75;margin-bottom:3px;}
.contract-body table{width:100%;border-collapse:collapse;}
.contract-body td,.contract-body th{border:1px solid #d1d5db;padding:6px 10px;font-size:13px;}
.contract-body strong{font-weight:700;}
.contract-body em{font-style:italic;}
.contract-body u{text-decoration:underline;}
/* Quill alignment classes */
.contract-body .ql-align-center{text-align:center;}
.contract-body .ql-align-right{text-align:right;}
.contract-body .ql-align-justify{text-align:justify;}
/* Quill indentation */
.contract-body .ql-indent-1{padding-left:3em;}
.contract-body .ql-indent-2{padding-left:6em;}
.contract-body .ql-indent-3{padding-left:9em;}
.contract-body .ql-indent-4{padding-left:12em;}
.contract-body .ql-indent-5{padding-left:15em;}
.contract-body .ql-indent-6{padding-left:18em;}
.contract-body .ql-indent-7{padding-left:21em;}
.contract-body .ql-indent-8{padding-left:24em;}
/* Quill font sizes */
.contract-body .ql-size-small{font-size:0.75em;}
.contract-body .ql-size-large{font-size:1.5em;}
.contract-body .ql-size-huge{font-size:2em;}
/* Quill list markers */
.contract-body ol>li{list-style-type:decimal;}
.contract-body ul>li{list-style-type:disc;}
