:root {
  --ink: #ededed;
  --muted: #a1a1aa;
  --line: #2e2e33;
  --paper: #18181b;
  --white: #202023;
  --green: #3ecf8e;
  --green-2: #1f5d45;
  --amber: #f4b860;
  --blue: #8ab4d6;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
* {
  box-sizing: border-box;
}
html {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  background: #18181b;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 290px 1fr;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 290px;
  background: #1c1c1f;
  color: #f2f6f3;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #2e2e33;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.02em;
  padding: 0 8px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #3ecf8e;
  color: #10251b;
  font-weight: 800;
}
.workspace-label,
.eyebrow {
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.16em;
}
.workspace-label {
  color: #8b8b93;
  margin: 34px 10px 13px;
}
.agents {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.agent {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  padding: 9px 10px;
  color: #b7b7bf;
  font-size: 14px;
}
.agent-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #252529;
  font-size: 14px;
  font-weight: 750;
}
.agent-state {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52665a;
}
.agent.active {
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
}
.agent.active .agent-state {
  background: #8fd2a9;
  box-shadow: 0 0 0 4px rgba(143, 210, 169, 0.1);
  animation: pulse 1.4s infinite;
}
.agent.complete {
  color: #dce9e0;
}
.agent.complete .agent-state {
  background: #6ab889;
}
.url-form {
  margin-top: auto;
  border-top: 1px solid #2e2e33;
  padding: 20px 2px 0;
}
.url-form label {
  display: block;
  font-size: 14px;
  color: #a1a1aa;
  margin: 0 0 9px 5px;
}
.url-control {
  display: flex;
  align-items: center;
  background: #232326;
  border: 1px solid #36363b;
  border-radius: 13px;
  padding: 4px;
}
.url-control:focus-within {
  border-color: #3ecf8e;
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.16);
}
.url-control input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 8px;
  color: #ededed;
  font-size: 14px;
}
.url-control button {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #3ecf8e;
  color: #10251b;
  cursor: pointer;
}
.url-control button:hover {
  background: #57d99d;
}
.url-control button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.url-control svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.url-form > span {
  display: block;
  font-size: 14px;
  color: #8b8b93;
  margin: 8px 5px 0;
}
.main {
  grid-column: 2;
  min-width: 0;
  padding: 0 5.5vw 70px;
}
.topbar {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2e2e33;
}
.topbar .eyebrow {
  color: #3ecf8e;
}
.topbar h1 {
  font-size: 22px;
  letter-spacing: -0.025em;
  margin: 6px 0 0;
}
.run-state {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.run-state span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8da099;
}
.run-state.running span {
  background: #4da275;
  animation: pulse 1.4s infinite;
}
.empty-state {
  min-height: calc(100vh - 104px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.empty-state .eyebrow {
  color: #3ecf8e;
  margin-top: 28px;
}
.empty-state h2 {
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: clamp(38px, 4.5vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin: 13px 0 20px;
}
.empty-state > p {
  max-width: 610px;
  color: #a1a1aa;
  line-height: 1.7;
  margin: 0;
}
.orb {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: #202023;
  border: 1px solid #3a3a3f;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: var(--shadow);
  transform: rotate(8deg);
}
.orb span {
  position: absolute;
  border: 1.5px solid var(--green);
  border-radius: 50%;
}
.orb span:nth-child(1) {
  width: 43px;
  height: 43px;
}
.orb span:nth-child(2) {
  width: 27px;
  height: 27px;
}
.orb span:nth-child(3) {
  width: 8px;
  height: 8px;
  background: var(--green);
}
.coverage-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 29px;
}
.coverage-list span {
  background: #202023;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  color: #c4c4ca;
}
.hidden {
  display: none !important;
}
.loading-state {
  padding: 70px 0;
}
.loading-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.loading-state .eyebrow,
.results .eyebrow {
  color: #3ecf8e;
}
.loading-state h2,
.section-heading h2 {
  font-family: Inter, sans-serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 8px 0 0;
}
.progress-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 6px solid var(--green-2);
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 14px;
  font-weight: 750;
}
.progress-track {
  height: 3px;
  background: #303036;
  margin: 36px 0 17px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width 0.7s ease;
}
.loading-state > p {
  color: var(--muted);
  font-size: 14px;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 55px;
}
.skeleton-grid div {
  height: 170px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(90deg, #202023 25%, #29292e 50%, #202023 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}
.results {
  padding-top: 45px;
}
.hero-card {
  background: #1f1f22;
  color: #fff;
  border-radius: 22px;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: var(--shadow);
}
.hero-card .eyebrow {
  color: #3ecf8e;
}
.hero-card h2 {
  font-family: Inter, sans-serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 9px 0;
}
.hero-card p {
  color: #b7b7bf;
  margin: 0;
  line-height: 1.6;
  max-width: 680px;
}
.coverage-score {
  width: 106px;
  height: 106px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.coverage-score strong {
  font-family: Inter, sans-serif;
  font-size: 30px;
}
.coverage-score span {
  font-size: 14px;
  color: #9eb3a6;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 14px 0 12px;
}
.metric {
  background: #202023;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
}
.metric strong {
  display: block;
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 500;
}
.metric span {
  font-size: 14px;
  color: var(--muted);
}
.analysis-note {
  font-size: 14px;
  line-height: 1.5;
  border-radius: 10px;
  padding: 11px 13px;
  margin: 0 0 48px;
}
.analysis-note.ai-active {
  color: #9de8c0;
  background: #173d2d;
  border: 1px solid #245e46;
}
.analysis-note.ai-fallback {
  color: #f4d29b;
  background: #3c2d1a;
  border: 1px solid #705126;
}
.decision-card {
  background: #173426;
  color: #f2f7f3;
  border-radius: 18px;
  padding: 25px;
  margin: -26px 0 48px;
  box-shadow: 0 18px 45px rgba(21, 52, 38, 0.14);
}
.decision-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.decision-heading .eyebrow {
  color: #9bd0ad;
}
.decision-heading h2 {
  font-family: Inter, sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 8px 0 0;
  max-width: 720px;
}
.decision-confidence {
  color: #163724;
  background: #bfe4c9;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.decision-recommendation {
  max-width: 780px;
  color: #d9eadf;
  line-height: 1.6;
  margin: 17px 0 23px;
}
.decision-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.decision-columns h3 {
  color: #9bd0ad;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.decision-columns ul {
  padding: 0 0 0 16px;
  margin: 0;
  color: #e4f0e7;
  font-size: 14px;
  line-height: 1.55;
}
.decision-columns li + li {
  margin-top: 7px;
}
.decision-columns .empty-list {
  color: #9eb3a6;
  list-style: none;
  margin-left: -16px;
}
.decision-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 21px;
}
.decision-evidence a {
  color: #d9eadf;
  border: 1px solid rgba(217, 234, 223, 0.2);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  max-width: 100%;
}
.decision-evidence a:hover {
  border-color: #9bd0ad;
  color: #fff;
}
.memory-status {
  border-top: 1px solid rgba(217, 234, 223, 0.16);
  color: #a9c2b1;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 23px;
  padding-top: 13px;
}
.knowledge-base {
  margin: 0 0 52px;
}
.knowledge-base .section-heading {
  margin-bottom: 16px;
}
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.knowledge-grid article {
  min-width: 0;
  background: #202023;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px;
}
.knowledge-grid article:first-child {
  grid-column: span 2;
  background: #173d2d;
  border-color: #245e46;
}
.knowledge-grid span {
  color: var(--green);
  font-size: 14px;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.knowledge-grid p {
  color: #d0d0d5;
  font-size: 14px;
  line-height: 1.6;
  margin: 11px 0 0;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 0 18px;
}
.quiet-button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #202023;
  color: #ededed;
  padding: 9px 12px;
  cursor: pointer;
}
.findings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.finding {
  background: #202023;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 21px;
  min-width: 0;
}
.finding-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.finding h3 {
  font-size: 16px;
  margin: 0;
}
.badge {
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 780;
  padding: 5px 7px;
  border-radius: 999px;
}
.badge.fact {
  color: #9de8c0;
  background: #173d2d;
}
.badge.inference {
  color: #a8c9e5;
  background: #243647;
}
.badge.unknown {
  color: #f4d29b;
  background: #3c2d1a;
}
.finding-value {
  font-family: Inter, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  margin: 17px 0 14px;
}
.finding-note {
  font-size: 14px;
  color: #a1a1aa;
  line-height: 1.5;
  margin: 0 0 13px;
}
.evidence-link {
  display: block;
  border-top: 1px solid #2e2e33;
  padding-top: 12px;
  color: #c4c4ca;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}
.evidence-link:hover {
  color: var(--green);
}
.evidence-link span {
  display: block;
  color: #8b8b93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}
.sources-heading {
  margin-top: 54px;
}
.sources {
  display: grid;
  gap: 8px;
}
.source {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: #202023;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}
.source-num {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #173d2d;
  color: #9de8c0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 750;
}
.source strong,
.source span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source strong {
  font-size: 14px;
}
.source > span {
  font-size: 14px;
  color: #a1a1aa;
  max-width: 34vw;
}
.boundary {
  font-size: 14px;
  color: #8b8b93;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 28px;
}
.error-state {
  min-height: calc(100vh - 104px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #3d2520;
  color: #f0a58e;
  display: grid;
  place-items: center;
  font-family: Inter, sans-serif;
  font-size: 26px;
  margin-bottom: 22px;
}
.error-state .eyebrow {
  color: #f0a58e;
}
.error-state h2 {
  font-family: Inter, sans-serif;
  font-size: 38px;
  font-weight: 500;
  margin: 12px 0;
}
.error-state p {
  max-width: 500px;
  color: var(--muted);
  line-height: 1.6;
}
.error-state button {
  border: 0;
  border-radius: 10px;
  background: #3ecf8e;
  color: #10251b;
  padding: 11px 16px;
  cursor: pointer;
  margin-top: 9px;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 850px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 15px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
  }
  .brand {
    padding: 0;
  }
  .workspace-label {
    display: none;
  }
  .agents {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    order: 3;
  }
  .agent {
    grid-template-columns: 26px 1fr;
    padding: 7px;
  }
  .agent-state {
    display: none;
  }
  .url-form {
    grid-column: 2;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .url-form label,
  .url-form > span {
    display: none;
  }
  .main {
    grid-column: 1;
    padding: 0 18px 50px;
  }
  .topbar {
    height: 86px;
  }
  .empty-state {
    min-height: calc(100vh - 235px);
  }
  .findings {
    grid-template-columns: 1fr;
  }
  .decision-columns {
    grid-template-columns: 1fr;
  }
  .knowledge-grid {
    grid-template-columns: 1fr;
  }
  .knowledge-grid article:first-child {
    grid-column: auto;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .sidebar {
    grid-template-columns: auto 1fr;
  }
  .brand > span:last-child {
    display: none;
  }
  .agents {
    display: flex;
    flex-direction: row;
    overflow: auto;
    margin: 0 -15px;
    padding: 0 15px;
  }
  .agent {
    flex: 0 0 auto;
  }
  .agent span:nth-child(2) {
    display: none;
  }
  .topbar {
    height: 76px;
  }
  .topbar h1 {
    font-size: 17px;
  }
  .empty-state {
    padding: 45px 0;
  }
  .empty-state h2 {
    font-size: 39px;
  }
  .coverage-list {
    max-width: 330px;
  }
  .hero-card {
    padding: 26px 23px;
    align-items: flex-start;
  }
  .hero-card h2 {
    font-size: 34px;
  }
  .coverage-score {
    width: 78px;
    height: 78px;
  }
  .coverage-score strong {
    font-size: 22px;
  }
  .hero-card p {
    font-size: 14px;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 14px;
  }
  .loading-state {
    padding: 46px 0;
  }
  .loading-state h2,
  .section-heading h2 {
    font-size: 30px;
  }
  .skeleton-grid {
    grid-template-columns: 1fr;
  }
  .source > span {
    display: none;
  }
}
