.blueprint-screen {
  --bp-panel: rgba(2, 9, 15, 0.86);
  --bp-panel-solid: #061019;
  --bp-cyan-dim: rgba(0, 231, 255, 0.24);
  --bp-grid: rgba(0, 231, 255, 0.08);
  color: #dffcff;
  font-variant-numeric: tabular-nums;
}

.blueprint-screen::before,
.blueprint-screen::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.blueprint-screen::before {
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 28%, rgba(0, 13, 21, 0.15) 58%, rgba(1, 5, 9, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 231, 255, 0.03), transparent 22% 78%, rgba(255, 42, 169, 0.025));
}

.blueprint-screen::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  opacity: 0.25;
  background: linear-gradient(transparent, var(--cyan) 20% 80%, transparent);
  box-shadow: 0 0 22px rgba(0, 231, 255, 0.3);
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.72;
  pointer-events: none;
  background-image:
    linear-gradient(var(--bp-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px),
    linear-gradient(rgba(0, 231, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 231, 255, 0.035) 1px, transparent 1px);
  background-position: center;
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  mask-image: radial-gradient(circle at center, black 0 56%, transparent 92%);
}

.blueprint-header {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  left: max(18px, env(safe-area-inset-left));
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 16px;
  border: 1px solid var(--bp-cyan-dim);
  background: linear-gradient(90deg, rgba(3, 13, 20, 0.94), rgba(3, 13, 20, 0.46) 62%, rgba(3, 13, 20, 0.9));
  box-shadow: inset 0 -1px rgba(0, 231, 255, 0.12), 0 12px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.blueprint-header::before {
  position: absolute;
  top: -1px;
  left: 16%;
  width: 16%;
  height: 2px;
  background: var(--magenta);
  box-shadow: 0 0 15px var(--magenta);
  content: "";
}

.blueprint-brand {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 0;
}

.blueprint-brand p,
.blueprint-brand h1 {
  margin: 0;
  text-transform: uppercase;
}

.blueprint-brand p {
  margin-bottom: 4px;
  color: rgba(213, 250, 255, 0.58);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.blueprint-brand h1 {
  overflow: hidden;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(16px, 1.65vw, 25px);
  font-weight: 400;
  letter-spacing: 0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blueprint-brand h1 b {
  color: var(--cyan);
  font-weight: inherit;
}

.blueprint-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
  box-shadow: inset 0 0 18px rgba(0, 231, 255, 0.15), 0 0 16px rgba(0, 231, 255, 0.14);
}

.blueprint-mark i {
  position: absolute;
  display: block;
  border: 1px solid rgba(0, 231, 255, 0.6);
  border-radius: 50%;
}

.blueprint-mark i:nth-child(1) { width: 23px; height: 23px; }
.blueprint-mark i:nth-child(2) { width: 11px; height: 11px; border-color: var(--magenta); }
.blueprint-mark i:nth-child(3) { width: 3px; height: 3px; background: var(--yellow); border: 0; }

.blueprint-header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.blueprint-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: rgba(213, 250, 255, 0.66);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blueprint-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  content: "";
}

.blueprint-status[data-state="ready"]::before {
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.blueprint-status[data-state="error"]::before {
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

.blueprint-close,
.dossier-heading button,
.dossier-actions button,
.blueprint-toolbar button,
.blueprint-sequence button,
.dossier-tabs button {
  border: 1px solid rgba(0, 231, 255, 0.22);
  background: rgba(0, 19, 29, 0.72);
  color: rgba(223, 252, 255, 0.72);
  cursor: pointer;
  text-transform: uppercase;
}

.blueprint-close {
  min-height: 34px;
  padding: 0 13px;
  color: var(--bone);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.blueprint-close:hover,
.dossier-heading button:hover,
.dossier-actions button:hover,
.blueprint-toolbar button:hover,
.blueprint-sequence button:hover,
.dossier-tabs button:hover,
.blueprint-toolbar button[data-active="true"],
.blueprint-sequence button[data-active="true"],
.dossier-tabs button[data-active="true"] {
  border-color: var(--cyan);
  color: white;
  box-shadow: inset 0 -2px var(--cyan), 0 0 18px rgba(0, 231, 255, 0.1);
}

.blueprint-tree-panel,
.blueprint-dossier,
.blueprint-sequence,
.blueprint-toolbar {
  pointer-events: auto;
  border: 1px solid var(--bp-cyan-dim);
  background: var(--bp-panel);
  box-shadow: inset 0 0 36px rgba(0, 231, 255, 0.025), 0 22px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.blueprint-tree-panel,
.blueprint-dossier {
  position: absolute;
  top: 86px;
  bottom: 174px;
  z-index: 6;
  display: flex;
  min-height: 280px;
  flex-direction: column;
  overflow: hidden;
}

.blueprint-tree-panel {
  left: max(18px, env(safe-area-inset-left));
  width: clamp(238px, 20vw, 292px);
}

.blueprint-tree-panel > header,
.dossier-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 47px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(0, 231, 255, 0.13);
  background: linear-gradient(90deg, rgba(0, 231, 255, 0.055), transparent);
}

.blueprint-tree-panel > header p,
.blueprint-tree-panel > header strong,
.dossier-heading span {
  margin: 0;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.blueprint-tree-panel > header p { color: rgba(223, 252, 255, 0.5); }
.blueprint-tree-panel > header strong { color: var(--yellow); }

.blueprint-search {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 231, 255, 0.1);
}

.blueprint-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.blueprint-search input {
  width: 100%;
  height: 33px;
  padding: 0 10px;
  border: 1px solid rgba(0, 231, 255, 0.16);
  outline: 0;
  background: rgba(0, 0, 0, 0.25);
  color: var(--bone);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.blueprint-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 231, 255, 0.12);
}

.blueprint-part-tree {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(0, 231, 255, 0.35) transparent;
}

.blueprint-tree-group h3 {
  margin: 0;
  padding: 11px 10px 6px;
  border-bottom: 1px solid rgba(0, 231, 255, 0.08);
  color: rgba(223, 252, 255, 0.42);
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blueprint-part-button {
  position: relative;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 5px 10px;
  border: 0;
  border-bottom: 1px solid rgba(0, 231, 255, 0.07);
  background: transparent;
  color: rgba(223, 252, 255, 0.64);
  cursor: pointer;
  text-align: left;
}

.blueprint-part-button::before {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(0, 231, 255, 0.3);
  color: rgba(0, 231, 255, 0.7);
  font-size: 7px;
  content: attr(data-index);
}

.blueprint-part-button span {
  overflow: hidden;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.blueprint-part-button small {
  color: rgba(223, 252, 255, 0.34);
  font-size: 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blueprint-part-button:hover,
.blueprint-part-button[data-active="true"] {
  background: linear-gradient(90deg, rgba(0, 231, 255, 0.12), transparent);
  color: white;
}

.blueprint-part-button[data-active="true"]::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  content: "";
}

.blueprint-tree-footer {
  display: flex;
  gap: 9px;
  padding: 9px 10px;
  border-top: 1px solid rgba(0, 231, 255, 0.1);
}

.blueprint-tree-footer span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: rgba(223, 252, 255, 0.42);
  font-size: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blueprint-tree-footer i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.legend-established { background: var(--cyan); }
.legend-extrapolated { background: var(--yellow); }
.legend-fictional { background: var(--magenta); }

.blueprint-dossier {
  right: max(18px, env(safe-area-inset-right));
  width: clamp(292px, 23vw, 360px);
}

.dossier-heading span { color: rgba(223, 252, 255, 0.46); }

.dossier-heading button {
  min-height: 26px;
  padding: 0 10px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.dossier-hero {
  position: relative;
  padding: 20px 18px 17px;
  border-bottom: 1px solid rgba(0, 231, 255, 0.12);
  background:
    linear-gradient(120deg, rgba(0, 231, 255, 0.1), transparent 55%),
    linear-gradient(310deg, rgba(255, 42, 169, 0.07), transparent 50%);
}

.dossier-hero p,
.dossier-hero h2 {
  margin: 0;
}

.dossier-hero p {
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dossier-hero h2 {
  padding-right: 74px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(20px, 2vw, 31px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

#blueprint-reality-class {
  position: absolute;
  top: 19px;
  right: 13px;
  max-width: 72px;
  padding: 5px 6px;
  border: 1px solid var(--magenta);
  color: var(--magenta);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

#blueprint-reality-class[data-class="established"] { border-color: var(--cyan); color: var(--cyan); }
#blueprint-reality-class[data-class="extrapolated"] { border-color: var(--yellow); color: var(--yellow); }

.dossier-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid rgba(0, 231, 255, 0.11);
}

.dossier-tabs button {
  min-height: 33px;
  padding: 0 3px;
  border: 0;
  border-right: 1px solid rgba(0, 231, 255, 0.08);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.dossier-copy {
  min-height: 92px;
  flex: 1;
  overflow: auto;
  padding: 15px 18px;
  color: rgba(223, 252, 255, 0.7);
  font-family: "Segoe UI", sans-serif;
  font-size: 11px;
  line-height: 1.56;
  scrollbar-color: rgba(0, 231, 255, 0.35) transparent;
}

.dossier-copy p { margin: 0 0 10px; }

.dossier-copy strong {
  color: var(--bone);
  font-family: "Arial Narrow", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dossier-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid rgba(0, 231, 255, 0.1);
  border-bottom: 1px solid rgba(0, 231, 255, 0.1);
}

.dossier-metrics div {
  min-width: 0;
  padding: 9px 8px;
  border-right: 1px solid rgba(0, 231, 255, 0.08);
}

.dossier-metrics dt,
.dossier-metrics dd {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dossier-metrics dt {
  color: rgba(223, 252, 255, 0.35);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dossier-metrics dd {
  margin-top: 4px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
}

.dossier-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 9px;
}

.dossier-actions button {
  min-height: 29px;
  padding: 0 4px;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.blueprint-downloads {
  border-top: 1px solid rgba(0, 231, 255, 0.1);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.blueprint-downloads summary {
  padding: 10px 12px;
  color: var(--yellow);
  cursor: pointer;
  font-weight: 800;
}

.blueprint-downloads a {
  display: block;
  padding: 7px 13px;
  border-top: 1px solid rgba(0, 231, 255, 0.07);
  color: rgba(223, 252, 255, 0.68);
  text-decoration: none;
}

.blueprint-downloads a:hover { color: var(--cyan); }

.dossier-evidence {
  display: grid;
  gap: 6px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid rgba(0, 231, 255, 0.18);
}

.dossier-evidence h3 {
  margin: 0 0 3px;
  color: var(--yellow);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dossier-evidence a {
  padding-left: 9px;
  border-left: 1px solid rgba(0, 231, 255, 0.28);
  color: rgba(223, 252, 255, 0.67);
  font-size: 9px;
  line-height: 1.45;
  text-decoration: none;
}

.dossier-evidence a:hover { color: var(--cyan); }

.blueprint-viewport-overlay {
  position: absolute;
  inset: 80px 0 165px;
  z-index: 2;
  pointer-events: none;
}

.blueprint-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(32vw, 430px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 231, 255, 0.1);
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(0, 231, 255, 0.025);
}

.blueprint-reticle::before,
.blueprint-reticle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(0, 231, 255, 0.12);
  content: "";
}

.blueprint-reticle::before { width: 120%; height: 1px; transform: translate(-50%, -50%); }
.blueprint-reticle::after { width: 1px; height: 120%; transform: translate(-50%, -50%); }

.blueprint-reticle i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.5;
}

.blueprint-reticle i:nth-child(1) { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.blueprint-reticle i:nth-child(2) { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.blueprint-reticle i:nth-child(3) { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.blueprint-reticle i:nth-child(4) { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }

.blueprint-readout {
  position: absolute;
  display: grid;
  gap: 4px;
  color: rgba(0, 231, 255, 0.5);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.blueprint-readout-left { bottom: 22%; left: calc(clamp(238px, 20vw, 292px) + 34px); }
.blueprint-readout-right { top: 4%; right: calc(clamp(292px, 23vw, 360px) + 36px); text-align: right; }

.blueprint-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 200ms ease;
}

.blueprint-loading[data-state="idle"],
.blueprint-loading[data-state="loading"],
.blueprint-loading[data-state="error"] { opacity: 1; }
.blueprint-loading[data-state="ready"] { opacity: 0; }
.blueprint-loading[hidden] { display: none; }

.blueprint-loading strong {
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blueprint-loading small {
  color: rgba(223, 252, 255, 0.4);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blueprint-loader {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 231, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: blueprint-spin 1.8s linear infinite;
}

@keyframes blueprint-spin { to { transform: rotate(360deg); } }

.blueprint-coordinate {
  position: absolute;
  right: calc(clamp(292px, 23vw, 360px) + 38px);
  bottom: 184px;
  z-index: 3;
  width: 54px;
  height: 54px;
  pointer-events: none;
}

.blueprint-coordinate span {
  position: absolute;
  font-size: 8px;
  font-weight: 900;
}

.blueprint-coordinate::before,
.blueprint-coordinate::after {
  position: absolute;
  bottom: 12px;
  left: 14px;
  transform-origin: bottom left;
  content: "";
}

.blueprint-coordinate::before { width: 33px; height: 1px; background: var(--red); }
.blueprint-coordinate::after { width: 1px; height: 33px; background: var(--cyan); }
.blueprint-coordinate .axis-x { right: 0; bottom: 8px; color: var(--red); }
.blueprint-coordinate .axis-y { left: 10px; bottom: 45px; color: var(--cyan); }
.blueprint-coordinate .axis-z { left: 43px; bottom: 38px; color: var(--yellow); }

.blueprint-sequence {
  position: absolute;
  right: calc(clamp(292px, 23vw, 360px) + 30px);
  bottom: 103px;
  left: calc(clamp(238px, 20vw, 292px) + 30px);
  z-index: 7;
  display: grid;
  grid-template-columns: 130px minmax(300px, 1.3fr) minmax(180px, 0.7fr);
  min-height: 60px;
  overflow: hidden;
}

.blueprint-sequence > header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 13px;
  border-right: 1px solid rgba(0, 231, 255, 0.12);
}

.blueprint-sequence > header span,
.blueprint-sequence > header b {
  display: block;
  text-transform: uppercase;
}

.blueprint-sequence > header span {
  color: rgba(223, 252, 255, 0.4);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.blueprint-sequence > header b {
  margin-top: 5px;
  color: var(--yellow);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.blueprint-mode-list,
.blueprint-flow-list {
  display: flex;
  min-width: 0;
  overflow: auto;
  scrollbar-width: none;
}

.blueprint-mode-list { border-right: 1px solid rgba(0, 231, 255, 0.12); }
.blueprint-mode-list::-webkit-scrollbar,
.blueprint-flow-list::-webkit-scrollbar { display: none; }

.blueprint-mode-list button,
.blueprint-flow-list button {
  min-width: 68px;
  flex: 1 0 auto;
  padding: 5px 8px;
  border: 0;
  border-right: 1px solid rgba(0, 231, 255, 0.08);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.2;
}

.blueprint-toolbar {
  position: absolute;
  right: calc(clamp(292px, 23vw, 360px) + 30px);
  bottom: max(18px, env(safe-area-inset-bottom));
  left: calc(clamp(238px, 20vw, 292px) + 30px);
  z-index: 8;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.65fr 1fr;
  min-height: 76px;
  overflow: hidden;
}

.blueprint-tool-group,
.blueprint-slider,
.blueprint-section-tools {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border-right: 1px solid rgba(0, 231, 255, 0.1);
}

.blueprint-tool-group > span,
.blueprint-slider > span {
  color: rgba(223, 252, 255, 0.38);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blueprint-toolbar button,
.blueprint-toolbar select {
  min-height: 29px;
  padding: 0 8px;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.blueprint-toolbar select {
  border: 1px solid rgba(0, 231, 255, 0.22);
  background: #06121b;
  color: var(--cyan);
}

.blueprint-slider {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
}

.blueprint-slider span {
  display: flex;
  justify-content: space-between;
}

.blueprint-slider output { color: var(--cyan); }
.blueprint-slider input { margin: 0; }

.blueprint-section-tools input {
  min-width: 54px;
  flex: 1;
}

@media (max-width: 1100px) {
  .blueprint-tree-panel { width: 224px; }
  .blueprint-dossier { width: 282px; }
  .blueprint-sequence,
  .blueprint-toolbar { left: 254px; right: 312px; }
  .blueprint-sequence { grid-template-columns: 105px 1fr; }
  .blueprint-flow-list { display: none; }
  .blueprint-toolbar { grid-template-columns: 1.15fr 0.8fr 0.7fr; }
  .blueprint-section-tools { display: none; }
  .blueprint-readout-left { left: 254px; }
  .blueprint-readout-right,
  .blueprint-coordinate { right: 312px; }
}

@media (max-width: 800px) {
  .blueprint-header {
    top: max(8px, env(safe-area-inset-top));
    right: 8px;
    left: 8px;
    height: 54px;
    padding: 0 10px;
  }

  .blueprint-brand p { display: none; }
  .blueprint-brand h1 { max-width: 48vw; font-size: 15px; }
  .blueprint-brand h1 b { display: block; }
  .blueprint-mark { width: 29px; height: 29px; }
  .blueprint-status { display: none; }
  .blueprint-close { padding: 0 9px; font-size: 6px; }

  .blueprint-tree-panel {
    top: 69px;
    right: 8px;
    bottom: auto;
    left: 8px;
    width: auto;
    min-height: 0;
    height: 104px;
  }

  .blueprint-tree-panel > header,
  .blueprint-tree-footer,
  .blueprint-search { display: none; }

  .blueprint-part-tree {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .blueprint-tree-group { display: flex; flex: 0 0 auto; height: 100%; }
  .blueprint-tree-group h3 { display: none; }

  .blueprint-part-button {
    width: 126px;
    min-width: 126px;
    height: 100%;
    grid-template-columns: 23px 1fr;
    align-content: center;
    border-right: 1px solid rgba(0, 231, 255, 0.09);
    border-bottom: 0;
  }

  .blueprint-part-button span { white-space: normal; }
  .blueprint-part-button small { display: none; }

  .blueprint-dossier {
    top: auto;
    right: 8px;
    bottom: 112px;
    left: 8px;
    width: auto;
    min-height: 0;
    height: min(238px, 31dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .dossier-heading { min-height: 34px; }
  .dossier-hero { padding: 11px 13px; }
  .dossier-hero p { margin-bottom: 3px; }
  .dossier-hero h2 { font-size: 18px; }
  #blueprint-reality-class { top: 9px; }
  .dossier-tabs button { min-height: 28px; }
  .dossier-copy {
    min-height: 50px;
    flex: 0 0 auto;
    overflow: visible;
    padding: 9px 13px;
    font-size: 10px;
  }

  .blueprint-sequence {
    top: 181px;
    right: 8px;
    bottom: auto;
    left: 8px;
    min-height: 78px;
    grid-template-columns: 92px 1fr;
    grid-template-rows: 47px 31px;
  }

  .blueprint-sequence > header { padding: 0 8px; }
  .blueprint-flow-list {
    display: flex;
    grid-row: 2;
    grid-column: 1 / -1;
    border-top: 1px solid rgba(0, 231, 255, 0.1);
  }
  .blueprint-flow-list button { min-width: 108px; }
  .blueprint-mode-list button { min-width: 62px; }

  .blueprint-toolbar {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    display: flex;
    min-height: 94px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .blueprint-tool-group,
  .blueprint-slider,
  .blueprint-section-tools {
    min-width: max-content;
    padding: 7px;
  }

  .blueprint-views { min-width: 310px; }
  .blueprint-slider { min-width: 145px; }
  .blueprint-section-tools { display: flex; min-width: 310px; }
  .blueprint-toolbar button,
  .blueprint-toolbar select { min-height: 38px; }

  .blueprint-viewport-overlay { inset: 259px 0 350px; }
  .blueprint-reticle { width: min(52vw, 270px); }
  .blueprint-readout,
  .blueprint-coordinate { display: none; }
}

@media (max-height: 700px) and (min-width: 801px) {
  .blueprint-tree-panel,
  .blueprint-dossier { bottom: 144px; }
  .blueprint-sequence { display: none; }
  .blueprint-toolbar { bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .blueprint-loader { animation: none; }
}
