.spatial-secret-console__trigger,
.spatial-secret-console {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
}

.spatial-secret-console__trigger[hidden],
.spatial-secret-console[hidden],
.spatial-secret-console__notice[hidden] {
  display: none !important;
}

.spatial-secret-console__trigger {
  position: fixed;
  z-index: 4100;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  left: calc(var(--spatial-shell-left, 1rem) + 0.7rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  width: calc(var(--spatial-sidebar-width, 15rem) - 1.4rem);
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #f00;
  border-radius: 0;
  background: #070707ed;
  box-shadow: 0.25rem 0.25rem 0 #f00;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 0.55rem) 0, 100% 0.55rem, 100% 100%, 0 100%);
}

.spatial-secret-console__trigger > span {
  color: #f00;
  font-size: 0.78rem;
}

.spatial-secret-console__trigger kbd {
  padding: 0.22rem 0.3rem;
  border: 1px solid #555;
  background: #111;
  color: #aaa;
  font: inherit;
  font-size: 0.48rem;
}

.spatial-secret-console__trigger:hover,
.spatial-secret-console__trigger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background: #f00;
}

.spatial-secret-console__trigger:hover > span,
.spatial-secret-console__trigger:focus-visible > span {
  color: #fff;
}

.spatial-secret-console {
  position: fixed;
  z-index: 4200;
  bottom: calc(0.9rem + var(--spatial-console-keyboard, 0px));
  left: calc(var(--spatial-shell-left, 1rem) + var(--spatial-sidebar-width, 15rem) + 0.85rem);
  display: grid;
  grid-template-rows: auto auto minmax(7rem, 1fr) auto auto;
  width: min(31rem, calc(100vw - var(--spatial-sidebar-width, 15rem) - 3rem));
  height: min(23rem, calc(var(--spatial-console-vh, 100dvh) - 2rem));
  max-height: calc(var(--spatial-console-vh, 100dvh) - 1rem);
  overflow: hidden;
  border: 1px solid #465249;
  background: #070b08f5;
  box-shadow:
    0.45rem 0.45rem 0 #f00,
    0 1.5rem 5rem #0009;
  color: #d8e4dc;
  clip-path: polygon(0 0, calc(100% - 0.8rem) 0, 100% 0.8rem, 100% 100%, 0 100%);
  backdrop-filter: blur(18px);
}

.spatial-secret-console[data-embedded='true'] {
  position: absolute;
  z-index: 50;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 1px solid #465249;
  background: #050806fa;
  box-shadow:
    0.5rem 0.5rem 0 #f00,
    0 1.3rem 4rem #000c;
  clip-path: polygon(0 0, calc(100% - 0.8rem) 0, 100% 0.8rem, 100% 100%, 0 100%);
  transform: none;
  backdrop-filter: none;
}

.spatial-secret-console[data-embedded='true']::before {
  position: absolute;
  z-index: 8;
  inset: 0;
  border: 1px solid #70ff9d24;
  box-shadow: inset 0 0 2.5rem #70ff9d0b;
  content: '';
  pointer-events: none;
}

.spatial-secret-console > header,
.spatial-secret-console__status,
.spatial-secret-console > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-inline: 0.75rem;
  border-color: #28352c;
  color: #9aac9f;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spatial-secret-console > header {
  min-height: 2.75rem;
  border-bottom: 1px solid #28352c;
  background: #101713;
}

.spatial-secret-console > header > span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.spatial-secret-console > header i {
  display: block;
  width: 0.45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #70ff9d;
  box-shadow: 0 0 0.65rem #70ff9d77;
}

.spatial-secret-console > header button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  color: #c9d6cc;
  font-size: 1.25rem;
  cursor: pointer;
}

.spatial-secret-console > header button:hover,
.spatial-secret-console > header button:focus-visible,
.spatial-secret-console form button:hover,
.spatial-secret-console form button:focus-visible {
  outline: 1px solid #70ff9d;
  outline-offset: -1px;
  background: #16301f;
}

.spatial-secret-console__status {
  min-height: 2rem;
  border-bottom: 1px solid #28352c;
  color: #70ff9d;
  font-size: 0.5rem;
}

.spatial-secret-console__output {
  min-height: 0;
  padding: 0.8rem;
  overflow: auto;
  overscroll-behavior: contain;
  background: radial-gradient(circle at 88% 8%, #15332155, transparent 55%);
  scrollbar-color: #405247 #070b08;
}

.spatial-secret-console__line {
  margin: 0 0 0.65rem;
  color: #c7d5cb;
  font:
    400 0.72rem/1.55 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace !important;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.spatial-secret-console__line.is-command,
.spatial-secret-console__line.is-system,
.spatial-secret-console__line.is-ok {
  color: #70ff9d;
}

.spatial-secret-console__line.is-muted {
  color: #8b9a90;
}

.spatial-secret-console__line.is-error {
  color: #ff8383;
}

.spatial-secret-console form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-top: 1px solid #35443a;
  background: #101713;
}

.spatial-secret-console form:focus-within {
  box-shadow: inset 0 -2px #70ff9d;
}

.spatial-secret-console form label {
  color: #70ff9d;
  font-size: 1rem;
}

.spatial-secret-console form input {
  width: 100%;
  min-width: 0;
  height: 2.75rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  caret-color: #70ff9d;
  font:
    400 1rem/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace !important;
}

.spatial-secret-console form input::placeholder {
  color: #849288;
}

.spatial-secret-console form button {
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #3a4c40;
  background: #121e16;
  color: #fff;
  font:
    700 0.58rem/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace !important;
  text-transform: uppercase;
  cursor: pointer;
}

.spatial-secret-console > footer {
  min-height: 2rem;
  border-top: 1px solid #28352c;
  font-size: 0.48rem;
}

.spatial-secret-console__notice {
  position: fixed;
  z-index: 4300;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: min(24rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid #f00;
  background: #050505ed;
  box-shadow: 0.3rem 0.3rem 0 #f00;
  color: #fff;
  font:
    700 0.62rem/1.4 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

html[data-spatial-secret-zone='underfloor'] .spatial-secret-console__notice {
  display: none !important;
}

@media (max-width: 900px) {
  .spatial-secret-console__trigger {
    left: 0.5rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    min-width: 2.75rem;
    padding: 0;
  }

  .spatial-secret-console__trigger b,
  .spatial-secret-console__trigger kbd {
    display: none;
  }

  .spatial-secret-console {
    right: 0.5rem;
    bottom: calc(0.5rem + var(--spatial-console-keyboard, 0px));
    left: 0.5rem;
    width: auto;
    height: min(22rem, calc(var(--spatial-console-vh, 100dvh) - 1rem));
  }

  .spatial-secret-console__notice {
    right: 0.65rem;
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    left: 4rem;
  }

  .spatial-secret-console[data-embedded='true'] {
    grid-template-rows: auto auto minmax(3rem, 1fr) auto;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    transform: none;
  }

  .spatial-secret-console[data-embedded='true'] > footer {
    display: none;
  }
}

@media (max-width: 360px) {
  .spatial-secret-console[data-embedded='true'] {
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
  }
}

@media (max-height: 520px) {
  .spatial-secret-console {
    grid-template-rows: auto minmax(5rem, 1fr) auto;
  }

  .spatial-secret-console__status,
  .spatial-secret-console > footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spatial-secret-console__trigger,
  .spatial-secret-console,
  .spatial-secret-console__notice {
    scroll-behavior: auto;
  }
}

/* The contextual display and the interactive CLI are two modes of the same
   physical DOJE SHELL screen, so their shared visual system lives together. */
.spatial-shell__display {
  position: absolute;
  z-index: 2188;
  top: clamp(5rem, 9vh, 6.4rem);
  left: 50%;
  width: min(38rem, calc(100vw - 20rem));
  height: clamp(13.5rem, 30vh, 16rem);
  transform: translateX(-50%);
  pointer-events: none;
  isolation: isolate;
}

.spatial-shell__display-bracket {
  position: absolute;
  z-index: 0;
  inset: -0.55rem;
  border-top: 1px solid #ff00006e;
  border-bottom: 1px solid #ff000035;
  color: #f00;
  font:
    700 0.4rem/1 'Space Mono',
    monospace;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.spatial-shell__display-bracket::before,
.spatial-shell__display-bracket::after,
.spatial-shell__display-bracket > i {
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  border-color: #f00;
  content: '';
}

.spatial-shell__display-bracket::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.spatial-shell__display-bracket::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.spatial-shell__display-bracket > i:first-child {
  top: -1px;
  right: -1px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.spatial-shell__display-bracket > i:nth-child(2) {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.spatial-shell__display-bracket > span {
  position: absolute;
  right: 1.5rem;
  bottom: -0.22rem;
  padding-inline: 0.35rem;
  background: #050505;
}

.spatial-shell__display[data-shell-display-mode='terminal'] .spatial-shell__display-bracket {
  border-color: #70ff9d5e;
  color: #70ff9d;
}

.spatial-shell__terminal-layer {
  position: absolute;
  z-index: 45;
  inset: 0;
  pointer-events: none;
}

.spatial-shell__terminal-layer:has([data-spatial-console]:not([hidden])) {
  pointer-events: auto;
}

.spatial-shell__screen {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #f00;
  background: linear-gradient(135deg, #ff00000b, transparent 42%), #050706f7;
  box-shadow:
    0.55rem 0.55rem 0 #380000,
    0 0 0 1px #ffffff18 inset,
    0 1.8rem 5rem #000c;
  color: #e8f0eb;
  clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 0 100%);
  transform: none;
  transition: opacity 120ms ease;
  pointer-events: auto;
  isolation: isolate;
}

.spatial-shell__screen::before,
.spatial-shell__screen::after {
  position: absolute;
  z-index: 5;
  content: '';
  pointer-events: none;
}

.spatial-shell__screen::before {
  inset: 0;
  border: 1px solid #70ff9d20;
  box-shadow: inset 0 0 3rem #70ff9d0b;
}

.spatial-shell__screen::after {
  top: 0;
  right: 0;
  width: 1rem;
  height: 1rem;
  background: #f00;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.spatial-shell__screen-scan {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 3px, #ffffff08 3px 4px);
  opacity: 0.55;
  pointer-events: none;
}

.spatial-shell__screen-status {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  min-height: 2rem;
  padding: 0 0.75rem;
  border-bottom: 1px solid #334039;
  background: #111713;
  color: #9aaba0;
  font:
    700 0.48rem/1 'Space Mono',
    monospace;
  letter-spacing: 0.06em;
}

.spatial-shell__screen-status span:first-child {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.spatial-shell__screen-status i {
  width: 0.38rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #70ff9d;
  box-shadow: 0 0 0.6rem #70ff9d;
}

.spatial-shell__screen-status b {
  color: #70ff9d;
}

.spatial-shell__screen-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 5.2rem minmax(10rem, 1fr) minmax(10rem, 0.82fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    'ident copy metrics'
    'ident feed feed';
  gap: 0.65rem 0.85rem;
  min-height: 0;
  padding: 0.78rem;
  animation: none;
}

.spatial-shell__display.is-syncing .spatial-shell__screen-body {
  animation: shell-screen-materialize 280ms steps(4, end) both;
}

.spatial-shell__display.is-syncing .spatial-shell__screen::before {
  animation: shell-screen-flash 320ms steps(3, end) both;
}

.spatial-shell__screen-ident {
  grid-area: ident;
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
  min-width: 0;
  padding: 0.48rem;
  border: 1px solid #f00;
  background: #190303;
  box-shadow: inset 0 0 1.5rem #ff00001f;
  color: #f00;
}

.spatial-shell__screen-ident small,
.spatial-shell__screen-ident span {
  font:
    700 0.44rem/1 'Space Mono',
    monospace;
  letter-spacing: 0.04em;
}

.spatial-shell__screen-ident strong {
  font:
    700 clamp(1.3rem, 2.3vw, 2rem) / 1 'Space Mono',
    monospace;
}

.spatial-shell__screen-copy {
  grid-area: copy;
  min-width: 0;
}

.spatial-shell__screen-copy small,
.spatial-shell__screen-actions small {
  color: #f00;
  font:
    700 0.47rem/1 'Space Mono',
    monospace;
  letter-spacing: 0.08em;
}

.spatial-shell__screen-copy h3 {
  margin: 0.25rem 0 0.38rem;
  color: #fff;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: none;
}

.spatial-shell__screen-copy p {
  max-width: 32rem;
  margin: 0;
  color: #9eaaa2;
  font-size: 0.64rem;
  line-height: 1.45;
}

.spatial-shell__screen-metrics {
  grid-area: metrics;
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  margin: 0;
}

.spatial-shell__screen-metrics > div {
  display: grid;
  grid-template-columns: minmax(4rem, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.32rem 0.45rem;
  border-left: 2px solid #f00;
  background: #ffffff08;
}

.spatial-shell__screen-metrics dt,
.spatial-shell__screen-metrics dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font:
    700 0.46rem/1.15 'Space Mono',
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spatial-shell__screen-metrics dt {
  color: #7f8b83;
}

.spatial-shell__screen-metrics dd {
  color: #dce9e0;
}

.spatial-shell__screen-feed {
  grid-area: feed;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spatial-shell__screen-feed li {
  min-width: 0;
  overflow: hidden;
  color: #88958c;
  font:
    600 0.43rem/1.3 'Space Mono',
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spatial-shell__screen-feed span {
  margin-right: 0.3rem;
  color: #70ff9d;
}

.spatial-shell__screen-actions {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: stretch;
  min-height: 3.45rem;
  border-top: 1px solid #334039;
  background: #0e1511;
}

.spatial-shell__screen-actions > div {
  display: grid;
  align-content: center;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.5rem 0.75rem;
}

.spatial-shell__screen-actions code {
  overflow: hidden;
  color: #70ff9d;
  font:
    700 0.68rem/1 'Space Mono',
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spatial-shell__screen-actions nav {
  display: flex;
  align-items: stretch;
  border-left: 1px solid #334039;
}

.spatial-shell__screen-actions a {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: #bbc9bf;
  font:
    700 0.52rem/1 'Space Mono',
    monospace;
  text-decoration: none;
}

.spatial-shell__screen-actions a:hover,
.spatial-shell__screen-actions a:focus-visible {
  outline: 1px solid #70ff9d;
  outline-offset: -1px;
  background: #14311e;
  color: #70ff9d;
}

.spatial-shell__screen-actions button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  place-items: center;
  gap: 0.55rem;
  min-width: 12rem;
  min-height: 3.45rem;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-left: 1px solid #f00;
  background: #230505;
  color: #fff;
  cursor: pointer;
}

.spatial-shell__screen-actions button > span {
  color: #f00;
  font:
    700 0.8rem/1 'Space Mono',
    monospace;
}

.spatial-shell__screen-actions button b,
.spatial-shell__screen-actions button small {
  font:
    700 0.5rem/1 'Space Mono',
    monospace;
  letter-spacing: 0.05em;
}

.spatial-shell__screen-actions button small {
  color: #999;
}

.spatial-shell__screen-actions button:hover,
.spatial-shell__screen-actions button:focus-visible {
  outline: 1px solid #fff;
  outline-offset: -1px;
  background: #f00;
}

.spatial-shell__screen-actions button:hover > span,
.spatial-shell__screen-actions button:focus-visible > span,
.spatial-shell__screen-actions button:hover small,
.spatial-shell__screen-actions button:focus-visible small {
  color: #fff;
}

@keyframes shell-screen-materialize {
  0% {
    opacity: 0;
    transform: translateX(-0.55rem);
    filter: brightness(2);
  }

  55% {
    opacity: 0.72;
  }

  100% {
    opacity: 1;
    transform: translateX(0);
    filter: brightness(1);
  }
}

@keyframes shell-screen-flash {
  0%,
  45% {
    background: #70ff9d15;
    opacity: 1;
  }

  46%,
  100% {
    background: transparent;
    opacity: 0.5;
  }
}

/* The north wall only powers on while a DOJE Shell session is open. */
.spatial-shell__wall-boot,
.spatial-shell__wall-terminal {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}

.spatial-shell__wall-boot {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background:
    radial-gradient(circle, #70ff9d17, transparent 34%),
    repeating-linear-gradient(90deg, transparent 0 119px, #70ff9d0d 119px 120px);
  text-align: center;
}

.spatial-shell[data-shell-session-state='booting'] .spatial-shell__wall-boot,
.spatial-shell[data-shell-session-state='live'] .spatial-shell__wall-terminal {
  visibility: visible;
  opacity: 1;
}

.spatial-shell[data-shell-session-state='booting'] .spatial-shell__wall-signal {
  animation: shell-wall-power-on 480ms steps(6, end) both;
}

.spatial-shell[data-shell-session-state='live'] .spatial-shell__wall-terminal {
  animation: shell-wall-live-in 260ms steps(5, end) both;
}

.spatial-shell__wall-boot > img {
  display: block;
  width: 122px;
  height: 122px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(86%) sepia(28%) saturate(1127%) hue-rotate(82deg)
    brightness(104%) contrast(101%) drop-shadow(0 0 16px #70ff9d80);
  animation: shell-boot-logo 760ms steps(3, end) infinite;
}

.spatial-shell__wall-boot > :is(small, strong, output) {
  color: #70ff9d;
  font-family: 'Space Mono', ui-monospace, monospace;
  letter-spacing: 0.12em;
}

.spatial-shell__wall-boot > small {
  color: #649c75;
  font-size: 11px;
}

.spatial-shell__wall-boot > strong {
  font-size: 23px;
}

.spatial-shell__wall-boot > output {
  font-size: 11px;
  opacity: 0.64;
}

.spatial-shell__wall-boot > i {
  display: block;
  width: 260px;
  height: 4px;
  overflow: hidden;
  border: 1px solid #70ff9d59;
  background: #70ff9d0a;
}

.spatial-shell__wall-boot > i > span {
  display: block;
  width: 100%;
  height: 100%;
  background: #70ff9d;
  box-shadow: 0 0 14px #70ff9d;
  transform: scaleX(0);
  transform-origin: left;
  animation: shell-boot-progress 2s steps(16, end) both;
}

.spatial-shell__wall-boot-corners {
  position: absolute;
  inset: 18px;
  border: 1px solid #70ff9d29;
}

@keyframes shell-wall-power-on {
  0% {
    clip-path: inset(49% 0);
    filter: brightness(4);
  }

  60% {
    clip-path: inset(4% 0);
  }

  100% {
    clip-path: inset(0);
    filter: brightness(1);
  }
}

@keyframes shell-wall-live-in {
  from {
    opacity: 0;
    filter: brightness(2.4);
    translate: 0 5px;
  }
}

@keyframes shell-boot-logo {
  50% {
    opacity: 0.66;
    scale: 0.98;
  }
}

@keyframes shell-boot-progress {
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 900px) {
  .spatial-shell[data-shell-session-state='booting'] .spatial-shell__terminal-panel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

/* Enhanced interactive console. These selectors deliberately sit after the
   original rules so the legacy console remains available as a safe fallback. */
@media (min-width: 901px) {
  .spatial-shell[data-shell-world] .spatial-shell__terminal-panel {
    width: min(30rem, 34vw);
  }
}

.spatial-secret-console {
  container-type: inline-size;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
}

.spatial-secret-console__quick-actions {
  display: flex;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.48rem 0.65rem;
  overflow-x: auto;
  border-bottom: 1px solid #28352c;
  background: linear-gradient(90deg, #70ff9d0d, transparent 76%), #090f0b;
  scrollbar-width: thin;
  scrollbar-color: #405247 #070b08;
}

.spatial-secret-console [data-spatial-console-quick] {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.68rem;
  border: 1px solid #30453a;
  background: #0d1811;
  color: #9fbea9;
  font:
    700 0.51rem/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace !important;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.spatial-secret-console [data-spatial-console-quick] > b {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  padding-inline: 0.25rem;
  border: 1px solid #70ff9d42;
  background: #70ff9d0d;
  color: #dffff0;
  font-size: 0.48rem;
}

.spatial-secret-console [data-spatial-console-catalog-toggle][aria-expanded='true'] {
  border-color: #70ff9d;
  background: #173522;
  color: #effff3;
}

.spatial-secret-console [data-spatial-console-quick]:hover,
.spatial-secret-console [data-spatial-console-quick]:focus-visible {
  outline: 1px solid #70ff9d;
  outline-offset: -1px;
  background: #16301f;
  color: #effff3;
}

.spatial-secret-console [data-spatial-console-count] {
  color: #dffff0;
  font-size: 0.54rem;
  letter-spacing: 0.06em;
}

.spatial-secret-console__output-viewport,
.spatial-secret-console [data-spatial-console-output-viewport] {
  position: relative;
  container-type: inline-size;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at 88% 8%, #15332155, transparent 55%);
}

.spatial-secret-console__output-viewport > .spatial-secret-console__output,
.spatial-secret-console [data-spatial-console-output-viewport] > .spatial-secret-console__output {
  height: 100%;
  background: transparent;
}

.spatial-secret-console__output {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  user-select: text;
}

.spatial-secret-console__line {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  margin: 0 0 0.34rem;
  padding: 0.38rem 0.48rem;
  border-left: 2px solid #405247;
  background: #d9ffe006;
  font-size: 0.75rem;
  line-height: 1.48;
}

.spatial-secret-console__line::before {
  padding-top: 0.08rem;
  color: #718379;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  content: 'OUT';
}

.spatial-secret-console__line.is-command {
  border-left-color: #d9ffe0;
  background: #d9ffe00c;
  color: #effff3;
}

.spatial-secret-console__line.is-command::before {
  color: #d9ffe0;
  content: 'CMD';
}

.spatial-secret-console__line.is-system::before {
  color: #70ff9d;
  content: 'SYS';
}

.spatial-secret-console__line.is-ok::before {
  color: #70ff9d;
  content: 'OK';
}

.spatial-secret-console__line.is-muted::before {
  content: 'INF';
}

.spatial-secret-console__line.is-error {
  border-left-color: #ff6767;
  background: #ff34340c;
}

.spatial-secret-console__line.is-error::before {
  color: #ff8383;
  content: 'ERR';
}

.spatial-secret-console [data-spatial-console-jump] {
  position: absolute;
  z-index: 4;
  right: 0.8rem;
  bottom: 0.65rem;
  min-height: 2rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #70ff9d;
  background: #0a1b0fff;
  box-shadow: 0 0 1.2rem #70ff9d30;
  color: #dffff0;
  font:
    700 0.5rem/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.spatial-secret-console [data-spatial-console-jump][hidden] {
  display: none !important;
}

.spatial-secret-console :is(button, input):disabled {
  opacity: 0.38;
  cursor: not-allowed;
  filter: saturate(0.25);
}

.spatial-secret-console[aria-busy='true'] form {
  box-shadow: inset 0 2px #70ff9d1f;
}

.spatial-secret-console[aria-busy='true'] form input::placeholder {
  color: #70ff9d80;
}

/* Full command deck: generated from the live command registry so every
   category, command, usage string and alias remains in sync with the CLI. */
.spatial-secret-console__catalog[hidden],
.spatial-secret-console__suggestions[hidden],
.spatial-secret-console__catalog-empty[hidden] {
  display: none !important;
}

.spatial-secret-console__catalog {
  position: absolute;
  z-index: 6;
  inset: 2.75rem 0 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid #70ff9d38;
  background: linear-gradient(135deg, #70ff9d0c, transparent 42%), #050a07fc;
  color: #d8e4dc;
}

.spatial-secret-console__catalog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
  min-height: 4.4rem;
  padding: 0.72rem 0.75rem 0.65rem;
  border-bottom: 1px solid #28352c;
  background: #0d1510;
}

.spatial-secret-console__catalog-header > div {
  min-width: 0;
}

.spatial-secret-console__catalog-header p {
  margin: 0 0 0.3rem;
  color: #e7ffee;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spatial-secret-console__catalog-header span {
  display: block;
  max-width: 42rem;
  color: #91a899;
  font-size: 0.63rem;
  line-height: 1.45;
}

.spatial-secret-console__catalog-header button {
  display: grid;
  place-items: center;
  width: auto;
  min-width: 5.5rem;
  height: 2.75rem;
  padding-inline: 0.6rem;
  border: 1px solid #384b3f;
  background: #111c15;
  color: #d8e4dc;
  font:
    800 0.5rem/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace !important;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  cursor: pointer;
}

.spatial-secret-console__catalog-header button:is(:hover, :focus-visible) {
  outline: 1px solid #70ff9d;
  outline-offset: -1px;
  background: #173522;
  color: #fff;
}

.spatial-secret-console__catalog-tools {
  display: grid;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #28352c;
  background: #08100bcc;
}

.spatial-secret-console__catalog-tools > label {
  color: #8ca095;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spatial-secret-console__catalog-tools > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 2.75rem;
  border: 1px solid #3b5042;
  background: #0c1510;
}

.spatial-secret-console__catalog-tools > div:focus-within {
  border-color: #70ff9d;
  box-shadow: inset 0 -2px #70ff9d;
}

.spatial-secret-console__catalog-tools > div > span {
  padding-inline: 0.65rem 0.2rem;
  color: #70ff9d;
  font-size: 1rem;
}

.spatial-secret-console__catalog-tools input {
  width: 100%;
  min-width: 0;
  height: 2.75rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font:
    500 0.78rem/1.2 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace !important;
}

.spatial-secret-console__catalog-tools input::placeholder {
  color: #718379;
}

.spatial-secret-console__catalog-tools button {
  min-height: 2.75rem;
  padding-inline: 0.7rem;
  border: 0;
  border-left: 1px solid #35443a;
  background: transparent;
  color: #9fbea9;
  font:
    800 0.5rem/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.spatial-secret-console__catalog-tools button:is(:hover, :focus-visible) {
  outline: 1px solid #70ff9d;
  outline-offset: -1px;
  background: #173522;
  color: #fff;
}

.spatial-secret-console__catalog-filters {
  display: flex;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  overflow-x: auto;
  border-bottom: 1px solid #28352c;
  background: #090f0b;
  scrollbar-width: thin;
  scrollbar-color: #405247 #070b08;
}

.spatial-secret-console__catalog-filters button {
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0.48rem 0.68rem;
  border: 1px solid #30453a;
  background: #0d1811;
  color: #9fbea9;
  font:
    800 0.52rem/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace !important;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.spatial-secret-console__catalog-filters button:is(:hover, :focus-visible),
.spatial-secret-console__catalog-filters button[aria-pressed='true'] {
  outline: 1px solid #70ff9d;
  outline-offset: -1px;
  border-color: #70ff9d;
  background: #173522;
  color: #effff3;
}

.spatial-secret-console__catalog-scroll {
  min-height: 0;
  padding: 0 0.65rem 1rem;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-color: #405247 #070b08;
}

.spatial-secret-console__catalog-count {
  position: sticky;
  z-index: 3;
  top: 0;
  margin: 0 -0.65rem 0.55rem;
  padding: 0.48rem 0.75rem;
  border-bottom: 1px solid #28352c;
  background: #070c09f2;
  color: #75a683;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.spatial-secret-console__catalog-group {
  --category-accent: #70ff9d;
  margin: 0 0 1rem;
  scroll-margin-top: 2.4rem;
}

.spatial-secret-console__catalog-group[data-category='navigation'] {
  --category-accent: #68d8ff;
}

.spatial-secret-console__catalog-group[data-category='diego'] {
  --category-accent: #ffd166;
}

.spatial-secret-console__catalog-group[data-category='portfolio'] {
  --category-accent: #ff956f;
}

.spatial-secret-console__catalog-group[data-category='software'] {
  --category-accent: #8fc9ff;
}

.spatial-secret-console__catalog-group[data-category='cyber'] {
  --category-accent: #ff7184;
}

.spatial-secret-console__catalog-group[data-category='systems'] {
  --category-accent: #c5fa73;
}

.spatial-secret-console__catalog-group[data-category='network'] {
  --category-accent: #5fe5d1;
}

.spatial-secret-console__catalog-group[data-category='web'] {
  --category-accent: #839fff;
}

.spatial-secret-console__catalog-group[data-category='games'] {
  --category-accent: #cc88ff;
}

.spatial-secret-console__catalog-group[data-category='secrets'] {
  --category-accent: #ff5555;
}

.spatial-secret-console__catalog-group > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.7rem;
  align-items: center;
  margin-bottom: 0.38rem;
  padding: 0.5rem 0.1rem 0.42rem;
  border-bottom: 1px solid color-mix(in srgb, var(--category-accent) 38%, transparent);
}

.spatial-secret-console__catalog-group h3 {
  margin: 0;
  color: var(--category-accent);
  font-size: 0.68rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.spatial-secret-console__catalog-group > header > span {
  color: var(--category-accent);
  font-size: 0.62rem;
  font-weight: 900;
}

.spatial-secret-console__catalog-group > header > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #7f9185;
  font-size: 0.56rem;
  line-height: 1.35;
}

.spatial-secret-console__catalog-list {
  display: grid;
  gap: 0.42rem;
}

.spatial-secret-console__command-card {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-width: 0;
  min-height: 6.7rem;
  padding: 0.62rem;
  border: 1px solid #304039;
  border-left: 3px solid var(--category-accent);
  background: linear-gradient(
    105deg,
    color-mix(in srgb, var(--category-accent) 8%, transparent),
    #0b120e 54%
  );
  color: #d8e4dc;
  text-align: left;
  cursor: pointer;
}

.spatial-secret-console__command-card:is(:hover, :focus-visible) {
  outline: 1px solid var(--category-accent);
  outline-offset: -1px;
  border-color: var(--category-accent);
  background: linear-gradient(
    105deg,
    color-mix(in srgb, var(--category-accent) 15%, transparent),
    #101b14 62%
  );
  box-shadow: inset 0 0 1.2rem color-mix(in srgb, var(--category-accent) 8%, transparent);
}

.spatial-secret-console__command-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.spatial-secret-console__command-heading > code {
  min-width: 0;
  overflow: hidden;
  color: #f1fff5;
  font-size: 0.75rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spatial-secret-console__command-heading > span {
  flex: 0 0 auto;
  padding: 0.22rem 0.32rem;
  border: 1px solid color-mix(in srgb, var(--category-accent) 48%, transparent);
  color: var(--category-accent);
  font-size: 0.43rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spatial-secret-console__command-summary {
  color: #aab9af;
  font-size: 0.62rem;
  line-height: 1.42;
}

.spatial-secret-console__command-usage {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
  color: #789083;
  font-size: 0.5rem;
}

.spatial-secret-console__command-usage b {
  color: var(--category-accent);
  font-size: 0.44rem;
  letter-spacing: 0.06em;
}

.spatial-secret-console__command-usage code {
  overflow: hidden;
  color: #bfcec4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spatial-secret-console__command-aliases {
  overflow: hidden;
  color: #718379;
  font-size: 0.49rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spatial-secret-console__command-action {
  justify-self: end;
  margin-top: auto;
  color: var(--category-accent);
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spatial-secret-console__catalog-empty {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px dashed #526158;
  color: #a5b3aa;
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}

.spatial-secret-console form {
  position: relative;
}

.spatial-secret-console__suggestions {
  position: absolute;
  z-index: 12;
  right: 0.55rem;
  bottom: calc(100% + 1px);
  left: 0.55rem;
  display: grid;
  max-height: min(19rem, 52vh);
  padding: 0.32rem;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #4b6252;
  background: #050a07fc;
  box-shadow: 0 -1rem 2.5rem #000b;
  scrollbar-color: #405247 #070b08;
}

.spatial-secret-console .spatial-secret-console__suggestions > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem;
  min-height: 3.3rem;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-bottom: 1px solid #26362d;
  background: transparent;
  color: #bac9bf;
  font: inherit !important;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

.spatial-secret-console .spatial-secret-console__suggestions > button:last-child {
  border-bottom: 0;
}

.spatial-secret-console .spatial-secret-console__suggestions > button:is(:hover, :focus-visible),
.spatial-secret-console .spatial-secret-console__suggestions > button[aria-selected='true'] {
  outline: 1px solid #70ff9d;
  outline-offset: -1px;
  background: #173522;
  color: #effff3;
}

.spatial-secret-console__suggestions > button > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.spatial-secret-console__suggestions code {
  color: #e7ffee;
  font-size: 0.7rem;
  font-weight: 800;
}

.spatial-secret-console__suggestions span:not(:first-child) {
  color: #92a398;
  font-size: 0.56rem;
  line-height: 1.35;
}

.spatial-secret-console__suggestions small {
  color: #70ff9d;
  font-size: 0.48rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

@container (min-width: 27rem) {
  .spatial-secret-console__catalog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The dock is intentionally absent during secure boot: the north wall owns
   that short transition and the interactive controls appear only when live. */
.spatial-shell[data-shell-session-state='booting'] .spatial-shell__terminal-panel {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Readable live transcript on the physical north-wall display. The extra
   world selector outranks the component defaults without touching its SCSS. */
.spatial-shell[data-shell-world] .spatial-shell__wall-terminal {
  grid-template-rows: 42px minmax(0, 1fr) 25px 27px;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-terminal > header {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(13rem, 1fr) minmax(0, 0.7fr);
  gap: 12px;
  padding: 0 18px;
  font-size: 13px;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-terminal > header > :last-child {
  justify-self: end;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-title {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  color: #d7ffe2;
  text-align: center;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-title > b {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-title > small {
  color: #5e9670;
  font-size: 9px;
  letter-spacing: 0.09em;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-buffer b,
.spatial-shell[data-shell-world] [data-shell-wall-activity] {
  color: #bfffd0;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-live {
  display: grid;
  grid-template-rows: 18px minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 7px;
  min-height: 0;
  padding: 9px 18px 8px;
  overflow: hidden;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-transcript-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #70ff9d22;
  color: #568865;
  font:
    700 10px/1 'Space Mono',
    ui-monospace,
    monospace;
  letter-spacing: 0.08em;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-transcript-head :is(small, span) {
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-transcript {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 2px;
  min-height: 0;
  overflow: hidden;
  font-family: 'Space Mono', ui-monospace, monospace;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-transcript > span {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  min-height: 15px;
  padding: 1px 6px;
  border-left: 2px solid #70ff9d3b;
  background: linear-gradient(90deg, #70ff9d08, transparent 68%);
  color: #b9eac6;
  font-size: 12px;
  line-height: 1.08;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-transcript > span > i {
  color: #67b77d;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-transcript > span > b {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-transcript > .is-command {
  border-left-color: #e1ffe9;
  color: #effff3;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-transcript > .is-ok {
  border-left-color: #70ff9d;
  color: #dffff0;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-transcript > .is-error {
  border-left-color: #ff6767;
  background: linear-gradient(90deg, #ff34340e, transparent 68%);
  color: #ffadad;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-transcript > .is-error > i {
  color: #ff8383;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-transcript > .is-muted {
  color: #71927a;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 38px;
  padding: 5px 8px;
  border: 1px solid #70ff9d2e;
  border-left: 3px solid #70ff9d;
  background: linear-gradient(90deg, #70ff9d16, #70ff9d05 74%, transparent);
  box-shadow: inset 0 0 1.2rem #70ff9d0a;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-prompt small {
  color: #609f72;
  font-size: 9px;
  white-space: nowrap;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-prompt code {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
  box-shadow: none;
  color: #e4ffeb;
  font-size: 18px;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-shadow: 0 0 0.75rem #70ff9d78;
  white-space: nowrap;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-prompt > span {
  color: #568865;
  font:
    700 9px/1 'Space Mono',
    ui-monospace,
    monospace;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-terminal > output {
  padding: 6px 18px;
  font-size: 12px;
  line-height: 1.1;
}

.spatial-shell[data-shell-world] .spatial-shell__wall-terminal > footer {
  padding: 0 18px;
  font-size: 11px;
}

@media (max-width: 560px) {
  .spatial-secret-console__quick-actions {
    padding-inline: 0.5rem;
  }

  .spatial-secret-console [data-spatial-console-quick] {
    min-height: 2.75rem;
    padding-inline: 0.62rem;
    font-size: 0.52rem;
  }

  .spatial-secret-console__catalog-header {
    min-height: 4rem;
    padding-inline: 0.6rem;
  }

  .spatial-secret-console__catalog-header span {
    font-size: 0.58rem;
  }

  .spatial-secret-console__catalog-tools {
    padding: 0.55rem 0.6rem;
  }

  .spatial-secret-console__catalog-filters {
    padding-inline: 0.6rem;
  }

  .spatial-secret-console__catalog-scroll {
    padding-inline: 0.5rem;
  }

  .spatial-secret-console__catalog-count {
    margin-inline: -0.5rem;
  }

  .spatial-secret-console__command-card {
    min-height: 6.2rem;
  }

  .spatial-secret-console__suggestions {
    right: 0.4rem;
    left: 0.4rem;
    max-height: min(16rem, 48vh);
  }

  .spatial-secret-console__line {
    grid-template-columns: 1.9rem minmax(0, 1fr);
    gap: 0.38rem;
    padding-inline: 0.38rem;
  }
}

@media (max-height: 520px) {
  .spatial-secret-console {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .spatial-secret-console__quick-actions {
    min-height: 2.75rem;
    padding-block: 0;
  }

  .spatial-secret-console__catalog-header {
    min-height: 3.4rem;
    padding-block: 0.45rem;
  }

  .spatial-secret-console__catalog-header span,
  .spatial-secret-console__catalog-tools > label {
    display: none;
  }

  .spatial-secret-console__catalog-tools {
    padding-block: 0.4rem;
  }

  .spatial-secret-console__suggestions {
    max-height: 42vh;
  }
}

@media (max-width: 900px) and (max-height: 600px) {
  .spatial-shell[data-shell-world] .spatial-shell__terminal-panel {
    top: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spatial-secret-console__output {
    scroll-behavior: auto;
  }

  .spatial-shell__wall-boot > i > span {
    transform: scaleX(1);
  }
}
