/* HireMind — the recruitment console's own components.
   Loaded after base.css and app.css: layout helpers shared with the admin panel, then the
   screening UI (score rings, ranked tables, criteria, kanban board, uploads, hiring profile). */

/* ============================================================ layout */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } }
.content-wide { max-width: none; }

/* ============================================================ notices */
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--sh-1); color: var(--text-2); }
a.notice { text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.notice:hover { border-color: var(--brand-line); box-shadow: var(--sh-2); transform: translateY(-1px); }
.notice > .icon { flex: none; margin-top: 1px; color: var(--brand); }
.notice p { line-height: 1.5; }
.notice-brand { background: var(--brand-soft); border-color: var(--brand-line); }
.notice-amber { background: var(--amber-bg); border-color: var(--amber-line); }
.notice-amber > .icon { color: var(--amber); }
.notice-blue { background: var(--blue-bg); border-color: var(--blue-line); }
.notice-blue > .icon { color: var(--blue); }
.notice-red { background: var(--red-bg); border-color: var(--red-line); }
.notice-red > .icon { color: var(--red); }

/* ============================================================ small pieces */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { --chip: var(--brand); }
.chip-soft { background: color-mix(in srgb, var(--chip) 10%, var(--surface)); border-color: color-mix(in srgb, var(--chip) 22%, transparent); color: color-mix(in srgb, var(--chip) 72%, var(--text)); }
.chip-ghost { background: transparent; border-style: dashed; color: var(--muted); }
.chip-action { cursor: pointer; height: auto; min-height: 30px; padding: 7px 11px; text-align: left; white-space: normal; line-height: 1.35; transition: border-color .15s, background .15s, transform .15s; }
.chip-action:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); transform: translateY(-1px); }

.chan-dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; flex: none; }
.chan-dot-lg { width: 40px; height: 40px; border-radius: 12px; }
.chan-dot .icon { width: 13px; height: 13px; }
.chan-dot-lg .icon { width: 20px; height: 20px; }

.mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); color: var(--text-2); transition: background .12s; }
a.mini-row:hover { background: var(--surface-2); color: var(--text); }
.mini-row.is-active { background: var(--brand-soft); }

.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini-stats > div { display: flex; flex-direction: column; gap: 2px; }
.mini-stats strong { font-size: 17px; }
@media (max-width: 720px) { .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.kv { display: flex; flex-direction: column; }
.kv-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.kv-row:last-child { border-bottom: 0; }
.kv-key { font-size: 12.5px; color: var(--muted); flex: none; }
.kv-val { font-size: 13.5px; font-weight: 600; color: var(--text); text-align: right; min-width: 0; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border); flex-wrap: wrap; }
.seg-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.seg-item:hover { color: var(--text); }
.seg-item.is-active { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }

.legend { display: flex; flex-wrap: wrap; gap: 14px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend-item .legend-dot { width: 8px; height: 8px; border-radius: 50%; }

.tick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tick-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.tick-list .icon { flex: none; margin-top: 3px; color: var(--green); }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; color: var(--text-2); }

.step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.step-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.step-list .step-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.feature-mini { display: flex; gap: 10px; align-items: flex-start; }
.feature-mini p { line-height: 1.45; margin-top: 2px; }

.swatch { height: 74px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; letter-spacing: .01em; box-shadow: var(--sh-1); }

/* ============================================================ dashboard */
.tline { display: flex; flex-direction: column; }
.tline-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text-2); transition: background .12s; }
.tline-row:last-child { border-bottom: 0; }
.tline-row:hover { background: var(--surface-2); color: var(--text); }
.tline-when { flex: none; width: 42px; text-align: center; padding-top: 2px; }
.tline-day { display: block; font-size: 18px; font-weight: 700; color: var(--text); line-height: 1; }
.tline-month { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); margin-top: 2px; }
.tline-body { flex: 1; min-width: 0; }
.tline-thumb { flex: none; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); }

.perf-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r); color: var(--text-2); transition: background .12s; }
.perf-row:hover { background: var(--surface-2); color: var(--text); }
.perf-thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); flex: none; }
.perf-metrics { display: flex; gap: 18px; flex: none; }
.perf-metrics > div { display: flex; flex-direction: column; align-items: flex-end; }
@media (max-width: 720px) { .perf-metrics { gap: 12px; } }

.pipeline { display: flex; flex-direction: column; }
.pipeline-row { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: var(--r); color: var(--text-2); transition: background .12s; }
a.pipeline-row:hover { background: var(--surface-2); color: var(--text); }
.pipeline-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.insight-mini { display: flex; gap: 10px; align-items: flex-start; }
.insight-icon { flex: none; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--muted); }
.insight-icon.green { background: var(--green-bg); color: var(--green); }
.insight-icon.red { background: var(--red-bg); color: var(--red); }
.insight-icon.amber { background: var(--amber-bg); color: var(--amber); }
.insight-icon.blue { background: var(--blue-bg); color: var(--blue); }
.insight-icon.violet { background: var(--violet-bg); color: var(--violet); }

/* ============================================================ ask your marketer */
.ask-card { padding: 20px; background: linear-gradient(180deg, var(--brand-soft), var(--surface) 55%); }
.ask-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ask-input { font-size: 15px; line-height: 1.55; border-radius: var(--r-lg); }
.ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.avatar-agent { background: var(--grad); color: #fff; }
.avatar-lg { width: 44px; height: 44px; font-size: 15px; }

.task-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r); color: var(--text-2); transition: background .12s; }
.task-row:hover { background: var(--surface-2); color: var(--text); }

.chat-turn { display: flex; gap: 12px; align-items: flex-start; }
.chat-bubble { flex: 1; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); line-height: 1.6; color: var(--text-2); }
.chat-agent .chat-bubble { background: var(--brand-soft); border-color: var(--brand-line); color: var(--text); }

/* ============================================================ campaigns */
.campaign-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.campaign-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-line); }
.campaign-head { display: flex; align-items: center; gap: 12px; }
.campaign-promise { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.campaign-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.campaign-meta span { display: inline-flex; align-items: center; gap: 5px; }

.plan-block { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.plan-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.angle-list { display: flex; flex-direction: column; gap: 10px; }
.angle { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.angle-stage { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 4px 8px; border-radius: 6px; }

/* ============================================================ choices */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.choice-grid-3 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { display: flex; flex-direction: column; gap: 5px; height: 100%; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, box-shadow .15s, background .15s; }
.choice:hover .choice-body { border-color: var(--border-strong); }
.choice input:checked + .choice-body { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--ring); }
.choice input:focus-visible + .choice-body { box-shadow: var(--ring); }
.choice-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-3); color: var(--brand); margin-bottom: 2px; }
.choice input:checked + .choice-body .choice-icon { background: var(--brand); color: #fff; }
.choice-title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.choice-text { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.choice-meta { font-size: 11.5px; color: var(--muted-2); margin-top: auto; padding-top: 6px; }
.choice-sm .choice-body { padding: 11px 13px; }
.choice-row .choice-body { flex-direction: row; align-items: flex-start; gap: 10px; }
.choice-row .choice-body > * { flex: 1; }
.choice.is-disabled { opacity: .5; pointer-events: none; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.check-card { position: relative; display: block; cursor: pointer; }
.check-card input { position: absolute; opacity: 0; pointer-events: none; }
.check-body { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); transition: border-color .15s, background .15s; }
.check-card input:checked + .check-body { border-color: var(--brand); background: var(--brand-soft); }

.switch-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }
.switch-row input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }


.rules { display: flex; flex-direction: column; gap: 10px; }
.rule-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
@media (max-width: 720px) { .rule-row { grid-template-columns: minmax(0, 1fr) auto; } }
/* ============================================================ insights */
.insight { padding: 18px; }
.insight-head { display: flex; gap: 14px; align-items: flex-start; }
.insight-head .insight-icon { width: 40px; height: 40px; border-radius: 12px; }
.insight-title { font-size: 15.5px; margin-bottom: 4px; }
.insight-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ============================================================ analytics */
.fnl { display: flex; flex-direction: column; gap: 14px; }
.fnl-bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.fnl-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.meter-sm { height: 6px; }

.heat { display: flex; flex-direction: column; gap: 4px; }
.heat-row { display: grid; grid-template-columns: 34px repeat(9, minmax(0, 1fr)); gap: 4px; align-items: center; }
.heat-day { font-size: 11px; color: var(--muted); }
.heat-hour { font-size: 10px; color: var(--muted-2); text-align: center; }
.heat-cell { height: 20px; border-radius: 5px; border: 1px solid var(--border); }

/* ============================================================ broadcasts */
.mail-preview { border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-2); overflow: hidden; }
.mail-head { padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.mail-body { padding: 16px 14px; font-size: 13.5px; line-height: 1.65; color: var(--text-2); white-space: pre-wrap; }

/* ============================================================ card head (used everywhere here) */
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head .card-title { font-size: 15px; font-weight: 700; }
.card-head .card-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 18px; }
.card-foot { padding: 14px 18px; border-top: 1px solid var(--border); background: var(--surface-2); }


/* ============================================================ score rings */
.score-ring { --v: 0; --tone: var(--brand); --size: 52px; position: relative; display: inline-grid; place-items: center; width: var(--size); height: var(--size); flex: none; border-radius: 50%;
  background: conic-gradient(var(--tone) calc(var(--v) * 1%), color-mix(in srgb, var(--tone) 12%, var(--surface-3)) 0); }
.score-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.score-ring > span { position: relative; font-size: calc(var(--size) * .32); font-weight: 800; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1; }
.score-ring > span small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .05em; color: var(--muted-2); text-align: center; margin-top: 2px; text-transform: uppercase; }
.score-ring-sm { --size: 38px; }
.score-ring-sm::before { inset: 4px; }
.score-ring-lg { --size: 92px; }
.score-ring-lg::before { inset: 8px; }
.score-ring.tone-green { --tone: var(--green); }
.score-ring.tone-teal { --tone: var(--teal); }
.score-ring.tone-amber { --tone: var(--amber); }
.score-ring.tone-gray { --tone: var(--muted-2); }
.score-ring.is-empty { background: var(--surface-3); }
.score-trio { display: flex; gap: 22px; align-items: flex-start; }
.score-trio > div { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.score-trio label { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; text-align: center; }

/* ============================================================ ranked candidates */
.rank-num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; font-size: 12.5px; font-weight: 800; color: var(--muted); background: var(--surface-3); font-variant-numeric: tabular-nums; }
.rank-num.top { color: #fff; background: var(--grad); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.cand-cell { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.cand-cell .cell-title { display: block; font-weight: 700; color: var(--text); }
.cand-cell .cell-sub { display: block; font-size: 12px; color: var(--muted); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 4px; max-width: 280px; }
.skill-chip { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 650; background: var(--brand-soft); color: var(--brand-strong); border: 1px solid var(--brand-line); white-space: nowrap; }
[data-theme="dark"] .skill-chip { color: var(--brand-2); }
.skill-chip.is-missing { background: transparent; color: var(--muted); border-style: dashed; border-color: var(--border-strong); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.skill-chip.is-partial { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); }
.skill-chip.is-plain { background: var(--surface-3); color: var(--text-2); border-color: var(--border); }
.must-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; background: var(--green-bg); color: var(--green); border: 1px solid var(--green-line); white-space: nowrap; }
.must-pill.is-short { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); }
.must-pill .icon { width: 12px; height: 12px; }
.rank-table td { padding-top: 12px; padding-bottom: 12px; }
.rank-table tr.is-shortlisted td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.stage-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.stage-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--stage, var(--muted-2)); flex: none; }
.stage-brand { --stage: var(--brand); } .stage-teal { --stage: var(--teal); } .stage-mint { --stage: var(--mint); } .stage-green { --stage: var(--green); }
.stage-amber { --stage: var(--amber); } .stage-red { --stage: var(--red); } .stage-gray { --stage: var(--muted-2); } .stage-blue { --stage: var(--blue); } .stage-violet { --stage: var(--violet); }
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.filter-bar .input, .filter-bar .select { height: 34px; font-size: 13px; }
.filter-bar .input-search { min-width: 200px; flex: 1; max-width: 320px; }

/* ============================================================ criteria & requirements */
.crit-list { display: flex; flex-direction: column; gap: 14px; }
.crit { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 44px; gap: 8px 14px; align-items: center; }
.crit-name { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--text); min-width: 0; }
.crit-name .icon { color: var(--muted); width: 15px; height: 15px; flex: none; }
.crit-name small { font-weight: 600; color: var(--muted-2); font-size: 11px; margin-left: auto; font-variant-numeric: tabular-nums; }
.crit-track { height: 9px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.crit-track > span { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.crit-track.tone-amber > span { background: var(--amber); }
.crit-track.tone-gray > span { background: var(--muted-2); }
.crit-track.tone-teal > span { background: var(--teal); }
.crit-score { font-size: 14px; font-weight: 800; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.crit-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); margin-top: -4px; line-height: 1.45; }
.crit.is-off { opacity: .45; }
@media (max-width: 720px) { .crit { grid-template-columns: minmax(0, 1fr) 44px; } .crit-track { grid-column: 1 / -1; order: 3; } }

.must-list { display: flex; flex-direction: column; }
.must-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed var(--border); }
.must-row:last-child { border-bottom: 0; }
.must-icon { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; }
.must-icon .icon { width: 14px; height: 14px; }
.must-icon.met { background: var(--green-bg); color: var(--green); }
.must-icon.partial { background: var(--amber-bg); color: var(--amber); }
.must-icon.missing { background: var(--red-bg); color: var(--red); }
.must-label { font-size: 13.5px; font-weight: 650; color: var(--text); }
.must-evidence { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; font-style: italic; }

.pref-list { display: flex; flex-direction: column; gap: 10px; }
.pref { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface-2); }
.pref.is-positive { border-color: var(--green-line); background: color-mix(in srgb, var(--green-bg) 55%, var(--surface)); }
.pref.is-neutral { opacity: .72; }
.pref-body { flex: 1; min-width: 0; }
.pref-name { font-size: 13.5px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pref-note { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.pref-impact { flex: none; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }

.point-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.point-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.point-list li .icon { flex: none; margin-top: 3px; width: 15px; height: 15px; }
.point-list.good .icon { color: var(--green); }
.point-list.gap .icon { color: var(--amber); }
.point-list.why .icon { color: var(--brand); }
.point-list.flag .icon { color: var(--muted); }

.ai-summary-box { position: relative; padding: 18px 20px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--brand-soft), var(--surface) 70%); border: 1px solid var(--brand-line); }
.ai-summary-box p { font-size: 14.5px; line-height: 1.65; color: var(--text); }
.ai-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }

/* ============================================================ candidate profile */
.cand-head { display: flex; gap: 20px; align-items: flex-start; padding: 22px; flex-wrap: wrap; }
.cand-head-main { flex: 1; min-width: 260px; }
.cand-name { font-size: 23px; font-weight: 800; letter-spacing: -.02em; color: var(--text); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cand-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.cand-meta span, .cand-meta a { display: inline-flex; align-items: center; gap: 6px; }
.cand-meta a:hover { color: var(--brand); }
.cand-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cand-verdict { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
@media (max-width: 900px) { .cand-verdict { align-items: flex-start; } }
.blind-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--teal); background: var(--teal-bg); border: 1px solid var(--teal-line); border-radius: 999px; padding: 3px 10px; font-weight: 650; }

.xp { display: flex; flex-direction: column; }
.xp-item { position: relative; display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.xp-item:last-child { border-bottom: 0; }
.xp-when { font-size: 12px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.5; }
.xp-when strong { display: block; color: var(--text-2); font-size: 12.5px; }
.xp-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.xp-company { font-size: 13px; color: var(--muted); margin-top: 1px; }
.xp-desc { font-size: 13px; color: var(--text-2); margin-top: 7px; line-height: 1.6; white-space: pre-line; }
@media (max-width: 640px) { .xp-item { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.cv-text { font-family: var(--font); font-size: 13px; line-height: 1.7; color: var(--text-2); white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; max-height: 560px; overflow: auto; margin: 0; }
.cv-frame { width: 100%; height: 640px; border: 1px solid var(--border); border-radius: var(--r); background: #fff; }

.stars { display: inline-flex; gap: 2px; }
.stars button { background: none; border: 0; padding: 2px; cursor: pointer; color: var(--border-strong); line-height: 0; }
.stars button .icon { width: 18px; height: 18px; }
.stars button.is-on { color: #F5B301; }
.stars button.is-on .icon { fill: #F5B301; }

.timeline-sm { display: flex; flex-direction: column; }
.timeline-sm .tl-row { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.timeline-sm .tl-row:last-child { border-bottom: 0; }
.timeline-sm .tl-ico { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.timeline-sm .tl-ico .icon { width: 14px; height: 14px; }
.timeline-sm .tl-title { font-size: 13px; font-weight: 650; color: var(--text); line-height: 1.4; }
.timeline-sm .tl-body { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; white-space: pre-line; }
.timeline-sm .tl-meta { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; }

.phase2-card { position: relative; overflow: hidden; padding: 18px; border-radius: var(--r-lg); border: 1px dashed var(--border-strong); background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px); }
.phase2-card .icon-tile { background: var(--grad); color: #fff; }
.soon { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); background: var(--amber-bg); border: 1px solid var(--amber-line); border-radius: 999px; padding: 2px 8px; }

/* ============================================================ kanban board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.board-col { display: flex; flex-direction: column; min-height: 240px; max-height: calc(100vh - 230px); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--border); }
.board-col-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.board-col-head strong { font-size: 13px; }
.board-col-count { margin-left: auto; font-size: 12px; font-weight: 750; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; font-variant-numeric: tabular-nums; }
.board-cards { flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 10px; overflow-y: auto; min-height: 120px; transition: background .15s; }
.board-col.is-over .board-cards { background: var(--brand-soft); }
.board-card { display: flex; flex-direction: column; gap: 8px; padding: 11px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1); cursor: grab; transition: box-shadow .15s, transform .15s, opacity .15s; }
.board-card:hover { box-shadow: var(--sh-2); border-color: var(--brand-line); }
.board-card.is-dragging { opacity: .45; transform: rotate(1deg); }
.board-card-top { display: flex; align-items: center; gap: 10px; }
.board-card-name { font-size: 13px; font-weight: 700; color: var(--text); display: block; }
.board-card-sub { font-size: 11.5px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-col.is-locked { background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px); border-style: dashed; }
.board-col.is-locked .board-cards { align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 12.5px; gap: 10px; padding: 24px 16px; }
.board-more { font-size: 12px; color: var(--muted); text-align: center; padding: 6px; }

/* ============================================================ uploads & processing */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 46px 24px; border-radius: var(--r-xl); border: 2px dashed var(--border-strong); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 70%); text-align: center; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--brand); transform: translateY(-1px); }
.dropzone.is-drag { background: var(--brand-soft-2); }
.dropzone .icon-tile { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; }
.dropzone .icon-tile .icon { width: 26px; height: 26px; }
.dropzone h3 { font-size: 17px; font-weight: 800; }
.dropzone p { color: var(--muted); font-size: 13px; max-width: 460px; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .formats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.proc-numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.proc-numbers > div { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.proc-numbers strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.proc-numbers span { font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 720px) { .proc-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.meter-lg { height: 12px; }
.feed { display: flex; flex-direction: column; max-height: 420px; overflow: auto; }
.feed-row { display: flex; align-items: center; gap: 11px; padding: 9px 4px; border-bottom: 1px dashed var(--border); font-size: 13px; animation: rise .3s var(--ease) both; }
.feed-row:last-child { border-bottom: 0; }
.feed-row .truncate { flex: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); animation: pulse-dot 1.6s infinite; flex: none; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ============================================================ job editor & jobs */
.jd-card { background: linear-gradient(180deg, var(--brand-soft), var(--surface) 45%); }
.req-editor { display: flex; flex-direction: column; gap: 8px; }
.req-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 150px 92px 34px; gap: 8px; align-items: center; padding: 8px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.req-row.is-must { border-color: var(--brand-line); background: color-mix(in srgb, var(--brand-soft) 60%, var(--surface)); }
.req-row .input, .req-row .select { height: 34px; font-size: 13px; }
@media (max-width: 860px) { .req-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .req-row .input:first-child { grid-column: 1 / -1; } }
.prio-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.job-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.job-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-line); }
.job-card-head { display: flex; align-items: flex-start; gap: 12px; }
.job-title { font-size: 15.5px; font-weight: 750; color: var(--text); line-height: 1.3; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.mini-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.mini-funnel > div { display: flex; flex-direction: column; gap: 2px; }
.mini-funnel strong { font-size: 17px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.mini-funnel span { font-size: 11px; color: var(--muted); font-weight: 600; }
.coverage { display: flex; flex-direction: column; gap: 12px; }
.coverage-row { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 4px 10px; align-items: center; font-size: 13px; }
.coverage-row .meter { grid-column: 1 / -1; height: 6px; }
.coverage-row strong { text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================ hiring profile */
.weights { display: flex; flex-direction: column; gap: 12px; }
.weight-row { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 76px; gap: 12px; align-items: center; }
.weight-row label { font-size: 13px; font-weight: 650; color: var(--text); display: flex; align-items: center; gap: 7px; min-width: 0; }
.weight-row label .icon { color: var(--muted); width: 15px; height: 15px; flex: none; }
.weight-row input[type=range] { width: 100%; accent-color: var(--brand); }
.weight-row .input { height: 32px; text-align: right; padding-left: 8px; padding-right: 24px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.weight-row .input::-webkit-inner-spin-button, .weight-row .input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.weight-num { position: relative; }
.weight-num::after { content: "%"; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); pointer-events: none; }
.weight-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.weight-total.is-bad { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber); }
.weight-total.is-good strong { color: var(--green); }
@media (max-width: 640px) { .weight-row { grid-template-columns: minmax(0, 1fr) 76px; } .weight-row input[type=range] { grid-column: 1 / -1; order: 3; } }
.rule-cards { display: flex; flex-direction: column; gap: 10px; }
.rule-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 13px 15px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.rule-card.is-active { border-left: 3px solid var(--green); }
.rule-card.is-blocked { border-left: 3px solid var(--red); background: color-mix(in srgb, var(--red-bg) 45%, var(--surface)); }
.rule-card.is-noted { border-left: 3px solid var(--teal); }
.rule-card.is-disabled { opacity: .6; }
.rule-statement { font-size: 13.5px; color: var(--text); line-height: 1.5; }
.rule-statement::before { content: "“"; color: var(--muted-2); }
.rule-statement::after { content: "”"; color: var(--muted-2); }
.rule-map { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.rule-controls { display: flex; align-items: center; gap: 8px; }
.rule-controls .select { height: 32px; font-size: 12.5px; }
@media (max-width: 720px) { .rule-card { grid-template-columns: minmax(0, 1fr); } }
.example-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.impact { display: flex; flex-direction: column; }
.impact-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 80px 70px; gap: 12px; align-items: center; padding: 9px 4px; border-bottom: 1px dashed var(--border); font-size: 13px; }
.impact-row:last-child { border-bottom: 0; }
.move { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.move.up { color: var(--green); } .move.down { color: var(--red); } .move.same { color: var(--muted-2); }
.move .icon { width: 13px; height: 13px; }

/* ============================================================ smart search */
.search-hero { padding: 26px; background: linear-gradient(135deg, var(--brand-soft), var(--surface) 65%); }
.search-box { display: flex; gap: 10px; align-items: stretch; }
.search-box .input { height: 50px; font-size: 15.5px; border-radius: 14px; padding-left: 46px; }
.search-box .input-wrap { position: relative; flex: 1; }
.search-box .input-wrap > .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--brand); width: 19px; height: 19px; }
.search-box .btn { height: 50px; border-radius: 14px; padding: 0 22px; }
@media (max-width: 640px) { .search-box { flex-direction: column; } }
.understood { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.result-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-bottom: 1px solid var(--border); transition: background .12s; }
.result-row:last-child { border-bottom: 0; }
.result-row:hover { background: var(--surface-2); }

/* ============================================================ compare */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.compare thead th { background: var(--surface-2); position: sticky; top: 0; }
.compare tbody th { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; background: var(--surface-2); position: sticky; left: 0; z-index: 1; min-width: 160px; }
.compare td { min-width: 190px; color: var(--text-2); }
.compare td.is-best { background: color-mix(in srgb, var(--green-bg) 70%, var(--surface)); }
.compare td.is-best .cmp-num::after { content: " ★"; color: var(--green); font-size: 11px; }
.compare .cmp-num { font-size: 16px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.compare .section-row th { background: var(--surface-3); color: var(--text); }

/* ============================================================ dashboard bits */
.hero-strip { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--r-xl); background: var(--grad); color: #fff; box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--brand) 80%, transparent); flex-wrap: wrap; }
.hero-strip h2 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.hero-strip p { color: rgba(255, 255, 255, .86); font-size: 13.5px; margin-top: 2px; }
.hero-strip .btn { background: #fff; color: var(--brand-strong); border-color: #fff; }
.attention-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); transition: background .12s; }
.attention-row:last-child { border-bottom: 0; }
.attention-row:hover { background: var(--surface-2); color: var(--text); }
.top-cand { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r); transition: background .12s; color: var(--text-2); }
.top-cand:hover { background: var(--surface-2); color: var(--text); }
.hbar-list { display: flex; flex-direction: column; gap: 10px; }
.hbar-row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 12.5px; }
.hbar-row .meter { height: 8px; }
.hbar-row strong { text-align: right; font-variant-numeric: tabular-nums; }

/* ============================================================ auth side shortlist */
.auth-rank { width: min(420px, 100%); border-radius: 20px; background: rgba(4, 28, 24, .55); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); backdrop-filter: blur(12px); padding: 8px 8px 10px; }
.auth-rank-head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 4px; }
.auth-rank-head strong { display: block; color: #fff; font-size: 14px; }
.auth-rank-head small { color: rgba(255, 255, 255, .55); font-size: 12px; }
.auth-rank-row { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; }
.auth-rank-row:nth-child(2) { background: rgba(255, 255, 255, .06); }
.auth-rank-row strong { display: block; color: #fff; font-size: 13px; }
.auth-rank-row small { display: block; color: rgba(255, 255, 255, .55); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-rank .score-ring::before { background: #0A2B26; }
.auth-rank .score-ring > span { color: #fff; }
.auth-rank .rank-num { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); }
.auth-rank .rank-num.top { background: var(--grad); color: #fff; }

/* ============================================================ topbar ask box */
.topbar-ask { cursor: text; }
.topbar-ask > .icon { color: var(--brand); }
.topbar-ask input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font: inherit; font-size: 13px; color: var(--text); padding: 0; }
.topbar-ask input::placeholder { color: var(--muted-2); }
.topbar-ask kbd { cursor: pointer; }
/* On phones the box becomes an icon that opens the search page. */
.topbar-ask { position: relative; }
.topbar-ask-link { display: none; }
@media (max-width: 720px) { .topbar-ask input { display: none; } .topbar-ask-link { display: block; position: absolute; inset: 0; border-radius: inherit; } }
.chip.is-used { opacity: .45; }
.dropzone.is-busy { pointer-events: none; opacity: .75; }
.setup-list { display: flex; flex-direction: column; gap: 10px; }
.setup-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); transition: border-color .15s, background .15s; }
a.setup-item:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--text); }
.setup-item.is-done { opacity: .6; }
.setup-item.is-done .setup-tick { background: var(--green); color: #fff; border-color: var(--green); }
.setup-tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; }
.setup-tick .icon { width: 13px; height: 13px; }

/* ============================================================ job page: suggestion bar + insights row */
.suggest-bar { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1); }
.suggest-copy { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; min-width: 0; }
.suggest-people { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.suggest-person { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; font-weight: 650; color: var(--text); transition: border-color .15s, background .15s; }
.suggest-person:hover { border-color: var(--brand); }
.insights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 1180px) { .insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .insights-grid { grid-template-columns: minmax(0, 1fr); } }
.rank-table .skill-chips { max-width: 300px; }
