:root {
  --bg: #050605;
  --panel: rgba(14, 15, 13, 0.74);
  --panel-strong: rgba(8, 9, 8, 0.91);
  --line: rgba(217, 213, 193, 0.17);
  --line-strong: rgba(226, 220, 196, 0.42);
  --text: #d8d2bf;
  --text-strong: #ece6d3;
  --muted: #827f74;
  --muted-2: #5f5e57;
  --accent: #c8bd9f;
  --accent-dim: rgba(200, 189, 159, 0.16);
  --shadow: rgba(0, 0, 0, 0.58);
  --mono: "Bahnschrift Light", "Bahnschrift", "DIN Alternate", "Cascadia Mono", "IBM Plex Mono", "Consolas", monospace;
  --sans: "Bahnschrift Light Condensed", "Bahnschrift SemiCondensed", "Bahnschrift", "Agency FB", "Segoe UI", Arial, sans-serif;
  --archive-image: url("/images/archive-banner.png");
  --archive-image-static: url("../public/images/archive-banner.png");
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 82px 82px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 82px 82px,
    radial-gradient(ellipse at 62% 30%, rgba(190, 185, 158, 0.065), transparent 34%),
    #050605;
  color: var(--text);
  font-family: var(--mono);
  font-variation-settings: "wght" 300, "wdth" 82;
  font-weight: 300;
  letter-spacing: 0;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.archive-shell {
  --sidebar-width: 340px;
  position: relative;
  isolation: isolate;
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, var(--sidebar-width)) 1fr;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.24));
}

.archive-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(90deg, rgba(5, 6, 5, 0.9) 0 18%, rgba(5, 6, 5, 0.62) 38%, rgba(5, 6, 5, 0.28) 56%, rgba(5, 6, 5, 0.76) 100%),
    var(--archive-image),
    var(--archive-image-static);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(1) contrast(0.9) brightness(0.72);
}

.archive-shell.has-record::before {
  opacity: 0.22;
}

.archive-shell::after {
  display: none;
}

.grain-layer,
.scanline-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.boot-screen {
  --boot-width: min(520px, 78vw);
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(217, 213, 193, 0.055), transparent 34%),
    rgba(5, 6, 5, 0.98);
  color: var(--text);
  pointer-events: none;
  animation: boot-exit 2400ms ease 350ms both;
}

.boot-screen > span {
  inline-size: var(--boot-width);
  clip-path: inset(0 100% 0 0);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-align: center;
  animation:
    boot-type 620ms steps(7, end) 70ms both,
    boot-flicker 130ms steps(2, end) 90ms 5;
}

.boot-status {
  --headline-step: 28ms;
  --headline-settle: 220ms;
  --headline-duration: calc((var(--headline-chars, 19) * var(--headline-step)) + var(--headline-settle));
  --headline-start-delay: 260ms;
  inline-size: var(--boot-width);
  justify-content: center;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-align: center;
}

.boot-meter {
  inline-size: var(--boot-width);
  block-size: 12px;
  display: block;
  padding: 2px;
  border: 1px solid rgba(217, 213, 193, 0.28);
  background: rgba(255, 255, 255, 0.018);
}

.boot-meter b {
  display: block;
  inline-size: 0;
  block-size: 100%;
  background: rgba(217, 213, 193, 0.72);
  animation: boot-load 2100ms steps(22, end) 120ms both;
}

.grain-layer {
  opacity: 0.2;
  background-image:
    repeating-radial-gradient(circle at 17% 23%, rgba(255, 255, 255, 0.065) 0 1px, transparent 1px 5px),
    repeating-radial-gradient(circle at 72% 61%, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 7px);
}

.scanline-layer {
  opacity: 0.028;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 10px);
}

.archive-shell.has-record .grain-layer {
  opacity: 0.12;
}

.archive-shell.has-record .scanline-layer {
  opacity: 0.018;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 48px 28px 28px;
  background: rgba(4, 5, 4, 0.84);
  border-right: 1px solid var(--line);
}

.brand-block {
  display: grid;
  gap: 22px;
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.brand {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font-family: var(--sans);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-align: left;
  cursor: pointer;
}

.brand:hover,
.brand:focus-visible {
  color: var(--accent);
}

.archive-menu-toggle {
  min-inline-size: 42px;
  block-size: 36px;
  display: none;
  grid-template-columns: 16px minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid rgba(217, 213, 193, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 64%),
    rgba(255, 255, 255, 0.016);
  color: var(--muted);
  cursor: pointer;
}

.brand-block .archive-menu-toggle span {
  max-inline-size: 9ch;
  overflow: hidden;
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-menu-glyph {
  position: relative;
  inline-size: 24px;
  block-size: 20px;
  display: block;
  color: currentColor;
}

.archive-menu-glyph::before,
.archive-menu-glyph::after,
.archive-menu-glyph i {
  content: "";
  position: absolute;
  display: block;
}

.archive-menu-glyph::before {
  inline-size: 19px;
  border-block-start: 1px solid currentColor;
  inset-inline-start: 2px;
  inset-block-start: 4px;
}

.archive-menu-glyph::after {
  inline-size: 15px;
  border-block-start: 1px solid currentColor;
  inset-inline-start: 6px;
  inset-block-start: 16px;
}

.archive-menu-glyph i {
  inline-size: 21px;
  border-block-start: 1px solid currentColor;
  inset-inline-start: 0;
  inset-block-start: 10px;
}

.archive-menu-glyph i::before {
  content: "";
  position: absolute;
  inline-size: 4px;
  block-size: 4px;
  inset-inline-end: -2px;
  inset-block-start: -2px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  background: rgba(5, 6, 5, 0.9);
}

.archive-menu-toggle:hover,
.archive-menu-toggle.is-active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.brand-block span,
.brand-block i {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.desktop-brand-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
}

.brand-block .desktop-mode-label {
  padding-inline-start: 10px;
  border-inline-start: 1px solid rgba(217, 213, 193, 0.18);
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.mobile-brand-meta,
.mobile-clock {
  display: none;
}

.archive-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: block;
  padding: 0;
  border: 0;
  background:
    radial-gradient(ellipse at 30% 24%, rgba(217, 213, 193, 0.045), transparent 32%),
    rgba(2, 3, 2, 0.42);
  cursor: default;
  backdrop-filter: blur(2px);
}

.archive-nav-panel {
  position: fixed;
  z-index: 58;
  inset-block-start: clamp(54px, 9vh, 92px);
  inset-block-end: clamp(34px, 6vh, 64px);
  inset-inline-start: calc(var(--sidebar-width) + 24px);
  inline-size: min(650px, calc(100vw - var(--sidebar-width) - 72px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), transparent 42%),
    rgba(7, 8, 7, 0.97);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.68),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.archive-nav-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.034;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px 9px);
}

.archive-nav-panel > * {
  position: relative;
  z-index: 1;
}

.archive-nav-panel header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-block-end: 16px;
  border-block-end: 1px dashed rgba(217, 213, 193, 0.18);
}

.archive-nav-panel header p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.14em;
}

.archive-nav-panel header span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.archive-nav-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.archive-nav-actions button {
  min-width: 0;
  min-block-size: 54px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid rgba(217, 213, 193, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), transparent 64%),
    rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.archive-nav-actions button span {
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.archive-nav-actions button:hover,
.archive-nav-actions button:focus-visible,
.archive-nav-actions button.is-active {
  border-color: rgba(217, 213, 193, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.archive-nav-actions button:disabled {
  opacity: 0.38;
  cursor: default;
}

.archive-nav-panel .nav-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: auto;
  padding: 0 4px 0 0;
}

.archive-nav-panel .nav-stack--archive {
  grid-template-columns: 1fr;
  align-content: end;
}

.archive-nav-panel .nav-stack--archive .nav-trigger {
  min-block-size: 82px;
}

.archive-nav-panel .nav-group {
  min-width: 0;
  border-color: rgba(217, 213, 193, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 68%),
    rgba(255, 255, 255, 0.018);
}

.archive-nav-panel .nav-trigger {
  min-block-size: 118px;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 20px;
  padding: 22px;
}

.archive-nav-panel .nav-mark {
  inline-size: 30px;
  block-size: 30px;
}

.archive-nav-panel .nav-trigger strong {
  font-size: 13px;
  letter-spacing: 0.11em;
}

.archive-nav-panel .nav-trigger small {
  margin-block-start: 10px;
  font-size: 13px;
}

.archive-nav-panel .nav-readable {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(3px);
  filter: blur(2px);
  animation: nav-panel-readable-enter 620ms steps(5, end) 160ms both;
}

.archive-nav-panel .nav-readable::before {
  display: block !important;
  content: attr(data-cipher);
  animation: glyph-scan 560ms steps(4, end) 120ms both;
}

.archive-nav-panel .nav-cipher {
  position: static;
  z-index: auto;
  display: block;
  max-inline-size: none;
  font-size: 13px;
  letter-spacing: 0.16em;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  animation: nav-panel-cipher-exit 620ms steps(5, end) 160ms both;
}

.archive-nav-panel .nav-trigger:hover .nav-readable,
.archive-nav-panel .nav-trigger:focus-visible .nav-readable {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  animation: glyph-resolve 460ms steps(5, end);
}

.archive-nav-panel .nav-trigger:hover .nav-readable::before,
.archive-nav-panel .nav-trigger:focus-visible .nav-readable::before {
  animation: glyph-scan 420ms steps(4, end);
}

.archive-nav-panel .nav-trigger:hover .nav-cipher,
.archive-nav-panel .nav-trigger:focus-visible .nav-cipher {
  opacity: 0;
  transform: translateY(-3px);
  filter: blur(2px);
  animation: glyph-decay 420ms steps(4, end);
}

.sidebar-label,
.system-status > p,
.route-label,
.workspace-footer p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.sidebar nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.nav-stack {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline-end: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 213, 193, 0.22) transparent;
}

.nav-stack::-webkit-scrollbar {
  inline-size: 5px;
}

.nav-stack::-webkit-scrollbar-thumb {
  background: rgba(217, 213, 193, 0.22);
}

.nav-group {
  border: 1px solid rgba(217, 213, 193, 0.12);
  background: rgba(255, 255, 255, 0.018);
}

.nav-trigger {
  inline-size: 100%;
  min-block-size: 70px;
  display: grid;
  grid-template-columns: 34px 1fr 16px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-trigger svg {
  color: var(--text);
  opacity: 0.88;
}

.nav-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  inline-size: 26px;
  block-size: 26px;
  color: var(--text);
  opacity: 0.9;
}

.nav-mark::before,
.nav-mark::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.nav-mark[data-icon="system"]::before {
  inline-size: 18px;
  block-size: 13px;
  border: 1px solid currentColor;
  inset-block-start: 4px;
}

.nav-mark[data-icon="system"]::after {
  inline-size: 16px;
  block-size: 6px;
  border-block-end: 1px solid currentColor;
  border-inline: 1px solid transparent;
  inset-block-end: 3px;
}

.nav-mark[data-icon="projects"]::before {
  inline-size: 20px;
  block-size: 15px;
  border: 1px solid currentColor;
  inset-block-start: 7px;
}

.nav-mark[data-icon="projects"]::after {
  inline-size: 9px;
  block-size: 5px;
  border-block-start: 1px solid currentColor;
  border-inline-start: 1px solid currentColor;
  inset-block-start: 4px;
  inset-inline-start: 3px;
}

.nav-mark[data-icon="games"]::before {
  inline-size: 20px;
  block-size: 16px;
  border: 1px solid currentColor;
  border-radius: 2px;
  inset-block-start: 5px;
}

.nav-mark[data-icon="games"]::after {
  inline-size: 8px;
  block-size: 8px;
  border-block: 1px solid currentColor;
  border-inline: 1px solid transparent;
  transform: rotate(45deg);
  inset-block-start: 9px;
}

.nav-mark[data-icon="logs"]::before {
  inline-size: 15px;
  block-size: 20px;
  border: 1px solid currentColor;
  inset-block-start: 3px;
}

.nav-mark[data-icon="logs"]::after {
  inline-size: 8px;
  block-size: 8px;
  border-block: 1px solid currentColor;
  inset-block-start: 8px;
}

.nav-mark[data-icon="setup"]::before {
  inline-size: 22px;
  block-size: 18px;
  border-block: 1px solid currentColor;
  inset-block-start: 4px;
}

.nav-mark[data-icon="setup"]::after {
  inline-size: 18px;
  block-size: 12px;
  border-block: 1px solid currentColor;
  inset-block-start: 7px;
}

.nav-mark[data-icon="archive"]::before {
  inline-size: 18px;
  block-size: 16px;
  border: 1px solid currentColor;
  inset-block-start: 6px;
}

.nav-mark[data-icon="archive"]::after {
  inline-size: 10px;
  border-block-start: 1px solid currentColor;
  inset-block-start: 10px;
}

.line-icon,
.empty-banner-icon {
  display: inline-grid;
  place-items: center;
  inline-size: 24px;
  block-size: 24px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  opacity: 0.88;
}

.empty-banner-icon {
  inline-size: 32px;
  block-size: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.nav-trigger strong,
.nav-trigger small {
  display: block;
}

.nav-label {
  position: relative;
  min-width: 0;
  display: grid;
}

.nav-trigger strong {
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.11em;
}

.nav-trigger small {
  grid-area: 2 / 1;
  margin-block-start: 5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-readable {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(3px);
  filter: blur(2px);
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.nav-readable::before {
  content: attr(data-cipher);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  inline-size: 100%;
  color: var(--accent);
  opacity: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.nav-cipher {
  color: rgba(217, 213, 193, 0.52);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: none;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.nav-trigger:hover .nav-readable,
.nav-trigger:focus-visible .nav-readable {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  animation: glyph-resolve 460ms steps(5, end);
}

.nav-trigger:hover .nav-readable::before,
.nav-trigger:focus-visible .nav-readable::before {
  animation: glyph-scan 420ms steps(4, end);
}

.nav-trigger:hover .nav-cipher,
.nav-trigger:focus-visible .nav-cipher {
  opacity: 0;
  transform: translateY(-3px);
  filter: blur(2px);
  animation: glyph-decay 420ms steps(4, end);
}

@keyframes glyph-resolve {
  0% {
    opacity: 0;
    clip-path: inset(0 72% 0 0);
    filter: blur(2px);
  }

  24% {
    opacity: 0.8;
    clip-path: inset(0 42% 0 0);
    filter: blur(1px);
  }

  58% {
    opacity: 0.45;
    clip-path: inset(0 12% 0 0);
    transform: translateX(1px);
  }

  100% {
    opacity: 1;
    clip-path: inset(0);
    filter: blur(0);
    transform: translateX(0);
  }
}

@keyframes glyph-scan {
  0% {
    opacity: 0.84;
    clip-path: inset(0 0 78% 0);
    transform: translateX(-3px);
  }

  35% {
    opacity: 0.62;
    clip-path: inset(34% 0 38% 0);
    transform: translateX(2px);
  }

  70% {
    opacity: 0.34;
    clip-path: inset(74% 0 0 0);
    transform: translateX(-1px);
  }

  100% {
    opacity: 0;
    clip-path: inset(0);
    transform: translateX(0);
  }
}

@keyframes glyph-decay {
  0% {
    opacity: 1;
    clip-path: inset(0);
  }

  50% {
    opacity: 0.64;
    clip-path: inset(0 0 0 28%);
  }

  100% {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
  }
}

.nav-trigger.is-active {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 2px 0 0 var(--accent);
}

.chevron {
  display: inline-block;
  transition: transform 180ms ease;
}

.chevron.is-open {
  transform: rotate(180deg);
}

.section-signal {
  position: relative;
  inline-size: 10px;
  block-size: 10px;
  justify-self: center;
  border: 1px solid currentColor;
  opacity: 0.58;
}

.section-signal::before,
.section-signal::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
}

.section-signal::before {
  inline-size: 8px;
  block-size: 8px;
  inset-block-start: -4px;
  inset-inline-start: 3px;
  opacity: 0.35;
}

.section-signal::after {
  inline-size: 4px;
  block-size: 4px;
  inset-block-end: -4px;
  inset-inline-end: -3px;
  opacity: 0.42;
}

.subnav {
  overflow: hidden;
  padding: 0 14px 14px 58px;
}

.static-subnav {
  height: auto;
  opacity: 1;
}

.subnav-item {
  inline-size: 100%;
  min-block-size: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.subnav-item.is-selected,
.subnav-item:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.045);
}

.system-status {
  flex: 0 0 auto;
  margin-block-start: 0;
  padding-block-start: 28px;
  border-top: 1px dashed rgba(217, 213, 193, 0.22);
}

.system-status dl,
.record-meta {
  margin: 0;
  display: grid;
  gap: 11px;
}

.system-status div,
.record-meta div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
}

.system-status dt,
.record-meta dt {
  color: var(--muted);
}

.system-status dd,
.record-meta dd {
  margin: 0;
  color: var(--text);
}

.workspace {
  --workspace-pad-inline: clamp(28px, 5vw, 74px);
  --workspace-pad-top: clamp(28px, 4vh, 48px);
  --workspace-pad-bottom: clamp(22px, 3.5vw, 54px);
  --footer-reserve: 118px;
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-width: 0;
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--workspace-pad-top) var(--workspace-pad-inline) calc(var(--workspace-pad-bottom) + var(--footer-reserve));
}

.workspace::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background:
    radial-gradient(ellipse at 55% 34%, rgba(217, 213, 193, 0.03), transparent 36%),
    linear-gradient(90deg, rgba(5, 6, 5, 0.9), rgba(5, 6, 5, 0.38) 52%, rgba(5, 6, 5, 0.82)),
    rgba(5, 6, 5, 0.16);
  box-shadow: inset 0 0 80px rgba(5, 6, 5, 0.58), inset 0 0 55px rgba(255, 255, 255, 0.014);
  opacity: 0.76;
}

.workspace::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 55% 38%, rgba(217, 213, 193, 0.035), transparent 34%),
    linear-gradient(90deg, rgba(5, 6, 5, 0.48), rgba(5, 6, 5, 0.72) 52%, rgba(5, 6, 5, 0.5)),
    rgba(5, 6, 5, 0.34);
  transition: opacity 180ms ease-out;
}

.workspace-header {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-block-end: clamp(14px, 2.4vh, 24px);
}

.workspace-header h1 {
  position: relative;
  margin: 0;
  --headline-step: 38ms;
  --headline-settle: 260ms;
  --headline-duration: calc((var(--headline-chars, 16) * var(--headline-step)) + var(--headline-settle));
  --headline-start-delay: 50ms;
  color: var(--text);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.headline-decode-text {
  display: inline-flex;
  max-inline-size: 100%;
  align-items: baseline;
  white-space: nowrap;
}

.headline-char {
  position: relative;
  flex: 0 0 auto;
  display: inline-block;
  line-height: inherit;
  vertical-align: baseline;
}

.headline-char.is-space {
  inline-size: 0.42em;
}

.headline-char-cipher,
.headline-char-readable {
  display: inline-block;
  line-height: inherit;
  vertical-align: baseline;
}

.headline-char-cipher {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
}

.headline-char-readable {
  position: relative;
  color: var(--text);
  opacity: 1;
}

.headline-decode-text.is-resolving .headline-char-cipher {
  opacity: 0;
  animation: headline-letter-cipher 360ms steps(4, end) calc(var(--headline-start-delay) + (var(--headline-index) * var(--headline-step))) both;
}

.headline-decode-text.is-resolving .headline-char-readable {
  opacity: 0;
  animation: headline-letter-readable 240ms steps(2, end) calc(var(--headline-start-delay) + (var(--headline-index) * var(--headline-step)) + 210ms) both;
}

.record-title-text {
  display: block;
  max-inline-size: 100%;
  vertical-align: bottom;
  overflow-wrap: normal;
  text-wrap: balance;
  white-space: normal;
}

.record-title-text.is-long-title {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.subtle {
  color: var(--muted);
}

.time-block {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.dot {
  color: var(--muted-2);
}

.icon-button {
  inline-size: 32px;
  block-size: 32px;
  display: grid;
  place-items: center;
  margin-inline-start: 16px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line);
}

.icon-button.is-active {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.search-panel {
  position: absolute;
  inset-block-start: 42px;
  inset-inline-end: 0;
  z-index: 40;
  inline-size: min(430px, calc(100vw - var(--sidebar-width) - 96px));
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 9, 8, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

.command-panel {
  inline-size: min(500px, calc(100vw - var(--sidebar-width) - 96px));
  animation: command-panel-decode 150ms ease-out both;
}

.search-panel label {
  position: relative;
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.search-panel input {
  inline-size: 100%;
  min-block-size: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font: inherit;
}

.search-panel input:focus {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.search-suggestions {
  display: grid;
  gap: 6px;
}

.search-suggestions button {
  min-block-size: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 7px 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.search-suggestions button:hover,
.search-suggestions button:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.search-suggestions strong,
.search-suggestions small {
  display: block;
}

.search-suggestions strong {
  position: relative;
  color: var(--text);
  font-weight: 400;
}

.command-panel .search-suggestions button {
  animation: command-result-enter 360ms steps(4, end) both;
}

.command-panel .search-suggestions small {
  position: relative;
  inline-size: fit-content;
  max-inline-size: 100%;
  color: transparent;
  overflow: hidden;
  white-space: nowrap;
}

.command-panel .search-suggestions small::before {
  content: attr(data-cipher);
  position: absolute;
  inset: 0;
  color: var(--accent);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.78;
  transition: opacity 160ms linear, clip-path 260ms steps(5, end);
}

.command-panel .search-suggestions button:hover small,
.command-panel .search-suggestions button:focus-visible small {
  color: var(--muted);
  animation: glyph-resolve 460ms steps(5, end);
}

.command-panel .search-suggestions button:hover small::before,
.command-panel .search-suggestions button:focus-visible small::before {
  animation: glyph-decay 420ms steps(4, end) both;
}

.search-suggestions small,
.search-suggestions i,
.search-empty {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.command-panel .search-suggestions i {
  min-inline-size: 44px;
  text-align: right;
}

.dashboard-grid {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  max-inline-size: 1180px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, 0.82fr) minmax(210px, 0.72fr);
  gap: clamp(10px, 1.6vh, 16px);
  contain: layout paint;
  transition: opacity 90ms linear;
}

.dashboard-grid.is-muted {
  opacity: 0.72;
}

.workspace.has-record::after {
  opacity: 1;
}

.workspace.has-record .dashboard-grid,
.workspace.has-record .section-page,
.workspace.has-record .workspace-footer {
  opacity: 0.44;
}

.record-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.section-page {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  min-height: 0;
  max-inline-size: 900px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  contain: layout paint;
  transition: opacity 90ms linear;
}

.section-page--split {
  inline-size: min(100%, 1180px);
  max-inline-size: 1180px;
}

.section-page-header {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent 52%),
    var(--panel);
}

.section-page-header p,
.section-page-header h2 {
  margin: 0;
}

.section-page-header p,
.section-page-header i {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.section-page-header h2 {
  margin-block-start: 5px;
  color: var(--text-strong);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  letter-spacing: 0.08em;
}

.section-record-grid {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-inline-end: 6px;
}

.section-split-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.section-record-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(217, 213, 193, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%),
    rgba(0, 0, 0, 0.16);
}

.section-record-column > header {
  min-block-size: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  border-block-end: 1px solid rgba(217, 213, 193, 0.1);
  padding-block-end: 10px;
}

.section-record-column h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.section-record-column > header span {
  color: var(--muted-2);
  font-size: 12px;
}

.section-record-column .section-record-grid {
  gap: 10px;
  grid-auto-rows: 138px;
}

.section-record-column .section-record {
  block-size: 138px;
  min-block-size: 0;
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  grid-template-areas:
    "kind date"
    "title tags"
    "summary summary";
  align-content: center;
  column-gap: 12px;
  row-gap: 8px;
  padding: 16px 14px;
  overflow: hidden;
}

.section-record-column .section-record-kind {
  grid-area: kind;
}

.section-record-column .section-record strong {
  grid-area: title;
  display: block;
  line-height: 1.25;
  margin-block: 2px 4px;
}

.section-record-column .section-record > span:not(.section-record-kind) {
  grid-area: summary;
  min-block-size: 0;
  padding-block-start: 9px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.section-record-column .section-record i {
  grid-area: date;
  max-inline-size: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1.35;
}

.section-record-column .section-record-tags {
  grid-area: tags;
  align-self: center;
  justify-self: end;
  max-inline-size: 100%;
}

.section-record-column .section-record strong,
.section-record-column .section-record > span:not(.section-record-kind),
.section-record-column .section-record i {
  min-width: 0;
}

.section-record {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 0.62fr) minmax(220px, 1fr) minmax(132px, auto);
  grid-template-areas:
    "kind title summary date"
    "kind title summary tags";
  gap: 5px 18px;
  align-items: center;
  min-block-size: 94px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 213, 193, 0.12);
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.section-record:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.section-record strong,
.section-record span,
.section-record i {
  min-width: 0;
}

.section-record strong {
  grid-area: title;
  color: var(--text);
  font-weight: 400;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.22;
  white-space: normal;
}

.section-record span:not(.section-record-kind) {
  grid-area: summary;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-record-tags {
  grid-area: tags;
  justify-self: end;
  align-self: start;
  min-width: 0;
  max-inline-size: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
  font-style: normal;
  pointer-events: none;
}

.tag-pill {
  flex: 0 0 auto;
  max-inline-size: 18ch;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(217, 213, 193, 0.16);
  background: rgba(217, 213, 193, 0.06);
  color: var(--text);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-pill.tone-a {
  border-color: rgba(197, 189, 146, 0.26);
  background: rgba(197, 189, 146, 0.11);
}

.tag-pill.tone-b {
  border-color: rgba(129, 168, 153, 0.26);
  background: rgba(129, 168, 153, 0.1);
}

.tag-pill.tone-c {
  border-color: rgba(176, 139, 126, 0.28);
  background: rgba(176, 139, 126, 0.105);
}

.tag-pill.tone-d {
  border-color: rgba(161, 163, 183, 0.26);
  background: rgba(161, 163, 183, 0.1);
}

.section-record-kind {
  grid-area: kind;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-record i {
  grid-area: date;
  justify-self: end;
  align-self: end;
  color: var(--muted);
  font-style: normal;
  line-height: 1.4;
  white-space: nowrap;
}

.dashboard-panel {
  min-block-size: clamp(96px, 13.5vh, 136px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: clamp(12px, 1.7vh, 16px) 20px clamp(10px, 1.5vh, 14px);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 48%),
    var(--panel);
  box-shadow: 0 24px 60px var(--shadow);
}

.wide-panel {
  grid-column: span 2;
}

.active-projects-panel {
  gap: 10px;
  padding-block: clamp(13px, 1.8vh, 16px);
}

.weather-panel {
  grid-column: 3;
  grid-row: 1;
}

.memory-panel {
  grid-column: 3;
  grid-row: 2 / span 2;
  overflow: hidden;
}

.dashboard-panel h2,
.record-aside h3 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.panel-link {
  justify-self: start;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.panel-link:hover {
  color: var(--text-strong);
}

.record-list {
  display: grid;
}

.record-list button {
  min-block-size: clamp(42px, 5.8vh, 52px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 0;
  border-bottom: 1px solid rgba(217, 213, 193, 0.09);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.active-projects-panel .record-list button {
  min-block-size: clamp(34px, 4.25vh, 40px);
  padding-block: 4px;
}

.active-projects-panel .record-list small,
.active-projects-panel .record-list i {
  margin-block-start: 4px;
}

.record-list button:hover {
  color: var(--text-strong);
}

.record-list strong,
.record-list small,
.current-game span,
.latest-log span {
  display: block;
}

.record-list strong {
  max-inline-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}

.record-list small,
.record-list i {
  max-inline-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-block-start: 5px;
  color: var(--muted);
  font-style: normal;
}

.current-game {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
}

.game-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  text-align: center;
  font-size: 9px;
  overflow: hidden;
}

.game-cover img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.game-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.5));
}

.game-cover-signal {
  position: absolute;
  inset-block-start: 7px;
  inset-inline-end: 7px;
  z-index: 2;
  padding: 2px 5px;
  border: 1px solid rgba(217, 213, 193, 0.34);
  background: rgba(5, 6, 5, 0.64);
  color: var(--text);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-cover span {
  position: relative;
  z-index: 1;
  padding: 4px;
  color: var(--text);
}

.current-game strong {
  display: block;
  margin-block-end: 10px;
  color: var(--text-strong);
  font-weight: 400;
}

.current-game span,
.latest-log p,
.activity-feed {
  color: var(--muted);
  line-height: 1.55;
}

.latest-log p {
  max-inline-size: 34ch;
  text-wrap: balance;
}

.activity-feed {
  list-style: none;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.activity-feed li {
  display: flex;
  gap: 15px;
}

.activity-feed span {
  color: var(--muted-2);
}

.activity-feed button {
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.activity-feed button:hover {
  color: var(--text-strong);
}

.weather-readout {
  display: grid;
  gap: 7px;
}

.weather-primary {
  display: grid;
  gap: 4px;
  padding-block-end: 7px;
  border-bottom: 1px solid rgba(217, 213, 193, 0.1);
}

.weather-temp {
  color: var(--text-strong);
  font-family: var(--sans);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 300;
  line-height: 0.95;
}

.weather-condition,
.weather-meta span,
.weather-note {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.weather-meta {
  display: grid;
  gap: 8px;
}

.weather-action {
  justify-self: start;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.weather-action:hover {
  color: var(--text-strong);
}

.memory-loop {
  --memory-axis-x: 0px;
  --memory-axis-y: 0px;
  --memory-core-x: 0px;
  --memory-core-y: 0px;
  --memory-orbit-x: 0px;
  --memory-orbit-y: 0px;
  --memory-shard-x: 0px;
  --memory-shard-y: 0px;
  position: relative;
  min-block-size: 100%;
  block-size: 100%;
  overflow: hidden;
  border: 1px solid rgba(217, 213, 193, 0.12);
  background:
    radial-gradient(ellipse at 50% 58%, rgba(200, 189, 159, 0.19), transparent 34%),
    radial-gradient(circle at 52% 47%, rgba(217, 213, 193, 0.1), transparent 17%),
    linear-gradient(90deg, rgba(217, 213, 193, 0.055), transparent 24% 76%, rgba(217, 213, 193, 0.045)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 44%),
    rgba(5, 6, 5, 0.56);
}

.memory-loop::before,
.memory-loop::after,
.memory-loop span {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.memory-loop::before {
  inset: -22%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 16%, rgba(236, 230, 211, 0.08) 17% 18%, transparent 19% 33%, rgba(236, 230, 211, 0.05) 34% 35%, transparent 36%),
    radial-gradient(circle at 38% 42%, rgba(236, 230, 211, 0.24) 0 1px, transparent 2px),
    radial-gradient(circle at 67% 54%, rgba(236, 230, 211, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 44% 68%, rgba(236, 230, 211, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 58%, rgba(200, 189, 159, 0.16), transparent 22%);
  opacity: 0.74;
  animation: memory-drift 9s ease-in-out infinite alternate;
}

.memory-loop::after {
  opacity: 0.2;
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(217, 213, 193, 0.13) 45%, transparent 47% 100%),
    linear-gradient(90deg, rgba(5, 6, 5, 0.72), transparent 42%, rgba(5, 6, 5, 0.64)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 9px);
  animation: memory-scan 6.5s ease-in-out infinite;
}

.memory-core {
  inset: 22% 24%;
  border: 0;
  clip-path: polygon(20% 16%, 61% 8%, 86% 32%, 78% 68%, 49% 91%, 16% 74%, 8% 38%);
  background:
    linear-gradient(90deg, transparent 0 23%, rgba(217, 213, 193, 0.1) 24% 25%, transparent 26% 72%, rgba(217, 213, 193, 0.08) 73% 74%, transparent 75%),
    linear-gradient(147deg, transparent 0 44%, rgba(236, 230, 211, 0.16) 45% 46%, transparent 47% 100%),
    linear-gradient(28deg, transparent 0 56%, rgba(217, 213, 193, 0.12) 57% 58%, transparent 59% 100%),
    radial-gradient(circle at 34% 43%, rgba(236, 230, 211, 0.36) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 56%, rgba(236, 230, 211, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 52%, rgba(217, 213, 193, 0.16), transparent 38%);
  opacity: 0.78;
  transform: translate3d(0, 0, 0);
  animation: memory-sphere 7.5s ease-in-out infinite;
}

.memory-core::before,
.memory-core::after {
  content: "";
  position: absolute;
  inset: 12%;
  background:
    linear-gradient(118deg, transparent 0 39%, rgba(217, 213, 193, 0.12) 40% 42%, transparent 43% 100%),
    linear-gradient(31deg, transparent 0 66%, rgba(217, 213, 193, 0.12) 67% 69%, transparent 70% 100%),
    radial-gradient(circle at 43% 30%, rgba(236, 230, 211, 0.16) 0 1px, transparent 2px);
  clip-path: polygon(8% 28%, 40% 6%, 89% 19%, 76% 58%, 51% 86%, 18% 70%);
}

.memory-core::before {
  transform: rotate(-10deg);
  animation: memory-shell-a 6.2s ease-in-out infinite;
}

.memory-core::after {
  inset: 23%;
  background:
    linear-gradient(73deg, transparent 0 37%, rgba(217, 213, 193, 0.16) 38% 40%, transparent 41% 100%),
    linear-gradient(154deg, transparent 0 53%, rgba(217, 213, 193, 0.1) 54% 56%, transparent 57% 100%);
  clip-path: polygon(23% 12%, 75% 21%, 88% 62%, 48% 87%, 12% 54%);
  transform: rotate(18deg);
  animation: memory-shell-b 5.7s ease-in-out infinite;
}

.memory-orbit {
  inset: 12% 10%;
  border-radius: 0;
  background:
    linear-gradient(32deg, transparent 0 16%, rgba(217, 213, 193, 0.2) 17% 18%, transparent 19% 100%),
    linear-gradient(145deg, transparent 0 28%, rgba(217, 213, 193, 0.16) 29% 30%, transparent 31% 100%),
    linear-gradient(8deg, transparent 0 53%, rgba(217, 213, 193, 0.12) 54% 55%, transparent 56% 100%),
    radial-gradient(circle at 31% 36%, rgba(217, 213, 193, 0.14) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 42%, rgba(217, 213, 193, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 61% 78%, rgba(217, 213, 193, 0.14) 0 2px, transparent 3px);
  clip-path: polygon(16% 28%, 42% 9%, 82% 20%, 91% 47%, 74% 73%, 39% 87%, 13% 61%);
  transform: rotate(-6deg);
  animation: memory-orbit 10.5s steps(6, end) infinite;
}

.memory-orbit::before,
.memory-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(236, 230, 211, 0.26);
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(217, 213, 193, 0.18) 43% 44%, transparent 45% 100%),
    rgba(217, 213, 193, 0.045);
  box-shadow: 0 0 14px rgba(217, 213, 193, 0.12);
}

.memory-orbit::before {
  inline-size: 42px;
  block-size: 12px;
  inset-block-start: 27%;
  inset-inline-start: 42%;
  transform: skewX(-18deg);
}

.memory-orbit::after {
  inline-size: 30px;
  block-size: 20px;
  inset-block-end: 19%;
  inset-inline-end: 18%;
  transform: skewX(14deg);
}

.memory-gate {
  inset: 18% 18%;
  background:
    linear-gradient(0deg, transparent 0 19%, rgba(217, 213, 193, 0.08) 20% 21%, transparent 22% 78%, rgba(217, 213, 193, 0.06) 79% 80%, transparent 81%),
    linear-gradient(90deg, transparent 0 10%, rgba(217, 213, 193, 0.11) 11% 12%, transparent 13% 88%, rgba(217, 213, 193, 0.1) 89% 90%, transparent 91%),
    linear-gradient(90deg, transparent, rgba(217, 213, 193, 0.16), transparent),
    linear-gradient(180deg, transparent 0 45%, rgba(217, 213, 193, 0.26) 46% 47%, transparent 48% 100%);
  opacity: 0.5;
  transform: scaleX(0.72);
  animation: memory-pulse 5.4s ease-in-out infinite;
}

.memory-shard {
  inset: 19% 17%;
  opacity: 0.58;
  background:
    linear-gradient(132deg, transparent 0 43%, rgba(236, 230, 211, 0.16) 44% 45%, transparent 46% 100%),
    linear-gradient(28deg, transparent 0 62%, rgba(236, 230, 211, 0.1) 63% 64%, transparent 65% 100%),
    radial-gradient(circle at 58% 47%, rgba(236, 230, 211, 0.12) 0 1px, transparent 2px);
  clip-path: polygon(9% 40%, 42% 11%, 88% 24%, 78% 65%, 54% 91%, 19% 75%);
  animation: memory-shard 8.8s ease-in-out infinite;
}

.memory-rain {
  background-image:
    linear-gradient(90deg, transparent 0 15%, rgba(217, 213, 193, 0.14) 16%, transparent 17% 38%, rgba(217, 213, 193, 0.09) 39%, transparent 40% 100%);
  background-size: 46px 100%;
  opacity: 0.18;
  transform: translateY(-12%);
  animation: memory-fall 7s linear infinite;
}

.memory-axis {
  inset: 10% 13%;
  opacity: 0.44;
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(217, 213, 193, 0.22) 50%, transparent 51%),
    linear-gradient(180deg, transparent 0 49%, rgba(217, 213, 193, 0.18) 50%, transparent 51%),
    radial-gradient(circle at 50% 50%, transparent 0 35%, rgba(217, 213, 193, 0.14) 36% 37%, transparent 38% 51%, rgba(217, 213, 193, 0.08) 52% 53%, transparent 54%);
  transform: rotate(0deg);
  animation: memory-axis 9.5s steps(7, end) infinite;
}

.memory-cipher {
  inset: auto 12px 10px 12px;
  block-size: 18px;
  color: rgba(217, 213, 193, 0.52);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: none;
  opacity: 0.78;
  animation: memory-cipher 5.8s steps(2, end) infinite;
}

.memory-cipher::before {
  content: "⌖╳╵⌁⟐  MEMORY  ⌰╳⟟⌖";
}

.memory-nodes {
  inset: 18% 17%;
  opacity: 0.62;
  background:
    radial-gradient(circle at 34% 37%, rgba(236, 230, 211, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 77% 31%, rgba(236, 230, 211, 0.52) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 75%, rgba(236, 230, 211, 0.64) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 68%, rgba(236, 230, 211, 0.46) 0 1px, transparent 2px),
    linear-gradient(28deg, transparent 0 31%, rgba(236, 230, 211, 0.08) 32% 33%, transparent 34% 100%),
    linear-gradient(144deg, transparent 0 43%, rgba(236, 230, 211, 0.07) 44% 45%, transparent 46% 100%);
  clip-path: polygon(24% 32%, 72% 22%, 84% 73%, 37% 84%);
  animation: memory-nodes 6.8s ease-in-out infinite;
}

.archive-shell.has-record .memory-loop::before,
.archive-shell.has-record .memory-loop::after,
.archive-shell.has-record .memory-loop span {
  animation-play-state: paused;
}

.archive-shell.has-record .memory-loop {
  opacity: 0.58;
}

.workspace-footer {
  position: absolute;
  inset-inline-start: var(--workspace-pad-inline);
  inset-block-end: clamp(14px, 2.2vh, 28px);
  z-index: 3;
  inline-size: min(900px, calc(100% - (var(--workspace-pad-inline) * 2)));
  max-inline-size: 900px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  color: var(--muted);
  transition: opacity 120ms ease;
}

.workspace-footer p {
  grid-column: 1 / -1;
  margin-block-end: 2px;
}

:where(.record-layout, .timeline-body, .update-history-window ol, .section-record-grid, .archive-nav-panel .nav-stack) {
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 213, 193, 0.34) rgba(255, 255, 255, 0.035);
}

:where(.record-layout, .timeline-body, .update-history-window ol, .section-record-grid, .archive-nav-panel .nav-stack)::-webkit-scrollbar {
  inline-size: 10px;
  block-size: 10px;
}

:where(.record-layout, .timeline-body, .update-history-window ol, .section-record-grid, .archive-nav-panel .nav-stack)::-webkit-scrollbar-track {
  background:
    linear-gradient(90deg, transparent 0 4px, rgba(217, 213, 193, 0.08) 4px 5px, transparent 5px),
    rgba(255, 255, 255, 0.02);
}

:where(.record-layout, .timeline-body, .update-history-window ol, .section-record-grid, .archive-nav-panel .nav-stack)::-webkit-scrollbar-thumb {
  min-block-size: 44px;
  border: 2px solid transparent;
  background:
    linear-gradient(rgba(217, 213, 193, 0.48), rgba(130, 127, 116, 0.36)) padding-box;
}

:where(.record-layout, .timeline-body, .update-history-window ol, .section-record-grid, .archive-nav-panel .nav-stack)::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(rgba(236, 230, 211, 0.7), rgba(200, 189, 159, 0.46)) padding-box;
}

.record-window {
  position: fixed;
  z-index: 60;
  inset-block-start: clamp(36px, 8vh, 82px);
  inset-block-end: clamp(24px, 4vh, 44px);
  inset-inline-start: var(--sidebar-width);
  inset-inline-end: 0;
  inline-size: min(960px, calc(100vw - var(--sidebar-width) - 56px));
  max-block-size: none;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  margin-inline: auto;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  background: rgba(8, 9, 8, 0.985);
  box-shadow:
    0 28px 78px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  contain: layout paint style;
  transform: translateZ(0);
  animation: window-in 200ms ease-out;
}

.record-window.is-steady {
  animation: none;
}

.record-window.has-index-modal .record-layout {
  filter: blur(1.4px);
  opacity: 0.42;
  transition: filter 120ms ease, opacity 120ms ease;
}

.record-window::before,
.record-window::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.record-window::before {
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.record-window::after {
  inset: 0;
  opacity: 0.018;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0 1px, transparent 1px 10px);
}

.record-window.is-maximized {
  inset-block: 34px;
  inset-inline-start: calc(var(--sidebar-width) + 34px);
  inset-inline-end: 34px;
  inline-size: auto;
  max-block-size: none;
  margin-inline: 0;
}

.timeline-window {
  position: fixed;
  z-index: 60;
  inset-block-start: clamp(44px, 8vh, 88px);
  inset-block-end: clamp(24px, 5vh, 54px);
  inset-inline-start: var(--sidebar-width);
  inset-inline-end: 0;
  inline-size: min(880px, calc(100vw - var(--sidebar-width) - 64px));
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 34%),
    rgba(8, 9, 8, 0.985);
  box-shadow:
    0 28px 78px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  contain: layout paint style;
  transform: translateZ(0);
}

.timeline-window::before,
.timeline-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.timeline-window::before {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-window::after {
  opacity: 0.018;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0 1px, transparent 1px 10px);
}

.timeline-body {
  min-block-size: 0;
  display: grid;
  gap: 18px;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.timeline-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 4px 16px;
  padding-block-end: 16px;
  border-bottom: 1px solid var(--line);
}

.timeline-summary p {
  grid-column: 1 / -1;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.timeline-summary strong {
  color: var(--text);
  font-family: var(--font-display), var(--font-mono), monospace;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 300;
  line-height: 0.9;
}

.timeline-summary span {
  color: var(--muted-2);
}

.timeline-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.timeline-list time {
  padding-block-start: 13px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.timeline-list button {
  min-block-size: 56px;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 213, 193, 0.1);
  border-left-color: rgba(217, 213, 193, 0.34);
  background:
    linear-gradient(90deg, rgba(217, 213, 193, 0.075), transparent 50%),
    rgba(255, 255, 255, 0.022);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.timeline-list button:hover {
  border-color: rgba(217, 213, 193, 0.34);
  background:
    linear-gradient(90deg, rgba(217, 213, 193, 0.12), transparent 56%),
    rgba(255, 255, 255, 0.04);
}

.timeline-list span,
.timeline-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-list small {
  color: var(--muted);
  font-size: 12px;
}

.window-bar {
  block-size: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px 0 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(8, 9, 8, 0.68));
  color: var(--text);
  letter-spacing: 0.12em;
}

.window-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-actions button {
  position: relative;
  inline-size: 26px;
  block-size: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 0;
  line-height: 1;
  cursor: pointer;
}

.window-actions button svg {
  display: block;
  inline-size: 14px;
  block-size: 14px;
  stroke-width: 1.6;
}

.window-actions button[data-window-action] svg {
  display: none;
}

.window-actions button[data-window-action]::before,
.window-actions button[data-window-action]::after {
  content: "";
  position: absolute;
  display: block;
}

.window-actions button[data-window-action="minimize"]::before {
  inline-size: 12px;
  block-size: 4px;
  border-block: 1px solid currentColor;
  transform: skewX(-22deg);
}

.window-actions button[data-window-action="minimize"]::after {
  inline-size: 6px;
  border-block-start: 1px solid currentColor;
  transform: translate(5px, 6px) skewX(-22deg);
}

.window-actions button[data-window-action="maximize"]::before {
  inline-size: 10px;
  block-size: 10px;
  border: 1px solid currentColor;
  transform: rotate(45deg) scale(0.78);
}

.window-actions button[data-window-action="maximize"]::after {
  inline-size: 14px;
  block-size: 14px;
  border: 1px solid currentColor;
  opacity: 0.35;
}

.window-actions button[data-window-action="close"]::before,
.window-actions button[data-window-action="close"]::after {
  inline-size: 15px;
  border-block-start: 1px solid currentColor;
}

.window-actions button[data-window-action="close"]::before {
  transform: rotate(28deg);
}

.window-actions button[data-window-action="close"]::after {
  transform: rotate(-28deg);
}

.window-actions button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.record-layout {
  min-block-size: 0;
  block-size: 100%;
  max-block-size: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 26px;
  padding: 28px 26px 30px 30px;
  overflow: auto;
  overscroll-behavior: contain;
  contain: content;
  scrollbar-gutter: stable;
}

.record-window.is-maximized .record-layout {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 260px);
  gap: 30px;
}

.record-main {
  min-width: 0;
}

.record-heading {
  position: relative;
}

.record-heading.has-heading-banner {
  min-block-size: clamp(230px, 30vh, 310px);
  display: grid;
  align-content: end;
  margin-block-end: 22px;
  padding: 96px 22px 26px;
  overflow: hidden;
  border: 1px solid rgba(217, 213, 193, 0.08);
  background:
    linear-gradient(180deg, rgba(5, 6, 5, 0.22), rgba(5, 6, 5, 0.94)),
    linear-gradient(90deg, rgba(5, 6, 5, 0.76), rgba(5, 6, 5, 0.26) 56%, rgba(5, 6, 5, 0.7));
}

.record-heading.has-heading-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 38%, rgba(5, 6, 5, 0.74)),
    linear-gradient(90deg, rgba(5, 6, 5, 0.72), transparent 54%, rgba(5, 6, 5, 0.56)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 8px),
    rgba(5, 6, 5, 0.18);
}

.heading-banner-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  inline-size: 100%;
  block-size: 100%;
  display: block;
  object-fit: cover;
  object-position: center 50%;
  opacity: 0.52;
}

.record-heading.has-heading-banner > :not(.heading-banner-image) {
  position: relative;
  z-index: 2;
}

.record-heading.has-heading-banner p {
  margin-block-end: 0;
}

.record-heading.has-heading-banner .record-kind {
  justify-self: start;
  margin-block-end: 26px;
  background: rgba(5, 6, 5, 0.48);
}

.record-heading.has-heading-banner .record-id {
  position: static;
  justify-self: start;
  margin-block-end: 4px;
  color: var(--muted);
}

.record-kind {
  display: inline-flex;
  margin-block-end: 18px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.record-id {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 0;
  color: var(--muted);
}

.record-heading h2 {
  margin: 0 0 22px;
  color: var(--text-strong);
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.09em;
}

.record-heading p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.7;
}

.record-heading p span {
  margin-inline: 2px;
  color: var(--muted-2);
}

.cursor {
  margin-inline-start: 8px;
  animation: cursor-blink 780ms steps(1, end) infinite;
}

.headline-cursor {
  display: inline-block;
  vertical-align: bottom;
}

.headline-cursor.is-delayed {
  opacity: 0;
  animation:
    headline-cursor-enter 1ms linear calc(var(--headline-duration) + var(--headline-start-delay) + 60ms) both,
    cursor-blink 780ms steps(1, end) calc(var(--headline-duration) + var(--headline-start-delay) + 60ms) infinite;
}

.banner-frame,
.empty-banner {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.banner-frame {
  position: relative;
  aspect-ratio: 2.72 / 1;
  overflow: hidden;
}

.banner-frame img {
  inline-size: 100%;
  block-size: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}

.record-window[aria-label^="Persona 5 Royal"] .banner-frame img {
  object-position: center 58%;
}

.banner-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 42%, rgba(0, 0, 0, 0.22)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 7px);
}

.empty-banner {
  min-block-size: 150px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.record-section {
  margin-block-start: 26px;
  contain: layout paint;
}

.record-section h3,
.record-body h4,
.record-body h5 {
  margin: 0 0 13px;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.record-body h5 {
  margin-block: 6px 2px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.record-section p,
.record-body p,
.record-body blockquote {
  margin: 0;
  max-inline-size: 76ch;
  color: var(--muted);
  line-height: 1.62;
}

.note-entry-body .record-body p,
.note-entry-body .record-body blockquote {
  max-inline-size: none;
}

.record-body {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  font-size: 15px;
  inline-size: 100%;
  max-inline-size: none;
}

.record-body h4 {
  margin-block-start: 10px;
  color: var(--text);
}

.record-body blockquote {
  padding-inline-start: 16px;
  border-left: 1px solid var(--line-strong);
  color: var(--text);
}

.check-line,
.bullet-line {
  display: flex;
  gap: 12px;
}

.check-line span,
.bullet-line span {
  color: var(--accent);
}

.check-line.is-open span {
  color: var(--muted);
}

.section-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.section-row span {
  color: var(--text);
}

.progress-meter {
  position: relative;
  block-size: 2px;
  margin-block: 12px 13px;
  background: rgba(217, 213, 193, 0.22);
}

.progress-meter span {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(200, 189, 159, 0.28);
}

.milestone-list {
  display: grid;
  gap: 9px;
}

.milestone {
  display: grid;
  grid-template-columns: minmax(132px, 0.8fr) minmax(92px, 1fr) minmax(92px, max-content);
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.milestone > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.milestone em {
  justify-self: end;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
}

.progress-blocks {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
}

.progress-blocks i {
  block-size: 13px;
  border: 1px solid rgba(217, 213, 193, 0.18);
  background: rgba(255, 255, 255, 0.025);
}

.progress-blocks i.is-filled {
  background: rgba(217, 213, 193, 0.72);
}

.record-aside {
  position: sticky;
  inset-block-start: 0;
  align-self: start;
  block-size: auto;
  max-block-size: min(580px, calc(100dvh - 150px));
  display: grid;
  align-content: start;
  grid-template-rows: auto auto auto;
  gap: 24px;
  padding: 26px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.record-aside ol {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.record-aside li {
  padding: 0;
  color: var(--muted);
}

.record-aside li.is-active {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.07);
}

.record-aside li button {
  inline-size: 100%;
  min-block-size: 32px;
  display: flex;
  align-items: center;
  padding: 7px 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.record-aside li button:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.045);
}

.record-meta {
  margin-block-start: 18px;
  padding-block-start: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.record-meta div {
  grid-template-columns: 1fr;
  gap: 4px;
}

.record-meta dt {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-meta dd {
  font-size: 14px;
  line-height: 1.45;
  white-space: normal;
}

.content-terminal {
  margin-block-start: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(255, 255, 255, 0.018);
  contain: layout paint;
}

.terminal-title {
  margin-block-end: 16px;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.terminal-copy {
  margin: 0;
  max-inline-size: 76ch;
  color: var(--muted);
  line-height: 1.62;
  white-space: pre-line;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.overview-stack {
  display: grid;
  gap: 26px;
}

.overview-stack .record-section {
  margin-block-start: 0;
}

.sample-kicker {
  margin-block: -6px 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sample-terminal {
  min-width: 0;
  min-block-size: 158px;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 5, 0.52);
  color: var(--muted);
  text-align: left;
  cursor: zoom-in;
}

.sample-terminal:disabled {
  cursor: default;
}

.sample-terminal:not(:disabled):hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.sample-terminal > span {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.sample-terminal i {
  color: var(--muted);
  font-style: normal;
  line-height: 1.4;
}

.sample-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(217, 213, 193, 0.13);
  background:
    linear-gradient(135deg, rgba(217, 213, 193, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.026);
}

.sample-frame img {
  inline-size: 100%;
  block-size: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.72;
}

.sample-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 8px);
}

.media-alert-field {
  position: relative;
  min-block-size: clamp(360px, 48vh, 440px);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(217, 213, 193, 0.08), transparent 32%),
    radial-gradient(circle at 50% 48%, rgba(217, 213, 193, 0.05), transparent 38%),
    rgba(5, 6, 5, 0.35);
}

.media-alert-field::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px dashed rgba(217, 213, 193, 0.12);
}

.media-alert-header {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-start: 18px;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 213, 193, 0.2);
  background: rgba(5, 6, 5, 0.62);
  color: var(--muted);
}

.media-alert-header span {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.media-alert-header i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.media-popup-layer {
  position: absolute;
  inset: 0;
}

.media-popup {
  position: absolute;
  min-width: 0;
  inline-size: clamp(126px, 24%, 196px);
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(217, 213, 193, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 52%),
    rgba(5, 6, 5, 0.78);
  color: var(--muted);
  text-align: left;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  animation: media-pop 300ms cubic-bezier(0.2, 0.9, 0.24, 1.2) both;
  animation-delay: calc(var(--slot) * 55ms);
}

.media-popup:nth-child(1) {
  inset-block-start: 70px;
  inset-inline-start: 35%;
}

.media-popup:nth-child(2) {
  inset-block-start: 124px;
  inset-inline-start: 4%;
}

.media-popup:nth-child(3) {
  inset-block-start: 116px;
  inset-inline-end: 5%;
}

.media-popup:nth-child(4) {
  inset-block-start: 198px;
  inset-inline-start: 11%;
}

.media-popup:nth-child(5) {
  inset-block-start: 220px;
  inset-inline-start: 38%;
}

.media-popup:nth-child(6) {
  inset-block-start: 190px;
  inset-inline-end: 9%;
}

.media-popup:disabled {
  cursor: default;
}

.media-popup:not(:disabled):hover {
  z-index: 3;
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-2px);
}

.media-popup > span {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.media-popup i {
  color: var(--muted);
  font-style: normal;
  line-height: 1.4;
}

.dispatch-panel {
  min-block-size: 180px;
  display: grid;
  align-content: center;
}

.media-frame,
.note-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 213, 193, 0.13);
  background:
    linear-gradient(135deg, rgba(217, 213, 193, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.026);
}

.media-frame {
  aspect-ratio: 2 / 1;
}

.note-banner {
  aspect-ratio: 2.72 / 1;
}

.media-frame img,
.note-banner img {
  inline-size: 100%;
  block-size: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}

.record-window[aria-label^="Persona 5 Royal"] .note-banner img {
  object-position: center 58%;
}

.media-frame::after,
.note-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 8px);
}

.media-placeholder {
  display: grid;
  place-items: center;
  block-size: 100%;
  color: var(--muted-2);
}

.notes-page {
  display: grid;
  gap: 16px;
}

.notes-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.notes-page-header .terminal-title {
  margin-block-end: 0;
}

.note-search-toggle {
  inline-size: 30px;
  min-block-size: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.note-search-toggle:hover,
.note-search-toggle.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
}

.search-icon {
  position: relative;
  inline-size: 14px;
  block-size: 14px;
  display: block;
}

.search-icon::before {
  content: "";
  position: absolute;
  inset-block-start: 1px;
  inset-inline-start: 1px;
  inline-size: 8px;
  block-size: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  inset-inline-end: 1px;
  inset-block-end: 2px;
  inline-size: 6px;
  block-size: 1px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.note-search-panel {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 5, 0.38);
}

.record-aside .note-search-panel {
  align-self: end;
  margin-block-start: auto;
  padding-block-start: 12px;
}

.note-search-panel label {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.note-search-panel input {
  min-block-size: 32px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  outline: 0;
}

.note-search-panel[hidden],
.note-entry[hidden],
.notes-empty[hidden] {
  display: none;
}

.note-stack {
  display: grid;
  gap: 12px;
}

.notes-empty {
  margin: 0;
  color: var(--muted);
}

.note-media {
  display: grid;
  gap: 7px;
  inline-size: min(100%, 760px);
  margin: 6px auto 16px;
}

.note-media--wide {
  inline-size: min(100%, 920px);
}

.note-media--banner {
  inline-size: min(100%, 920px);
}

.note-media--small {
  inline-size: min(100%, 420px);
}

.note-media--left {
  margin-inline: 0 auto;
}

.note-media--right {
  margin-inline: auto 0;
}

.note-media-button {
  display: grid;
  place-items: center;
  inline-size: 100%;
  min-block-size: 180px;
  padding: 0;
  border: 1px solid rgba(217, 213, 193, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent),
    rgba(0, 0, 0, 0.24);
  cursor: zoom-in;
  overflow: hidden;
}

.note-media-button:hover {
  border-color: rgba(217, 213, 193, 0.36);
}

.note-media-button img {
  inline-size: 100%;
  block-size: auto;
  max-block-size: min(62vh, 520px);
  object-fit: contain;
  object-position: center;
}

.note-media--banner .note-media-button {
  aspect-ratio: 2.8 / 1;
  min-block-size: 0;
}

.note-media--banner .note-media-button img,
.note-media--crop .note-media-button img {
  block-size: 100%;
  object-fit: cover;
}

.note-media--top .note-media-button img {
  object-position: center top;
}

.note-media--bottom .note-media-button img {
  object-position: center bottom;
}

.note-media figcaption {
  max-inline-size: 72ch;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.note-media--center figcaption {
  justify-self: center;
  text-align: center;
}

.note-media--right figcaption {
  justify-self: end;
  text-align: right;
}

.note-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  border: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
}

.note-image-lightbox img {
  max-inline-size: min(100%, 1180px);
  max-block-size: 88vh;
  object-fit: contain;
  border: 1px solid rgba(217, 213, 193, 0.32);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.note-entry {
  margin-block-start: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 5, 0.36);
}

.note-entry summary {
  min-block-size: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.note-entry summary::-webkit-details-marker {
  display: none;
}

.note-entry summary::before {
  content: ">";
  color: var(--accent);
}

.note-entry summary span {
  flex: 1;
}

.note-entry summary i {
  color: var(--muted-2);
  font-style: normal;
  font-size: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note-entry summary i::before {
  content: "open";
  font-size: 11px;
}

.note-entry[open] summary {
  border-bottom: 1px solid var(--line);
}

.note-entry[open] summary i {
  color: var(--muted);
}

.note-entry[open] summary i::before {
  content: "close";
}

.note-entry-body {
  padding: 12px;
}

.note-entry-body > .record-body {
  padding: 0;
  border: 0;
  background: transparent;
  inline-size: 100%;
}

.update-history {
  align-self: end;
  margin-block-start: auto;
  padding-block-start: 24px;
}

.update-history > button {
  inline-size: 100%;
  min-block-size: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 5, 0.36);
  color: var(--text);
  cursor: pointer;
  letter-spacing: 0.08em;
  text-align: left;
}

.update-history > button span {
  font-size: 12px;
}

.update-history > button i {
  min-inline-size: 24px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  text-align: center;
}

.update-history > button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.update-history-backdrop {
  position: absolute;
  z-index: 5;
  inset: 48px 0 0;
  background: rgba(5, 6, 5, 0.38);
}

.update-history-backdrop[hidden],
.update-history-window[hidden] {
  display: none;
}

.update-history-window {
  position: absolute;
  z-index: 7;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  inline-size: min(430px, calc(100% - 72px));
  max-block-size: min(380px, calc(100% - 104px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 36%),
    rgba(5, 6, 5, 0.94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6);
}

.update-history-window header {
  min-block-size: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  letter-spacing: 0.08em;
}

.update-history-window ol {
  min-block-size: 0;
  overflow: auto;
  margin: 0;
  padding: 14px 16px 16px 30px;
  color: var(--muted);
  overscroll-behavior: contain;
}

.update-history-window li {
  padding-block: 5px;
  line-height: 1.45;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.status-cell {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.status-cell span,
.status-cell strong {
  display: block;
}

.status-cell span {
  margin-block-end: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.status-cell strong {
  color: var(--text);
  font-weight: 400;
}

.status-grid + .terminal-copy {
  margin-block-start: 16px;
}

.reopen-control {
  position: fixed;
  z-index: 9;
  inset-inline-end: 48px;
  inset-block-end: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 8, 0.88);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.mobile-dock {
  display: none;
}

.studio-shell {
  display: block;
  overflow: auto;
}

.studio-workspace {
  min-height: 100vh;
  padding: clamp(28px, 4vh, 48px) clamp(28px, 5vw, 74px);
}

.studio-header {
  max-inline-size: 1240px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-block-end: 24px;
}

.studio-header h1,
.studio-disabled h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: 0.08em;
}

.studio-return,
.studio-save,
.studio-dropzone button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.studio-return {
  padding: 10px 12px;
}

.studio-grid {
  max-inline-size: 1240px;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 18px;
}

.studio-panel {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 52%),
    var(--panel);
  box-shadow: 0 24px 60px var(--shadow);
}

.studio-panel h2 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.studio-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.studio-panel input,
.studio-panel select,
.studio-panel textarea {
  min-width: 0;
  inline-size: 100%;
  border: 1px solid rgba(217, 213, 193, 0.18);
  background: rgba(5, 6, 5, 0.7);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

.studio-panel input,
.studio-panel select {
  min-block-size: 38px;
  padding: 8px 10px;
}

.studio-panel textarea {
  min-block-size: 320px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

.studio-panel input:focus,
.studio-panel select:focus,
.studio-panel textarea:focus {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.studio-message {
  min-block-size: 64px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.studio-save {
  min-block-size: 42px;
}

.studio-save:disabled,
.studio-dropzone button:disabled,
.weather-action:disabled {
  opacity: 0.5;
  cursor: wait;
}

.studio-editor {
  gap: 18px;
}

.studio-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.studio-fields .span-2 {
  grid-column: 1 / -1;
}

.studio-fields .studio-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-block-size: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(217, 213, 193, 0.18);
  background: rgba(5, 6, 5, 0.7);
}

.studio-fields .studio-check input {
  inline-size: 14px;
  block-size: 14px;
  min-block-size: 0;
}

.studio-fields .studio-check span {
  color: var(--text);
  font-size: 12px;
}

.studio-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  min-block-size: 138px;
  padding: 18px;
  border: 1px dashed rgba(217, 213, 193, 0.32);
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
}

.studio-dropzone input {
  display: none;
}

.studio-dropzone strong {
  color: var(--text);
  font-weight: 400;
}

.studio-dropzone span {
  max-inline-size: 520px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.studio-dropzone button {
  padding: 8px 12px;
}

.studio-body {
  display: grid;
  gap: 8px;
}

.studio-disabled {
  display: grid;
  align-content: center;
  max-inline-size: 760px;
  gap: 18px;
}

.studio-workspace-v2 {
  min-block-size: 100vh;
  padding: clamp(22px, 3vh, 34px) clamp(22px, 4vw, 54px);
}

.studio-header-v2 {
  max-inline-size: none;
  margin-block-end: 18px;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.studio-actions button,
.studio-media-actions button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
}

.studio-actions button {
  min-block-size: 38px;
  padding: 9px 12px;
}

.studio-actions button:disabled {
  opacity: 0.48;
  cursor: wait;
}

.studio-os-grid {
  block-size: calc(100vh - 150px);
  min-block-size: 0;
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 16px;
}

.studio-nav-copy {
  min-width: 0;
  min-block-size: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 8, 0.78);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.studio-nav-copy .brand-block {
  margin-block-end: 16px;
}

.studio-nav-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.studio-record-copy {
  min-width: 0;
  min-block-size: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(6, 7, 6, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.studio-section-copy {
  min-width: 0;
  align-self: start;
  block-size: 100%;
  min-block-size: 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(6, 7, 6, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.studio-section-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.studio-section-header-actions button {
  min-block-size: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.studio-copy-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-block-size: 42px;
  padding: 12px 16px;
  border-block-end: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.studio-copy-bar i {
  max-inline-size: 52ch;
  color: var(--faint);
  font-style: normal;
  letter-spacing: 0.04em;
  text-align: right;
}

.studio-copy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 18px;
  padding: 18px;
}

.studio-copy-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.studio-entry-heading {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  gap: 0;
  min-block-size: 220px;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(217, 213, 193, 0.12);
  background: rgba(255, 255, 255, 0.018);
}

.studio-header-button {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  z-index: 4;
  padding: 7px 10px;
  border: 1px solid rgba(217, 213, 193, 0.22);
  background: rgba(0, 0, 0, 0.5);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  opacity: 0.82;
}

.studio-entry-heading:hover .studio-header-button,
.studio-header-button:focus-visible {
  opacity: 1;
  border-color: rgba(217, 213, 193, 0.44);
  color: var(--text);
  outline: none;
}

.studio-heading-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  inline-size: fit-content;
  max-inline-size: min(860px, calc(100% - 132px));
}

.studio-entry-heading.has-heading-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 5, 0.94), rgba(5, 6, 5, 0.62) 48%, rgba(5, 6, 5, 0.9)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
}

.studio-entry-heading > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.studio-entry-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 300;
  letter-spacing: 0.08em;
}

.studio-heading-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.studio-heading-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.studio-heading-meta > span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.studio-inline-row,
.studio-inline-grid {
  display: grid;
  gap: 10px;
}

.studio-inline-row {
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  align-items: end;
}

.studio-inline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.studio-inline-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-inline-field input,
.studio-inspector select,
.studio-textarea-field textarea {
  min-width: 0;
  inline-size: 100%;
  border: 1px solid rgba(217, 213, 193, 0.18);
  background: rgba(4, 5, 4, 0.72);
  color: var(--text);
  font: inherit;
}

.studio-inline-field input,
.studio-inspector select {
  min-block-size: 36px;
  padding: 8px 10px;
}

.studio-title-edit input {
  border-color: transparent;
  background: transparent;
  padding-inline: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: 0.08em;
}

.studio-editable-text,
.studio-editable-input {
  min-width: 0;
  max-width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.studio-editable-text {
  display: inline-block;
  inline-size: fit-content;
  max-inline-size: 100%;
  padding: 0;
  text-align: left;
  cursor: text;
}

.studio-editable-text:hover,
.studio-editable-text:focus-visible {
  border-color: rgba(217, 213, 193, 0.28);
  background: rgba(217, 213, 193, 0.08);
  outline: none;
}

.studio-editable-input {
  inline-size: min(100%, 32ch);
  padding: 2px 4px;
  border-color: rgba(217, 213, 193, 0.36);
  background: rgba(0, 0, 0, 0.5);
  outline: none;
}

.studio-kind-edit {
  width: fit-content;
  padding: 3px 5px;
  border-color: rgba(217, 213, 193, 0.2);
  background: rgba(217, 213, 193, 0.08);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-id-edit {
  max-inline-size: 18ch;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-align: right;
}

.studio-title-edit {
  display: inline-block;
  inline-size: fit-content;
  max-inline-size: 100%;
  color: var(--text);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

input.studio-title-edit {
  inline-size: min(100%, 18ch);
  padding: 0 4px;
}

.studio-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: auto;
}

.studio-media-actions button {
  padding: 8px 10px;
}

.studio-thumbnail-button {
  width: fit-content;
  margin-block-start: 2px;
  padding: 7px 10px;
  border: 1px solid rgba(217, 213, 193, 0.22);
  background: rgba(0, 0, 0, 0.38);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.studio-thumbnail-button:hover,
.studio-thumbnail-button:focus-visible {
  border-color: rgba(217, 213, 193, 0.44);
  color: var(--text);
  outline: none;
}

.studio-content-terminal {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(217, 213, 193, 0.14);
  background: rgba(255, 255, 255, 0.018);
}

.studio-textarea-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.studio-textarea-field textarea {
  min-block-size: 260px;
  padding: 12px;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}

.studio-content-terminal .studio-textarea-field:first-of-type textarea {
  min-block-size: 116px;
}

.studio-progress-edit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.studio-progress-edit input {
  accent-color: var(--accent);
}

.studio-milestone-editor {
  display: grid;
  gap: 10px;
}

.studio-milestone-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.studio-milestone-head button,
.studio-milestone-row button {
  border: 1px solid rgba(217, 213, 193, 0.18);
  background: rgba(255, 255, 255, 0.026);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.studio-milestone-head button {
  padding: 6px 9px;
}

.studio-milestone-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 86px minmax(0, 0.9fr) 34px;
  gap: 8px;
}

.studio-milestone-row input {
  min-width: 0;
  border: 1px solid rgba(217, 213, 193, 0.18);
  background: rgba(4, 5, 4, 0.72);
  color: var(--text);
  font: inherit;
  min-block-size: 34px;
  padding: 7px 9px;
}

.studio-milestone-row button {
  min-block-size: 34px;
}

.studio-note-editor {
  display: grid;
  gap: 12px;
}

.studio-note-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.studio-note-editor-head button,
.studio-note-row button {
  border: 1px solid rgba(217, 213, 193, 0.18);
  background: rgba(255, 255, 255, 0.026);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.studio-note-editor-head button {
  padding: 7px 10px;
}

.studio-note-edit {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(217, 213, 193, 0.14);
  background: rgba(255, 255, 255, 0.015);
}

.studio-note-edit.is-open {
  border-color: rgba(217, 213, 193, 0.26);
  background: rgba(255, 255, 255, 0.025);
}

.studio-note-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.studio-note-toggle {
  min-inline-size: 82px;
  min-block-size: 38px;
}

.studio-note-edit input,
.studio-note-edit textarea {
  min-width: 0;
  border: 1px solid rgba(217, 213, 193, 0.18);
  background: rgba(4, 5, 4, 0.72);
  color: var(--text);
  font: inherit;
}

.studio-note-edit input {
  min-block-size: 36px;
  padding: 8px 10px;
  font-size: 16px;
}

.studio-note-edit textarea {
  inline-size: 100%;
  min-block-size: 240px;
  padding: 12px;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
}

.studio-note-hint {
  margin: -2px 0 0;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.studio-note-media-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.studio-note-media-tools button {
  min-block-size: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(217, 213, 193, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.studio-note-media-tools button:hover {
  border-color: rgba(217, 213, 193, 0.34);
  color: var(--text);
}

.studio-empty-note {
  margin: 0;
  color: var(--faint);
  font-size: 14px;
}

.studio-sample-preview {
  display: grid;
  place-items: center;
  min-block-size: 180px;
  border: 1px solid rgba(217, 213, 193, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.studio-sample-preview img {
  inline-size: 100%;
  block-size: 100%;
  max-block-size: 260px;
  object-fit: cover;
}

.studio-media-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.studio-media-list article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(217, 213, 193, 0.14);
  background: rgba(255, 255, 255, 0.018);
}

.studio-media-preview-frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(217, 213, 193, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.studio-media-preview-frame img,
.studio-media-preview-frame video {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.studio-media-list span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-media-list button {
  justify-self: start;
  border: 1px solid rgba(217, 213, 193, 0.18);
  background: rgba(255, 255, 255, 0.026);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.studio-copy-aside {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(217, 213, 193, 0.14);
  background: rgba(0, 0, 0, 0.2);
}

.studio-copy-aside h3,
.studio-inspector h3 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.studio-copy-aside ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.studio-copy-aside li button {
  inline-size: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.studio-copy-aside li.is-active button {
  background: rgba(217, 213, 193, 0.1);
  color: var(--text);
}

.studio-inspector {
  display: grid;
  gap: 12px;
  padding-block-start: 16px;
  border-block-start: 1px solid rgba(217, 213, 193, 0.14);
}

.studio-inspector label,
.studio-inspector dl {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.studio-inspector dl {
  margin: 8px 0 0;
}

.studio-inspector dl div {
  display: grid;
  gap: 4px;
}

.studio-inspector dd {
  margin: 0;
  color: var(--text);
}

.studio-copy-aside .studio-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.studio-tag-editor {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(217, 213, 193, 0.12);
  background: rgba(255, 255, 255, 0.018);
}

.studio-tag-editor > span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.studio-tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.studio-tag-suggestions button {
  min-block-size: 26px;
  padding: 0 8px;
  border: 1px solid rgba(217, 213, 193, 0.14);
  background: rgba(217, 213, 193, 0.035);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.studio-tag-suggestions button:hover,
.studio-tag-suggestions button.is-active {
  border-color: rgba(217, 213, 193, 0.38);
  background: rgba(217, 213, 193, 0.09);
  color: var(--text);
}

.studio-tag-editor input {
  inline-size: 100%;
  min-block-size: 34px;
}

.studio-notification-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.studio-notification-button i {
  min-inline-size: 19px;
  block-size: 19px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 213, 193, 0.2);
  color: var(--muted);
  font-style: normal;
  font-size: 10px;
}

.studio-notification-button.is-running i {
  color: var(--text);
}

.studio-notification-button.is-error {
  border-color: rgba(238, 92, 74, 0.58);
  color: #f0b7a8;
}

.studio-notification-button.is-error i {
  border-color: rgba(238, 92, 74, 0.58);
  color: #ffd0c7;
}

.studio-notification-panel {
  position: fixed;
  inset-block-start: 86px;
  inset-inline-end: clamp(22px, 4vw, 54px);
  z-index: 120;
  inline-size: min(520px, calc(100vw - 44px));
  max-block-size: calc(100vh - 118px);
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(217, 213, 193, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), transparent 48%),
    rgba(7, 8, 7, 0.97);
  box-shadow:
    0 28px 78px rgba(0, 0, 0, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.studio-notification-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.studio-notification-head p,
.studio-notification-card span,
.studio-inspector-danger span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.studio-notification-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.08em;
}

.studio-notification-head button,
.studio-inspector-danger button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.studio-notification-card {
  display: grid;
  gap: 12px;
}

.studio-publish-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.studio-publish-summary div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(217, 213, 193, 0.12);
  background: rgba(255, 255, 255, 0.018);
}

.studio-publish-summary dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.studio-publish-summary dd {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-notification-card pre {
  max-block-size: 320px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(217, 213, 193, 0.14);
  background: rgba(0, 0, 0, 0.32);
  color: var(--muted);
  font: 12px/1.55 var(--mono);
  white-space: pre-wrap;
}

.studio-notification-card.is-error span {
  color: #f0b7a8;
}

.studio-inspector-danger {
  display: grid;
  gap: 10px;
  margin-block-start: 8px;
  padding-block-start: 16px;
  border-block-start: 1px solid rgba(238, 92, 74, 0.22);
}

.studio-inspector-danger .studio-danger-action {
  color: #f0b7a8;
  border-color: rgba(238, 92, 74, 0.58);
  background:
    linear-gradient(180deg, rgba(238, 92, 74, 0.11), transparent),
    rgba(74, 13, 10, 0.28);
  box-shadow: inset 0 0 0 1px rgba(238, 92, 74, 0.08);
}

.studio-inspector-danger .studio-danger-action:hover {
  color: #ffd0c7;
  border-color: rgba(255, 112, 92, 0.86);
  background:
    linear-gradient(180deg, rgba(238, 92, 74, 0.18), transparent),
    rgba(96, 18, 13, 0.36);
}

.studio-inspector-danger .studio-danger-action:disabled {
  opacity: 0.48;
  cursor: wait;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

@keyframes headline-write {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes headline-signal {
  50% {
    opacity: 0.58;
    transform: translateX(1px);
  }
}

@keyframes headline-letter-cipher {
  0% {
    opacity: 0;
    filter: blur(1px);
    transform: translateX(-1px);
  }

  12%,
  64% {
    opacity: 0.92;
    filter: blur(0.2px);
    transform: translateX(0);
  }

  82% {
    opacity: 0.42;
    filter: blur(0);
    transform: translateX(1px);
  }

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

@keyframes headline-letter-readable {
  0% {
    opacity: 0;
    filter: blur(1px);
    transform: translateX(1px);
  }

  55% {
    opacity: 0.72;
    filter: blur(0.3px);
  }

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

@keyframes command-panel-decode {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes command-result-enter {
  0% {
    opacity: 0;
    transform: translateY(-2px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nav-panel-readable-enter {
  0% {
    opacity: 0;
    clip-path: inset(0 76% 0 0);
    filter: blur(2px);
    transform: translateX(-2px);
  }

  46% {
    opacity: 0.76;
    clip-path: inset(0 28% 0 0);
    filter: blur(1px);
    transform: translateX(2px);
  }

  100% {
    opacity: 1;
    clip-path: inset(0);
    filter: blur(0);
    transform: translateX(0);
  }
}

@keyframes nav-panel-cipher-exit {
  0% {
    opacity: 1;
    clip-path: inset(0);
  }

  58% {
    opacity: 0.42;
    clip-path: inset(0 0 0 36%);
  }

  100% {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
  }
}

@keyframes headline-cursor-enter {
  to {
    opacity: 1;
  }
}

@keyframes window-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes media-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes boot-exit {
  0%,
  58% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes boot-type {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes boot-flicker {
  50% {
    opacity: 0.42;
    transform: translateX(1px);
  }
}

@keyframes boot-load {
  0% {
    inline-size: 0;
  }

  12% {
    inline-size: 18%;
  }

  24% {
    inline-size: 18%;
  }

  38% {
    inline-size: 47%;
  }

  48% {
    inline-size: 49%;
  }

  58% {
    inline-size: 49%;
  }

  76% {
    inline-size: 82%;
  }

  84% {
    inline-size: 83%;
  }

  100% {
    inline-size: 100%;
  }
}

@keyframes memory-drift {
  from {
    transform: translate3d(-3%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(4%, 2%, 0) scale(1.04);
  }
}

@keyframes memory-orbit {
  0%,
  100% {
    opacity: 0.42;
    transform: translate3d(calc(var(--memory-orbit-x) - 1%), calc(var(--memory-orbit-y) + 1%), 0) rotate(-6deg);
    clip-path: polygon(16% 28%, 42% 9%, 82% 20%, 91% 47%, 74% 73%, 39% 87%, 13% 61%);
  }

  42% {
    opacity: 0.72;
    transform: translate3d(calc(var(--memory-orbit-x) + 2%), calc(var(--memory-orbit-y) - 1%), 0) rotate(4deg);
    clip-path: polygon(20% 23%, 48% 13%, 78% 19%, 88% 50%, 70% 79%, 34% 82%, 10% 55%);
  }

  68% {
    opacity: 0.5;
    transform: translate3d(var(--memory-orbit-x), calc(var(--memory-orbit-y) + 1%), 0) rotate(-2deg);
    clip-path: polygon(12% 32%, 39% 12%, 84% 24%, 86% 44%, 77% 69%, 43% 90%, 17% 64%);
  }
}

@keyframes memory-sphere {
  0%,
  100% {
    opacity: 0.64;
    clip-path: polygon(20% 16%, 61% 8%, 86% 32%, 78% 68%, 49% 91%, 16% 74%, 8% 38%);
    transform: translate3d(calc(var(--memory-core-x) - 1%), calc(var(--memory-core-y) + 1%), 0) rotate(-1deg);
  }

  46% {
    opacity: 0.86;
    clip-path: polygon(16% 21%, 56% 10%, 88% 28%, 82% 63%, 54% 88%, 19% 79%, 10% 43%);
    transform: translate3d(calc(var(--memory-core-x) + 2%), calc(var(--memory-core-y) - 1%), 0) rotate(2deg);
  }
}

@keyframes memory-shell-a {
  0%,
  100% {
    opacity: 0.34;
    transform: rotate(-10deg) translateX(-1%);
  }

  50% {
    opacity: 0.58;
    transform: rotate(13deg) translateX(2%);
  }
}

@keyframes memory-shell-b {
  0%,
  100% {
    opacity: 0.22;
    transform: rotate(18deg) translateY(1%);
  }

  50% {
    opacity: 0.46;
    transform: rotate(-18deg) translateY(-2%);
  }
}

@keyframes memory-pulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scaleX(0.66);
  }

  48% {
    opacity: 0.62;
    transform: scaleX(0.82);
  }
}

@keyframes memory-shard {
  0%,
  100% {
    transform: translate3d(calc(var(--memory-shard-x) - 2%), calc(var(--memory-shard-y) + 1%), 0) rotate(-3deg);
  }

  50% {
    transform: translate3d(calc(var(--memory-shard-x) + 3%), calc(var(--memory-shard-y) - 2%), 0) rotate(5deg);
  }
}

@keyframes memory-scan {
  0%,
  100% {
    transform: translateX(-9%);
  }

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

@keyframes memory-fall {
  to {
    transform: translateY(12%);
  }
}

@keyframes memory-axis {
  0%,
  100% {
    opacity: 0.28;
    transform: translate3d(var(--memory-axis-x), var(--memory-axis-y), 0) rotate(-4deg) scale(0.96);
  }

  35% {
    opacity: 0.52;
    transform: translate3d(var(--memory-axis-x), var(--memory-axis-y), 0) rotate(3deg) scale(1.02);
  }

  64% {
    opacity: 0.38;
    transform: translate3d(var(--memory-axis-x), var(--memory-axis-y), 0) rotate(-1deg) scale(0.99);
  }
}

@keyframes memory-cipher {
  0%,
  100% {
    opacity: 0.42;
    transform: translateX(-2px);
  }

  38% {
    opacity: 0.82;
    transform: translateX(1px);
  }

  44% {
    opacity: 0.24;
    transform: translateX(4px);
  }

  48% {
    opacity: 0.74;
    transform: translateX(0);
  }
}

@keyframes memory-nodes {
  0%,
  100% {
    opacity: 0.46;
    transform: translate3d(calc(var(--memory-shard-x) - 1%), calc(var(--memory-shard-y) + 1%), 0) scale(0.97);
  }

  50% {
    opacity: 0.82;
    transform: translate3d(calc(var(--memory-shard-x) + 2%), calc(var(--memory-shard-y) - 1%), 0) scale(1.03);
  }
}

@media (max-width: 1180px) {
  .archive-shell {
    --sidebar-width: 292px;
  }

  .dashboard-grid {
    max-inline-size: 900px;
    grid-template-columns: minmax(260px, 1fr) minmax(210px, 0.82fr);
  }

  .weather-panel {
    grid-column: span 2;
    grid-row: auto;
  }

  .memory-panel {
    grid-column: span 2;
    grid-row: auto;
  }

  .record-window {
    inline-size: min(820px, calc(100vw - var(--sidebar-width) - 36px));
  }

  .archive-nav-panel {
    inline-size: min(610px, calc(100vw - var(--sidebar-width) - 48px));
    inset-inline-start: calc(var(--sidebar-width) + 18px);
  }

  .record-layout {
    grid-template-columns: 1fr;
  }

  .record-aside {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.72fr);
  }
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .archive-shell {
    height: auto;
    min-height: 100vh;
    display: block;
    overflow: visible;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 35;
    height: auto;
    gap: 8px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 56%),
      rgba(4, 5, 4, 0.94);
    backdrop-filter: blur(14px);
  }

  .brand-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding-block-end: 6px;
    border-block-end: 1px dashed rgba(217, 213, 193, 0.18);
  }

  .brand-row {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, auto) auto;
    justify-content: space-between;
    align-items: center;
  }

  .brand {
    font-size: clamp(20px, 5.5vw, 28px);
    letter-spacing: 0.24em;
  }

  .brand-block i {
    display: none;
  }

  .desktop-brand-meta,
  .brand-block .version-label {
    display: none;
  }

  .mobile-brand-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .mobile-brand-meta span + span {
    padding-inline-start: 8px;
    border-inline-start: 1px solid rgba(217, 213, 193, 0.18);
  }

  .mobile-clock {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--text);
    font-size: 10px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .archive-menu-toggle {
    display: inline-grid;
    inline-size: 48px;
    min-inline-size: 48px;
    block-size: 44px;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
    border-color: transparent;
    background: transparent;
  }

  .archive-menu-toggle:hover,
  .archive-menu-toggle.is-active {
    border-color: transparent;
    background: transparent;
    color: var(--text);
  }

  .archive-menu-glyph {
    justify-self: center;
    align-self: center;
    inline-size: 27px;
    block-size: 22px;
  }

  .brand-block .archive-menu-code {
    display: none;
  }

  .brand-block .archive-menu-toggle span {
    font-size: 9px;
  }

  .archive-nav-panel {
    inset: 82px 12px 82px;
    inline-size: auto;
    padding: 16px;
  }

  .archive-nav-panel header {
    align-items: start;
    display: grid;
    gap: 6px;
  }

  .archive-nav-actions button {
    min-block-size: 76px;
  }

  .archive-nav-panel .nav-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    overflow: auto;
    padding-inline-end: 2px;
  }

  .archive-nav-panel .nav-stack--archive {
    grid-template-columns: 1fr;
    align-content: end;
  }

  .archive-nav-panel .nav-group {
    flex: initial;
  }

  .archive-nav-panel .nav-trigger {
    min-block-size: 94px;
    grid-template-columns: 28px minmax(0, 1fr) 14px;
    gap: 12px;
    padding: 14px;
  }

  .archive-nav-panel .nav-stack--archive .nav-trigger {
    min-block-size: 76px;
  }

  .archive-nav-panel .nav-mark {
    inline-size: 24px;
    block-size: 24px;
  }

  .archive-nav-panel .nav-label {
    min-block-size: auto;
    padding-inline-end: 0;
  }

  .archive-nav-panel .nav-trigger strong {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .archive-nav-panel .nav-trigger small,
  .archive-nav-panel .nav-cipher {
    margin-block-start: 7px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .archive-nav-panel .nav-readable {
    opacity: 0;
    transform: translateY(3px);
    filter: blur(2px);
    animation: nav-panel-readable-enter 620ms steps(5, end) 120ms both !important;
  }

  .archive-nav-panel .nav-cipher {
    position: static;
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    animation: nav-panel-cipher-exit 620ms steps(5, end) 120ms both !important;
  }

  .sidebar nav {
    display: none;
    gap: 6px;
  }

  .sidebar-label {
    display: none;
  }

  .nav-stack {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    scrollbar-width: none;
  }

  .nav-stack::-webkit-scrollbar {
    display: none;
  }

  .nav-group {
    flex: 0 0 clamp(104px, 30vw, 132px);
    min-width: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 58%),
      rgba(255, 255, 255, 0.014);
  }

  .nav-trigger {
    min-block-size: 46px;
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-rows: 1fr;
    justify-items: stretch;
    align-content: center;
    gap: 6px;
    padding: 6px 7px;
  }

  .nav-mark {
    inline-size: 20px;
    block-size: 20px;
  }

  .nav-label {
    min-block-size: 28px;
    padding-inline-end: 16px;
  }

  .nav-trigger strong {
    font-size: 8px;
    letter-spacing: 0.03em;
  }

  .nav-trigger small {
    max-inline-size: 100%;
    margin-block-start: 1px;
    font-size: 9px;
    letter-spacing: 0.03em;
  }

  .nav-readable {
    position: relative;
    z-index: 2;
    opacity: 1;
    transform: none;
    filter: none;
    animation: none !important;
    clip-path: none;
    pointer-events: none;
  }

  .nav-readable::before {
    display: none !important;
    content: none;
  }

  .nav-cipher {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    z-index: 1;
    display: block;
    max-inline-size: 24px;
    overflow: hidden;
    color: rgba(217, 213, 193, 0.34);
    font-size: 7px;
    letter-spacing: 0.08em;
    text-overflow: clip;
    white-space: nowrap;
    opacity: 0.34;
    transform: none;
    filter: none;
    animation: none !important;
  }

  .nav-trigger:hover .nav-readable,
  .nav-trigger:focus-visible .nav-readable {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .nav-trigger:hover .nav-cipher,
  .nav-trigger:focus-visible .nav-cipher {
    opacity: 0.34;
    transform: none;
    filter: none;
    animation: none;
  }

  .section-signal {
    display: none;
  }

  .system-status {
    display: none;
  }

  .workspace {
    height: auto;
    min-height: 100vh;
    display: block;
    overflow: visible;
    padding: 30px 18px 96px;
  }

  .workspace::after {
    display: none;
  }

  .workspace::before {
    inset: 10px;
  }

  .workspace-header {
    position: static;
    z-index: 30;
    display: block;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .workspace-header .route-label {
    display: none;
  }

  .workspace-header > div:first-child {
    display: none;
  }

  .workspace-header h1 {
    font-size: clamp(30px, 10vw, 48px);
  }

  .time-block {
    display: none;
  }

  .time-block .icon-button {
    display: none;
  }

  .search-panel {
    position: static;
    inline-size: 100%;
    grid-column: 1 / -1;
  }

  .command-panel {
    animation-duration: 180ms;
  }

  .workspace-footer {
    position: static;
    inline-size: auto;
    margin-block-start: 28px;
  }

  .dashboard-grid,
  .wide-panel {
    grid-template-columns: 1fr;
    grid-column: auto;
    inline-size: 100%;
    max-inline-size: none;
  }

  .weather-panel {
    grid-column: auto;
  }

  .memory-panel {
    grid-column: auto;
    min-block-size: 260px;
  }

  .memory-loop {
    min-block-size: 238px;
  }

  .section-page {
    max-inline-size: none;
  }

  .section-split-grid {
    grid-template-columns: 1fr;
  }

  .section-page-header,
  .section-record {
    grid-template-columns: 1fr;
  }

  .section-page-header {
    padding: 16px;
  }

  .section-record {
    min-block-size: 152px;
    grid-template-areas:
      "kind"
      "title"
      "summary"
      "date";
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    align-content: stretch;
    gap: 0;
    row-gap: 11px;
    padding: 18px 16px;
  }

  .section-record-column .section-record {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kind"
      "title"
      "summary"
      "date";
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    align-content: stretch;
    row-gap: 11px;
  }

  .section-record-tags,
  .section-record-column .section-record-tags {
    display: none;
  }

  .section-record strong {
    line-height: 1.25;
    white-space: normal;
  }

  .section-record span:not(.section-record-kind) {
    white-space: normal;
    line-height: 1.48;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .section-record-column .section-record > span:not(.section-record-kind) {
    padding-block-start: 0;
    line-height: 1.48;
    -webkit-line-clamp: 3;
  }

  .section-record-column .section-record i {
    max-inline-size: none;
    padding-block-start: 4px;
    line-height: 1.45;
  }

  .section-record i {
    justify-self: start;
    align-self: end;
    padding-block-start: 4px;
    line-height: 1.45;
  }

  .record-window,
  .record-window.is-maximized,
  .timeline-window {
    inset: 12px;
    inline-size: auto;
    display: grid;
    max-block-size: calc(100vh - 24px);
    margin-inline: 0;
  }

  .timeline-body {
    padding: 20px 18px;
  }

  .timeline-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .timeline-list time {
    padding-block-start: 0;
  }

  .record-layout {
    block-size: 100%;
    padding: 22px 18px;
  }

  .window-bar {
    padding-inline: 18px 14px;
  }

  .window-actions button {
    inline-size: 34px;
    block-size: 34px;
  }

  .record-heading h2 {
    font-size: 34px;
  }

  .record-id {
    position: static;
    display: block;
    margin-block: 6px 12px;
  }

  .milestone {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .milestone > span:first-child,
  .milestone em {
    justify-self: start;
    white-space: normal;
  }

  .record-aside {
    grid-template-columns: 1fr;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .sample-grid {
    grid-template-columns: 1fr;
  }

  .media-alert-field {
    min-block-size: auto;
    padding: 78px 12px 12px;
  }

  .media-alert-header {
    inset-block-start: 12px;
    inset-inline: 12px;
  }

  .media-popup-layer {
    position: relative;
    display: grid;
    gap: 12px;
  }

  .media-popup,
  .media-popup:nth-child(1),
  .media-popup:nth-child(2),
  .media-popup:nth-child(3),
  .media-popup:nth-child(4),
  .media-popup:nth-child(5),
  .media-popup:nth-child(6) {
    position: relative;
    inset: auto;
    inline-size: 100%;
  }

  .studio-workspace {
    padding: 30px 18px 72px;
  }

  .studio-header {
    display: grid;
  }

  .studio-grid,
  .studio-fields {
    grid-template-columns: 1fr;
  }

  .studio-fields .span-2 {
    grid-column: auto;
  }

}

@media (max-width: 720px) {
  body {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 54px 54px,
      linear-gradient(0deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px) 0 0 / 54px 54px,
      #050605;
  }

  .archive-shell::before {
    opacity: 0.24;
  }

  .sidebar {
    padding: 8px 10px 9px;
  }

  .nav-stack {
    gap: 5px;
  }

  .nav-trigger {
    min-block-size: 44px;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 5px;
    padding: 6px;
  }

  .nav-mark {
    inline-size: 18px;
    block-size: 18px;
  }

  .nav-label {
    min-block-size: 26px;
    padding-inline-end: 12px;
  }

  .nav-trigger strong {
    font-size: 8px;
  }

  .nav-trigger small {
    font-size: 8px;
  }

  .nav-cipher {
    max-inline-size: 18px;
  }

  .system-status {
    display: none;
  }

  .workspace {
    padding: 20px 12px 118px;
  }

  .workspace-header {
    margin: 0 0 16px;
  }

  .workspace-header::after {
    display: none;
  }

  .dashboard-panel {
    min-block-size: 116px;
    position: relative;
    padding: 15px;
    overflow: hidden;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  }

  .dashboard-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.34;
    background:
      linear-gradient(90deg, rgba(217, 213, 193, 0.12), transparent 22% 78%, rgba(217, 213, 193, 0.08)),
      repeating-linear-gradient(90deg, transparent 0 18px, rgba(217, 213, 193, 0.045) 19px, transparent 20px 48px);
  }

  .dashboard-panel > * {
    position: relative;
    z-index: 1;
  }

  .dashboard-panel h2 {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .dashboard-panel h2::before {
    content: "";
    inline-size: 7px;
    block-size: 7px;
    border: 1px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.75;
  }

  .dashboard-grid {
    gap: 12px;
  }

  .wide-panel:first-child {
    min-block-size: 178px;
  }

  .memory-panel {
    min-block-size: 280px;
  }

  .memory-loop {
    block-size: 250px;
    min-block-size: 250px;
  }

  .record-list button {
    min-block-size: 54px;
  }

  .current-game {
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }

  .latest-log p,
  .activity-feed {
    font-size: 12px;
  }

  .section-page {
    gap: 12px;
  }

  .section-record-column {
    padding: 12px;
  }

  .section-record-column .section-record-grid {
    grid-auto-rows: 168px;
  }

  .section-record-column .section-record {
    block-size: 168px;
    row-gap: 12px;
  }

  .section-record {
    min-block-size: 168px;
    row-gap: 12px;
  }

  .record-window,
  .record-window.is-maximized,
  .timeline-window {
    inset: 0;
    max-block-size: 100dvh;
    border-inline: 0;
    border-block: 0;
  }

  .record-layout {
    padding: 18px 14px 24px;
  }

  .record-heading.has-heading-banner {
    min-block-size: 240px;
    padding: 86px 16px 22px;
  }

  .record-heading h2 {
    font-size: clamp(30px, 11vw, 42px);
  }

  .record-heading p {
    line-height: 1.55;
  }

  .record-aside {
    gap: 16px;
  }

  .record-aside ol {
    grid-template-columns: 1fr;
  }

  .note-search-panel {
    position: static;
  }

  .note-image-lightbox {
    padding: 12px;
  }

  .reopen-control {
    inset-inline: 12px;
    inset-block-end: 14px;
    justify-content: center;
  }

  .mobile-dock {
    position: fixed;
    z-index: 34;
    inset-inline: 10px;
    inset-block-end: 9px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.22fr 1fr 1fr;
    align-items: end;
    gap: 7px;
    padding: 8px 6px;
    border-block-start: 1px solid rgba(217, 213, 193, 0.16);
    background:
      linear-gradient(180deg, rgba(5, 6, 5, 0), rgba(5, 6, 5, 0.92) 20%),
      rgba(5, 6, 5, 0.72);
    backdrop-filter: blur(10px);
  }

  .mobile-dock button {
    min-width: 0;
    min-block-size: 58px;
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 7px 3px 6px;
    border: 1px solid rgba(217, 213, 193, 0.14);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 68%),
      rgba(255, 255, 255, 0.018);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .mobile-dock button.is-center {
    min-block-size: 78px;
    margin-block-start: -16px;
    border-color: rgba(217, 213, 193, 0.28);
    background:
      linear-gradient(180deg, rgba(217, 213, 193, 0.09), transparent 68%),
      rgba(255, 255, 255, 0.035);
  }

  .mobile-dock .nav-mark {
    inline-size: 22px;
    block-size: 22px;
  }

  .mobile-dock button.is-center .nav-mark {
    inline-size: 30px;
    block-size: 30px;
  }

  .mobile-dock button small {
    max-inline-size: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-dock button:hover,
  .mobile-dock button.is-active {
    border-color: rgba(217, 213, 193, 0.3);
    background: rgba(255, 255, 255, 0.052);
    color: var(--text);
  }

  .mobile-dock button:disabled {
    opacity: 0.38;
    cursor: default;
  }

  .archive-shell.has-record .mobile-dock {
    display: none;
  }
}

@media (max-width: 420px) {
  .nav-stack {
    gap: 5px;
  }

  .nav-group {
    flex-basis: 106px;
  }

  .nav-trigger {
    min-block-size: 42px;
  }

  .nav-trigger strong {
    font-size: 8px;
  }

  .nav-trigger small {
    font-size: 8px;
  }

  .nav-cipher {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
