@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap");
:root {
  color-scheme: dark;
  --bg: #101820;
  --panel: #17212b;
  --raised: #202d38;
  --edge: #2b3a47;
  --text: #ecf2f6;
  --muted: #a2b2bf;
  --accent: #67e5df;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  transition: background 0.15s, color 0.15s, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
button:active {
  transform: scale(0.96);
}
header {
  height: 88px;
  background: #0c1219;
  border-bottom: 1px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 24px;
}
.brand {
  display: flex;
  gap: 17px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 5px;
}
.mark {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 30px;
  letter-spacing: -1px;
  border: 1px solid #39515e;
  padding: 5px 11px;
  line-height: 1.2;
}
.mark > span {
  color: var(--accent);
}
.edition {
  color: #7f95a6;
  font-size: 12px;
  letter-spacing: 2px;
}
header button {
  font-size: 14px;
  padding: 10px 15px;
  border: 1px solid var(--edge);
  border-radius: 5px;
}
header button span {
  margin-left: 15px;
  color: var(--accent);
}
header button:hover {
  background: var(--raised);
  transform: translateY(-1px);
}
.category-strip {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--edge);
  background: #111b24;
  padding: 0 26px;
  gap: 22px;
}
.category-heading {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 1.7px;
  line-height: 1.8;
  padding: 23px 12px 20px 0;
  color: #91a5b5;
}
.category-heading strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.6px;
}
#categories {
  position: relative;
  display: flex;
  gap: 3px;
  overflow: auto;
  align-items: stretch;
  flex: 1;
  scrollbar-width: thin;
}
.category {
  position: relative;
  flex: 1;
  min-width: 100px;
  padding: 15px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 8px;
  text-align: left;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  font-size: 14px;
  color: #b3c1cc;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.category-index {
  font-family: monospace;
  font-size: 11px;
  color: #718797;
  grid-column: 1/-1;
  transition: color 0.2s ease;
}
.category small {
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 3px;
  background: #23323e;
  align-self: center;
  color: #a9bdc9;
  transition: background 0.2s ease, color 0.2s ease;
}
.category:hover {
  background: #1b2b36;
  transform: translateY(-2px);
}
.category:active {
  transform: translateY(0) scale(0.97);
}
.category.active {
  background: #1b323b;
  color: #fff;
}
.category.active .category-index {
  color: var(--accent);
  animation: catFadeUp 0.35s ease;
}
.category.active small {
  background: #2b5056;
  color: #9af9ee;
  animation: catBadgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.category-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 12px 1px rgba(103, 229, 223, 0.55);
  pointer-events: none;
  transition: left 0.4s cubic-bezier(0.65, 0, 0.35, 1), width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes catFadeUp {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes catBadgePop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
main {
  height: calc(100dvh - 184px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
}
.sidebar {
  grid-column: 2;
  grid-row: 1;
  background: var(--panel);
  border-left: 1px solid var(--edge);
  padding: 24px;
  overflow: auto;
  scrollbar-width: thin;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1px 0 23px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: var(--muted);
}
.panel-number {
  font-family: monospace;
  font-size: 11px;
  color: #8098a9;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #101921;
  border: 1px solid #31434f;
  border-radius: 5px;
}
.search > span {
  font-size: 23px;
  line-height: 20px;
  color: var(--accent);
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
}
.search input::placeholder {
  color: #93a6b5;
}
.search kbd {
  padding: 1px 5px;
  border: 1px solid #455865;
  border-radius: 3px;
  color: #94a9b8;
  font-size: 12px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 14px;
}
.section-heading h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.section-heading button {
  font-size: 12px;
  color: var(--accent);
}
.system {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid #263541;
  color: #92a6b6;
  border-radius: 3px;
}
.system.active {
  color: #e6eef4;
  background: #1c2934;
}
.system:hover {
  background: #263744;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.system .eye {
  margin-left: auto;
  font-size: 14px;
  opacity: 0.5;
}
.system.active .eye {
  color: var(--accent);
  opacity: 1;
}
#internalView {
  width: 100%;
  margin-top: 18px;
  padding: 13px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #0f272c;
  font-size: 14px;
  font-weight: 600;
}
.source-label {
  border-top: 1px solid #344553;
  margin-top: 28px;
  padding-top: 20px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8ca1b1;
}
.source-label > span {
  float: right;
  font-family: monospace;
}
.source-label strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0;
  color: #d9e4eb;
  margin-top: 12px;
  font-weight: 500;
}
.source-label small {
  display: block;
  margin-top: 6px;
  letter-spacing: 0;
  font-size: 12px;
  color: #8ca1b1;
}
.viewport {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: var(--bg);
}
#scene {
  position: absolute;
  inset: 0;
}
canvas {
  display: block;
  touch-action: none;
}
.scene-label {
  position: absolute;
  left: 34px;
  top: 30px;
  pointer-events: none;
}
.scene-label .eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #7995a7;
}
.scene-label h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 64px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 14px 0 12px;
}
.scene-label p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 300px;
  color: #a4b7c5;
  margin: 0 0 15px;
}
.scene-label strong {
  display: block;
  font-family: monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 400;
}
.model-meta {
  position: absolute;
  right: 30px;
  top: 34px;
  display: flex;
  gap: 10px;
  flex-direction: column;
  text-align: right;
  font-size: 12px;
  color: #9bb1c0;
}
.model-meta span:first-child {
  color: #e1eaf0;
}
.views {
  position: absolute;
  left: 34px;
  bottom: 123px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid #344b59;
  background: #15232dec;
}
.views button {
  padding: 9px 18px;
  font-size: 14px;
  border-radius: 3px;
  color: #a6bac8;
}
.views button.active {
  color: #0f272c;
  background: var(--accent);
}
.views button:hover:not(.active) {
  background: #2a3c49;
  transform: translateY(-1px);
}
.zoom {
  position: absolute;
  right: 25px;
  bottom: 125px;
  display: flex;
  border: 1px solid #344b59;
  background: #15232ded;
  border-radius: 5px;
  overflow: hidden;
}
.zoom button {
  height: 42px;
  width: 44px;
  font-size: 23px;
  color: #cedfe8;
  border-right: 1px solid #344b59;
}
.zoom button:last-child {
  border-right: 0;
}
.zoom button:hover {
  background: #2a3c49;
  color: var(--accent);
  transform: translateY(-1px);
}
.bottom-bar {
  position: absolute;
  bottom: 24px;
  left: 34px;
  right: 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.bottom-bar > div {
  background: #172731ef;
  border: 1px solid #344b59;
  padding: 15px 19px;
  border-radius: 6px;
  min-width: 330px;
}
.bottom-bar .eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #95adbd;
}
.bottom-bar label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #bdceda;
  margin-top: 12px;
}
input[type="range"] {
  width: 140px;
  accent-color: var(--accent);
}
.hint {
  font-size: 12px;
  color: #819bab;
  max-width: 210px;
  line-height: 1.8;
  text-align: right;
}
#detail {
  position: absolute;
  right: 25px;
  top: 95px;
  width: 300px;
  max-height: calc(100% - 225px);
  overflow: auto;
  background: #182936f5;
  backdrop-filter: blur(14px);
  border: 1px solid #49616f;
  border-top: 3px solid var(--accent);
  padding: 27px 24px;
  border-radius: 5px;
  box-shadow: 0 20px 60px #0005;
}
#detail:not([hidden]) {
  animation: panelIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
#detail .eyebrow {
  color: var(--accent);
  font-size: 11px;
}
#detail h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 500;
  margin: 18px 0;
  color: #f5f8fa;
}
#detail p {
  font-size: 16px;
  line-height: 1.7;
  color: #b7c9d5;
}
.close {
  position: absolute;
  right: 12px;
  top: 9px;
  font-size: 24px;
  color: #9bb3c3;
}
.close:hover {
  color: var(--accent);
}
.reference {
  border-top: 1px solid #3c5261;
  margin: 20px 0;
  padding-top: 17px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #94acbd;
}
.reference strong {
  display: block;
  font-family: monospace;
  color: #e2edf4;
  font-size: 14px;
  margin-top: 9px;
  font-weight: 400;
  letter-spacing: 0;
}
.primary {
  padding: 13px;
  width: 100%;
  background: var(--accent);
  color: #0b252c;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}
#clear {
  width: 100%;
  padding: 15px 5px 0;
  font-size: 13px;
  color: #a5bdcd;
}
#loading {
  position: absolute;
  top: 38%;
  left: 20%;
  right: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 30px;
  background: #101820ed;
  border: 1px solid #344b59;
  border-radius: 6px;
}
#loading strong {
  font-size: 18px;
  font-weight: 500;
  animation: pulseText 1.8s ease-in-out infinite;
}
@keyframes pulseText {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
#loading span {
  font-size: 14px;
  color: #a6bdcd;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid #2e4655;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#results {
  max-height: 280px;
  overflow: auto;
  background: #111e28;
  border: 1px solid #39515f;
  border-radius: 4px;
  margin-top: 7px;
}
#results:not([hidden]) {
  animation: dropIn 0.25s ease;
}
@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#results button {
  font-size: 14px;
  text-align: left;
  padding: 12px;
  width: 100%;
  border-bottom: 1px solid #2b3d4a;
  line-height: 1.5;
}
#results button:hover {
  background: #284450;
  color: var(--accent);
}
#results p {
  font-size: 14px;
  padding: 12px;
  color: var(--muted);
}
dialog {
  color: var(--text);
  background: #172631;
  border: 1px solid #48606f;
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 35px;
  width: calc(100% - 30px);
  max-width: 570px;
}
dialog::backdrop {
  background: #040c12aa;
  backdrop-filter: blur(6px);
}
dialog h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 40px;
  font-weight: 500;
  margin: 18px 0;
}
dialog p {
  font-size: 16px;
  line-height: 1.7;
  color: #b1c5d3;
}
dialog a {
  font-size: 14px;
  color: var(--accent);
  text-underline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  main {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
  .sidebar {
    padding: 28px;
  }
  .scene-label h2 {
    font-size: 76px;
  }
  .scene-label {
    left: 45px;
    top: 40px;
  }
  .category {
    padding: 15px 20px;
  }
}
@media (max-width: 1150px) {
  .category-heading {
    display: none;
  }
  .category-strip {
    padding: 0 18px;
    gap: 0;
  }
  .category {
    min-width: 110px;
  }
  .edition {
    display: none;
  }
  main {
    height: calc(100dvh - 173px);
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .sidebar {
    padding: 21px;
  }
  .scene-label h2 {
    font-size: 50px;
  }
  .scene-label p {
    max-width: 235px;
  }
  .model-meta {
    display: none;
  }
  .hint {
    display: none;
  }
  .bottom-bar > div {
    min-width: 300px;
  }
  #detail {
    width: 255px;
  }
  .scene-label {
    left: 25px;
  }
  .views,
  .bottom-bar {
    left: 25px;
  }
}
@media (max-width: 760px) {
  header {
    height: 75px;
    padding: 0 18px;
  }
  .brand {
    font-size: 14px;
    gap: 11px;
  }
  .brand small {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .mark {
    font-size: 25px;
    padding: 5px 8px;
  }
  header button {
    font-size: 12px;
    padding: 8px 10px;
  }
  header button span {
    margin-left: 6px;
  }
  .category-strip {
    padding: 0 12px;
  }
  .category {
    min-width: 104px;
    padding: 12px 10px;
    gap: 7px;
  }
  main {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .viewport {
    height: 76dvh;
    min-height: 590px;
    flex: none;
    width: 100%;
  }
  .sidebar {
    border-left: 0;
    border-top: 1px solid var(--edge);
    padding: 24px;
    overflow: visible;
  }
  .scene-label {
    top: 23px;
    left: 23px;
  }
  .scene-label h2 {
    font-size: 44px;
    margin: 12px 0;
  }
  .scene-label p {
    max-width: 260px;
    font-size: 13px;
  }
  .scene-label strong {
    font-size: 10px;
  }
  .scene-label .eyebrow {
    font-size: 10px;
  }
  .views {
    left: 18px;
    bottom: 127px;
  }
  .views button {
    padding: 8px 14px;
  }
  .zoom {
    right: 18px;
    bottom: 127px;
  }
  .zoom button {
    width: 35px;
    height: 39px;
    font-size: 21px;
  }
  .bottom-bar {
    left: 18px;
    right: 18px;
    bottom: 22px;
  }
  .bottom-bar > div {
    width: 100%;
    min-width: 0;
    padding: 16px;
  }
  .bottom-bar label input {
    flex: 1;
    min-width: 60px;
  }
  #systems {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 12px;
  }
  .system {
    padding: 12px 9px;
    font-size: 14px;
  }
  .panel-title {
    margin-bottom: 18px;
  }
  .section-heading {
    margin-top: 24px;
  }
  #detail {
    right: 18px;
    top: 180px;
    width: 260px;
    max-height: calc(100% - 335px);
    padding: 23px 20px;
  }
  #detail h2 {
    font-size: 27px;
  }
  #detail p {
    font-size: 14px;
  }
  #loading {
    left: 12%;
    right: 12%;
    padding: 24px;
  }
  dialog {
    padding: 30px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button {
    transition: none;
  }
  .spinner {
    animation: none;
  }
  .category,
  .category-index,
  .category small,
  .category-indicator {
    transition: none;
  }
  #detail:not([hidden]),
  #results:not([hidden]),
  .category.active small,
  .category.active .category-index,
  #loading strong {
    animation: none;
  }
}

@media (max-width: 760px) {
  .viewport {
    order: 0;
  }
  .sidebar {
    order: 1;
  }
}
