:root {
  --bg: #101318;
  --surface: rgba(27, 31, 38, .9);
  --surface-strong: #1d222a;
  --surface-soft: #242a33;
  --line: rgba(255, 255, 255, .085);
  --text: #f2f6f7;
  --muted: #8d98a4;
  --teal: #4be1c1;
  --blue: #66aaff;
  --gold: #ffca63;
  --violet: #ad95ff;
  --coral: #ff897c;
  --font: "Outfit", sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--text); background: var(--bg); font-family: var(--font); }
button, input, select { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 9px 12px; color: #102d29; background: var(--teal); border-radius: 8px; font-weight: 800; text-decoration: none; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.ambient { position: fixed; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(8px); }
.ambient-one { top: -310px; right: -180px; width: 660px; height: 660px; opacity: .18; background: radial-gradient(circle, #1b9c87, transparent 67%); }
.ambient-two { bottom: -420px; left: -180px; width: 620px; height: 620px; opacity: .13; background: radial-gradient(circle, #6d56b6, transparent 68%); }
.site-header { display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: 0 auto; padding: 28px clamp(22px, 4vw, 58px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: white; font-size: 22px; font-weight: 800; letter-spacing: -.9px; text-decoration: none; }
.brand > span:last-child span { color: var(--teal); }
.brand-mark { position: relative; display: block; width: 25px; height: 25px; border: 3px solid var(--teal); border-radius: 50%; }
.brand-mark::after { position: absolute; top: 8px; right: -3px; left: -3px; height: 3px; background: var(--teal); content: ""; }
.brand-mark i { position: absolute; z-index: 1; top: 6px; left: 6px; width: 7px; height: 7px; background: var(--bg); border: 2px solid var(--teal); border-radius: 50%; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions a { color: #a8b2bd; font-size: 12px; font-weight: 700; text-decoration: none; }
.header-actions a:hover { color: var(--teal); }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; color: #b7c0ca; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 18px; }
.icon-button:hover { color: white; background: var(--surface-soft); }
main { width: min(100%, 1440px); margin: 0 auto; padding: 60px clamp(22px, 4vw, 58px) 44px; }
.eyebrow { margin: 0; color: #7f8a96; font: 500 10px/1.2 var(--mono); letter-spacing: 1.2px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 70px; min-height: 325px; padding: 42px 0 70px; }
.hero h1 { max-width: 800px; margin: 13px 0 20px; font-size: clamp(48px, 7vw, 92px); line-height: .9; letter-spacing: -5px; }
.hero h1 span { color: var(--teal); }
.hero-copy { max-width: 690px; margin: 0; color: #9ba6b1; font-size: 15px; line-height: 1.7; }
.hero-score { position: relative; display: grid; place-items: center; width: 210px; height: 210px; justify-self: end; background: radial-gradient(circle, rgba(75, 225, 193, .11), transparent 65%); border: 1px solid rgba(75, 225, 193, .28); border-radius: 50%; box-shadow: 0 0 0 14px rgba(75, 225, 193, .035), 0 24px 70px rgba(0, 0, 0, .2); }
.hero-score::before, .hero-score::after { position: absolute; background: var(--teal); content: ""; }
.hero-score::before { right: -1px; left: -1px; height: 2px; opacity: .65; }
.hero-score::after { width: 23px; height: 23px; background: var(--bg); border: 5px solid var(--teal); border-radius: 50%; }
.hero-score span, .hero-score small { position: relative; z-index: 1; }
.hero-score span { margin-top: -48px; color: white; font-size: 42px; font-weight: 800; letter-spacing: -2px; }
.hero-score small { position: absolute; bottom: 45px; color: var(--teal); font: 500 8px var(--mono); letter-spacing: .8px; }
.hero-score i { position: absolute; top: 25px; right: 32px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; box-shadow: -153px 112px 0 -1px var(--violet); }
.import-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); gap: 40px; padding: 32px; background: linear-gradient(125deg, rgba(32, 51, 54, .92), rgba(26, 31, 38, .95) 55%); border: 1px solid rgba(75, 225, 193, .18); border-radius: 18px; box-shadow: inset 0 1px rgba(255, 255, 255, .03), 0 24px 70px rgba(0, 0, 0, .16); }
.import-copy h2, .report-heading h2, .empty-dashboard h2 { margin: 8px 0 13px; font-size: 28px; letter-spacing: -1px; }
.import-copy ol { display: grid; gap: 9px; margin: 18px 0 20px; padding-left: 22px; color: #aab4bd; font-size: 12px; line-height: 1.5; }
.import-copy li::marker { color: var(--teal); font: 700 11px var(--mono); }
.import-copy strong { color: #dbe4e6; }
.privacy-note { display: flex; align-items: center; gap: 10px; margin: 0; color: #83918f; font-size: 10px; line-height: 1.5; }
.privacy-note > span:first-child { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; color: var(--teal); background: rgba(75, 225, 193, .08); border-radius: 8px; font-size: 18px; }
.privacy-note strong { display: block; color: #9be8d7; }
.import-actions { display: flex; flex-direction: column; min-width: 0; }
.drop-zone { display: grid; place-items: center; min-height: 185px; width: 100%; padding: 24px; color: #ced7dc; background: rgba(10, 14, 18, .28); border: 1px dashed #52616b; border-radius: 14px; text-align: center; transition: .18s; }
.drop-zone:hover, .drop-zone.dragging { color: white; background: rgba(75, 225, 193, .07); border-color: var(--teal); transform: translateY(-2px); }
.drop-zone strong, .drop-zone small { display: block; }
.drop-zone strong { margin: 11px 0 4px; font-size: 14px; }
.drop-zone small { color: #74828c; font: 9px var(--mono); }
.upload-mark { display: grid; place-items: center; width: 43px; height: 43px; color: #10332f; background: var(--teal); border-radius: 12px; font-size: 24px; font-weight: 800; box-shadow: 0 9px 25px rgba(75, 225, 193, .18); }
.secondary-actions { display: flex; justify-content: center; gap: 18px; margin-top: 12px; }
.secondary-actions button { padding: 4px 0; color: #83919a; background: transparent; font-size: 10px; font-weight: 700; }
.secondary-actions button:hover { color: var(--teal); }
.file-status { min-height: 16px; margin: 8px 0 0; color: #71808a; font: 8px/1.4 var(--mono); text-align: center; }
.report-shell { margin-top: 28px; }
.report-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 24px 2px; }
.report-heading h2 { margin-bottom: 5px; }
.report-heading > div > p:last-child { margin: 0; color: #77838e; font: 9px var(--mono); }
.export-button { padding: 11px 14px; color: #102e2a; background: var(--teal); border-radius: 9px; font-size: 11px; font-weight: 800; box-shadow: 0 8px 25px rgba(75, 225, 193, .13); }
.export-button:hover { background: #75ecd3; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.summary-grid article { position: relative; min-height: 132px; padding: 19px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.summary-grid small { display: block; color: #77828d; font: 500 8px var(--mono); letter-spacing: .7px; }
.summary-grid strong { display: block; margin: 13px 0 4px; font-size: 29px; letter-spacing: -1px; }
.summary-grid p { margin: 0; color: #75808b; font-size: 9px; }
.summary-icon { position: absolute; top: 17px; right: 17px; display: grid; place-items: center; width: 28px; height: 28px; background: rgba(255, 255, 255, .04); border-radius: 8px; font: 700 13px var(--mono); }
.summary-icon.teal { color: var(--teal); }.summary-icon.blue { color: var(--blue); }.summary-icon.gold { color: var(--gold); }.summary-icon.violet { color: var(--violet); }
.queue-panel { margin-top: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.queue-toolbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.report-tabs { display: flex; gap: 5px; padding: 4px; background: rgba(8, 11, 15, .35); border: 1px solid var(--line); border-radius: 10px; }
.report-tabs button { padding: 8px 12px; color: #7f8b96; background: transparent; border-radius: 7px; font-size: 11px; font-weight: 700; }
.report-tabs button.active { color: #11332f; background: var(--teal); }
.report-tabs span { min-width: 20px; margin-left: 5px; padding: 2px 5px; color: inherit; background: rgba(255, 255, 255, .12); border-radius: 99px; font: 8px var(--mono); }
.search-filter { display: flex; align-items: center; gap: 7px; min-width: 250px; padding: 0 11px; background: #171b21; border: 1px solid var(--line); border-radius: 9px; }
.search-filter > span { color: #7d8994; font-size: 18px; }
.search-filter input { width: 100%; padding: 9px 0; background: transparent; border: 0; outline: 0; font-size: 11px; }
.search-filter input::placeholder { color: #68737d; }
.filter-bar { display: grid; grid-template-columns: 1fr .8fr .8fr .8fr 1.3fr; gap: 9px; margin: 17px 0 10px; padding: 13px; background: rgba(10, 14, 18, .25); border: 1px solid rgba(255, 255, 255, .05); border-radius: 11px; }
.filter-bar label { position: relative; color: #75818c; font: 8px var(--mono); }
.filter-bar input, .filter-bar select { width: 100%; min-height: 36px; margin-top: 5px; padding: 8px 9px; color: #cbd4d9; background: #252b34; border: 1px solid #353d47; border-radius: 7px; font: 10px var(--font); }
.filter-bar label > span { position: absolute; right: 9px; bottom: 10px; color: #6e7a84; font-size: 9px; }
.score-note { display: flex; justify-content: space-between; align-items: start; gap: 20px; min-height: 29px; color: #6f7c86; font: 8px/1.5 var(--mono); }
.score-note details { max-width: 640px; }
.score-note summary { color: #8b98a2; cursor: pointer; }
.score-note p { margin: 7px 0 4px; }
.score-note > span { padding-top: 2px; white-space: nowrap; }
.table-wrap { position: relative; min-height: 210px; overflow-x: auto; border-top: 1px solid rgba(255, 255, 255, .055); }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 10px 10px; color: #6d7984; font: 500 8px var(--mono); letter-spacing: .45px; text-align: left; white-space: nowrap; }
td { padding: 13px 10px; color: #aab5be; border-top: 1px solid rgba(255, 255, 255, .045); font-size: 10px; vertical-align: middle; }
tbody tr:hover { background: rgba(255, 255, 255, .018); }
.opportunity-cell { min-width: 285px; }
.opportunity-name { display: flex; align-items: center; gap: 10px; }
.score-badge { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; color: var(--teal); background: rgba(75, 225, 193, .075); border: 1px solid rgba(75, 225, 193, .23); border-radius: 50%; font: 700 10px var(--mono); }
.score-badge.strong { color: var(--gold); background: rgba(255, 202, 99, .07); border-color: rgba(255, 202, 99, .24); }
.opportunity-name strong, .opportunity-name small { display: block; }
.opportunity-name strong { max-width: 440px; overflow: hidden; color: #e5ebee; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.opportunity-name small { margin-top: 3px; color: #697680; font: 8px var(--mono); }
.metric-number { color: #d5dde1; font: 10px var(--mono); white-space: nowrap; }
.ctr-low { color: var(--coral); }.position-prime { color: var(--teal); }
.recommended-action { min-width: 190px; max-width: 250px; color: #89959f; line-height: 1.45; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.row-actions button, .row-actions a { padding: 6px 8px; color: #93a0aa; background: #252b34; border: 1px solid #353e48; border-radius: 6px; font: 700 8px var(--font); text-decoration: none; }
.row-actions button:hover, .row-actions a:hover { color: #12342f; background: var(--teal); border-color: var(--teal); }
.empty-queue { display: grid; place-items: center; min-height: 210px; padding: 30px; color: #77848e; text-align: center; }
.empty-queue > span { font-size: 31px; }
.empty-queue strong { margin: 7px 0 3px; color: #aeb8bf; font-size: 13px; }
.empty-queue p { margin: 0; font-size: 10px; }
.empty-dashboard { display: flex; justify-content: center; align-items: center; gap: 28px; min-height: 280px; margin-top: 28px; color: #77838d; border: 1px dashed #303842; border-radius: 17px; text-align: left; }
.empty-dashboard h2 { color: #cbd4d9; }
.empty-dashboard p:last-child { max-width: 460px; margin: 0; font-size: 11px; line-height: 1.6; }
.empty-orbit { position: relative; width: 88px; height: 88px; border: 2px solid #34414a; border-radius: 50%; }
.empty-orbit::before { position: absolute; top: 42px; right: -2px; left: -2px; height: 2px; background: #34414a; content: ""; }
.empty-orbit span { position: absolute; z-index: 1; top: 32px; left: 32px; width: 20px; height: 20px; background: var(--bg); border: 3px solid #46545d; border-radius: 50%; }
footer { display: flex; justify-content: space-between; max-width: 1440px; margin: 0 auto; padding: 18px clamp(22px, 4vw, 58px) 35px; color: #67737d; border-top: 1px solid var(--line); font: 9px var(--mono); }
footer a { color: #8fdcca; text-decoration: none; }
footer a:hover { color: var(--teal); }
.toast { position: fixed; z-index: 30; right: 20px; bottom: 20px; max-width: min(430px, calc(100vw - 40px)); padding: 11px 14px; color: #10322e; background: var(--teal); border-radius: 9px; box-shadow: 0 15px 45px rgba(0, 0, 0, .3); font-size: 11px; font-weight: 800; }

body.light {
  --bg: #eef4f2;
  --surface: rgba(255, 255, 255, .92);
  --surface-strong: #ffffff;
  --surface-soft: #e6efec;
  --line: rgba(28, 60, 62, .13);
  --text: #172528;
  --muted: #607076;
  background: #eef4f2;
}
body.light .brand { color: #172528; }
body.light .hero-score::after, body.light .empty-orbit span, body.light .brand-mark i { background: var(--bg); }
body.light .import-panel { background: linear-gradient(125deg, rgba(221, 244, 238, .95), rgba(255, 255, 255, .96) 55%); box-shadow: 0 20px 55px rgba(53, 93, 86, .09); }
body.light .import-copy strong, body.light .summary-grid strong, body.light .opportunity-name strong { color: #203235; }
body.light .drop-zone { color: #405256; background: rgba(255, 255, 255, .58); border-color: #9cb7b1; }
body.light .drop-zone small, body.light .file-status { color: #61747a; }
body.light .report-tabs { background: #e7efed; }
body.light .search-filter, body.light .filter-bar { background: #f1f6f5; }
body.light .filter-bar input, body.light .filter-bar select, body.light .row-actions button, body.light .row-actions a { color: #43555a; background: white; border-color: #d3dfdc; }
body.light td { color: #516269; }
body.light tbody tr:hover { background: rgba(40, 111, 98, .035); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr 180px; gap: 35px; }
  .hero-score { width: 170px; height: 170px; }
  .hero-score span { margin-top: -38px; font-size: 35px; }
  .hero-score small { bottom: 34px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .site-header { padding-block: 20px; }
  .header-actions a { display: none; }
  main { padding-top: 32px; }
  .hero { display: block; min-height: 0; padding: 35px 0 50px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); letter-spacing: -3px; }
  .hero-score { display: none; }
  .import-panel { grid-template-columns: 1fr; padding: 23px; }
  .queue-toolbar, .report-heading { align-items: stretch; flex-direction: column; }
  .search-filter { min-width: 0; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .empty-dashboard { flex-direction: column; padding: 35px 24px; text-align: center; }
}

@media (max-width: 470px) {
  .brand { font-size: 19px; }
  .hero-copy { font-size: 13px; }
  .summary-grid, .filter-bar { grid-template-columns: 1fr; }
  .summary-grid article { min-height: 110px; }
  .secondary-actions { flex-direction: column; gap: 4px; }
  .report-tabs button { flex: 1; }
  .report-tabs { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media(max-width:760px){button,.theme-toggle,.preview-button{min-width:44px;min-height:44px}.filter-bar input,.filter-bar select,.search-filter input,textarea{font-size:16px;min-height:44px;min-width:0;max-width:100%}}
