.workspace {
  --workspace-pad: clamp(48px, 8vh, 104px);
  min-height: calc(100svh - var(--sticky-clearance));
  padding: var(--workspace-pad) 0;
  background: var(--wash);
}
.workspace > .shell {
  min-height: calc(100svh - var(--sticky-clearance) - var(--workspace-pad) - var(--workspace-pad));
  display: grid;
  align-items: center;
}
.idle-state,
.loading-state,
.request-error {
  width: min(1040px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.idle-state {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 58px;
  padding: 42px;
}
.idle-preview {
  padding: 28px;
  border: 1px solid #242d26;
  border-radius: 18px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}
.preview-top,
.preview-company {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.preview-top {
  color: #aebbb1;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.preview-status {
  padding: 6px 9px;
  border: 1px solid rgba(64, 255, 119, .3);
  border-radius: 999px;
  color: var(--green);
  letter-spacing: 0;
  text-transform: none;
}
.preview-company {
  margin-top: 24px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line-dark);
}
.preview-company strong {
  color: var(--green);
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.04em;
}
.preview-company span {
  color: #d4ddd6;
  font-size: 14px;
}
.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 21px 0;
  background: var(--line-dark);
}
.preview-metrics div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 14px 9px;
  background: var(--ink);
}
.preview-metrics b {
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
}
.preview-metrics span {
  color: #9eaba1;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.preview-line {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  color: #dce4de;
  font-size: 14px;
}
.preview-line i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}
.idle-copy h2,
.loading-copy h2,
.request-error h2 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.idle-copy .eyebrow { margin-bottom: 17px; }
.idle-copy > p:not(.eyebrow),
.loading-copy > p:not(.loading-label),
.request-error p {
  margin-top: 17px;
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
}
.idle-benefits {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.idle-benefits li {
  position: relative;
  padding-left: 27px;
  color: var(--body-strong);
  font-size: 14px;
  line-height: 1.55;
}
.idle-benefits li::before {
  position: absolute;
  left: 0;
  color: var(--green-dark);
  content: "✓";
  font-weight: 950;
}

.loading-state {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 46px;
}
.loading-label {
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.scanner {
  position: relative;
  justify-self: center;
  width: 170px;
  height: 170px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #cbd7ce;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, transparent 0 21px, rgba(8, 11, 9, .08) 22px 23px);
}
.scanner::before,
.scanner::after {
  position: absolute;
  background: rgba(8, 11, 9, .12);
  content: "";
}
.scanner::before {
  left: 50%;
  width: 1px;
  height: 100%;
}
.scanner::after {
  top: 50%;
  width: 100%;
  height: 1px;
}
.scanner span {
  position: absolute;
  inset: 50% 50% 0 0;
  background: conic-gradient(from 90deg, rgba(64, 255, 119, .9), transparent 42deg);
  transform-origin: bottom right;
  animation: scan 1.7s linear infinite;
}
.scanner b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 40px;
  font-weight: 950;
}
@keyframes scan { to { transform: rotate(360deg); } }
.loading-steps {
  display: flex;
  gap: 7px;
  margin-top: 24px;
}
.loading-steps span {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: #dce4de;
}
.loading-steps span.is-active { background: var(--green-dark); }

.request-error {
  padding: 46px;
  border-color: #e6c8cb;
  background: var(--red-soft);
}
.error-code {
  display: block;
  margin-bottom: 11px;
  color: var(--red);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.request-error button,
.result-actions button {
  min-height: 52px;
  margin-top: 22px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 950;
  transition: transform .16s ease, background .16s ease;
}
.request-error button:hover,
.result-actions button:hover {
  background: #202820;
  transform: translateY(-1px);
}

.result {
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  padding: 36px 40px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.result-eyebrow { margin-bottom: 15px; }
.ticker-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ticker-lockup > span {
  min-width: 104px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--green);
  font-family: var(--mono);
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -.04em;
  text-align: center;
}
.ticker-lockup h2 {
  font-size: 32px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.ticker-lockup p {
  margin-top: 5px;
  color: var(--body);
  font-family: var(--mono);
  font-size: 14px;
}
.result-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--body);
  font-size: 14px;
}
.status-badge,
.mode-badge {
  display: inline-flex;
  max-width: 300px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  text-align: right;
}
.status-badge {
  border: 1px solid #b9dec7;
  background: var(--green-soft);
  color: #075f35;
}
.mode-badge {
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--body);
}
.alert-boundary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  border-bottom: 1px solid var(--line);
  background: var(--green-soft);
  color: var(--body);
  font-size: 14px;
}
.alert-boundary strong { color: var(--ink); }

.executive-summary {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}
.summary-main {
  padding: 38px 40px;
  background: var(--wash);
}
.summary-main h3 {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -.05em;
}
.summary-main > p:not(.summary-kicker) {
  max-width: 700px;
  margin-top: 17px;
  color: var(--body-strong);
  font-size: 16px;
  line-height: 1.65;
}
.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.summary-tags span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--body-strong);
  font-size: 14px;
  font-weight: 800;
}
.summary-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.metric-card {
  min-height: 130px;
  display: grid;
  align-content: center;
  padding: 23px;
  background: var(--paper);
}
.metric-card strong {
  font-size: 33px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.04em;
}
.metric-card span {
  margin-top: 8px;
  color: var(--body-strong);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.metric-card small {
  margin-top: 5px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.4;
}

.evidence-map,
.takeaways,
.detail-area {
  padding: 38px 40px;
  border-bottom: 1px solid var(--line);
}
.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-heading-row h3 {
  max-width: 760px;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.coverage-label {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--wash);
  color: var(--body-strong);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}
.evidence-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.evidence-lane {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--wash);
}
.evidence-lane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.evidence-lane strong {
  font-size: 17px;
  font-weight: 950;
  line-height: 1.25;
}
.evidence-lane p {
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
}
.lane-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--body);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lane-state::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #aab5ac;
  content: "";
}
.evidence-lane.has-records {
  border-color: #bee0c9;
  background: var(--green-soft);
}
.evidence-lane.has-records .lane-state { color: var(--green-dark); }
.evidence-lane.has-records .lane-state::before {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(64, 255, 119, .16);
}

.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.takeaway-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.takeaway-card > span {
  display: block;
  margin-bottom: 17px;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.takeaway-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.takeaway-card li {
  position: relative;
  padding-left: 18px;
  color: var(--body-strong);
  font-size: 14px;
  line-height: 1.55;
}
.takeaway-card li + li { margin-top: 12px; }
.takeaway-card li::before {
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
}
.takeaway-card--signal {
  border-color: #bee0c9;
  background: var(--green-soft);
}
.takeaway-card--signal > span { color: var(--green-dark); }
.takeaway-card--signal li::before { background: #17a65e; }
.takeaway-card--caution {
  border-color: #ead3a9;
  background: var(--amber-soft);
}
.takeaway-card--caution > span { color: var(--amber); }
.takeaway-card--caution li::before { background: var(--amber); }
.takeaway-card--missing { background: var(--wash); }
.takeaway-card--missing > span { color: var(--body); }
.takeaway-card--missing li::before { background: #7f8b82; }

.text-button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.report-sections {
  display: grid;
  gap: 12px;
}
.report-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.report-section summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 19px 21px;
  cursor: pointer;
  list-style: none;
}
.report-section summary::-webkit-details-marker { display: none; }
.section-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--green);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 900;
}
.section-summary-copy { min-width: 0; }
.section-summary-copy h4,
.report-section > h3 {
  font-size: 20px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.section-summary-copy p {
  margin-top: 4px;
  color: var(--body);
  font-size: 14px;
}
.section-chevron {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--body);
  font-size: 0;
  line-height: 0;
  transition: border-color .2s ease, color .2s ease;
}
.section-chevron::before,
.section-chevron::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: opacity .2s ease, transform .2s ease;
}
.section-chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.report-section[open] .section-chevron::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}
.section-body {
  padding: 0 24px 25px 78px;
  border-top: 1px solid #edf2ee;
}
.section-body > p,
.report-section > p {
  margin-top: 19px;
  color: var(--body-strong);
  font-size: 14px;
  line-height: 1.65;
}
.section-body ul,
.report-section > ul {
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
}
.section-body li,
.report-section > ul:not(.source-list) li {
  position: relative;
  padding: 13px 15px 13px 23px;
  border-left: 2px solid var(--line);
  color: var(--body-strong);
  font-size: 14px;
  line-height: 1.58;
}
.section-body li + li,
.report-section > ul:not(.source-list) li + li {
  margin-top: 4px;
}
.section-body li::before,
.report-section > ul:not(.source-list) li::before {
  position: absolute;
  left: -5px;
  top: 20px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--green-dark);
  content: "";
}
.report-section:not(details) { padding: 22px; }
.report-section:not(details) > h3 { margin: 0; }
.report-section.sources {
  border-color: #252d27;
  background: var(--ink-soft);
  color: var(--white);
}
.report-section.sources summary,
.report-section.sources > h3 { color: var(--white); }
.report-section.sources .section-summary-copy p { color: #aebbb1; }
.report-section.sources .section-body { border-color: var(--line-dark); }
.source-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 0 !important;
  padding: 0;
  list-style: none;
}
.source-list li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.source-list li::before { display: none; }
.source-list a {
  min-height: 100%;
  display: grid;
  gap: 4px;
  padding: 14px 15px;
  border: 1px solid #364138;
  border-radius: 10px;
  color: #edf3ee;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}
.source-list a:hover,
.source-list a:focus-visible {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}
.source-domain {
  color: #91a096;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
