:root {
  --bg: #0b0d10;
  --panel: #12151a;
  --panel-2: #171b21;
  --line: #272d36;
  --text: #f3f5f7;
  --muted: #9ca5b3;
  --accent: #b9ff66;
  --accent-ink: #17200e;
  --danger: #ff7a7a;
  --warning: #ffd166;
  --radius: 18px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 12% 0%, #172119 0, transparent 32%), var(--bg);
  color: var(--text);
}
button, input, select { font: inherit; }
.shell { width: min(1450px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 80px; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 8px 0 8px; font-size: clamp(34px, 5vw, 62px); line-height: .98; letter-spacing: -.055em; }
.subtitle { margin: 0; color: var(--muted); max-width: 750px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 30px 0 18px; }
.stat { padding: 18px; border: 1px solid var(--line); background: rgba(18,21,26,.78); border-radius: var(--radius); }
.stat span { display:block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.stat strong { font-size: 28px; letter-spacing: -.03em; }
.controls { display: grid; grid-template-columns: minmax(250px, 1fr) repeat(3, minmax(150px, 220px)); gap: 10px; margin-bottom: 16px; }
input, select { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; }
input:focus, select:focus { border-color: #8570dd; box-shadow: 0 0 0 3px rgba(155,123,255,.12); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.tab { border: 1px solid var(--line); color: var(--muted); background: transparent; padding: 9px 12px; border-radius: 999px; cursor: pointer; }
.tab.active { color: #fff; font-weight: 700; }
.jobs-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.job-card { border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.card-head { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: start; }
.company-mark { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%,#c7f2ff,#7d64f2 38%,#251c5f 75%); border: 1px solid rgba(155,123,255,.35); box-shadow:0 0 25px rgba(85,216,255,.16); }
.job-company { color: var(--muted); font-size: 13px; margin-bottom: 5px; }
.job-title { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.job-meta { color: var(--muted); font-size: 12px; margin-top: 7px; }
.badge-stack{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.taxonomy-badge{font-size:.76rem;padding:6px 9px;border-radius:999px;background:rgba(155,123,255,.13);border:1px solid rgba(155,123,255,.28);color:#ddd2ff}
.priority-badge { white-space: nowrap; border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 800; background: #20262c; }
.priority-badge.hot { background: linear-gradient(135deg,#ff72d2,#9b7bff); color:#fff; box-shadow:0 0 18px rgba(255,114,210,.22); }
.priority-badge.reject { color: var(--danger); background: rgba(255,122,122,.1); }
.scores { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 18px 0 12px; }
.score { padding: 11px 12px; background: rgba(5,7,22,.55); border: 1px solid rgba(154,123,255,.12); border-radius: 13px; }
.score span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.score strong { display: block; font-size: 21px; margin-top: 4px; }
.salary-row { color: #d8dde4; font-size: 13px; margin: 8px 0; }
.flags { display:flex; gap:6px; flex-wrap:wrap; margin: 10px 0 2px; }
.flag { font-size: 10px; padding: 5px 7px; border-radius: 7px; background: rgba(255,209,102,.1); color: var(--warning); border: 1px solid rgba(255,209,102,.22); }
.match-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 15px 0; padding: 12px 0; }
.match-details summary { cursor:pointer; color:#dfe4ea; font-weight:600; font-size:13px; }
.details-grid { display:grid; grid-template-columns: 1fr 1fr; gap:20px; padding-top:12px; }
.details-grid h3 { font-size:11px; text-transform:uppercase; color:var(--muted); letter-spacing:.07em; margin:0 0 8px; }
ul { margin:0; padding-left:18px; color:#c9d0d9; font-size:12px; line-height:1.55; }
.card-actions { display:grid; grid-template-columns: 1fr 180px; gap:10px; align-items:center; }
.button { display:inline-flex; justify-content:center; align-items:center; text-decoration:none; border:0; border-radius:11px; padding:11px 14px; cursor:pointer; font-weight:700; }
.button.primary { background: linear-gradient(135deg,#55d8ff,#9b7bff); color: #fff; }
.button.secondary { color: var(--text); background: var(--panel); border:1px solid var(--line); }
.apply-link.disabled { pointer-events:none; opacity:.45; }
.empty-state { padding: 70px 20px; text-align:center; color:var(--muted); border:1px dashed var(--line); border-radius:var(--radius); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

:root{--space:#050716;--space2:#0b1028;--panel:rgba(14,20,50,.82);--line:rgba(154,123,255,.2);--glow:#9b7bff;--cyan:#55d8ff;--pink:#ff72d2;--text:#f4f3ff;--muted:#a9afd0}
body{background:radial-gradient(circle at 80% 10%,rgba(137,76,255,.18),transparent 28%),radial-gradient(circle at 15% 75%,rgba(42,176,255,.12),transparent 30%),linear-gradient(180deg,var(--space),var(--space2));color:var(--text);min-height:100vh;position:relative;overflow-x:hidden}
.stars{position:fixed;inset:0;pointer-events:none;opacity:.65;background-image:radial-gradient(circle,#fff 1px,transparent 1px),radial-gradient(circle,#7ee8ff 1px,transparent 1px),radial-gradient(circle,#d39cff 1px,transparent 1px);background-size:97px 97px,151px 151px,211px 211px;background-position:0 0,37px 59px,91px 21px;z-index:-3}
.planet{position:fixed;border-radius:50%;pointer-events:none;z-index:-2;filter:blur(.1px);box-shadow:0 0 70px rgba(149,104,255,.25)}
.planet-one{width:180px;height:180px;right:-45px;top:110px;background:radial-gradient(circle at 35% 30%,#ffd2ff,#8c5cff 34%,#2a1c66 72%)}
.planet-two{width:110px;height:110px;left:-30px;bottom:70px;background:radial-gradient(circle at 35% 30%,#bdf5ff,#278fc7 35%,#10204e 75%)}
header,.job-card,.stat{background:var(--panel)!important;border-color:var(--line)!important;backdrop-filter:blur(14px)}
header{box-shadow:0 20px 60px rgba(0,0,0,.22)}
h1{letter-spacing:-.04em;text-shadow:0 0 24px rgba(155,123,255,.25)}
.job-card{box-shadow:0 10px 34px rgba(0,0,0,.2);transition:.2s ease}
.job-card:hover{transform:translateY(-3px);border-color:rgba(155,123,255,.5)!important;box-shadow:0 14px 40px rgba(47,33,112,.32)}
.tab.active{background:linear-gradient(135deg,rgba(118,82,255,.25),rgba(64,170,255,.15))!important;border-color:rgba(155,123,255,.55)!important}
button,select,input,.apply-link{border-color:var(--line)!important}

@media (max-width: 920px) {
  .stats { grid-template-columns: repeat(2,1fr); }
  .controls { grid-template-columns: 1fr 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .shell { width:min(100% - 24px, 1450px); padding-top:24px; }
  .topbar { align-items:flex-start; flex-direction:column; }
  .controls { grid-template-columns:1fr; }
  .stats { grid-template-columns:1fr 1fr; }
  .card-head { grid-template-columns: 38px 1fr; }
  .badge-stack { grid-column:2; justify-content:flex-start; }
  .details-grid { grid-template-columns:1fr; }
  .card-actions { grid-template-columns:1fr; }
}
/* Ambient space motion — intentionally subtle and entirely behind the UI */
.stars{
  animation:starDrift 42s ease-in-out infinite alternate, starBreath 9s ease-in-out infinite;
}
.stars::before,
.stars::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.stars::before{
  width:340px;height:340px;
  right:7%;top:24%;
  border:1px solid rgba(190,153,255,.055);
  box-shadow:
    0 0 0 34px rgba(190,153,255,.025),
    0 0 0 82px rgba(85,216,255,.018);
  animation:orbitFloat 24s ease-in-out infinite alternate;
}
.stars::after{
  width:2px;height:2px;
  left:18%;top:31%;
  background:rgba(255,255,255,.8);
  box-shadow:
    18vw 8vh 0 rgba(255,114,210,.55),
    39vw -12vh 0 rgba(126,232,255,.55),
    58vw 21vh 0 rgba(255,255,255,.5),
    72vw -3vh 0 rgba(211,156,255,.55);
  animation:twinkleField 7s ease-in-out infinite;
}
.planet-one{animation:planetHoverOne 18s ease-in-out infinite alternate}
.planet-two{animation:planetHoverTwo 22s ease-in-out infinite alternate}
@keyframes starDrift{
  from{background-position:0 0,37px 59px,91px 21px}
  to{background-position:18px 10px,24px 74px,104px 8px}
}
@keyframes starBreath{0%,100%{opacity:.52}50%{opacity:.68}}
@keyframes twinkleField{0%,100%{opacity:.35}45%{opacity:.8}52%{opacity:.45}72%{opacity:.7}}
@keyframes orbitFloat{from{transform:translate3d(0,0,0) rotate(-5deg)}to{transform:translate3d(-22px,14px,0) rotate(5deg)}}
@keyframes planetHoverOne{from{transform:translate3d(0,0,0)}to{transform:translate3d(-12px,16px,0)}}
@keyframes planetHoverTwo{from{transform:translate3d(0,0,0)}to{transform:translate3d(14px,-12px,0)}}
@media(prefers-reduced-motion:reduce){
  .stars,.stars::before,.stars::after,.planet-one,.planet-two{animation:none!important}
}

/* Satellite pass */
.satellite-flight{
  position:fixed;left:-140px;bottom:-100px;width:110px;height:72px;
  z-index:-1;pointer-events:none;opacity:.86;
  filter:drop-shadow(0 0 14px rgba(202,157,255,.28));
  animation:satellitePass 14s linear infinite;
}
.satellite{width:100%;height:100%;display:block}
@keyframes satellitePass{
  0%{transform:translate(0,0) rotate(-8deg);opacity:0}
  2%{opacity:.88}
  26%{transform:translate(calc(100vw + 260px),calc(-100vh - 220px)) rotate(8deg);opacity:.88}
  29%{opacity:0}
  100%{transform:translate(calc(100vw + 260px),calc(-100vh - 220px)) rotate(8deg);opacity:0}
}
@media(max-width:700px){.satellite-flight{width:86px;height:56px;animation-duration:15s}}
@media(prefers-reduced-motion:reduce){.satellite-flight{display:none}}

/* AstroJob title hierarchy */
.astro-title{
  font-size:clamp(28px,4vw,48px);
  line-height:1;
  font-weight:800;
  letter-spacing:.12em;
  color:transparent;
  background:linear-gradient(105deg,#f4efff 0%,#f4efff 38%,#d9b8ff 46%,#fff 50%,#f0a9db 54%,#f4efff 62%,#f4efff 100%);
  background-size:240% 100%;
  background-position:120% 0;
  -webkit-background-clip:text;
  background-clip:text;
  animation:astroTitleSweep 12s ease-in-out infinite;
}
.mission-title{
  font-size:clamp(20px,2.4vw,30px);
  line-height:1.15;
  margin:.42rem 0 .55rem;
  font-weight:600;
  letter-spacing:-.025em;
}
@keyframes astroTitleSweep{
  0%,8%{background-position:120% 0}
  24%{background-position:-120% 0}
  100%{background-position:-120% 0}
}
@media(prefers-reduced-motion:reduce){
  .astro-title{animation:none;background-position:50% 0}
}


/* Demo Intelligence Layer */
.intel-panel{padding:22px 22px 24px;margin:20px 0 8px;border:1px solid rgba(154,123,255,.18);border-radius:14px;background:rgba(5,7,22,.3)}
.intel-scores{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}
.intel-scores>div{padding:9px 10px;border:1px solid rgba(255,255,255,.06);border-radius:10px;background:rgba(255,255,255,.025)}
.intel-scores span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.09em;color:var(--muted)}
.intel-scores strong{display:block;margin-top:3px;font-size:17px}
.intel-panel h3{margin:0 0 10px;font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:#aeb5ce}
.intel-badges{display:flex;flex-wrap:wrap;gap:8px;row-gap:9px}
.intel-badge{padding:6px 10px;border-radius:999px;font-size:10px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.035)}
.intel-badge.match{color:#bff5ff;border-color:rgba(85,216,255,.28)}
.intel-badge.transfer{color:#e5c5ff;border-color:rgba(196,108,255,.3)}
.intel-badge.learning{color:#ffe1a6;border-color:rgba(255,213,128,.3)}
.intel-badge.gap{color:#ffb8b8;border-color:rgba(255,122,122,.28)}
.intel-columns{display:grid;grid-template-columns:1.05fr 1.05fr 1.1fr;gap:28px;margin-top:20px;align-items:start}
.intel-columns>div{min-width:0}
.intel-empty{font-size:10px;color:#707995}
.intel-section.gap-section{margin-top:24px;padding-top:18px;border-top:1px solid rgba(154,123,255,.13)}
@media(max-width:900px){.intel-columns{gap:18px}}
@media(max-width:700px){.intel-panel{padding:17px}.intel-scores{grid-template-columns:repeat(2,1fr)}.intel-columns{grid-template-columns:1fr;gap:20px}.intel-section.gap-section{margin-top:20px}}


/* Candidate profile — explains the personalization behind demo scores */
.top-actions{display:flex;gap:10px;align-items:center}
.profile-button{border-color:rgba(155,123,255,.38)!important;background:linear-gradient(135deg,rgba(155,123,255,.14),rgba(85,216,255,.08))!important}
.profile-context{display:flex;align-items:center;gap:8px;margin:24px 0 -14px;padding:10px 13px;width:max-content;max-width:100%;border:1px solid rgba(154,123,255,.18);border-radius:999px;background:rgba(14,20,50,.58);font-size:11px;color:var(--muted)}
.profile-context strong{color:#eeeaff;font-weight:600}.profile-context button{border:0;background:none;color:#bdaeff;cursor:pointer;padding:0 2px;font-weight:600;font-size:11px}
.profile-backdrop{position:fixed;inset:0;background:rgba(2,3,12,.62);backdrop-filter:blur(3px);z-index:40;opacity:0;transition:opacity .22s ease}.profile-backdrop.open{opacity:1}
.profile-drawer{position:fixed;z-index:41;right:0;top:0;height:100vh;width:min(520px,94vw);overflow:auto;padding:30px;background:linear-gradient(180deg,rgba(15,18,49,.985),rgba(8,11,31,.99));border-left:1px solid rgba(155,123,255,.3);box-shadow:-30px 0 80px rgba(0,0,0,.42);transform:translateX(105%);transition:transform .28s cubic-bezier(.2,.75,.2,1)}
.profile-drawer.open{transform:translateX(0)}body.profile-open{overflow:hidden}
.profile-drawer-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding-bottom:22px;border-bottom:1px solid rgba(155,123,255,.16)}
.profile-drawer-head h2{font-size:30px;margin:8px 0 6px;letter-spacing:-.04em}.profile-drawer-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.profile-close{flex:0 0 38px;width:38px;height:38px;border-radius:50%;border:1px solid rgba(155,123,255,.22);background:rgba(255,255,255,.035);color:#fff;font-size:25px;cursor:pointer}
.profile-demo-note{margin:18px 0 4px;padding:10px 12px;border-radius:10px;background:rgba(155,123,255,.08);border:1px solid rgba(155,123,255,.14);color:#c8c0e6;font-size:10px}
.profile-block{padding:18px 0;border-bottom:1px solid rgba(155,123,255,.12)}.profile-block h3{margin:0 0 10px;text-transform:uppercase;letter-spacing:.09em;font-size:10px;color:#aeb5ce}.profile-block p{margin:0;color:#e2e2ee;font-size:12px;line-height:1.55}
.profile-two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}.profile-two-col .profile-block{min-width:0}
.profile-chips{display:flex;flex-wrap:wrap;gap:7px}.profile-chips span{padding:6px 9px;border-radius:999px;border:1px solid rgba(85,216,255,.22);background:rgba(85,216,255,.055);color:#c9f6ff;font-size:10px}.profile-chips.tech span{border-color:rgba(155,123,255,.24);background:rgba(155,123,255,.07);color:#e1d8ff}.profile-chips.learning span{border-color:rgba(255,209,102,.24);background:rgba(255,209,102,.06);color:#ffe2a0}
.profile-block.scoring>div{display:grid;grid-template-columns:90px 1fr;gap:10px;margin-top:9px;font-size:11px}.profile-block.scoring b{color:#e6deff}.profile-block.scoring span{color:var(--muted)}
@media(max-width:600px){.top-actions{width:100%;flex-wrap:wrap}.top-actions .button{flex:1}.profile-context{border-radius:14px;flex-wrap:wrap}.profile-drawer{padding:22px}.profile-two-col{grid-template-columns:1fr;gap:0}}


/* Match taxonomy legend */
.match-legend{margin:16px 0 18px;padding:13px 16px;border:1px solid rgba(154,123,255,.16);border-radius:14px;background:rgba(10,14,39,.52);display:flex;align-items:center;gap:18px;overflow-x:auto}
.legend-label{flex:0 0 auto;font-size:9px;font-weight:800;letter-spacing:.11em;color:#8189a8}
.legend-items{display:flex;align-items:center;gap:19px;min-width:max-content}
.legend-item{display:flex;align-items:center;gap:7px}.legend-item>span:last-child{display:flex;flex-direction:column;gap:1px}.legend-item strong{font-size:10px;color:#e9e8f6;font-weight:600}.legend-item small{font-size:8px;color:#7f87a5;white-space:nowrap}
.legend-orb{display:inline-flex;width:25px;height:25px;align-items:center;justify-content:center;border-radius:50%;font-size:11px;font-weight:800;border:1px solid rgba(255,255,255,.1)}
.legend-orb.core{color:#fff1a7;background:radial-gradient(circle,#e9c85c,#6d4d16);box-shadow:0 0 12px rgba(255,207,80,.15)}
.legend-orb.transferable{color:#bff5ff;background:rgba(85,216,255,.12);border-color:rgba(85,216,255,.25)}
.legend-orb.stretch{color:#d8c6ff;background:rgba(155,123,255,.13);border-color:rgba(155,123,255,.26)}
.legend-orb.wildcard{color:#ffbee8;background:rgba(255,114,210,.11);border-color:rgba(255,114,210,.25)}
.legend-orb.blackhole{color:#7a8098;background:radial-gradient(circle at 42% 38%,#252942,#05060d 68%);border-color:#272a3d;box-shadow:inset 0 0 8px #000}
@media(max-width:700px){.match-legend{align-items:flex-start;flex-direction:column;gap:10px}.legend-items{gap:15px}}


/* Personalization intro spacing + AstroJob-native palette */
.candidate-profile-inline{
  margin:34px 0 30px;
  padding:22px 24px;
  border:1px solid rgba(154,123,255,.20);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(83,216,255,.055),rgba(154,123,255,.075));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
}
.candidate-profile-inline>div{min-width:0}
.candidate-profile-inline .eyebrow{
  margin-bottom:8px;
  color:#8fdcff;
  letter-spacing:.13em;
}
.candidate-profile-inline strong{
  display:block;
  margin-bottom:7px;
  color:#f3f2fb;
  font-size:14px;
  line-height:1.35;
}
.candidate-profile-inline span{
  display:block;
  color:#959db9;
  font-size:11px;
  line-height:1.5;
}
.candidate-profile-inline .button{
  flex:0 0 auto;
  white-space:nowrap;
  border-color:rgba(154,123,255,.34);
  background:rgba(154,123,255,.08);
}
@media(max-width:760px){
  .candidate-profile-inline{margin:26px 0 24px;padding:18px;align-items:flex-start;flex-direction:column;gap:16px}
}

/* More breathing room for personalization layer */
.candidate-profile-inline{
  margin:42px 0 38px !important;
  padding:30px 32px !important;
  min-height:118px;
}
.candidate-profile-inline .eyebrow{margin-bottom:12px !important}
.candidate-profile-inline strong{margin-bottom:10px !important;line-height:1.5 !important}
.candidate-profile-inline .button{margin-left:12px}
@media(max-width:760px){
  .candidate-profile-inline{margin:32px 0 30px !important;padding:24px !important;min-height:0}
  .candidate-profile-inline .button{margin-left:0}
}

/* Spacious match legend */
.match-legend{
  margin:24px 0 30px !important;
  padding:24px 26px !important;
  min-height:112px;
  gap:30px !important;
  border-radius:18px !important;
}
.legend-label{
  font-size:11px !important;
  letter-spacing:.13em !important;
  min-width:100px;
}
.legend-items{
  width:100%;
  display:grid !important;
  grid-template-columns:repeat(5,minmax(135px,1fr)) !important;
  gap:24px !important;
  min-width:760px;
}
.legend-item{gap:12px !important;align-items:center !important}
.legend-orb{
  flex:0 0 38px;
  width:38px !important;
  height:38px !important;
  font-size:15px !important;
}
.legend-item strong{font-size:12px !important;line-height:1.25}
.legend-item small{
  margin-top:3px;
  font-size:9.5px !important;
  line-height:1.35;
  white-space:normal !important;
}
@media(max-width:900px){
  .match-legend{align-items:flex-start !important;flex-direction:column !important;gap:16px !important}
  .legend-items{grid-template-columns:repeat(5,minmax(145px,1fr)) !important}
}

/* Final personalization hierarchy */
.candidate-profile-inline{padding:34px 36px !important}
.candidate-profile-inline strong{margin-bottom:10px !important}
.candidate-profile-inline span{margin-bottom:26px !important}
.candidate-profile-inline .button{margin:0 !important}

/* Cosmic image match legend */
.match-legend{margin:30px 0 36px!important;padding:30px 32px!important;min-height:190px!important;display:grid!important;grid-template-columns:190px 1fr!important;align-items:center!important;gap:28px!important;background:linear-gradient(135deg,rgba(7,13,38,.92),rgba(16,13,52,.92))!important;border:1px solid rgba(124,91,255,.42)!important;box-shadow:inset 0 0 40px rgba(71,54,180,.08)}
.legend-intro{padding-right:24px;border-right:1px solid rgba(155,169,214,.3)}
.legend-label{font-size:13px!important;letter-spacing:.15em!important;color:#c6d4ff!important;margin-bottom:12px}
.legend-subtitle{font-size:12px;line-height:1.5;color:#8f9cbe}
.legend-items{min-width:0!important;width:100%!important;display:grid!important;grid-template-columns:repeat(5,minmax(150px,1fr))!important;gap:18px!important}
.legend-item{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;gap:9px!important}
.legend-item>span:last-child{align-items:center!important}
.legend-orb{width:72px!important;height:72px!important;flex:0 0 72px!important;border:0!important;background:none!important;overflow:hidden;box-shadow:0 0 24px rgba(112,90,255,.16)!important}
.legend-orb img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;transform:scale(1.12)}
.legend-item strong{font-size:15px!important;line-height:1.25!important;color:#f5f4ff!important}
.legend-item small{font-size:11px!important;line-height:1.4!important;color:#98a3c2!important;max-width:160px}
@media(max-width:1050px){.match-legend{grid-template-columns:1fr!important}.legend-intro{border-right:0;border-bottom:1px solid rgba(155,169,214,.22);padding:0 0 18px}.legend-items{overflow-x:auto;grid-template-columns:repeat(5,160px)!important;padding-bottom:6px}}

/* Compact cosmic legend: 20% smaller */
.match-legend{
  margin:24px 0 29px!important;
  padding:24px 26px!important;
  min-height:152px!important;
  grid-template-columns:152px 1fr!important;
  gap:22px!important;
}
.legend-intro{padding-right:19px!important}
.legend-label{font-size:11px!important;margin-bottom:9px!important}
.legend-subtitle{font-size:10px!important;line-height:1.45!important}
.legend-items{gap:14px!important}
.legend-item{gap:7px!important}
.legend-orb{
  width:58px!important;
  height:58px!important;
  flex-basis:58px!important;
}
.legend-item strong{font-size:13px!important}
.legend-item small{font-size:9.5px!important;line-height:1.35!important;max-width:145px!important}
@media(max-width:1050px){
 .match-legend{grid-template-columns:1fr!important}
 .legend-items{grid-template-columns:repeat(5,145px)!important}
}

/* Compact cosmic legend again: another ~20% reduction */
.match-legend{
  margin:20px 0 24px!important;
  padding:19px 21px!important;
  min-height:122px!important;
  grid-template-columns:122px 1fr!important;
  gap:18px!important;
}
.legend-intro{padding-right:15px!important}
.legend-label{font-size:9.5px!important;margin-bottom:7px!important}
.legend-subtitle{font-size:8.5px!important;line-height:1.4!important}
.legend-items{gap:11px!important}
.legend-item{gap:6px!important}
.legend-orb{width:46px!important;height:46px!important;flex-basis:46px!important}
.legend-item strong{font-size:11px!important}
.legend-item small{font-size:8.5px!important;line-height:1.3!important;max-width:125px!important}

/* Keep taxonomy symbol on job cards deliberately small */
.taxonomy-badge{font-size:12px!important;line-height:1.15!important;padding:7px 11px!important;letter-spacing:0!important}
@media(max-width:1050px){
 .match-legend{grid-template-columns:1fr!important}
 .legend-items{grid-template-columns:repeat(5,125px)!important}
}

/* Job-card taxonomy uses the exact same artwork as the legend */
.taxonomy-badge{display:inline-flex!important;align-items:center!important;gap:7px!important}
.taxonomy-card-image{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  object-fit:cover!important;
  border-radius:50%!important;
  box-shadow:0 0 9px rgba(112,90,255,.22)!important;
}


/* Wide-screen product layout */
@media (min-width: 1200px){
  .shell{width:min(96vw,1900px);max-width:none}
}
@media (min-width: 1550px){
  .jobs-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
  .controls{grid-template-columns:minmax(360px,1.5fr) repeat(3,minmax(180px,260px))}
  .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width: 1900px){
  .shell{width:97vw}
  .jobs-grid{gap:20px}
  .job-card{padding:22px}
}
