:root {
  --gold: #f0a935;
  --gold-soft: rgba(240, 169, 53, .13);
  --blue: #4c8dff;
  --blue-soft: rgba(76, 141, 255, .13);
  --green: #3ecf8e;
  --danger: #ff6b72;
  --warning: #ffcc66;
  --navy: #0a0d14;
  --ink: #eef2f8;
  --muted: #9aa6bd;
  --line: #2e3c55;
  --surface: #121826;
  --surface-soft: #0a0d14;
  --shadow: 0 16px 38px rgba(0, 0, 0, .3);
  color: var(--ink);
  background: var(--surface-soft);
  color-scheme: dark;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 86% 0, rgba(76,141,255,.13), transparent 34rem), radial-gradient(circle at 8% 16%, rgba(240,169,53,.055), transparent 26rem), var(--surface-soft); }
a { color: #74a7ff; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
button, input, select, textarea { font: inherit; }

.site-header { min-height: 74px; padding: 0 3vw; display: flex; align-items: center; gap: 1.4rem; position: sticky; top: 0; z-index: 20; color: white; background: linear-gradient(105deg, #05070c, var(--surface) 66%, #172f55); border-bottom: 2px solid rgba(240,169,53,.55); box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.brand { display: flex; align-items: center; gap: .72rem; color: white; text-decoration: none; }
.brand img { width: 52px; height: 45px; padding: .18rem; border-radius: 9px; object-fit: contain; background: white; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .96rem; letter-spacing: .08em; text-transform: uppercase; }
.brand small { margin-top: .08rem; color: var(--gold); font-size: .72rem; }
.primary-nav { margin-left: auto; display: flex; gap: .25rem; }
.primary-nav[hidden] { display: none; }
.nav-tab { padding: .68rem .82rem; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 750; }
.nav-tab:hover { color: white; background: rgba(255,255,255,.04); }
.nav-tab.active { color: var(--gold); border-color: rgba(240,169,53,.45); background: var(--gold-soft); }
.who { padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.2); color: #cfd9e3; font-size: .78rem; }
.who a { margin-left: .4rem; color: #cfd9e3; }

main { width: min(1480px, 94vw); margin: 0 auto; padding: 2rem 0 4rem; }
.workspace[hidden] { display: none; }
.eyebrow { margin: 0; color: var(--gold); font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero { min-height: 295px; padding: clamp(1.5rem, 4vw, 3.4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border: 1px solid #24456f; border-radius: 24px; background: linear-gradient(125deg, #02070d 8%, #0d3974 62%, #1768d3); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero::after { content: ""; width: 420px; height: 420px; border: 72px solid rgba(255,255,255,.025); border-radius: 50%; position: absolute; right: -170px; top: -210px; }
.hero-copy { max-width: 890px; position: relative; z-index: 1; }
.hero h1 { margin: .28rem 0 .8rem; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .94; letter-spacing: -.055em; }
.hero h1 span { color: var(--gold); }
.hero-copy > p:last-child { max-width: 780px; margin: 0; color: #d7e6fa; font-size: 1.04rem; line-height: 1.55; }
.radar-mark { width: 150px; height: 150px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: radial-gradient(circle, rgba(240,169,53,.28), transparent 62%); position: relative; z-index: 1; }
.radar-mark::before, .radar-mark::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.radar-mark::before { inset: 22px; }
.radar-mark::after { inset: 46px; }
.radar-mark b { color: white; font-size: 1.8rem; }

.section-block { margin-top: 2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-heading h2 { margin: .18rem 0 .25rem; font-size: 1.55rem; }
.section-heading p:not(.eyebrow) { max-width: 800px; margin: 0; color: var(--muted); }
.team-grid { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.team-tile { min-height: 185px; padding: 1.2rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 16px; background: linear-gradient(145deg, rgba(18,24,38,.98), rgba(8,14,23,.98)); box-shadow: 0 8px 22px rgba(0,0,0,.17); }
.team-tile.primary { border-top-color: var(--gold); }
.team-tile.placeholder { opacity: .58; }
.team-tile h3 { margin: .8rem 0 .35rem; font-size: 1.35rem; }
.team-tile p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.team-tile footer { margin-top: auto; padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; color: var(--gold); font-size: .78rem; font-weight: 800; }
.team-badge { align-self: flex-start; padding: .3rem .52rem; border-radius: 6px; color: #06111c; background: var(--gold); font-size: .68rem; font-weight: 850; text-transform: uppercase; }

.metric-grid { margin-top: 1rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.metric-grid article { min-height: 100px; padding: 1rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 14px; background: linear-gradient(145deg, rgba(18,24,38,.98), rgba(8,14,23,.98)); }
.metric-grid span { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.metric-grid strong { color: var(--gold); font-size: 2rem; }

.panel, .card { margin-bottom: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(18,24,38,.97); box-shadow: var(--shadow); }
.card h2 { margin: 0 0 .6rem; font-size: 1.18rem; }
.card p { line-height: 1.5; }
.opportunity-toolbar { margin-top: 1rem; padding: .75rem; display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; border: 1px solid var(--line); border-radius: 13px; background: #0b1220; }
.opportunity-toolbar label { min-width: 180px; flex: 1 1 180px; margin: 0; }
.opportunity-toolbar label.search { flex-basis: 280px; }
.opportunity-toolbar .btn { flex: 0 0 auto; }
.opportunity-status { min-height: 1.2rem; margin: .75rem 0 0; color: var(--muted); font-size: .78rem; }
.opportunity-list { margin-top: .9rem; display: grid; gap: .65rem; }
.opportunity-card { padding: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem 1.2rem; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; background: #090f19; }
.opportunity-card.priority-1 { border-left-color: var(--gold); }
.opportunity-card.priority-2 { border-left-color: var(--green); }
.opportunity-card.priority-3 { border-left-color: #8297ff; }
.opportunity-title h3 { margin: 0; font-size: 1rem; }
.opportunity-title p { margin: .28rem 0 0; color: #cad5e4; font-size: .86rem; }
.opportunity-meta { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.signal-pill { padding: .25rem .5rem; border-radius: 999px; color: #bcd2ff; background: var(--blue-soft); font-size: .66rem; font-weight: 800; }
.signal-pill.new { color: #08130e; background: var(--green); }
.signal-pill.bullhorn { color: #0c1119; background: var(--gold); }
.opportunity-evidence { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.opportunity-evidence a { white-space: nowrap; font-weight: 800; }
.empty-state { margin-top: .9rem; padding: 1.8rem; border: 1px dashed #42516a; border-radius: 13px; color: var(--muted); text-align: center; }
.team-config { margin-top: 1rem; }
.form-grid { margin: .8rem 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
.criteria-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.workplace-fieldset { margin: .8rem 0; padding: .75rem; display: flex; flex-wrap: wrap; gap: 1rem; border: 1px solid var(--line); border-radius: 10px; }
.workplace-fieldset legend { color: var(--muted); font-size: .75rem; }
.workplace-fieldset label { display: flex; align-items: center; gap: .4rem; }
.workplace-fieldset input { width: auto; min-height: 0; }
.aggregator-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.aggregator-list { margin-top: 1rem; display: grid; gap: 1rem; }
.aggregation-card { padding: 1.1rem; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 14px; background: #090f19; }
.aggregation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.aggregation-heading h2 { margin: .15rem 0 .2rem; }
.aggregation-jobs { margin-top: .8rem; display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: .45rem; }
.aggregation-jobs a { padding: .65rem; display: flex; flex-direction: column; gap: .2rem; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #0d1624; text-decoration: none; }
.aggregation-jobs span { color: var(--muted); font-size: .72rem; }
.contact-summary { margin: .8rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.contact-summary span, .manager-badges span { padding: .25rem .5rem; border-radius: 999px; color: #bcd2ff; background: var(--blue-soft); font-size: .68rem; }
.manager-list { display: grid; gap: .55rem; }
.manager-card { padding: .8rem; display: grid; grid-template-columns: minmax(220px,1fr) minmax(180px,.7fr) minmax(220px,.8fr); gap: .8rem; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 10px; background: #0b1220; }
.manager-card.secure { border-left-color: #69dffb; }
.manager-card.ocean { border-left-color: #8297ff; }
.manager-card h3 { margin: 0; font-size: .95rem; }
.manager-card p { margin: .2rem 0; color: var(--muted); font-size: .78rem; }
.manager-badges, .manager-links, .phone-choices { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem; }
.manager-links { flex-direction: column; font-size: .75rem; }
.manager-links details { max-width: 100%; }
.manager-links summary { color: var(--blue); cursor: pointer; }
.cache-detail { max-height: 240px; margin: .4rem 0; overflow: auto; display: grid; grid-template-columns: auto 1fr; gap: .2rem .5rem; font-size: .68rem; }
.cache-detail dt { color: var(--muted); text-transform: lowercase; }
.cache-detail dd { margin: 0; overflow-wrap: anywhere; }
.phone-choices { flex-direction: column; }
.phone-choice { display: flex; align-items: flex-start; gap: .4rem; font-size: .72rem; }
.phone-choice input { width: auto; min-height: 0; }
.phone-choice span { overflow-wrap: anywhere; }
.aggregation-actions { margin-top: .8rem; display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; }

.contact-heading { margin-bottom: 1.2rem; padding: .35rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.contact-heading h1 { margin: .18rem 0 .35rem; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; }
.contact-heading p:last-child { max-width: 850px; margin: 0; color: var(--muted); }
.signin-box { max-width: 680px; margin: 6vh auto; padding: 2.2rem; text-align: center; }
.signin-box h2 { font-size: 2rem; }

.btn, .button { min-height: 42px; padding: .65rem 1rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold); border-radius: 9px; color: #0c1119; background: var(--gold); font-weight: 800; text-decoration: none; cursor: pointer; }
.btn:hover, .button:hover { color: #0c1119; background: #ffc45d; }
.btn.secondary { color: var(--ink); border-color: var(--line); background: #0b1b29; }
.btn.secondary:hover { color: var(--ink); border-color: var(--blue); background: var(--blue-soft); }
.btn:disabled { opacity: .42; cursor: not-allowed; }
.btn.small { min-height: 32px; padding: .35rem .6rem; font-size: .72rem; }
input, select, textarea { width: 100%; min-height: 42px; padding: .62rem .72rem; border: 1px solid #31516d; border-radius: 9px; color: var(--ink); background: #0b1b29; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(76,141,255,.2); border-color: var(--blue); }
input[type="file"] { margin: .7rem 0; }
label > span { display: block; margin-bottom: .3rem; color: #adc1d4; font-size: .75rem; font-weight: 750; }
.checkbox-row { margin: .6rem 0; display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .8rem; }
.checkbox-row input { width: auto; min-height: 0; }
.checkbox-row select { width: auto; min-width: 260px; }
.hint { color: var(--muted); font-size: .78rem; }
.error-banner, .upload-result { margin-top: .75rem; padding: .75rem .9rem; border-radius: 9px; font-size: .8rem; white-space: pre-wrap; }
.error-banner { color: #ffd9dc; border: 1px solid rgba(255,107,114,.5); background: rgba(255,107,114,.12); }
.upload-result { color: #dbe8ff; border: 1px solid rgba(76,141,255,.4); background: rgba(76,141,255,.09); }

.table-wrap { overflow: auto; }
table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: .78rem; }
th { padding: .7rem .75rem; color: #aebbd0; background: #0c1220; text-align: left; font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; }
td { padding: .75rem; border-top: 1px solid var(--line); vertical-align: top; }
pre { max-height: 430px; overflow: auto; padding: .8rem; color: #c9d8ec; background: #080d16; }
.log-filters { margin: .6rem 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.log-filters input, .log-filters select { flex: 1 1 170px; }
.summary-pills { margin-bottom: .8rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { padding: .28rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: #bcd2ff; background: var(--blue-soft); font-size: .72rem; }
.company-decision { max-width: 320px; display: grid; gap: .4rem; }
.status-pending, .status-bullhorn-needs_company_decision { color: var(--warning); }
.status-success, .status-enriched, .status-bullhorn-synced { color: var(--green); }
.status-skipped, .status-bullhorn_error, .status-bullhorn-error { color: var(--danger); }

@media (max-width: 1080px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .site-header { flex-wrap: wrap; padding: .7rem 3vw; }
  .primary-nav { order: 3; width: 100%; margin: 0; }
  .manager-card, .criteria-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  main { width: min(94vw, 680px); padding-top: 1rem; }
  .brand small, .who { display: none; }
  .primary-nav { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 1.4rem; align-items: flex-start; flex-direction: column; }
  .radar-mark { width: 92px; height: 92px; }
  .team-grid, .metric-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .opportunity-card { grid-template-columns: 1fr; }
  .opportunity-evidence { align-items: flex-start; flex-direction: column; }
  .checkbox-row { align-items: flex-start; flex-direction: column; }
  .checkbox-row select { width: 100%; min-width: 0; }
}
