:root {
  --ink: #20302e;
  --muted: #66716e;
  --line: #dce3dd;
  --paper: #f5f7f2;
  --white: #fff;
  --accent: #286052;
  --radius: 14px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #438676;
  outline-offset: 3px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
}
h2 {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.1rem;
}
.topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 16px max(28px, calc((100vw - 1320px) / 2));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0.03em;
}
.brand-mark {
  background: var(--accent);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  letter-spacing: -0.08em;
}
.brand-sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-weight: 450;
  margin-top: 2px;
}
.topbar nav a {
  font-size: 14px;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 2px solid var(--accent);
}
.connection {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.connection:before {
  content: "";
  width: 7px;
  height: 7px;
  background: #9baba1;
  border-radius: 50%;
}
.connection.ready:before {
  background: #458060;
}
.connection.error:before {
  background: #bd634e;
}
main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 42px 28px 70px;
}
.page-heading,
.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}
.lede {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  font-size: 13px;
  white-space: nowrap;
}
.secondary:hover:not(:disabled) {
  background: #edf3ee;
  border-color: #b4c6bb;
}
.workflow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 21px 0 27px;
  color: var(--muted);
  font-size: 12px;
  flex-wrap: wrap;
}
.workflow span:nth-child(even) {
  color: #a9b5ac;
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.area-card {
  --area-color: #426b5c;
  --area-tint: #e9f0e7;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.area-head {
  padding: 24px 24px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 4px solid var(--area-color);
}
.area-head h2 {
  font-size: 23px;
}
.area-category {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.code-tag {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  border-radius: 6px;
  padding: 6px 8px;
  background: var(--area-tint);
  color: var(--area-color);
}
.area-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 24px 20px;
}
.stat strong {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.coverage {
  margin: 0 24px 20px;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.coverage strong {
  display: block;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.coverage span {
  font-size: 11px;
  color: var(--muted);
}
.task-list {
  padding: 15px 12px 12px;
  background: #fbfcfa;
  border-top: 1px solid var(--line);
}
.task-list-header {
  padding: 0 12px 8px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.task-row {
  width: 100%;
  display: block;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
}
.task-row:hover {
  background: var(--area-tint);
}
.task-row.selected {
  background: var(--area-tint);
  border-color: var(--area-color);
}
.task-top {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
}
.task-code {
  font-size: 14px;
  font-weight: 750;
}
.task-numbers {
  margin-left: auto;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.task-arrow {
  color: var(--area-color);
  margin-left: 7px;
}
.bar-track {
  height: 4px;
  background: #e8ede7;
  border-radius: 5px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--area-color);
  border-radius: 5px;
}
.task-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.footnote {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin-top: 17px;
  max-width: 900px;
}
.task-detail {
  margin-top: 36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  scroll-margin-top: 20px;
}
.detail-heading {
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.quiet {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.detail-heading .quiet {
  margin-top: 7px;
}
.variant-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
}
select,
input[type="search"] {
  border: 1px solid #cdd7cf;
  border-radius: 7px;
  padding: 9px 12px;
  background: white;
  color: var(--ink);
}
select {
  max-width: 100%;
}
.descriptions {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
}
.descriptions > summary {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  background: #f8faf6;
}
.variant-description {
  padding: 18px;
  border-top: 1px solid var(--line);
}
.variant-description h3 {
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--accent);
}
.description-parts {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}
.description-section h4 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.text-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  font-size: 13px;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 16px;
}
.search-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 650;
  min-width: 250px;
}
.checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  padding-bottom: 10px;
}
.checkbox input {
  accent-color: var(--accent);
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  background: #f7f9f5;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 13px 14px;
  white-space: nowrap;
}
td {
  padding: 13px 14px;
  border-top: 1px solid #e7ece5;
  vertical-align: top;
}
tr.selected td {
  background: #edf4ed;
}
tbody tr:hover {
  background: #fafcf8;
}
.student-button {
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
  overflow-wrap: anywhere;
  max-width: 180px;
}
.response-id {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  max-width: 260px;
  overflow-wrap: anywhere;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.badge {
  font-size: 10px;
  display: inline-block;
  border-radius: 4px;
  padding: 3px 6px;
  background: #eef3eb;
  color: #436247;
  white-space: nowrap;
}
.badge.missing {
  color: #7a837c;
  background: #f0f1ee;
}
.badge.flag {
  background: #fff0d9;
  color: #8b612c;
  white-space: normal;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  gap: 10px;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.notice {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0;
  color: var(--muted);
  background: #fafcf8;
}
.notice.error {
  background: #fff3ed;
  border-color: #efcfbf;
  color: #9b4c34;
}
.notice button {
  margin-left: 12px;
}
.response-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--line);
  width: min(660px, 90vw);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100vw;
  padding: 0;
  color: var(--ink);
  box-shadow: -12px 0 50px #142d2420;
  background: white;
}
.response-drawer::backdrop {
  background: #13231f55;
}
.drawer-head {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.drawer-head h2 {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.drawer-head .eyebrow {
  margin-bottom: 6px;
}
.close-button {
  font-size: 28px;
  line-height: 1;
  background: #f2f5ef;
  border-radius: 8px;
  padding: 5px 12px;
}
.drawer-body {
  padding: 24px 26px;
}
.drawer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.drawer-meta dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.drawer-meta dd {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.drawer-section {
  margin-top: 25px;
}
.drawer-section h3 {
  margin-bottom: 12px;
  font-size: 14px;
}
.response-text {
  background: #f7f9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.drawer-section details {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
}
.drawer-section summary {
  padding: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.drawer-section details .text-block {
  padding: 0 12px 14px;
}
.rating-dimension {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 12px;
}
.rating-dimension h4 {
  font-size: 12px;
  margin: 0 0 9px;
  overflow-wrap: anywhere;
}
.rating-value {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 12px;
}
.rating-value span {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.rating-value strong {
  font-weight: 600;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: right;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
body.drawer-open {
  overflow: hidden;
}
@media (min-width: 1500px) {
  main {
    padding-top: 52px;
  }
}
@media (max-width: 950px) {
  .area-grid {
    gap: 12px;
  }
  .area-head {
    padding: 18px 16px;
  }
  .area-stats {
    padding: 0 16px 16px;
  }
  .coverage {
    margin: 0 16px 16px;
  }
  .description-parts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .topbar {
    padding: 14px 18px;
    gap: 24px;
  }
  .brand-sub {
    display: none;
  }
  .connection {
    font-size: 10px;
  }
  .topbar nav a {
    font-size: 12px;
  }
  main {
    padding: 28px 16px 45px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .secondary {
    font-size: 11px;
    padding: 8px;
  }
  .area-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .area-stats {
    grid-template-columns: 1fr 1fr;
  }
  .workflow {
    gap: 9px;
    line-height: 1.7;
  }
  .task-detail {
    padding: 18px;
    margin-top: 24px;
  }
  .detail-heading {
    align-items: flex-start;
  }
  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .checkbox {
    padding-bottom: 0;
  }
  .search-field {
    min-width: 0;
  }
  .list-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .response-drawer {
    width: 100vw;
  }
  .drawer-head,
  .drawer-body {
    padding: 20px;
  }
  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .variant-field {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.12s,
      border-color 0.12s;
  }
}

.response-drawer {
  width: min(1380px, 96vw);
}
.drawer-body > .drawer-meta {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 2fr);
}
.workspace-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-top: 18px;
  margin-bottom: 22px;
}
.workspace-tab {
  padding: 12px 20px;
  background: transparent;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
}
.workspace-tab[aria-selected="true"] {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 650;
}
.workspace-tab:hover {
  background: #f3f7f0;
}
.workspace-panel {
  min-width: 0;
}
.workspace-panel > .drawer-section {
  max-width: 920px;
}
.visit-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.graph-selector {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.graph-selector select {
  max-width: 430px;
  font-size: 11px;
}
.timestamp-notice {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 980px;
  margin-bottom: 18px;
}
.visit-sequence {
  list-style: none;
  margin: 0 0 28px;
  padding: 4px 4px 14px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.visit-sequence > li {
  flex: 0 0 190px;
  position: relative;
}
.visit-sequence > li:not(:last-child):after {
  content: "";
  position: absolute;
  left: 100%;
  top: 29px;
  width: 24px;
  height: 2px;
  background: #c2d1c6;
}
.visit-node {
  width: 100%;
  height: 146px;
  background: #f8faf6;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
}
.visit-node.selected {
  border-color: var(--accent);
  background: #edf5ed;
  box-shadow: 0 0 0 1px var(--accent);
}
.visit-node:hover {
  background: #eef4ea;
}
.visit-number {
  height: 24px;
  min-width: 24px;
  align-self: flex-start;
  border-radius: 50%;
  background: #e0e9df;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 750;
}
.visit-node.selected .visit-number {
  background: var(--accent);
  color: white;
}
.visit-host {
  font-size: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
  line-height: 1.45;
}
.visit-type {
  font-size: 11px;
  color: var(--muted);
}
.visit-node .badges {
  margin-top: auto;
}
.page-viewer {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}
.page-viewer .drawer-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}
.page-viewer .page-url {
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.visit-controls {
  display: flex;
  gap: 8px;
}
.page-viewer .eyebrow {
  margin-bottom: 6px;
}
.viewer-tabs {
  margin-bottom: 12px;
}
.preview-note {
  margin-bottom: 12px;
}
.saved-page {
  display: block;
  width: 100%;
  height: 60vh;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.extracted-text {
  padding: 20px;
  background: #f7f9f4;
  border-radius: 8px;
  max-height: 65vh;
  overflow: auto;
}
.rating-dimension {
  max-width: 920px;
}
.viewer-content {
  min-width: 0;
}
@media (max-width: 720px) {
  .response-drawer {
    width: 100vw;
  }
  .drawer-body > .drawer-meta {
    grid-template-columns: 1fr;
  }
  .workspace-tab {
    padding: 12px 14px;
  }
  .visit-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .graph-selector {
    width: 100%;
  }
  .graph-selector select {
    max-width: calc(100vw - 105px);
  }
  .page-viewer {
    padding: 14px;
  }
  .page-viewer .drawer-meta {
    grid-template-columns: 1fr 1fr;
  }
  .visit-controls .secondary {
    font-size: 11px;
    padding: 9px;
  }
  .saved-page {
    height: 60vh;
    min-height: 320px;
  }
  .visit-sequence > li {
    flex-basis: 170px;
  }
}
.visit-sequence > li {
  display: flex;
}
.visit-node {
  height: auto;
  min-height: 178px;
}
.visit-number {
  flex-shrink: 0;
}
.visit-time {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}
.mapping-notice,
.provenance-notice {
  font-size: 12px;
}
.rating-identifier {
  font-family: ui-monospace, monospace;
  margin-bottom: 10px;
}
.rating-description {
  margin: 10px 0;
}
.rating-scale {
  margin: 8px 0;
}

.visit-node.content-missing {
  background: #eceeef;
  border-color: #bfc5c9;
  color: #50585f;
}
.visit-node.content-missing .visit-number {
  background: #d6dade;
}
.visit-node.content-missing:hover {
  background: #e0e4e7;
}
.visit-node.content-missing.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
.visit-node.content-missing.selected .visit-number {
  background: var(--accent);
  color: white;
}

.node-counts {
  font-size: 11px;
  margin: 7px 0 0;
  line-height: 1.6;
}

main {
  max-width: none;
  padding: 32px 28px 60px;
}
.topbar {
  padding: 16px 28px;
}
.response-drawer,
.response-drawer[open] {
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border-left: 0;
  box-shadow: none;
}
.workspace-panel > .drawer-section,
.rating-dimension,
.timestamp-notice {
  max-width: none;
}
.saved-page {
  height: calc(100dvh - 330px);
  min-height: 420px;
}
.extracted-text {
  max-height: calc(100dvh - 330px);
}
.level-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 650;
}
.level-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-align: center;
}
@media (max-width: 720px) {
  main {
    padding: 24px 14px 40px;
  }
  .topbar {
    padding: 14px 16px;
  }
}

.detail-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.detail-actions a.secondary {
  text-decoration: none;
}
.student-views {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.student-views a {
  font-size: 12.5px;
  padding: 5px 10px;
}
.il-links {
  padding: 10px 24px 18px;
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}
.il-link {
  font-weight: 650;
  color: var(--accent, #1f6f5c);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  background: #fff;
}
.il-link:hover {
  text-decoration: underline;
}
.agg-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 8px;
}
.agg-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #f7faf7;
}
.agg-v {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.agg-l {
  font-size: 12px;
  font-weight: 650;
  margin-top: 2px;
}
.agg-s {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.agg-method {
  margin: 6px 0 4px;
}
.agg-group {
  margin: 22px 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent, #1f6f5c);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
@media (max-width: 600px) {
  .agg-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.rating-original {
  margin: 4px 0 8px;
}
.rating-original summary {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.rating-original p {
  margin: 6px 0 0;
  font-size: 12px;
}
.topbar nav {
  display: flex;
  gap: 22px;
}
.topbar nav a:not(.nav-active) {
  border-bottom-color: transparent;
  color: var(--muted);
}
.topbar nav a:not(.nav-active):hover {
  border-bottom-color: var(--line);
  color: var(--ink);
}

.topbar {
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar nav a {
  padding: 6px 0;
}
main {
  padding: 20px 28px 24px;
}
@media (min-width: 1500px) {
  main {
    padding-top: 22px;
  }
}
h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.eyebrow {
  margin-bottom: 4px;
}
.lede {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
}
.workflow {
  padding: 8px 0 12px;
}
.area-grid {
  gap: 16px;
}
.area-head {
  padding: 14px 20px 8px;
}
.area-head h2 {
  font-size: 20px;
}
.area-category {
  margin-top: 2px;
}
.area-stats {
  padding: 0 20px 8px;
  gap: 10px;
}
.stat strong {
  font-size: 21px;
}
.coverage {
  margin: 0 20px 10px;
  padding-top: 8px;
  gap: 8px;
}
.task-list {
  padding: 8px 10px 6px;
}
.task-list-header {
  padding: 0 10px 4px;
}
.task-row {
  padding: 6px 10px;
}
.task-top {
  margin-bottom: 4px;
}
.task-meta {
  margin-top: 3px;
}
.footnote {
  margin-top: 10px;
}

@media (max-width: 700px) {
  .topbar nav {
    display: flex;
    flex-wrap: wrap;
    column-gap: 14px;
    row-gap: 0;
    max-width: 100%;
  }
  .topbar nav a {
    padding: 6px 0;
  }
}

.subnav {
  display: flex;
  gap: 4px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.subnav a {
  padding: 9px 14px;
  font-size: 12.5px;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.subnav a:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}
.subnav a.selected {
  color: var(--accent);
  font-weight: 650;
  border-bottom-color: var(--accent);
}
.cb-page .subnav {
  position: sticky;
  top: 60px;
  z-index: 4;
}
@media (max-width: 900px) {
  .cb-page .subnav {
    position: static;
  }
}
.sec-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.sec-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
}
.sec-card:hover {
  border-color: #b4c6bb;
  background: #f6faf6;
}
.sec-card b {
  font-size: 15px;
}
.sec-card span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.who {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}
.who a {
  font-size: 12.5px;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.who a.nav-active {
  border-bottom-color: var(--accent);
  color: var(--ink);
}
.who button {
  padding: 5px 10px;
  font-size: 12px;
}

.metric-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: 0.4rem 0 0.6rem;
  font-size: 0.9rem;
}
.metric-filters select {
  max-width: 28rem;
}
.metric-filters input[type="number"] {
  width: 6rem;
}
.chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--chip-bg, #e8eef7);
  font-size: 0.85rem;
}
.chip-remove {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.1rem;
}
.rs-analysis .rs-figs .rs-fig img {
  max-height: 620px;
  object-fit: contain;
}

th {
  padding: 8px 10px;
}
td {
  padding: 6px 10px;
}
.lede,
main > p {
  max-width: 170ch;
}

html.embedded header.topbar,
html.embedded nav.subnav,
html.embedded .sources-toolbar #back,
html.embedded .sources-toolbar .toolbar-link,
html.embedded .align-bar #back,
html.embedded .align-bar #timelineLink,
html.embedded .align-bar #landscapeLink,
html.embedded .align-bar h1,
html.embedded .tl-bar #back,
html.embedded .tl-bar #alignment,
html.embedded .tl-bar #landscapeLink,
html.embedded .tl-bar h1,
html.embedded .rg-bar > a.secondary,
html.embedded .rg-bar #picker,
html.embedded .rg-bar #views,
html.embedded .rg-bar h1 {
  display: none !important;
}

h1 {
  font-size: clamp(1.3rem, 1.7vw, 1.65rem);
}
.eyebrow {
  font-size: 10px;
  margin-bottom: 2px;
}
.lede {
  margin-top: 3px;
  font-size: 13.5px;
}

.rs-figs .rs-fig img {
  max-height: 85vh;
}

.sec-card .sec-facts {
  margin-top: 2px;
  font-size: 12px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.ocr-modes {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.ocr-modes button[aria-pressed="true"] {
  background: #edf3ee;
  border-color: #438676;
}
.ocr-line {
  margin: 0 0 4px;
}
.ocr-del {
  background: #fbe3dc;
  color: #9b3b22;
  text-decoration: line-through;
}
.ocr-ins {
  background: #dcf0e0;
  color: #1d6435;
  text-decoration: none;
}
.ocr-dropped {
  opacity: 0.7;
}
.ocr-tag {
  font-size: 11px;
  color: var(--muted);
}
.ocr-panel details {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
}
.ocr-panel summary {
  padding: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.ocr-panel details .text-block {
  padding: 0 12px 14px;
}
.side-by-side {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 3fr);
  gap: 12px;
}
.side-pane {
  min-width: 0;
}
.side-pane .saved-page {
  width: 100%;
}
.side-pane .extracted-text {
  max-height: calc(100dvh - 330px);
}
@media (max-width: 900px) {
  .side-by-side {
    grid-template-columns: minmax(0, 1fr);
  }
}
.visit-node.content-missing {
  background: repeating-linear-gradient(135deg, #eceeeb 0 6px, #e3e6e2 6px 12px);
  border: 1px dashed #a9b1ab;
  color: #7c857f;
}
.visit-node.content-missing .visit-number {
  background: #d3d8d4;
  color: #6b736d;
}
.visit-node.content-missing .visit-host {
  font-weight: 500;
}
.visit-node.content-missing.selected {
  border: 2px dashed var(--accent);
  box-shadow: none;
}
.workspace-tab:disabled,
.workspace-tab:disabled:hover {
  opacity: 1;
  color: #b9c0bb;
  background: repeating-linear-gradient(135deg, transparent 0 5px, #f1f3f0 5px 10px);
  text-decoration: line-through;
  text-decoration-color: #c9cfca;
  cursor: not-allowed;
  border-bottom-color: transparent;
}
.visit-node.visit-doc {
  background: #eef6ec;
  border-left: 6px solid #74c476;
}
.visit-node.visit-doc .visit-number {
  background: #74c476;
  color: #10351a;
}
.visit-node.visit-serp {
  background: #edf4f9;
  border-left: 6px solid #9ecae1;
}
.visit-node.visit-serp .visit-number {
  background: #9ecae1;
  color: #10324a;
}
.visit-node.visit-out {
  background: #fff;
  border-left: 6px solid #bdbdbd;
  color: #7c857f;
}
.visit-node.visit-out .visit-number {
  background: #bdbdbd;
  color: #3d423e;
}
.visit-node.visit-doc.content-missing {
  border-left: 6px solid #74c476;
}
.visit-node.visit-serp.content-missing {
  border-left: 6px solid #9ecae1;
}
.visit-node.visit-out.content-missing {
  border-left: 6px solid #bdbdbd;
}
.visit-node.selected.visit-doc,
.visit-node.selected.visit-serp,
.visit-node.selected.visit-out {
  box-shadow: 0 0 0 2px var(--accent);
}
.visit-query {
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.visit-query mark {
  background: none;
  color: inherit;
  padding: 0;
  font-weight: 700;
}
.page-query mark {
  background: #ffe680;
  color: #2b2b2b;
  border-radius: 3px;
  padding: 1px 4px;
  font-weight: 650;
}
.visit-same {
  font-size: 10px;
  color: var(--muted);
}
.page-query {
  font-size: 14px;
  margin: 6px 0 4px;
}
.page-same {
  font-size: 12px;
  color: #6b5a00;
  margin: 0 0 6px;
}

.il-grid {
  display: grid;
  gap: 6px 6px;
  align-items: baseline;
  padding: 10px 24px 18px;
  font-size: 12.5px;
}
.il-grid .il-label {
  padding-right: 6px;
  white-space: nowrap;
}
.il-grid .il-cell {
  min-width: 0;
}
.il-grid a.il-label {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.rs-sep {
  border-left: 2px solid #9aa3ad !important;
  padding-left: 10px !important;
}
.rs-head {
  white-space: pre-line;
  vertical-align: bottom;
}
.gn-main .table-wrap td.rs-label {
  white-space: normal;
  min-width: 170px;
  max-width: 340px;
}
.gn-main .table-wrap td.rs-best {
  font-weight: 750;
  color: var(--ink);
  background: #dcefd9;
}
.gn-main td.rs-cell {
  white-space: normal;
}

.rating-reason {
  margin: 2px 0 10px;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.rating-agreement {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 8px;
}
.rating-agreement h4 {
  margin: 0 0 6px;
  font-size: 13px;
}
.rating-agreement-pair {
  margin: 4px 0 2px;
  font-size: 12px;
  font-weight: 600;
}
.rating-agreement-list {
  margin: 0 0 6px;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.5;
}

.rating-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 12px;
  margin: 10px 0;
}
.rating-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--white);
  min-width: 0;
}
.rating-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.rating-rater {
  font-weight: 650;
  font-size: 13px;
}
.rating-score {
  font-weight: 700;
  font-size: 12.5px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--white));
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 30%, var(--white)) calc(var(--f, 0) * 100%),
    transparent 0
  );
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rating-score.none {
  border-style: dashed;
  background: none;
  color: var(--muted);
}
.rating-reason {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
}
.rating-reason-p {
  margin: 6px 0;
}
.rating-reason-list {
  margin: 4px 0 8px;
  padding-left: 22px;
}
.rating-reason-list li {
  margin: 3px 0;
}
.rating-reason strong {
  font-weight: 650;
  color: var(--accent);
}
.rating-mark {
  display: inline-block;
  font-weight: 700;
  padding: 0 7px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 18%, var(--white));
  color: var(--ink);
}
.rating-more > summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 12px;
  margin: 4px 0;
  list-style-position: inside;
}
.rating-more {
  border: 0;
  padding: 0;
  margin: 4px 0 0;
  background: none;
  box-shadow: none;
}
.rating-more[open] > summary {
  margin-bottom: 2px;
}
.drawer-section details.rating-more {
  border: 0;
  border-radius: 0;
  margin-top: 4px;
}
