:root {
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #123a58;
  background: #cfe4f4;
  --ink: #123a58;
  --ink-soft: #426984;
  --line: rgba(255, 255, 255, .82);
  --line-blue: rgba(66, 125, 164, .24);
  --glass-top: rgba(180, 216, 239, .25);
  --glass-bottom: rgba(102, 164, 205, .16);
  --active: #2a9d78;
  --warning: #ba7543;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #cfe4f4;
}

body {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.stage,
.media-shell {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.media-shell {
  isolation: isolate;
  background: #cfe4f4;
}

.dog-canvas,
.dog-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

.scene-grade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(101, 158, 197, .14), transparent 29%, transparent 71%, rgba(101, 158, 197, .12)),
    linear-gradient(180deg, rgba(250, 254, 255, .06) 52%, rgba(109, 163, 200, .13));
}

.glass-panel {
  color: var(--ink);
  background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
  border: 1px solid var(--line);
  box-shadow:
    0 10px 30px rgba(31, 76, 109, .1),
    inset 0 1px 0 rgba(255, 255, 255, .46);
  contain: layout paint style;
}

.hud-frame {
  position: absolute;
  inset: 128px 28px 126px;
  z-index: 2;
  pointer-events: none;
  border-inline: 1px solid rgba(242, 251, 255, .48);
}

.hud-frame::before,
.hud-frame::after {
  position: absolute;
  left: -3px;
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 0 10px rgba(255, 255, 255, .8);
}

.hud-frame::before {
  top: 42%;
}

.hud-frame::after {
  bottom: 8%;
}

.hud-corner {
  position: absolute;
  width: 35px;
  height: 35px;
  border-color: rgba(255, 255, 255, .9);
  border-style: solid;
}

.hud-corner-nw {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.hud-corner-ne {
  top: -1px;
  right: -1px;
  border-width: 1px 1px 0 0;
}

.hud-corner-sw {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 1px 1px;
}

.hud-corner-se {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.topbar {
  position: absolute;
  top: 22px;
  right: 28px;
  left: 28px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(400px, 1.15fr) minmax(180px, 1fr);
  align-items: center;
  min-height: 82px;
  padding: 12px 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(119, 176, 215, .24), rgba(173, 211, 236, .16));
}

.brand-lockup,
.metric-block,
.metric-copy,
.status-heading {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 13px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  color: rgba(251, 254, 255, .96);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .3));
}

.brand-mark svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.brand-copy,
.metric-copy,
.status-heading {
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.brand-copy strong {
  font-size: clamp(16px, 1.45vw, 22px);
  letter-spacing: .06em;
  color: rgba(249, 253, 255, .96);
  text-shadow: 0 1px 6px rgba(32, 78, 111, .26);
}

.brand-copy small,
.metric-copy small,
.status-eyebrow,
.section-kicker {
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .16em;
  color: #56809b;
}

.brand-copy small {
  margin-top: 3px;
  color: rgba(241, 249, 254, .76);
}

.topbar-signal {
  display: flex;
  align-items: center;
  gap: 0;
  padding-left: 2px;
}

.topbar-signal > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.signal-pulse,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d39745;
  box-shadow: 0 0 0 4px rgba(211, 151, 69, .12);
}

.topbar-signal .signal-pulse {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 0 12px rgba(255, 255, 255, .86);
}

.topbar-signal.is-ready .signal-pulse,
.status-widget[data-ready="true"] .status-dot {
  background: var(--active);
  box-shadow: 0 0 0 4px rgba(42, 157, 120, .12), 0 0 12px rgba(42, 157, 120, .35);
}

.topnav {
  display: grid;
  grid-template-columns: repeat(4, minmax(76px, 1fr));
  align-items: center;
  justify-self: stretch;
}

.topnav button {
  position: relative;
  min-height: 38px;
  padding: 7px 12px;
  color: #173f5d;
  border: 0;
  background: transparent;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
}

.topnav button + button::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, .64);
}

.topnav button::after {
  position: absolute;
  right: 30%;
  bottom: 1px;
  left: 30%;
  height: 1px;
  content: "";
  opacity: 0;
  background: rgba(255, 255, 255, .9);
  transform: scaleX(.3);
  transition: opacity 140ms ease, transform 140ms ease;
}

.topnav button:hover::after,
.topnav button:focus-visible::after,
.topnav button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.topnav button.is-active {
  color: #0e3654;
}

.topbar-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 138px;
  min-height: 43px;
  padding: 8px 17px;
  color: #275b7e;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .52), rgba(191, 223, 242, .68));
  box-shadow: inset 0 1px 0 white, 0 5px 15px rgba(66, 112, 143, .12);
  cursor: pointer;
}

.topbar-action:hover,
.route-button:hover,
.action-button:hover {
  border-color: white;
  background-color: rgba(255, 255, 255, .72);
}

.topbar-action:active,
.route-button:active,
.action-button:active {
  transform: translateY(1px);
}

.topbar-action:focus-visible,
.route-button:focus-visible,
.status-toggle:focus-visible,
.action-button:focus-visible {
  outline: 2px solid #2f78a9;
  outline-offset: 3px;
}

.error-copy {
  position: absolute;
  top: 40%;
  left: clamp(54px, 6.4vw, 122px);
  z-index: 8;
  width: min(300px, 24vw);
  color: var(--ink);
  transform: translateY(-42%);
  text-shadow: 0 1px rgba(255, 255, 255, .46);
}

.section-kicker {
  display: none;
  margin: 0;
}

.section-kicker span {
  color: #2e709b;
}

.error-code {
  display: inline;
  margin: 0 .2em 0 0;
  font-size: clamp(24px, 2.05vw, 34px);
  font-weight: 780;
  line-height: 1.22;
  letter-spacing: .02em;
  color: var(--ink);
}

.error-copy h1 {
  display: inline;
  margin: 0;
  font-size: clamp(24px, 2.05vw, 34px);
  line-height: 1.22;
  letter-spacing: .04em;
}

.error-lead {
  margin: 10px 0 0;
  font-size: clamp(13px, 1.18vw, 18px);
  font-weight: 600;
  letter-spacing: .03em;
  color: #2d5f7e;
}

.error-rule {
  display: block;
  width: 66px;
  height: 1px;
  margin: 20px 0 16px;
  background: linear-gradient(90deg, rgba(28, 91, 132, .72), transparent);
}

.error-note {
  margin: 0;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.72;
  color: #456e87;
}

.status-widget {
  position: absolute;
  top: 45%;
  right: clamp(46px, 5vw, 96px);
  z-index: 21;
  width: clamp(250px, 19vw, 300px);
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(195, 225, 244, .27), rgba(90, 153, 197, .17));
  transform: translateY(-50%);
}

.status-widget.is-expanded {
  background: linear-gradient(145deg, rgba(195, 225, 244, .34), rgba(90, 153, 197, .22));
}

.status-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 5px 10px;
  width: 100%;
  min-height: 66px;
  padding: 14px 16px 12px;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.status-heading strong {
  margin-top: 2px;
  font-size: 15px;
  letter-spacing: .04em;
}

.status-dot {
  align-self: center;
  justify-self: end;
}

.status-summary {
  grid-column: 1 / 2;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #55788f;
}

.status-summary.has-error {
  color: #a35c4e;
}

.status-chevron {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  color: #53768e;
  transition: transform 180ms ease;
}

.status-widget.is-expanded .status-chevron {
  transform: rotate(180deg);
}

.status-details {
  padding: 0 16px 15px;
  border-top: 1px solid rgba(77, 121, 150, .13);
}

.status-list {
  display: grid;
  margin: 0;
}

.status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid rgba(69, 116, 147, .12);
}

.status-row dt,
.status-row dd {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 11px;
}

.status-row dt {
  gap: 8px;
  color: #56778d;
}

.status-row dd {
  justify-content: flex-end;
  max-width: 125px;
  overflow: hidden;
  font-weight: 700;
  color: #244f6d;
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.row-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #39749c;
  border: 1px solid rgba(56, 114, 155, .3);
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
}

.action-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding-top: 12px;
}

.action-button {
  min-height: 34px;
  padding: 6px 9px;
  color: #28516d;
  border: 1px solid rgba(65, 111, 142, .2);
  border-radius: 10px;
  background: rgba(225, 242, 252, .16);
  font-size: 9px;
  cursor: pointer;
}

.action-button-primary {
  color: #f8fdff;
  border-color: rgba(255, 255, 255, .58);
  background: rgba(49, 115, 158, .42);
}

.action-button.is-active {
  color: #f8fdff;
  background: rgba(45, 131, 106, .46);
}

.status-message {
  margin: 9px 1px 0;
  font-size: 10px;
  line-height: 1.45;
  color: #9a604e;
}

.status-message.renderer-warning {
  color: #9d551f;
  font-weight: 650;
}

.route-cta {
  position: absolute;
  bottom: 132px;
  left: 50%;
  z-index: 18;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
}

.route-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  min-width: 260px;
  min-height: 58px;
  padding: 8px 12px 8px 28px;
  color: #f8fdff;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(96, 157, 198, .54), rgba(43, 105, 149, .62));
  box-shadow:
    0 7px 22px rgba(46, 102, 140, .16),
    0 0 16px rgba(255, 255, 255, .24),
    inset 0 1px 0 rgba(255, 255, 255, .78);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: .06em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.route-arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  font-size: 20px;
}

.route-cta p {
  margin: 8px 0 0;
  font-size: 10px;
  letter-spacing: .03em;
  color: #4d748d;
  text-shadow: 0 1px rgba(255, 255, 255, .6);
}

.system-bar {
  position: absolute;
  right: 28px;
  bottom: 22px;
  left: 28px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(4, minmax(135px, .72fr)) 190px;
  min-height: 86px;
  overflow: hidden;
  padding: 11px 18px;
  border-radius: 22px;
  color: rgba(249, 253, 255, .94);
  background: linear-gradient(135deg, rgba(123, 176, 212, .25), rgba(88, 149, 192, .17));
}

.metric-block {
  position: relative;
  gap: 12px;
  min-width: 0;
  padding: 0 clamp(12px, 1.4vw, 24px);
}

.metric-block + .metric-block::before {
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(70, 119, 151, .2);
}

.metric-copy {
  gap: 3px;
}

.metric-copy strong {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(11px, .9vw, 14px);
  line-height: 1.25;
  color: rgba(250, 254, 255, .95);
  text-shadow: 0 1px 5px rgba(29, 71, 101, .28);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.metric-copy small {
  color: rgba(245, 251, 255, .74);
  white-space: nowrap;
}

.metric-symbol {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: rgba(249, 253, 255, .92);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  font-size: 17px;
}

.metric-icon,
.fps-gauge {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
}

.system-radar::before,
.system-radar::after,
.fps-gauge::before,
.fps-gauge::after {
  position: absolute;
  content: "";
}

.footer-signature {
  position: relative;
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 11px;
  min-width: 0;
  margin: -11px -18px -11px 0;
  padding: 11px 18px 11px 22px;
  color: rgba(250, 254, 255, .96);
  background: linear-gradient(135deg, #a2c1d8 0%, #9bbbd2 56%, #96b6ce 100%);
}

.footer-signature::before {
  position: absolute;
  top: 0;
  right: 100%;
  bottom: 0;
  width: 72px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(161, 192, 214, 0), rgba(161, 192, 214, .94) 84%, #a1c0d6 100%);
}

.signature-orbit {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 50%;
}

.signature-orbit::before,
.signature-orbit::after {
  position: absolute;
  content: "";
}

.signature-orbit::before {
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 50%;
}

.signature-orbit::after {
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 0 9px rgba(255, 255, 255, .72);
  transform: translate(-50%, -50%);
}

.signature-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.signature-copy small {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .13em;
  color: rgba(239, 248, 254, .72);
  white-space: nowrap;
}

.signature-copy strong {
  font-size: 13px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.system-radar::before {
  inset: 7px;
  border: 1px solid rgba(49, 110, 151, .4);
  border-radius: 50%;
}

.system-radar::after {
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--active);
  box-shadow: 0 0 0 6px rgba(42, 157, 120, .1);
  transform: translate(-50%, -50%);
}

.fps-gauge {
  border-top-color: transparent;
  transform: rotate(-36deg);
}

.fps-gauge::before {
  right: 8px;
  bottom: 11px;
  left: 8px;
  height: 1px;
  background: rgba(49, 110, 151, .4);
  transform: rotate(-29deg);
  transform-origin: right center;
}

.fps-gauge::after {
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  transform: translate(-50%, -50%);
}

.info-popover {
  position: absolute;
  top: 118px;
  left: 50%;
  z-index: 30;
  width: min(420px, calc(100% - 32px));
  padding: 20px 48px 20px 22px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(167, 207, 233, .38), rgba(78, 143, 187, .24));
  transform: translateX(-50%);
}

.info-popover h2 {
  margin: 4px 0 8px;
  font-size: 17px;
  letter-spacing: .04em;
}

.info-popover p {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
  color: #285570;
}

.info-popover .info-kicker {
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .16em;
  color: #4b7690;
}

.info-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  color: #24516f;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
}

.insect-cursor-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 72px;
  height: 72px;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0;
  background: transparent;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 100ms linear;
  will-change: transform;
}

.insect-cursor-surface {
  display: block;
  width: 72px;
  height: 72px;
  pointer-events: none;
  background: transparent;
  will-change: transform;
}

.insect-cursor-layer.is-ready {
  opacity: 1;
}

html.insect-cursor-ready,
html.insect-cursor-ready body,
html.insect-cursor-ready * {
  cursor: none !important;
}

.file-launch-help {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 24px;
  background: linear-gradient(145deg, #c9e1f2, #edf7fd);
}

.file-mode .stage {
  filter: blur(3px);
  opacity: .28;
}

.file-mode .file-launch-help {
  display: grid;
}

.launch-card {
  width: min(520px, 100%);
  padding: 30px;
  text-align: center;
  border-radius: 22px;
}

.launch-card h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 5vw, 30px);
}

.launch-card p {
  margin: 8px 0;
  line-height: 1.7;
}

.launch-file-name {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 12px;
  color: #19557c;
  background: rgba(225, 242, 252, .84);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 9px;
  font-weight: 750;
}

@media (max-width: 1160px) {
  .topbar {
    min-height: 72px;
  }

  .hud-frame {
    inset-block: 112px 118px;
  }

  .topbar {
    grid-template-columns: minmax(240px, .9fr) minmax(340px, 1.1fr) minmax(140px, .7fr);
  }

  .brand-copy small {
    display: none;
  }

  .error-copy {
    left: 42px;
  }

  .status-widget {
    right: 42px;
    width: 250px;
  }

  .system-bar {
    grid-template-columns: minmax(220px, 1.15fr) repeat(4, minmax(108px, .72fr)) 150px;
    min-height: 78px;
    padding-inline: 12px;
  }

  .footer-signature {
    gap: 7px;
    margin-right: -12px;
    padding-inline: 14px 12px;
  }

  .metric-block {
    gap: 8px;
    padding-inline: 12px;
  }

  .metric-symbol {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 840px) {
  .topbar {
    top: 12px;
    right: 12px;
    left: 12px;
    grid-template-columns: 1fr auto;
    min-height: 62px;
    padding: 8px 10px;
    border-radius: 18px;
  }

  .topnav {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark svg {
    width: 31px;
    height: 31px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    font-size: 7px;
  }

  .topbar-signal {
    padding-inline: 9px;
    font-size: 9px;
  }

  .topbar-action {
    min-width: 42px;
    min-height: 38px;
    padding: 7px 12px;
  }

  .topbar-action span:last-child {
    display: none;
  }

  .hud-frame {
    inset: 88px 12px 100px;
  }

  .error-copy {
    top: 40%;
    left: 24px;
    width: 190px;
  }

  .error-code {
    font-size: 44px;
  }

  .error-copy h1 {
    font-size: 22px;
  }

  .status-widget {
    top: 86px;
    right: 12px;
    width: 210px;
    transform: none;
  }

  .info-popover {
    top: 84px;
  }

  .route-cta {
    bottom: 108px;
  }

  .route-button {
    min-width: 220px;
    min-height: 50px;
    font-size: 14px;
  }

  .system-bar {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: 1.25fr repeat(2, minmax(98px, .8fr));
    min-height: 76px;
    border-radius: 18px;
  }

  .metric-video,
  .metric-insect {
    display: none;
  }

  .footer-signature {
    display: none;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  .topbar-signal {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-copy small {
    display: none;
  }

  .hud-frame {
    inset: 82px 10px 96px;
  }

  .hud-corner {
    width: 22px;
    height: 22px;
  }

  .error-copy {
    top: 96px;
    left: 18px;
    width: 140px;
    transform: none;
  }

  .section-kicker {
    font-size: 7px;
  }

  .error-code {
    display: block;
    margin-top: 3px;
    font-size: 36px;
  }

  .error-copy h1 {
    display: block;
    font-size: 18px;
    white-space: nowrap;
  }

  .error-lead {
    margin-top: 4px;
    font-size: 10px;
  }

  .error-rule,
  .error-note {
    display: none;
  }

  .status-widget {
    top: 82px;
    right: 12px;
    width: 176px;
    border-radius: 16px;
  }

  .status-widget.is-expanded {
    top: auto;
    right: 12px;
    bottom: 96px;
    width: calc(100% - 24px);
    max-height: min(46vh, 310px);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: none;
  }

  .status-widget.is-expanded .status-toggle {
    min-height: 52px;
    padding: 8px 12px;
  }

  .status-widget.is-expanded .status-details {
    padding: 0 12px 11px;
  }

  .status-widget.is-expanded .status-row {
    min-height: 36px;
  }

  .status-widget.is-expanded .status-row dt,
  .status-widget.is-expanded .status-row dd {
    font-size: 10px;
  }

  .status-widget.is-expanded .row-icon {
    width: 20px;
    height: 20px;
  }

  .status-widget.is-expanded .action-row {
    gap: 6px;
    padding-top: 9px;
  }

  .status-widget.is-expanded .action-button {
    min-height: 32px;
    padding: 5px 4px;
  }

  .status-toggle {
    min-height: 58px;
    padding: 10px 12px;
  }

  .status-heading strong {
    font-size: 13px;
  }

  .status-summary {
    font-size: 9px;
  }

  .status-widget.is-expanded ~ .route-cta {
    opacity: 0;
    pointer-events: none;
  }

  .route-cta {
    bottom: 104px;
    transition: opacity 140ms ease;
  }

  .route-button {
    min-width: 196px;
    min-height: 46px;
    padding-left: 22px;
    gap: 14px;
    font-size: 13px;
  }

  .route-arrow {
    width: 32px;
    height: 32px;
  }

  .route-cta p {
    display: none;
  }

  .system-bar {
    grid-template-columns: minmax(0, 1fr) 104px;
    min-height: 74px;
    padding: 9px 8px;
  }

  .metric-video,
  .metric-dog,
  .metric-insect {
    display: none;
  }

  .metric-block {
    padding-inline: 9px;
  }

  .metric-icon,
  .fps-gauge {
    width: 36px;
    height: 36px;
  }

  .metric-copy small {
    font-size: 7px;
  }

  .metric-copy strong {
    font-size: 10px;
  }

  .metric-live {
    padding-inline: 6px;
  }

  .metric-live .fps-gauge {
    display: none;
  }

  .metric-live .metric-copy small {
    font-size: 6px;
    letter-spacing: .1em;
  }

  .metric-live .metric-copy strong {
    font-size: 11px;
  }
}

@media (max-height: 650px) {
  .topbar {
    top: 10px;
    min-height: 54px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .hud-frame {
    inset-block: 78px 86px;
  }

  .error-copy {
    top: 46%;
  }

  .error-note,
  .error-rule {
    display: none;
  }

  .status-widget {
    top: 46%;
  }

  .route-cta {
    bottom: 87px;
  }

  .route-button {
    min-height: 44px;
  }

  .route-cta p {
    display: none;
  }

  .system-bar {
    bottom: 10px;
    min-height: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-chevron,
  .route-button,
  .insect-cursor-layer,
  .route-cta {
    transition: none;
  }
}
