:root{
  --bg:#fcf9f8; --surface:#ffffff; --surface-2:#f5eeec; --surface-3:#efe5e2;
  --border:#e8dedb; --border-strong:#d6c9c5;
  --text:#18131f; --text-muted:#625b6c; --text-faint:#857e8f;
  --accent:#ff0718; --accent-hover:#d90212; --accent-tint:#ffe4e2; --on-accent:#ffffff;
  --dark-bg:#18131f; --dark-surface:#1f1928; --dark-line:#352c40; --dark-text:#edede3; --dark-muted:#c6c1cd;
  --shadow:0 1px 2px rgba(24,19,31,.04), 0 16px 40px -22px rgba(24,19,31,.28);
  --st-draft-fg:#625b6c;   --st-draft-bg:#efe5e2;
  --st-received-fg:#1d4ed8; --st-received-bg:#e1e9fc;
  --st-review-fg:#a3590a;  --st-review-bg:#fbecd0;
  --st-pending-fg:#c2410c; --st-pending-bg:#fbe3d4;
  --st-paused-fg:#5b5360;  --st-paused-bg:#e9e4ee;
  --st-approved-fg:#15803d; --st-approved-bg:#dcf1e2;
  --st-closed-fg:#7a1d1d;  --st-closed-bg:#f3dcdc;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#18131f; --surface:#201a29; --surface-2:#272031; --surface-3:#2f2739;
    --border:#3b3248; --border-strong:#4d4359; --text:#edede3; --text-muted:#b9b3c1; --text-faint:#857e8f;
    --accent:#ff3b3f; --accent-hover:#ff5b5e; --accent-tint:rgba(255,59,63,.16); --on-accent:#18131f;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 16px 40px -18px rgba(0,0,0,.6);
    --st-draft-fg:#c6c1cd; --st-draft-bg:#2f2a37;
    --st-received-fg:#9db6fb; --st-received-bg:#202a45;
    --st-review-fg:#f1c069; --st-review-bg:#3a2c15;
    --st-pending-fg:#ff9466; --st-pending-bg:#3d2416;
    --st-paused-fg:#c9bfd2; --st-paused-bg:#312a38;
    --st-approved-fg:#7bdd9c; --st-approved-bg:#163527;
    --st-closed-fg:#f0a3a3; --st-closed-bg:#3b1d1d;
  }
}
:root[data-theme="dark"]{
  --bg:#18131f; --surface:#201a29; --surface-2:#272031; --surface-3:#2f2739;
  --border:#3b3248; --border-strong:#4d4359; --text:#edede3; --text-muted:#b9b3c1; --text-faint:#857e8f;
  --accent:#ff3b3f; --accent-hover:#ff5b5e; --accent-tint:rgba(255,59,63,.16); --on-accent:#18131f;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 16px 40px -18px rgba(0,0,0,.6);
  --st-draft-fg:#c6c1cd; --st-draft-bg:#2f2a37;
  --st-received-fg:#9db6fb; --st-received-bg:#202a45;
  --st-review-fg:#f1c069; --st-review-bg:#3a2c15;
  --st-pending-fg:#ff9466; --st-pending-bg:#3d2416;
  --st-paused-fg:#c9bfd2; --st-paused-bg:#312a38;
  --st-approved-fg:#7bdd9c; --st-approved-bg:#163527;
  --st-closed-fg:#f0a3a3; --st-closed-bg:#3b1d1d;
}

*{box-sizing:border-box;}
[hidden]{display:none !important;}
html{scroll-behavior:smooth;}
body{margin:0; background:var(--bg); color:var(--text); font-family:'Hanken Grotesk', system-ui, sans-serif; font-size:15.5px; line-height:1.55; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4{font-family:'Hanken Grotesk', system-ui, sans-serif; font-weight:800; text-wrap:balance; margin:0; letter-spacing:-.015em;}
p{margin:0;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; color:inherit;}
input,select,textarea{font-family:inherit; color:inherit;}
.mono{font-family:'IBM Plex Mono', ui-monospace, monospace;}
.logo{height:42px; width:auto; color:var(--text); flex:none; display:block;}
.logo-link{display:inline-flex; flex:none; width:max-content; transition:opacity .15s ease;}
.logo-link:hover{opacity:.8;}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:4px;}
::selection{background:var(--accent); color:var(--on-accent);}

.screen{display:none; min-height:100vh;}
.screen.active{display:block;}

/* ---------- buttons & small bits ---------- */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:999px; padding:13px 24px; font-weight:700; font-size:14.5px; cursor:pointer; border:1px solid transparent; white-space:nowrap; transition:transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;}
.btn.primary{background:var(--accent); color:var(--on-accent);}
.btn.primary:hover{background:var(--accent-hover); transform:translateY(-1px); box-shadow:0 12px 22px -12px rgba(255,7,24,.55);}
.btn.ghost{background:transparent; border-color:var(--border-strong); color:var(--text);}
.btn.ghost:hover{background:var(--surface-2);}
.btn.soft{background:var(--surface-2); color:var(--text);}
.btn.soft:hover{background:var(--surface-3);}
.btn.sm{padding:8px 15px; font-size:13px;}
.btn:disabled{opacity:.45; cursor:not-allowed; transform:none; box-shadow:none;}
.btn-link{background:none; border:none; padding:0; font-weight:700; font-size:13.5px; color:var(--accent); cursor:pointer;}
.btn-link:hover{text-decoration:underline;}
.icon-btn{width:38px; height:38px; border-radius:50%; border:1px solid var(--border); background:var(--surface); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; color:var(--text-muted); flex:none; transition:color .16s ease,border-color .16s ease;}
.icon-btn:hover{color:var(--accent); border-color:var(--accent);}
.icon-btn svg{width:17px; height:17px;}
.theme-toggle .moon{display:none;}
:root[data-theme="dark"] .theme-toggle .sun{display:none;}
:root[data-theme="dark"] .theme-toggle .moon{display:block;}
.eyebrow{font-family:'IBM Plex Mono'; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); display:flex; align-items:center; gap:8px;}
.eyebrow i{width:6px; height:6px; border-radius:50%; background:var(--accent); display:block;}
.pill{display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:700; padding:4px 11px 4px 9px; border-radius:999px; white-space:nowrap;}
.pill::before{content:''; width:7px; height:7px; border-radius:50%; background:currentColor;}
.pill.draft{background:var(--st-draft-bg); color:var(--st-draft-fg);}
.pill.received{background:var(--st-received-bg); color:var(--st-received-fg);}
.pill.review{background:var(--st-review-bg); color:var(--st-review-fg);}
.pill.pending{background:var(--st-pending-bg); color:var(--st-pending-fg);}
.pill.paused,.pill.feedback{background:var(--st-paused-bg); color:var(--st-paused-fg);}
.pill.approved{background:var(--st-approved-bg); color:var(--st-approved-fg);}
.pill.closed{background:var(--st-closed-bg); color:var(--st-closed-fg);}
.idchip{font-family:'IBM Plex Mono'; font-size:12px; padding:4px 9px; border-radius:7px; background:var(--surface-2); color:var(--text-muted); border:1px solid var(--border); letter-spacing:.02em;}
.card{background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow);}
.pad{padding:22px 24px;}

/* ---------- typeform ---------- */
.tf{min-height:100vh; display:flex; flex-direction:column;}
.tf-progress{position:fixed; top:0; left:0; right:0; height:4px; background:var(--surface-3); z-index:60;}
.tf-progress i{display:block; height:100%; width:0; background:var(--accent); transition:width .35s ease;}
.tf-top{display:flex; align-items:center; gap:16px; padding:22px clamp(20px,5vw,56px) 0;}
.tf-top .spacer{flex:1;}
.tf-saved{font-size:12.5px; color:var(--text-faint); display:flex; align-items:center; gap:6px;}
.tf-saved b{color:var(--st-approved-fg); font-weight:700;}
.tf-main{flex:1; display:flex; align-items:center; justify-content:center; padding:36px clamp(20px,5vw,56px) 24px;}
.tf-q{width:min(700px,100%);}
.tf-q.anim{animation:qin .38s ease both;}
@keyframes qin{from{opacity:0; transform:translateY(18px);} to{opacity:1; transform:none;}}
@media (prefers-reduced-motion: reduce){ .tf-q.anim{animation:none;} html{scroll-behavior:auto;} }
.q-block{font-family:'IBM Plex Mono'; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--text-faint); margin-bottom:16px; display:flex; align-items:center; gap:8px;}
.q-block i{width:6px; height:6px; border-radius:50%; background:var(--accent); display:block;}
.q-title{font-size:clamp(1.7rem,4.2vw,2.7rem); line-height:1.1; display:flex; gap:12px; align-items:baseline;}
.q-title .qn{font-family:'IBM Plex Mono'; font-size:.42em; color:var(--accent); font-weight:500; letter-spacing:.04em; white-space:nowrap; transform:translateY(-.25em);}
.q-title .req{color:var(--accent);}
.q-hint{color:var(--text-muted); margin-top:12px; font-size:16.5px; max-width:56ch;}
.q-field{margin-top:30px;}
.tf-input,.tf-text{width:100%; background:transparent; border:none; border-bottom:2px solid var(--border-strong); padding:10px 0 12px; font-size:clamp(1.25rem,2.8vw,1.7rem); font-weight:600; outline:none; border-radius:0; transition:border-color .2s ease;}
.tf-input::placeholder,.tf-text::placeholder{color:var(--text-faint); font-weight:500;}
.tf-input:focus,.tf-text:focus{border-bottom-color:var(--accent);}
.tf-text{resize:none; min-height:128px; line-height:1.45; font-size:clamp(1.05rem,2.2vw,1.3rem); font-weight:500;}
.tf-row{display:grid; grid-template-columns:1fr 110px; gap:22px;}
.tf-row.eq{grid-template-columns:1fr 1fr;}
.affix{display:flex; align-items:center; gap:12px; border-bottom:2px solid var(--border-strong); transition:border-color .2s ease;}
.affix:focus-within{border-bottom-color:var(--accent);}
.affix span{font-size:clamp(1.25rem,2.8vw,1.7rem); font-weight:700; color:var(--text-faint);}
.affix .tf-input{border-bottom:none;}
.tf-select{background:transparent; border:none; border-bottom:2px solid var(--border-strong); padding:10px 0 12px; font-size:clamp(1.25rem,2.8vw,1.7rem); font-weight:600; width:100%; outline:none; border-radius:0; cursor:pointer; appearance:none;}
.tf-select:focus{border-bottom-color:var(--accent);}
.tf-select option{color:#18131f;}
.q-meta{display:flex; justify-content:space-between; gap:12px; margin-top:8px; font-size:12.5px; color:var(--text-faint);}
.q-error{color:var(--accent); font-weight:600; font-size:14px; margin-top:12px; min-height:20px;}
.q-actions{display:flex; align-items:center; gap:16px; margin-top:22px; flex-wrap:wrap;}
.q-actions .keyhint{font-size:12.5px; color:var(--text-faint);}
.q-actions kbd{font-family:'IBM Plex Mono'; font-size:11px; padding:2px 6px; border-radius:5px; border:1px solid var(--border-strong); background:var(--surface-2);}
.q-skip{margin-left:auto;}
.tf-foot{padding:0 clamp(20px,5vw,56px) 28px; display:flex; align-items:center; gap:12px;}

.choices{display:flex; flex-direction:column; gap:10px; margin-top:30px; max-width:480px;}
.choice{display:flex; align-items:center; gap:14px; width:100%; text-align:left; background:var(--surface); border:1.5px solid var(--border-strong); border-radius:12px; padding:13px 16px; font-size:18px; font-weight:600; cursor:pointer; transition:border-color .15s ease, background-color .15s ease, transform .15s ease;}
.choice:hover{border-color:var(--accent); transform:translateX(3px);}
.choice .k{font-family:'IBM Plex Mono'; font-size:12px; width:26px; height:26px; border-radius:7px; border:1.5px solid var(--border-strong); display:flex; align-items:center; justify-content:center; color:var(--text-muted); flex:none;}
.choice.sel{border-color:var(--accent); background:var(--accent-tint);}
.choice.sel .k{background:var(--accent); color:var(--on-accent); border-color:var(--accent);}

.checks{display:flex; flex-direction:column; gap:14px; margin-top:28px;}
.check{display:flex; gap:13px; align-items:flex-start; cursor:pointer; font-size:15.5px; line-height:1.45;}
.check input{position:absolute; opacity:0; pointer-events:none;}
.check .box{width:22px; height:22px; border-radius:6px; border:2px solid var(--border-strong); flex:none; margin-top:1px; display:flex; align-items:center; justify-content:center; transition:all .15s ease; background:var(--surface);}
.check .box svg{width:13px; height:13px; stroke:var(--on-accent); opacity:0;}
.check input:checked + .box{background:var(--accent); border-color:var(--accent);}
.check input:checked + .box svg{opacity:1;}
.check input:focus-visible + .box{outline:2px solid var(--accent); outline-offset:2px;}
.check a{color:var(--accent); font-weight:700; text-decoration:underline; text-underline-offset:3px;}
.check small{display:block; color:var(--text-faint); font-size:12.8px; margin-top:2px;}

.pw-wrap{position:relative;}
.pw-wrap .tf-input{padding-right:64px;}
.pw-show{position:absolute; right:0; top:50%; transform:translateY(-50%); background:none; border:none; font-weight:700; font-size:13px; color:var(--text-muted); cursor:pointer; padding:6px;}
.meter{display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-top:16px;}
.meter i{height:5px; border-radius:3px; background:var(--surface-3); transition:background-color .2s ease;}
.meter[data-s="1"] i:nth-child(-n+1){background:#e5484d;}
.meter[data-s="2"] i:nth-child(-n+2){background:#f0a020;}
.meter[data-s="3"] i:nth-child(-n+3){background:#7bb241;}
.meter[data-s="4"] i{background:#2f9e5a;}
.rules{display:flex; gap:16px; flex-wrap:wrap; margin-top:10px; font-size:12.8px; color:var(--text-faint);}
.rules span.ok{color:var(--st-approved-fg); font-weight:600;}

.otp{display:flex; gap:10px; margin-top:30px;}
.otp input{width:clamp(44px,12vw,58px); height:clamp(54px,14vw,68px); text-align:center; font-size:28px; font-weight:800; border:2px solid var(--border-strong); border-radius:12px; background:var(--surface); outline:none; transition:border-color .15s ease;}
.otp input:focus{border-color:var(--accent);}

.review{margin-top:26px; border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--surface);}
.rv-group{padding:10px 18px; background:var(--surface-2); font-family:'IBM Plex Mono'; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--text-faint);}
.rv-row{display:grid; grid-template-columns:150px 1fr auto; gap:14px; padding:11px 18px; border-top:1px solid var(--border); align-items:start; font-size:14.5px;}
.rv-row dt{color:var(--text-muted); font-weight:600;}
.rv-row dd{margin:0; overflow-wrap:anywhere; max-height:4.6em; overflow:hidden;}
.rv-row dd.empty{color:var(--text-faint);}
.rv-lock{font-size:12px; color:var(--text-faint);}
.done{text-align:left;}
.done .ok{width:64px; height:64px; border-radius:50%; background:var(--st-approved-bg); color:var(--st-approved-fg); display:flex; align-items:center; justify-content:center; margin-bottom:22px;}
.done .ok svg{width:30px; height:30px;}
.next-steps{margin:26px 0 0; padding:0; list-style:none; display:grid; gap:14px;}
.next-steps li{display:grid; grid-template-columns:34px 1fr; gap:14px; align-items:start;}
.next-steps .n{width:34px; height:34px; border-radius:50%; background:var(--surface-2); display:flex; align-items:center; justify-content:center; font-family:'IBM Plex Mono'; font-size:12px; color:var(--text-muted);}
.next-steps b{display:block;}
.next-steps span{color:var(--text-muted); font-size:14px;}

/* ---------- auth screens ---------- */
.auth{display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); min-height:100vh;}
.auth-brand{background:var(--dark-bg); color:var(--dark-text); padding:clamp(28px,5vw,56px); display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden;}
.auth-brand::before{content:''; position:absolute; inset:0; background:radial-gradient(90% 70% at 85% 0%, rgba(255,7,24,.32), transparent 60%);}
.auth-brand > *{position:relative;}
.auth-brand .logo{color:#fff; height:52px;}
.auth-brand h2{font-size:clamp(1.9rem,3.4vw,2.8rem); line-height:1.08; max-width:14ch;}
.auth-brand h2 em{font-style:normal; color:var(--accent);}
.auth-brand p{color:var(--dark-muted); margin-top:16px; max-width:38ch;}
.auth-brand small{color:#a29cab; font-size:12.5px;}
.auth-form{display:flex; flex-direction:column; padding:24px clamp(20px,6vw,72px);}
.auth-top{display:flex; justify-content:flex-end; align-items:center; gap:12px; padding-bottom:20px;}
.auth-box{margin:auto 0; width:min(420px,100%); align-self:center;}
.auth-box h1{font-size:clamp(1.7rem,3vw,2.2rem);}
.auth-box .sub{color:var(--text-muted); margin-top:10px;}
.form-stack{display:grid; gap:18px; margin-top:28px;}
.fld label{display:block; font-weight:700; font-size:13.5px; margin-bottom:7px;}
.fld .in{width:100%; padding:13px 15px; border:1.5px solid var(--border-strong); border-radius:11px; background:var(--surface); font-size:16px; outline:none; transition:border-color .15s ease, box-shadow .15s ease;}
.fld .in:focus{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-tint);}
.fld .err{color:var(--accent); font-size:13px; font-weight:600; margin-top:6px; min-height:0;}
.fld .pw-wrap .in{padding-right:70px;}
.row-between{display:flex; justify-content:space-between; align-items:center; gap:12px;}
.alt{margin-top:22px; color:var(--text-muted); font-size:14px;}
.alert{padding:12px 14px; border-radius:11px; font-size:14px; background:var(--accent-tint); color:var(--text); border:1px solid var(--accent); display:none;}
.alert.show{display:block;}
.alert.info{background:var(--st-received-bg); border-color:transparent; color:var(--st-received-fg);}
.gbtn{display:flex; align-items:center; justify-content:center; gap:12px; width:100%; padding:13px 18px; border-radius:999px; border:1.5px solid var(--border-strong); background:var(--surface); font-weight:700; font-size:15px; cursor:pointer; transition:background-color .15s ease;}
.gbtn:hover{background:var(--surface-2);}
.gbtn svg{width:20px; height:20px;}

/* ---------- candidate panel ---------- */
.topbar{position:sticky; top:0; z-index:40; background:color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter:blur(10px); border-bottom:1px solid var(--border);}
.topbar .in{max-width:1080px; margin:0 auto; padding:14px clamp(18px,4vw,32px); display:flex; align-items:center; gap:16px;}
.topbar .spacer{flex:1;}
.me{display:flex; align-items:center; gap:10px;}
.avatar{width:36px; height:36px; border-radius:50%; background:var(--dark-bg); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; border:2px solid var(--accent); flex:none;}
.me .nm{font-weight:700; font-size:13.5px; line-height:1.2;}
.me .rl{font-size:12px; color:var(--text-faint);}
.page{max-width:1080px; margin:0 auto; padding:34px clamp(18px,4vw,32px) 48px; display:flex; flex-direction:column; gap:20px;}
.page-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap;}
.page-head h1{font-size:clamp(1.7rem,3.2vw,2.3rem);}
.page-head p{color:var(--text-muted); margin-top:6px;}
.demo-sim{display:flex; align-items:center; gap:10px; font-size:12.5px; color:var(--text-faint);}
.demo-sim select{padding:7px 10px; border-radius:9px; border:1px solid var(--border-strong); background:var(--surface); font-size:13px; font-weight:600;}

.status-card{display:grid; grid-template-columns:1fr; overflow:hidden;}
.status-main{padding:26px 28px 22px; display:flex; flex-direction:column; gap:12px;}
.status-main h2{font-size:clamp(1.4rem,2.6vw,1.9rem); line-height:1.15;}
.status-main p{color:var(--text-muted); max-width:62ch;}
.meta-line{display:flex; gap:20px; flex-wrap:wrap; font-size:13px; color:var(--text-faint); margin-top:4px;}
.meta-line b{color:var(--text-muted); font-weight:700;}
.track{display:grid; grid-template-columns:repeat(4,1fr); padding:20px 28px 26px; border-top:1px solid var(--border); background:var(--surface-2);}
.tk{position:relative; display:flex; flex-direction:column; gap:8px; padding-right:10px;}
.tk .bar{height:5px; border-radius:3px; background:var(--border-strong);}
.tk.done .bar{background:var(--st-approved-fg);}
.tk.cur .bar{background:var(--accent);}
.tk .lb{font-weight:700; font-size:14px; color:var(--text-faint);}
.tk.done .lb,.tk.cur .lb{color:var(--text);}
.tk .sb{font-size:12px; color:var(--text-faint); margin-top:-4px;}
.notice{padding:18px 22px; display:flex; gap:14px; align-items:flex-start; border-radius:14px; border:1px solid transparent;}
.notice.pending{background:var(--st-pending-bg); color:var(--st-pending-fg); border-color:var(--st-pending-fg);}
.notice.paused{background:var(--st-paused-bg); color:var(--st-paused-fg);}
.notice.closed{background:var(--st-closed-bg); color:var(--st-closed-fg);}
.notice h4{font-size:15px; color:inherit;}
.notice p{color:var(--text); font-size:14.5px; margin-top:4px; white-space:pre-line;}
.msg-link{color:inherit; font-weight:600; text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1.5px; overflow-wrap:anywhere;}
.msg-link:hover{color:var(--accent);}
.notice .ic{width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.55); display:flex; align-items:center; justify-content:center; flex:none; font-weight:800;}
.grid2{display:grid; grid-template-columns:1.25fr 1fr; gap:20px; align-items:start;}
.card h3{font-size:16px; font-weight:800;}
.kv{display:grid; gap:0; margin-top:14px;}
.kv > div{display:grid; grid-template-columns:130px 1fr; gap:14px; padding:11px 0; border-top:1px solid var(--border); font-size:14.5px;}
.kv > div:first-child{border-top:none;}
.kv dt{color:var(--text-muted); font-weight:600;}
.kv dd{margin:0; overflow-wrap:anywhere;}
.kv dd a{color:var(--accent); font-weight:600; text-decoration:underline; text-underline-offset:3px;}
.hist{display:flex; flex-direction:column; margin-top:14px;}
.hi{display:grid; grid-template-columns:14px 1fr; gap:14px; padding-bottom:18px; position:relative;}
.hi:last-child{padding-bottom:0;}
.hi i{width:10px; height:10px; border-radius:50%; background:var(--border-strong); margin-top:6px; position:relative; z-index:1;}
.hi.cur i{background:var(--accent); box-shadow:0 0 0 4px var(--accent-tint);}
.hi::before{content:''; position:absolute; left:4px; top:16px; bottom:-6px; width:2px; background:var(--border);}
.hi:last-child::before{display:none;}
.hi b{font-size:14px; display:block;}
.hi span{font-size:12.5px; color:var(--text-faint);}
.help{display:flex; gap:14px; align-items:center;}
.help .ic{width:40px; height:40px; border-radius:12px; background:var(--accent-tint); color:var(--accent); display:flex; align-items:center; justify-content:center; flex:none;}

/* ---------- admin ---------- */
.adm{display:grid; grid-template-columns:240px minmax(0,1fr); min-height:100vh;}
.side{background:var(--surface); border-right:1px solid var(--border); padding:22px 14px; display:flex; flex-direction:column; gap:22px; position:sticky; top:0; height:100vh;}
.side .logo{height:40px; margin:0 8px;}
.side-lb{font-family:'IBM Plex Mono'; font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--text-faint); margin:0 10px 6px;}
.nav{display:flex; flex-direction:column; gap:2px;}
.nav button{display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:10px; border:none; background:none; font-weight:600; font-size:14px; color:var(--text-muted); cursor:pointer; text-align:left; width:100%;}
.nav button svg{width:17px; height:17px; flex:none;}
.nav button:hover{background:var(--surface-2); color:var(--text);}
.nav button.on{background:var(--accent-tint); color:var(--accent);}
.nav .cnt{margin-left:auto; font-size:11.5px; background:var(--surface-2); color:var(--text-muted); padding:1px 8px; border-radius:999px; font-weight:700;}
.side-foot{margin-top:auto; border-top:1px solid var(--border); padding-top:14px; display:flex; flex-direction:column; gap:12px;}
.adm-main{min-width:0;}
.adm-bar{display:flex; align-items:center; gap:14px; padding:16px clamp(18px,3vw,32px); border-bottom:1px solid var(--border); position:sticky; top:0; background:color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter:blur(10px); z-index:30;}
.adm-bar h1{font-size:20px;}
.adm-bar .spacer{flex:1;}
.adm-body{padding:26px clamp(18px,3vw,32px) 48px; display:flex; flex-direction:column; gap:20px; max-width:1240px;}
.admview{display:none; flex-direction:column; gap:20px;}
.admview.on{display:flex;}
.chips{display:flex; gap:8px; flex-wrap:wrap;}
.chip{border:1px solid var(--border-strong); background:var(--surface); border-radius:999px; padding:7px 13px; font-size:13px; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; gap:8px; transition:all .15s ease;}
.chip b{font-family:'IBM Plex Mono'; font-weight:500; color:var(--text-faint); font-size:12px;}
.chip:hover{border-color:var(--accent);}
.chip.on{background:var(--text); color:var(--bg); border-color:var(--text);}
.chip.on b{color:inherit; opacity:.7;}
.toolbar{display:flex; gap:12px; flex-wrap:wrap; align-items:center;}
.search{flex:1; min-width:220px; display:flex; align-items:center; gap:10px; padding:0 14px; border:1.5px solid var(--border-strong); border-radius:11px; background:var(--surface);}
.search svg{width:17px; height:17px; color:var(--text-faint); flex:none;}
.search input{border:none; outline:none; background:transparent; padding:11px 0; width:100%; font-size:14.5px;}
.search:focus-within{border-color:var(--accent);}
.sel{padding:10px 12px; border:1.5px solid var(--border-strong); border-radius:11px; background:var(--surface); font-size:14px; font-weight:600;}
.tw{overflow-x:auto;}
table{width:100%; border-collapse:collapse; font-size:14px; min-width:760px;}
th{text-align:left; font-family:'IBM Plex Mono'; font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-faint); font-weight:500; padding:13px 16px; border-bottom:1px solid var(--border); background:var(--surface-2); white-space:nowrap;}
th[data-sort]{padding:0;}
th[data-sort] button{all:unset; box-sizing:border-box; display:flex; align-items:center; gap:7px; width:100%; padding:13px 16px; cursor:pointer; transition:color .12s ease;}
th[data-sort] button::after{content:''; width:0; height:0; border-left:4px solid transparent; border-right:4px solid transparent; border-top:5px solid currentColor; opacity:0; transition:opacity .12s ease, transform .12s ease;}
th[data-sort] button:hover{color:var(--text);}
th[data-sort] button:hover::after{opacity:.35;}
th[data-sort] button:focus-visible{outline:2px solid var(--accent); outline-offset:-2px; border-radius:6px;}
th[aria-sort] button{color:var(--text);}
th[aria-sort] button::after{opacity:1;}
th[aria-sort="ascending"] button::after{transform:rotate(180deg);}
td{padding:13px 16px; border-bottom:1px solid var(--border); vertical-align:middle;}
tbody tr{cursor:pointer; transition:background-color .12s ease;}
tbody tr:hover{background:var(--surface-2);}
tbody tr:last-child td{border-bottom:none;}
.cand{display:flex; align-items:center; gap:11px;}
.cand .av{width:34px; height:34px; border-radius:50%; background:var(--surface-3); color:var(--text-muted); font-weight:800; font-size:12px; display:flex; align-items:center; justify-content:center; flex:none;}
.cand b{display:block; font-size:14px;}
.cand span{font-size:12.5px; color:var(--text-faint);}
.muted{color:var(--text-muted);}
.empty{padding:36px; text-align:center; color:var(--text-faint);}

.fh{display:flex; gap:18px; align-items:flex-start; justify-content:space-between; flex-wrap:wrap;}
.fh h2{font-size:clamp(1.5rem,2.6vw,2rem);}
.fh .sub{display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:8px; color:var(--text-muted); font-size:14px;}
.back{background:none; border:none; font-weight:700; font-size:13.5px; color:var(--text-muted); cursor:pointer; padding:0; display:inline-flex; gap:6px; align-items:center;}
.back:hover{color:var(--accent);}
.tabs{display:flex; gap:4px; border-bottom:1px solid var(--border); overflow-x:auto;}
.tab{padding:11px 16px; border:none; background:none; font-weight:700; font-size:14px; color:var(--text-muted); cursor:pointer; border-bottom:2.5px solid transparent; margin-bottom:-1px; white-space:nowrap;}
.tab:hover{color:var(--text);}
.tab.on{color:var(--text); border-bottom-color:var(--accent);}
.cols2{display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start;}
.long{white-space:pre-wrap; color:var(--text); font-size:14.5px; line-height:1.55;}
.wa-list{list-style:none; padding:0; margin:12px 0 0;}
.wa-list li{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:11px 0; border-top:1px solid var(--border); font-size:14px;}
.wa-list li:first-child{border-top:none;}
.wa-list li span{display:block; font-size:12.5px; color:var(--text-faint);}
.wa-list li a{color:var(--accent); font-weight:600; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere;}
.wa-form{display:grid; gap:10px; margin-top:16px; padding-top:16px; border-top:1px dashed var(--border-strong);}
.wa-form .in{width:100%; padding:10px 13px; border:1.5px solid var(--border-strong); border-radius:11px; background:var(--surface-2); font-size:14.5px; outline:none;}
.wa-form .in:focus{border-color:var(--accent);}
.wa-actions{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;}
.wa-actions label{cursor:pointer; overflow-wrap:anywhere;}
.linkbtns{display:flex; gap:8px; flex-wrap:wrap;}
.linkbtns a{display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:9px; background:var(--surface-2); font-weight:700; font-size:13px; border:1px solid var(--border);}
.linkbtns a:hover{border-color:var(--accent); color:var(--accent);}

.eval{display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:20px; align-items:start;}
.crit{display:grid; grid-template-columns:1fr; gap:6px; padding:15px 0; border-top:1px solid var(--border);}
.crit:first-of-type{border-top:none;}
.crit-h{display:flex; justify-content:space-between; align-items:center; gap:10px;}
.crit-h b{font-size:14.5px;}
.crit-h .tbd{font-size:11px; color:var(--text-faint); font-weight:600; margin-left:6px;}
.crit-d{font-size:13px; color:var(--text-muted); margin:-2px 0 2px;}
.pillar-h{font-family:'IBM Plex Mono'; font-size:11px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); padding:16px 0 2px; border-top:1px solid var(--border);}
.pillar-h:first-child{border-top:none; padding-top:0;}
.pillar-h + .crit{border-top:none;}
.radar-key{list-style:none; padding:0; margin:10px 0 0; display:grid; grid-template-columns:1fr 1fr; gap:6px 14px; font-size:13px; color:var(--text-muted);}
.radar-key span{font-family:'IBM Plex Mono'; color:var(--text-faint); margin-right:7px;}
.int-check{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px;}
.int-result{font-size:13.5px; font-weight:600;}
.int-result.ok{color:var(--st-approved-fg);}
.int-result.bad{color:var(--accent);}
.score{font-family:'IBM Plex Mono'; font-weight:500; font-size:15px; min-width:42px; text-align:right;}
input[type=range]{width:100%; accent-color:var(--accent); height:6px;}
.crit input[type=text]{width:100%; border:1px solid var(--border); border-radius:9px; background:var(--surface-2); padding:8px 11px; font-size:13.5px; outline:none;}
.crit input[type=text]:focus{border-color:var(--accent);}
.avg{display:flex; align-items:baseline; gap:10px; margin-bottom:6px;}
.avg .big{font-size:42px; font-weight:800; letter-spacing:-.03em;}
.avg span{color:var(--text-muted); font-size:13.5px;}
.radar{display:block; margin:6px auto 0; max-width:300px; width:100%;}

.tl{display:flex; flex-direction:column;}
.ti{display:grid; grid-template-columns:34px 1fr; gap:14px; padding-bottom:20px; position:relative;}
.ti:last-child{padding-bottom:0;}
.ti::before{content:''; position:absolute; left:16px; top:34px; bottom:0; width:2px; background:var(--border);}
.ti:last-child::before{display:none;}
.ti .ico{width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; background:var(--surface-3); color:var(--text-muted);}
.ti.team .ico{background:var(--accent-tint); color:var(--accent);}
.ti.cand .ico{background:var(--st-received-bg); color:var(--st-received-fg);}
.ti b{font-size:14px;}
.ti span{display:block; color:var(--text-faint); font-size:12.5px;}
.ti p{margin-top:4px; font-size:14px; color:var(--text-muted); white-space:pre-line;}
.note-item{padding:13px 0; border-top:1px solid var(--border);}
.note-item:first-child{border-top:none;}
.note-item span{font-size:12.5px; color:var(--text-faint);}
.note-item p{margin-top:3px; font-size:14.5px;}
.intg{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
.stat-ok{color:var(--st-approved-fg); font-weight:700;}
.stat-err{color:var(--accent); font-weight:700;}
.stat-wait{color:var(--st-review-fg); font-weight:700;}
.map-row{display:grid; grid-template-columns:150px 1fr; gap:14px; align-items:center; padding:9px 0; border-top:1px solid var(--border);}
.map-row:first-child{border-top:none;}
.map-row input{padding:9px 12px; border:1.5px dashed var(--border-strong); border-radius:9px; background:var(--surface-2); font-size:14px; width:100%; outline:none;}
.map-row input:focus{border-color:var(--accent); border-style:solid;}

.adm-login{display:grid; place-items:center; min-height:100vh; padding:24px;}
.adm-login .card{width:min(430px,100%); padding:34px 32px; text-align:left;}
.adm-login h1{font-size:1.7rem; margin-top:20px;}

/* ---------- modal / toast ---------- */
.scrim{position:fixed; inset:0; background:rgba(16,12,21,.6); z-index:300; display:none; align-items:center; justify-content:center; padding:20px; backdrop-filter:blur(3px);}
.scrim.on{display:flex;}
.modal{width:min(520px,100%); max-height:calc(100vh - 40px); overflow:auto; background:var(--surface); border-radius:18px; border:1px solid var(--border); padding:26px; box-shadow:0 30px 70px -20px rgba(0,0,0,.6);}
.modal h3{font-size:19px;}
.modal .sub{color:var(--text-muted); margin-top:6px; font-size:14px;}
.modal textarea{width:100%; min-height:90px; border:1.5px solid var(--border-strong); border-radius:11px; background:var(--surface-2); padding:11px 13px; font-size:14.5px; outline:none; resize:vertical;}
.modal textarea:focus{border-color:var(--accent);}
.effects{display:grid; gap:9px; margin:16px 0; padding:14px; border-radius:12px; background:var(--surface-2); font-size:13.5px;}
.effects label{display:flex; gap:10px; align-items:flex-start; cursor:pointer;}
.effects input{accent-color:var(--accent); margin-top:3px;}
.modal-actions{display:flex; gap:10px; justify-content:flex-end; margin-top:20px;}
.toast{position:fixed; top:20px; left:50%; transform:translate(-50%,-20px); z-index:400; background:var(--dark-bg); color:var(--dark-text); padding:12px 18px; border-radius:12px; font-weight:600; font-size:14px; box-shadow:0 20px 40px -16px rgba(0,0,0,.6); opacity:0; pointer-events:none; transition:all .25s ease; border:1px solid var(--dark-line); max-width:calc(100vw - 32px);}
.toast.on{opacity:1; transform:translate(-50%,0);}

@media (max-width: 980px){
  .grid2,.eval,.cols2,.intg{grid-template-columns:1fr;}
  .adm{grid-template-columns:1fr;}
  .side{position:static; height:auto; flex-direction:row; align-items:center; flex-wrap:wrap; padding:12px 14px; gap:10px;}
  .side .nav{flex-direction:row; flex-wrap:wrap;}
  .side .nav button{width:auto;}
  .side-lb{display:none;}
  .side-foot{margin:0 0 0 auto; border:none; padding:0; flex-direction:row; align-items:center;}
}
@media (max-width: 760px){
  .auth{grid-template-columns:1fr;}
  .auth-brand{min-height:220px;}
  .auth-brand h2{max-width:none;}
  .tf-row,.tf-row.eq{grid-template-columns:1fr;}
  .rv-row{grid-template-columns:1fr; gap:4px;}
  .track{grid-template-columns:1fr; gap:14px;}
  .kv > div{grid-template-columns:1fr; gap:2px;}
  .map-row{grid-template-columns:1fr; gap:6px;}
  .me .nm,.me .rl{display:none;}
}

/* ---------- loading & states ---------- */
.btn.busy{position:relative; color:transparent !important; pointer-events:none;}
.btn.busy::after{content:''; position:absolute; width:18px; height:18px; border-radius:50%; border:2.5px solid var(--on-accent); border-right-color:transparent; animation:spin .7s linear infinite;}
.btn.ghost.busy::after,.btn.soft.busy::after{border-color:var(--text); border-right-color:transparent;}
@keyframes spin{to{transform:rotate(360deg);}}
.loading{display:flex; align-items:center; justify-content:center; gap:12px; min-height:50vh; color:var(--text-muted); font-weight:600;}
.loading::before{content:''; width:22px; height:22px; border-radius:50%; border:3px solid var(--border-strong); border-right-color:var(--accent); animation:spin .7s linear infinite;}
.form-msg{font-size:14px; font-weight:600; color:var(--accent); min-height:0;}
.form-msg.ok{color:var(--st-approved-fg);}
.tag-tbd{font-size:11px; color:var(--text-faint); font-weight:600; margin-left:6px;}
.save-row{display:flex; align-items:center; gap:12px; flex-wrap:wrap;}
.tiny{font-size:12.5px; color:var(--text-faint);}
@media (prefers-reduced-motion: reduce){ .btn.busy::after,.loading::before{animation-duration:2s;} }
@media (max-width: 760px){ .tf-saved{font-size:11.5px; max-width:160px; text-align:right; line-height:1.3;} }

/* ---------- themes picker (up to 5) ---------- */
.multi-top{display:flex; align-items:center; gap:14px; margin-top:26px;}
.tf-mini{flex:1; max-width:320px; border:1.5px solid var(--border-strong); border-radius:11px; background:var(--surface); padding:10px 13px; font-size:15px; outline:none; transition:border-color .15s ease;}
.tf-mini:focus{border-color:var(--accent);}
.multi-count{font-family:'IBM Plex Mono'; font-size:12px; color:var(--text-muted); white-space:nowrap;}
.tpick{display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; max-height:340px; overflow:auto; padding:2px 4px 2px 0;}
.tp{border:1.5px solid var(--border-strong); background:var(--surface); border-radius:999px; padding:8px 14px; font-size:14.5px; font-weight:600; cursor:pointer; color:var(--text); transition:border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;}
.tp:hover{border-color:var(--accent); transform:translateY(-1px);}
.tp.sel{background:var(--accent); border-color:var(--accent); color:var(--on-accent);}
.tpick.full .tp:not(.sel){opacity:.45;}
.tchips{display:flex; flex-wrap:wrap; gap:6px;}
.tchips span{font-size:12.5px; font-weight:600; padding:4px 10px; border-radius:999px; background:var(--accent-tint); color:var(--accent);}

/* ---------- speaker kit: file or link ---------- */
.seg{display:inline-flex; padding:4px; border-radius:999px; background:var(--surface-2); border:1px solid var(--border); margin-top:26px;}
.seg button{border:none; background:none; padding:8px 16px; border-radius:999px; font-weight:700; font-size:14px; color:var(--text-muted); cursor:pointer; transition:background-color .15s ease, color .15s ease;}
.seg button.on{background:var(--surface); color:var(--text); box-shadow:0 1px 3px rgba(0,0,0,.12);}
.seg + .tf-input{margin-top:18px;}
.drop{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center; margin-top:18px; padding:30px 20px; border:2px dashed var(--border-strong); border-radius:16px; background:var(--surface); cursor:pointer; transition:border-color .15s ease, background-color .15s ease;}
.drop:hover, .drop.over{border-color:var(--accent); background:var(--accent-tint);}
.drop svg{width:30px; height:30px; color:var(--accent);}
.drop b{font-size:16px;}
.drop span{font-size:13px; color:var(--text-faint);}
.drop.loading, .filecard.loading{cursor:progress; flex-direction:column; align-items:center;}
.drop .spin, .filecard .spin{width:24px; height:24px; border-radius:50%; border:3px solid var(--border-strong); border-top-color:var(--accent); animation:spin .7s linear infinite;}
.filecard{display:flex; align-items:center; gap:14px; margin-top:18px; padding:14px 16px; border:1.5px solid var(--border-strong); border-radius:14px; background:var(--surface);}
.filecard .fx{flex:none; width:44px; height:44px; border-radius:10px; background:var(--accent-tint); color:var(--accent); font-family:'IBM Plex Mono'; font-size:11.5px; font-weight:500; display:flex; align-items:center; justify-content:center;}
.filecard .fm{flex:1; min-width:0;}
.filecard .fm b{display:block; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.filecard .fm span{font-size:12.5px; color:var(--text-faint);}
.filecard .btn-link{flex:none;}
