/* Screenly recruiter console. Builds on screenly.css tokens. */
body.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; background: var(--bg); --g-fill: #13A05B; --a-fill: #C4850C; --l-fill: #C4574A; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* Sidebar */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; background: var(--d-bg); color: var(--d-ink); --focus: var(--green); }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 24px; }
.side-brand span { font-family: var(--font-display); font-size: 22px; font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--d-muted); transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
@media (hover: hover) and (pointer: fine) { .side-nav a:hover { background: rgba(226,234,241,.06); color: var(--d-ink); } }
.side-nav a[aria-current='page'] { background: rgba(226,234,241,.09); color: var(--d-ink); }
.side-nav a[aria-current='page']::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--green); }
.side-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--green); color: var(--accent-ink); font-size: 11px; display: grid; place-items: center; font-weight: 600; }
.side-foot { margin-top: auto; display: grid; gap: 16px; padding: 0 6px; }
.side-org { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(226,234,241,.05); font-size: 13px; }
.side-org .muted { color: var(--d-muted); font-size: 12px; }
.org-dot { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #1F3A2E; color: var(--green); font-size: 12px; font-weight: 600; flex: none; }
.side-db { padding-left: 6px; color: var(--d-muted); }

/* Main */
.main { min-width: 0; padding: 16px clamp(16px, 3vw, 36px) 40px; }
.demo-bar { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 11px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.demo-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--amber); }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.top-kicker { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.top-title { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.05; letter-spacing: -.035em; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); width: 300px; transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(13,19,26,.06); }
.search input { border: 0; outline: 0; background: none; width: 100%; font-size: 14px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.btn-line { border: 1px solid var(--line-2); color: var(--ink); background: var(--surface); }
@media (hover: hover) and (pointer: fine) { .btn-line:hover { border-color: var(--ink); } }

.view[data-entering] { animation: viewIn 320ms var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.kpi p { font-size: 13px; color: var(--muted); }
.kpi b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.1; letter-spacing: -.04em; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi.hl { background: var(--d-bg); color: var(--d-ink); border-color: var(--d-bg); }
.kpi.hl p, .kpi.hl span { color: var(--d-muted); }
.kpi.hl b { color: var(--green); }

/* Jobs */
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.job { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: left; transition: border-color var(--t-fast) ease, box-shadow var(--t-ui) ease, transform var(--t-press) var(--ease-out); }
.job:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .job:not(.draft):hover { border-color: var(--line-2); box-shadow: var(--shadow-card); } }
.job-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.job h2 { font-family: var(--font-display); font-weight: 600; font-size: 23px; line-height: 1.12; letter-spacing: -.025em; max-width: none; }
.job-org { font-size: 13px; color: var(--muted); margin-top: 3px; }
.status { flex: none; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 7px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.st-live { background: var(--green-soft); color: var(--green-deep); }
.st-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-draft { background: var(--bg-2); color: var(--ink-2); }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.funnel div { padding: 10px 12px 12px; border-radius: 10px; background: var(--bg); position: relative; overflow: hidden; }
.funnel p { font-size: 11.5px; color: var(--muted); }
.funnel b { font-family: var(--font-mono); font-weight: 500; font-size: 19px; }
.funnel i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--g-fill); transform-origin: left; transform: scaleX(var(--f)); transition: transform 900ms var(--ease-out); }
.funnel[data-pre] i { transform: scaleX(0); }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.job-meta span { font-size: 12px; padding: 3px 9px; border-radius: 6px; background: var(--bg); color: var(--ink-2); }
.job-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.job-foot .go { font-weight: 600; color: var(--green-deep); display: inline-flex; align-items: center; gap: 6px; }
.job-foot .go svg { transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .job:hover .go svg { transform: translateX(3px); } }
.top3 { display: flex; align-items: center; gap: 0; }
.top3 .av { width: 26px; height: 26px; border-radius: 8px; font-size: 10.5px; border: 2px solid var(--surface); margin-left: -6px; }
.top3 .av:first-child { margin-left: 0; }
.top3 span { margin-left: 8px; color: var(--muted); font-size: 12.5px; }
.job.draft { background: transparent; border-style: dashed; border-color: var(--line-2); }

/* Avatars on light */
.app .av { background: hsl(var(--h, 200) 45% 90%); color: hsl(var(--h, 200) 45% 28%); }

/* Shortlist */
.sl-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.job-pick { position: relative; display: inline-flex; align-items: center; }
.job-pick select { appearance: none; -webkit-appearance: none; height: 42px; padding: 0 40px 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); cursor: pointer; max-width: 100%; }
.job-pick svg { position: absolute; right: 14px; pointer-events: none; color: var(--muted); }
.sl-meta { font-size: 13px; color: var(--muted); }
.sl-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.sort { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; color: var(--muted); }
.sort select { border: 0; background: none; font-size: 13.5px; font-weight: 500; color: var(--ink); height: 100%; padding-right: 6px; cursor: pointer; }
.sort select:focus-visible { outline: none; }
.sort:focus-within { border-color: var(--ink); }

.filters, .toggles { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip, .tog { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.chip:active, .tog:active { transform: scale(.97); }
.chip b { font-weight: 500; color: var(--muted); font-size: 12px; font-family: var(--font-mono); }
.chip[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed='true'] b { color: var(--green); }
.tog { border-style: dashed; color: var(--ink-2); }
.tog::before { content: ''; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease; }
.tog[aria-pressed='true'] { border-style: solid; border-color: var(--green-deep); background: var(--green-soft); color: var(--green-deep); }
.tog[aria-pressed='true']::before { border-color: var(--green-deep); background: var(--green-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m3.8 7.2 2 2 4.4-4.4' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
@media (hover: hover) and (pointer: fine) { .chip:hover, .tog:hover { border-color: var(--ink); } }

.sl-table { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin-top: 4px; }
.sl-grid { display: grid; grid-template-columns: 34px minmax(170px, 1.5fr) repeat(6, 56px) 96px minmax(128px, .9fr); gap: 0 12px; align-items: center; }
.sl-cols { padding: 11px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sl-cols .r { text-align: right; }
.sl-list li { border-bottom: 1px solid var(--line); }
.sl-list li:last-child { border-bottom: 0; }
.sl-row { width: 100%; padding: 11px 18px; text-align: left; transition: background-color 120ms ease; position: relative; }
@media (hover: hover) and (pointer: fine) { .sl-row:hover { background: var(--bg); } }
.sl-row:focus-visible { outline-offset: -2px; border-radius: 0; }
.sl-row[data-fresh] { animation: fresh 2.2s ease; }
@keyframes fresh { 0%, 40% { background: var(--green-soft); } 100% { background: transparent; } }
.sl-list li[data-enter] { animation: rowIn 360ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 22ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
.sl-rk { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.sl-cand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sl-cand .av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.sl-cand > span:last-child { min-width: 0; }
.sl-name { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-sub { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .c i { background: var(--bg-2); }
.app .c.lv-hi i.on { background: var(--g-fill); }
.app .c.lv-mid i.on { background: var(--a-fill); }
.app .c.lv-lo i.on { background: var(--l-fill); }
.app .c.ko { position: relative; }
.app .c.ko::after { content: ''; position: absolute; right: -6px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--l-fill); box-shadow: 0 0 0 2px var(--surface); }
.sl-score { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.sl-score b { font-family: var(--font-mono); font-size: 19px; font-weight: 500; min-width: 2.2ch; text-align: right; }
.bar { width: 40px; height: 5px; border-radius: 3px; background: var(--bg-2); overflow: hidden; flex: none; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--g-fill); transform-origin: left; transform: scaleX(var(--s)); }
.bar i.mid { background: var(--a-fill); } .bar i.lo { background: var(--l-fill); }
.sl-rec { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px; white-space: nowrap; }
.r-hi { background: var(--green-soft); color: var(--green-deep); }
.r-mid { background: var(--amber-soft); color: var(--amber-deep); }
.r-lo { background: var(--low-soft); color: var(--low-deep); }
.r-retry { border: 1px dashed var(--line-2); color: var(--muted); }
.r-human { background: #DCE6F2; color: #25486E; }
.dec { font-size: 12px; color: var(--muted); white-space: nowrap; }
.dec b { color: var(--ink); font-weight: 600; }
.crit-row { display: none; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* Live */
.live-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.live-bar p { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.seg-toggle { display: flex; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); }
.seg-toggle button { padding: 7px 14px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--muted); transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.seg-toggle button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.lc { display: flex; flex-direction: column; border-radius: 18px; background: var(--d-bg); color: var(--d-ink); padding: 16px; min-width: 0; transition: opacity 300ms ease; --focus: var(--green); }
.lc[data-idle] { opacity: .6; }
.lc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lc-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lc .av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; flex: none; background: hsl(var(--h, 200) 22% 22%); color: hsl(var(--h, 200) 60% 82%); }
.lc-who > div { min-width: 0; }
.lc-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-job { font-size: 12px; color: var(--d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-time { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; padding: 4px 9px; border-radius: 7px; background: rgba(46,230,140,.12); color: var(--green); }
.lc[data-idle] .lc-time { background: var(--d-surface-2); color: var(--d-muted); }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 14px 0 6px; }
.steps span { height: 22px; border-radius: 6px; background: var(--d-surface-2); display: grid; place-items: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--d-muted); transition: background-color 300ms ease, color 300ms ease; }
.steps span.now { background: rgba(46,230,140,.18); color: var(--green); animation: asking2 1s var(--ease-in-out) infinite alternate; }
@keyframes asking2 { to { background: rgba(46,230,140,.32); } }
.steps span.lv-hi { background: var(--green); color: var(--accent-ink); }
.steps span.lv-mid { background: var(--amber); color: #2A1B00; }
.steps span.lv-lo { background: var(--low); color: #2A0D08; }
.lc-q { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--d-muted); margin-bottom: 8px; }
.lc-q b { font-family: var(--font-mono); font-weight: 500; color: var(--d-ink); }
.lc-tx { height: 250px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; mask-image: linear-gradient(to bottom, transparent, #000 24%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24%); }
.ln { max-width: 90%; padding: 8px 11px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out); }
.ln[data-enter] { opacity: 0; transform: translateY(8px); }
.ln .gl { display: block; margin-top: 3px; font-family: var(--font-ui); font-size: 11.5px; opacity: .7; }
.lc .ln-agent { background: var(--d-surface-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.lc .ln-cand { background: #1F3A2E; color: #D9F7E7; align-self: flex-end; border-bottom-right-radius: 4px; }
.lc-done { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(46,230,140,.12); font-size: 13px; transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out); }
.lc-done[data-hidden] { opacity: 0; transform: translateY(6px); }
.lc-done b { font-family: var(--font-mono); font-size: 20px; font-weight: 500; color: var(--green); }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.live-2 { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.box { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.box-head h2 { font-family: var(--font-ui); font-size: 15px; font-weight: 600; letter-spacing: -.01em; max-width: none; line-height: 1.3; }
.queue li, .feed li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 14px; }
.queue li:first-child, .feed li:first-child { border-top: 0; }
.queue .av, .feed .av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.queue p, .feed p { min-width: 0; }
.queue p b, .feed p b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue p span, .feed p span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue .mono { font-size: 12px; color: var(--muted); }
.feed li { cursor: pointer; border-radius: 8px; transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out), background-color 1.2s ease; }
@media (hover: hover) and (pointer: fine) { .feed li:hover { background: var(--bg); } }
.feed li[data-enter] { opacity: 0; transform: translateY(-6px); }
.feed li[data-fresh] { background: var(--green-soft); }
.feed .fs { display: flex; align-items: center; gap: 8px; }
.feed .fs b { font-family: var(--font-mono); font-weight: 500; font-size: 16px; }
.queue li[data-leave] { opacity: 0; transform: translateX(-8px); transition: opacity 260ms ease, transform 260ms var(--ease-out); }

.demo-note { margin-top: 28px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }

/* Drawer */
.drawer-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(12,18,24,.4); opacity: 0; transition: opacity 280ms ease; }
.drawer-scrim[data-open] { opacity: 1; }
.drawer { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(560px, 100%); display: flex; flex-direction: column; background: var(--surface); box-shadow: -30px 0 80px -30px rgba(12,18,24,.45); transform: translateX(100%); transition: transform 420ms var(--ease-drawer); visibility: hidden; }
.drawer[data-open] { transform: none; visibility: visible; }
.drawer:not([data-open]) { transition: transform 260ms var(--ease-out), visibility 0s 260ms; }
.dr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dr-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.av-lg { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: 15px; flex: none; }
.dr-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.dr-meta { font-size: 12.5px; color: var(--muted); }
.icon-btn { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); transition: background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.icon-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--bg); } }
.dr-body { flex: 1; overflow: auto; padding: 20px; display: grid; gap: 24px; align-content: start; overscroll-behavior: contain; }
.dr-h { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.dr-score { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: 16px; background: var(--d-bg); color: var(--d-ink); }
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--d-surface-2); stroke-width: 7; }
.ring .ring-v { stroke: var(--green); stroke-linecap: round; stroke-dasharray: var(--v, 0) 100; transition: stroke-dasharray 900ms var(--ease-out); }
.ring[data-lv='mid'] .ring-v { stroke: var(--amber); }
.ring[data-lv='lo'] .ring-v { stroke: var(--low); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 26px; font-weight: 500; }
.dr-rec { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.dr-rec p { font-size: 13.5px; color: #BAC5CF; }
.dr-rec .dr-decision { font-size: 12.5px; color: var(--d-muted); }
.dr-rec .dr-decision b { color: var(--d-ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.facts div { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); min-width: 0; }
.facts dt { font-size: 11.5px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
.qscore { display: grid; gap: 6px; }
.qscore li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 11px 12px; border-radius: 12px; background: var(--bg); }
.qs-q { font-weight: 600; font-size: 14px; }
.qs-p { font-family: var(--font-mono); font-size: 12.5px; text-align: right; white-space: nowrap; }
.qs-a { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.qs-m { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--bg-2); overflow: hidden; margin-top: 4px; }
.qs-m i { display: block; height: 100%; border-radius: inherit; background: var(--g-fill); transform-origin: left; transform: scaleX(var(--v)); transition: transform 700ms var(--ease-out); }
.qs-m i.mid { background: var(--a-fill); } .qs-m i.lo { background: var(--l-fill); }
.qscore[data-pre] .qs-m i { transform: scaleX(0); }
.ko-tag { font-size: 11px; font-weight: 600; color: var(--low-deep); background: var(--low-soft); padding: 1px 6px; border-radius: 5px; margin-left: 6px; }
.player { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.play { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--green); transition: transform var(--t-press) var(--ease-out); }
.play:active { transform: scale(.97); }
.play:disabled { opacity: .4; cursor: not-allowed; }
.play .i-pause { display: none; }
.play[data-playing] .i-pause { display: block; }
.play[data-playing] .i-play { display: none; }
.scrub { position: relative; flex: 1; height: 34px; cursor: pointer; border-radius: 4px; }
.scrub-bars, .scrub-fill { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.scrub-bars i, .scrub-fill i { flex: 1; border-radius: 2px; background: var(--line-2); }
.scrub-fill { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.scrub-fill i { background: var(--g-fill); }
.player-note { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.tx { display: grid; gap: 8px; }
.tx li { max-width: 92%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.tx .ln-agent { background: var(--bg); justify-self: start; border-bottom-left-radius: 4px; }
.tx .ln-cand { background: var(--d-bg); color: var(--d-ink); justify-self: end; border-bottom-right-radius: 4px; }
.tx .gl { display: block; margin-top: 3px; font-family: var(--font-ui); font-size: 12px; color: var(--muted); }
.tx .ln-cand .gl { color: var(--d-muted); }
.tx .ln-sys { max-width: none; justify-self: center; font-size: 12px; color: var(--muted); padding: 2px 0; }
.tx li[data-now] { box-shadow: 0 0 0 2px var(--g-fill); }
.dr-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.dr-foot .btn-green { box-shadow: none; }

/* Responsive */
@media (max-width: 1280px) {
  .sl-grid { grid-template-columns: 30px minmax(150px, 1.5fr) repeat(6, 48px) 88px minmax(120px, .9fr); gap: 0 10px; }
  .app .c i { width: 7px; }
}
@media (max-width: 1180px) {
  .live-grid { grid-template-columns: 1fr 1fr; }
  .live-grid .lc:nth-child(3) { display: none; }
}
@media (max-width: 1080px) {
  .sl-cols { display: none; }
  .sl-grid { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: 'rk cand score' 'rk crit rec'; row-gap: 8px; }
  .sl-row > .c { display: none; }
  .sl-rk { grid-area: rk; align-self: start; padding-top: 8px; }
  .sl-cand { grid-area: cand; }
  .sl-score { grid-area: score; }
  .sl-rec { grid-area: rec; align-items: flex-end; }
  .crit-row { grid-area: crit; display: flex; gap: 5px; padding-left: 45px; align-items: center; }
  .crit-row .c { height: 9px; gap: 1px; }
  .crit-row .c i { width: 4px; height: 9px; border-radius: 1.5px; }
}
@media (max-width: 980px) {
  body.app { grid-template-columns: minmax(0, 1fr); padding-bottom: 76px; }
  .side { position: fixed; z-index: 60; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--d-line); }
  .side-brand, .side-foot { display: none; }
  .side-nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .side-nav a { flex-direction: column; gap: 3px; padding: 8px 4px; font-size: 11.5px; }
  .side-nav a[aria-current='page']::before { display: none; }
  .side-badge { position: absolute; top: 2px; right: calc(50% - 24px); min-width: 18px; height: 16px; font-size: 10px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .jobs, .live-2 { grid-template-columns: minmax(0, 1fr); }
  .search { width: auto; flex: 1; }
  .top-actions { width: 100%; }
  .sl-tools { margin-left: 0; width: 100%; }
  .sl-tools .sort { flex: 1; }
}
@media (max-width: 680px) {
  .live-grid { grid-template-columns: minmax(0, 1fr); }
  .live-grid .lc:nth-child(n+2) { display: none; }
  .top-title { font-size: 32px; }
  .kpi b { font-size: 32px; }
  .funnel b { font-size: 16px; }
  .funnel div { padding: 8px 9px 10px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .sl-row { padding: 12px 12px; }
  .crit-row { padding-left: 0; }
  .sl-grid { grid-template-areas: 'rk cand score' 'crit crit rec'; }
  .job-pick, .job-pick select { width: 100%; }
  .dr-foot .btn { flex: 1 1 calc(50% - 4px); }
  .dr-score { gap: 14px; padding: 14px; }
  .ring { width: 72px; height: 72px; }
}
@media (max-width: 400px) {
  .top-actions .btn { padding: 0 12px; }
  .sl-cand .av { display: none; }
  .crit-row { gap: 3px; }
}
