/* =========================================================
   NOVA I4-TURBO — Powertrain disassembly workstation
   Pure CSS interface, no remote assets.
   ========================================================= */

:root {
  --bg: #03070c;
  --bg-raised: #07111a;
  --panel: rgba(6, 13, 21, 0.82);
  --panel-deep: rgba(4, 9, 15, 0.92);
  --ink: #e9f5f8;
  --ink-soft: #b7cbd3;
  --muted: #708791;
  --muted-2: #4b606c;
  --line: rgba(126, 191, 212, 0.15);
  --line-soft: rgba(126, 191, 212, 0.08);
  --cyan: #5fe5ff;
  --cyan-bright: #a9f4ff;
  --cyan-rgb: 95, 229, 255;
  --amber: #ffc46b;
  --mint: #77f0c9;
  --danger: #ff795f;
  --accent: #5fe5ff;
  --accent-glow: rgba(95, 229, 255, 0.2);
  --ease: cubic-bezier(0.22, 0.72, 0.22, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-ui: "Bahnschrift", "DIN Alternate", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-cn: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overscroll-behavior: none;
}

button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}

svg {
  display: block;
}

::selection {
  color: #031017;
  background: var(--cyan);
}

#app {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 42%, rgba(21, 58, 77, 0.24), transparent 35%),
    radial-gradient(circle at 82% 72%, rgba(83, 47, 24, 0.1), transparent 28%),
    linear-gradient(180deg, #04090f 0%, #03070c 52%, #020509 100%);
}

#engine-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: grab;
  touch-action: none;
  outline: none;
}

#engine-canvas.is-grabbing {
  cursor: grabbing;
}

#engine-canvas.is-hovering {
  cursor: pointer;
}

.world-wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 25%, rgba(1, 4, 8, 0.18) 62%, rgba(1, 3, 6, 0.58) 100%),
    linear-gradient(90deg, rgba(2, 6, 10, 0.35), transparent 28%, transparent 72%, rgba(2, 6, 10, 0.35));
}

.screen-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(93, 172, 196, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 172, 196, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 8%, rgba(0, 0, 0, 0.4) 50%, #000 100%);
  mask-image: radial-gradient(ellipse at center, transparent 8%, rgba(0, 0, 0, 0.4) 50%, #000 100%);
}

.screen-scan {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.22;
  background: repeating-linear-gradient(0deg, rgba(203, 245, 255, 0.035) 0, rgba(203, 245, 255, 0.035) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: soft-light;
}

.screen-scan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18vh;
  top: -20vh;
  background: linear-gradient(180deg, transparent, rgba(87, 215, 245, 0.045), transparent);
  animation: scan-pass 13s linear infinite;
}

.screen-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  box-shadow: inset 0 0 14vw rgba(0, 0, 0, 0.52);
}

@keyframes scan-pass {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  55% { opacity: 0.55; }
  100% { transform: translateY(160vh); opacity: 0; }
}

.frame-ticks {
  position: absolute;
  top: 45%;
  z-index: 6;
  width: 34px;
  height: 92px;
  pointer-events: none;
  opacity: 0.38;
  background:
    linear-gradient(180deg, transparent 0 10px, rgba(95, 229, 255, 0.5) 10px 11px, transparent 11px 24px, rgba(95, 229, 255, 0.24) 24px 25px, transparent 25px 42px, rgba(95, 229, 255, 0.15) 42px 43px, transparent 43px);
}

.frame-ticks--left {
  left: 344px;
  border-left: 1px solid rgba(95, 229, 255, 0.18);
}

.frame-ticks--right {
  right: 344px;
  transform: scaleX(-1);
  border-left: 1px solid rgba(95, 229, 255, 0.18);
}

/* =========================================================
   Panels
   ========================================================= */

.panel {
  position: absolute;
  z-index: 20;
  color: var(--ink);
  background:
    linear-gradient(152deg, rgba(14, 26, 37, 0.9) 0%, rgba(5, 12, 19, 0.86) 48%, rgba(4, 9, 15, 0.94) 100%);
  border: 1px solid var(--line);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.46),
    0 2px 14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(211, 248, 255, 0.055);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  backdrop-filter: blur(24px) saturate(120%);
  opacity: 0;
  transition: opacity 1s var(--ease-out) 0.15s, transform 0.4s var(--ease);
}

body.is-ready .panel {
  opacity: 1;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(95, 229, 255, 0.07), transparent 22%, transparent 78%, rgba(95, 229, 255, 0.025)),
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(172, 223, 237, 0.014) 55px 56px);
}

.panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(128, 231, 255, 0.72), transparent);
  opacity: 0.7;
}

.panel--parts {
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 314px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel--detail {
  right: 18px;
  top: 18px;
  bottom: 18px;
  width: 306px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  --dyn-accent: var(--cyan);
  --dyn-glow: rgba(95, 229, 255, 0.18);
}

.panel__corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.panel__corners i {
  position: absolute;
  width: 13px;
  height: 13px;
  opacity: 0.8;
}

.panel__corners i:nth-child(1) {
  left: -1px;
  top: -1px;
  border-left: 1px solid var(--cyan);
  border-top: 1px solid var(--cyan);
}

.panel__corners i:nth-child(2) {
  right: -1px;
  top: -1px;
  border-right: 1px solid var(--cyan);
  border-top: 1px solid var(--cyan);
}

.panel__corners i:nth-child(3) {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
}

.panel__corners i:nth-child(4) {
  left: -1px;
  bottom: -1px;
  border-left: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
}

.panel-close {
  display: none;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.panel-close:hover {
  color: var(--cyan);
  border-color: rgba(95, 229, 255, 0.45);
  background: rgba(95, 229, 255, 0.06);
}

/* =========================================================
   Brand / subject header
   ========================================================= */

.brand-block {
  flex: 0 0 auto;
  padding: 19px 19px 0;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(95, 229, 255, 0.22));
}

.brand-copy {
  min-width: 0;
  line-height: 1;
}

.brand-name {
  color: #e9f8fb;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.brand-name span {
  color: var(--cyan);
  margin-left: 3px;
  font-weight: 300;
  opacity: 0.8;
}

.brand-sub {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.brand-row .panel-close {
  margin-left: auto;
}

.subject-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 27px;
  gap: 12px;
}

.micro-label {
  display: block;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  opacity: 0.82;
}

.subject-row h1 {
  margin: 7px 0 0;
  color: #f2fbfd;
  font-size: 40px;
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.035em;
  white-space: nowrap;
  text-shadow: 0 0 28px rgba(95, 229, 255, 0.12);
}

.subject-row h1 span {
  color: var(--cyan);
  font-weight: 200;
}

.subject-row p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-cn);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.07em;
}

.subject-code {
  padding: 2px 0 2px 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-align: right;
}

.subject-code b {
  color: var(--ink);
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 21px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.spec-strip > span {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0 9px 10px;
  border-left: 1px solid var(--line-soft);
}

.spec-strip > span:first-child {
  border-left: 0;
  padding-left: 0;
}

.spec-strip b {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.spec-strip small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================================
   Component list
   ========================================================= */

.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  margin-top: 21px;
  padding: 0 19px 10px;
  color: var(--ink-soft);
  font-family: var(--font-cn);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.list-heading em {
  margin-left: 6px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.list-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
}

.list-count b {
  color: var(--cyan);
  font-weight: 500;
}

.part-list {
  position: relative;
  flex: 1 1 auto;
  min-height: 96px;
  padding: 0 11px 5px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(95, 229, 255, 0.2) transparent;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8px, #000 calc(100% - 13px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 8px, #000 calc(100% - 13px), transparent 100%);
}

.part-list::-webkit-scrollbar {
  width: 3px;
}

.part-list::-webkit-scrollbar-track {
  background: transparent;
}

.part-list::-webkit-scrollbar-thumb {
  background: rgba(95, 229, 255, 0.2);
}

.part-row {
  display: block;
  margin: 0;
  padding: 0;
}

.part-item {
  --part-accent: var(--cyan);
  --part-glow: rgba(95, 229, 255, 0.14);
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 38px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 7px 8px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-left: 1px solid rgba(126, 191, 212, 0.08);
  background: transparent;
  text-align: left;
  transition:
    color 0.22s var(--ease),
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.part-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 1px;
  height: 0;
  background: var(--part-accent);
  box-shadow: 0 0 9px var(--part-accent), 0 0 22px var(--part-accent);
  transform: translateY(-50%);
  transition: height 0.3s var(--ease);
}

.part-item::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--part-glow), transparent 78%);
  transition: opacity 0.3s var(--ease);
}

.part-item:hover {
  color: var(--ink);
  background: rgba(136, 206, 226, 0.035);
  border-color: rgba(126, 191, 212, 0.12);
}

.part-item:hover::after {
  opacity: 0.55;
}

.part-item.is-hovered {
  background: rgba(136, 206, 226, 0.055);
  border-color: var(--part-glow);
}

.part-item.is-hovered .part-item__index {
  color: var(--part-accent);
}

.part-item.is-active {
  color: var(--ink);
  border-color: var(--part-glow);
  border-left-color: var(--part-accent);
  background: rgba(142, 211, 230, 0.055);
}

.part-item.is-active::before {
  height: 58%;
}

.part-item.is-active::after {
  opacity: 1;
}

.part-item__index {
  position: relative;
  z-index: 1;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.22s, text-shadow 0.22s;
}

.part-item.is-active .part-item__index {
  color: var(--part-accent);
  text-shadow: 0 0 10px var(--part-accent);
}

.part-item__name {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-cn);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.part-item__name em {
  overflow: hidden;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6px;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0.12em;
  transition: color 0.22s;
  text-overflow: ellipsis;
}

.part-item.is-active .part-item__name em,
.part-item.is-hovered .part-item__name em {
  color: var(--muted);
}

.part-item__mass {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
  transition: color 0.22s;
}

.part-item__mass small {
  margin-left: 2px;
  color: var(--muted-2);
  font-size: 6px;
  letter-spacing: 0.05em;
}

.part-item.is-active .part-item__mass {
  color: var(--ink);
}

.part-item.is-active .part-item__mass small {
  color: var(--part-accent);
}

.part-item__scanline {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 1px;
  opacity: 0.38;
  background: linear-gradient(90deg, var(--line-soft), transparent 74%);
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  padding: 0 19px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
}

.footer-node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.footer-node i {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 7px rgba(119, 240, 201, 0.75);
}

.footer-mass {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.footer-mass b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 400;
}

.footer-mass small {
  color: var(--muted-2);
  font-size: 6px;
  letter-spacing: 0.1em;
}

/* =========================================================
   Dossier panel
   ========================================================= */

.detail-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  min-height: 45px;
  padding: 0 17px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
}

.detail-topline > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.micro-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dyn-accent);
  box-shadow: 0 0 8px var(--dyn-accent);
}

.detail-topline > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

#detail-counter {
  color: var(--muted-2);
  font-size: 6.5px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s, background 0.2s, opacity 0.2s;
}

.icon-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover:not(:disabled) {
  color: var(--cyan);
  border-color: rgba(95, 229, 255, 0.4);
  background: rgba(95, 229, 255, 0.06);
}

.icon-button:disabled {
  opacity: 0.28;
  cursor: default;
}

.icon-button--tiny {
  width: 26px;
  height: 26px;
}

.icon-button--tiny svg {
  width: 13px;
  height: 13px;
}

.panel-close--detail {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
  font-size: 17px;
}

.detail-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 23px 18px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(95, 229, 255, 0.18) transparent;
}

.detail-body::-webkit-scrollbar {
  width: 3px;
}

.detail-body::-webkit-scrollbar-thumb {
  background: rgba(95, 229, 255, 0.16);
}

.detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  min-height: 39px;
  padding: 0 17px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.09em;
}

.detail-revision {
  color: var(--muted-2);
}

.detail-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 45px;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--dyn-accent), transparent);
  opacity: 0.25;
  animation: detail-scan 7s ease-in-out infinite;
}

@keyframes detail-scan {
  0%, 100% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.36; }
  50% { transform: translateY(470px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- default overview ---------- */

.detail-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dyn-accent);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.detail-eyebrow b {
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.detail-eyebrow span {
  white-space: nowrap;
}

.detail-title {
  margin: 15px 0 0;
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 25px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.detail-title span {
  color: var(--dyn-accent);
}

.detail-title-en {
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.13em;
}

.overview-blueprint {
  position: relative;
  height: 144px;
  margin: 17px -2px 12px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.overview-blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(95, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 78%);
}

.overview-blueprint svg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.overview-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.overview-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 57px;
  padding: 10px 10px 9px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.overview-stat span {
  color: var(--muted);
  font-family: var(--font-cn);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.overview-stat strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
}

.overview-stat strong small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.overview-stat em {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 5.5px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.detail-description {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: var(--font-cn);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.selection-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 11px 11px 10px;
  color: var(--ink-soft);
  border: 1px solid var(--line-soft);
  background: rgba(95, 229, 255, 0.025);
  font-family: var(--font-cn);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.selection-hint .hint-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: var(--cyan);
  border: 1px solid rgba(95, 229, 255, 0.3);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
}

.selection-hint em {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 5.5px;
  font-style: normal;
  letter-spacing: 0.1em;
}

/* ---------- selected component ---------- */

.detail-content {
  animation: content-in 0.46s var(--ease-out) both;
}

@keyframes content-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.detail-title-row h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.025em;
}

.detail-title-row--long h2 {
  font-size: 21px;
  letter-spacing: 0.005em;
}

.detail-title-row--long .detail-index {
  font-size: 31px;
}

.detail-title-row .detail-en {
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.13em;
}

.detail-index {
  color: var(--dyn-accent);
  font-family: var(--font-mono);
  font-size: 39px;
  font-weight: 200;
  line-height: 0.8;
  letter-spacing: -0.08em;
  opacity: 0.82;
  text-shadow: 0 0 22px var(--dyn-glow);
}

.mass-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding: 13px 0 12px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.mass-hero__value {
  display: flex;
  align-items: baseline;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.mass-hero__value small {
  margin-left: 5px;
  color: var(--dyn-accent);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.mass-hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding-bottom: 1px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: right;
}

.mass-hero__meta b {
  color: var(--muted);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 6px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-family: var(--font-cn);
  font-size: 7.5px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.detail-content .detail-description {
  margin-top: 14px;
}

.spec-section,
.metrics-section {
  margin-top: 22px;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-family: var(--font-cn);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.section-label em {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 5.5px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.spec-list {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  min-height: 29px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(126, 191, 212, 0.065);
}

.spec-row dt {
  color: var(--muted);
  font-family: var(--font-cn);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.spec-row dd {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  text-align: right;
}

.metric-row {
  display: grid;
  grid-template-columns: 53px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  min-height: 25px;
}

.metric-label {
  color: var(--muted);
  font-family: var(--font-cn);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.metric-track {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(126, 191, 212, 0.1);
}

.metric-track i {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--dyn-accent), rgba(255, 255, 255, 0.5));
  box-shadow: 0 0 8px var(--dyn-accent);
  animation: metric-fill 0.8s var(--ease-out) 0.1s both;
}

@keyframes metric-fill {
  from { width: 0 !important; opacity: 0.2; }
}

.metric-value {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.01em;
  text-align: right;
}

.detail-note {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding: 9px 10px;
  color: var(--muted);
  border-left: 1px solid var(--dyn-accent);
  background: linear-gradient(90deg, var(--dyn-glow), transparent);
  font-family: var(--font-cn);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.detail-note i {
  width: 3px;
  height: 3px;
  flex: 0 0 3px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--dyn-accent);
  box-shadow: 0 0 6px var(--dyn-accent);
}

.detail-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 19px;
  padding: 9px 10px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-family: var(--font-cn);
  font-size: 8px;
  letter-spacing: 0.05em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.detail-action span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.detail-action svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--dyn-accent);
  stroke-width: 1.2;
}

.detail-action em {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 5.5px;
  font-style: normal;
  letter-spacing: 0.1em;
}

.detail-action:hover {
  color: var(--ink);
  border-color: var(--dyn-accent);
  background: var(--dyn-glow);
}

/* =========================================================
   Status rail
   ========================================================= */

.status-rail {
  position: absolute;
  z-index: 25;
  top: 25px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 27px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid rgba(126, 191, 212, 0.1);
  background: rgba(4, 10, 16, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.11em;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s var(--ease-out) 0.35s;
}

body.is-ready .status-rail {
  opacity: 1;
}

.status-rail__group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.system-light {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 7px rgba(119, 240, 201, 0.8);
  animation: status-pulse 3.4s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.system-label {
  color: rgba(151, 226, 205, 0.8);
}

.status-rail__divider {
  width: 1px;
  height: 10px;
  background: rgba(126, 191, 212, 0.16);
}

.status-rail__divider--short {
  height: 7px;
}

.mode-label {
  color: var(--ink-soft);
}

.mode-value {
  color: var(--cyan);
  font-size: 6px;
}

.rail-clock {
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

/* =========================================================
   Mobile toggles
   ========================================================= */

.mobile-controls {
  display: none;
  position: absolute;
  z-index: 30;
  top: 15px;
  left: 15px;
  align-items: center;
  gap: 7px;
}

.mobile-control {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 10px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: rgba(5, 13, 20, 0.75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--font-cn);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.mobile-control b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 14px;
  color: var(--cyan);
  border: 1px solid rgba(95, 229, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 6px;
  font-weight: 400;
}

.mobile-control__glyph {
  display: flex;
  width: 14px;
  flex-direction: column;
  gap: 2px;
}

.mobile-control__glyph i {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--cyan);
  opacity: 0.8;
}

.mobile-control__glyph i:nth-child(2) {
  width: 70%;
}

.mobile-control__glyph i:nth-child(3) {
  width: 45%;
}

.mobile-control__glyph--target {
  width: 12px;
  height: 12px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(95, 229, 255, 0.15);
}

.panel-scrim {
  position: absolute;
  inset: 0;
  z-index: 39;
  border: 0;
  background: rgba(1, 5, 8, 0.58);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.panel-scrim[hidden] {
  display: none;
}

/* =========================================================
   Bottom dock
   ========================================================= */

.dock {
  position: absolute;
  z-index: 35;
  left: 50%;
  bottom: 41px;
  display: flex;
  align-items: stretch;
  gap: 5px;
  min-height: 60px;
  padding: 7px;
  background: rgba(5, 12, 19, 0.76);
  border: 1px solid var(--line);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(213, 249, 255, 0.045);
  -webkit-backdrop-filter: blur(22px) saturate(126%);
  backdrop-filter: blur(22px) saturate(126%);
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  transition:
    opacity 0.9s var(--ease-out) 0.3s,
    transform 0.9s var(--ease-out) 0.3s;
}

body.is-ready .dock {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dock::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 14px;
  height: 14px;
  border-left: 1px solid var(--cyan);
  border-top: 1px solid var(--cyan);
  opacity: 0.7;
}

.dock::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 14px;
  height: 14px;
  border-right: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
  opacity: 0.7;
}

.explode-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 207px;
  height: 46px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid rgba(95, 229, 255, 0.24);
  background:
    linear-gradient(110deg, rgba(95, 229, 255, 0.095), rgba(95, 229, 255, 0.025) 52%, rgba(95, 229, 255, 0.075));
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}

.explode-btn:hover {
  border-color: rgba(95, 229, 255, 0.58);
  background:
    linear-gradient(110deg, rgba(95, 229, 255, 0.17), rgba(95, 229, 255, 0.04) 52%, rgba(95, 229, 255, 0.11));
}

.explode-btn.is-active {
  border-color: rgba(255, 196, 107, 0.42);
  background:
    linear-gradient(110deg, rgba(255, 196, 107, 0.12), rgba(255, 196, 107, 0.025) 52%, rgba(255, 196, 107, 0.07));
}

.explode-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  color: var(--cyan);
  border: 1px solid rgba(95, 229, 255, 0.3);
  transition: color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}

.explode-btn:hover .explode-btn__icon {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(95, 229, 255, 0.13);
}

.explode-btn.is-active .explode-btn__icon {
  color: var(--amber);
  border-color: rgba(255, 196, 107, 0.3);
}

.explode-btn__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linejoin: round;
}

.explode-btn__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  line-height: 1;
}

.explode-btn__copy strong {
  font-family: var(--font-cn);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.explode-btn__copy small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 5.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: color 0.25s;
}

.explode-btn.is-active .explode-btn__copy small {
  color: rgba(255, 196, 107, 0.64);
}

.explode-btn__meter {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(95, 229, 255, 0.08);
}

.explode-btn__meter i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), rgba(255, 255, 255, 0.7));
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.1s linear, background 0.4s;
}

.explode-btn.is-active .explode-btn__meter i {
  background: linear-gradient(90deg, var(--amber), rgba(255, 255, 255, 0.6));
  box-shadow: 0 0 8px var(--amber);
}

.dock__rule {
  align-self: center;
  width: 1px;
  height: 27px;
  margin: 0 3px;
  background: var(--line);
}

.dock-tool {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 9px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.22s, background 0.22s, border-color 0.22s;
}

.dock-tool:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(126, 191, 212, 0.04);
}

.dock-tool.is-on {
  color: var(--ink-soft);
}

.dock-tool.is-on .dock-tool__icon {
  color: var(--cyan);
  border-color: rgba(95, 229, 255, 0.2);
}

.dock-tool.is-on::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: -8px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  opacity: 0.6;
}

.dock-tool__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: color 0.22s, border-color 0.22s;
}

.dock-tool__icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock-tool__icon .icon-pause {
  fill: currentColor;
  stroke: none;
}

.dock-tool__icon .icon-play {
  display: none;
  fill: currentColor;
  stroke: none;
}

.dock-tool.is-off .icon-pause {
  display: none;
}

.dock-tool.is-off .icon-play {
  display: block;
}

.dock-tool__copy {
  display: flex;
  min-width: 56px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  line-height: 1;
  white-space: nowrap;
}

.dock-tool__copy b {
  color: inherit;
  font-family: var(--font-cn);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.dock-tool__copy small {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 5px;
  letter-spacing: 0.08em;
}

.dock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 46px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.22s, border-color 0.22s, background 0.22s;
}

.dock-icon:hover {
  color: var(--cyan);
  border-color: var(--line);
  background: rgba(95, 229, 255, 0.035);
}

.dock-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dock__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted-2);
  font-family: var(--font-cn);
  font-size: 7px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
}

.dock__hint i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--muted-2);
  opacity: 0.7;
}

/* =========================================================
   Explode readout
   ========================================================= */

.explode-state {
  position: absolute;
  z-index: 26;
  left: 50%;
  bottom: 126px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 196, 107, 0.1);
  background: rgba(3, 10, 15, 0.54);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  opacity: 0;
  transform: translateX(-50%) translateY(5px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.explode-state.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.explode-state__copy {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  text-align: right;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.explode-state__copy small {
  margin-right: 7px;
  color: var(--muted-2);
  font-size: 5.5px;
  letter-spacing: 0.15em;
}

.explode-state__copy b {
  color: var(--amber);
  font-size: 15px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 14px rgba(255, 196, 107, 0.25);
}

.explode-state__copy em {
  color: var(--muted);
  font-size: 6px;
  font-style: normal;
}

.explode-state__line {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 196, 107, 0.42));
}

.explode-state__line--right {
  background: linear-gradient(90deg, rgba(255, 196, 107, 0.42), transparent);
}

/* =========================================================
   Peripheral HUD detail
   ========================================================= */

.scene-caption {
  position: absolute;
  z-index: 8;
  left: 351px;
  top: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 5.5px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s var(--ease-out) 0.5s;
}

body.is-ready .scene-caption,
body.is-ready .scale-readout,
body.is-ready .orientation {
  opacity: 1;
}

.scene-caption__index {
  color: var(--cyan);
  font-size: 6px;
}

.scene-caption__line {
  width: 24px;
  height: 1px;
  background: var(--line);
}

.scene-caption__text {
  color: var(--muted-2);
}

.scale-readout {
  position: absolute;
  z-index: 8;
  right: 349px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: 0.1em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s var(--ease-out) 0.5s;
}

.scale-readout b {
  color: var(--muted);
  font-size: 6px;
  font-weight: 400;
}

.scale-readout__ticks {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 7px;
}

.scale-readout__ticks i {
  display: block;
  width: 1px;
  height: 4px;
  background: var(--muted-2);
}

.scale-readout__ticks i:nth-child(2),
.scale-readout__ticks i:nth-child(4) {
  height: 6px;
}

.scale-readout__ticks i:nth-child(3) {
  height: 8px;
  background: var(--muted);
}

.orientation {
  position: absolute;
  z-index: 8;
  left: 351px;
  bottom: 29px;
  width: 42px;
  height: 42px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease-out) 0.5s;
}

.orientation__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orientation__ring::before,
.orientation__ring::after {
  content: "";
  position: absolute;
  background: var(--line);
}

.orientation__ring::before {
  left: 50%;
  top: -3px;
  width: 1px;
  height: 4px;
}

.orientation__ring::after {
  left: 50%;
  bottom: -3px;
  width: 1px;
  height: 4px;
}

.orientation__dial {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 11px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  transform-origin: 50% 0;
  transform: rotate(24deg);
}

.orientation__center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 7px var(--cyan);
  transform: translate(-50%, -50%);
}

.orientation__n {
  position: absolute;
  left: 50%;
  top: -11px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 5px;
  letter-spacing: 0;
  transform: translateX(-50%);
}

/* =========================================================
   Hover callout
   ========================================================= */

.hover-pin {
  position: absolute;
  z-index: 45;
  left: 0;
  top: 0;
  display: block;
  width: 9px;
  height: 9px;
  color: var(--cyan);
  border: 1px solid currentColor;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.16s ease;
}

.hover-pin::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}

.hover-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 23px;
  height: 23px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.28;
  transform: translate(-50%, -50%);
  animation: pin-pulse 2.2s ease-out infinite;
}

.hover-pin.is-visible {
  opacity: 1;
}

@keyframes pin-pulse {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0.8; }
  75%, 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.hover-card {
  --hover-accent: var(--cyan);
  --hover-glow: rgba(95, 229, 255, 0.16);
  position: absolute;
  z-index: 46;
  left: 0;
  top: 0;
  width: 221px;
  padding: 10px 11px 9px;
  border: 1px solid var(--hover-glow);
  background:
    linear-gradient(120deg, rgba(12, 25, 35, 0.96), rgba(4, 10, 16, 0.95));
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(226, 251, 255, 0.05);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-500px, -500px, 0);
  transition: opacity 0.15s ease;
}

.hover-card.is-visible {
  opacity: 1;
}

.hover-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-left: 1px solid var(--hover-accent);
  border-top: 1px solid var(--hover-accent);
  opacity: 0.85;
}

.hover-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-right: 1px solid var(--hover-accent);
  border-bottom: 1px solid var(--hover-accent);
  opacity: 0.5;
}

.hover-card__edge {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hover-accent), transparent);
  opacity: 0.55;
}

.hover-card__top {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: baseline;
  gap: 5px;
}

.hover-card__index {
  color: var(--hover-accent);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.02em;
}

.hover-card__name {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hover-card__en {
  grid-column: 2;
  overflow: hidden;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hover-card__bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 7px;
  color: var(--muted);
  border-top: 1px solid rgba(126, 191, 212, 0.11);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.hover-card__bottom > span:first-child {
  color: var(--muted);
}

.hover-card__bottom b {
  color: var(--ink);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hover-card__bottom i {
  width: 1px;
  height: 8px;
  background: var(--line);
}

.hover-card__bottom span:last-child {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-cn);
  font-size: 7px;
  text-overflow: ellipsis;
}

/* =========================================================
   Loader + fatal state
   ========================================================= */

.loader {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(20, 54, 70, 0.33), transparent 36%),
    linear-gradient(180deg, #04090f, #020509);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(83, 171, 196, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 171, 196, 0.045) 1px, transparent 1px);
  background-size: 70px 70px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  position: relative;
  width: min(360px, calc(100vw - 56px));
  text-align: center;
}

.loader__mark {
  width: 70px;
  height: 70px;
  margin: 0 auto 24px;
  color: var(--cyan);
  filter: drop-shadow(0 0 17px rgba(95, 229, 255, 0.2));
  animation: loader-rotate 15s linear infinite;
}

.loader__mark svg {
  width: 100%;
  height: 100%;
}

@keyframes loader-rotate {
  to { transform: rotate(360deg); }
}

.loader__kicker {
  margin: 0 0 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.2em;
}

.loader h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.12em;
}

.loader h2 span {
  color: var(--cyan);
  opacity: 0.7;
}

.loader__bar {
  position: relative;
  height: 2px;
  margin-top: 27px;
  overflow: hidden;
  background: rgba(126, 191, 212, 0.12);
}

.loader__bar i {
  display: block;
  width: 2%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), #d8fbff);
  box-shadow: 0 0 12px var(--cyan);
  transition: width 0.55s var(--ease-out);
}

.loader__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--font-cn);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.loader__status b {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.fatal {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 10, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.fatal[hidden] {
  display: none;
}

.fatal__card {
  width: min(420px, 100%);
  padding: 26px;
  border: 1px solid rgba(255, 121, 95, 0.3);
  background: rgba(9, 15, 21, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.fatal__card .micro-label {
  color: var(--danger);
}

.fatal__card h2 {
  margin: 13px 0 10px;
  font-family: var(--font-cn);
  font-size: 22px;
  font-weight: 400;
}

.fatal__card p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-cn);
  font-size: 11px;
  line-height: 1.8;
}

.fatal__card button {
  margin-top: 22px;
  padding: 9px 16px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(95, 229, 255, 0.05);
  font-family: var(--font-cn);
  font-size: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.fatal__card button:hover {
  border-color: var(--cyan);
  background: rgba(95, 229, 255, 0.1);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-height: 850px) and (min-width: 1101px) {
  .brand-block {
    padding-top: 15px;
  }

  .subject-row {
    margin-top: 19px;
  }

  .spec-strip {
    margin-top: 16px;
  }

  .list-heading {
    margin-top: 14px;
    padding-bottom: 7px;
  }

  .part-item {
    min-height: 43px;
  }

  .part-item__name {
    font-size: 11px;
  }

  .sidebar-footer {
    min-height: 38px;
  }

  .detail-body {
    padding-top: 18px;
  }

  .mass-hero {
    margin-top: 17px;
  }

  .spec-section,
  .metrics-section {
    margin-top: 17px;
  }
}

@media (max-width: 1500px) {
  .scale-readout,
  .scene-caption {
    display: none;
  }

  .frame-ticks--left {
    left: 344px;
  }

  .frame-ticks--right {
    right: 336px;
  }
}

@media (max-width: 1240px) {
  .orientation {
    display: none;
  }

  .status-rail {
    gap: 9px;
    font-size: 6px;
  }

  .panel--parts {
    width: 296px;
  }

  .panel--detail {
    width: 288px;
  }

  .brand-name {
    font-size: 14px;
  }

  .subject-row h1 {
    font-size: 36px;
  }

  .spec-strip b {
    font-size: 12px;
  }

  .frame-ticks--left {
    left: 324px;
  }

  .frame-ticks--right {
    right: 318px;
  }
}

@media (max-width: 1240px) {
  .mobile-controls {
    display: flex;
  }

  body.panel-open .mobile-controls,
  body.panel-open .status-rail,
  body.panel-open .dock {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .frame-ticks,
  .orientation,
  .scale-readout,
  .scene-caption {
    display: none;
  }

  .panel {
    z-index: 40;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.36s var(--ease), opacity 0.28s ease, visibility 0.36s;
  }

  .panel--parts {
    left: 12px;
    top: 12px;
    bottom: 12px;
    width: min(330px, calc(100vw - 24px));
    transform: translateX(calc(-100% - 22px));
  }

  .panel--detail {
    right: 12px;
    top: 12px;
    bottom: 12px;
    width: min(330px, calc(100vw - 24px));
    transform: translateX(calc(100% + 22px));
  }

  .panel.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .status-rail {
    top: 16px;
    left: auto;
    right: 15px;
    transform: none;
    font-size: 5.5px;
    padding: 0 9px;
    gap: 8px;
  }

  .status-rail .mode-label,
  .status-rail .mode-value {
    display: none;
  }

  .status-rail__divider:last-of-type {
    display: none;
  }

  .rail-clock {
    display: inline;
  }

  .dock {
    bottom: 34px;
  }

  .explode-state {
    bottom: 112px;
  }

  .panel-scrim.is-visible {
    display: block;
  }
}

@media (max-width: 760px) {
  .status-rail {
    display: none;
  }

  .mobile-controls {
    top: 12px;
    left: 12px;
  }

  .mobile-control {
    height: 30px;
    font-size: 8.5px;
  }

  .panel--parts,
  .panel--detail {
    top: 12px;
    bottom: 12px;
  }

  .brand-block {
    padding-top: 15px;
  }

  .subject-row {
    margin-top: 20px;
  }

  .subject-row h1 {
    font-size: 36px;
  }

  .spec-strip {
    margin-top: 17px;
  }

  .list-heading {
    margin-top: 16px;
  }

  .part-item {
    min-height: 46px;
  }

  .dock {
    left: 12px;
    right: 12px;
    bottom: max(15px, env(safe-area-inset-bottom));
    min-height: 56px;
    padding: 5px;
    gap: 3px;
    transform: translateY(10px);
  }

  body.is-ready .dock {
    transform: translateY(0);
  }

  .explode-btn {
    width: auto;
    min-width: 0;
    flex: 1 1 48%;
    height: 44px;
    padding: 0 10px;
    gap: 8px;
  }

  .explode-btn__icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .explode-btn__copy strong {
    font-size: 10.5px;
  }

  .explode-btn__copy small {
    font-size: 5px;
  }

  .dock__rule {
    margin: 0 1px;
  }

  .dock-tool {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 7px;
    gap: 0;
  }

  .dock-tool__copy {
    display: none;
  }

  .dock-tool__icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .dock-tool.is-on::after {
    left: 7px;
    right: 7px;
    bottom: -6px;
  }

  .dock-icon {
    width: 32px;
    height: 44px;
  }

  .dock__hint {
    display: none;
  }

  .explode-state {
    bottom: 94px;
    gap: 8px;
  }

  .explode-state__line {
    width: 20px;
  }

  .explode-state__copy b {
    font-size: 12px;
  }

  .explode-state__copy small {
    font-size: 5px;
    margin-right: 4px;
  }

  .hover-card {
    width: 196px;
    padding: 9px 10px 8px;
  }

  .hover-card__name {
    font-size: 10px;
  }

  .hover-card__bottom span:last-child {
    display: none;
  }

  .hover-card__bottom i {
    display: none;
  }

  .bar {
    display: none;
  }

  .overview-blueprint {
    height: 120px;
  }

  .detail-body {
    padding-top: 18px;
  }
}

@media (max-width: 390px) {
  .explode-btn {
    padding: 0 8px;
    gap: 7px;
  }

  .explode-btn__icon {
    display: none;
  }

  .dock-tool {
    padding: 0 5px;
  }

  .dock-icon {
    width: 28px;
  }

  .explode-btn__copy small {
    letter-spacing: 0.04em;
  }

  .mobile-control b {
    display: none;
  }

  .mass-hero__value {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
