:root {
  --ink: #17201e;
  --muted: #65716c;
  --line: #dce1da;
  --paper: #f4f5ef;
  --accent: #bbef77;
  --green: #35664b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #518b33;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  height: 120px;
  background: #000;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}
.brand {
  display: flex;
  align-items: center;
  width: 360px;
  max-width: 100%;
  flex-shrink: 0;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.environment {
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 1.6px;
  color: #bdc7b9;
  display: flex;
  align-items: center;
  gap: 9px;
}
.environment i,
.status i {
  width: 6px;
  height: 6px;
  background: #76a946;
  border-radius: 50%;
}
.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}
.sidebar {
  padding: 35px 22px;
  min-height: calc(100vh - 120px);
  border-right: 1px solid var(--line);
  position: relative;
}
.eyebrow {
  font:
    10px ui-monospace,
    SFMono-Regular,
    monospace;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin: 0 0 13px;
}
.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #e4e9dc;
  padding: 12px 13px;
  font-weight: 600;
  border-radius: 3px;
}
.nav-count {
  font:
    10px ui-monospace,
    monospace;
  margin-left: auto;
  background: #f7f9f0;
  padding: 2px 6px;
}
.sidebar-note {
  margin: 105px 13px 0;
}
.tiny-mark {
  font-size: 32px;
  color: #899984;
}
.sidebar-note p {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.sidebar-note small,
.scope-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}
.scope-note {
  margin: 90px 13px 20px;
}
main {
  padding: 40px 46px 20px;
  max-width: 1540px;
  width: 100%;
  margin: auto;
}
.heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 33px;
  gap: 20px;
}
h1 {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 550;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin: 0;
}
.intro {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.view-tag {
  font:
    10px ui-monospace,
    monospace;
  border-bottom: 1px solid #bcc8b6;
  padding: 8px 0;
  letter-spacing: 1px;
  white-space: nowrap;
}
.view-tag span {
  margin-left: 20px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.toolbar > label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #bac5b8;
  padding: 9px 24px 9px 2px;
  max-width: 285px;
  color: var(--ink);
}
.toolbar form {
  display: flex;
  max-width: 410px;
  flex: 1;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line);
}
input {
  border: 0;
  background: none;
  min-width: 0;
  flex: 1;
  padding: 11px 12px;
  font-size: 11px;
  color: var(--ink);
}
.toolbar button {
  border: 0;
  background: none;
  font-size: 11px;
  padding: 0 14px;
  font-weight: 600;
}
.toolbar button span {
  margin-left: 13px;
}
.notice {
  padding: 18px 0;
  color: var(--muted);
}
.notice.error {
  color: #943b2e;
}
.identity-card {
  background: var(--ink);
  color: #fff;
  border-radius: 5px;
  padding: 30px 32px 24px;
  position: relative;
  overflow: hidden;
}
.identity-card:after {
  content: '';
  position: absolute;
  right: -60px;
  top: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid #37463a;
  border-radius: 50%;
  pointer-events: none;
}
.identity-card .eyebrow {
  color: #abc2ae;
}
.identity-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
h2 {
  font-size: 29px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 0;
}
.status {
  font:
    9px ui-monospace,
    monospace;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: 1px;
  background: #26392b;
  border: 1px solid #496041;
  padding: 7px 10px;
  color: #d4eac2;
}
.rv-number {
  margin-top: 29px;
  background: #ffffff07;
  border: 1px solid #495248;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 13px 15px;
  position: relative;
  z-index: 1;
}
.rv-number > span {
  font:
    9px ui-monospace,
    monospace;
  color: #92a28f;
  letter-spacing: 1.4px;
}
.rv-number strong {
  color: var(--accent);
  font:
    clamp(11px, 1.2vw, 16px) ui-monospace,
    monospace;
  letter-spacing: 0.4px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.rv-number button {
  margin-left: auto;
  color: #bbccba;
  background: transparent;
  border: 1px solid #52664f;
  font:
    10px ui-monospace,
    monospace;
  padding: 5px 9px;
}
.identity-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  margin-top: 26px;
}
.identity-grid span {
  font-size: 10px;
  display: block;
  color: #9aa698;
}
.identity-grid strong {
  font-size: 12px;
  display: block;
  font-weight: 450;
  margin-top: 5px;
}
.aliases {
  display: flex;
  gap: 20px;
  align-items: center;
  border-top: 1px solid #39443a;
  margin-top: 24px;
  padding-top: 17px;
}
.aliases > span {
  font-size: 10px;
  color: #9aa698;
  white-space: nowrap;
}
.aliases > div {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.alias {
  font:
    9px ui-monospace,
    monospace;
  background: #2b352d;
  padding: 5px 8px;
  color: #d0d9cb;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.record-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 24px;
  margin-top: 24px;
}
.history-card,
.component-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.history-card {
  padding: 26px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
h3 {
  font-size: 19px;
  letter-spacing: -0.5px;
  font-weight: 550;
  margin: 0;
}
h3 > span {
  color: #84947d;
  margin-left: 7px;
  font:
    11px ui-monospace,
    monospace;
}
.history-mark {
  font-size: 30px;
  color: #9bac92;
}
.filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 20px 0 15px;
}
.filters button {
  border: 0;
  background: transparent;
  padding: 6px 9px;
  font-size: 10px;
  color: var(--muted);
  border-radius: 2px;
}
.filters button.selected {
  background: var(--ink);
  color: #fff;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 9px 0 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 13px;
  position: relative;
  padding: 18px 0;
}
.timeline li:not(:last-child):before {
  position: absolute;
  content: '';
  left: 10px;
  top: 40px;
  bottom: -10px;
  width: 1px;
  background: #dce2d6;
}
.event-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  border: 1px solid #d3dcca;
  background: #f4f7ee;
}
.event-title {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.event-title time {
  font:
    9px ui-monospace,
    monospace;
  color: #73806c;
  white-space: nowrap;
  font-weight: 400;
}
.event-copy {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.7;
}
.event-meta {
  font:
    9px ui-monospace,
    monospace;
  color: #899381;
  margin-top: 6px;
}
.event-corrected {
  opacity: 0.6;
}
.badge {
  display: inline-block;
  border: 1px solid #d0dcc6;
  background: #f2f6ec;
  color: #526747;
  font:
    9px ui-monospace,
    monospace;
  padding: 3px 6px;
  margin-top: 7px;
}
.component-card {
  padding: 24px 21px;
}
.component {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}
.component h4 {
  font-size: 12px;
  margin: 0 0 7px;
}
.component p {
  font:
    10px ui-monospace,
    monospace;
  color: var(--muted);
  margin: 7px 0;
  line-height: 1.8;
}
.component button {
  background: none;
  border: 0;
  padding: 0;
  border-bottom: 1px solid #a9b79d;
  font-size: 10px;
  color: #536b43;
}
.component-current {
  display: inline-block;
  background: #dfedcc;
  color: #46612f;
  padding: 3px 6px;
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 1px;
}
.component-removed {
  color: #7d8679;
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 1px;
}
.continuity {
  margin-top: 19px;
  padding: 24px;
  background: #e9eedf;
  border: 1px solid #dbe3cf;
  border-radius: 4px;
}
.continuity-icon {
  font-size: 37px;
  line-height: 1;
  color: #5b7c3b;
  display: block;
  margin-bottom: 15px;
}
.continuity h3 {
  font-size: 17px;
}
.continuity p {
  font-size: 12px;
  color: #57634e;
  line-height: 1.8;
}
.continuity-rule {
  height: 1px;
  background: #d0dbc0;
  margin: 17px 0;
}
.continuity small {
  font-size: 10px;
  line-height: 1.8;
  color: #66705d;
}
footer {
  font-size: 9px;
  color: #7d8775;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 10px;
}
.empty {
  font-size: 12px;
  color: var(--muted);
  padding: 15px 0;
}
.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;
}
@media (min-width: 1450px) {
  main {
    padding-left: 65px;
    padding-right: 65px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 15px;
  }
  .sidebar-note {
    margin: 90px 5px 0;
  }
  main {
    padding: 30px 26px;
  }
  .record-grid {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 16px;
  }
  .rv-number {
    gap: 10px;
  }
  .identity-card {
    padding: 25px;
  }
  .history-card {
    padding: 21px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar form {
    min-width: 260px;
  }
  .scope-note {
    margin-left: 5px;
  }
}
@media (max-width: 800px) {
  .workspace {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .topbar {
    height: 100px;
    padding: 0 22px;
  }
  .brand {
    width: 300px;
  }
  .environment {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  main {
    padding: 28px 22px;
  }
  .heading-row {
    margin-bottom: 23px;
  }
  .view-tag {
    display: none;
  }
  .record-grid {
    grid-template-columns: 1fr;
  }
  .details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .continuity {
    margin: 0;
  }
  .rv-number strong {
    font-size: 12px;
  }
  .toolbar form {
    min-width: 100%;
    margin-top: 4px;
  }
  .event-title {
    font-size: 12px;
  }
}
@media (max-width: 600px) {
  .topbar {
    height: auto;
    padding: 0 16px 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .brand {
    width: 300px;
  }
  .environment {
    font-size: 8px;
    line-height: 1.5;
  }
}
@media (max-width: 450px) {
  main {
    padding: 25px 15px;
  }
  .intro {
    font-size: 12px;
    line-height: 1.7;
  }
  .identity-card {
    padding: 22px 18px;
  }
  .identity-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .identity-heading h2 {
    font-size: 24px;
  }
  .status {
    font-size: 7px;
    padding: 5px;
    letter-spacing: 0.4px;
  }
  .identity-card .eyebrow {
    font-size: 8px;
  }
  .rv-number {
    flex-wrap: wrap;
    padding: 11px;
  }
  .rv-number > span {
    width: 100%;
  }
  .rv-number strong {
    max-width: calc(100% - 46px);
    font-size: 10px;
  }
  .rv-number button {
    padding: 4px 5px;
    font-size: 9px;
  }
  .identity-grid {
    gap: 14px;
    grid-template-columns: 1fr 1fr;
  }
  .identity-grid > div:first-child {
    grid-column: span 2;
  }
  .aliases {
    display: block;
  }
  .aliases > div {
    margin-top: 10px;
  }
  .alias {
    font-size: 8px;
  }
  .history-card {
    padding: 20px 16px;
  }
  .details {
    display: block;
  }
  .continuity {
    margin-top: 16px;
  }
  .event-title {
    display: block;
  }
  .event-title time {
    display: block;
    margin-top: 5px;
  }
  .filters {
    gap: 1px;
  }
  .filters button {
    padding: 6px 7px;
  }
  .timeline li {
    gap: 10px;
  }
  footer {
    flex-direction: column;
    gap: 7px;
  }
  .toolbar select {
    max-width: calc(100% - 45px);
  }
}
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.demo-tabs a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  background: white;
}
.demo-tabs a[aria-current] {
  background: var(--ink);
  color: white;
}
.dossier {
  max-width: 1200px;
}
.demo-disclaimer {
  padding: 16px 20px;
  background: #fff3cf;
  border: 1px solid #ddc98d;
  margin: 24px 0;
}
.profile-note {
  color: #c5d2c0;
  font-size: 12px;
}
.legend {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: white;
}
.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 18px;
}
.legend-grid p {
  font-size: 12px;
  color: var(--muted);
}
.legend-grid b {
  display: block;
  color: var(--ink);
  margin-bottom: 7px;
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 16px;
  margin: 20px 0 30px;
}
.evidence-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px;
}
.evidence-card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
}
.evidence-card p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
}
.evidence-badge {
  font-size: 11px;
  color: #665422;
  background: #f8f0d9;
  padding: 5px 8px;
  display: inline-block;
}
.source-link {
  font-size: 12px;
  color: #355c47;
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.competition-panel,
.source-panel {
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  margin-top: 24px;
}
.observation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}
.observation-grid dt {
  font-size: 11px;
  color: var(--muted);
}
.observation-grid dd {
  margin: 5px 0;
  font-size: 13px;
}
.association {
  padding: 20px;
  background: #f7f3e7;
  margin-top: 25px;
  font-size: 13px;
}
.association li {
  margin: 8px 0;
}
.source-row {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
.profile-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 26px 0;
}
.profile-choice {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 12px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
}
.profile-choice[aria-pressed='true'] {
  border: 2px solid var(--green);
  padding: 21px;
  background: #f1f5e9;
}
.profile-choice strong {
  font-size: 20px;
}
.profile-choice small {
  color: var(--muted);
}
.profile-cta {
  margin-top: auto;
  font-size: 12px;
  color: var(--green);
}
.profile-heading {
  margin: 18px 0 26px;
}
.primary-button {
  padding: 12px 18px;
  border: 0;
  background: var(--accent);
  color: var(--ink);
  font-weight: 650;
  border-radius: 3px;
}
.claim-form {
  display: grid;
  gap: 20px;
  max-width: 700px;
  margin-top: 24px;
}
.claim-form label {
  display: grid;
  gap: 7px;
}
.claim-form input:not([type='checkbox']),
.claim-form select,
.claim-form textarea {
  width: 100%;
  max-width: none;
  min-height: 44px;
  border: 1px solid #adb6a9;
  padding: 10px;
  background: white;
  font: inherit;
}
.claim-form input[type='checkbox'] {
  flex: none;
  width: 18px;
  height: 18px;
}
.claim-form fieldset label,
.claim-form .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
}
.claim-form fieldset {
  border: 1px solid var(--line);
}
.claim-form textarea {
  resize: vertical;
}
.claim-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}
#cancel-claim {
  padding: 12px 18px;
  margin-left: 10px;
  background: white;
  border: 1px solid var(--line);
}
#claim-result {
  overflow-wrap: anywhere;
}
#real-missing {
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
}
#real-source p {
  font-size: 12px;
  color: var(--muted);
}
.profile-media {
  margin: 25px 0;
}
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.photo-gallery figure {
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  padding: 10px;
  min-width: 0;
}
.photo-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #e8eae4;
}
.photo-gallery figcaption {
  font-size: 12px;
  margin: 10px 0 5px;
}
.photo-gallery .source-link {
  font-size: 10px;
}
.source-timeline {
  list-style: none;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--line);
}
.source-timeline li {
  padding: 12px 0 22px;
}
.source-timeline h4 {
  font-size: 16px;
  margin: 5px 0 10px;
}
.source-timeline p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
}
.observations-heading {
  margin-top: 28px;
}
@media (max-width: 600px) {
  .photo-gallery {
    grid-template-columns: 1fr;
  }
}
.profile-thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #e8eae4;
}
