/*
 * Bright Apple-inspired skin for the New Energy Engineering home.
 * This file is intentionally presentation-only: the existing DOM, canvas and
 * interaction state classes remain the source of truth.
 */

:root {
  color-scheme: light;
  --bright-ink: #082d5c;
  --bright-ink-soft: #31557c;
  --bright-muted: #6f87a4;
  --bright-blue: #087cf0;
  --bright-blue-strong: #0966da;
  --bright-cyan: #47bfff;
  --bright-mint: #28bf95;
  --bright-orange: #ff8b4b;
  --bright-line: rgba(91, 130, 174, 0.18);
  --bright-line-strong: rgba(52, 117, 190, 0.3);
  --bright-glass: rgba(242, 247, 251, 0.7);
  --bright-glass-strong: rgba(247, 250, 252, 0.88);
  --bright-shadow: 0 22px 65px rgba(55, 91, 132, 0.13),
    0 2px 10px rgba(71, 110, 153, 0.08);
  --bright-shadow-soft: 0 12px 34px rgba(62, 105, 150, 0.1);
  --bright-radius: 22px;
  --bright-radius-small: 14px;
  --bg: #cfdae4;
  --ink: var(--bright-ink);
  --text: var(--bright-ink);
  --muted: var(--bright-muted);
  --line: var(--bright-line);
  --panel: var(--bright-glass-strong);
  --gold: var(--bright-blue);
  --accent: var(--bright-blue);
  --cyan: var(--bright-cyan);
}

body[data-surface="home"] {
  color: var(--bright-ink);
  background: #cfdae4;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-surface="home"] ::selection {
  color: #fff;
  background: #0a75e9;
}

body[data-surface="home"] :is(button, input, select) {
  accent-color: var(--bright-blue);
}

body[data-surface="home"] :is(button, a, input, select, summary):focus-visible,
body[data-surface="home"] #hero-canvas:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.88);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(55, 155, 255, 0.2);
}

body[data-surface="home"] .screen,
body[data-surface="home"].portal-home .screen {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 39%, rgba(232, 239, 245, 0.92) 0 18%, rgba(203, 219, 231, 0.8) 52%, transparent 73%),
    radial-gradient(ellipse at 13% 83%, rgba(235, 231, 219, 0.55), transparent 29%),
    radial-gradient(ellipse at 88% 74%, rgba(121, 185, 220, 0.5), transparent 36%),
    linear-gradient(145deg, #e3e9ee 0%, #d4dee6 42%, #bdcedb 100%);
}

body[data-surface="home"] .screen::before,
body[data-surface="home"].portal-home .screen::before {
  display: block;
  inset: 0;
  z-index: -1;
  opacity: 1;
  mask-image: none;
  background:
    linear-gradient(109deg, transparent 0 17%, rgba(255, 255, 255, 0.52) 17.15% 17.75%, transparent 17.9% 74%, rgba(105, 161, 201, 0.2) 74.1% 74.35%, transparent 74.5%),
    linear-gradient(72deg, transparent 0 25%, rgba(106, 164, 207, 0.15) 25.15% 25.4%, transparent 25.55% 83%, rgba(255, 255, 255, 0.38) 83.1% 83.65%, transparent 83.8%),
    radial-gradient(ellipse 48% 25% at 50% -3%, transparent 61%, rgba(246, 249, 252, 0.66) 61.5% 66%, rgba(126, 169, 207, 0.18) 66.4% 67%, transparent 67.5%),
    repeating-linear-gradient(90deg, transparent 0 8.9vw, rgba(106, 157, 204, 0.045) 9vw 9.08vw);
  background-size: 100% 100%;
}

body[data-surface="home"] .screen::after,
body[data-surface="home"].portal-home .screen::after {
  display: block;
  inset: auto -8% -15% -8%;
  height: 57%;
  z-index: -1;
  border: 0;
  border-radius: 50% 50% 0 0;
  pointer-events: none;
  box-shadow: none;
  background:
    radial-gradient(ellipse at 50% 0, rgba(243, 247, 250, 0.78), rgba(200, 218, 232, 0.58) 35%, transparent 66%),
    repeating-linear-gradient(93deg, transparent 0 10.8vw, rgba(100, 145, 191, 0.075) 10.9vw 11vw);
  transform: perspective(700px) rotateX(62deg);
  transform-origin: 50% 0;
}

body[data-surface="home"] .mainstage {
  position: relative;
  isolation: isolate;
}

body[data-surface="home"] .mainstage::before {
  content: "";
  position: absolute;
  left: 19%;
  right: 9%;
  bottom: 7%;
  height: 30%;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(67, 155, 233, 0.25);
  background: radial-gradient(ellipse, rgba(155, 218, 255, 0.26), rgba(240, 250, 255, 0.34) 46%, transparent 70%);
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, 0.18),
    0 0 55px rgba(45, 149, 238, 0.18),
    inset 0 0 34px rgba(255, 255, 255, 0.76);
  transform: perspective(620px) rotateX(66deg);
}

body[data-surface="home"] .mainstage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 55%, rgba(141, 194, 233, 0.13) 0 1px, transparent 2px),
    radial-gradient(circle at 94% 37%, rgba(81, 164, 226, 0.14) 0 1px, transparent 2px);
  background-size: 31px 31px, 37px 37px;
  mask-image: linear-gradient(90deg, #000, transparent 25%, transparent 73%, #000);
}

/* Shared glass header ---------------------------------------------------- */

body[data-surface="home"] .masthead,
body[data-surface="home"].portal-home .masthead {
  position: relative;
  z-index: 30;
  height: 68px;
  margin: 14px 2.6vw 8px;
  padding: 0 14px 0 18px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(360px, 1fr);
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(236, 242, 247, 0.72);
  box-shadow: 0 14px 45px rgba(73, 105, 144, 0.1), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

body[data-surface="home"] .masthead::after {
  display: none;
}

body[data-surface="home"] .masthead-left {
  display: none;
}

body[data-surface="home"] .brand,
body[data-surface="home"].portal-home .brand {
  position: static;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: min(360px, 24vw);
  max-width: none;
  padding: 0;
  filter: drop-shadow(0 3px 8px rgba(45, 87, 133, 0.08));
}

body[data-surface="home"] .brand .university-mark,
body[data-surface="home"].portal-home .brand .university-mark {
  width: 100%;
  max-height: 52px;
}

body[data-surface="home"] .brand .university-mark #university-wordmark,
body[data-surface="home"].portal-home .brand .university-mark #university-wordmark {
  fill: #153f6d !important;
}

body[data-surface="home"] .masthead-actions,
body[data-surface="home"].portal-home .masthead-actions {
  position: static;
  visibility: visible;
  pointer-events: auto;
  grid-column: 2 / 4;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 4px;
  color: var(--bright-ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(227, 235, 246, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

body[data-surface="home"] .masthead-actions :is(.catalog-link, #return-portal, .display-button) {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #3d5a7c;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font-size: clamp(11px, 0.72vw, 14px);
  font-weight: 520;
  letter-spacing: 0;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body[data-surface="home"] .masthead-actions :is(.catalog-link, #return-portal, .display-button):hover {
  color: var(--bright-ink);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 5px 18px rgba(55, 101, 148, 0.1);
  transform: translateY(-1px);
}

body[data-surface="home"] .masthead-actions :is(#return-portal, .display-button[aria-pressed="true"]) {
  color: #075abf;
  border-color: rgba(72, 153, 239, 0.2);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 5px 20px rgba(54, 128, 211, 0.12);
}

body[data-surface="home"] .masthead-actions svg {
  color: var(--bright-blue);
}

body[data-surface="home"] .masthead > .platform-access,
body[data-surface="home"].portal-home .masthead > .platform-access {
  position: fixed;
  top: 96px;
  right: 3vw;
  left: auto;
  bottom: auto;
  z-index: 80;
  max-width: 380px;
  padding: 5px 8px;
  justify-content: flex-end;
  color: #45627f;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--bright-shadow-soft);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

body[data-surface="home"] .platform-access :is(a, button) {
  color: #315a81;
  border-color: rgba(71, 123, 178, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

/* Portal / holographic home -------------------------------------------- */

body[data-surface="home"].portal-home .screen {
  min-height: 720px;
  height: 100svh;
}

body[data-surface="home"].portal-home .masthead {
  position: absolute;
  inset: 0 0 auto;
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-surface="home"].portal-home .masthead-actions {
  display: none;
}

body[data-surface="home"].portal-home .masthead > .platform-access {
  top: 25px;
  right: 2.6vw;
}

body[data-surface="home"].portal-home .mainstage {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  padding: 0;
}

body[data-surface="home"].portal-home .mainstage::before {
  left: 21%;
  right: 21%;
  bottom: 9.5%;
  height: 31%;
}

body[data-surface="home"].portal-home :is(
  .side-left,
  .view-switch,
  .inspector-launcher,
  .inspector,
  .teaching-dock,
  .exhibit-caption,
  .scene-toolbar,
  .directions,
  .stage-heading,
  .stage-watermark
) {
  display: none !important;
}

body[data-surface="home"].portal-home .live-status {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body[data-surface="home"].portal-home .hero-stage {
  position: absolute;
  left: 17.5%;
  right: 17.5%;
  top: 19%;
  bottom: 18.5%;
  z-index: 2;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  transition: opacity 220ms ease, filter 220ms ease;
}

body[data-surface="home"] .hero-stage::before,
body[data-surface="home"].portal-home .hero-stage::before {
  content: "";
  display: block;
  position: absolute;
  inset: 19% 8% 3%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(105, 196, 255, 0.32), rgba(213, 241, 255, 0.2) 45%, transparent 72%);
  filter: blur(30px);
}

body[data-surface="home"] .hero-stage::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 3%;
  height: 21%;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(26, 137, 237, 0.31);
  background: radial-gradient(ellipse, rgba(107, 195, 255, 0.24), rgba(255, 255, 255, 0.16) 48%, transparent 70%);
  box-shadow: 0 0 36px rgba(24, 139, 239, 0.16), inset 0 0 22px rgba(255, 255, 255, 0.68);
  transform: perspective(520px) rotateX(64deg);
}

body[data-surface="home"] #hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(1.08) contrast(1.045) drop-shadow(0 30px 22px rgba(48, 91, 131, 0.15));
}

body[data-surface="home"].portal-home:not(.scene-ready) #hero-canvas {
  opacity: 0;
}

body[data-surface="home"].portal-home.scene-ready #hero-canvas {
  opacity: 1;
  transition: opacity 450ms ease;
}

body[data-surface="home"].portal-home.ecosystem-preview .hero-stage {
  opacity: 0.17;
  filter: blur(2px);
}

body[data-surface="home"].portal-home .portal-intro {
  position: absolute;
  top: 14.5%;
  left: 3.3%;
  right: auto;
  width: 23%;
  z-index: 5;
  text-align: left;
  pointer-events: none;
}

body[data-surface="home"].portal-home .portal-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: #5680aa;
  font-size: clamp(9px, 0.65vw, 13px);
  font-weight: 650;
  letter-spacing: 0.2em;
}

body[data-surface="home"].portal-home .portal-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--bright-blue), var(--bright-cyan));
  box-shadow: 0 2px 8px rgba(30, 137, 232, 0.22);
}

body[data-surface="home"].portal-home .portal-intro h1 {
  margin: 0 0 8px;
  color: #062c5c;
  background: none;
  text-shadow: none;
  font-size: clamp(38px, 3.15vw, 64px);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: 0.09em;
  text-indent: 0;
}

body[data-surface="home"].portal-home .portal-subtitle {
  margin: 0;
  color: #496b91;
  font-size: clamp(12px, 0.95vw, 19px);
  font-weight: 480;
  letter-spacing: 0.15em;
}

body[data-surface="home"].portal-home .portal-primary-nav {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 50;
  width: min(620px, 41vw);
  min-height: 52px;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(242, 247, 253, 0.64);
  box-shadow: 0 16px 42px rgba(55, 94, 135, 0.12), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  pointer-events: auto;
  transform: translateX(-50%);
}

body[data-surface="home"].portal-home .portal-primary-nav button {
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  overflow: hidden;
  color: #536f8d;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(11px, 0.73vw, 14px);
  font-weight: 620;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body[data-surface="home"].portal-home .portal-primary-nav button:hover {
  color: #174f82;
  background: rgba(255, 255, 255, 0.62);
}

body[data-surface="home"].portal-home .portal-primary-nav button:is(.active, [aria-pressed="true"]) {
  color: #075fbe;
  border-color: rgba(75, 151, 229, 0.19);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(49, 116, 184, 0.14);
}

body[data-surface="home"].portal-home .portal-primary-nav button:is(.active, [aria-pressed="true"])::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #248cff;
  box-shadow: 0 0 9px rgba(27, 137, 247, 0.56);
  transform: translateX(-50%);
}

body[data-surface="home"].portal-home .portal-primary-nav button {
  position: relative;
}

body[data-surface="home"].portal-home .portal-energy {
  position: absolute;
  inset: 0;
  z-index: 4;
  color: var(--bright-ink);
  pointer-events: none;
}

body[data-surface="home"].portal-home .energy-orbit-label {
  position: absolute;
  top: 18.5%;
  left: 34%;
  right: 34%;
  padding: 8px 14px;
  color: #6b87a4;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(49, 101, 151, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  font-size: clamp(9px, 0.64vw, 12px);
  font-weight: 600;
  letter-spacing: 0.12em;
}

body[data-surface="home"].portal-home .energy-directions {
  position: static;
  z-index: 5;
  pointer-events: none;
}

body[data-surface="home"].portal-home .energy-group {
  position: absolute;
  left: 3.3%;
  width: clamp(238px, 19.5vw, 374px);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  background: linear-gradient(142deg, rgba(255, 255, 255, 0.76), rgba(237, 247, 255, 0.5));
  box-shadow: var(--bright-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

body[data-surface="home"].portal-home .energy-group:first-child {
  top: 31%;
}

body[data-surface="home"].portal-home .energy-group:last-child {
  display: none;
}

body[data-surface="home"].portal-home .energy-group h2 {
  margin: 0 0 3px;
  padding: 0 3px 12px;
  color: #123c68;
  border-bottom: 1px solid rgba(71, 127, 183, 0.18);
  font-size: clamp(14px, 1vw, 20px);
  font-weight: 680;
  letter-spacing: 0.04em;
}

body[data-surface="home"].portal-home .energy-group h2 small {
  display: block;
  margin-top: 5px;
  color: #7891ab;
  font-size: clamp(8px, 0.52vw, 10px);
  font-weight: 560;
  letter-spacing: 0.15em;
}

body[data-surface="home"].portal-home .energy-domain {
  position: relative;
  min-height: 49px;
  padding: 9px 5px 8px 12px;
  overflow: hidden;
  color: #24517e;
  border: 0;
  border-bottom: 1px solid rgba(63, 124, 182, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

body[data-surface="home"].portal-home .energy-domain::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 2px;
  border-radius: 0 4px 4px 0;
  background: currentColor;
  opacity: 0.7;
}

body[data-surface="home"].portal-home .energy-domain::after {
  display: none;
}

body[data-surface="home"].portal-home .energy-domain.mint {
  color: #148969;
}

body[data-surface="home"].portal-home .energy-domain.gold {
  color: #ce6d35;
}

body[data-surface="home"].portal-home .energy-domain.cyan {
  color: #1476c5;
}

body[data-surface="home"].portal-home .energy-domain strong {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: currentColor;
  font-size: clamp(13px, 0.94vw, 18px);
  font-weight: 680;
  letter-spacing: 0.01em;
}

body[data-surface="home"].portal-home .energy-domain strong span {
  min-width: 27px;
  height: 27px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: currentColor;
  border-radius: 50%;
  background: rgba(216, 234, 251, 0.7);
  font-size: 12px;
}

body[data-surface="home"].portal-home .energy-domain p {
  position: relative;
  z-index: 1;
  margin: 3px 0 0;
  color: #7087a0;
  font-size: clamp(10px, 0.67vw, 13px);
  line-height: 1.45;
}

body[data-surface="home"].portal-home .energy-domain:is(:hover, :focus-visible, .is-previewing) {
  border-color: rgba(82, 157, 232, 0.3);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 7px 20px rgba(51, 111, 170, 0.1);
  transform: translateX(2px);
}

body[data-surface="home"].portal-home .energy-preview {
  position: absolute;
  left: 34%;
  top: 27%;
  width: 32%;
  margin: 0;
  padding: 13px;
  color: var(--bright-ink);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(249, 252, 255, 0.84);
  box-shadow: 0 28px 74px rgba(52, 93, 137, 0.2);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  text-align: center;
}

body[data-surface="home"].portal-home .energy-preview > span {
  color: #526d87;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

body[data-surface="home"].portal-home .energy-preview img {
  display: block;
  width: 100%;
  height: min(34vh, 340px);
  margin: 9px 0;
  object-fit: contain;
  border-radius: 13px;
  background: linear-gradient(145deg, #eef6fd, #fff);
}

body[data-surface="home"].portal-home .energy-preview figcaption {
  padding: 4px;
  color: var(--bright-ink);
  font-size: clamp(14px, 1vw, 20px);
  font-weight: 650;
}

body[data-surface="home"] .portal-telemetry[hidden] {
  display: none !important;
}

body[data-surface="home"].portal-home .portal-telemetry {
  position: absolute;
  top: 26%;
  right: 3.3%;
  z-index: 8;
  width: clamp(245px, 19.5vw, 375px);
  padding: 17px 18px 15px;
  color: var(--bright-ink);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: linear-gradient(142deg, rgba(255, 255, 255, 0.84), rgba(235, 246, 255, 0.56));
  box-shadow: var(--bright-shadow), inset 0 1px 0 #fff;
  backdrop-filter: blur(23px) saturate(1.25);
  -webkit-backdrop-filter: blur(23px) saturate(1.25);
  transition: opacity 180ms ease, transform 180ms ease;
}

body[data-surface="home"].portal-home .portal-telemetry::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, #32a7ff, transparent);
  opacity: 0.72;
}

body[data-surface="home"].portal-home .portal-telemetry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(62, 119, 175, 0.13);
}

body[data-surface="home"].portal-home .portal-telemetry-head > div {
  min-width: 0;
}

body[data-surface="home"].portal-home .portal-telemetry-head span {
  display: block;
  margin-bottom: 4px;
  color: #526d87;
  font-size: clamp(8px, 0.52vw, 10px);
  font-weight: 620;
  letter-spacing: 0.12em;
}

body[data-surface="home"].portal-home .portal-telemetry-head strong {
  display: block;
  overflow: hidden;
  color: #123f6d;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(15px, 1vw, 20px);
  font-weight: 700;
}

body[data-surface="home"].portal-home .portal-telemetry-head b {
  flex: none;
  padding: 6px 8px;
  color: #258665;
  border: 1px solid rgba(48, 182, 130, 0.18);
  border-radius: 999px;
  background: rgba(221, 249, 237, 0.68);
  font-size: clamp(8px, 0.52vw, 10px);
  font-weight: 660;
  white-space: nowrap;
}

body[data-surface="home"].portal-home .portal-telemetry-head b i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #35c77c;
  box-shadow: 0 0 0 4px rgba(53, 199, 124, 0.12), 0 0 9px rgba(53, 199, 124, 0.32);
}

body[data-surface="home"].portal-home .portal-telemetry[data-status="loading"] .portal-telemetry-head b {
  color: #2d648f;
  border-color: rgba(48, 126, 190, 0.2);
  background: rgba(224, 240, 253, 0.72);
}

body[data-surface="home"].portal-home .portal-telemetry[data-status="loading"] .portal-telemetry-head b i {
  background: #3b91d3;
  box-shadow: 0 0 0 4px rgba(59, 145, 211, 0.12), 0 0 9px rgba(59, 145, 211, 0.28);
}

body[data-surface="home"].portal-home .portal-telemetry[data-status="error"] .portal-telemetry-head b {
  color: #9d3b43;
  border-color: rgba(190, 65, 75, 0.2);
  background: rgba(255, 232, 234, 0.78);
}

body[data-surface="home"].portal-home .portal-telemetry[data-status="error"] .portal-telemetry-head b i {
  background: #d4545e;
  box-shadow: 0 0 0 4px rgba(212, 84, 94, 0.12), 0 0 9px rgba(212, 84, 94, 0.26);
}

body[data-surface="home"].portal-home .portal-metric {
  position: relative;
  min-height: 64px;
  padding: 12px 0 13px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 6px 12px;
  border-bottom: 1px solid rgba(62, 119, 175, 0.1);
}

body[data-surface="home"].portal-home .portal-metric > span {
  color: #526c85;
  font-size: clamp(10px, 0.68vw, 13px);
  font-weight: 590;
}

body[data-surface="home"].portal-home .portal-metric > strong {
  color: #0c4f91;
  font-size: clamp(18px, 1.35vw, 27px);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}

body[data-surface="home"].portal-home .portal-metric > strong small {
  margin-left: 3px;
  color: #426789;
  font-size: 0.48em;
  font-weight: 650;
  letter-spacing: 0;
}

body[data-surface="home"].portal-home .portal-metric > i {
  grid-column: 1 / -1;
  position: relative;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(112, 153, 195, 0.16);
}

body[data-surface="home"].portal-home .portal-metric > i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, #42b9ff, #0968d9);
  box-shadow: 0 0 10px rgba(27, 133, 234, 0.28);
}

body[data-surface="home"].portal-home .portal-metric:nth-of-type(4) > i::after {
  background: linear-gradient(90deg, #37c9a0, #1a9c7b);
}

body[data-surface="home"].portal-home .portal-telemetry > p {
  margin: 12px 0 0;
  color: #526b83;
  font-size: clamp(8px, 0.52vw, 10px);
  line-height: 1.55;
  letter-spacing: 0.04em;
}

body[data-surface="home"].portal-home .energy-chain {
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 18.2%;
  z-index: 5;
  color: #597694;
  text-align: center;
}

body[data-surface="home"].portal-home .energy-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 8px 28px rgba(44, 105, 161, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

body[data-surface="home"].portal-home .energy-track span {
  padding: 4px 0;
  color: #587593;
  font-size: clamp(10px, 0.72vw, 14px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: none;
}

body[data-surface="home"].portal-home .energy-track i {
  color: #6ea6d8;
}

body[data-surface="home"].portal-home .energy-chain[data-phase="0"] [data-step="0"],
body[data-surface="home"].portal-home .energy-chain[data-phase="1"] [data-step="1"],
body[data-surface="home"].portal-home .energy-chain[data-phase="2"] [data-step="2"],
body[data-surface="home"].portal-home .energy-chain[data-phase="3"] [data-step="3"] {
  color: #076ed9;
  text-shadow: 0 0 18px rgba(62, 166, 255, 0.22);
}

body[data-surface="home"].portal-home .energy-chain[data-phase] [data-step]::after {
  bottom: -10px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--bright-blue), var(--bright-cyan));
  box-shadow: 0 0 10px rgba(38, 148, 247, 0.35);
}

body[data-surface="home"].portal-home .energy-chain > small {
  display: block;
  margin-top: 7px;
  color: #526d88;
  font-size: 9px;
}

body[data-surface="home"].portal-home .energy-chain button {
  color: #28679f;
  border-left-color: rgba(59, 126, 189, 0.25);
}

body[data-surface="home"].portal-home .portal-actions {
  position: absolute;
  left: 17%;
  right: 17%;
  bottom: 3.4%;
  z-index: 10;
  min-height: 82px;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(360px, 2.2fr) minmax(118px, 0.72fr) minmax(105px, 0.66fr) minmax(175px, 1.08fr);
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(245, 249, 253, 0.65);
  box-shadow: 0 22px 55px rgba(51, 95, 139, 0.16), inset 0 1px 0 #fff;
  backdrop-filter: blur(26px) saturate(1.3);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
}

body[data-surface="home"].portal-home .portal-actions :is(a, button) {
  min-height: 58px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #30577d;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font-size: clamp(12px, 0.86vw, 17px);
  font-weight: 650;
  letter-spacing: 0.025em;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

body[data-surface="home"].portal-home .portal-mode-switch {
  align-self: stretch;
  min-width: 0;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  border: 1px solid rgba(70, 127, 183, 0.12);
  border-radius: 999px;
  background: rgba(224, 235, 246, 0.54);
}

body[data-surface="home"].portal-home .portal-mode-switch button {
  position: relative;
  min-width: 0;
  min-height: 56px;
  padding: 4px 8px;
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  gap: 1px;
  color: #607b97;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font-size: clamp(9px, 0.62vw, 12px);
  font-weight: 620;
  line-height: 1.15;
}

body[data-surface="home"].portal-home .portal-mode-switch button span {
  display: block;
  color: #6c9bc5;
  font-size: clamp(13px, 0.9vw, 18px);
  font-weight: 500;
}

body[data-surface="home"].portal-home .portal-mode-switch button:hover {
  color: #16558e;
  background: rgba(255, 255, 255, 0.52);
}

body[data-surface="home"].portal-home .portal-mode-switch button:is(.active, [aria-pressed="true"]) {
  color: #075fbd;
  border-color: rgba(52, 137, 224, 0.21);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 17px rgba(54, 111, 167, 0.13), inset 0 1px 0 #fff;
}

body[data-surface="home"].portal-home .portal-mode-switch button:is(.active, [aria-pressed="true"]) span {
  color: #0a80ee;
}

body[data-surface="home"].portal-home .portal-actions #portal-enter {
  color: #fff;
  border-color: rgba(42, 132, 229, 0.32);
  background: linear-gradient(135deg, #3da7ff, #096bdf);
  box-shadow: 0 13px 30px rgba(21, 116, 221, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

body[data-surface="home"].portal-home .portal-actions #portal-enter span {
  margin-left: 20px;
  color: #fff;
}

body[data-surface="home"].portal-home .portal-actions #portal-explore {
  color: #27577f;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.58);
}

body[data-surface="home"].portal-home .portal-actions :is(a, button):hover {
  color: #084b91;
  border-color: rgba(53, 135, 219, 0.22);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(61, 111, 162, 0.13);
  transform: translateY(-1px);
}

body[data-surface="home"].portal-home .portal-actions #portal-enter:hover {
  color: #fff;
  background: linear-gradient(135deg, #48b3ff, #075fce);
  box-shadow: 0 16px 34px rgba(20, 111, 215, 0.32);
}

body[data-surface="home"].portal-home .portal-actions small {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 7px);
  color: #516b84;
  text-align: center;
  font-size: 9px;
  font-weight: 560;
  letter-spacing: 0.09em;
}

body[data-surface="home"].portal-home.inspector-open .portal-telemetry {
  opacity: 0;
  pointer-events: none;
  transform: translateX(14px);
}

body[data-surface="home"].portal-home.inspector-open .hero-stage {
  left: 16%;
  right: 23%;
}

body[data-surface="home"].portal-home.inspector-open .inspector:not([hidden]) {
  position: absolute;
  top: 17%;
  right: 2.6%;
  bottom: 15%;
  z-index: 25;
  width: 21%;
  padding: 16px;
  display: flex !important;
  flex-direction: column;
  color: var(--bright-ink);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  background: rgba(250, 252, 255, 0.86);
  box-shadow: 0 28px 76px rgba(43, 83, 125, 0.2), inset 0 1px 0 #fff;
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
}

body[data-surface="home"] #vehicle-model-info-open,
body[data-surface="home"].portal-home #vehicle-model-info-open,
body[data-surface="home"] .tesla-exhibition-entry,
body[data-surface="home"].portal-home .tesla-exhibition-entry {
  z-index: 40;
  color: #486987;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 8px 24px rgba(52, 95, 139, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body[data-surface="home"].portal-home #vehicle-model-info-open {
  top: 94px;
  right: 3.3%;
}

body[data-surface="home"].portal-home .tesla-exhibition-entry {
  top: 136px;
  right: 3.3%;
}

/* Exploration mode ------------------------------------------------------ */

body[data-surface="home"]:not(.portal-home) .screen {
  height: 100svh;
  min-height: 760px;
  display: grid;
  grid-template-rows: 90px minmax(0, 1fr) 74px;
}

body[data-surface="home"]:not(.portal-home) .masthead {
  align-self: start;
}

body[data-surface="home"]:not(.portal-home) .mainstage {
  overflow: hidden;
}

body[data-surface="home"]:not(.portal-home) .stage-heading {
  position: absolute;
  top: 3.8%;
  left: 2.9%;
  right: auto;
  width: 15.5%;
  z-index: 7;
  text-align: left;
  pointer-events: none;
}

body[data-surface="home"]:not(.portal-home) .stage-heading .eyebrow {
  display: block;
  margin: 0 0 7px;
  color: #6281a1;
  font-size: clamp(8px, 0.48vw, 10px);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.14em;
}

body[data-surface="home"]:not(.portal-home) .stage-heading .eyebrow::before,
body[data-surface="home"]:not(.portal-home) .stage-heading .eyebrow::after {
  display: none;
}

body[data-surface="home"]:not(.portal-home) .stage-heading h1 {
  margin: 0 0 4px;
  color: var(--bright-ink);
  background: none;
  text-shadow: none;
  font-size: clamp(25px, 1.7vw, 36px);
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: 0.09em;
}

body[data-surface="home"]:not(.portal-home) .stage-heading p {
  margin: 0;
  color: #617b99;
  font-size: clamp(9px, 0.58vw, 12px);
  line-height: 1.5;
  letter-spacing: 0.07em;
}

body[data-surface="home"]:not(.portal-home) .stage-watermark {
  top: 48%;
  left: 53%;
  color: rgba(77, 139, 198, 0.045);
  font-size: clamp(74px, 8vw, 155px);
  font-weight: 760;
}

body[data-surface="home"]:not(.portal-home) .hero-stage {
  position: absolute;
  left: 16.5%;
  right: 12%;
  top: 5%;
  bottom: 14%;
  z-index: 2;
  width: auto;
  height: auto;
  margin: 0;
}

body[data-surface="home"]:not(.portal-home).inspector-open .hero-stage {
  left: 15.5%;
  right: 24%;
  top: 7%;
  bottom: 16%;
}

body[data-surface="home"]:not(.portal-home).tools-open .hero-stage,
body[data-surface="home"]:not(.portal-home)[data-render-mode="section"] .hero-stage {
  bottom: 23%;
}

body[data-surface="home"]:not(.portal-home)[data-camera-view="top"] .hero-stage {
  top: 14%;
  bottom: 20%;
}

body[data-surface="home"]:not(.portal-home) .side-left {
  position: absolute;
  top: 22%;
  left: 2.8%;
  z-index: 8;
  width: 13.8%;
}

body[data-surface="home"]:not(.portal-home) .section-kicker {
  margin: 0;
  color: #254f79;
  font-size: clamp(11px, 0.72vw, 15px);
  font-weight: 680;
  letter-spacing: 0.08em;
}

body[data-surface="home"]:not(.portal-home) .section-kicker::before {
  width: 3px;
  height: 1em;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--bright-blue), var(--bright-cyan));
  box-shadow: 0 3px 9px rgba(23, 134, 233, 0.22);
}

body[data-surface="home"]:not(.portal-home) .side-left .micro {
  display: block;
  margin: 7px 0 13px;
  color: #8195aa;
  font-size: clamp(7px, 0.46vw, 9px);
  font-weight: 600;
  letter-spacing: 0.13em;
}

body[data-surface="home"]:not(.portal-home) .focus-list {
  gap: 6px;
  margin-top: 0;
}

body[data-surface="home"]:not(.portal-home) .focus-button {
  min-height: 43px;
  padding: 7px 9px;
  gap: 8px;
  color: #607b96;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 5px 16px rgba(58, 102, 146, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body[data-surface="home"]:not(.portal-home) .focus-button:hover {
  color: #174f83;
  border-color: rgba(88, 154, 220, 0.31);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 9px 24px rgba(58, 105, 153, 0.1);
  transform: translateX(2px);
}

body[data-surface="home"]:not(.portal-home) .focus-button.active {
  color: #075cb9;
  border-color: rgba(75, 153, 233, 0.32);
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.93), rgba(222, 240, 255, 0.7));
  box-shadow: 0 10px 27px rgba(50, 124, 199, 0.14), inset 3px 0 #1888ef;
}

body[data-surface="home"]:not(.portal-home) .focus-button.active::before {
  display: none;
}

body[data-surface="home"]:not(.portal-home) .focus-no {
  color: #8ca0b5;
  font-size: clamp(8px, 0.5vw, 10px);
  font-weight: 640;
}

body[data-surface="home"]:not(.portal-home) .focus-button.active .focus-no {
  color: #0a78e6;
}

body[data-surface="home"]:not(.portal-home) .focus-copy strong {
  color: inherit;
  font-size: clamp(11px, 0.72vw, 15px);
  font-weight: 650;
}

body[data-surface="home"]:not(.portal-home) .focus-copy small {
  display: block;
  margin-top: 2px;
  color: #8a9eb3;
  font-size: clamp(7px, 0.43vw, 9px);
  letter-spacing: 0.06em;
}

body[data-surface="home"]:not(.portal-home) .focus-arr {
  display: block;
  color: #6f99c3;
  font-size: 12px;
}

body[data-surface="home"]:not(.portal-home) .home-object-count {
  margin-top: 11px;
  padding: 10px 12px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #71879d;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.34);
  font-size: clamp(8px, 0.5vw, 10px);
}

body[data-surface="home"]:not(.portal-home) .home-object-count strong {
  color: #176fc6;
  font-size: clamp(15px, 1vw, 20px);
  font-weight: 650;
}

body[data-surface="home"]:not(.portal-home) .view-switch {
  position: absolute;
  top: 3.5%;
  left: 55%;
  z-index: 9;
  padding: 4px;
  display: flex;
  gap: 2px;
  color: #526f8d;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--bright-shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

body[data-surface="home"]:not(.portal-home).inspector-open .view-switch {
  left: 46%;
}

body[data-surface="home"]:not(.portal-home) .view-switch button {
  min-height: 32px;
  padding: 0 11px;
  color: #5d7690;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: clamp(10px, 0.63vw, 12px);
}

body[data-surface="home"]:not(.portal-home) .view-switch button:is(:hover, .active) {
  color: #075ebd;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 15px rgba(54, 111, 169, 0.12);
}

body[data-surface="home"]:not(.portal-home) .inspector-launcher {
  position: absolute;
  top: 4%;
  right: 2.8%;
  z-index: 10;
  min-height: 40px;
  padding: 0 15px;
  color: #265a87;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--bright-shadow-soft);
  backdrop-filter: blur(17px);
  -webkit-backdrop-filter: blur(17px);
  font-size: clamp(10px, 0.65vw, 13px);
}

body[data-surface="home"]:not(.portal-home) .inspector-launcher:is(:hover, [aria-expanded="true"]) {
  color: #075bb7;
  border-color: rgba(62, 141, 221, 0.32);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 11px 27px rgba(50, 111, 173, 0.14);
}

body[data-surface="home"]:not(.portal-home) .exhibit-caption {
  position: absolute;
  top: 20%;
  right: 2.8%;
  bottom: auto;
  left: auto;
  z-index: 7;
  width: 17.5%;
  min-height: 126px;
  padding: 17px;
  display: block;
  color: var(--bright-ink);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(238, 247, 255, 0.55));
  box-shadow: var(--bright-shadow);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  pointer-events: auto;
  transition: opacity 180ms ease, transform 180ms ease;
}

body[data-surface="home"]:not(.portal-home).inspector-open .exhibit-caption {
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
}

body[data-surface="home"]:not(.portal-home) .exhibit-en {
  display: block;
  margin-bottom: 6px;
  color: #7290ad;
  font-size: clamp(7px, 0.46vw, 9px);
  font-weight: 650;
  letter-spacing: 0.13em;
}

body[data-surface="home"]:not(.portal-home) .exhibit-copy h2 {
  margin: 0 0 5px;
  color: #123d69;
  font-size: clamp(13px, 0.94vw, 18px);
  font-weight: 680;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

body[data-surface="home"]:not(.portal-home) .exhibit-copy p {
  display: block;
  margin: 0 0 13px;
  color: #6d849c;
  font-size: clamp(9px, 0.58vw, 11px);
  line-height: 1.5;
}

body[data-surface="home"]:not(.portal-home) .exhibit-link {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  justify-content: center;
  color: #0769cf;
  border: 1px solid rgba(52, 135, 219, 0.24);
  border-radius: 999px;
  background: rgba(222, 240, 255, 0.68);
  font-size: clamp(9px, 0.62vw, 12px);
  font-weight: 650;
}

body[data-surface="home"]:not(.portal-home) .exhibit-link:hover {
  color: #fff;
  background: linear-gradient(135deg, #3aa7ff, #0a6bdb);
  border-color: rgba(31, 123, 219, 0.4);
}

body[data-surface="home"]:not(.portal-home) .inspector {
  position: absolute;
  top: 4%;
  right: 2.6%;
  bottom: 12%;
  z-index: 12;
  width: 20.5%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  color: var(--bright-ink);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(250, 252, 255, 0.76);
  box-shadow: 0 24px 70px rgba(47, 87, 129, 0.18), inset 0 1px 0 #fff;
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
}

body[data-surface="home"] .inspector[hidden] {
  display: none !important;
}

body[data-surface="home"] .inspector-close {
  padding: 5px 7px;
  color: #5a7691;
  border-radius: 999px;
  background: transparent;
}

body[data-surface="home"] .inspector-close:hover {
  color: #075daf;
  background: rgba(220, 238, 255, 0.7);
}

body[data-surface="home"] .selection-state {
  color: #557493;
  border: 1px solid rgba(69, 129, 189, 0.18);
  border-radius: 999px;
  background: rgba(223, 238, 252, 0.7);
}

body[data-surface="home"] .selection-state.detached {
  color: #b65725;
  border-color: rgba(221, 117, 60, 0.24);
  background: rgba(255, 232, 216, 0.72);
}

body[data-surface="home"] .selected-part {
  padding: 12px 0 10px;
  min-height: 0;
}

body[data-surface="home"] :is(.part-eyebrow, .selected-part .disassembly-note, #detached-status) {
  color: #3882c4;
}

body[data-surface="home"] .selected-part h2 {
  color: #123d68;
  font-weight: 680;
}

body[data-surface="home"] .selected-part :is(p, #selected-material) {
  color: #6e849a;
}

body[data-surface="home"] .part-actions {
  gap: 6px;
  padding-bottom: 12px;
  border-color: var(--bright-line);
}

body[data-surface="home"] .part-actions button,
body[data-surface="home"] .part-pagination button {
  min-height: 34px;
  color: #3e6589;
  border: 1px solid rgba(65, 121, 177, 0.2);
  border-radius: 10px;
  background: rgba(231, 241, 251, 0.72);
}

body[data-surface="home"] .part-actions button.primary-action {
  color: #fff;
  border-color: rgba(25, 119, 219, 0.28);
  background: linear-gradient(135deg, #3da8ff, #0a6bd9);
  box-shadow: 0 8px 19px rgba(16, 113, 213, 0.18);
}

body[data-surface="home"] .part-actions button:is(:hover, [aria-pressed="true"]):enabled,
body[data-surface="home"] .part-pagination button:hover:enabled {
  color: #075ebc;
  border-color: rgba(58, 137, 216, 0.34);
  background: rgba(215, 237, 255, 0.9);
}

body[data-surface="home"] .part-actions button.primary-action:hover:enabled {
  color: #fff;
  background: linear-gradient(135deg, #49b2ff, #075fc9);
}

body[data-surface="home"] :is(.part-actions button, .part-pagination button):disabled {
  opacity: 0.4;
}

body[data-surface="home"] .part-browser {
  padding-top: 11px;
  gap: 7px;
  border-color: var(--bright-line);
}

body[data-surface="home"] .search-label {
  color: #426788;
}

body[data-surface="home"] .search-label span {
  color: #7c92a8;
}

body[data-surface="home"] :is(.search-box, #module-filter) {
  color: #244f77;
  border: 1px solid rgba(65, 123, 181, 0.18);
  border-radius: 11px;
  background: rgba(239, 246, 253, 0.82);
}

body[data-surface="home"] .search-box:focus-within,
body[data-surface="home"] #module-filter:focus-visible {
  border-color: rgba(28, 127, 226, 0.48);
  box-shadow: 0 0 0 4px rgba(51, 148, 242, 0.12);
}

body[data-surface="home"] .search-box > span {
  color: #4a8fc9;
}

body[data-surface="home"] .search-box input {
  color: #153f67;
  background: transparent;
}

body[data-surface="home"] .search-box input::placeholder {
  color: #8ba0b4;
}

body[data-surface="home"] .parts-results {
  scrollbar-color: rgba(81, 139, 194, 0.35) transparent;
}

body[data-surface="home"] .part-row {
  color: #58738e;
  border-bottom-color: rgba(76, 126, 174, 0.1);
}

body[data-surface="home"] .part-row:is(:hover, [aria-pressed="true"]) {
  color: #075fb9;
  background: rgba(215, 237, 255, 0.66);
}

body[data-surface="home"] .part-row[aria-pressed="true"] {
  border-left-color: var(--bright-blue);
}

body[data-surface="home"] .part-row small,
body[data-surface="home"] .part-pagination,
body[data-surface="home"] .parts-empty {
  color: #7b90a5;
}

body[data-surface="home"]:not(.portal-home) .teaching-dock {
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 2.2%;
  z-index: 11;
  padding: 7px 10px;
  color: #355a7c;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(247, 250, 254, 0.72);
  box-shadow: 0 18px 44px rgba(53, 95, 139, 0.14), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

body[data-surface="home"]:not(.portal-home).tools-open .teaching-dock {
  left: 21%;
  right: 18%;
  bottom: 2.2%;
}

body[data-surface="home"]:not(.portal-home).inspector-open .teaching-dock {
  left: 20%;
  right: 24.5%;
}

body[data-surface="home"] .mode-row {
  gap: 8px;
}

body[data-surface="home"] .mode-switch {
  flex: 1;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(221, 233, 245, 0.58);
}

body[data-surface="home"] .mode-switch button {
  flex: 1;
  min-height: 38px;
  padding: 0 10px;
  color: #5b7692;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: clamp(10px, 0.68vw, 13px);
  font-weight: 620;
}

body[data-surface="home"] .mode-switch button span {
  color: #8aa0b5;
}

body[data-surface="home"] .mode-switch button:is(:hover, .active) {
  color: #075fbe;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 16px rgba(51, 106, 163, 0.12);
}

body[data-surface="home"] .mode-switch button.active span {
  color: #1885eb;
}

body[data-surface="home"] #assembly-tools-toggle {
  min-height: 42px;
  padding: 0 14px;
  color: #29608e;
  border: 1px solid rgba(62, 131, 199, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

body[data-surface="home"] #assembly-tools-toggle:is(:hover, [aria-expanded="true"]) {
  color: #075fbe;
  border-color: rgba(45, 135, 224, 0.32);
  background: rgba(224, 241, 255, 0.86);
}

body[data-surface="home"] .body-toggle {
  color: #56738f;
}

body[data-surface="home"] :is(.explode-row, .section-row) {
  color: #55738f;
  border-top-color: rgba(70, 123, 177, 0.13);
}

body[data-surface="home"] :is(.explode-row, .section-row) output {
  color: #075fbf;
  font-weight: 650;
}

body[data-surface="home"] :is(.explode-row, .section-row) input[type="range"] {
  accent-color: var(--bright-blue);
}

body[data-surface="home"] .explode-row button {
  color: #296493;
}

body[data-surface="home"]:not(.portal-home) .scene-toolbar {
  position: absolute;
  left: 2.8%;
  bottom: 2%;
  z-index: 8;
  max-width: 18%;
  gap: 5px;
}

body[data-surface="home"]:not(.portal-home) .scene-toolbar .motion-button {
  min-height: 32px;
  padding: 0 10px;
  color: #567492;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 6px 18px rgba(55, 96, 137, 0.06);
  font-size: clamp(8px, 0.53vw, 10px);
}

body[data-surface="home"]:not(.portal-home) .scene-toolbar .motion-button:hover {
  color: #075dae;
  border-color: rgba(61, 135, 209, 0.28);
  background: rgba(255, 255, 255, 0.84);
}

body[data-surface="home"]:not(.portal-home) .live-status {
  right: 2.8%;
  bottom: 2.2%;
  z-index: 8;
  padding: 7px 10px;
  color: #57748f;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  font-size: clamp(8px, 0.52vw, 10px);
}

body[data-surface="home"] .live-dot {
  width: 7px;
  height: 7px;
  background: #32c77a;
  box-shadow: 0 0 0 4px rgba(50, 199, 122, 0.13), 0 0 12px rgba(50, 199, 122, 0.35);
}

body[data-surface="home"]:not(.portal-home) .directions {
  position: relative;
  z-index: 20;
  margin: 0 2.6vw 12px;
  padding: 0 18px;
  min-height: 58px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
  color: #4a6783;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.54);
  box-shadow: 0 10px 30px rgba(61, 101, 143, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body[data-surface="home"]:not(.portal-home) .directions::before {
  display: none;
}

body[data-surface="home"]:not(.portal-home) .directions-head {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

body[data-surface="home"]:not(.portal-home) #professional-map-open {
  padding: 7px 0;
  color: #173f67;
  background: transparent;
  font-size: clamp(12px, 0.8vw, 16px);
  font-weight: 680;
}

body[data-surface="home"]:not(.portal-home) #professional-map-open small {
  color: #7b91a6;
}

body[data-surface="home"]:not(.portal-home) #professional-map-open b {
  color: #0b73dd;
  font-weight: 680;
}

body[data-surface="home"]:not(.portal-home) .library-summary {
  color: #748aa0;
  font-size: clamp(9px, 0.58vw, 11px);
}

body[data-surface="home"]:not(.portal-home) .library-summary strong {
  color: #205b8c;
  font-weight: 680;
}

body[data-surface="home"]:not(.portal-home) .exhibition-note {
  margin-left: auto;
  color: #788da2;
}

body[data-surface="home"]:not(.portal-home) .domain-grid,
body[data-surface="home"]:not(.portal-home) .screen-footer {
  display: none;
}

/* Dialogs --------------------------------------------------------------- */

body[data-surface="home"] :is(.showcase-help, .vehicle-model-info, .professional-map) {
  color: #315473;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  background: rgba(250, 252, 255, 0.94);
  box-shadow: 0 30px 100px rgba(34, 67, 103, 0.24), inset 0 1px 0 #fff;
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
}

body[data-surface="home"] :is(.showcase-help, .vehicle-model-info, .professional-map)::backdrop {
  background: rgba(115, 145, 177, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body[data-surface="home"] :is(.showcase-help h2, .vehicle-model-info h2, .professional-map h2) {
  color: var(--bright-ink);
}

body[data-surface="home"] :is(.showcase-help p, .vehicle-model-info p, .map-heading p) {
  color: #627c95;
}

body[data-surface="home"] :is(.help-kicker, .model-info-kicker, .map-heading span) {
  color: #4283bd;
}

body[data-surface="home"] :is(.help-close, .vehicle-model-info button, .map-heading button) {
  color: #315d84;
  border: 1px solid rgba(59, 124, 187, 0.2);
  border-radius: 999px;
  background: rgba(227, 240, 252, 0.75);
}

body[data-surface="home"] .help-keys,
body[data-surface="home"] .professional-map .map-heading,
body[data-surface="home"] .model-object-count {
  border-color: rgba(77, 128, 177, 0.16);
}

body[data-surface="home"] .help-keys :is(dt, kbd) {
  color: #28577d;
}

body[data-surface="home"] .help-keys dd,
body[data-surface="home"] .help-note {
  color: #6c8298;
}

body[data-surface="home"] .help-keys kbd {
  border-color: rgba(61, 123, 184, 0.2);
  background: #eaf3fb;
}

body[data-surface="home"] .professional-map {
  padding: 30px;
}

body[data-surface="home"] .professional-map .domain-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

body[data-surface="home"] .professional-map .domain-card {
  padding: 20px;
  color: #456580;
  border: 1px solid rgba(64, 126, 187, 0.14);
  border-radius: 16px;
  background: rgba(235, 245, 253, 0.58);
}

body[data-surface="home"] .professional-map .domain-card:hover {
  border-color: rgba(48, 134, 221, 0.32);
  background: rgba(222, 240, 255, 0.8);
  box-shadow: 0 12px 30px rgba(52, 107, 161, 0.12);
  transform: translateY(-2px);
}

body[data-surface="home"] .professional-map .domain-card h3 {
  color: #163f67;
  font-weight: 680;
}

body[data-surface="home"] .professional-map :is(.domain-icon, .domain-bottom svg) {
  color: #1884e8;
}

body[data-surface="home"] .professional-map :is(.domain-code, .domain-bottom, .direction-links) {
  color: #70879c;
}

body[data-surface="home"] .vehicle-model-info a {
  color: #086dce;
}

/* Loading state --------------------------------------------------------- */

body[data-surface="home"] .scene-loading {
  color: var(--bright-ink);
}

body[data-surface="home"] .loader-ring {
  border-color: rgba(43, 133, 221, 0.18);
  border-top-color: var(--bright-blue);
  box-shadow: inset 0 0 25px rgba(67, 164, 247, 0.12), 0 0 28px rgba(67, 164, 247, 0.16);
}

body[data-surface="home"] .scene-loading strong {
  color: #174f7d;
  font-weight: 650;
}

body[data-surface="home"] .scene-loading small {
  color: #6f89a2;
}

body[data-surface="home"] #load-progress {
  color: #0878e4;
}

body[data-surface="home"] .scene-loading.failed {
  border-radius: 22px;
  background: radial-gradient(ellipse, rgba(247, 251, 255, 0.95), rgba(237, 246, 253, 0.58) 64%, transparent 72%);
}

body[data-surface="home"] .loading-actions :is(button, a) {
  color: #255f91;
  border: 1px solid rgba(48, 124, 198, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

/* Wide screens ---------------------------------------------------------- */

@media (min-aspect-ratio: 2 / 1) and (min-width: 1200px) {
  body[data-surface="home"].portal-home .screen {
    min-height: 640px;
  }

  body[data-surface="home"].portal-home .portal-intro {
    top: 15.5%;
    width: 20%;
  }

  body[data-surface="home"].portal-home .hero-stage {
    left: 20%;
    right: 20%;
    top: 16.5%;
    bottom: 17.5%;
  }

  body[data-surface="home"].portal-home .energy-group {
    width: min(18vw, 360px);
  }

  body[data-surface="home"].portal-home .energy-group:first-child {
    top: 30%;
  }

  body[data-surface="home"].portal-home .energy-domain {
    min-height: 62px;
    padding-block: 10px;
  }

  body[data-surface="home"].portal-home .energy-chain {
    bottom: 17.5%;
  }

  body[data-surface="home"].portal-home .portal-telemetry {
    top: 25%;
    width: min(18vw, 360px);
  }

  body[data-surface="home"]:not(.portal-home) .side-left {
    top: 20%;
  }

  body[data-surface="home"]:not(.portal-home) .focus-button {
    min-height: 38px;
    padding-block: 5px;
  }

  body[data-surface="home"]:not(.portal-home) .hero-stage {
    left: 18%;
    right: 13%;
    top: 1%;
    bottom: 10%;
  }

  body[data-surface="home"]:not(.portal-home) .exhibit-caption {
    top: 21%;
  }
}

/* Compact desktop and tablet ------------------------------------------- */

@media (min-width: 701px) and (max-width: 1280px) {
  body[data-surface="home"] .masthead,
  body[data-surface="home"].portal-home .masthead {
    grid-template-columns: minmax(210px, 0.7fr) auto 1fr;
    gap: 8px;
    margin-inline: 18px;
  }

  body[data-surface="home"] .brand,
  body[data-surface="home"].portal-home .brand {
    width: min(270px, 23vw);
  }

  body[data-surface="home"] .masthead-actions :is(.catalog-link, #return-portal, .display-button) {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 10px;
  }

  body[data-surface="home"].portal-home .portal-primary-nav {
    width: min(570px, 47vw);
  }

  body[data-surface="home"].portal-home .masthead > .platform-access .platform-account-state {
    display: none;
  }

  body[data-surface="home"].portal-home .portal-intro {
    top: 13.5%;
    width: 22%;
  }

  body[data-surface="home"].portal-home .portal-intro h1 {
    font-size: clamp(32px, 3.2vw, 43px);
  }

  body[data-surface="home"].portal-home .energy-group {
    width: 21%;
    padding: 11px;
  }

  body[data-surface="home"].portal-home .energy-domain {
    min-height: 58px;
    padding: 9px 11px;
    border-radius: 13px;
  }

  body[data-surface="home"].portal-home .portal-telemetry {
    width: 21%;
    padding: 13px;
  }

  body[data-surface="home"].portal-home .energy-domain p {
    margin-top: 3px;
    font-size: 9px;
  }

  body[data-surface="home"].portal-home .hero-stage {
    left: 17%;
    right: 17%;
    top: 20%;
    bottom: 22%;
  }

  body[data-surface="home"].portal-home .energy-chain {
    left: 27%;
    right: 27%;
    bottom: 18%;
  }

  body[data-surface="home"].portal-home .portal-actions {
    left: 10%;
    right: 10%;
    grid-template-columns: minmax(300px, 2fr) minmax(105px, 0.72fr) minmax(95px, 0.64fr) minmax(155px, 1fr);
  }

  body[data-surface="home"]:not(.portal-home) .stage-heading {
    width: 17%;
  }

  body[data-surface="home"]:not(.portal-home) .side-left {
    width: 15%;
  }

  body[data-surface="home"]:not(.portal-home) .focus-copy small,
  body[data-surface="home"]:not(.portal-home) .focus-arr {
    display: none;
  }

  body[data-surface="home"]:not(.portal-home) .hero-stage {
    left: 17%;
    right: 13%;
  }

  body[data-surface="home"]:not(.portal-home) .teaching-dock {
    left: 22%;
    right: 19%;
  }

  body[data-surface="home"]:not(.portal-home) .exhibit-caption {
    width: 19%;
  }
}

@media (min-width: 701px) and (max-width: 980px) {
  body[data-surface="home"] .masthead-actions .catalog-link:nth-of-type(2),
  body[data-surface="home"] .masthead-actions .catalog-link:nth-of-type(3) {
    display: none;
  }

  body[data-surface="home"].portal-home .energy-domain p {
    display: none;
  }

  body[data-surface="home"].portal-home .energy-domain {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  body[data-surface="home"].portal-home .energy-domain strong {
    width: 100%;
    font-size: 12px;
  }

  body[data-surface="home"].portal-home .portal-actions {
    left: 3%;
    right: 3%;
    grid-template-columns: minmax(270px, 1.8fr) minmax(96px, 0.7fr) minmax(90px, 0.65fr) minmax(140px, 1fr);
  }

  body[data-surface="home"].portal-home .portal-mode-switch button {
    padding-inline: 4px;
    font-size: 9px;
  }

  body[data-surface="home"].portal-home .portal-telemetry {
    top: 27%;
  }

  body[data-surface="home"].portal-home .portal-telemetry > p {
    display: none;
  }

  body[data-surface="home"]:not(.portal-home) .stage-heading p,
  body[data-surface="home"]:not(.portal-home) .side-left .micro,
  body[data-surface="home"]:not(.portal-home) .home-object-count,
  body[data-surface="home"]:not(.portal-home) .exhibit-copy p {
    display: none;
  }

  body[data-surface="home"]:not(.portal-home) .side-left {
    top: 19%;
  }

  body[data-surface="home"]:not(.portal-home) .focus-button {
    min-height: 38px;
  }

  body[data-surface="home"]:not(.portal-home) .exhibit-caption {
    min-height: 96px;
  }
}

/* Mobile --------------------------------------------------------------- */

@media (max-width: 700px) {
  body[data-surface="home"] .screen,
  body[data-surface="home"]:not(.portal-home) .screen {
    min-height: 100svh;
    height: auto;
  }

  body[data-surface="home"] .screen::before {
    background:
      radial-gradient(ellipse at 50% 7%, rgba(255, 255, 255, 0.94), transparent 30%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.55), transparent 50%);
  }

  body[data-surface="home"] .masthead,
  body[data-surface="home"].portal-home .masthead {
    height: 58px;
    margin: 10px 10px 0;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  body[data-surface="home"] .brand,
  body[data-surface="home"].portal-home .brand {
    width: 205px;
  }

  body[data-surface="home"] .brand .university-mark,
  body[data-surface="home"].portal-home .brand .university-mark {
    max-height: 42px;
  }

  body[data-surface="home"] .masthead-actions,
  body[data-surface="home"].portal-home .masthead-actions {
    padding: 2px;
    background: rgba(224, 235, 247, 0.7);
  }

  body[data-surface="home"] .masthead-actions .catalog-link,
  body[data-surface="home"] .masthead-actions #return-portal span,
  body[data-surface="home"] .masthead-actions .display-button span {
    display: none;
  }

  body[data-surface="home"] .masthead-actions :is(#return-portal, .display-button) {
    min-width: 38px;
    min-height: 38px;
    padding: 0 9px;
  }

  body[data-surface="home"] .masthead > .platform-access,
  body[data-surface="home"].portal-home .masthead > .platform-access {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
    justify-content: center;
    padding: 5px;
    color: #315a7e;
    background: rgba(250, 252, 255, 0.9);
  }

  body[data-surface="home"].portal-home .screen {
    height: auto;
    min-height: 1180px;
    overflow: hidden;
  }

  body[data-surface="home"].portal-home .mainstage {
    position: relative;
    min-height: 1180px;
  }

  body[data-surface="home"].portal-home .portal-intro {
    top: 140px;
    left: 19px;
    right: 19px;
    width: auto;
    text-align: left;
  }

  body[data-surface="home"].portal-home .portal-intro h1 {
    font-size: 34px;
    letter-spacing: 0.08em;
  }

  body[data-surface="home"].portal-home .portal-subtitle {
    font-size: 11px;
  }

  body[data-surface="home"].portal-home .portal-primary-nav {
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    width: auto;
    min-height: 48px;
    padding: 4px;
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    transform: none;
  }

  body[data-surface="home"].portal-home .portal-primary-nav::-webkit-scrollbar {
    display: none;
  }

  body[data-surface="home"].portal-home .portal-primary-nav button {
    flex: 1 0 79px;
    min-height: 38px;
    padding-inline: 8px;
    font-size: 10px;
  }

  body[data-surface="home"].portal-home .energy-orbit-label {
    top: 216px;
    left: 18px;
    right: 18px;
    font-size: 8px;
  }

  body[data-surface="home"].portal-home .hero-stage {
    left: -9%;
    right: -9%;
    top: 244px;
    bottom: auto;
    height: 300px;
  }

  body[data-surface="home"].portal-home .mainstage::before {
    left: 2%;
    right: 2%;
    bottom: auto;
    top: 429px;
    height: 120px;
  }

  body[data-surface="home"].portal-home .energy-chain {
    display: none;
  }

  body[data-surface="home"].portal-home .energy-track {
    padding: 8px 10px;
  }

  body[data-surface="home"].portal-home .energy-track span {
    font-size: 9px;
  }

  body[data-surface="home"].portal-home .energy-track i {
    font-size: 10px;
  }

  body[data-surface="home"].portal-home .energy-chain > small {
    font-size: 8px;
  }

  body[data-surface="home"].portal-home .energy-directions {
    position: static;
  }

  body[data-surface="home"].portal-home .energy-group {
    left: 15px;
    right: 15px;
    width: auto;
    padding: 11px;
    gap: 6px;
  }

  body[data-surface="home"].portal-home .energy-group:first-child {
    top: 690px;
  }

  body[data-surface="home"].portal-home .energy-group h2 {
    padding-bottom: 8px;
    font-size: 12px;
  }

  body[data-surface="home"].portal-home .energy-group h2 small {
    display: none;
  }

  body[data-surface="home"].portal-home .energy-domain {
    min-height: 50px;
    padding: 9px 8px 8px 10px;
    border-radius: 12px;
  }

  body[data-surface="home"].portal-home .energy-domain strong {
    font-size: 11px;
  }

  body[data-surface="home"].portal-home .energy-domain strong span {
    width: 22px;
    min-width: 22px;
    height: 22px;
    font-size: 9px;
  }

  body[data-surface="home"].portal-home .energy-domain p {
    display: none;
  }

  body[data-surface="home"].portal-home .portal-actions {
    left: 15px;
    right: 15px;
    bottom: 68px;
    min-height: 178px;
    padding: 7px;
    grid-template-columns: 1fr 1fr;
    border-radius: 25px;
  }

  body[data-surface="home"].portal-home .portal-actions :is(a, button) {
    min-height: 46px;
    padding: 0 10px;
    font-size: 11px;
  }

  body[data-surface="home"].portal-home .portal-actions #portal-enter {
    grid-column: 1 / -1;
  }

  body[data-surface="home"].portal-home .portal-mode-switch {
    grid-column: 1 / -1;
    min-height: 58px;
  }

  body[data-surface="home"].portal-home .portal-mode-switch button {
    min-height: 50px;
    padding: 3px;
    font-size: 9px;
  }

  body[data-surface="home"].portal-home .portal-mode-switch button span {
    font-size: 13px;
  }

  body[data-surface="home"].portal-home .portal-actions small {
    top: calc(100% + 4px);
    font-size: 8px;
  }

  body[data-surface="home"].portal-home #vehicle-model-info-open {
    display: none;
  }

  body[data-surface="home"].portal-home .tesla-exhibition-entry {
    display: none;
  }

  body[data-surface="home"].portal-home .energy-preview {
    left: 11%;
    top: 250px;
    width: 78%;
    padding: 8px;
  }

  body[data-surface="home"].portal-home .energy-preview img {
    height: 210px;
  }

  body[data-surface="home"].portal-home .portal-telemetry {
    top: 521px;
    right: 15px;
    left: 15px;
    width: auto;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 10px;
    border-radius: 17px;
  }

  body[data-surface="home"].portal-home .portal-telemetry-head,
  body[data-surface="home"].portal-home .portal-telemetry > p {
    grid-column: 1 / -1;
  }

  body[data-surface="home"].portal-home .portal-telemetry-head {
    padding-bottom: 9px;
  }

  body[data-surface="home"].portal-home .portal-metric {
    min-height: 69px;
    padding: 9px 0;
    display: block;
    border-bottom: 0;
  }

  body[data-surface="home"].portal-home .portal-metric > span {
    display: block;
    margin-bottom: 4px;
    font-size: 8px;
  }

  body[data-surface="home"].portal-home .portal-metric > strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
  }

  body[data-surface="home"].portal-home .portal-metric > i {
    display: block;
  }

  body[data-surface="home"].portal-home .portal-telemetry > p {
    display: none;
  }

  body[data-surface="home"].portal-home.inspector-open .inspector:not([hidden]) {
    top: 515px;
    right: 15px;
    bottom: auto;
    width: calc(100% - 30px);
    max-height: 510px;
    overflow: auto;
  }

  body[data-surface="home"]:not(.portal-home) .screen {
    display: block;
  }

  body[data-surface="home"]:not(.portal-home) .mainstage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 86px 14px 18px;
    overflow: visible;
  }

  body[data-surface="home"]:not(.portal-home) .mainstage::before {
    left: 3%;
    right: 3%;
    top: 310px;
    bottom: auto;
    height: 120px;
  }

  body[data-surface="home"]:not(.portal-home) .stage-heading {
    top: 16px;
    left: 15px;
    right: 15px;
    width: auto;
  }

  body[data-surface="home"]:not(.portal-home) .stage-heading h1 {
    font-size: 25px;
  }

  body[data-surface="home"]:not(.portal-home) .stage-heading p {
    font-size: 9px;
  }

  body[data-surface="home"]:not(.portal-home) .hero-stage,
  body[data-surface="home"]:not(.portal-home).inspector-open .hero-stage,
  body[data-surface="home"]:not(.portal-home).tools-open .hero-stage,
  body[data-surface="home"]:not(.portal-home)[data-render-mode="section"] .hero-stage,
  body[data-surface="home"]:not(.portal-home)[data-camera-view="top"] .hero-stage {
    position: relative;
    inset: auto;
    grid-row: auto;
    width: 100%;
    height: 320px;
    margin: 16px 0 0;
    order: 0;
  }

  body[data-surface="home"]:not(.portal-home) .view-switch,
  body[data-surface="home"]:not(.portal-home).inspector-open .view-switch {
    top: 60px;
    left: 50%;
    max-width: calc(100vw - 30px);
    white-space: nowrap;
  }

  body[data-surface="home"]:not(.portal-home) .view-switch button {
    padding-inline: 9px;
    font-size: 9px;
  }

  body[data-surface="home"]:not(.portal-home) .side-left {
    position: relative;
    inset: auto;
    width: auto;
    order: 1;
  }

  body[data-surface="home"]:not(.portal-home) .side-left .section-kicker,
  body[data-surface="home"]:not(.portal-home) .side-left .micro,
  body[data-surface="home"]:not(.portal-home) .home-object-count {
    display: none;
  }

  body[data-surface="home"]:not(.portal-home) .focus-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body[data-surface="home"]:not(.portal-home) .focus-button {
    width: auto;
    min-height: 42px;
    padding: 8px 10px;
  }

  body[data-surface="home"]:not(.portal-home) .focus-copy small {
    display: none;
  }

  body[data-surface="home"]:not(.portal-home) .inspector-launcher {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    justify-content: center;
  }

  body[data-surface="home"]:not(.portal-home) .teaching-dock,
  body[data-surface="home"]:not(.portal-home).tools-open .teaching-dock,
  body[data-surface="home"]:not(.portal-home).inspector-open .teaching-dock {
    position: relative;
    inset: auto;
    order: 3;
    padding: 9px;
  }

  body[data-surface="home"] .mode-switch button {
    min-height: 36px;
    padding-inline: 6px;
    font-size: 10px;
  }

  body[data-surface="home"] .mode-switch button span {
    display: none;
  }

  body[data-surface="home"] #assembly-tools-toggle {
    min-height: 40px;
    padding-inline: 10px;
    font-size: 10px;
  }

  body[data-surface="home"]:not(.portal-home) .scene-toolbar {
    position: relative;
    inset: auto;
    max-width: none;
    order: 4;
    justify-content: center;
  }

  body[data-surface="home"]:not(.portal-home) .exhibit-caption,
  body[data-surface="home"]:not(.portal-home).inspector-open .exhibit-caption {
    position: relative;
    inset: auto;
    width: auto;
    min-height: 0;
    order: 5;
    opacity: 1;
    transform: none;
  }

  body[data-surface="home"]:not(.portal-home) .inspector {
    position: relative;
    inset: auto;
    width: auto;
    order: 6;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }

  body[data-surface="home"]:not(.portal-home) .inspector[hidden] {
    display: none !important;
  }

  body[data-surface="home"] .inspector-heading,
  body[data-surface="home"] .part-browser {
    grid-column: 1 / -1;
  }

  body[data-surface="home"] .part-browser {
    max-height: 280px;
  }

  body[data-surface="home"]:not(.portal-home) .live-status {
    display: none;
  }

  body[data-surface="home"]:not(.portal-home) .directions {
    margin: 0 14px 14px;
    min-height: 62px;
    padding: 10px 13px;
    border-radius: 16px;
  }

  body[data-surface="home"]:not(.portal-home) .directions-head {
    flex-wrap: wrap;
    gap: 5px 13px;
  }

  body[data-surface="home"]:not(.portal-home) .library-summary {
    width: 100%;
  }

  body[data-surface="home"]:not(.portal-home) .exhibition-note {
    display: none;
  }

  body[data-surface="home"] .professional-map {
    width: calc(100vw - 24px);
    max-height: 90svh;
    padding: 18px;
    border-radius: 20px;
  }

  body[data-surface="home"] .professional-map .domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body[data-surface="home"] .professional-map .domain-card {
    padding: 14px 10px;
  }

  body[data-surface="home"] :is(.showcase-help, .vehicle-model-info) {
    padding: 21px;
    border-radius: 20px;
  }
}

/* Motion and accessibility --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  body[data-surface="home"] *,
  body[data-surface="home"] *::before,
  body[data-surface="home"] *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  body[data-surface="home"] #hero-canvas {
    filter: saturate(1.04) contrast(1.03);
  }
}

@media (prefers-contrast: more) {
  body[data-surface="home"] {
    --bright-line: rgba(24, 76, 128, 0.4);
    --bright-line-strong: rgba(9, 86, 164, 0.58);
  }

  body[data-surface="home"] :is(
    .masthead,
    .energy-domain,
    .portal-actions,
    .focus-button,
    .inspector,
    .teaching-dock,
    .exhibit-caption,
    .directions
  ) {
    border-color: rgba(25, 84, 143, 0.36);
  }
}

@media (forced-colors: active) {
  body[data-surface="home"] *,
  body[data-surface="home"] *::before,
  body[data-surface="home"] *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  body[data-surface="home"] :is(.energy-domain, .focus-button, .portal-actions, .teaching-dock) {
    border: 1px solid CanvasText;
  }
}
