:root {
  font-family: Inter, Arial, sans-serif;
  color: #17263a;
  background: #f5f7f8;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #d8e0e6;
  border-radius: 7px;
  background: white;
  color: #213951;
  padding: 10px 16px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #87b5ca;
  outline-offset: 2px;
}
.primary {
  background: #17496a;
  color: white;
  border-color: #17496a;
  font-weight: 700;
}
.quiet {
  border: 0;
  background: transparent;
}
.top {
  height: 66px;
  background: #fff;
  border-bottom: 1px solid #e3e8ec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #173a53;
  text-decoration: none;
}
.brand span {
  font-weight: 400;
  letter-spacing: 0;
}
.brand img {
  width: 28px;
  height: 28px;
}
.top > div {
  display: flex;
  gap: 20px;
  align-items: center;
}
.welcome {
  max-width: 1220px;
  margin: 9vh auto;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
}
.welcome h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.07;
  letter-spacing: -0.04em;
}
.welcome p {
  color: #607385;
  line-height: 1.65;
  font-size: 17px;
}
.welcome video {
  width: 100%;
  border-radius: 14px;
}
.eyebrow {
  font-size: 11px !important;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #668397 !important;
}
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 66px);
}
aside {
  background: #edf2f4;
  padding: 35px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
aside .eyebrow {
  padding: 0 12px;
}
.nav {
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 600;
  color: #607385;
}
.nav.selected {
  background: white;
  color: #17496a;
}
.aside-note {
  font-size: 12px;
  line-height: 1.5;
  color: #768994;
  padding: 20px 12px;
}
.content {
  min-width: 0;
  width: min(1150px, 100%);
  margin: 0 auto;
  padding: 35px 44px 80px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid #dce4e8;
  padding-bottom: 22px;
}
.page-heading h1 {
  margin: 4px 0 0;
  font-size: 30px;
  letter-spacing: -0.035em;
}
.project-select {
  width: 230px;
}
.intro {
  margin: 35px 0 20px;
}
.intro h2,
.results-heading h2 {
  font-size: 21px;
  margin: 0 0 8px;
}
.intro p,
.card p {
  color: #6d7f8d;
  line-height: 1.5;
}
.card {
  min-width: 0;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid #e0e7ea;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px #1a3c4b08;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.form-grid label,
.project-select,
.filters label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.upload {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #f5f8f9;
  border-radius: 8px;
}
.upload button {
  justify-self: start;
}
.wide {
  grid-column: 1/-1;
}
input:not([type="checkbox"]),
textarea,
select {
  border: 1px solid #d6e0e5;
  border-radius: 7px;
  padding: 11px;
  background: #fff;
  color: #17263a;
  width: 100%;
}
textarea {
  resize: vertical;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
}
.check {
  display: inline-flex !important;
  flex-direction: row !important;
  margin-right: 25px;
  font-weight: 400 !important;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
}
.search-row {
  display: flex;
  gap: 10px;
}
.search-row button {
  white-space: nowrap;
}
.source-status {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.source {
  border-radius: 20px;
  background: #e8eff1;
  color: #516c79;
  padding: 7px 11px;
  font-size: 12px;
}
.source.error {
  background: #fff0ed;
  color: #9b4435;
}
.results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 35px 0 15px;
}
.results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.result h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.4;
}
.result h3 a {
  color: #164d70;
  text-decoration: none;
}
.result small {
  color: #748b99;
}
.result blockquote {
  border-left: 3px solid #9ebfce;
  margin: 18px 0;
  padding-left: 15px;
  color: #435a69;
  line-height: 1.55;
}
.assistant {
  margin-top: 25px;
}
.answer {
  white-space: pre-wrap;
  line-height: 1.6;
  margin-top: 15px;
}
.cited-source {
  white-space: normal;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d7e2e7;
  border-radius: 8px;
}
.cited-source summary {
  cursor: pointer;
  font-weight: 600;
}
.notice {
  color: #9d483c !important;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .top {
    padding: 0 16px;
  }
  .welcome {
    grid-template-columns: 1fr;
    margin: 0 auto;
    padding: 30px 20px;
  }
  .layout {
    display: block;
  }
  aside {
    flex-direction: row;
    overflow: auto;
    padding: 10px;
  }
  aside .eyebrow,
  .aside-note {
    display: none;
  }
  .nav {
    white-space: nowrap;
  }
  .content {
    padding: 24px 18px;
  }
  .page-heading {
    display: block;
  }
  .project-select {
    width: 100%;
    margin-top: 16px;
  }
  .form-grid,
  .filters {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .search-row {
    flex-direction: column;
  }
  .actions {
    flex-wrap: wrap;
  }
}
:is(.film-panel) {
  margin-bottom: 20px;
  color: #476677;
}
.film-panel summary {
  cursor: pointer;
  font-weight: 600;
}
.film-panel iframe {
  width: 100%;
  height: 660px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}
@media (max-width: 700px) {
  .film-panel iframe {
    height: 490px;
  }
}
.top > div {
  min-width: 0;
}
.top #workspace-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .top > div {
    max-width: 48%;
    gap: 6px;
  }
  .top #workspace-name {
    font-size: 12px;
  }
  .top .quiet {
    padding: 8px;
  }
}
.geography {
  margin-bottom: 16px;
}
.geography h2 {
  margin: 0;
  font-size: 18px;
}
.geography-layout {
  display: flex;
  gap: 25px;
  align-items: center;
}
.geography svg {
  width: 180px;
  max-height: 115px;
  background: #eaf3f6;
  border-radius: 8px;
}
.geography path {
  fill: #adcbd7;
  stroke: #fff;
  stroke-width: 0.08;
}
.geography button {
  margin: 4px;
}
@media (max-width: 700px) {
  .geography-layout {
    flex-direction: column;
    align-items: flex-start;
  }
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/polices/inter-tight-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  font-family: "Inter Tight", Arial, sans-serif;
}

#assistant-search { margin-top: 10px; max-width: 100%; white-space: normal; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.summary-card { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; text-align: left; color: #17496a; }
.summary-card strong { font-size: 26px; line-height: 1; }
.summary-card span { font-size: 13px; }
.summary-card:disabled { opacity: .65; cursor: default; }
@media (max-width: 700px) { .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .summary-card { padding: 16px; } }

.result-scenario { margin-top: 18px; border-top: 1px solid #e0e7ea; padding-top: 14px; }
.result-scenario summary { cursor: pointer; font-weight: 600; color: #17496a; }
.scenario-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scenario-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
@media (max-width: 700px) { .scenario-grid { grid-template-columns: 1fr; } }

.coverage-source { border-top: 1px solid #e0e7ea; margin-top: 12px; padding-top: 12px; }
.coverage-source p { margin: 5px 0; }
