:root {
  --paper: #f5f4ef;
  --white: #fdfcf8;
  --ink: #252a26;
  --muted: #646a63;
  --line: #dcded4;
  --green: #426852;
  --accent: #bad075;
  --studio: #242c29;
  --confirmed: #416c51;
  --likely: #906a1f;
  --unknown: #7d5862;
  --seller: #416783;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", 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 {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 5px;
}
button:hover {
  background: #e8ebdf;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
#viewport:focus-visible {
  outline: 3px solid #638443;
  outline-offset: 3px;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
.masthead {
  height: 92px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.identity {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-mark {
  height: 47px;
  width: 47px;
  background: var(--ink);
  color: var(--paper);
  font-size: 26px;
  font-weight: 700;
  padding: 1px 8px;
  line-height: 1.05;
  letter-spacing: -2px;
}
.brand-mark span {
  display: block;
  font-size: 16px;
  letter-spacing: 0;
}
.eyebrow,
.section-label {
  font-size: 10px;
  letter-spacing: 1.55px;
  font-weight: 700;
}
.eyebrow {
  color: var(--muted);
  margin-bottom: 4px;
}
h1 {
  font-size: 26px;
  letter-spacing: -1.15px;
  line-height: 1.2;
  margin: 0;
  font-weight: 650;
}
.edition {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.edition span {
  display: block;
  margin-top: 7px;
  color: var(--ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.variant {
  font-size: 12px;
  font-weight: 650;
  padding-right: 14px;
}
.variant span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.plain-button,
.dark-button {
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 600;
}
.dark-button {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.dark-button:hover {
  background: #3b493c;
}
.notice {
  min-height: 35px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 28px;
  background: #ebeedf;
  font-size: 10px;
  color: #49513f;
  border-bottom: 1px solid #d7dec7;
  line-height: 1.5;
}
.notice strong {
  font-weight: 650;
}
.notice-dot {
  width: 5px;
  height: 5px;
  background: #678445;
  border-radius: 50%;
  flex: none;
}
.workbench {
  display: grid;
  grid-template-columns: 242px minmax(370px, 1fr) 348px;
  min-height: 640px;
  height: calc(100dvh - 160px);
}
.inventory {
  background: var(--white);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.inventory-head {
  padding: 23px 18px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mono {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  color: var(--muted);
}
.search-label {
  position: relative;
  margin: 0 14px 10px;
}
.search-label input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  width: 100%;
  padding: 0 28px 0 11px;
  font-size: 11px;
}
.search-label > span:last-child {
  position: absolute;
  right: 11px;
  top: 8px;
  font-size: 20px;
  color: var(--muted);
}
.filter-row {
  display: flex;
  gap: 5px;
  padding: 0 14px 15px;
  border-bottom: 1px solid var(--line);
}
select {
  font-size: 10px;
  padding: 7px 3px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  width: 50%;
  color: var(--muted);
}
.part-list {
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding: 10px 9px;
}
.system-heading {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted);
  font-weight: 700;
  padding: 16px 9px 7px;
  display: flex;
  justify-content: space-between;
}
.part-button {
  display: flex;
  width: 100%;
  border-color: transparent;
  background: transparent;
  text-align: left;
  padding: 9px 8px;
  gap: 9px;
  align-items: center;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.35;
  min-height: 39px;
}
.part-button:hover {
  background: #eef0e7;
}
.part-button[aria-pressed="true"] {
  background: #e9eddf;
  border-color: #d2dbc1;
  font-weight: 650;
}
.part-number {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  color: #5f6858;
  flex: none;
  width: 16px;
}
.part-name {
  flex: 1;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  background: currentColor;
}
.confirmed {
  color: var(--confirmed);
}
.likely {
  color: var(--likely);
}
.unknown {
  color: var(--unknown);
}
.seller-claim {
  color: var(--seller);
}
.inventory-foot {
  padding: 18px;
  border-top: 1px solid var(--line);
}
.legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 4px;
  font-size: 10px;
  margin-top: 13px;
}
.legend span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.inventory-foot p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin: 13px 0 0;
}
.assembly {
  position: relative;
  background: var(--studio);
  overflow: hidden;
  min-height: 640px;
  color: #e8ede2;
}
.assembly-head {
  position: absolute;
  z-index: 2;
  left: 27px;
  right: 25px;
  top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.assembly-head .section-label {
  color: #9cac99;
  font-size: 9px;
}
.assembly-head h2 {
  font-size: 21px;
  margin: 7px 0 0;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.render-status {
  font-size: 9px;
  font-family: "SFMono-Regular", Consolas, monospace;
  border: 1px solid #465345;
  padding: 6px 8px;
  color: #b7c9a5;
  border-radius: 3px;
}
.render-status:before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #b2ca75;
  border-radius: 50%;
  margin-right: 6px;
}
#viewport {
  position: absolute;
  inset: 0;
  touch-action: none;
}
#viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
#callouts {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.callout {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  font-size: 9px;
  white-space: nowrap;
  background: #26312c;
  border: 1px solid #53604e;
  color: #dfe7d8;
  border-radius: 3px;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 4px #0002;
}
.callout.selected {
  border-color: #b9d275;
  color: #dcebad;
}
.callout b {
  font-family: Consolas, monospace;
  font-size: 8px;
  color: #a9bc8a;
}
.view-tools {
  position: absolute;
  top: 93px;
  left: 26px;
  display: flex;
  gap: 4px;
  z-index: 3;
}
.view-tools button {
  font-size: 10px;
  padding: 7px 9px;
  min-height: 32px;
  color: #dce5d7;
  background: #2d3731;
  border-color: #465348;
}
.view-tools button:hover {
  background: #465640;
}
.layer-tools {
  position: absolute;
  top: 136px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
  font-size: 10px;
  color: #acbaa6;
}
.layer-tools label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.layer-tools input {
  accent-color: #b4cd7a;
  margin: 0;
}
.layer-tools button {
  background: transparent;
  border-color: #53604e;
  color: #c9d6bd;
  font-size: 9px;
  padding: 4px 7px;
}
.layer-tools button[aria-pressed="true"] {
  background: #aec876;
  color: #243021;
}
.scene-note {
  position: absolute;
  bottom: 153px;
  left: 27px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9caa93;
  font-family: Consolas, monospace;
  font-size: 8px;
  letter-spacing: 1.2px;
  pointer-events: none;
}
.scene-note span:not(.crosshair) {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 0;
  color: #909d88;
}
.crosshair {
  font-size: 24px;
  color: #a9bd95;
}
.explosion-control {
  position: absolute;
  bottom: 23px;
  left: 25px;
  right: 25px;
  padding: 16px 18px 12px;
  background: #f1f2e9;
  color: #283028;
  border: 1px solid #b5bfa5;
  border-radius: 6px;
  z-index: 3;
}
.explode-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.explode-heading .section-label {
  font-size: 9px;
  letter-spacing: 1.35px;
}
output {
  font-family: Consolas, monospace;
  font-size: 11px;
}
.explode-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.explode-row button {
  font-size: 10px;
  border: none;
  background: transparent;
  padding: 4px 0;
}
.explode-row button:hover {
  text-decoration: underline;
}
input[type="range"] {
  accent-color: #57724a;
  height: 15px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.gesture-hint {
  font-size: 9px;
  text-align: center;
  color: #59634f;
  margin-top: 10px;
}
.gesture-hint span {
  margin: 0 10px;
}
.inspector {
  background: var(--white);
  border-left: 1px solid var(--line);
  overflow: auto;
  min-height: 0;
}
.part-heading {
  padding: 26px 24px 17px;
}
.part-heading .section-label {
  color: var(--muted);
  font-size: 9px;
}
.part-heading h2 {
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.65px;
  margin: 13px 0;
}
.part-subtitle {
  font-size: 10px;
  color: var(--muted);
  font-family: Consolas, monospace;
  line-height: 1.6;
}
.evidence-badge {
  font-size: 9px;
  padding: 4px 7px;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 3px;
  margin-bottom: 11px;
  background: #ffffff;
}
.geometry-tag {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.part-summary {
  font-size: 12px;
  line-height: 1.7;
  margin: 17px 0 0;
  color: #525a51;
}
.inspector-tabs {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  gap: 20px;
}
.inspector-tabs button {
  font-size: 10px;
  padding: 12px 0;
  border: none;
  background: none;
  border-radius: 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.inspector-tabs button[aria-selected="true"] {
  border-bottom-color: var(--green);
  color: var(--ink);
  font-weight: 650;
}
.inspector-body {
  padding: 20px 24px 28px;
}
.inspector-body h3 {
  font-size: 9px;
  letter-spacing: 1.5px;
  margin: 0 0 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}
.fact {
  padding: 0 0 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid #e8e9df;
}
.fact p {
  font-size: 11px;
  line-height: 1.7;
  margin: 6px 0;
}
.fact-status {
  font-size: 8px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}
.source-cite {
  font-size: 9px;
  font-family: Consolas, monospace;
}
.question-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.question-list li {
  display: flex;
  gap: 10px;
  font-size: 12px;
  line-height: 1.65;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.question-list li:before {
  content: "?";
  font-family: Consolas, monospace;
  color: var(--likely);
  font-size: 11px;
  padding-top: 2px;
}
.connection {
  width: 100%;
  text-align: left;
  padding: 9px 0;
  margin: 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 11px;
  line-height: 1.5;
}
.connection span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.small-note {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}
.photo-button {
  display: block;
  width: 100%;
  padding: 0;
  background: #e7e6de;
  text-align: left;
  overflow: hidden;
  margin: 10px 0;
}
.photo-button img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
  background: #ecebe4;
}
.photo-button span {
  display: block;
  background: var(--paper);
  padding: 9px;
  font-size: 10px;
  line-height: 1.5;
}
.photo-button .image-credit {
  font-size: 9px;
  color: var(--muted);
  padding-top: 0;
}
.empty {
  padding: 24px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  padding: 6px 0;
  font-size: 11px;
  text-decoration: underline;
}
.inspector-placeholder {
  padding: 30px;
  font-size: 12px;
  color: var(--muted);
}
.app-footer {
  height: 33px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
}
.app-footer span:last-child {
  font-family: Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.8px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 10px;
  background: white;
  padding: 10px;
  z-index: 20;
}
.skip-link:focus {
  top: 10px;
}
dialog {
  width: min(740px, calc(100% - 32px));
  max-height: 85dvh;
  border: 1px solid #939d88;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 24px;
  box-shadow: 0 24px 80px #0005;
}
dialog::backdrop {
  background: #17251db3;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.dialog-head button {
  width: 36px;
  height: 36px;
  font-size: 25px;
}
#dialog-content {
  font-size: 12px;
  line-height: 1.8;
}
#dialog-content h3 {
  font-size: 14px;
  margin-top: 25px;
}
#dialog-content .source-record {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
#dialog-content .source-record p {
  margin: 5px 0;
  color: var(--muted);
}
#dialog-content code {
  font-size: 11px;
  background: #ecefe2;
  padding: 2px 5px;
}
#photo-dialog {
  width: min(1040px, calc(100% - 32px));
}
#large-photo {
  display: block;
  max-width: 100%;
  max-height: 65dvh;
  margin: 15px auto;
  object-fit: contain;
}
#photo-caption {
  font-size: 11px;
  color: var(--muted);
}
.scene-error {
  position: absolute;
  inset: 220px 30px auto;
  padding: 20px;
  background: #f3efe2;
  color: #49352e;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 5px;
  z-index: 5;
}
.scene-error a {
  color: #34593c;
}
.fatal-error {
  font-size: 13px;
  color: #6c353b;
  padding: 30px;
}
@media (min-width: 1600px) {
  .workbench {
    grid-template-columns: 260px minmax(450px, 1fr) 380px;
  }
  .part-button {
    font-size: 12px;
  }
  .inspector-body {
    padding: 23px 28px;
  }
  .part-heading {
    padding: 28px;
  }
}
@media (max-width: 1180px) {
  .workbench {
    grid-template-columns: 210px minmax(310px, 1fr) 300px;
  }
  .masthead {
    padding: 0 18px;
  }
  .identity {
    gap: 12px;
  }
  .edition {
    display: none;
  }
  .variant {
    display: none;
  }
  .part-heading {
    padding: 22px 19px;
  }
  .inspector-body {
    padding: 18px 19px;
  }
  .part-button {
    font-size: 10px;
    padding: 8px 5px;
  }
  .view-tools {
    left: 19px;
    gap: 3px;
  }
  .layer-tools {
    left: 20px;
    gap: 8px;
  }
  .assembly-head {
    left: 20px;
  }
  .explosion-control {
    left: 17px;
    right: 17px;
  }
  .notice {
    padding: 7px 18px;
    font-size: 9px;
  }
}
@media (max-width: 880px) {
  .workbench {
    grid-template-columns: 205px 1fr;
    height: auto;
    min-height: 0;
  }
  .assembly {
    min-height: 650px;
  }
  .inventory {
    max-height: 650px;
  }
  .inspector {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    border-left: 0;
    overflow: visible;
  }
  .inspector-body {
    max-width: 900px;
  }
  .part-heading {
    padding: 22px 25px;
  }
  .inspector-body {
    padding: 24px;
  }
  .notice {
    flex-wrap: wrap;
    gap: 3px 8px;
  }
  .masthead {
    height: 82px;
  }
  .header-actions {
    gap: 6px;
  }
  .plain-button,
  .dark-button {
    padding: 10px;
    font-size: 10px;
  }
  .app-footer {
    height: auto;
    min-height: 36px;
    gap: 15px;
    padding: 10px 18px;
  }
}
@media (max-width: 580px) {
  .masthead {
    height: auto;
    min-height: 100px;
    align-items: flex-start;
    padding: 17px 15px;
    gap: 10px;
  }
  .identity {
    gap: 9px;
  }
  .brand-mark {
    width: 37px;
    height: 39px;
    font-size: 23px;
    padding: 0 5px;
  }
  .brand-mark span {
    font-size: 14px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  h1 {
    font-size: 20px;
  }
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .plain-button,
  .dark-button {
    font-size: 9px;
    padding: 8px;
    min-height: 32px;
  }
  .notice {
    padding: 10px 15px;
    font-size: 9px;
  }
  .notice span:last-child {
    display: block;
    flex-basis: 100%;
    padding-left: 13px;
  }
  .workbench {
    display: flex;
    flex-direction: column;
  }
  .assembly {
    order: 0;
    min-height: 570px;
    height: 570px;
  }
  .inventory {
    order: 1;
    max-height: 390px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .inventory-head {
    padding: 18px;
  }
  .part-list {
    max-height: 220px;
  }
  .inventory-foot {
    padding: 14px 18px;
  }
  .inventory-foot .section-label,
  .inventory-foot p {
    display: none;
  }
  .legend {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0;
    gap: 15px;
  }
  .filter-row {
    padding-bottom: 10px;
  }
  .inspector {
    order: 2;
  }
  .part-button {
    font-size: 12px;
    min-height: 44px;
  }
  .view-tools button {
    min-height: 38px;
    padding: 8px;
  }
  .layer-tools {
    top: 140px;
  }
  .assembly-head h2 {
    font-size: 20px;
  }
  .scene-note {
    bottom: 152px;
  }
  .explosion-control {
    bottom: 18px;
  }
  .explode-row button {
    min-height: 36px;
  }
  .app-footer {
    font-size: 8px;
  }
  .app-footer span:first-child {
    max-width: 52%;
  }
  .scene-error {
    inset: 200px 18px auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
