/* Sparkle Recruit - shared styles */
:root {
  /* Sparkle design-system palette (colours only; layout & type stay as-is for the internal app) */
  --ink: #221F20;
  --ink-2: #4A4748;
  --text: #000000;
  --muted: #4A4748;
  --line: #ECEBEB;
  --bg: #FAFAF8;
  --card: #ffffff;
  --brand: #46B839;
  --brand-2: #97D700;
  --brand-soft: #E7F6E3;
  --spark: #FFC845;
  --good: #2F8A28;
  --good-soft: #E7F6E3;
  --warn: #8A6100;
  --warn-soft: #FFF1D6;
  --bad: #E55E00;
  --bad-soft: #FFE7D6;
  --on-brand: #221F20;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(34, 31, 32, .05), 0 4px 16px rgba(34, 31, 32, .07);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--good); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; color: var(--ink); }
h1 { font-size: 1.75rem; letter-spacing: -.02em; }
h2 { font-size: 1.3rem; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; }
h4 { font-size: .92rem; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: #FAFAF8; border-color: #D9D7D8; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: #3DA231; border-color: #3DA231; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-good { background: var(--good); border-color: var(--good); color: #fff; }
.btn-good:hover { background: #2F8A28; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); border-color: #FFC9A3; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-sm { padding: 5px 10px; font-size: .82rem; border-radius: 7px; }
.btn-lg { padding: 12px 22px; font-size: 1rem; border-radius: 11px; }
.btn-block { width: 100%; justify-content: center; }
.ai-btn::before { content: "✦"; color: var(--spark); }
.btn-primary.ai-btn::before { color: var(--ink); }

label { display: block; font-weight: 600; font-size: .85rem; margin: 0 0 5px; color: var(--ink); }
.field { margin-bottom: 14px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; font-weight: 400; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number],
input[type=datetime-local], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid #D9D7D8; border-radius: 9px; padding: 9px 11px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 90px; resize: vertical; }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(70, 184, 57, .25); }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: .88rem; }
.check input { margin-top: 3px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.spacer { flex: 1; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Cards, chips, badges ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h3 { margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.grey { background: #ECEBEB; color: #4A4748; }
.badge.dark { background: var(--ink); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; background: #F4F4F1; color: #221F20; margin: 2px 4px 2px 0; }
.chip.good { background: var(--good-soft); color: #2F8A28; }
.chip.bad { background: var(--bad-soft); color: #B84A00; }
.chip button { border: 0; background: none; cursor: pointer; color: inherit; padding: 0; font-size: .9em; }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 26px; padding: 0 8px; border-radius: 7px; font-weight: 800; font-size: .82rem; }
.score.hi { background: var(--good-soft); color: var(--good); }
.score.mid { background: var(--warn-soft); color: var(--warn); }
.score.lo { background: var(--bad-soft); color: var(--bad); }
.score.na { background: #ECEBEB; color: #757273; }
.empty { text-align: center; color: var(--muted); padding: 34px 12px; }
.empty .big { font-size: 2rem; margin-bottom: 6px; }
.notice { padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); color: #2F8A28; font-size: .86rem; margin-bottom: 14px; }
.notice.warn { background: var(--warn-soft); color: #8A6100; }
.notice.good { background: var(--good-soft); color: #2F8A28; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 6px 0; border-bottom: 1px solid #ECEBEB; }
.list-plain li:last-child { border-bottom: 0; }
ul.bullets { margin: 0; padding-left: 18px; }
ul.bullets li { margin-bottom: 4px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid #ECEBEB; vertical-align: middle; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #FAFAF8; }

/* ---------- Toast / modal / spinner ---------- */
#toasts { position: fixed; bottom: 18px; right: 18px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 36px); }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.2); font-size: .9rem; max-width: 380px; animation: pop .2s ease-out; }
.toast.error { background: var(--bad); }
.toast.good { background: var(--good); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-bg { position: fixed; inset: 0; background: rgba(34, 31, 32, .45); display: flex; align-items: flex-start; justify-content: center; z-index: 900; padding: 6vh 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; padding: 22px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .18s ease-out; }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; align-items: center; margin-bottom: 14px; }
.modal-head h2 { margin: 0; flex: 1; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(70, 184, 57, .25); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
.btn .spinner { width: 14px; height: 14px; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.btn:not(.btn-primary):not(.btn-dark):not(.btn-good) .spinner { border-color: rgba(70,184,57,.25); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block { padding: 50px; text-align: center; color: var(--muted); }

/* ---------- Public pages (careers, screening, assessment, schedule) ---------- */
.pub-header { background: var(--ink); color: #fff; }
.pub-header .inner { max-width: 1040px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.logo .spark { color: var(--spark); font-size: 1.2em; }
.logo small { color: rgba(255,255,255,.6); font-weight: 500; font-size: .8em; }
.hero { background: var(--ink); color: #fff; padding: 46px 20px 70px; }
.hero .inner { max-width: 1040px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: 2.4rem; max-width: 640px; }
.hero p { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 600px; }
.hero .process { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero .step { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 14px; font-size: .85rem; color: #fff; }
.hero .step b { color: var(--spark); margin-right: 4px; }
.pub-main { max-width: 1040px; margin: -40px auto 40px; padding: 0 20px; position: relative; }
.pub-narrow { max-width: 720px; margin: 30px auto 50px; padding: 0 20px; }
.job-list { display: grid; gap: 12px; }
.job-item { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s, transform .1s; }
.job-item:hover { border-color: var(--brand-2); transform: translateY(-1px); }
.job-item h3 { margin: 0 0 4px; }
.job-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.job-meta span::after { content: "·"; margin-left: 8px; color: #D9D7D8; }
.job-meta span:last-child::after { content: ""; }
.filters { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.filters input, .filters select { max-width: 260px; background: #fff; }
.ref-banner { background: #FFF1D6; border: 1px solid #FFC845; color: #8A6100; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: .9rem; }
.job-detail h2 { margin-top: 18px; font-size: 1.05rem; }
.dropzone { border: 2px dashed #D9D7D8; border-radius: 12px; padding: 20px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; background: #FAFAF8; }
.dropzone.drag, .dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone.has-file { border-style: solid; border-color: var(--good); background: var(--good-soft); color: #2F8A28; }
.hp { position: absolute; left: -9999px; }
.success-big { text-align: center; padding: 40px 20px; }
.success-big .icon { font-size: 3rem; }
.pub-footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 20px; }

/* video pre-screen */
.progress-dots { display: flex; gap: 6px; margin-bottom: 16px; }
.progress-dots span { flex: 1; height: 5px; border-radius: 9px; background: #ECEBEB; }
.progress-dots span.done { background: var(--good); }
.progress-dots span.current { background: var(--brand); }
.video-box { position: relative; background: #221F20; border-radius: 14px; overflow: hidden; aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; color: #D9D7D8; }
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.rec-dot { position: absolute; top: 12px; left: 12px; background: rgba(229, 94, 0, .92); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; display: none; }
.rec-dot.on { display: block; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .65; } }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.slot { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; background: #fff; text-align: left; font: inherit; }
.slot:hover { border-color: var(--brand-2); }
.slot.sel { border-color: var(--brand); background: var(--brand-soft); }
.brief { white-space: pre-wrap; background: #FAFAF8; border: 1px solid var(--line); border-radius: 10px; padding: 16px; font-size: .92rem; }

/* ---------- Internal app shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: #D9D7D8; padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; }
.sidebar .logo { padding: 4px 10px 18px; }
.nav a { display: flex; align-items: center; gap: 10px; color: #D9D7D8; padding: 8px 10px; border-radius: 8px; font-weight: 500; font-size: .9rem; margin-bottom: 2px; }
.nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.nav a.active { background: rgba(70, 184, 57, .30); color: #fff; }
.nav .ico { width: 20px; text-align: center; opacity: .9; }
.nav .sect { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #A9A7A8; padding: 14px 10px 6px; }
.nav .count { margin-left: auto; background: var(--spark); color: var(--ink); border-radius: 999px; font-size: .7rem; font-weight: 800; padding: 0 7px; }
.sidebar .me { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.sidebar .me b { color: #fff; display: block; }
.sidebar .me a { color: #97D700; font-size: .8rem; }
.main { padding: 24px 30px 50px; min-width: 0; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); font-size: .9rem; }
.topbar-mobile { display: none; }
.status-pill { font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: #D9D7D8; margin: 0 10px 8px; display: inline-block; }
.status-pill.on { background: rgba(70, 184, 57, .25); color: #97D700; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 800; width: 250px; left: -260px; transition: left .2s; }
  .sidebar.open { left: 0; }
  .topbar-mobile { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 10px 16px; position: sticky; top: 0; z-index: 700; }
  .main { padding: 18px 16px 40px; }
}

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .label { font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-top: 2px; }
.kpi .value small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.dash-grid .card + .card { margin-top: 0; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

/* Bar charts (pure CSS) */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 92px; gap: 10px; align-items: center; font-size: .85rem; }
.bar-track { background: #ECEBEB; border-radius: 6px; height: 22px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand); border-radius: 6px; min-width: 2px; transition: width .4s; }
.bar-fill.alt { background: #97D700; }
.bar-fill.good { background: var(--good); }
.bar-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.drop { color: var(--bad); font-size: .75rem; }
.spark-cols { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 10px; }
.spark-cols .col { flex: 1; background: var(--brand-2); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.spark-cols .col:hover { background: var(--brand); }
.spark-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 4px; }

/* Kanban */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.kcol { flex: 0 0 248px; background: #F4F4F1; border-radius: 12px; padding: 10px; min-height: 140px; }
.kcol.drop-target { outline: 2px dashed var(--brand); }
.kcol-head { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--ink); padding: 2px 4px 10px; }
.kcol-head .n { background: #fff; border-radius: 999px; padding: 0 8px; font-size: .75rem; color: var(--muted); }
.kcard { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(34, 31, 32, .08); cursor: pointer; border: 1px solid transparent; }
.kcard:hover { border-color: #97D700; }
.kcard .nm { font-weight: 700; font-size: .9rem; color: var(--ink); }
.kcard .hl { font-size: .78rem; color: var(--muted); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard .meta { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; font-size: .74rem; color: var(--muted); }
.kcard.dragging { opacity: .5; }

/* Candidate detail */
.cand-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.avatar { width: 54px; height: 54px; border-radius: 14px; background: var(--brand-soft); color: var(--on-brand); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.avatar.sm { width: 30px; height: 30px; border-radius: 8px; font-size: .75rem; }
.stage-track { display: flex; gap: 3px; margin: 10px 0 0; flex-wrap: wrap; }
.stage-track span { font-size: .72rem; padding: 3px 9px; background: #ECEBEB; color: #4A4748; border-radius: 4px; font-weight: 600; }
.stage-track span.done { background: #E7F6E3; color: #2F8A28; }
.stage-track span.cur { background: var(--brand); color: var(--on-brand); }
.stage-track span.rej { background: var(--bad); color: #fff; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 9px 12px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--good); border-bottom-color: var(--brand); }
.subscores { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; }
.subscore { background: #FAFAF8; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.subscore .k { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.subscore .v { font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.meter { height: 5px; background: #ECEBEB; border-radius: 9px; overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--brand); }
.ai-panel { background: #F3FBF0; border: 1px solid #C9EAC3; }
.ai-tag { font-size: .7rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: .86rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #ECEBEB; }
.comment:last-child { border-bottom: 0; }
.comment .body { white-space: pre-wrap; font-size: .9rem; }
.scorecard-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.rating-grid { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .85rem; margin-top: 8px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 10px; height: 10px; border-radius: 3px; background: #ECEBEB; }
.dots i.on { background: var(--brand); }
.qa { border-left: 3px solid var(--brand-soft); padding: 2px 0 2px 12px; margin-bottom: 14px; }
.qa .q { font-weight: 700; color: var(--ink); font-size: .9rem; }
.qa video { width: 100%; max-width: 420px; border-radius: 10px; margin-top: 6px; background: #000; }
.email-preview { white-space: pre-wrap; font-size: .85rem; background: #FAFAF8; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; max-height: 240px; overflow-y: auto; }

/* Live scorecard */
.live-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .live-grid { grid-template-columns: 1fr; } }
.live-side { position: sticky; top: 16px; }
.q-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; background: #fff; }
.q-item.asked { border-color: #C9EAC3; background: #F3FBF0; }
.q-item .qtext { font-weight: 700; color: var(--ink); }
.q-item .why { font-size: .8rem; color: var(--muted); margin: 4px 0 8px; }
.q-item textarea { min-height: 70px; font-size: .9rem; }
.rate { display: flex; gap: 4px; }
.rate button { width: 34px; height: 32px; border: 1px solid #D9D7D8; background: #fff; border-radius: 7px; font: inherit; font-weight: 700; cursor: pointer; color: var(--muted); }
.rate button.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.rate button.ai { box-shadow: inset 0 -3px 0 var(--spark); }
.crit-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #ECEBEB; flex-wrap: wrap; }
.crit-row .ev { flex-basis: 100%; font-size: .78rem; color: var(--muted); }
.rec-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rec-group button { padding: 8px 4px; border: 1px solid #D9D7D8; border-radius: 8px; background: #fff; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.rec-group button.on[data-v=strong_yes], .rec-group button.on[data-v=yes] { background: var(--good); border-color: var(--good); color: #fff; }
.rec-group button.on[data-v=no], .rec-group button.on[data-v=strong_no] { background: var(--bad); border-color: var(--bad); color: #fff; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); padding: 20px; }
.login-card { background: #fff; border-radius: 18px; padding: 30px; width: 100%; max-width: 400px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.login-card .logo { color: var(--ink); margin-bottom: 18px; }
.login-card .logo small { color: var(--muted); }
.copy-row { display: flex; gap: 6px; }
.copy-row input { font-family: ui-monospace, monospace; font-size: .82rem; }
.tpl-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; font: inherit; cursor: pointer; }
.tpl-list button.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.tpl-list button:hover { background: #F3FBF0; }
