:root {
  color-scheme: light;
  --paper: #f4f7fc;
  --white: #fff;
  --ink: #0c1930;
  --muted: #4f607a;
  --blue: #164ed6;
  --blue-deep: #0f39ac;
  --blue-soft: #edf3ff;
  --red: #ad2845;
  --red-soft: #fceef1;
  --line: #dbe4f2;
  --shadow: 0 12px 36px rgba(24, 55, 102, .065);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-feature-settings: "ss01" on;
  color: var(--ink);
  background: radial-gradient(ellipse at 32% 16%, #e8f2ff 0, transparent 29rem), var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; }
a { color: var(--blue-deep); text-decoration-thickness: .08em; text-underline-offset: .22em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .63; }
button, a, input, select, summary { outline-offset: 3px; }
:focus-visible { outline: 3px solid #2e66e2; }
h1, h2, h3, p, figure { margin: 0; }
.container { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; left: -1000px; top: 12px; z-index: 5; padding: 10px; background: white; }
.skip:focus { left: 12px; }
.topbar { background: rgba(251, 253, 255, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 11px; font-weight: 750; font-size: 1.13rem; white-space: nowrap; letter-spacing: -.024em; }
.topbar nav { display: flex; gap: 28px; }
.topbar nav a { font-weight: 650; font-size: .94rem; text-decoration: none; color: var(--muted); }
.topbar nav a:hover, .text-button:hover { color: var(--blue); text-decoration: underline; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 11px; padding: 8px 15px; font-weight: 680; font-size: .91rem; line-height: 1.25; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.button.primary { background: var(--blue); color: white; box-shadow: 0 4px 10px #184fce25; }
.button.primary:hover { background: var(--blue-deep); }
.button.soft { background: var(--blue-soft); color: var(--blue-deep); }
.button.soft:hover { background: #dce9ff; }
.button.outline { background: white; border-color: var(--line); color: var(--ink); }
.button.outline:hover { border-color: #a0b6da; background: #f8faff; }
.hero { display: grid; grid-template-columns: 1.22fr 1fr; margin: 39px 0 44px; background: #fbfdff; border: 1px solid #d8e5f4; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.hero-text { padding: clamp(29px, 4.05vw, 61px); align-self: center; }
.eyebrow { font-size: .79rem; font-weight: 760; letter-spacing: .09em; color: var(--blue-deep); text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #d74056; vertical-align: 2px; }
.hero h1 { max-width: 635px; font-size: clamp(2.35rem, 4.4vw, 4.4rem); line-height: 1.026; letter-spacing: -.068em; margin: 14px 0 17px; font-weight: 790; }
.hero-text > p:not(.eyebrow) { max-width: 570px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.hero-art { position: relative; min-height: 270px; background: #0a1c42; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 59% 50%; }
.hero-art figcaption { position: absolute; bottom: 14px; right: 18px; font-size: .79rem; color: #f2f5ff; background: #101e42dc; border: 1px solid #a3b8f447; border-radius: 7px; padding: 5px 9px; }
#workspace, #method { scroll-margin-top: 20px; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 13px; }
.section-title h2 { font-size: clamp(1.85rem, 3.1vw, 2.7rem); line-height: 1.13; letter-spacing: -.05em; margin-top: 2px; }
.privacy { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: 7px; }
.source-strip { display: flex; align-items: center; gap: 13px; padding: 14px 18px; border: 1px solid var(--line); background: #fbfdff; border-radius: 16px; }
.source-icon, .panel-icon, .stat-icon { width: 41px; height: 41px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: var(--blue); background: var(--blue-soft); }
.source-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.source-info h3 { font-size: 1.02rem; }
.source-info p { font-size: .86rem; color: var(--muted); }
.source-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status { margin: 7px 0; font-size: .88rem; min-height: 1.36em; color: var(--muted); overflow-wrap: anywhere; }
.status[data-error="true"], .banner { color: #942237; }
.drop-zone { background: var(--blue-soft); padding: 19px; border: 2px dashed #5b88df; border-radius: 14px; text-align: center; margin-bottom: 12px; color: var(--blue-deep); font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 15px; }
.stat { display: flex; align-items: flex-start; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); border-radius: 17px; gap: 13px; padding: 17px 18px; }
.stat .red { background: var(--red-soft); color: var(--red); }
.stat-label { font-size: .89rem; font-weight: 680; color: var(--muted); }
.stat-value { font-variant-numeric: tabular-nums; letter-spacing: -.048em; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.18; font-weight: 780; }
.stat-note { font-size: .81rem; color: var(--muted); margin-top: 3px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.86fr) minmax(0, 1fr); gap: 15px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); min-width: 0; }
.panel h3 { font-size: 1.23rem; letter-spacing: -.035em; line-height: 1.25; }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 20px 21px 16px; }
.panel-head p { font-size: .91rem; color: var(--muted); margin-top: 3px; }
#filters { background: #f6f9ff; border: 1px solid var(--line); border-radius: 12px; margin: 0 20px 15px; padding: 10px 12px; }
summary { cursor: pointer; color: var(--ink); font-weight: 650; }
#filters summary { list-style: none; display: flex; align-items: center; gap: 7px; font-size: .93rem; }
#filters summary::-webkit-details-marker { display: none; }
#filters summary::after { content: ''; margin-left: auto; width: 7px; height: 7px; border-bottom: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); }
#filters[open] summary::after { transform: rotate(225deg); }
.selects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 9px; }
.selects.variant-filters { grid-template-columns: 1fr 1fr; }
.selects label, #question-form > label:first-child { font-size: .86rem; font-weight: 680; }
select, input:not([type=checkbox]):not([type=file]) { display: block; width: 100%; min-width: 0; margin-top: 4px; padding: 7px 9px; color: var(--ink); background: #fff; border: 1px solid #cdd9ea; border-radius: 8px; min-height: 38px; }
select { appearance: none; padding-right: 24px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%234f607a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; }
.criteria-checks { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.check-line { display: inline-flex; align-items: center; gap: 5px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blue); margin: 0; }
.text-button { appearance: none; background: none; padding: 0; border: 0; color: var(--blue-deep); font-weight: 680; text-align: left; }
.criteria-checks .text-button { margin-left: auto; }
.tabs { display: flex; padding-inline: 20px; border-bottom: 1px solid var(--line); gap: 19px; }
.tabs button { padding: 9px 2px 8px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font-size: .91rem; font-weight: 690; }
.tabs button[aria-selected=true] { border-bottom-color: var(--blue); color: var(--blue-deep); }
[role=tabpanel] { padding: 16px 20px 21px; }
.detail-head { font-size: 1.01rem; margin-bottom: 3px; font-weight: 720; }
.caption { font-size: .84rem; color: var(--muted); }
.bars { margin: 13px 0 15px; display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 40px minmax(0,1fr) 55px; gap: 9px; align-items: center; font-size: .87rem; font-weight: 670; }
.bar-track { display: flex; overflow: hidden; min-width: 0; height: 12px; border-radius: 8px; background: #e6edf8; }
.bar-track span { display: block; height: 100%; }
.bar-pos { background: #1855d5; }
.bar-neg { background: #76aaff; }
.bar-other { background: #e5a5b2; }
.bar-val { color: var(--muted); text-align: right; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 15px; font-size: .81rem; color: var(--muted); }
.legend > span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.legend > span:nth-child(1)::before { background: #1855d5; }.legend > span:nth-child(2)::before { background: #76aaff; }.legend > span:nth-child(3)::before { background: #e5a5b2; }
.table-scroll { overflow: auto; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { text-align: left; padding: 8px 9px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 680; background: #f7faff; }
td { overflow-wrap: anywhere; }
.comparison { margin-top: 19px; }
.exclusion-box { background: var(--red-soft); border-radius: 11px; margin-top: 16px; padding: 10px 12px; color: #7d2940; font-size: .87rem; }
.exclusion-box strong { display: block; }
.records-controls { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.records-controls select { width: auto; max-width: 100%; }
.page-actions, .report-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.page-actions span { margin-right: auto; }
.page-actions button:disabled { cursor: default; }
.analyst { padding: 20px; }
.analyst-heading { display: flex; align-items: center; gap: 10px; }
.analyst-heading p { color: var(--blue-deep); font-size: .82rem; font-weight: 650; margin-top: 2px; }
.analyst-intro { margin: 12px 0; color: var(--muted); font-size: .93rem; }
.task-list { display: grid; gap: 6px; }
.task-list button { display: flex; justify-content: start; white-space: normal; text-align: left; }
#question-form { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.ask-row { display: flex; align-items: end; gap: 6px; margin-bottom: 7px; }
.ask-row input { flex: 1; }
.ask-row .button { min-height: 38px; }
#ai-label { font-size: .83rem; font-weight: 670; margin: 4px 0; }
.answer-card { margin-top: 13px; border: 1px solid #cfdefa; border-radius: 12px; padding: 12px; background: #f0f5ff; }
.answer-card h4 { margin: 0 0 5px; font-size: .96rem; }
.answer-card p { font-size: .88rem; margin: 5px 0; }
#trace { margin-top: 11px; font-size: .86rem; color: var(--muted); }
#trace ol { margin: 5px 0 0; padding-left: 20px; }
.error-empty { padding: 20px; }
.error-empty .button { margin-top: 10px; }
.method { margin-top: 38px; }
.method-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.method-grid article { padding: 19px; }
.method-grid h3 { margin: 10px 0 6px; }
.method-grid p, .method-notes p { color: var(--muted); }
.method-grid button { margin-top: 9px; }
.method-notes { padding: 14px 2px; }
.method-notes details { padding: 7px 0; }
.method-notes p { max-width: 940px; margin: 7px 0; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); padding: 17px 0 23px; margin-top: 12px; border-top: 1px solid var(--line); font-size: .87rem; }
.footer .brand { font-size: .93rem; }
@media (max-width: 950px) {
  .container { width: calc(100% - 44px); }.hero { margin-top: 25px; }.hero-text { padding: 32px; }
  .workspace-grid { grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); }
  .stat { padding: 13px; gap: 8px; }.stat-icon { width: 34px; height: 34px; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }.topbar-inner { height: 63px; }.topbar nav { display: none; }
  .hero { grid-template-columns: 1fr; margin: 20px 0 28px; }.hero-text { padding: 26px; }.hero-art { min-height: 185px; }
  .hero h1 { max-width: 560px; }.section-title { align-items: start; flex-direction: column; }
  .source-strip { flex-wrap: wrap; }.source-info { flex-basis: calc(100% - 60px); }.source-actions { margin-left: 54px; }
  .workspace-grid, .method-grid { grid-template-columns: 1fr; }.metrics { gap: 7px; }
  .stat { flex-direction: column; }.stat-note { font-size: .76rem; }
}
@media (max-width: 400px) {
  .container { width: calc(100% - 24px); }.hero-text { padding: 21px; }.hero-art { min-height: 145px; }
  .source-actions { margin-left: 0; }.stat { padding: 10px 8px; }.stat-label { font-size: .8rem; }
  .selects { grid-template-columns: repeat(2, 1fr); }.panel-head, .analyst { padding: 15px; }
  #filters { margin-inline: 14px; }[role=tabpanel] { padding-inline: 14px; }
}
