:root {
  color-scheme: light;
  --ink:#0f1117;
  --muted:#50586a;
  --dark:#0d0d14;
  --night:#13141f;
  --blue:#2e5bff;
  --blue-hover:#1d4ed8;
  --line:#e5e7eb;
  --outline:#d1d5db;
  --paper:#fff;
  --surface:#f7f8fa;
  --glass:rgba(13,13,20,.86);
  --header-height:64px;
  font:16px/1.5 "Segoe UI",system-ui,sans-serif;
  color:var(--ink);
  background:var(--surface);
}
* {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0}
h1,h2,h3,p {margin:0}
h1,h2,h3 {letter-spacing:-.03em;line-height:1.18}
h1 {font-size:clamp(2rem,4vw,3rem);font-weight:800}
h2 {font-size:1.24rem;font-weight:750}
h3 {font-size:1.05rem}
p,li,pre {overflow-wrap:anywhere}
a {color:#2348c9;text-underline-offset:3px}
button,input,select,textarea {font:inherit}
button,.button,input:not([type=checkbox]),select,textarea {
  border:1px solid var(--outline);
  background:var(--paper);
  color:var(--ink);
  border-radius:8px;
  padding:.52rem .67rem;
  min-width:0;
  max-width:100%;
}
button,.button {font-size:.875rem;font-weight:750;cursor:pointer}
.button {display:inline-flex;align-items:center;text-decoration:none}
button:hover,.button:hover {background:#eef2ff;border-color:#a3b2eb}
button:disabled {background:#eef0f4;color:#555c6b;cursor:default}
.primary,.secondary-dark {padding:.61rem .92rem}
.primary {background:var(--blue);border-color:var(--blue);color:#fff}
.primary:hover {background:var(--blue-hover);border-color:var(--blue-hover)}
.secondary-dark {background:#fff;color:var(--dark);border-color:#fff}
.secondary-dark:not(:disabled):hover {background:#e1e8ff;border-color:#e1e8ff}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid #547bff;outline-offset:2px
}
input[type=checkbox] {accent-color:var(--blue)}
textarea {resize:vertical;width:100%}
select {width:100%;text-overflow:ellipsis}
fieldset {border:1px solid var(--line);border-radius:8px;min-width:0}
nav {display:flex;gap:.25rem;flex-wrap:wrap}
form,.panels,.postings {display:grid;gap:.85rem}
form {margin-top:.75rem;max-width:36rem}
.filters label,form label,.panels label,.apply-kit label,.glass-popover label {display:grid;gap:.32rem;font-weight:650;font-size:.85rem;min-width:0}
label.check,.filters label.check,.glass-popover label.check {display:flex;align-items:center;gap:.45rem;font-weight:500}
.form-actions,.toggles,.tags,.results,.exports,.posting-actions,.pagination {display:flex;align-items:center;flex-wrap:wrap;gap:.65rem}
.filters,.empty,.panels section {border:1px solid var(--line);border-radius:12px;background:#fff;padding:1.1rem}
main,.toolbar {width:min(calc(100% - 3rem),86rem);margin:auto}
main {padding:1.25rem 0 3rem}
.workspace-header {position:sticky;top:0;z-index:10;background:var(--dark);color:white;border-bottom:1px solid #292a38}
.toolbar {min-height:var(--header-height);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem}
.brand {display:flex;align-items:center;gap:.65rem;color:#fff;text-decoration:none;font-size:.83rem;font-weight:800;line-height:1.08;letter-spacing:.09em;text-transform:uppercase;width:max-content}
.mark {display:grid;place-items:center;width:2.25rem;height:2.25rem;border-radius:50%;background:var(--blue);color:white;font-size:1.35rem;line-height:1}
.toolbar nav {justify-content:center}
.toolbar nav button,.header-signout {background:transparent;color:#edf0ff;border-color:transparent}
.toolbar nav button {position:relative;font-size:.75rem;letter-spacing:.09em;text-transform:uppercase;padding:.65rem}
.toolbar nav button:hover,.toolbar nav button[aria-current] {color:#fff;background:#24263a}
.toolbar nav button[aria-current]::after {content:"";position:absolute;inset:auto 22% 1px;height:2px;border-radius:1px;background:#7d97ff}
.toolbar-actions {display:flex;justify-content:end;align-items:center;gap:.35rem}
.heading {display:flex;justify-content:space-between;align-items:center;gap:.9rem;margin-bottom:1rem}
.heading p,.empty p,.panels p {margin-top:.45rem;color:var(--muted)}
.command-banner {
  position:relative;color:#fff;background:
    radial-gradient(ellipse at 5% 0%,rgba(46,91,255,.27),transparent 46%),
    radial-gradient(ellipse at 100% 100%,rgba(99,102,241,.16),transparent 37%),var(--dark);
  border-bottom:1px solid #292a38;padding:34px 0
}
.hero-inner {width:min(calc(100% - 3rem),82.5rem);margin:auto}
.hero-top {display:flex;justify-content:space-between;align-items:end;flex-wrap:wrap;gap:1.15rem;margin-bottom:1.4rem}
.hero-top h1 {font-size:clamp(1.75rem,4vw,2.75rem)}
.command-banner p {margin-top:.5rem;color:#b6bfce;max-width:60ch}
.live-stats {list-style:none;margin:0 0 .8rem;padding:0;display:flex;gap:.42rem;flex-wrap:wrap}
.live-stats li,.feature-head .tags span {
  background:#232643;color:#e3e9ff;border:1px solid #626889;border-radius:99px;padding:.19rem .57rem;font-size:.75rem
}
.command-search {
  display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;padding:.5rem;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:12px;backdrop-filter:blur(14px)
}
.command-search input {flex:1 1 290px}
.command-search .command-button {background:#252637;color:#fff;border-color:#65677e}
.command-search .command-button:hover {background:#383b57}
.quick-filters {margin-bottom:.8rem;padding-bottom:.8rem;border-bottom:1px solid var(--line)}
.quick-filters button {border-radius:99px;background:#f8fafc;color:#334155;font-size:.79rem}
[aria-pressed=true]:not(.job-card) {color:#173694;background:#e8efff;border-color:#98acef}
.discovery-filters {padding:1rem 1.1rem;margin-bottom:.3rem;box-shadow:0 1px 2px #0d0d1409}
.filter-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:.75rem}
.filter-grid label {color:#475569;font-size:.72rem;text-transform:uppercase;letter-spacing:.055em}
.filter-grid select {text-overflow:clip}
.filter-grid input,.filter-grid select {font-size:.85rem}
.filter-tools {display:flex;gap:.45rem;flex-wrap:wrap;margin-top:.55rem}
.filter-tools button {padding:.4rem .65rem}
.glass-popover,.status-toast {
  color:#fff;background:var(--glass);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.10);
  border-radius:12px;box-shadow:0 12px 44px #090b2d35
}
.glass-popover {
  position:fixed;inset:calc(var(--header-height) + 1rem) max(1rem, calc((100% - 86rem) / 2)) auto auto;
  margin:0;width:min(30rem,calc(100% - 2rem));max-height:calc(100dvh - var(--header-height) - 2rem);
  padding:1rem;overflow:auto
}
.glass-popover::backdrop {background:rgba(13,13,20,.35)}
.glass-popover h2 {color:#fff}
.glass-popover label,.glass-popover p {margin:.65rem 0}
.glass-popover p {color:#e4e7f7}
.glass-popover a {color:#e6ecff;padding:.2rem .3rem}
.popover-heading,.status-toast {display:flex;align-items:center;justify-content:space-between;gap:.65rem}
.popover-heading button,.status-toast button {color:#fff;background:#2b2f45;border-color:#858da8;flex:none;padding:.22rem .57rem}
.popover-heading button:hover,.status-toast button:hover {background:#414971}
.status-toast {position:fixed;z-index:12;right:1rem;bottom:1rem;width:max-content;max-width:min(27rem,calc(100% - 2rem));padding:.65rem .75rem}
.status-toast span {overflow-wrap:anywhere}
.results {justify-content:space-between;padding:.85rem 0;color:var(--muted)}
.exports {gap:.4rem}
.exports a {background:#fff;border:1px solid var(--outline);border-radius:8px;padding:.38rem .6rem;font-size:.81rem;font-weight:700;white-space:nowrap;text-decoration:none}
.exports a:hover {background:#eef2ff}
.empty {text-align:center;padding:2.5rem 1rem}
.pipeline-tabs {margin-bottom:.7rem}
.job-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:18px}
.job-card {
  position:relative;min-width:0;display:flex;flex-direction:column;gap:.8rem;padding:1.2rem;
  border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 1px 3px #0d0d1410;
  transition:transform .16s ease,box-shadow .16s ease;overflow-wrap:anywhere
}
.job-card:hover,.job-card:focus-within {transform:translateY(-2px);box-shadow:0 7px 22px #0d0d1414}
.card-top,.company-row,.meta-pills,.card-skills,.card-footer,.card-actions {display:flex;align-items:center;gap:.52rem}
.card-top {justify-content:space-between;align-items:start}
.company-row,.company-meta {min-width:0}
.avatar {
  display:grid;place-items:center;width:2.5rem;height:2.5rem;border-radius:10px;flex:none;
  background:#2e5bff;color:white;font-weight:800
}
.avatar-1 {background:#6b32a8}
.avatar-2 {background:#136d60}
.avatar-3 {background:#a04623}
.company-name {color:#334155;font-weight:750;font-size:.88rem}
.source-line {color:#50586a;font-size:.75rem;margin-top:.13rem}
.score-pill {display:grid;justify-items:center;min-width:3.5rem;padding:.3rem .45rem;color:#25438c;background:#e9efff;border:1px solid #c5d3fb;border-radius:9px;flex:none}
.score-pill.strong-match {color:#13583f;background:#e6f7ee;border-color:#b6e6cf}
.score-pill strong {font-size:1rem;line-height:1.1}
.score-pill span {text-transform:uppercase;font-size:.61rem;font-weight:750;letter-spacing:.04em}
.job-title {font-size:1.13rem}
.job-open,.job-open:hover {appearance:none;background:none;border:0;padding:0;border-radius:2px;font:inherit;color:var(--ink);text-align:left;overflow-wrap:anywhere}
.job-open:hover {text-decoration:underline;text-underline-offset:3px}
.job-open::after {content:"";position:absolute;inset:0;border-radius:16px}
.meta-pills,.card-skills,.card-footer,.card-actions {flex-wrap:wrap}
.pill,.fresh-badge {padding:.2rem .48rem;font-size:.75rem;font-weight:650;border-radius:6px}
.pill {background:#f1f5f9;color:#334155}
.pill-skill {background:#f8fafc;color:#475569;border:1px solid #e2e8f0}
.fresh-badge,.feature-head .tags .fresh-badge {background:var(--glass);color:#fff;border:1px solid rgba(255,255,255,.10);backdrop-filter:blur(12px)}
.card-footer {margin-top:auto;padding-top:.65rem;border-top:1px solid var(--line);justify-content:space-between}
.card-actions {position:relative}
.card-actions button {padding:.4rem .6rem}
.studio-drawer {
  position:fixed;inset:0 0 0 auto;width:min(820px,96vw);height:100dvh;max-width:none;max-height:none;
  margin:0;padding:0;border:0;background:#fff;color:var(--ink);box-shadow:-15px 0 55px #0d0d1440;overflow:hidden
}
.studio-drawer[open] {animation:drawer-enter .24s cubic-bezier(.16,1,.3,1) both}
.studio-drawer::backdrop {background:#0d0d1485;backdrop-filter:blur(4px)}
@keyframes drawer-enter {from {transform:translateX(100%)}to {transform:none}}
body:has(.studio-drawer[open]) {overflow:hidden}
.posting {display:grid;grid-template-rows:auto auto minmax(0,1fr);height:100%;min-width:0;background:white}
.drawer-tools {display:flex;align-items:start;gap:.55rem;flex:none}
.drawer-close {display:grid;place-items:center;width:2.1rem;height:2.1rem;padding:0;color:#fff;background:#28283b;border-color:#62677e;font-size:1.25rem}
.drawer-close:hover {color:white;background:#42445c}
.feature-head {
  color:#fff;background:radial-gradient(ellipse at top right,rgba(46,91,255,.30),transparent 64%),var(--dark);
  padding:1.35rem 1.6rem
}
.posting-head {display:flex;justify-content:space-between;align-items:start;gap:.65rem}
.posting-head h2 {font-size:clamp(1.35rem,2.5vw,2rem);overflow-wrap:anywhere}
.company {margin-bottom:.2rem;color:#a9ceff;font-size:.82rem;font-weight:750;text-transform:uppercase;letter-spacing:.065em}
.score {background:#e8edff;color:#20387d;border-radius:9px;padding:.35rem .5rem;text-align:center;flex:none}
.score strong {display:block;line-height:1.15;font-size:1.3rem}
.score span {font-size:.72rem}
.tags {margin:.6rem 0}
.tags span {padding:.17rem .5rem;border-radius:6px;background:#ecf1ff;color:#263f92;font-size:.8rem}
.posting-actions label {display:flex;align-items:center;gap:.4rem;font-size:.8rem}
.posting-actions label select {width:auto}
.detail-tabs {gap:.22rem;border-bottom:1px solid var(--line);padding:.35rem 1rem}
.detail-tabs button {border-color:transparent;padding:.48rem .56rem}
.detail-content {padding:1.2rem 1.6rem;overflow:auto;overflow-wrap:anywhere;min-height:0}
.detail-content>p,.listing-description p,.match-details p {margin:.45rem 0}
.posting-meta {display:flex;gap:.45rem .75rem;flex-wrap:wrap;color:var(--muted);font-size:.83rem}
.timing {font-size:.83rem;color:var(--muted);margin:.42rem 0}
.match-meter {max-width:68ch}
.match-meter progress {width:100%;height:.5rem;accent-color:#2e5bff}
.listing-description {margin:.9rem 0;max-width:68ch;line-height:1.65}
.listing-description p {white-space:pre-line}
.match-details {max-width:68ch;border-top:1px solid var(--line);padding-top:.75rem}
.evidence {color:#79521b}
.positive {color:#17634d}
.word-editor,.application-draft,.apply-kit {display:grid;gap:.65rem;justify-items:start}
.word-editor pre {width:100%;white-space:pre-wrap;overflow-wrap:anywhere;padding:.8rem;background:var(--surface);border-radius:8px;margin:0}
.cv-diff {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;width:100%;padding:.7rem;background:var(--surface);border:1px solid var(--line);border-radius:8px}
.cv-diff textarea {min-height:5rem}
.apply-kit {margin-top:.8rem}
.apply-kit label {width:100%}
.pagination {justify-content:center;margin-top:1rem}
details {margin:.55rem 0;font-size:.9rem;color:var(--muted)}
summary {cursor:pointer;color:#2445aa;font-weight:700}
details p,details label {margin:.55rem 0}
.external-search {margin-top:.65rem}
.status-toast[role=alert],.alert {border-left:3px solid #ee8894}
.alert,.notice {padding:.6rem .75rem;border-radius:8px;margin:.55rem 0}
.alert {background:#fbecee;color:#831d2f}
.notice {background:#e9efff;color:#1c3b9b}
.panels ul {padding-inline-start:1.15rem}
.panels li {margin:.3rem 0}
.profile-roles {margin:.35rem 0}
.signal-toolbar {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.65rem}
.signal-filters {justify-content:flex-start}
.intelligence section>.form-actions {margin-top:.85rem}
.intelligence>label {width:min(100%,19rem)}
.contact-results {margin-top:.8rem;border-top:1px solid var(--line);padding-top:.6rem}
.lead-notes {white-space:pre-wrap}
.auth-page {width:min(100% - 2rem,34rem);margin:5vh auto}
.auth-page h1 {margin-bottom:.75rem}
@media(max-width:1050px) {
  .toolbar {grid-template-columns:auto 1fr auto;gap:.55rem}
  .toolbar nav button {padding:.55rem .38rem}
}
@media(max-width:850px) {
  .toolbar nav {grid-row:2;grid-column:1/-1;justify-content:start}
  .toolbar {grid-template-columns:1fr auto;gap:.22rem;padding:.45rem 0}
  .job-grid {grid-template-columns:repeat(auto-fill,minmax(min(350px,100%),1fr))}
}
@media(max-width:760px) {
  :root {--header-height:100px}
  main,.toolbar,.hero-inner {width:calc(100% - 1.75rem)}
  main {padding-top:.8rem}
  .command-banner {padding:1.45rem 0}
  .feature-head,.detail-content {padding:.85rem}
  .cv-diff {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:420px) {
  .toolbar nav {gap:0;justify-content:space-between}
  .toolbar nav button {font-size:.63rem;letter-spacing:.065em;padding:.45rem .29rem}
  .toolbar-actions button {font-size:.73rem;padding:.4rem .46rem}
  .filter-grid {grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr))}
  .heading {align-items:start;flex-direction:column}
  .detail-tabs button {font-size:.76rem}
}

@media(prefers-reduced-motion:reduce) { .job-card,.studio-drawer[open] {transition:none;animation:none} }
