@property --cinema-a {
  syntax: '<color>';
  inherits: true;
  initial-value: #65e7ff;
}

@property --cinema-b {
  syntax: '<color>';
  inherits: true;
  initial-value: #8a7cff;
}

@property --cinema-c {
  syntax: '<color>';
  inherits: true;
  initial-value: #4fffb0;
}

@property --state {
  syntax: '<color>';
  inherits: true;
  initial-value: #67e8f9;
}

:root {
  --app-height: 100dvh;
  --cinema-a: #65e7ff;
  --cinema-b: #8a7cff;
  --cinema-c: #4fffb0;
  --cinema-sun: #ffe66d;
  --scene-deep: #06132e;
  --state: #67e8f9;
  --rest: #a9b8ff;
  --panel: rgba(5, 16, 40, 0.68);
  --panel-strong: rgba(7, 22, 51, 0.86);
  --panel-soft: rgba(255, 255, 255, 0.075);
  --white-line: rgba(255, 255, 255, 0.18);
  --cinema-text: #fbfdff;
  --cinema-muted: #c7d8f1;
  --cinema-shadow: rgba(1, 8, 24, 0.48);
}

html,
body {
  width: 100%;
  height: var(--app-height, 100dvh);
  min-height: 0 !important;
  max-height: var(--app-height, 100dvh);
  overflow: hidden !important;
  overscroll-behavior: none;
}

html {
  background: var(--scene-deep) !important;
}

body {
  position: relative;
  isolation: isolate;
  padding: 6px !important;
  color: var(--cinema-text) !important;
  background-color: #071532 !important;
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--cinema-a) 34%, transparent), transparent 34%),
    radial-gradient(circle at 84% 22%, color-mix(in srgb, var(--cinema-b) 30%, transparent), transparent 38%),
    radial-gradient(circle at 54% 92%, color-mix(in srgb, var(--cinema-c) 25%, transparent), transparent 42%),
    linear-gradient(145deg, color-mix(in srgb, var(--scene-deep) 84%, var(--cinema-b)), var(--scene-deep) 56%, color-mix(in srgb, var(--scene-deep) 82%, var(--cinema-a))) !important;
  transition:
    --cinema-a 900ms cubic-bezier(.2, .8, .2, 1),
    --cinema-b 900ms cubic-bezier(.2, .8, .2, 1),
    --cinema-c 900ms cubic-bezier(.2, .8, .2, 1),
    --state 900ms cubic-bezier(.2, .8, .2, 1),
    background-color 900ms ease;
}

body[data-scene="offline"] {
  --cinema-a: #67d7ff;
  --cinema-b: #8a7cff;
  --cinema-c: #ffb86f;
  --state: #a9b8ff;
  --scene-deep: #071536;
}

body[data-scene="starting"] {
  --cinema-a: #55f0d2;
  --cinema-b: #ffb45e;
  --cinema-c: #fff078;
  --state: #ffe071;
  --scene-deep: #092340;
}

body[data-scene="connecting"] {
  --cinema-a: #51e5ff;
  --cinema-b: #9284ff;
  --cinema-c: #4fffb0;
  --state: #63e6ff;
  --scene-deep: #061b39;
}

body[data-scene="live"] {
  --cinema-a: #41f2be;
  --cinema-b: #3abfff;
  --cinema-c: #ffe570;
  --state: #64f6c5;
  --scene-deep: #05243a;
}

body[data-scene="stopping"] {
  --cinema-a: #ffb86c;
  --cinema-b: #d98cff;
  --cinema-c: #62d9ff;
  --state: #ffabc9;
  --scene-deep: #1d153e;
}

body[data-scene="stale"],
body[data-scene="error"] {
  --cinema-a: #61d5ff;
  --cinema-b: #a78bfa;
  --cinema-c: #ffca72;
  --state: #ffcf72;
  --scene-deep: #10183a;
}

body[data-auth-state="checking"] {
  --cinema-a: #65e7ff;
  --cinema-b: #8a7cff;
  --cinema-c: #5de0c4;
  --state: #78dcff;
  --scene-deep: #071532;
}

body[data-auth-state="identity"] {
  --cinema-a: #54e8ff;
  --cinema-b: #7f9cff;
  --cinema-c: #5fffc4;
  --state: #5fe8ff;
  --scene-deep: #071c3c;
}

body[data-auth-state="ready"] {
  --cinema-a: #55efc2;
  --cinema-b: #58c7ff;
  --cinema-c: #ffe66d;
  --state: #66f2c5;
  --scene-deep: #07253b;
}

body[data-auth-state="signing"] {
  --cinema-a: #52ffd0;
  --cinema-b: #8e84ff;
  --cinema-c: #ffdf66;
  --state: #8dffd8;
  --scene-deep: #102244;
}

body[data-auth-state="error"] {
  --cinema-a: #ffac78;
  --cinema-b: #b597ff;
  --cinema-c: #ffd46b;
  --state: #ffc46f;
  --scene-deep: #24183e;
}

.livingCanvas,
.cinemaAtmosphere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: var(--app-height, 100dvh);
  pointer-events: none;
}

.livingCanvas {
  z-index: -3;
  opacity: 0.82;
}

.cinemaAtmosphere {
  z-index: -2;
  overflow: hidden;
  contain: strict;
}

.cinemaOrb {
  position: absolute;
  width: min(52vw, 48rem);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.34;
  filter: blur(clamp(38px, 7vw, 90px));
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.cinemaOrbA {
  top: -27%;
  left: -10%;
  background: var(--cinema-a);
  animation: cinemaDriftA 16s ease-in-out infinite alternate;
}

.cinemaOrbB {
  top: -18%;
  right: -13%;
  background: var(--cinema-b);
  animation: cinemaDriftB 20s ease-in-out infinite alternate;
}

.cinemaOrbC {
  right: 18%;
  bottom: -45%;
  background: var(--cinema-c);
  animation: cinemaDriftC 18s ease-in-out infinite alternate;
}

.cinemaHorizon {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -23%;
  height: 42%;
  border-radius: 50% 50% 0 0;
  opacity: 0.5;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--cinema-sun) 48%, transparent), transparent 66%);
  filter: blur(20px);
  animation: horizonBreathe 8s ease-in-out infinite;
}

.portal,
.authSurface {
  --surface: var(--panel-strong) !important;
  --surface-raised: var(--panel-soft) !important;
  --line: var(--white-line) !important;
  --line-soft: color-mix(in srgb, var(--state) 24%, transparent) !important;
  --text: var(--cinema-text) !important;
  --muted: var(--cinema-muted) !important;
  --accent: var(--cinema-a) !important;
  --accent-strong: color-mix(in srgb, var(--cinema-a) 72%, white) !important;
  color: var(--cinema-text) !important;
  border-color: color-mix(in srgb, var(--state) 38%, rgba(255, 255, 255, 0.18)) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--panel) 92%, var(--cinema-a)), color-mix(in srgb, var(--panel) 94%, var(--cinema-b))) !important;
  box-shadow:
    0 24px 80px var(--cinema-shadow),
    0 0 80px color-mix(in srgb, var(--state) 12%, transparent),
    inset 0 1px rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(22px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
}

.portal {
  width: calc(100vw - 12px) !important;
  max-width: none !important;
  height: calc(var(--app-height, 100dvh) - 12px);
  max-height: none;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(17rem, 0.62fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: clamp(8px, 1.3vmin, 16px);
  padding: clamp(12px, 1.8vmin, 22px) !important;
  overflow: hidden;
  border-radius: clamp(20px, 2.4vw, 34px) !important;
}

.portal[data-state="offline"] { --state: #a9b8ff !important; }
.portal[data-state="starting"] { --state: #ffe071 !important; }
.portal[data-state="connecting"] { --state: #63e6ff !important; }
.portal[data-state="live"] { --state: #64f6c5 !important; }
.portal[data-state="stopping"] { --state: #ffabc9 !important; }
.portal[data-state="stale"],
.portal[data-state="error"] { --state: #ffcf72 !important; }

.portal::before,
.authSurface::before {
  z-index: 0;
  background: linear-gradient(108deg, transparent 12%, color-mix(in srgb, var(--cinema-a) 15%, transparent), transparent 45%) !important;
  animation: cinemaSweep 9s ease-in-out infinite !important;
}

.portal::after,
.authSurface::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--cinema-a) 12%, transparent), transparent 26%),
    radial-gradient(circle at 90% 90%, color-mix(in srgb, var(--cinema-c) 10%, transparent), transparent 30%);
}

.portalHeader {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 50px;
  display: grid !important;
  grid-template-columns: max-content minmax(13rem, 1fr) max-content;
  align-items: center !important;
  justify-content: space-between;
  gap: clamp(8px, 1.2vw, 16px) !important;
  z-index: 8 !important;
  padding: 0 2px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portalHeader .brandLockup {
  min-width: 0;
  max-width: min(30vw, 24rem);
}

.portalHeader .brand {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.targetDock {
  --target-tone: #73e9ff;
  position: relative;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  max-width: 28rem;
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  justify-self: center;
  overflow: hidden;
  padding: 4px 5px 4px 10px;
  border: 1px solid color-mix(in srgb, var(--target-tone) 38%, rgba(255, 255, 255, 0.14));
  border-radius: 15px;
  color: var(--cinema-text);
  background:
    radial-gradient(circle at 8% 50%, color-mix(in srgb, var(--target-tone) 15%, transparent), transparent 28%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.09), rgba(3, 16, 38, 0.6));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 9px 28px color-mix(in srgb, var(--target-tone) 10%, transparent);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  transition: border-color 320ms ease, box-shadow 320ms ease, background-color 320ms ease;
}

.targetDock::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -80% 45% -80% -25%;
  pointer-events: none;
  opacity: 0.32;
  background: radial-gradient(circle, var(--target-tone), transparent 66%);
  filter: blur(14px);
  animation: targetGlow 5.6s ease-in-out infinite;
}

.targetDock[data-tone="ok"],
.targetDock[data-tone="live"] {
  --target-tone: #64f6c5;
}

.targetDock[data-tone="warn"],
.targetDock[data-tone="starting"],
.targetDock[data-tone="stopping"] {
  --target-tone: #ffe071;
}

.targetDock[data-tone="connecting"],
.targetDock[data-tone="syncing"] {
  --target-tone: #73e9ff;
}

.targetDock[data-tone="rest"],
.targetDock[data-tone="offline"],
.targetDock[data-tone="empty"] {
  --target-tone: #a9b8ff;
}

.targetDock[data-tone="ready"] {
  --target-tone: #86efac;
}

.targetDock[data-tone="danger"],
.targetDock[data-tone="error"] {
  --target-tone: #ff9eaa;
}

.targetDock:focus-within {
  border-color: color-mix(in srgb, var(--target-tone) 78%, white);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--target-tone) 24%, transparent),
    0 12px 34px color-mix(in srgb, var(--target-tone) 16%, transparent),
    inset 0 1px rgba(255, 255, 255, 0.13);
}

.targetPulse {
  width: 9px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--target-tone) 68%, white);
  border-radius: 50%;
  color: var(--target-tone);
  background: currentColor;
  box-shadow: 0 0 8px currentColor, 0 0 17px color-mix(in srgb, currentColor 48%, transparent);
  animation: targetPulseBreath 2.8s ease-in-out infinite;
}

.targetCopy {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 1px;
  cursor: pointer;
}

.targetCopy::after {
  content: '';
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 6px;
  height: 6px;
  pointer-events: none;
  border-right: 1.5px solid color-mix(in srgb, var(--target-tone) 74%, white);
  border-bottom: 1.5px solid color-mix(in srgb, var(--target-tone) 74%, white);
  transform: rotate(45deg);
}

.targetLabel {
  overflow: hidden;
  color: color-mix(in srgb, var(--target-tone) 68%, white);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.targetSelect {
  min-width: 0;
  width: 100%;
  min-height: 21px;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  padding: 1px 22px 1px 0;
  color: var(--cinema-text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  outline: none;
}

.targetSelect option {
  color: #f8fbff;
  background: #0a1b3a;
}

.targetSelect:disabled {
  cursor: wait;
  opacity: 0.66;
}

.targetState {
  max-width: 8.5rem;
  overflow: hidden;
  padding: 5px 7px;
  border: 1px solid color-mix(in srgb, var(--target-tone) 27%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--target-tone) 55%, white);
  background: color-mix(in srgb, var(--target-tone) 8%, rgba(4, 15, 37, 0.48));
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.targetRefresh {
  width: 32px;
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--target-tone) 29%, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  padding: 0;
  color: color-mix(in srgb, var(--target-tone) 67%, white);
  background: color-mix(in srgb, var(--target-tone) 8%, rgba(255, 255, 255, 0.035));
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.targetRefresh:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--target-tone) 62%, white);
  background: color-mix(in srgb, var(--target-tone) 18%, rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 18px color-mix(in srgb, var(--target-tone) 18%, transparent);
  transform: rotate(18deg) scale(1.04);
}

.targetRefresh:not(:disabled):active {
  transform: rotate(42deg) scale(0.96);
}

.targetRefresh:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--target-tone) 78%, white);
  outline-offset: 2px;
}

.targetRefresh:disabled {
  cursor: wait;
  opacity: 0.58;
}

.targetDock[aria-busy="true"] .targetRefresh {
  animation: targetRefreshSpin 1.2s linear infinite;
}

.brandMark {
  position: relative;
  overflow: hidden;
  color: color-mix(in srgb, var(--cinema-a) 64%, white) !important;
  border-color: color-mix(in srgb, var(--cinema-a) 34%, transparent) !important;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.25), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--cinema-a) 23%, transparent), color-mix(in srgb, var(--cinema-b) 20%, transparent)) !important;
  box-shadow: 0 0 28px color-mix(in srgb, var(--cinema-a) 22%, transparent);
}

.brandMark::after {
  content: '';
  position: absolute;
  inset: -55%;
  border: 1px solid color-mix(in srgb, var(--cinema-a) 40%, transparent);
  border-radius: 42%;
  animation: markCurrent 8s linear infinite;
}

.brand,
.title {
  color: var(--cinema-text) !important;
  text-shadow: 0 0 30px color-mix(in srgb, var(--cinema-a) 18%, transparent);
}

.brand span,
.identity,
.eyebrow,
.privacyNote {
  color: var(--cinema-muted) !important;
}

.account {
  gap: 8px !important;
}

.identity {
  max-width: min(24vw, 15rem) !important;
}

.signout {
  color: var(--cinema-text) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.signout:hover {
  border-color: color-mix(in srgb, var(--cinema-a) 46%, transparent) !important;
  background: color-mix(in srgb, var(--cinema-a) 13%, transparent) !important;
  box-shadow: 0 8px 30px color-mix(in srgb, var(--cinema-a) 13%, transparent);
}

.systemPulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--state) 32%, transparent);
  border-radius: 999px;
  color: var(--cinema-text);
  background: color-mix(in srgb, var(--state) 9%, rgba(5, 17, 40, 0.54));
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.systemPulseDot {
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--state);
  background: currentColor;
  box-shadow: 0 0 13px currentColor;
  animation: signalHeartbeat 2.8s ease-in-out infinite;
}

.networkStage {
  grid-column: 1;
  grid-row: 2 / 4;
  min-width: 0;
  min-height: 0 !important;
  height: 100%;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(18px, 2vw, 28px) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 46%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--state) 13%, transparent), transparent 45%),
    rgba(2, 12, 31, 0.32);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.025);
}

.networkStage::before {
  inset: 14% 20% !important;
  opacity: 0.8 !important;
  background: radial-gradient(circle, color-mix(in srgb, var(--state) 34%, transparent), transparent 68%) !important;
  animation: stageInhale 4.8s ease-in-out infinite !important;
}

.networkStage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: clamp(34px, 4vw, 58px) clamp(34px, 4vw, 58px);
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
  animation: gridCurrent 14s linear infinite;
}

.networkMap {
  z-index: 2 !important;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--state) 18%, transparent));
  transform: scale(1.04);
}

.route {
  stroke-width: 1.5px !important;
  opacity: 0.54 !important;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--state) 54%, transparent));
}

.route.secondary {
  stroke: color-mix(in srgb, var(--cinema-b) 60%, white) !important;
  opacity: 0.3 !important;
}

.node {
  fill: color-mix(in srgb, var(--scene-deep) 74%, var(--state)) !important;
  filter: drop-shadow(0 0 7px var(--state));
}

.packet {
  filter: drop-shadow(0 0 8px var(--state)) drop-shadow(0 0 14px var(--state)) !important;
}

.coreCluster {
  inset: 54% auto auto 58% !important;
  width: clamp(132px, min(25vw, 33vh), 220px) !important;
  z-index: 5 !important;
}

.statusCore {
  border-width: 2px !important;
  background:
    radial-gradient(circle at 38% 30%, color-mix(in srgb, var(--state) 24%, rgba(255, 255, 255, 0.1)), transparent 28%),
    radial-gradient(circle, color-mix(in srgb, var(--state) 17%, var(--panel-strong)), var(--panel-strong) 68%) !important;
  box-shadow:
    0 0 38px color-mix(in srgb, var(--state) 35%, transparent),
    0 0 90px color-mix(in srgb, var(--state) 18%, transparent),
    inset 0 0 36px color-mix(in srgb, var(--state) 16%, transparent) !important;
}

.statusCore::before {
  content: '';
  position: absolute;
  inset: 13%;
  border: 1px solid color-mix(in srgb, var(--state) 30%, transparent);
  border-radius: 50%;
  animation: innerCurrent 7s linear infinite;
}

.statusValue {
  position: relative;
  z-index: 2;
  font-size: clamp(0.78rem, 1.35vw, 1.15rem) !important;
  text-shadow: 0 0 18px color-mix(in srgb, var(--state) 46%, transparent);
}

.orbit {
  border-color: color-mix(in srgb, var(--state) 72%, transparent) !important;
  box-shadow: 0 0 20px color-mix(in srgb, var(--state) 10%, transparent);
}

.sceneNarrative {
  position: absolute;
  z-index: 6;
  top: clamp(48px, 8vh, 72px);
  left: clamp(16px, 2vw, 28px);
  width: min(30rem, 45%);
  pointer-events: none;
}

.sceneEyebrow {
  margin: 0 0 7px;
  color: color-mix(in srgb, var(--state) 70%, white);
  font-size: clamp(0.62rem, 0.75vw, 0.74rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sceneTitle {
  max-width: 15ch;
  margin: 0;
  color: var(--cinema-text);
  font-size: clamp(1.35rem, min(3vw, 4vh), 2.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.sceneCaption {
  max-width: 34ch;
  margin: 10px 0 0;
  color: var(--cinema-muted);
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-weight: 650;
  line-height: 1.5;
  text-wrap: balance;
}

.stageBadge {
  position: absolute;
  z-index: 6;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(14px, 2vh, 22px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: var(--cinema-muted);
  background: rgba(5, 16, 40, 0.46);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.stageBadge::before {
  content: '';
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cinema-c);
  box-shadow: 0 0 10px var(--cinema-c);
}

.facts,
.controls {
  grid-column: 2;
  z-index: 7 !important;
}

.facts {
  grid-row: 2;
  align-self: start;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin: 0 !important;
}

.fact {
  min-height: 62px;
  border-color: rgba(255, 255, 255, 0.13) !important;
  border-radius: 17px !important;
  padding: 11px 13px !important;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.09), transparent),
    rgba(4, 15, 37, 0.5) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.fact:hover {
  border-color: color-mix(in srgb, var(--state) 38%, transparent) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18), 0 0 25px color-mix(in srgb, var(--state) 9%, transparent) !important;
}

.factIndicator {
  width: 11px !important;
  color: var(--rest) !important;
}

.fact[data-tone="ok"] .factIndicator { color: #68f5c2 !important; }
.fact[data-tone="warn"] .factIndicator { color: #ffe071 !important; }
.fact[data-tone="rest"] .factIndicator { color: #a9b8ff !important; }
.fact[data-tone="danger"] .factIndicator { color: #ff9eaa !important; }

.fact dt {
  color: var(--cinema-muted) !important;
}

.fact dd {
  color: var(--cinema-text) !important;
  font-size: 0.9rem !important;
}

.controls {
  grid-row: 3;
  align-self: end;
  justify-items: stretch !important;
  gap: 7px !important;
  padding: 0 !important;
}

.sessionTimer {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 8px;
  overflow: hidden;
  margin: 0;
  padding: clamp(10px, 1.45vmin, 14px);
  border: 1px solid color-mix(in srgb, var(--state) 34%, rgba(255, 255, 255, 0.14));
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--cinema-c) 17%, transparent), transparent 38%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.105), rgba(3, 16, 38, 0.54));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 12px 36px color-mix(in srgb, var(--state) 10%, transparent);
  backdrop-filter: blur(15px) saturate(135%);
  transition: border-color 480ms ease, background-color 480ms ease, box-shadow 480ms ease, filter 480ms ease;
}

.sessionTimer::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -80% -35%;
  pointer-events: none;
  opacity: 0.34;
  background: conic-gradient(from 90deg, transparent, var(--cinema-a), transparent 32%, var(--cinema-c), transparent 68%);
  filter: blur(22px);
  animation: timerAurora 11s linear infinite;
}

.sessionTimer[data-timer-state="safe"] {
  border-color: color-mix(in srgb, #64f6c5 54%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 12px 38px rgba(75, 246, 190, 0.14);
}

.sessionTimer[data-timer-state="warning"] {
  border-color: color-mix(in srgb, #ffe071 62%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 12px 42px rgba(255, 224, 113, 0.2);
  animation: timerBreathe 2.6s ease-in-out infinite;
}

.sessionTimer[data-timer-state="checking"] {
  border-color: color-mix(in srgb, #87e8ff 58%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.13), 0 12px 40px rgba(116, 214, 255, 0.17);
}

.sessionTimer[data-timer-state="stopping"] {
  border-color: color-mix(in srgb, #ffc77a 48%, transparent);
}

.sessionTimer[data-timer-state="syncing"] {
  border-style: dashed;
  opacity: 0.88;
}

.timerHeader {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.timerKicker {
  margin: 0 0 3px;
  color: color-mix(in srgb, var(--state) 66%, white);
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.timerTitle {
  margin: 0;
  color: var(--cinema-text);
  font-size: clamp(0.78rem, 1vw, 0.94rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.timerRemaining {
  flex: 0 0 auto;
  min-width: 7.2ch;
  color: color-mix(in srgb, var(--state) 70%, white);
  font-family: ui-monospace, 'SFMono-Regular', 'Cascadia Code', 'Roboto Mono', monospace;
  font-size: clamp(1rem, 1.6vw, 1.38rem);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1;
  text-align: right;
  text-shadow: 0 0 20px color-mix(in srgb, var(--state) 42%, transparent);
}

.timerMeta {
  position: relative;
  z-index: 1;
  min-height: 2.5em;
  margin: 0;
  color: var(--cinema-muted);
  font-size: 0.65rem;
  font-weight: 650;
  line-height: 1.3;
  text-wrap: balance;
}

.timerTrack {
  position: relative;
  z-index: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.timerFill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cinema-a), var(--cinema-c), var(--cinema-sun));
  box-shadow: 0 0 14px color-mix(in srgb, var(--cinema-c) 58%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms linear, background-color 500ms ease;
}

.extendChoices {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.extendChoice {
  min-width: 0;
  min-height: 36px;
  border: 1px solid color-mix(in srgb, var(--cinema-c) 34%, rgba(255, 255, 255, 0.12));
  border-radius: 11px;
  padding: 7px 5px;
  color: #05271f;
  background: linear-gradient(120deg, color-mix(in srgb, #70f2c9 82%, white), color-mix(in srgb, #75dcff 80%, white));
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 7px 20px rgba(77, 235, 194, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.extendChoice:not(:disabled):hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(77, 235, 194, 0.2);
}

.extendChoice:not(:disabled):active { transform: scale(0.98); }

.extendChoice:disabled {
  color: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

body[data-autostop="warning"] .cinemaHorizon {
  opacity: 0.76;
  filter: blur(17px) saturate(125%);
}

body[data-autostop="checking"] .cinemaOrbC {
  opacity: 0.48;
}

body[data-event="extended"] .cinemaOrbA,
body[data-event="extended"] .cinemaOrbB,
body[data-event="extended"] .cinemaOrbC {
  animation-duration: 4.5s;
  opacity: 0.58;
}

.primaryAction {
  width: 100% !important;
  min-height: clamp(48px, 7vh, 58px) !important;
  border: 1px solid rgba(255, 255, 255, 0.48) !important;
  border-radius: 17px !important;
  color: #02271e !important;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--cinema-c) 78%, white), color-mix(in srgb, var(--cinema-a) 75%, white)) !important;
  box-shadow:
    0 14px 34px color-mix(in srgb, var(--cinema-c) 22%, transparent),
    inset 0 1px rgba(255, 255, 255, 0.62) !important;
}

.primaryAction:not(:disabled):hover {
  box-shadow:
    0 18px 42px color-mix(in srgb, var(--cinema-c) 30%, transparent),
    0 0 34px color-mix(in srgb, var(--cinema-a) 18%, transparent) !important;
}

.primaryAction.stopState {
  color: #321126 !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: linear-gradient(120deg, #ffc77a, #ff9ecb 48%, #caa7ff) !important;
  box-shadow: 0 14px 34px rgba(255, 158, 203, 0.22), inset 0 1px rgba(255, 255, 255, 0.62) !important;
}

.primaryAction:disabled {
  color: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.13) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.secondaryActions {
  min-height: 40px !important;
  gap: 6px !important;
}

.textAction {
  flex: 1 1 8rem;
  min-height: 40px !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--cinema-text) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  text-decoration: none !important;
}

.textAction:hover {
  border-color: color-mix(in srgb, var(--state) 42%, transparent) !important;
  background: color-mix(in srgb, var(--state) 10%, transparent) !important;
}

#openLabLink:not([hidden]) {
  color: #03251d !important;
  border-color: rgba(255, 255, 255, 0.44) !important;
  background: linear-gradient(110deg, #6df5ca, #6dd8ff) !important;
  box-shadow: 0 10px 28px rgba(76, 235, 194, 0.18);
}

.notice,
.alert {
  min-height: 1.25em !important;
  max-height: 2.9em;
  overflow: hidden !important;
  color: var(--cinema-muted) !important;
  font-size: 0.73rem !important;
}

.alert {
  color: #ffd0d6 !important;
}

.authSurface {
  width: calc(100vw - 12px) !important;
  max-width: none !important;
  height: calc(var(--app-height, 100dvh) - 12px);
  min-height: 0;
  max-height: none;
  display: grid;
  grid-template-columns: minmax(16rem, 0.82fr) minmax(22rem, 1.18fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(14px, 2.5vw, 40px);
  padding: clamp(18px, 3vw, 42px) !important;
  overflow: hidden;
  border-radius: clamp(20px, 2.4vw, 34px) !important;
}

.authSurface .brandRow {
  grid-column: 1;
  grid-row: 1;
  z-index: 4;
  min-width: 0;
  max-width: 100%;
  align-self: start;
}

.authSurface .brandRow > div:last-child {
  min-width: 0;
  flex: 1 1 auto;
}

.authSurface .eyebrow,
.authSurface .title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loginStory {
  grid-column: 1;
  grid-row: 2;
  z-index: 4;
  align-self: center;
  max-width: 34rem;
}

.loginKicker {
  margin: 0 0 12px;
  color: color-mix(in srgb, var(--state) 72%, white);
  font-size: clamp(0.65rem, 0.8vw, 0.78rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.loginHeadline {
  max-width: 9ch;
  margin: 0;
  color: var(--cinema-text);
  font-size: clamp(2.35rem, min(6vw, 8vh), 5.8rem);
  font-weight: 800;
  line-height: 0.91;
  letter-spacing: -0.065em;
  text-wrap: balance;
  text-shadow: 0 12px 50px rgba(0, 0, 0, 0.25);
}

.loginLead {
  max-width: 38ch;
  margin: clamp(14px, 2.3vh, 24px) 0 0;
  color: var(--cinema-muted);
  font-size: clamp(0.82rem, 1.2vw, 1rem);
  font-weight: 600;
  line-height: 1.62;
  text-wrap: balance;
}

.trustSignals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(14px, 2.5vh, 26px) 0 0;
  padding: 0;
  list-style: none;
}

.trustSignals li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--cinema-text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.trustSignals li::before {
  content: '';
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cinema-c);
  box-shadow: 0 0 9px var(--cinema-c);
}

.authStage {
  grid-column: 2;
  grid-row: 1 / 4;
  z-index: 4;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  align-content: center;
  gap: clamp(11px, 2vh, 18px) !important;
  padding: clamp(18px, 4vh, 36px) !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: clamp(20px, 2.5vw, 30px);
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--state) 18%, transparent), transparent 32%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.09), rgba(2, 13, 34, 0.38));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.authCore {
  width: clamp(112px, min(19vw, 28vh), 190px) !important;
  color: color-mix(in srgb, var(--state) 72%, white) !important;
  border-color: color-mix(in srgb, var(--state) 62%, transparent) !important;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.2), transparent 28%),
    radial-gradient(circle, color-mix(in srgb, var(--state) 18%, var(--panel-strong)), var(--panel-strong) 68%) !important;
  box-shadow:
    0 0 38px color-mix(in srgb, var(--state) 34%, transparent),
    0 0 92px color-mix(in srgb, var(--state) 16%, transparent),
    inset 0 0 30px color-mix(in srgb, var(--state) 14%, transparent) !important;
}

.authCore::before,
.authCore::after {
  border-color: color-mix(in srgb, var(--state) 68%, transparent) !important;
}

.authStatus {
  margin-top: 4px !important;
  color: var(--cinema-text) !important;
  font-size: clamp(1rem, 1.6vw, 1.3rem) !important;
}

.authError {
  color: #ffd0d6 !important;
}

.providerSlot {
  min-height: 46px !important;
}

.retryButton {
  color: #06261f !important;
  border-color: rgba(255, 255, 255, 0.46) !important;
  background: linear-gradient(110deg, #68f5c2, #71d9ff) !important;
  box-shadow: 0 12px 30px rgba(83, 229, 195, 0.18);
}

.privacyNote {
  grid-column: 1;
  grid-row: 3;
  z-index: 4;
  align-self: end;
  margin: 0 !important;
  text-align: left !important;
}

body[data-auth-state="ready"] .authStage,
body[data-scene="live"] .networkStage {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 0 54px color-mix(in srgb, var(--state) 14%, transparent);
}

body[data-scene="live"] .systemPulseDot,
body[data-auth-state="ready"] .authCore {
  animation-duration: 2.4s !important;
}

body[data-scene="offline"] .route,
body[data-scene="offline"] .node {
  opacity: 0.24 !important;
}

body[data-scene="starting"] .cinemaHorizon {
  opacity: 0.76;
  animation-duration: 3.4s;
}

body[data-scene="connecting"] .orbit {
  opacity: 0.54 !important;
}

body[data-scene="live"] .packet {
  opacity: 1 !important;
}

body[data-scene="stopping"] .cinemaOrbC {
  opacity: 0.2;
}

@keyframes cinemaDriftA {
  from { transform: translate3d(-3%, -2%, 0) scale(0.92); opacity: 0.27; }
  to { transform: translate3d(18%, 12%, 0) scale(1.12); opacity: 0.44; }
}

@keyframes cinemaDriftB {
  from { transform: translate3d(7%, -4%, 0) scale(1.08); opacity: 0.26; }
  to { transform: translate3d(-17%, 17%, 0) scale(0.9); opacity: 0.45; }
}

@keyframes cinemaDriftC {
  from { transform: translate3d(-8%, 10%, 0) scale(0.9); opacity: 0.22; }
  to { transform: translate3d(14%, -12%, 0) scale(1.15); opacity: 0.4; }
}

@keyframes horizonBreathe {
  0%, 100% { transform: scaleX(0.92) scaleY(0.86); opacity: 0.3; }
  50% { transform: scaleX(1.05) scaleY(1.08); opacity: 0.62; }
}

@keyframes cinemaSweep {
  0%, 62% { transform: translateX(-130%); }
  82%, 100% { transform: translateX(130%); }
}

@keyframes markCurrent {
  to { transform: rotate(360deg); }
}

@keyframes signalHeartbeat {
  0%, 100% { transform: scale(0.8); opacity: 0.68; }
  42% { transform: scale(1.28); opacity: 1; }
  58% { transform: scale(0.95); opacity: 0.84; }
}

@keyframes stageInhale {
  0%, 100% { transform: scale(0.88); opacity: 0.38; }
  50% { transform: scale(1.1); opacity: 0.86; }
}

@keyframes gridCurrent {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 52px, 52px 0; }
}

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

@keyframes timerAurora {
  to { transform: rotate(360deg) scale(1.04); }
}

@keyframes timerBreathe {
  0%, 100% { filter: brightness(1); transform: translateY(0); }
  50% { filter: brightness(1.11); transform: translateY(-1px); }
}

@keyframes targetGlow {
  0%, 100% { opacity: 0.2; transform: scale(0.88) translateX(-3%); }
  50% { opacity: 0.46; transform: scale(1.12) translateX(8%); }
}

@keyframes targetPulseBreath {
  0%, 100% { opacity: 0.72; transform: scale(0.9); }
  45% { opacity: 1; transform: scale(1.22); }
}

@keyframes targetRefreshSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
  .identity {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .portal {
    grid-template-columns: minmax(0, 1fr) minmax(15.5rem, 0.48fr);
  }

  .sceneNarrative {
    width: 43%;
  }

  .identity {
    display: none !important;
  }

  .brand span {
    display: none;
  }

  .targetState {
    display: none;
  }
}

@media (max-width: 760px) {
  .portal {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 7px;
  }

  .portalHeader {
    grid-column: 1;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    gap: 7px !important;
  }

  .brand span {
    display: none;
  }

  .targetDock {
    min-height: 40px;
    gap: 6px;
    padding-left: 8px;
  }

  .networkStage {
    grid-column: 1;
    grid-row: 2;
  }

  .facts {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .controls {
    grid-column: 1;
    grid-row: 4;
  }

  .sessionTimer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 9px 10px;
  }

  .timerHeader {
    grid-column: 1;
  }

  .timerMeta,
  .timerTrack {
    display: none;
  }

  .extendChoices {
    grid-column: 2;
    align-self: center;
  }

  .extendChoice {
    min-height: 38px;
    padding-inline: 8px;
  }

  .sceneNarrative {
    top: 18px;
    width: 47%;
  }

  .coreCluster {
    inset: 50% auto auto 50% !important;
  }

  .sceneCaption,
  .stageBadge,
  .systemPulse {
    display: none !important;
  }

  .fact {
    min-height: 50px;
  }

  .secondaryActions {
    min-height: 36px !important;
  }

  .textAction {
    min-height: 36px !important;
  }

  .notice,
  .alert {
    min-height: 0 !important;
  }

  .authSurface {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .authSurface .brandRow {
    grid-column: 1;
    grid-row: 1;
  }

  .loginStory {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .loginHeadline {
    max-width: none;
    font-size: clamp(1.8rem, 9vw, 3rem);
    line-height: 0.98;
  }

  .loginLead,
  .trustSignals {
    display: none;
  }

  .authStage {
    grid-column: 1;
    grid-row: 3;
    padding: 12px !important;
  }

  .privacyNote {
    grid-column: 1;
    grid-row: 4;
    text-align: center !important;
  }
}

@media (max-width: 520px) {
  .brandLockup {
    gap: 0 !important;
  }

  .brand {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .brandMark {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  .targetDock {
    min-height: 38px;
    padding: 3px 4px 3px 7px;
    border-radius: 13px;
  }

  .targetLabel {
    display: none;
  }

  .targetCopy::after {
    bottom: 8px;
  }

  .targetRefresh {
    width: 30px;
    min-width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .signout {
    padding-inline: 8px !important;
  }
}

@media (max-width: 380px) {
  .targetPulse {
    display: none;
  }

  .targetDock {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-height: 680px) and (min-width: 761px) {
  .portal,
  .authSurface {
    padding: 12px !important;
  }

  .portalHeader {
    min-height: 44px;
    padding-bottom: 8px;
  }

  .targetDock {
    min-height: 38px;
  }

  .brandMark {
    width: 42px !important;
    height: 42px !important;
  }

  .coreCluster {
    width: clamp(122px, 27vh, 174px) !important;
  }

  .sceneNarrative {
    top: 48px;
  }

  .sceneCaption {
    margin-top: 7px;
  }

  .fact {
    min-height: 54px;
    padding-block: 8px !important;
  }

  .primaryAction {
    min-height: 48px !important;
  }

  .sessionTimer {
    gap: 6px;
    padding: 9px 10px;
  }

  .timerMeta {
    min-height: 1.3em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .extendChoice {
    min-height: 32px;
  }

  .secondaryActions {
    min-height: 36px !important;
  }

  .textAction {
    min-height: 36px !important;
  }

  .loginLead {
    line-height: 1.45;
  }

  .trustSignals {
    margin-top: 14px;
  }

  .authStage {
    padding: 16px !important;
  }

  .authCore {
    width: clamp(108px, 27vh, 160px) !important;
  }
}

@media (max-height: 560px) and (min-width: 761px) {
  .sceneCaption,
  .stageBadge,
  .identity,
  .trustSignals,
  .loginLead {
    display: none !important;
  }

  .sceneNarrative {
    top: 18px;
  }

  .targetDock {
    min-height: 36px;
    padding-block: 3px;
  }

  .targetLabel,
  .targetState {
    display: none;
  }

  .targetRefresh {
    width: 28px;
    min-width: 28px;
    height: 28px;
  }

  .fact {
    min-height: 48px;
  }

  .notice,
  .alert {
    min-height: 0 !important;
  }

  .timerKicker,
  .timerMeta,
  .timerTrack {
    display: none;
  }

  .sessionTimer {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 1fr);
    align-items: center;
  }

  .extendChoices {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .portal,
  .authSurface,
  .networkStage,
  .authStage,
  .fact,
  .targetDock {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: #0a1b3a !important;
  }
}

html[data-motion="lite"] .cinemaOrb {
  filter: blur(55px);
  animation-duration: 34s;
}

html[data-motion="lite"] .cinemaOrbC,
html[data-motion="lite"] .networkStage::after {
  display: none;
}

html[data-motion="lite"] .portal,
html[data-motion="lite"] .authSurface,
html[data-motion="lite"] .networkStage,
html[data-motion="lite"] .authStage,
html[data-motion="lite"] .fact {
  backdrop-filter: blur(10px) saturate(115%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(115%) !important;
}

@media (prefers-reduced-motion: reduce) {
  .livingCanvas {
    opacity: 0.42;
  }

  .cinemaOrb,
  .cinemaHorizon,
  .networkStage::after,
  .networkStage::before,
  .portal::before,
  .authSurface::before,
  .statusCore::before,
  .brandMark::after,
  .systemPulseDot,
  .targetDock::before,
  .targetPulse,
  .targetDock[aria-busy="true"] .targetRefresh,
  .sessionTimer::before,
  .sessionTimer[data-timer-state="warning"] {
    animation: none !important;
  }

  .timerFill,
  .targetDock,
  .targetRefresh {
    transition: none !important;
  }

  .targetRefresh:hover,
  .targetRefresh:active {
    transform: none !important;
  }

  .portal,
  .authSurface {
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .livingCanvas,
  .cinemaAtmosphere,
  .sceneNarrative,
  .stageBadge,
  .systemPulse {
    display: none !important;
  }

  .sessionTimer,
  .extendChoice,
  .timerTrack,
  .targetDock,
  .targetSelect,
  .targetState,
  .targetRefresh {
    forced-color-adjust: auto;
    border: 2px solid CanvasText;
    box-shadow: none;
  }

  .targetSelect {
    appearance: auto;
    -webkit-appearance: menulist;
    color: CanvasText;
    background: Canvas;
  }

  .targetCopy::after {
    display: none;
  }

  .targetPulse {
    color: CanvasText;
    background: CanvasText;
    box-shadow: none;
  }
}

@media (max-height: 420px), (max-width: 340px) {
  html,
  body {
    min-height: 420px !important;
    max-height: none;
    overflow-y: auto !important;
  }

  .portal,
  .authSurface {
    height: 408px;
  }
}

@supports not (backdrop-filter: blur(2px)) {
  .portal,
  .authSurface {
    background: #0a1a38 !important;
  }
}

@media print {
  .livingCanvas,
  .cinemaAtmosphere {
    display: none !important;
  }
}
