/* The login surface stays usable before the authenticated application bundle loads. */
@import url('./auth-tokens.css?v=2026082001');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  overscroll-behavior-x: none;
}

body {
  width: 100%;
  height: 100vh;
  max-width: 100%;
  overflow: hidden;
  background: var(--moko-color-bg-main);
  color: var(--moko-surface-text-primary);
  font-family: var(--moko-font-body);
  font-size: var(--moko-font-size-13);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html::-webkit-scrollbar:horizontal,
body::-webkit-scrollbar:horizontal,
.auth-overlay::-webkit-scrollbar:horizontal,
.auth-shell::-webkit-scrollbar:horizontal,
.auth-tunnel::-webkit-scrollbar:horizontal {
  height: 0;
  display: none;
}

.moko-ui-hidden,
[hidden] {
  display: none !important;
}

.moko-display-block {
  display: block !important;
}

.moko-display-flex {
  display: flex !important;
}

.moko-display-grid {
  display: grid !important;
}

.moko-display-inline {
  display: inline !important;
}

.moko-display-inline-flex {
  display: inline-flex !important;
}

.moko-app-boot-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--moko-z-system-overlay);
  align-items: center;
  justify-content: center;
  /* Authentication has succeeded but the workbench is not safe to expose
     yet. Use an explicit status surface rather than an indistinguishable
     black page while lazy runtime assets load. */
  background: var(--moko-color-bg-main, #0a0a0b) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  pointer-events: none;
}

.moko-app-boot-overlay.moko-boot-overlay--interactive {
  pointer-events: auto !important;
}

input[type="number"].num-input::-webkit-inner-spin-button,
input[type="number"].num-input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

input[type="number"].num-input {
  -moz-appearance: textfield;
}

#mokoAppBootOverlay .moko-boot-shell {
  display: flex;
  min-width: 0;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#mokoAppBootOverlay .moko-loader {
  position: relative;
  display: flex;
  width: 72px;
  height: 34px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#mokoAppBootOverlay .moko-loader-text {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  color: color-mix(in srgb, var(--moko-color-accent) 88%, #fff 12%);
  font-size: 0.68rem;
  line-height: 1;
  text-align: center;
  text-transform: lowercase;
  letter-spacing: 1px;
  animation: moko_text_713 2.2s cubic-bezier(0.4, 0, 0.2, 1) both infinite !important;
  will-change: transform, letter-spacing;
}

#mokoAppBootOverlay .moko-load {
  position: relative;
  display: block;
  width: 60px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50px;
  background-color: color-mix(in srgb, var(--moko-color-accent) 24%, transparent);
  opacity: 1;
  transform: translateX(0);
  will-change: transform, width;
}

#mokoAppBootOverlay .moko-load::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: inherit;
  background-color: var(--moko-color-accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--moko-color-accent) 45%, transparent);
  content: "";
  animation: moko_loading2_713 1.9s cubic-bezier(0.4, 0, 0.2, 1) both infinite !important;
  will-change: transform;
}

#mokoAppBootOverlay .moko-boot-caption {
  display: none;
  max-width: 230px;
  color: rgb(255 255 255 / 86%);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  letter-spacing: 0.2px;
}

#mokoAppBootOverlay .moko-boot-actions {
  display: none;
  margin-top: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

#mokoAppBootOverlay .moko-boot-actions button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 7px;
  background: rgb(255 255 255 / 6%);
  color: rgb(245 245 247 / 92%);
  font-size: 12px;
  cursor: pointer;
}

#mokoAppBootOverlay .moko-boot-actions button:hover {
  border-color: rgb(255 255 255 / 28%);
  background: rgb(255 255 255 / 11%);
}

@keyframes moko_text_713 {
  0%,
  100% {
    letter-spacing: 1px;
    opacity: 0.86;
    transform: translateX(0);
  }

  50% {
    letter-spacing: 1.4px;
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes moko_loading2_713 {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(50px);
  }
}

html.moko-auth-booting .auth-overlay {
  display: none !important;
}

html.moko-auth-booting .auth-overlay.is-entering-moko {
  display: flex !important;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--moko-z-system-overlay);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  overflow: auto;
  background: var(--moko-color-bg-main);
}

.auth-overlay.moko-display-block {
  display: flex !important;
}

.auth-overlay.is-reauth {
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: color-mix(in srgb, var(--moko-color-bg-main) 48%, transparent);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
}

.auth-overlay .auth-shell {
  display: grid;
  width: 100%;
  min-height: 100%;
  grid-template-columns: minmax(0, 58%) minmax(420px, 42%);
  background: var(--moko-color-bg-main);
}

.auth-overlay .auth-story {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(52px, 6.2vw, 96px) clamp(42px, 5.4vw, 84px) 34px;
  overflow: hidden;
}

.auth-overlay .auth-story-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
}

.auth-overlay .auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--moko-surface-text-primary);
  font-family: var(--moko-font-heading);
  font-size: clamp(30px, 2.9vw, 44px);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
}

.auth-overlay .auth-brand-mark {
  width: 50px;
  height: 44px;
  flex: none;
  object-fit: contain;
}

.auth-overlay .auth-story-title {
  max-width: 640px;
  margin: 42px 0 0;
  color: var(--moko-surface-text-primary);
  font-family: var(--moko-font-heading);
  font-size: clamp(27px, 2.25vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.auth-overlay .auth-story-subtitle {
  margin: 18px 0 0;
  color: var(--moko-surface-text-secondary);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.6;
}

.auth-overlay .auth-atlas {
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  margin: 18px -1.5vw 0 -2vw;
}

.auth-overlay .auth-atlas img {
  display: block;
  width: 100%;
  max-height: min(64vh, 650px);
  object-fit: contain;
}

.auth-overlay.is-reauth .auth-shell {
  width: min(520px, calc(100vw - 40px));
  min-height: auto;
  max-height: calc(100vh - 40px);
  grid-template-columns: 1fr;
  border: 1px solid var(--moko-surface-border);
  background: var(--moko-color-bg-sidebar);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--moko-f-scrim) 80%, transparent);
}

.auth-overlay.is-reauth .auth-story {
  display: none;
}

.auth-overlay.is-reauth .auth-card {
  border-left: 0;
  background: var(--moko-color-bg-sidebar);
  box-shadow: none;
}

.auth-overlay .auth-reauth-notice {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--moko-color-warning) 35%, var(--moko-surface-border));
  border-radius: var(--moko-surface-radius);
  background: color-mix(in srgb, var(--moko-color-warning) 12%, var(--moko-color-bg-sidebar));
  color: var(--moko-surface-text-primary);
  font-size: var(--moko-font-size-13);
  line-height: 1.45;
  text-align: left;
}

.auth-overlay .auth-card {
  display: flex;
  width: auto;
  min-width: 0;
  max-height: 100vh;
  align-items: stretch;
  overflow-y: auto;
  padding: 0 clamp(44px, 5.4vw, 82px);
  border: 0;
  border-left: 1px solid var(--moko-surface-border);
  border-radius: 0;
  background: var(--moko-color-bg-main);
  box-shadow: none;
  text-align: left;
}

.auth-overlay .auth-card-content {
  width: min(100%, 484px);
  margin: auto;
  padding: 48px 0;
}

.auth-overlay .auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 50px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--moko-surface-border);
  border-radius: 0;
  background: transparent;
}

.auth-overlay .auth-mode-tab {
  position: relative;
  height: 50px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--moko-surface-text-muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-overlay .auth-mode-tab:hover {
  color: var(--moko-surface-text-primary);
}

.auth-overlay .auth-mode-tab.is-active {
  background: transparent;
  color: var(--moko-color-accent);
}

.auth-overlay .auth-mode-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--moko-color-accent);
  content: "";
}

.auth-overlay .auth-mode-tab:disabled,
.auth-overlay .auth-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.auth-overlay .auth-mode-tab:focus-visible,
.auth-overlay .auth-pw-toggle:focus-visible,
.auth-overlay .auth-switch-link:focus-visible {
  outline: 1px solid var(--moko-surface-auth-focus-outline);
  outline-offset: 2px;
}

.auth-overlay .auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-overlay .auth-form[hidden] {
  display: none !important;
}

.auth-overlay .auth-field {
  text-align: left;
}

.auth-overlay .auth-field label {
  display: block;
  margin-bottom: 10px;
  color: var(--moko-surface-text-secondary);
  font-family: var(--moko-font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.auth-overlay .auth-field input {
  width: 100%;
  height: 58px;
  padding: 0 22px;
  border: 1px solid var(--moko-surface-border);
  border-radius: 5px;
  outline: none;
  background: var(--moko-color-bg-surface);
  color: var(--moko-surface-auth-input-text);
  font-size: 16px;
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-overlay .auth-field input::placeholder {
  color: var(--moko-surface-text-muted);
  opacity: 0.76;
}

.auth-overlay .auth-field input:-webkit-autofill,
.auth-overlay .auth-field input:-webkit-autofill:hover,
.auth-overlay .auth-field input:-webkit-autofill:focus,
.auth-overlay .auth-field input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--moko-surface-auth-input-text) !important;
  caret-color: var(--moko-surface-auth-input-text);
  -webkit-box-shadow: 0 0 0 1000px var(--moko-color-bg-surface) inset !important;
  box-shadow: 0 0 0 1000px var(--moko-color-bg-surface) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.auth-overlay .auth-field input:focus {
  border-color: var(--moko-surface-auth-focus-outline);
  box-shadow: 0 0 0 1px var(--moko-surface-auth-focus-outline);
}

.auth-overlay .auth-field input.is-invalid,
.auth-overlay .auth-field input[aria-invalid="true"] {
  border-color: var(--moko-surface-auth-input-invalid-border);
  box-shadow: var(--moko-surface-auth-input-invalid-shadow);
}

.auth-overlay .auth-field input:disabled {
  border-color: var(--moko-surface-auth-input-disabled-border);
  color: var(--moko-surface-auth-input-disabled-text);
  cursor: not-allowed;
  opacity: 0.58;
}

.auth-overlay .auth-pw-wrap {
  position: relative;
}

.auth-overlay .auth-pw-wrap input {
  padding-right: 52px;
}

.auth-overlay .auth-pw-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--moko-surface-text-muted);
  cursor: pointer;
  opacity: 0.5;
  transform: translateY(-50%);
  transition: opacity 0.15s;
}

.auth-overlay .auth-pw-toggle:hover {
  opacity: 1;
}

.auth-overlay .auth-pw-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.auth-overlay .auth-btn {
  width: 100%;
  height: 58px;
  margin-top: 8px;
  padding: 0 12px;
  border: none;
  border-radius: 5px;
  background: var(--moko-color-accent);
  color: var(--moko-surface-auth-btn-text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.auth-overlay .auth-btn:hover {
  opacity: 0.92;
}

.auth-overlay .auth-btn:active {
  transform: translateY(1px);
}

.auth-overlay .auth-error {
  min-height: 18px;
  color: var(--moko-color-danger);
  font-size: var(--moko-font-size-12);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.auth-overlay .auth-error.is-visible {
  opacity: 1;
}

.auth-overlay .auth-switch {
  color: var(--moko-surface-text-muted);
  font-size: 14px;
  line-height: 1.4;
}

.auth-overlay .auth-switch-link {
  padding: 0 1px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--moko-color-accent);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.auth-overlay .auth-switch-link:hover {
  text-decoration: underline;
}

.auth-overlay .auth-switch-link:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  text-decoration: none;
}

.auth-overlay .auth-switch--registration-hint {
  display: none;
}

.auth-overlay .auth-switch--guest {
  margin-top: -4px;
}

.auth-overlay .auth-switch--guest .auth-switch-link {
  color: var(--moko-surface-text-secondary);
  font-size: 15px;
  font-weight: 400;
}

.auth-overlay .auth-switch--guest .auth-switch-link:hover {
  color: var(--moko-surface-text-primary);
  text-decoration: none;
}

@media (max-width: 1080px) {
  .auth-overlay .auth-shell {
    grid-template-columns: minmax(0, 54%) minmax(400px, 46%);
  }

  .auth-overlay .auth-story {
    padding-right: 42px;
    padding-left: 42px;
  }

  .auth-overlay .auth-card {
    padding-right: 42px;
    padding-left: 42px;
  }
}

@media (max-width: 900px) {
  body {
    height: auto;
    min-height: 100vh;
  }

  .auth-overlay {
    position: fixed;
    display: block;
    overflow-y: auto;
  }

  .auth-overlay .auth-shell {
    display: block;
    min-height: 100%;
  }

  .auth-overlay .auth-story {
    min-height: 0;
    padding: 38px clamp(24px, 7vw, 56px) 28px;
  }

  .auth-overlay .auth-brand-lockup {
    gap: 15px;
    font-size: 30px;
  }

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

  .auth-overlay .auth-story-title {
    margin-top: 28px;
    font-size: clamp(24px, 5vw, 31px);
  }

  .auth-overlay .auth-story-subtitle {
    margin-top: 10px;
  }

  .auth-overlay .auth-atlas {
    max-width: 640px;
    margin: 16px auto 0;
  }

  .auth-overlay .auth-atlas img {
    max-height: 360px;
  }

  .auth-overlay .auth-card {
    max-height: none;
    padding: 0 clamp(24px, 7vw, 56px);
    border-top: 1px solid var(--moko-surface-border);
    border-left: 0;
    overflow: visible;
  }

  .auth-overlay .auth-card-content {
    width: min(100%, 520px);
    padding: 42px 0 64px;
  }
}

@media (max-width: 640px) {
  .auth-overlay .auth-story {
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .auth-overlay .auth-story-title {
    max-width: 430px;
    margin-top: 24px;
    font-size: 24px;
  }

  .auth-overlay .auth-story-subtitle {
    max-width: 430px;
    font-size: 14px;
  }

  .auth-overlay .auth-atlas {
    display: none;
  }

  .auth-overlay .auth-card-content {
    padding-top: 34px;
  }

  .auth-overlay .auth-mode-tabs {
    margin-bottom: 36px;
  }

  .auth-overlay .auth-field input,
  .auth-overlay .auth-btn {
    height: 54px;
  }
}

@media (min-width: 901px) and (max-height: 780px) {
  .auth-overlay .auth-story {
    padding-top: 38px;
    padding-bottom: 22px;
  }

  .auth-overlay .auth-story-title {
    margin-top: 26px;
  }

  .auth-overlay .auth-story-subtitle {
    margin-top: 10px;
  }

  .auth-overlay .auth-atlas {
    margin-top: 8px;
  }

  .auth-overlay .auth-atlas img {
    max-height: 54vh;
  }

  .auth-overlay .auth-card-content {
    padding: 28px 0;
  }

  .auth-overlay .auth-mode-tabs {
    margin-bottom: 26px;
  }

  .auth-overlay .auth-form {
    gap: 12px;
  }

  .auth-overlay .auth-field label {
    margin-bottom: 5px;
  }

  .auth-overlay .auth-field input,
  .auth-overlay .auth-btn {
    height: 46px;
  }

  .auth-overlay .auth-error {
    min-height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-overlay .auth-mode-tab,
  .auth-overlay .auth-field input,
  .auth-overlay .auth-pw-toggle,
  .auth-overlay .auth-btn,
  .auth-overlay .auth-error {
    transition: none;
  }
}

/* ── Login entry: TS / Tractatus “World Building” space · R2 ───────── */
.auth-overlay {
  overflow: hidden;
  background: #080808;
}

.auth-overlay .auth-shell {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100%;
  background: #080808;
  isolation: isolate;
}

.auth-overlay .auth-world {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #080808;
}

.auth-overlay .auth-world::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(0 0 0 / 12%);
  content: "";
  pointer-events: none;
}

.auth-overlay .auth-world-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.auth-overlay .auth-world-canvas:active {
  cursor: grabbing;
}

.auth-overlay .auth-world-heading {
  position: absolute;
  top: clamp(28px, 4.2vw, 64px);
  left: clamp(26px, 4vw, 64px);
  z-index: 4;
  width: min(440px, calc(100vw - 52px));
  pointer-events: none;
}

.auth-overlay .auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgb(255 255 255 / 92%);
  font-family: var(--moko-font-heading);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.19em;
  line-height: 1;
}

.auth-overlay .auth-brand-mark {
  width: 24px;
  height: 22px;
  flex: none;
  object-fit: contain;
}

.auth-overlay .auth-world-kicker {
  margin: 38px 0 0;
  color: rgb(255 255 255 / 31%);
  font-family: var(--moko-font-mono);
  font-size: 10px;
  letter-spacing: 0.17em;
}

.auth-overlay .auth-world-title {
  margin: 10px 0 0;
  color: rgb(255 255 255 / 94%);
  font-family: var(--moko-font-heading);
  font-size: clamp(27px, 2.35vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.auth-overlay .auth-world-subtitle {
  margin: 9px 0 0;
  color: rgb(255 255 255 / 46%);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.auth-overlay .auth-world-stats {
  display: flex;
  margin: 22px 0 0;
  gap: 24px;
}

.auth-overlay .auth-world-stats div {
  display: grid;
  gap: 3px;
}

.auth-overlay .auth-world-stats dt {
  color: rgb(255 255 255 / 25%);
  font-family: var(--moko-font-mono);
  font-size: 9px;
}

.auth-overlay .auth-world-stats dd {
  color: rgb(255 255 255 / 72%);
  font-family: var(--moko-font-mono);
  font-size: 14px;
}

.auth-overlay .auth-world-legend {
  position: absolute;
  top: clamp(34px, 4.7vw, 72px);
  right: clamp(28px, 4.2vw, 68px);
  z-index: 4;
  display: grid;
  width: 190px;
  gap: 8px;
  color: rgb(255 255 255 / 39%);
  font-family: var(--moko-font-mono);
  font-size: 9px;
  pointer-events: none;
}

.auth-overlay .auth-world-legend-title {
  margin-bottom: 2px;
  color: rgb(255 255 255 / 23%);
  letter-spacing: 0.12em;
}

.auth-overlay .auth-world-legend span:not(.auth-world-legend-title) {
  display: flex;
  align-items: center;
  gap: 9px;
}

.auth-overlay .auth-world-legend i {
  display: block;
  width: 17px;
  height: 1px;
  background: rgb(255 255 255 / 38%);
}

.auth-overlay .auth-world-legend i[data-trace="jade"] { background: #86c7b0; }
.auth-overlay .auth-world-legend i[data-trace="amber"] { background: #d7a36a; }
.auth-overlay .auth-world-legend i[data-trace="rose"] { background: #bd7f91; }
.auth-overlay .auth-world-legend i[data-trace="steel"] { background: #8796b4; }

.auth-overlay .auth-world-layers {
  position: absolute;
  top: 50%;
  right: clamp(25px, 3.4vw, 54px);
  z-index: 5;
  display: grid;
  width: 245px;
  gap: 17px;
  transform: translateY(-12%);
}

.auth-overlay .auth-world-layers button {
  display: grid;
  min-height: 58px;
  padding: 4px 0 4px 18px;
  border: 0;
  border-left: 1px solid rgb(255 255 255 / 9%);
  border-radius: 0;
  background: transparent;
  color: rgb(255 255 255 / 34%);
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.auth-overlay .auth-world-layers button:hover,
.auth-overlay .auth-world-layers button.is-active {
  border-left-color: rgb(255 255 255 / 42%);
  color: rgb(255 255 255 / 82%);
  transform: translateX(-5px);
}

.auth-overlay .auth-world-layers small {
  font-family: var(--moko-font-mono);
  font-size: 9px;
  font-weight: 400;
}

.auth-overlay .auth-world-layers strong {
  margin-top: 1px;
  font-size: 12px;
  font-weight: 500;
}

.auth-overlay .auth-world-layers span {
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.4;
}

.auth-overlay .auth-world-controls {
  position: absolute;
  bottom: 28px;
  left: clamp(26px, 4vw, 64px);
  z-index: 4;
  display: flex;
  gap: 22px;
  color: rgb(255 255 255 / 28%);
  font-family: var(--moko-font-mono);
  font-size: 9px;
  pointer-events: none;
}

.auth-overlay .auth-world-controls span::before {
  margin-right: 7px;
  color: rgb(255 255 255 / 52%);
  content: "○";
}

.auth-overlay .auth-challenge,
.auth-overlay .auth-card {
  position: absolute;
  top: 50%;
  left: 58%;
  z-index: 8;
  width: min(390px, calc(100vw - 52px));
  border: 1px solid rgb(255 255 255 / 17%);
  border-radius: 0;
  background: rgb(9 9 9 / 88%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 48%);
  color: rgb(255 255 255 / 90%);
  transform: translate(-2%, -38%);
}

.auth-overlay .auth-challenge {
  padding: 25px 26px 22px;
  opacity: 1;
  transition: opacity 320ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-overlay .auth-node-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(255 255 255 / 48%);
  font-family: var(--moko-font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.auth-overlay .auth-node-label span {
  display: block;
  width: 18px;
  height: 1px;
  background: #e8e2d7;
}

.auth-overlay .auth-challenge-index {
  margin: 30px 0 0;
  color: rgb(255 255 255 / 31%);
  font-family: var(--moko-font-mono);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.auth-overlay .auth-challenge h2 {
  margin: 7px 0 23px;
  color: rgb(255 255 255 / 91%);
  font-family: var(--moko-font-heading);
  font-size: 20px;
  font-weight: 450;
  letter-spacing: 0.01em;
}

.auth-overlay .auth-challenge-form {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid rgb(255 255 255 / 24%);
}

.auth-overlay .auth-challenge-form:focus-within {
  border-bottom-color: rgb(255 255 255 / 76%);
}

.auth-overlay .auth-challenge-form input,
.auth-overlay .auth-challenge-form button {
  height: 43px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.auth-overlay .auth-challenge-form input {
  min-width: 0;
  padding: 0 8px 0 0;
  color: #ffffff;
  font-size: 13px;
}

.auth-overlay .auth-challenge-form input::placeholder {
  color: rgb(255 255 255 / 28%);
}

.auth-overlay .auth-challenge-form button {
  padding: 0 2px 0 14px;
  color: rgb(255 255 255 / 70%);
  font-size: 11px;
  cursor: pointer;
}

.auth-overlay .auth-challenge-form button:hover {
  color: #ffffff;
}

.auth-overlay .auth-challenge-feedback {
  min-height: 17px;
  margin: 12px 0 0;
  color: rgb(255 255 255 / 44%);
  font-size: 10px;
}

.auth-overlay .auth-challenge.is-answer-wrong {
  animation: auth-structure-miss 260ms ease;
}

.auth-overlay .auth-connector {
  position: absolute;
  top: calc(50% - 67px);
  left: calc(58% - 92px);
  z-index: 6;
  width: 100px;
  height: 48px;
  border-top: 1px solid rgb(255 255 255 / 19%);
  border-right: 1px solid rgb(255 255 255 / 19%);
  pointer-events: none;
  transition: opacity 240ms ease;
}

.auth-overlay .auth-connector::before,
.auth-overlay .auth-connector span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgb(255 255 255 / 70%);
  content: "";
}

.auth-overlay .auth-connector::before { top: -2px; left: -2px; }
.auth-overlay .auth-connector span { right: -2px; bottom: -2px; }

.auth-overlay .auth-card {
  display: flex;
  max-height: min(86vh, 760px);
  align-items: stretch;
  padding: 0;
  border-left: 1px solid rgb(255 255 255 / 17%);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translate(10%, -38%);
  visibility: hidden;
  transition: opacity 320ms ease 120ms, transform 420ms cubic-bezier(0.22, 1, 0.36, 1) 70ms;
}

.auth-overlay .auth-card-content {
  width: 100%;
  margin: 0;
  padding: 27px 28px 29px;
}

.auth-overlay.is-knowledge-unlocked .auth-challenge {
  opacity: 0;
  pointer-events: none;
  transform: translate(-13%, -38%);
  visibility: hidden;
}

.auth-overlay.is-knowledge-unlocked .auth-card {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-2%, -38%);
  visibility: visible;
}

.auth-overlay.is-knowledge-unlocked .auth-connector {
  opacity: 0.42;
}

.auth-overlay.is-auth-transition-instant .auth-challenge,
.auth-overlay.is-auth-transition-instant .auth-card,
.auth-overlay.is-auth-transition-instant .auth-connector {
  transition: none;
}

.auth-overlay .auth-mode-tabs {
  margin-bottom: 26px;
}

.auth-overlay .auth-mode-tab {
  height: 42px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.auth-overlay .auth-form {
  gap: 14px;
}

.auth-overlay .auth-field label {
  margin-bottom: 6px;
  color: rgb(255 255 255 / 42%);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.auth-overlay .auth-field input {
  height: 45px;
  padding: 0 14px;
  border-color: rgb(255 255 255 / 13%);
  border-radius: 0;
  background: #101010;
  font-size: 13px;
}

.auth-overlay .auth-field input:-webkit-autofill,
.auth-overlay .auth-field input:-webkit-autofill:hover,
.auth-overlay .auth-field input:-webkit-autofill:focus,
.auth-overlay .auth-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #101010 inset !important;
  box-shadow: 0 0 0 1000px #101010 inset !important;
}

.auth-overlay .auth-pw-toggle {
  right: 10px;
}

.auth-overlay .auth-btn {
  height: 45px;
  margin-top: 3px;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 0;
  background: transparent;
  color: rgb(255 255 255 / 88%);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.auth-overlay .auth-btn:hover {
  background: rgb(255 255 255 / 7%);
  opacity: 1;
}

.auth-overlay .auth-error {
  min-height: 14px;
  font-size: 10px;
}

.auth-overlay .auth-switch {
  font-size: 10px;
}

.auth-overlay .auth-switch-link {
  border-radius: 0;
  color: rgb(255 255 255 / 65%);
}

.auth-overlay .auth-switch--guest .auth-switch-link {
  font-size: 11px;
}

.auth-overlay .auth-reauth-notice {
  margin-top: 0;
  margin-bottom: 16px;
  border-radius: 0;
}

.auth-overlay.is-reauth {
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(8 8 8 / 82%);
}

.auth-overlay.is-reauth .auth-shell {
  width: min(420px, calc(100vw - 40px));
  min-height: 0;
  background: transparent;
}

.auth-overlay.is-reauth .auth-world {
  display: none;
}

.auth-overlay.is-reauth .auth-card {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  max-height: calc(100vh - 40px);
  border: 1px solid rgb(255 255 255 / 17%);
  background: #0d0d0d;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
}

.auth-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes auth-structure-miss {
  0%, 100% { transform: translate(-2%, -38%); }
  35% { transform: translate(calc(-2% - 5px), -38%); }
  70% { transform: translate(calc(-2% + 4px), -38%); }
}

@media (max-width: 1080px) {
  .auth-overlay .auth-world-layers {
    display: none;
  }

  .auth-overlay .auth-challenge,
  .auth-overlay .auth-card {
    left: 54%;
  }

  .auth-overlay .auth-connector {
    left: calc(54% - 92px);
  }
}

@media (max-width: 760px) {
  body {
    height: 100vh;
    min-height: 100vh;
  }

  .auth-overlay {
    display: flex;
    overflow: hidden;
  }

  .auth-overlay .auth-shell {
    display: block;
    min-height: 100%;
  }

  .auth-overlay .auth-world-heading {
    top: 24px;
    left: 22px;
  }

  .auth-overlay .auth-world-kicker {
    margin-top: 24px;
  }

  .auth-overlay .auth-world-title {
    font-size: 25px;
  }

  .auth-overlay .auth-world-subtitle {
    max-width: 270px;
    line-height: 1.5;
  }

  .auth-overlay .auth-world-stats,
  .auth-overlay .auth-world-legend,
  .auth-overlay .auth-world-controls,
  .auth-overlay .auth-connector {
    display: none;
  }

  .auth-overlay .auth-challenge,
  .auth-overlay .auth-card {
    top: auto;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    max-height: min(58vh, 650px);
    transform: none;
  }

  .auth-overlay .auth-challenge {
    padding: 22px 22px 19px;
  }

  .auth-overlay.is-knowledge-unlocked .auth-challenge {
    transform: translateY(24px);
  }

  .auth-overlay.is-knowledge-unlocked .auth-card {
    transform: none;
  }

  .auth-overlay .auth-card-content {
    padding: 23px 22px 25px;
  }

  .auth-overlay .auth-mode-tabs {
    margin-bottom: 22px;
  }
}

@media (max-height: 690px) and (min-width: 761px) {
  .auth-overlay .auth-world-kicker {
    margin-top: 20px;
  }

  .auth-overlay .auth-world-stats {
    display: none;
  }

  .auth-overlay .auth-card,
  .auth-overlay .auth-challenge {
    top: 52%;
    transform: translate(-2%, -50%);
  }

  .auth-overlay.is-knowledge-unlocked .auth-challenge {
    transform: translate(-13%, -50%);
  }

  .auth-overlay.is-knowledge-unlocked .auth-card {
    transform: translate(-2%, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-overlay .auth-challenge,
  .auth-overlay .auth-card,
  .auth-overlay .auth-connector,
  .auth-overlay .auth-world-layers button {
    animation: none;
    transition: none;
  }
}

.app-beian-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--moko-z-panel);
  width: 100%;
  padding: 8px 0;
  color: var(--moko-surface-note-dim);
  font-size: var(--moko-font-size-12);
  text-align: center;
  pointer-events: none;
}

.app-beian-link {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

/* ── Login entry: long perspective knowledge passage · R4 ─────────── */
.auth-overlay {
  display: flex;
  padding: 0;
  overflow: hidden;
  background: #030303;
  color: #f5f5f2;
}

.auth-overlay.moko-display-block {
  display: flex !important;
}

.auth-overlay .auth-shell {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: #030303;
  isolation: isolate;
}

.auth-overlay .auth-tunnel {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #030303;
}

.auth-overlay .auth-tunnel::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgb(255 255 255 / 3%);
  background:
    linear-gradient(90deg, rgb(3 3 3 / 42%) 0%, transparent 17%, transparent 83%, rgb(3 3 3 / 42%) 100%),
    radial-gradient(ellipse 94% 88% at 50% 44%, transparent 58%, rgb(3 3 3 / 34%) 100%);
  box-shadow: inset 0 0 180px rgb(0 0 0 / 76%);
  content: "";
  pointer-events: none;
}

.auth-overlay .auth-tunnel-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  cursor: ns-resize;
  touch-action: none;
}

.auth-overlay .auth-discipline-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.auth-overlay .auth-discipline-label {
  --auth-discipline-alpha: 1;
  --auth-discipline-dot-color: #ffffff;
  --auth-discipline-dot-size: 2px;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  color: #ffffff;
  font-family: var(--moko-font-body);
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  text-rendering: geometricprecision;
  text-shadow: 0 1px 2px rgb(0 0 0 / 94%);
  transform: translate3d(-200vw, -200vh, 0);
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

.auth-overlay .auth-discipline-label.is-visible {
  opacity: var(--auth-discipline-alpha);
}

.auth-overlay .auth-discipline-label.is-ground {
  color: #f2f4f8;
}

.auth-overlay .auth-discipline-label.is-left {
  padding-right: 14px;
}

.auth-overlay .auth-discipline-label.is-right {
  padding-left: 14px;
}

.auth-overlay .auth-discipline-label::after {
  position: absolute;
  top: 50%;
  width: var(--auth-discipline-dot-size);
  height: var(--auth-discipline-dot-size);
  background: var(--auth-discipline-dot-color);
  box-shadow: 0 0 5px color-mix(in srgb, var(--auth-discipline-dot-color) 68%, transparent);
  content: "";
  transform: translateY(-50%);
}

.auth-overlay .auth-discipline-label.is-left::after {
  right: 3px;
}

.auth-overlay .auth-discipline-label.is-right::after {
  left: 3px;
}

.auth-overlay .auth-feature-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
}

/* Chromium may give the transparent model-viewer iframe an opaque WebGL
   backing plane. During the solar chapter, paint the parent's transparent
   tunnel canvas and discipline labels above it. Their pointer surfaces stay
   disabled so every drag inside the orbit footprint still reaches the model. */
.auth-overlay.is-solar-object-composite .auth-tunnel-canvas {
  z-index: 7;
  pointer-events: none;
}

.auth-overlay.is-solar-object-composite .auth-discipline-layer {
  z-index: 8;
}

.auth-overlay .auth-feature-panel {
  position: absolute;
  top: 0;
  left: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 5px;
  background: #070707;
  box-shadow:
    0 0 10px rgb(255 255 255 / 22%),
    0 18px 48px rgb(0 0 0 / 72%);
  opacity: 0;
  transform: translate3d(-200vw, -200vh, 0);
  transform-origin: top left;
  transition:
    opacity 130ms linear,
    border-color 220ms ease,
    box-shadow 220ms ease;
  backface-visibility: hidden;
  contain: layout paint style;
  will-change: transform, opacity;
}

.auth-overlay .auth-feature-panel::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgb(0 0 0 / 0%);
  content: "";
  pointer-events: none;
  transition: background-color 220ms ease;
}

.auth-overlay .auth-feature-panel.is-visible {
  opacity: 1;
}

.auth-overlay .auth-feature-panel.is-focused,
.auth-overlay .auth-feature-panel.is-highlighted,
.auth-overlay .auth-feature-panel.is-dominant,
.auth-overlay .auth-feature-panel[aria-current="step"] {
  border-color: #ffffff;
  box-shadow:
    0 0 12px rgb(255 255 255 / 48%),
    0 0 30px rgb(255 255 255 / 16%),
    0 24px 64px rgb(0 0 0 / 78%);
}

.auth-overlay .auth-feature-panel.is-adjacent {
  border-color: rgb(255 255 255 / 38%);
  box-shadow:
    0 0 8px rgb(255 255 255 / 14%),
    0 12px 32px rgb(0 0 0 / 72%);
}

.auth-overlay .auth-feature-panel.is-adjacent::after {
  background: rgb(0 0 0 / 28%);
}

.auth-overlay .auth-feature-panel.is-interactive {
  pointer-events: auto;
}

.auth-overlay .auth-feature-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  image-rendering: auto;
  opacity: 1;
  transform: translateZ(0);
  transition: opacity 260ms ease;
}

.auth-overlay .auth-feature-live {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}

.auth-overlay .auth-feature-live:focus,
.auth-overlay .auth-feature-live:focus-visible {
  outline: 0;
}

.auth-overlay .auth-feature-panel.is-live-ready .auth-feature-live {
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease 120ms, visibility 0s linear 0s;
}

.auth-overlay .auth-feature-panel.is-live-ready .auth-feature-variant {
  opacity: 0;
  transition-delay: 120ms;
}

.auth-overlay .auth-feature-live.is-interactive,
.auth-overlay .auth-feature-panel.is-interactive .auth-feature-live {
  pointer-events: auto;
}

.auth-overlay .auth-feature-panel .auth-feature-variant {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 320ms;
}

.auth-overlay .auth-feature-panel .auth-feature-variant.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

.auth-overlay .auth-feature-panel.is-live-ready .auth-feature-variant.is-active {
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease 120ms, visibility 0s linear 540ms;
}

.auth-overlay .auth-feature-panel[data-feature-id="evolution"].is-interactive {
  pointer-events: auto;
}

.auth-overlay .auth-feature-panel[data-feature-id="evolution"] .auth-feature-live {
  background: #070707;
}

.auth-overlay .auth-feature-panel[data-feature-kind="narrative"] {
  display: none;
}

.auth-overlay .auth-feature-panel[data-feature-kind="graph"].is-interactive {
  pointer-events: auto;
}

.auth-overlay .auth-feature-panel[data-feature-kind="graph"] {
  overflow: visible;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  contain: layout style;
}

.auth-overlay .auth-feature-panel[data-feature-kind="graph"]::after {
  display: none;
  content: none;
}

.auth-overlay .auth-feature-panel[data-feature-kind="graph"] .auth-feature-live {
  overflow: visible;
  background: transparent;
}

.auth-overlay .auth-feature-panel[data-feature-kind="architecture"].is-interactive {
  pointer-events: auto;
}

.auth-overlay .auth-feature-panel[data-feature-kind="architecture"] .auth-feature-live {
  background: #0a0a0b;
}

.auth-overlay .auth-heart-graph-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}

.auth-overlay .auth-heart-graph-layer.is-visible {
  opacity: var(--auth-heart-knowledge-strength, 1);
  visibility: visible;
  transition: opacity 360ms ease, visibility 0s linear 0s;
}

.auth-overlay .auth-heart-graph-lines,
.auth-overlay .auth-heart-graph-nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth-overlay .auth-heart-graph-lines {
  overflow: visible;
  pointer-events: none;
}

.auth-overlay .auth-heart-graph-lines line {
  fill: none;
  stroke: color-mix(in srgb, var(--heart-node-color) 72%, white 28%);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-width: 0.65;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition:
    stroke-dashoffset 680ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 280ms ease;
  transition-delay: calc(var(--heart-node-order, 0) * 42ms);
}

.auth-overlay .auth-heart-graph-layer.is-visible .auth-heart-graph-lines line {
  stroke-dashoffset: 0;
  opacity: 0.54;
}

.auth-overlay .auth-heart-graph-node {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 92px;
  padding: 6px 9px 6px 16px;
  border: 0;
  border-left: 1px solid rgb(255 255 255 / 26%);
  outline: 0;
  background: rgb(2 2 2 / 72%);
  color: rgb(255 255 255 / 78%);
  font-family: var(--moko-font-body);
  text-align: left;
  opacity: 0;
  transform: translate3d(-50%, calc(-50% + 6px), 0);
  cursor: pointer;
  pointer-events: auto;
  transition:
    opacity 260ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--heart-node-order, 0) * 42ms);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricprecision;
}

.auth-overlay .auth-heart-graph-layer.is-visible .auth-heart-graph-node {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0);
}

.auth-overlay .auth-heart-graph-node i {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--heart-node-color);
  background: #050505;
  box-shadow: 0 0 7px color-mix(in srgb, var(--heart-node-color) 66%, transparent);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.auth-overlay .auth-heart-graph-node span {
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0.025em;
  line-height: 1.28;
  white-space: nowrap;
}

.auth-overlay .auth-heart-graph-node small {
  margin-top: 2px;
  color: rgb(255 255 255 / 40%);
  font-family: var(--moko-font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
}

.auth-overlay .auth-heart-graph-node:hover,
.auth-overlay .auth-heart-graph-node:focus-visible,
.auth-overlay .auth-heart-graph-node.is-selected {
  border-left-color: var(--heart-node-color);
  background: rgb(8 8 8 / 92%);
  color: #ffffff;
}

.auth-overlay .auth-heart-graph-node:focus-visible {
  outline: 1px solid rgb(255 255 255 / 72%);
  outline-offset: 2px;
}

.auth-overlay .auth-heart-object-panel {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
  display: flex;
  min-width: 202px;
  max-width: 338px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 4px;
  background: rgb(4 4 4 / 96%);
  box-shadow:
    0 0 18px rgb(255 255 255 / 7%),
    0 22px 56px rgb(0 0 0 / 76%);
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 280ms ease,
    border-color 220ms ease,
    visibility 0s linear 280ms;
  contain: layout paint style;
}

.auth-overlay .auth-heart-object-panel.is-visible {
  opacity: var(--auth-heart-knowledge-strength, 1);
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 360ms ease 80ms,
    border-color 220ms ease,
    visibility 0s linear 0s;
}

.auth-overlay .auth-heart-object-header {
  display: grid;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  font-family: var(--moko-font-mono);
}

.auth-overlay .auth-heart-object-header span,
.auth-overlay .auth-heart-object-header small {
  color: rgb(255 255 255 / 54%);
  font-size: 7px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.auth-overlay .auth-heart-object-header i {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, rgb(255 255 255 / 18%), transparent);
}

.auth-overlay .auth-heart-object-body {
  min-height: 0;
  flex: 1;
  padding: 16px 15px 14px;
  overflow: hidden;
}

.auth-overlay .auth-heart-object-domain {
  margin: 0;
  color: #8ed8ff;
  font-family: var(--moko-font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.auth-overlay .auth-heart-object-panel h2 {
  margin: 6px 0 0;
  color: #ffffff;
  font-family: var(--moko-font-heading);
  font-size: clamp(17px, 1.65vw, 22px);
  font-weight: 430;
  letter-spacing: 0.035em;
  line-height: 1.3;
}

.auth-overlay .auth-heart-object-summary {
  margin: 10px 0 0;
  color: rgb(255 255 255 / 62%);
  font-size: 10px;
  line-height: 1.65;
}

.auth-overlay .auth-heart-object-properties {
  display: grid;
  margin: 14px 0 0;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.auth-overlay .auth-heart-object-properties div {
  display: grid;
  min-height: 29px;
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  grid-template-columns: minmax(62px, 0.72fr) 1fr;
  gap: 8px;
}

.auth-overlay .auth-heart-object-properties dt,
.auth-overlay .auth-heart-object-properties dd {
  margin: 0;
  font-size: 8px;
  line-height: 1.3;
}

.auth-overlay .auth-heart-object-properties dt {
  color: rgb(255 255 255 / 34%);
  font-family: var(--moko-font-mono);
  letter-spacing: 0.08em;
}

.auth-overlay .auth-heart-object-properties dd {
  color: rgb(255 255 255 / 76%);
  text-align: right;
}

.auth-overlay .auth-heart-object-tags {
  display: flex;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 5px;
}

.auth-overlay .auth-heart-object-tags span {
  padding: 3px 6px;
  border: 1px solid rgb(255 255 255 / 14%);
  color: rgb(255 255 255 / 54%);
  font-size: 7px;
  line-height: 1.2;
}

.auth-overlay .auth-heart-object-panel footer {
  display: grid;
  min-height: 42px;
  align-content: center;
  padding: 7px 13px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  gap: 2px;
  font-family: var(--moko-font-mono);
}

.auth-overlay .auth-heart-object-panel footer span {
  color: rgb(255 255 255 / 58%);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.auth-overlay .auth-heart-object-panel footer small {
  color: rgb(255 255 255 / 30%);
  font-size: 6px;
  letter-spacing: 0.08em;
}

@media (max-width: 759px) {
  .auth-overlay .auth-heart-graph-node {
    min-width: 72px;
    padding: 5px 7px 5px 13px;
  }

  .auth-overlay .auth-heart-graph-node span {
    font-size: 8px;
  }

  .auth-overlay .auth-heart-graph-node small {
    display: none;
  }

  .auth-overlay .auth-heart-object-body {
    padding: 13px 12px 11px;
  }

  .auth-overlay .auth-heart-object-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .auth-overlay .auth-heart-object-properties {
    margin-top: 10px;
  }
}

/* The first chapter temporarily mounts the real #objectPanel here. Keep the
   same M.O.K.O drawer surface and object-page rhythm used after sign-in; auth
   only owns its spatial placement and read-only preview content. */
.auth-overlay #objectPanel.auth-heart-object-panel {
  position: absolute;
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  z-index: 8;
  display: flex;
  min-width: 0;
  max-width: none;
  overflow: clip;
  border: 0;
  border-radius: 0;
  border-top-left-radius: var(--moko-radius-card, 10px);
  background:
    linear-gradient(180deg, rgb(18 20 24 / 58%), rgb(5 6 8 / 46%)) !important;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 18px 54px rgb(0 0 0 / 18%);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-200vw, -200vh, 0);
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
  animation: none;
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}

.auth-overlay #objectPanel.auth-heart-object-panel.is-visible {
  opacity: var(--auth-heart-panel-strength, 1);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 300ms ease 50ms, visibility 0s linear 0s;
  animation: none;
}

.auth-overlay #objectPanel.auth-heart-object-panel .op-header {
  min-height: 42px;
  padding: 10px 16px;
  border-bottom: 0;
  background: linear-gradient(180deg, var(--moko-orbit-dock-viewer-bg), rgb(255 255 255 / 0%));
}

.auth-overlay #objectPanel.auth-heart-object-panel .op-title {
  font-size: var(--moko-font-size-12);
}

.auth-overlay #objectPanel.auth-heart-object-panel .op-body {
  padding: 0;
}

.auth-overlay #objectPanel.auth-heart-object-panel .auth-heart-native-object-page {
  max-width: none;
  margin: 0;
  padding: 28px 24px 34px;
  pointer-events: none;
}

.auth-overlay #objectPanel.auth-heart-object-panel .supertag-pills--hero {
  display: flex;
  margin: 0 0 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.auth-overlay #objectPanel.auth-heart-object-panel .st-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgb(142 216 255 / 24%);
  border-radius: var(--moko-surface-radius-control, 5px);
  background: rgb(142 216 255 / 7%);
  font-size: 10px;
  line-height: 1.35;
}

.auth-overlay #objectPanel.auth-heart-object-panel .auth-heart-type-pill {
  --st-color: #8ed8ff;
  color: #8ed8ff;
}

.auth-overlay #objectPanel.auth-heart-object-panel .page-title {
  margin: 10px 0 1px;
  color: var(--moko-surface-text-primary, #f5f5f5);
  font-family: var(--moko-font-heading);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.auth-overlay #objectPanel.auth-heart-object-panel .title-note-wrap {
  margin-bottom: 18px;
}

.auth-overlay #objectPanel.auth-heart-object-panel .title-note {
  color: var(--moko-surface-text-muted, rgb(255 255 255 / 38%));
  font-size: 11px;
  letter-spacing: 0.035em;
  line-height: 1.4;
}

.auth-overlay #objectPanel.auth-heart-object-panel .prop-section {
  margin: 12px 0 18px;
  padding-top: 8px;
  border: 1px solid var(--moko-reference-field-border, rgb(255 255 255 / 8%));
  border-radius: var(--moko-surface-radius, 8px);
  background: var(--moko-reference-field-bg, rgb(255 255 255 / 2%));
}

.auth-overlay #objectPanel.auth-heart-object-panel .prop-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 10px 8px;
}

.auth-overlay #objectPanel.auth-heart-object-panel .prop-section-kicker,
.auth-overlay #objectPanel.auth-heart-object-panel .connections-kicker {
  color: var(--moko-surface-text-muted, rgb(255 255 255 / 40%));
  font-family: var(--moko-font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-overlay #objectPanel.auth-heart-object-panel .prop-section-note {
  color: var(--moko-surface-text-faint, rgb(255 255 255 / 24%));
  font-size: 9px;
}

.auth-overlay #objectPanel.auth-heart-object-panel .prop-row {
  position: relative;
  display: flex;
  min-height: 34px;
  align-items: flex-start;
  padding: 5px 8px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.auth-overlay #objectPanel.auth-heart-object-panel .prop-section .prop-row {
  border-top-color: var(--moko-reference-section-divider, rgb(255 255 255 / 7%));
}

.auth-overlay #objectPanel.auth-heart-object-panel .prop-label {
  display: flex;
  width: 96px;
  flex: 0 0 96px;
  align-items: flex-start;
  padding: 4px 0 4px 4px;
  color: var(--moko-surface-text-primary, rgb(255 255 255 / 82%));
  font-size: 11px;
  line-height: 1.4;
}

.auth-overlay #objectPanel.auth-heart-object-panel .prop-main,
.auth-overlay #objectPanel.auth-heart-object-panel .prop-body-pad {
  min-width: 0;
  flex: 1;
  padding: 4px 4px;
}

.auth-overlay #objectPanel.auth-heart-object-panel .domain-tag-list,
.auth-overlay #objectPanel.auth-heart-object-panel .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auth-overlay #objectPanel.auth-heart-object-panel .tag-pill {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid var(--moko-reference-field-border, rgb(255 255 255 / 10%));
  border-radius: var(--moko-surface-radius-control, 5px);
  background: var(--moko-reference-field-bg, rgb(255 255 255 / 3%));
  color: var(--moko-surface-text-secondary, rgb(255 255 255 / 62%));
  font-size: 9px;
}

.auth-overlay #objectPanel.auth-heart-object-panel .definition-section {
  align-items: flex-start;
}

.auth-overlay #objectPanel.auth-heart-object-panel .def-editor,
.auth-overlay #objectPanel.auth-heart-object-panel .prop-value {
  color: var(--moko-surface-text-secondary);
  font-size: var(--moko-font-size-12);
  line-height: 1.65;
}

.auth-overlay #objectPanel.auth-heart-object-panel .auth-heart-object-relations {
  display: flex;
  padding: 10px 8px 14px;
  flex-wrap: wrap;
  gap: 6px;
}

.auth-overlay #objectPanel.auth-heart-object-panel .connections-section {
  margin-top: 14px;
  padding: 12px 0 0;
  border-top: 1px solid var(--moko-reference-section-divider, rgb(255 255 255 / 8%));
}

.auth-overlay #objectPanel.auth-heart-object-panel .connections-head {
  padding: 0 8px;
}

.auth-overlay #objectPanel.auth-heart-object-panel .auth-heart-object-relations span {
  padding: 4px 8px;
  border: 1px solid var(--moko-reference-field-border);
  border-radius: var(--moko-surface-radius-control);
  background: var(--moko-reference-field-bg);
  color: var(--moko-surface-text-secondary);
  font-size: var(--moko-font-size-10);
}

.auth-overlay #objectPanel.auth-heart-object-panel .op-footer {
  min-height: 48px;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--moko-reference-section-divider);
  background: linear-gradient(180deg, rgb(255 255 255 / 0%), var(--moko-surface-dgw-preview-bg));
}

.auth-overlay .auth-tunnel-intro {
  position: absolute;
  top: min(calc(100vh - 150px), calc(50% + clamp(110px, 18vw, 260px)));
  left: clamp(48px, 7vw, 108px);
  z-index: 4;
  display: grid;
  width: min(480px, calc(100vw - 96px));
  justify-items: start;
  gap: 8px;
  color: #ffffff;
  text-align: left;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.auth-overlay .auth-tunnel-intro.is-visible {
  opacity: var(--auth-intro-strength, 1);
  transform: translate3d(0, 0, 0);
}

.auth-overlay .auth-tunnel-intro.is-opposite-left,
.auth-overlay .auth-tunnel-intro.is-opposite-right {
  left: clamp(48px, 7vw, 108px);
}

.auth-overlay .auth-tunnel-intro-kicker {
  width: 100%;
  color: rgb(255 255 255 / 94%);
  font-family: var(--moko-font-heading);
  font-size: clamp(22px, 2.25vw, 30px);
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.24;
}

.auth-overlay .auth-tunnel-intro-title {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 16%);
  font-family: var(--moko-font-body);
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.55;
  text-shadow: 0 0 14px rgb(255 255 255 / 15%);
}

.auth-overlay .auth-tunnel-intro-body {
  max-width: 420px;
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-family: var(--moko-font-body);
  font-size: clamp(10px, 0.82vw, 12px);
  letter-spacing: 0.045em;
  line-height: 1.65;
}

.auth-overlay .auth-tunnel-intro-action {
  margin-top: 2px;
  color: rgb(255 255 255 / 42%);
  font-family: var(--moko-font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.auth-overlay .auth-tunnel-intro.is-entrance {
  top: 34%;
  left: 50%;
  width: min(560px, calc(100vw - 64px));
  justify-items: center;
  text-align: center;
  transform: translate3d(-50%, 12px, 0);
}

.auth-overlay .auth-tunnel-intro.is-entrance.is-visible {
  transform: translate3d(-50%, 0, 0);
}

.auth-overlay .auth-tunnel-intro.is-entrance .auth-tunnel-intro-kicker {
  display: none;
}

.auth-overlay .auth-tunnel-intro.is-entrance .auth-tunnel-intro-title {
  width: auto;
  max-width: 620px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-family: var(--moko-font-heading);
  color: rgb(255 255 255 / 64%);
  font-size: clamp(11px, 1.2vw, 15px);
  font-weight: 450;
  letter-spacing: 0.12em;
  line-height: 1.22;
  text-shadow: 0 0 24px rgb(255 255 255 / 18%);
}

.auth-overlay .auth-tunnel-intro.is-entrance .auth-tunnel-intro-body {
  max-width: 620px;
  margin-top: 8px;
  color: #ffffff;
  font-family: var(--moko-font-heading);
  font-size: clamp(17px, 2.3vw, 28px);
  font-weight: 520;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 28px rgb(255 255 255 / 16%);
}

.auth-overlay .auth-tunnel-intro.is-object-story .auth-tunnel-intro-title,
.auth-overlay .auth-tunnel-intro.is-object-story .auth-tunnel-intro-body {
  display: none;
}

.auth-overlay .auth-tunnel-intro.is-object-story {
  width: min(760px, calc(100vw - 96px));
}

.auth-overlay .auth-tunnel-intro.is-object-story .auth-tunnel-intro-kicker {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: 0.045em;
  white-space: nowrap;
}

.auth-overlay .auth-tunnel-intro.is-plain-copy .auth-tunnel-intro-kicker {
  display: none;
}

.auth-overlay .auth-tunnel-intro.is-plain-copy .auth-tunnel-intro-title {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* 第二、三幕沿用「04 / 从材料进入知识」的标题字级。 */
.auth-overlay .auth-tunnel-intro.is-plain-copy .auth-tunnel-intro-title,
.auth-overlay .auth-tunnel-intro.is-structure-story .auth-tunnel-intro-title {
  color: rgb(255 255 255 / 94%);
  font-family: var(--moko-font-heading);
  font-size: clamp(22px, 2.25vw, 30px);
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.24;
  text-shadow: none;
}

.auth-overlay .auth-tunnel-intro.is-entrance .auth-tunnel-intro-action {
  max-width: min(680px, calc(100vw - 64px));
  margin-top: 8px;
  color: rgb(255 255 255 / 54%);
  font-size: clamp(7px, 0.56vw, 9px);
  letter-spacing: 0.11em;
  line-height: 1.7;
  text-align: center;
  text-transform: none;
}

.auth-overlay .auth-tunnel-heading {
  position: absolute;
  top: clamp(26px, 4vw, 58px);
  left: clamp(24px, 4vw, 62px);
  z-index: 7;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.auth-overlay .auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgb(255 255 255 / 92%);
  font-family: var(--moko-font-heading);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
}

.auth-overlay .auth-brand-mark {
  width: 22px;
  height: 20px;
  flex: none;
  object-fit: contain;
  filter: grayscale(1) brightness(1.8);
}

.auth-overlay .auth-tunnel-progress {
  position: absolute;
  right: clamp(24px, 4vw, 62px);
  bottom: clamp(28px, 4vw, 56px);
  z-index: 7;
  display: grid;
  width: min(220px, 24vw);
  gap: 9px;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.auth-overlay .auth-tunnel-distance {
  color: rgb(255 255 255 / 36%);
  font-family: var(--moko-font-mono);
  font-size: 9px;
  text-align: right;
  letter-spacing: 0.11em;
}

.auth-overlay .auth-tunnel-progress i {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgb(255 255 255 / 13%);
}

.auth-overlay .auth-tunnel-progress b {
  position: absolute;
  inset: 0;
  display: block;
  background: rgb(255 255 255 / 78%);
  transform: scaleX(0);
  transform-origin: left center;
}

.auth-overlay .auth-tunnel-hint {
  position: absolute;
  bottom: clamp(28px, 4vw, 56px);
  right: clamp(28px, 4vw, 56px);
  z-index: 7;
  display: grid;
  justify-items: end;
  gap: 5px;
  color: rgb(255 255 255 / 46%);
  font-family: var(--moko-font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-align: right;
  transition: opacity 260ms ease;
  pointer-events: none;
}

.auth-overlay .auth-tunnel-hint i {
  position: relative;
  display: block;
  width: 1px;
  height: 34px;
  overflow: hidden;
  background: rgb(255 255 255 / 14%);
}

.auth-overlay .auth-tunnel-hint i::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 12px;
  background: #ffffff;
  content: "";
  animation: auth-tunnel-hint 1.7s ease-in-out infinite;
}

.auth-overlay .auth-tunnel-skip {
  position: absolute;
  top: clamp(26px, 4vw, 58px);
  right: clamp(24px, 4vw, 62px);
  z-index: 8;
  display: inline-flex;
  height: 30px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 58%);
  font-family: var(--moko-font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 180ms ease, opacity 220ms ease;
}

.auth-overlay .auth-tunnel-skip::after {
  margin-left: 8px;
  color: rgb(255 255 255 / 34%);
  content: "\2192";
  font-size: 10px;
  letter-spacing: 0;
  transition: color 180ms ease, transform 180ms ease;
}

.auth-overlay .auth-tunnel-skip:hover,
.auth-overlay .auth-tunnel-skip:focus-visible {
  color: rgb(255 255 255 / 94%);
}

.auth-overlay .auth-tunnel-skip:hover::after,
.auth-overlay .auth-tunnel-skip:focus-visible::after {
  color: currentcolor;
  transform: translateX(2px);
}

.auth-overlay .auth-music-toggle {
  position: absolute;
  top: calc(clamp(26px, 4vw, 58px) + 34px);
  right: clamp(24px, 4vw, 62px);
  z-index: 8;
  display: inline-flex;
  height: 30px;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 52%);
  font-family: var(--moko-font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 180ms ease, opacity 220ms ease;
}

.auth-overlay .auth-music-toggle:hover,
.auth-overlay .auth-music-toggle:focus-visible {
  color: rgb(255 255 255 / 92%);
  outline: 0;
}

.auth-overlay .auth-music-toggle:focus-visible {
  box-shadow: 0 1px 0 rgb(255 255 255 / 72%);
}

.auth-overlay .auth-music-bars {
  display: flex;
  width: 15px;
  height: 12px;
  align-items: center;
  justify-content: space-between;
}

.auth-overlay .auth-music-bars i {
  display: block;
  width: 1px;
  height: 3px;
  background: currentcolor;
  transform-origin: center;
}

.auth-overlay .auth-music-toggle.is-playing .auth-music-bars i {
  animation: auth-music-meter 760ms ease-in-out infinite alternate;
}

.auth-overlay .auth-music-toggle.is-playing .auth-music-bars i:nth-child(2) {
  animation-delay: -410ms;
}

.auth-overlay .auth-music-toggle.is-playing .auth-music-bars i:nth-child(3) {
  animation-delay: -180ms;
}

.auth-overlay .auth-music-toggle.is-playing .auth-music-bars i:nth-child(4) {
  animation-delay: -560ms;
}

.auth-overlay .auth-music-toggle[aria-pressed="false"] .auth-music-bars i {
  height: 1px;
  animation: none;
}

.auth-overlay .auth-entry-flash {
  position: absolute;
  inset: 0;
  z-index: 9;
  background: #f8f8f4;
  opacity: 0;
  pointer-events: none;
}

.auth-overlay .auth-entry-quote {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 32px;
  color: #11110f;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-overlay .auth-entry-quote-main {
  margin: 0;
  font-family: var(--moko-font-heading);
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.35;
}

.auth-overlay .auth-entry-quote-original {
  margin: 12px 0 0;
  color: rgb(17 17 15 / 62%);
  font-family: var(--moko-font-body);
  font-size: clamp(11px, 0.92vw, 14px);
  letter-spacing: 0.045em;
  line-height: 1.5;
}

.auth-overlay .auth-entry-quote cite {
  margin-top: 18px;
  color: rgb(17 17 15 / 48%);
  font-family: var(--moko-font-mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.auth-overlay .auth-terminal-screen {
  position: absolute;
  top: 43%;
  left: 50%;
  z-index: 5;
  width: min(760px, calc(100vw - 24px));
  height: min(427.5px, calc((100vw - 24px) * 0.5625));
  min-height: 0;
  overflow: hidden;
  border: 2px solid #ffffff;
  border-radius: 0;
  background: #f3f3ef;
  box-shadow:
    0 0 7px rgb(255 255 255 / 96%),
    0 0 150px rgb(255 255 255 / 82%),
    0 32px 90px rgb(0 0 0 / 72%);
  color: #090909;
  opacity: 1;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) scale(0.0034);
  transform-origin: center center;
  backface-visibility: hidden;
  contain: layout paint style;
  will-change: transform;
}

.auth-overlay .auth-terminal-screen::before {
  content: none;
}

.auth-overlay .auth-terminal-meta {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(0 0 0 / 52%);
  font-family: var(--moko-font-mono);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1;
  text-align: center;
  opacity: 1;
  pointer-events: none;
  transform: translateX(0.15em);
  transition: opacity 160ms ease;
}

.auth-overlay .auth-terminal-screen .auth-card {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  width: 100%;
  max-height: none;
  align-items: stretch;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow-y: auto;
  background: transparent;
  box-shadow: none;
  color: #090909;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  visibility: hidden;
  transition: opacity 320ms ease 120ms, transform 420ms cubic-bezier(0.22, 1, 0.36, 1) 90ms;
}

.auth-overlay .auth-terminal-screen .auth-card-content {
  width: min(100%, 520px);
  margin: auto;
  padding: 36px 26px 14px;
}

.auth-overlay.is-tunnel-arrived .auth-terminal-screen {
  opacity: 1;
  pointer-events: auto;
}

.auth-overlay.is-tunnel-arrived:not(.is-entering-moko) .auth-terminal-meta {
  opacity: 0;
}

.auth-overlay.is-tunnel-arrived .auth-card {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  visibility: visible;
}

/* 登录表单开启后，通道画布仅保留为背景，不能再截获密码框点击或显示拖动光标。 */
.auth-overlay.is-tunnel-arrived .auth-tunnel-canvas {
  cursor: default;
  pointer-events: none;
}

.auth-overlay.is-tunnel-arrived .auth-tunnel-heading,
.auth-overlay.is-tunnel-arrived .auth-tunnel-progress,
.auth-overlay.is-tunnel-arrived .auth-tunnel-hint,
.auth-overlay.is-tunnel-arrived .auth-tunnel-skip,
.auth-overlay.is-tunnel-arrived .auth-discipline-layer,
.auth-overlay.is-tunnel-arrived .auth-feature-layer,
.auth-overlay.is-tunnel-arrived .auth-tunnel-intro {
  opacity: 0;
  pointer-events: none;
}

.auth-overlay.is-entering-moko {
  pointer-events: none;
}

.auth-overlay.is-entering-moko .auth-terminal-screen {
  animation: auth-terminal-expand-to-viewport 1180ms cubic-bezier(0.76, 0, 0.18, 1) both;
  contain: none;
  will-change: transform;
}

.auth-overlay.is-entering-moko .auth-card {
  animation: auth-entry-card-recede 300ms cubic-bezier(0.55, 0, 1, 0.45) both;
}

.auth-overlay.is-entering-moko .auth-terminal-meta {
  animation: auth-entry-card-recede 260ms ease-in both;
}

.auth-overlay.is-entering-moko .auth-tunnel-canvas {
  animation: auth-entry-world-rush 920ms cubic-bezier(0.62, 0, 0.22, 1) both;
  transform-origin: 50% 43%;
}

.auth-overlay.is-entering-moko .auth-entry-flash {
  animation: auth-entry-whiteout 1180ms linear both;
}

.auth-overlay.is-entering-moko .auth-entry-quote {
  visibility: visible;
  animation: auth-entry-quote-reveal 1180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-overlay.is-entering-moko .auth-music-toggle {
  opacity: 0;
}

@keyframes auth-terminal-expand-to-viewport {
  0% {
    box-shadow:
      0 0 7px rgb(255 255 255 / 96%),
      0 0 150px rgb(255 255 255 / 82%),
      0 32px 90px rgb(0 0 0 / 72%);
    transform:
      translate3d(
        calc(-50% + var(--auth-entry-start-shift-x, 0px)),
        calc(-50% + var(--auth-entry-start-shift-y, 0px)),
        0
      )
      scale(var(--auth-entry-start-scale, 1));
  }

  18% {
    box-shadow:
      0 0 12px rgb(255 255 255 / 100%),
      0 0 190px rgb(255 255 255 / 88%),
      0 24px 72px rgb(0 0 0 / 56%);
  }

  82% {
    border-color: #f8f8f4;
    box-shadow: 0 0 100px rgb(255 255 255 / 100%);
    transform:
      translate3d(-50%, calc(-50% + var(--auth-entry-end-shift-y, 7vh)), 0)
      scale(var(--auth-entry-cover-scale, 3));
  }

  100% {
    border-color: #f8f8f4;
    box-shadow: none;
    transform:
      translate3d(-50%, calc(-50% + var(--auth-entry-end-shift-y, 7vh)), 0)
      scale(var(--auth-entry-cover-scale, 3));
  }
}

@keyframes auth-entry-card-recede {
  to {
    filter: blur(12px);
    opacity: 0;
    transform: scale(0.72);
  }
}

@keyframes auth-entry-world-rush {
  0% {
    filter: blur(0) brightness(1);
    opacity: 1;
    transform: scale(1);
  }

  62% {
    filter: blur(2px) brightness(1.32);
    opacity: 0.78;
    transform: scale(1.7);
  }

  100% {
    filter: blur(12px) brightness(2);
    opacity: 0;
    transform: scale(3.1);
  }
}

@keyframes auth-entry-whiteout {
  0%, 76% {
    opacity: 0;
  }

  92%, 100% {
    opacity: 1;
  }
}

@keyframes auth-entry-quote-reveal {
  0%, 34% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.985);
  }

  54%, 100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes auth-music-meter {
  0% { height: 2px; }
  45% { height: 11px; }
  100% { height: 5px; }
}

.auth-overlay.is-auth-transition-instant .auth-terminal-screen,
.auth-overlay.is-auth-transition-instant .auth-card,
.auth-overlay.is-auth-transition-instant .auth-tunnel-heading,
.auth-overlay.is-auth-transition-instant .auth-tunnel-progress,
.auth-overlay.is-auth-transition-instant .auth-tunnel-hint {
  animation: none;
  transition: none;
}

.auth-overlay .auth-terminal-screen .auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgb(0 0 0 / 18%);
  border-radius: 0;
  background: transparent;
}

.auth-overlay .auth-terminal-screen .auth-mode-tab {
  position: relative;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgb(0 0 0 / 38%);
  font-family: var(--moko-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.auth-overlay .auth-terminal-screen .auth-mode-tab:hover,
.auth-overlay .auth-terminal-screen .auth-mode-tab.is-active {
  color: #090909;
}

.auth-overlay .auth-terminal-screen .auth-mode-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: #090909;
  content: "";
}

.auth-overlay .auth-terminal-screen .auth-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.auth-overlay .auth-terminal-screen .auth-form.moko-display-flex {
  display: grid !important;
}

.auth-overlay .auth-terminal-screen .auth-form[hidden] {
  display: none !important;
}

/* Password recovery is a single, focused action. Keep its controls on one
   centered column instead of inheriting the two-column login/register grid. */
.auth-overlay .auth-terminal-screen #forgotForm {
  width: min(100%, 255px);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}

.auth-overlay .auth-terminal-screen #forgotForm #authForgotSubmit {
  grid-column: 1;
  width: 100%;
}

.auth-overlay .auth-terminal-screen #forgotForm .auth-error,
.auth-overlay .auth-terminal-screen #forgotForm .auth-switch {
  grid-column: 1;
  text-align: center;
}

.auth-overlay .auth-terminal-screen .auth-field {
  text-align: left;
}

.auth-overlay .auth-terminal-screen .auth-field label {
  display: block;
  margin: 0 0 4px;
  color: rgb(0 0 0 / 48%);
  font-family: var(--moko-font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.auth-overlay .auth-terminal-screen .auth-field input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #0d0d0d;
  border-radius: 0;
  outline: 0;
  background: #f8f8f4;
  color: #090909;
  caret-color: #090909;
  font-family: var(--moko-font-body);
  font-size: 11px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-overlay .auth-terminal-screen .auth-field input::placeholder {
  color: rgb(0 0 0 / 35%);
  opacity: 1;
}

.auth-overlay .auth-terminal-screen .auth-invite-contact {
  margin: 4px 0 0;
  color: rgb(0 0 0 / 48%);
  font-family: var(--moko-font-mono);
  font-size: 7px;
  line-height: 1.25;
  white-space: nowrap;
}

.auth-overlay .auth-terminal-screen .auth-field input:-webkit-autofill,
.auth-overlay .auth-terminal-screen .auth-field input:-webkit-autofill:hover,
.auth-overlay .auth-terminal-screen .auth-field input:-webkit-autofill:focus,
.auth-overlay .auth-terminal-screen .auth-field input:-webkit-autofill:active {
  -webkit-text-fill-color: #090909 !important;
  caret-color: #090909;
  -webkit-box-shadow: 0 0 0 1000px #f8f8f4 inset !important;
  box-shadow: 0 0 0 1000px #f8f8f4 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.auth-overlay .auth-terminal-screen .auth-field input:focus {
  border-color: #090909;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 30%);
}

.auth-overlay .auth-terminal-screen .auth-field input.is-invalid,
.auth-overlay .auth-terminal-screen .auth-field input[aria-invalid="true"] {
  border-color: #d85d5d;
  box-shadow: 0 0 0 1px rgb(216 93 93 / 32%);
}

.auth-overlay .auth-terminal-screen .auth-field input:disabled {
  border-color: rgb(0 0 0 / 34%);
  color: rgb(0 0 0 / 48%);
  cursor: not-allowed;
  opacity: 0.68;
}

.auth-overlay .auth-terminal-screen .auth-pw-wrap {
  position: relative;
}

.auth-overlay .auth-terminal-screen .auth-pw-wrap input {
  padding-right: 38px;
}

.auth-overlay .auth-terminal-screen .auth-pw-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgb(0 0 0 / 58%);
  cursor: pointer;
  opacity: 1;
  transform: translateY(-50%);
}

.auth-overlay .auth-terminal-screen .auth-pw-toggle:hover {
  color: #090909;
}

.auth-overlay .auth-terminal-screen .auth-pw-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.auth-overlay .auth-terminal-screen .auth-btn {
  grid-column: 1 / -1;
  width: 100%;
  height: 34px;
  margin: 1px 0 0;
  padding: 0 10px;
  border: 1px solid #090909;
  border-radius: 0;
  background: #f8f8f4;
  color: #090909;
  font-family: var(--moko-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

/* Keep registration compact: its action belongs in the unused right-hand cell
   beside the invite-code row, not as a full-width footer. */
.auth-overlay .auth-terminal-screen #registerForm #authRegisterSubmit {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  /* Align with the invite-code input, rather than its label. */
  margin-top: 18px;
}

.auth-overlay .auth-terminal-screen .auth-btn:hover {
  background: #e9e9e4;
  opacity: 1;
}

.auth-overlay .auth-terminal-screen .auth-btn:active {
  transform: translateY(1px);
}

.auth-overlay .auth-terminal-screen .auth-btn:disabled,
.auth-overlay .auth-terminal-screen .auth-mode-tab:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.auth-overlay .auth-terminal-screen .auth-error {
  grid-column: 1 / -1;
  min-height: 10px;
  color: #b83f3f;
  font-size: 9px;
  opacity: 0;
  transition: opacity 150ms ease;
}

.auth-overlay .auth-terminal-screen .auth-error.is-visible {
  opacity: 1;
}

.auth-overlay .auth-terminal-screen .auth-switch {
  color: rgb(0 0 0 / 46%);
  font-size: 9px;
  line-height: 1.45;
}

.auth-overlay .auth-terminal-screen .auth-switch-link {
  padding: 0 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #090909;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.auth-overlay .auth-terminal-screen .auth-switch-link:hover {
  text-decoration: underline;
}

.auth-overlay .auth-terminal-screen .auth-switch-link:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  text-decoration: none;
}

.auth-overlay .auth-terminal-screen .auth-switch--registration-hint {
  display: none;
}

.auth-overlay .auth-terminal-screen .auth-switch--guest {
  margin-top: -2px;
  justify-self: end;
  text-align: right;
}

.auth-overlay .auth-terminal-screen .auth-switch--guest .auth-switch-link {
  color: rgb(0 0 0 / 56%);
  font-size: 9px;
  font-weight: 500;
}

.auth-overlay .auth-terminal-screen .auth-reauth-notice {
  margin: 0 0 14px;
  padding: 9px 10px;
  border: 1px solid rgb(0 0 0 / 18%);
  border-radius: 0;
  background: rgb(0 0 0 / 5%);
  color: rgb(0 0 0 / 72%);
  font-size: 10px;
}

.auth-overlay .auth-terminal-screen .auth-mode-tab:focus-visible,
.auth-overlay .auth-terminal-screen .auth-field input:focus-visible,
.auth-overlay .auth-terminal-screen .auth-pw-toggle:focus-visible,
.auth-overlay .auth-terminal-screen .auth-btn:focus-visible,
.auth-overlay .auth-terminal-screen .auth-switch-link:focus-visible,
.auth-overlay .auth-tunnel-skip:focus-visible {
  outline: 2px solid #737373;
  outline-offset: 2px;
}

.auth-overlay.is-reauth {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: #030303;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth-overlay.is-reauth .auth-shell {
  width: 100%;
  min-height: 100%;
  max-height: none;
  border: 0;
  background: #030303;
  box-shadow: none;
}

.auth-overlay.is-reauth .auth-tunnel {
  display: block;
}

.auth-overlay.is-reauth .auth-terminal-screen .auth-card {
  border: 0;
  background: transparent;
}

@keyframes auth-tunnel-hint {
  0% { opacity: 0; transform: translateY(-12px); }
  32% { opacity: 1; }
  100% { opacity: 0; transform: translateY(34px); }
}

@media (max-width: 820px) {
  .auth-overlay .auth-tunnel-intro,
  .auth-overlay .auth-tunnel-intro.is-opposite-left,
  .auth-overlay .auth-tunnel-intro.is-opposite-right {
    top: min(calc(100vh - 152px), calc(50% + clamp(110px, 19vw, 156px)));
    left: 24px;
    width: min(420px, calc(100vw - 48px));
  }

  .auth-overlay .auth-tunnel-intro.is-object-story {
    width: calc(100vw - 48px);
  }

  .auth-overlay .auth-tunnel-intro.is-object-story .auth-tunnel-intro-kicker {
    white-space: normal;
  }

  .auth-overlay .auth-tunnel-intro.is-entrance,
  .auth-overlay .auth-tunnel-intro.is-entrance.is-opposite-left,
  .auth-overlay .auth-tunnel-intro.is-entrance.is-opposite-right {
    top: 31%;
    left: 50%;
    width: min(440px, calc(100vw - 44px));
  }

  .auth-overlay .auth-tunnel-intro-body {
    max-width: 360px;
  }

  .auth-overlay .auth-feature-panel {
    border-radius: 4px;
  }

  .auth-overlay .auth-tunnel-progress {
    right: 20px;
    bottom: 24px;
    width: 124px;
  }

  .auth-overlay .auth-tunnel-hint {
    bottom: 24px;
    right: 22px;
    left: auto;
    justify-items: end;
  }

  .auth-overlay .auth-tunnel-hint i {
    display: none;
  }

  .auth-overlay .auth-terminal-screen {
    width: min(760px, calc(100vw - 24px));
    height: min(427.5px, calc((100vw - 24px) * 0.5625));
    min-height: 0;
  }

  .auth-overlay .auth-terminal-screen .auth-card-content {
    padding: 26px 22px 8px;
  }

  .auth-overlay .auth-terminal-screen .auth-mode-tabs {
    margin-bottom: 6px;
  }

  .auth-overlay .auth-terminal-screen #registerForm {
    gap: 4px 10px;
  }

  .auth-overlay .auth-terminal-screen #registerForm .auth-field label {
    margin-bottom: 2px;
  }

  .auth-overlay .auth-terminal-screen #registerForm .auth-field input,
  .auth-overlay .auth-terminal-screen #registerForm .auth-btn {
    height: 32px;
  }

  .auth-overlay .auth-terminal-screen #registerForm .auth-invite-contact {
    margin-top: 2px;
  }
}

@media (max-width: 480px) {
  .auth-overlay .auth-tunnel-intro {
    top: min(calc(100vh - 156px), calc(50% + 110px));
    left: 20px;
    width: calc(100vw - 40px);
    gap: 6px;
  }

  .auth-overlay .auth-tunnel-intro-kicker {
    font-size: 20px;
  }

  .auth-overlay .auth-tunnel-intro-title {
    margin-top: 5px;
    padding-top: 10px;
    font-size: 12px;
  }

  .auth-overlay .auth-tunnel-intro-body {
    font-size: 9px;
  }

  .auth-overlay .auth-tunnel-intro-action {
    font-size: 7px;
    letter-spacing: 0.1em;
  }

  .auth-overlay .auth-tunnel-intro.is-entrance {
    top: 29%;
    left: 50%;
    width: calc(100vw - 40px);
  }

  .auth-overlay .auth-tunnel-intro.is-entrance .auth-tunnel-intro-title {
    font-size: 11px;
  }

  .auth-overlay .auth-tunnel-intro.is-entrance .auth-tunnel-intro-body {
    font-size: 17px;
  }

  .auth-overlay .auth-tunnel-intro.is-entrance .auth-tunnel-intro-action {
    max-width: calc(100vw - 40px);
    font-size: 6.5px;
    letter-spacing: 0.08em;
  }

  .auth-overlay .auth-feature-panel {
    border-radius: 3px;
  }

  .auth-overlay .auth-feature-panel.is-focused,
  .auth-overlay .auth-feature-panel.is-highlighted,
  .auth-overlay .auth-feature-panel.is-dominant,
  .auth-overlay .auth-feature-panel[aria-current="true"] {
    box-shadow:
      0 0 9px rgb(255 255 255 / 42%),
      0 18px 40px rgb(0 0 0 / 78%);
  }

  .auth-overlay .auth-tunnel-heading {
    top: 22px;
    left: 20px;
  }

  .auth-overlay .auth-terminal-screen .auth-card-content {
    padding: 10px 16px 3px;
  }

  .auth-overlay .auth-terminal-meta {
    inset: 0;
  }

  .auth-overlay .auth-terminal-screen .auth-mode-tabs {
    margin-bottom: 2px;
  }

  .auth-overlay .auth-terminal-screen .auth-mode-tab {
    height: 22px;
    font-size: 7px;
  }

  .auth-overlay .auth-terminal-screen .auth-form {
    gap: 2px 8px;
  }

  .auth-overlay .auth-terminal-screen #registerForm {
    gap: 2px 8px;
  }

  .auth-overlay .auth-terminal-screen .auth-field label {
    margin-bottom: 1px;
    font-size: 6px;
    line-height: 1.1;
  }

  .auth-overlay .auth-terminal-screen .auth-field input {
    height: 24px;
    padding: 0 7px;
    font-size: 9px;
  }

  .auth-overlay .auth-terminal-screen .auth-pw-toggle {
    right: 3px;
    width: 20px;
    height: 20px;
  }

  .auth-overlay .auth-terminal-screen .auth-btn {
    height: 24px;
    font-size: 7px;
  }

  .auth-overlay .auth-terminal-screen .auth-invite-contact {
    margin-top: 1px;
    font-size: 5.5px;
    line-height: 1.1;
  }

  .auth-overlay .auth-terminal-screen .auth-switch,
  .auth-overlay .auth-terminal-screen .auth-switch--guest .auth-switch-link {
    font-size: 8px;
  }

  .auth-overlay .auth-terminal-screen #registerForm .auth-field input,
  .auth-overlay .auth-terminal-screen #registerForm .auth-btn {
    height: 24px;
  }
}

@media (max-height: 700px) and (min-width: 481px) {
  .auth-overlay .auth-tunnel-intro,
  .auth-overlay .auth-tunnel-intro.is-opposite-left,
  .auth-overlay .auth-tunnel-intro.is-opposite-right {
    top: min(calc(100vh - 132px), calc(50% + 190px));
  }

  .auth-overlay .auth-tunnel-intro-kicker {
    font-size: 21px;
  }

  .auth-overlay .auth-tunnel-intro-title {
    margin-top: 4px;
    padding-top: 9px;
    font-size: 12px;
  }

  .auth-overlay .auth-tunnel-intro-body {
    font-size: 9px;
    line-height: 1.5;
  }

  .auth-overlay .auth-tunnel-intro.is-entrance,
  .auth-overlay .auth-tunnel-intro.is-entrance.is-opposite-left,
  .auth-overlay .auth-tunnel-intro.is-entrance.is-opposite-right {
    top: 28%;
  }

  .auth-overlay .auth-tunnel-intro.is-entrance .auth-tunnel-intro-title {
    margin-top: 0;
    padding-top: 0;
    font-size: 12px;
  }

  .auth-overlay .auth-tunnel-intro.is-entrance .auth-tunnel-intro-body {
    font-size: 20px;
  }

  .auth-overlay .auth-terminal-screen {
    height: min(427.5px, calc((100vw - 24px) * 0.5625));
  }

  .auth-overlay .auth-terminal-screen .auth-card-content {
    padding: 36px 28px 12px;
  }

  .auth-overlay .auth-terminal-screen .auth-mode-tabs {
    margin-bottom: 10px;
  }

  .auth-overlay .auth-terminal-screen .auth-form {
    gap: 6px 10px;
  }

  .auth-overlay .auth-terminal-screen .auth-field input,
  .auth-overlay .auth-terminal-screen .auth-btn {
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-overlay .auth-tunnel-hint {
    display: none;
  }

  .auth-overlay .auth-terminal-screen,
  .auth-overlay .auth-feature-panel,
  .auth-overlay .auth-tunnel-intro,
  .auth-overlay .auth-card,
  .auth-overlay .auth-mode-tab,
  .auth-overlay .auth-field input,
  .auth-overlay .auth-pw-toggle,
  .auth-overlay .auth-btn,
  .auth-overlay .auth-error {
    animation: none;
    transition: none;
  }

  .auth-overlay.is-entering-moko .auth-terminal-screen {
    animation: auth-terminal-expand-to-viewport-reduced 220ms ease-out both;
  }

  .auth-overlay.is-entering-moko .auth-card,
  .auth-overlay.is-entering-moko .auth-terminal-meta,
  .auth-overlay.is-entering-moko .auth-tunnel-canvas {
    animation: none;
    opacity: 0;
  }

  .auth-overlay.is-entering-moko .auth-entry-flash {
    animation: auth-entry-whiteout-reduced 220ms ease-out both;
  }

  .auth-overlay.is-entering-moko .auth-entry-quote {
    animation: auth-entry-quote-reveal-reduced 220ms ease-out both;
  }

  .auth-overlay .auth-music-bars i {
    animation: none !important;
  }
}

@keyframes auth-terminal-expand-to-viewport-reduced {
  to {
    transform:
      translate3d(-50%, calc(-50% + var(--auth-entry-end-shift-y, 7vh)), 0)
      scale(var(--auth-entry-cover-scale, 3));
  }
}

@keyframes auth-entry-whiteout-reduced {
  0%, 65% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes auth-entry-quote-reveal-reduced {
  0%, 45% { opacity: 0; }
  100% { opacity: 1; }
}

/* First chapter: the object itself floats in space. The surrounding drawer
   reuses the authenticated M.O.K.O object-panel anatomy instead of inventing a
   second card language for the entrance. */
.auth-overlay .auth-feature-panel[data-feature-kind="object3d"] {
  overflow: visible;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  contain: layout style;
}

.auth-overlay .auth-feature-panel[data-feature-kind="object3d"].is-interactive {
  pointer-events: auto;
}

.auth-overlay .auth-feature-panel[data-feature-kind="object3d"]::after {
  display: none;
  content: none;
}

.auth-overlay .auth-feature-panel[data-feature-kind="object3d"] .auth-feature-live {
  overflow: visible;
  background: transparent;
  -webkit-mask-image: none;
  mask-image: none;
}

.auth-overlay .auth-object-blank-forward {
  position: absolute;
  z-index: 7;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: ns-resize;
  opacity: 0;
  pointer-events: auto;
}

/* The solar system needs the complete transparent panel as its rotation hit
   area; the generic edge-forward buttons otherwise cover the outer orbits. */
.auth-overlay .auth-feature-panel[data-feature-id="solar-system"] .auth-object-blank-forward {
  display: none;
  pointer-events: none;
}

.auth-overlay .auth-object-blank-forward.is-top,
.auth-overlay .auth-object-blank-forward.is-bottom {
  right: 0;
  left: 0;
  height: 12%;
}

.auth-overlay .auth-object-blank-forward.is-top { top: 0; }
.auth-overlay .auth-object-blank-forward.is-bottom { bottom: 0; }

.auth-overlay .auth-object-blank-forward.is-right,
.auth-overlay .auth-object-blank-forward.is-left {
  top: 12%;
  bottom: 12%;
  width: 12%;
}

.auth-overlay .auth-object-blank-forward.is-right { right: 0; }
.auth-overlay .auth-object-blank-forward.is-left { left: 0; }

.auth-overlay .auth-feature-object-label {
  position: absolute;
  top: clamp(6px, 1.6vh, 18px);
  left: 50%;
  z-index: 5;
  display: block;
  color: rgb(255 255 255 / 94%);
  font-family: var(--moko-font-mono);
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-shadow: 0 1px 12px rgb(0 0 0 / 92%);
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.auth-overlay .auth-feature-panel[data-feature-kind="object3d"].is-live-mounted .auth-feature-live {
  opacity: 1;
  visibility: visible;
  transition: opacity 180ms ease, visibility 0s linear 0s;
}

.auth-overlay .auth-feature-panel[data-feature-kind="object3d"] .auth-feature-variant {
  object-fit: cover;
  filter: brightness(0.82) contrast(1.08) saturate(1.12);
  -webkit-mask-image: none;
  mask-image: none;
}

.auth-overlay .auth-heart-object-panel.object-panel {
  position: absolute;
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  z-index: 8;
  display: flex;
  min-width: 0;
  max-width: none;
  flex-direction: column;
  overflow: clip;
  border: 0;
  border-radius: 0;
  border-top-left-radius: var(--moko-radius-card, 10px);
  background:
    linear-gradient(180deg, rgb(18 20 24 / 58%), rgb(5 6 8 / 46%));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 18px 54px rgb(0 0 0 / 18%);
  color: var(--moko-surface-text-primary);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  contain: layout paint style;
}

.auth-overlay .auth-heart-object-panel.object-panel.is-visible {
  opacity: var(--auth-heart-panel-strength, 1);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 300ms ease 50ms, visibility 0s linear 0s;
}

.auth-overlay .auth-heart-object-panel .op-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: transparent;
  pointer-events: none;
}

.auth-overlay .auth-heart-object-panel .op-header {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 42px;
  align-items: center;
  flex: none;
  gap: 8px;
  padding: 10px 16px;
}

.auth-overlay .auth-heart-object-panel .op-title {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  overflow: hidden;
  color: var(--moko-surface-text-muted);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}

.auth-overlay .auth-heart-object-panel .op-bc-seg {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-overlay .auth-heart-object-panel .op-bc-sep {
  color: rgb(255 255 255 / 24%);
}

.auth-overlay .auth-heart-object-panel .op-actions {
  flex: none;
}

.auth-overlay .auth-heart-panel-state {
  padding: 3px 6px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 4px;
  color: rgb(255 255 255 / 48%);
  font-family: var(--moko-font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.auth-overlay .auth-heart-object-panel .op-body {
  position: relative;
  z-index: 1;
  min-height: 0;
  flex: 1;
  padding: 0 16px;
  overflow: auto;
  overscroll-behavior: contain;
}

.auth-overlay .auth-heart-object-record > header {
  padding: 12px 0 16px;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
}

.auth-overlay .auth-heart-object-panel h2 {
  margin: 6px 0 0;
  color: var(--moko-surface-text-primary);
  font-family: var(--moko-font-heading);
  font-size: clamp(17px, 1.65vw, 22px);
  font-weight: 430;
  letter-spacing: 0.035em;
  line-height: 1.3;
}

.auth-overlay .auth-heart-object-section {
  padding: 15px 0;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
}

.auth-overlay .auth-heart-object-section h3 {
  margin: 0 0 8px;
  color: rgb(255 255 255 / 42%);
  font-family: var(--moko-font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.auth-overlay .auth-heart-object-relations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auth-overlay .auth-heart-object-relations span {
  padding: 4px 7px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 4px;
  color: rgb(255 255 255 / 64%);
  font-size: 8px;
}

.auth-overlay .auth-heart-object-panel .op-footer {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 48px;
  align-content: center;
  flex: none;
  padding: 10px 16px 14px;
  border-top: 1px solid rgb(255 255 255 / 9%);
  background: linear-gradient(180deg, transparent, rgb(255 255 255 / 2%));
  gap: 2px;
}

@media (max-width: 759px) {
  .auth-overlay .auth-heart-object-panel .op-header,
  .auth-overlay .auth-heart-object-panel .op-body,
  .auth-overlay .auth-heart-object-panel .op-footer {
    padding-right: 12px;
    padding-left: 12px;
  }

  .auth-overlay .auth-heart-object-panel .auth-heart-object-summary {
    -webkit-line-clamp: 4;
  }
}
