/* HireRight - one stylesheet. Minimal black & white, one blue accent; works from a 360 px phone to a wide screen. */
:where(svg:not([width])) { width: 16px; height: 16px; flex: none; }   /* icons never blow up to full size */
:root {
  --bg: #fafafa; --panel: #fff; --ink: #0a0a0a; --ink-2: #333; --muted: #6b6b6b; --faint: #a3a3a3;
  --line: #e7e7e7; --line-2: #f1f1f1; --hover: #f5f5f5;
  --accent: #2f5bff; --accent-soft: #eef2ff;
  --good: #0f7b4b; --good-soft: #eaf7f0; --warn: #a15c00; --warn-soft: #fff6e6; --bad: #c02a1d; --bad-soft: #fdf1f0;
  --radius: 10px; --shadow: 0 24px 60px -18px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.04);
  --font: "Geist", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; } a:hover { text-decoration: underline; }
a.link, .link { color: var(--accent); cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; } h1 { font-size: 22px; font-weight: 650; } h2 { font-size: 16px; font-weight: 600; } h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.hidden { display: none !important; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nowrap { white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 12px; } .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.good-t { color: var(--good); } .bad-t { color: var(--bad); } .warn-t { color: var(--warn); }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 14px 10px; background: var(--panel); border-right: 1px solid var(--line); z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.brand b { display: block; font-size: 15px; } .brand small { display: block; color: var(--muted); font-size: 11.5px; max-width: 150px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--hover); text-decoration: none; } .nav a.on { background: var(--ink); color: #fff; }
.nav svg { width: 17px; height: 17px; flex: none; }
.nav .sep { height: 1px; background: var(--line); margin: 10px 6px; }
.nav-n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.nav a.on .nav-n { background: #fff; color: var(--ink); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.credit-box { padding: 8px 10px; border-radius: 8px; background: var(--hover); font-size: 12.5px; }
.credit-box b { font-size: 15px; }
.me { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; cursor: pointer; border: 0; background: none; text-align: left; width: 100%; }
.me:hover { background: var(--hover); } .me b { display: block; font-size: 13px; } .me span { font-size: 11.5px; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: rgba(250,250,250,.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .title { font-weight: 600; flex: 1; min-width: 0; }
.page { padding: 8px 28px 80px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 18px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 4px; }
.tabbar { display: none; }
.menu-btn { display: none; }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line);
       background: var(--panel); font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); border-color: #d2d2d2; } .btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; } .btn.primary:hover { background: #000; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--hover); }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bad-soft); border-color: #f2cfcb; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; } .btn.lg { height: 46px; padding: 0 20px; font-size: 15px; }
.btn.icon { width: 34px; padding: 0; } .btn.block { width: 100%; }
.btn.wa { background: #128c4b; border-color: #128c4b; color: #fff; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; } .field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); outline: none; }
textarea.input { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
select.input { padding-right: 28px; }
.input:focus, .taginput:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { font-size: 12px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #efefef; gap: 2px; flex-wrap: wrap; }
.inbox-list .seg { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .inbox-list .seg button { flex: 1 0 auto; padding: 6px 9px; justify-content: center; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg svg { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 13px; }
.chip:hover { border-color: #cfcfcf; } .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.taginput { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 38px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); cursor: text; }
.taginput input { flex: 1; min-width: 90px; border: 0; outline: none; background: none; height: 28px; padding: 0 4px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 9px; border-radius: 6px; background: var(--hover); font-size: 13px; }
.tag.star { background: var(--ink); color: #fff; }
.tag button { border: 0; background: none; cursor: pointer; color: inherit; opacity: .55; padding: 0 3px; font-size: 15px; line-height: 1; } .tag button:hover { opacity: 1; }
.tag .st { cursor: pointer; opacity: .8; }
.switch { position: relative; width: 36px; height: 20px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #d4d4d4; transition: .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked + span { background: var(--ink); } .switch input:checked + span::after { transform: translateX(16px); }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 18px 20px; } .card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; } .kpi b { display: block; font-size: 24px; font-weight: 650; letter-spacing: -.02em; } .kpi span { font-size: 12.5px; color: var(--muted); }
.callout { padding: 12px 14px; border-radius: 9px; background: var(--hover); font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.callout.info { background: var(--accent-soft); } .callout.good { background: var(--good-soft); } .callout.warn { background: var(--warn-soft); } .callout.bad { background: var(--bad-soft); }
.callout svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 8px; border-radius: 99px; background: var(--hover); color: var(--ink-2); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.badge.ok { 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.accent { background: var(--accent-soft); color: var(--accent); } .badge.dark { background: var(--ink); color: #fff; }
.badge svg { width: 11px; height: 11px; }
.list > * + * { border-top: 1px solid var(--line-2); }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 18px; } a.item:hover, button.item:hover, .item.click:hover { background: var(--hover); text-decoration: none; cursor: pointer; }
button.item { width: 100%; border: 0; background: none; text-align: left; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #efefef; color: var(--ink-2); display: grid; place-items: center; font-weight: 600; font-size: 12.5px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; } .avatar.sm { width: 28px; height: 28px; font-size: 11px; } .avatar.lg { width: 52px; height: 52px; font-size: 17px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); } .empty > svg { width: 34px; height: 34px; opacity: .45; margin-bottom: 8px; }
.empty h3 { color: var(--ink); margin-bottom: 6px; font-size: 16px; } .empty .btn { margin-top: 14px; }
.skeleton { background: linear-gradient(90deg, #f0f0f0, #f8f8f8, #f0f0f0); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }
.spinner { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; } .progress i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width .4s; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 10px 14px; border: 0; background: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; }
.tabs a:hover { text-decoration: none; color: var(--ink); } .tabs .on { color: var(--ink); border-bottom-color: var(--ink); }
.table-wrap { overflow-x: auto; } .tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; } .tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click:hover td { background: var(--hover); cursor: pointer; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px; border: 1.5px dashed #d0d0d0; border-radius: 10px;
            color: var(--muted); cursor: pointer; text-align: center; background: var(--panel); }
.dropzone:hover, .dropzone.over { border-color: var(--ink); color: var(--ink); } .dropzone svg { width: 22px; height: 22px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 10px; } .steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; margin-top: 1px; }
.copy { display: flex; gap: 6px; } .copy input { font-family: var(--mono); font-size: 12px; }

/* ---------------------------------------------------------------- candidates */
.brief { padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 16px; }
.brief .field { margin: 0; }
.brief-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line-2); }
.results-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; margin: 16px 2px 10px; }
.cand { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; }
.cand + .cand { border-top: 1px solid var(--line-2); }
.cand:hover { background: #fcfcfc; } .cand.sel { background: var(--accent-soft); }
.cand .pick { padding-top: 9px; } .cand .pick input { width: 17px; height: 17px; accent-color: var(--ink); cursor: pointer; }
.cand-name { font-weight: 600; cursor: pointer; } .cand-name:hover { text-decoration: underline; }
.cand-sub { color: var(--ink-2); margin-top: 1px; } .cand-meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.ck { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; background: var(--hover); color: var(--muted); }
.ck.yes { background: var(--good-soft); color: var(--good); } .ck.no { background: var(--bad-soft); color: var(--bad); }
.ck svg { width: 11px; height: 11px; }
.cand-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.score { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 14px;
         background: conic-gradient(var(--ink) calc(var(--p) * 1%), #ececec 0); position: relative; }
.score::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--panel); } .score span { position: relative; }
.score.mid { background: conic-gradient(#8a8a8a calc(var(--p) * 1%), #ececec 0); } .score.lo { background: conic-gradient(#c8c8c8 calc(var(--p) * 1%), #ececec 0); }
.selbar { position: sticky; bottom: 14px; z-index: 25; margin-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px;
          background: var(--ink); color: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.selbar .btn { background: #262626; border-color: #3a3a3a; color: #fff; } .selbar .btn:hover { background: #333; } .selbar .btn.primary { background: #fff; color: var(--ink); }
.unlock { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; }
.unlock + .unlock { margin-top: 8px; } .unlock b { font-weight: 600; word-break: break-all; }
.price { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- pipeline board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.col { background: #f2f2f2; border-radius: 11px; padding: 8px; min-height: 120px; } .col.over { outline: 2px dashed var(--ink); }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 8px; font-weight: 600; font-size: 13px; }
.kcard { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; margin-bottom: 7px; cursor: grab; }
.kcard:hover { border-color: #cfcfcf; } .kcard b { display: block; font-size: 13.5px; } .kcard .tiny { margin-top: 2px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ---------------------------------------------------------------- inbox */
.inbox { display: grid; grid-template-columns: 360px minmax(0, 1fr); height: calc(100vh - 128px); min-height: 480px; overflow: hidden; }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; }
.inbox-list .tools { padding: 10px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; background: var(--panel); z-index: 2; }
.thread { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; text-decoration: none !important; }
.thread:hover { background: var(--hover); } .thread.on { background: var(--accent-soft); }
.thread .t1 { display: flex; justify-content: space-between; gap: 6px; } .thread .t1 b { font-size: 13.5px; } .thread.unread b { font-weight: 700; }
.thread .t2 { color: var(--muted); font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.conv-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fcfcfc; }
.bubble { max-width: min(560px, 86%); padding: 10px 13px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); word-wrap: break-word; } .bubble .txt { white-space: pre-wrap; }
.bubble.out { align-self: flex-end; background: var(--ink); color: #fff; border-color: var(--ink); }
.bubble.out .meta { color: #bdbdbd; } .bubble .meta { font-size: 11.5px; color: var(--muted); margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bubble .subj { font-weight: 600; margin-bottom: 4px; } .bubble.failed { border-color: var(--bad); background: var(--bad-soft); color: var(--ink); }
.composer { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--panel); }
.quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; } .quick .chip { height: 26px; font-size: 12px; flex: none; }
.file-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; font-size: 12.5px; max-width: 100%; }
.file-chip:hover { border-color: #cfcfcf; } .file-chip .ext { font-family: var(--mono); font-size: 10px; text-transform: uppercase; padding: 2px 5px; border-radius: 4px; background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- drawer & modal */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.28); z-index: 60; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--panel); z-index: 61; overflow-y: auto; box-shadow: var(--shadow); animation: slide .18s ease-out; }
.drawer > .close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.drawer-head { padding: 20px 56px 14px 22px; border-bottom: 1px solid var(--line-2); }
.sec { padding: 16px 22px; border-bottom: 1px solid var(--line-2); } .sec-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sec-h h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
@keyframes slide { from { transform: translateX(30px); opacity: .4; } } @keyframes fade { from { opacity: 0; } }
.modal-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 80; display: grid; place-items: start center; padding: 6vh 16px 16px; overflow-y: auto; animation: fade .12s; }
.modal { width: min(520px, 100%); background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); } .modal.wide { width: min(760px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 10px; } .modal-head p { color: var(--muted); margin-top: 4px; font-size: 13px; }
.modal-body { padding: 8px 20px 18px; } .modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 520px); }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 13.5px; animation: fade .15s; text-align: center; }
.toast.error { background: var(--bad); } .toast.success { background: #0d5f3a; }
.pop { position: fixed; top: 58px; right: 20px; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; z-index: 70; box-shadow: var(--shadow); }
.viewer { width: 100%; height: 72vh; border: 0; border-radius: 8px; background: #f2f2f2; } .viewer-text { white-space: pre-wrap; font-size: 13px; max-height: 70vh; overflow: auto; }

/* ---------------------------------------------------------------- sign-in & public pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(410px, 100%); padding: 28px; } .auth-card h1 { margin: 14px 0 4px; }
.pub { max-width: 860px; margin: 0 auto; padding: 32px 16px 60px; }
.pub-cand { padding: 16px 18px; } .pub-cand + .pub-cand { border-top: 1px solid var(--line-2); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.slot { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; text-align: left; } .slot:hover { border-color: var(--ink); } .slot:disabled { opacity: .4; cursor: default; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 11px; cursor: pointer; background: var(--panel); text-align: left; width: 100%; }
.opt:hover { border-color: #c9c9c9; } .opt.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c4c4c4; flex: none; margin-top: 2px; display: grid; place-items: center; }
.opt.on .radio { border-color: var(--ink); } .opt.on .radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.opt > div > b:first-child { display: block; } .opts { display: flex; flex-direction: column; gap: 8px; }
.logo-g, .logo-m { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- phones & tablets */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-102%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; } .page { padding: 4px 16px 96px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 35; background: var(--panel); border-top: 1px solid var(--line);
            padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11px; color: var(--muted); border: 0; background: none; position: relative; }
  .tabbar a.on { color: var(--ink); font-weight: 600; } .tabbar svg { width: 20px; height: 20px; }
  .tabbar .nav-n { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 16px; height: 16px; font-size: 10px; margin: 0; }
  .cols-2, .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .inbox { grid-template-columns: 1fr; height: calc(100vh - 150px); }
  .inbox.has-conv .inbox-list { display: none; } .inbox:not(.has-conv) .conv { display: none; }
  .cand { grid-template-columns: auto minmax(0, 1fr) auto; } .cand .avatar { display: none; }
  .selbar { bottom: 70px; }
  .hide-sm { display: none !important; }
  .board { grid-auto-columns: 82%; scroll-snap-type: x mandatory; } .col { scroll-snap-align: start; }
  .modal-wrap { padding: 0; place-items: end center; } .modal { border-radius: 16px 16px 0 0; max-height: 94vh; overflow-y: auto; }
  .kpi b { font-size: 20px; }
}
@media (min-width: 901px) { .show-sm { display: none !important; } }
.opt:disabled { opacity: .55; cursor: not-allowed; } .opt:disabled:hover { border-color: var(--line); }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }

/* ---------------------------------------------------------------- v9: guided steps, checklists, previews */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.flow-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
             min-width: 0; color: inherit; text-decoration: none !important; }
a.flow-step:hover { border-color: #cfcfcf; }
.flow-step.now { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.flow-step b { display: block; font-size: 13.5px; } .flow-step span { font-size: 12px; color: var(--muted); }
.flow-step .btn { margin-left: auto; flex: none; }
.num { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #cfcfcf; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--muted); flex: none; }
.num svg { width: 13px; height: 13px; }
.done .num { background: var(--ink); border-color: var(--ink); color: #fff; } .now .num { border-color: var(--ink); color: var(--ink); }
.setup-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.setup-row + .setup-row { border-top: 1px solid var(--line-2); }
.setup-row.done b { color: var(--muted); font-weight: 500; }
.setup-row .hint { margin-top: 1px; }
.preview { border: 1px solid var(--line); border-radius: 10px; background: #fcfcfc; margin-top: 10px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.preview-body { padding: 12px 14px; white-space: pre-wrap; font-size: 13px; max-height: 240px; overflow: auto; }
.fu-date { font-size: 12px; color: var(--muted); }
.wa-next { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; background: var(--good-soft); margin-top: 14px; flex-wrap: wrap; }
.wa-next .grow b { display: block; }
.kbd { font-family: var(--mono); font-size: 10.5px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--panel); color: var(--muted); }
.inbox-foot { margin-top: auto; padding: 9px 14px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--faint); display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12.5px; max-width: 100%; }
.filter-chip a { color: #fff; opacity: .7; display: grid; place-items: center; } .filter-chip a:hover { opacity: 1; text-decoration: none; }
.actions-row { display: flex; gap: 6px; flex-wrap: wrap; }
.funnel-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 84px; align-items: center; gap: 12px; padding: 7px 0; font-size: 13px; }
.funnel-row .bar { height: 12px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.funnel-row .bar i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.funnel-row .v { text-align: right; font-variant-numeric: tabular-nums; } .funnel-row .v small { color: var(--muted); margin-left: 4px; }
.tbl td.num-c, .tbl th.num-c { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 6px; } .flow-step { padding: 10px 12px; }
  .setup-row { padding: 12px 14px; flex-wrap: wrap; } .setup-row .btn { margin-left: 38px; }
  .funnel-row { grid-template-columns: 80px minmax(0, 1fr) 70px; gap: 8px; }
}

/* ---------------------------------------------------------------- v10: public site, job board, job seekers, sign-up */
.site { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.site-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; width: 100%; }
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(250,250,250,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .site-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.site-brand { display: flex; align-items: center; gap: 9px; font-size: 16px; } .site-brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 4px; flex: 1; } .site-nav a { padding: 7px 11px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--ink); background: var(--hover); text-decoration: none; } .site-nav a.on { color: var(--ink); }
#sitePage { flex: 1; padding-bottom: 60px; }
.site-foot { border-top: 1px solid var(--line); padding: 22px 0; font-size: 12.5px; color: var(--muted); }
.site-foot .site-in { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; } .site-foot a { color: var(--muted); }
.hero { padding: 48px 0 28px; background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line-2); margin-bottom: 22px; }
.hero h1 { font-size: clamp(28px, 5vw, 42px); letter-spacing: -.035em; line-height: 1.08; max-width: 720px; }
.hero p { color: var(--muted); font-size: 16px; margin: 10px 0 20px; max-width: 620px; }
.hero-stats { font-size: 13.5px !important; margin: 12px 0 0 !important; }
.searchbar { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto auto; gap: 8px; padding: 8px; background: var(--panel); border: 1px solid var(--line);
             border-radius: 14px; box-shadow: 0 8px 30px -14px rgba(0,0,0,.18); margin-bottom: 16px; }
.sb-f { display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 9px; background: var(--bg); color: var(--muted); }
.sb-f input { border: 0; outline: none; background: none; height: 44px; flex: 1; min-width: 0; font-size: 15px; color: var(--ink); }
.sb-f:focus-within { box-shadow: 0 0 0 2px var(--accent-soft); }
.sb-mode { height: 46px; width: auto; }
.board-cols { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.side-cta { position: sticky; top: 80px; }
.job-card { display: block; padding: 16px 18px; color: inherit; transition: border-color .12s, box-shadow .12s; }
.job-card + .job-card { margin-top: 10px; } .stack > .job-card + .job-card { margin-top: 0; }
.job-card:hover { border-color: #cfcfcf; box-shadow: 0 6px 22px -14px rgba(0,0,0,.25); text-decoration: none; }
.jc-title { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; } .jc-co { color: var(--ink-2); margin-top: 1px; }
.jc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 12.5px; margin-top: 8px; } .jc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.chip.sm { height: 24px; padding: 0 9px; font-size: 12px; cursor: default; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.job-side { position: sticky; top: 80px; }
.jd { white-space: pre-wrap; line-height: 1.65; font-size: 14.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.board-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: -6px 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.board-strip > svg { color: var(--good); } .board-strip.off > svg { color: var(--faint); }
.btn.google { background: var(--panel); border-color: #d6d6d6; color: var(--ink); font-weight: 600; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 14px 0; } .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-input { font-size: 22px; letter-spacing: .35em; text-align: center; height: 50px; font-family: var(--mono); }
.auth-card.wide { width: min(520px, 100%); }
#sitePage .auth { min-height: auto; padding: 40px 16px; }
a.opt { color: inherit; text-decoration: none !important; } .opt > svg { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.opt span.small { display: block; margin-top: 3px; line-height: 1.45; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 8px; }
.feature h3 { margin: 10px 0 6px; } .feature > svg { color: var(--accent); }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.pack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; text-align: left; }
.pack:hover:not(:disabled) { border-color: var(--ink); } .pack:disabled { opacity: .55; cursor: default; }
.pack b { font-size: 24px; letter-spacing: -.02em; } .pack em { font-style: normal; font-weight: 600; margin-top: 6px; font-size: 15px; }
a.kpi, button.kpi { color: inherit; text-decoration: none !important; text-align: left; font: inherit; cursor: pointer; } a.kpi:hover, button.kpi:hover { border-color: #cfcfcf; }
.kpi.metric.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; height: 160px; align-items: end; border-bottom: 1px solid var(--line); }
.bar { height: 100%; display: flex; align-items: flex-end; cursor: default; } .bar:hover i { background: var(--accent); }
.bar i { display: block; width: 100%; background: var(--ink); border-radius: 4px 4px 0 0; }
.chart-tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 7px; white-space: nowrap; }
@media (max-width: 900px) {
  .board-cols, .job-layout { grid-template-columns: minmax(0, 1fr); }
  .side-cta, .job-side { position: static; }
  .searchbar { grid-template-columns: minmax(0, 1fr); }
  .sb-mode { width: 100%; }
  .hero { padding: 30px 0 18px; }
  .site-nav { display: none; }
  .site-head .site-in { justify-content: space-between; }
}
@media (max-width: 480px) { .hide-xs { display: none !important; } .site-in { padding: 0 16px; } }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis.k3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hint.bad-t { color: var(--bad); }
.apply-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 34; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(250,250,250,.95);
             backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.page .apply-bar { bottom: calc(58px + env(safe-area-inset-bottom)); }

.apply-google { border-top: 1px solid var(--line); }

/* live jobs (real openings from across the web, refreshed daily) */
.board-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.board-tabs .badge { height: 19px; font-size: 11px; }
.live-cats .chip { flex: 0 0 auto; }
@media (max-width: 700px) { .live-cats { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; } }
.live-card .jc-title { color: var(--ink); }
.live-card a.jc-title:hover { text-decoration: underline; }
.lj-logo { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); object-fit: contain; background: #fff; flex: 0 0 40px; }
.lj-ph { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: var(--muted); background: var(--hover); }
@media (max-width: 520px) { .lj-logo { width: 34px; height: 34px; flex-basis: 34px; } }

/* job search: similar designations added by AI */
.sim-line { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; }
.sim-line .chip.sm { cursor: default; }
