﻿@import url("https://fonts.cdnfonts.com/css/neue-montreal");
@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap");

/* Theme tokens */
:root {
  color-scheme: dark;
  --bg: #2b0000;
  --panel: #000000;
  --panel-raised: #090404;
  --panel-recessed: #140707;
  --plate: #170909;
  --text: #e5e5e5;
  --muted: rgba(229, 229, 229, 0.65);
  --accent: #ff2b2b;
  --accent-soft: rgba(255, 43, 43, 0.25);
  --line: rgba(255, 43, 43, 0.28);
  --line-strong: rgba(255, 43, 43, 0.72);
  --line-heavy: rgba(255, 43, 43, 0.9);
  --edge-light: rgba(255, 255, 255, 0.08);
  --shadow-hard: rgba(0, 0, 0, 0.72);
}

/* Local font assets */
@font-face {
  font-family: "Akira Expanded";
  src: url("Akira Expanded Demo.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Base reset and document defaults */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(255, 43, 43, 0.12), transparent 28%),
    linear-gradient(180deg, #090000 0%, #1b0202 38%, #0d0101 100%);
  color: var(--text);
  font-family: "Neue Montreal", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  letter-spacing: 0.01em;
  font-weight: 500;
  min-height: 100vh;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body.terminal-open,
body.vm-open {
  overflow: hidden;
}

/* Flatline and breach states */
body.flatline-mode {
  --bg: #000000;
  --panel: #030303;
  --accent: #b8b8b8;
  --accent-soft: rgba(184, 184, 184, 0.16);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.2);
  overflow-x: hidden;
}

body.flatline-breach .site-wrapper {
  filter: contrast(1.04) saturate(1.08);
}

body.flatline-breach .fx-glitch {
  opacity: 0.12;
  animation-duration: 2.1s;
  background: rgba(255, 255, 255, 0.05);
}

body.flatline-breach .nav {
  transform: translate(0.4rem, -0.1rem);
}

body.flatline-breach .hero-inner {
  transform: translate(-0.8rem, 0.2rem);
}

body.flatline-breach .release-card:nth-child(odd),
body.flatline-breach .contact-card:nth-child(odd) {
  transform: translate(-0.55rem, 0.25rem) rotate(-0.25deg);
}

body.flatline-breach .release-card:nth-child(even),
body.flatline-breach .contact-card:nth-child(even) {
  transform: translate(0.45rem, -0.2rem) rotate(0.22deg);
}

body.flatline-breach .about-text,
body.flatline-breach .about-portrait,
body.flatline-breach .heartbeat-display,
body.flatline-breach .footer {
  transform: translate(0.35rem, 0) skewX(-0.5deg);
}

body.is-restore-attempt .site-wrapper {
  animation: restoreAttemptPulse 0.24s ease-out 1;
}

body.is-restore-attempt .site-wrapper::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.045);
  pointer-events: none;
  z-index: 3;
  animation: restoreAttemptVeil 0.24s ease-out 1;
}

body.flatline-mode .hero {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.9));
}

body.flatline-mode .brand-mark::after {
  color: rgba(255, 255, 255, 0.35);
}

body.flatline-mode .heartbeat-display {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Shared utility classes */
.mono {
  font-family: "Space Mono", "Courier New", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Boot overlay and power-on state */
.boot-screen {
  position: fixed;
  inset: 0;
  background: #000000;
  color: var(--text);
  display: grid;
  place-items: center;
  z-index: 100;
  overflow: hidden;
  isolation: isolate;
  filter: none;
}

.boot-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: #000000;
  mix-blend-mode: normal;
  filter: none;
  pointer-events: none;
}

.boot-screen::after {
  content: none;
}

.boot-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-screen.is-opening {
  animation: bootPowerOnMask 1.12s ease-out forwards;
}

.crt-close-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: scaleX(0.01);
  transform-origin: center center;
  pointer-events: none;
}

.boot-screen.is-opening .crt-close-line {
  animation: crtPowerOnLine 1.12s ease-out forwards;
}

.boot-noise {
  position: absolute;
  inset: -20%;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0 0.7px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.16) 0 0.7px, transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.18) 0 0.6px, transparent 1px);
  background-size: 120px 120px, 110px 110px, 140px 140px;
  animation: grain 6s steps(2) infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.boot-noise::after {
  content: "";
  position: absolute;
  inset: -10%;
  opacity: 0.15;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08) 0px,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 3px,
    transparent 6px
  );
  animation: scan 8s linear infinite;
  mix-blend-mode: screen;
}

/* Site shell and analog overlays */
.site-wrapper {
  position: relative;
  min-height: 100vh;
  opacity: 0;
  transition: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 16%),
    linear-gradient(180deg, rgba(255, 43, 43, 0.05), transparent 38%),
    var(--bg);
  overflow-x: clip;
}

.site-wrapper.is-ready {
  opacity: 1;
}

.site-wrapper.is-powering-on {
  animation: crtPowerOnScreen 1.12s ease-out forwards;
  transform-origin: 50% var(--boot-origin-y, 50vh);
  overflow: hidden;
}

.site-wrapper.is-ready.is-show-glitch {
  animation: siteGlitch 0.18s steps(1) 1;
}

.rgb-split {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.site-wrapper.is-ready.is-show-glitch .rgb-split {
  opacity: 1;
  animation: rgbFlicker 0.18s steps(1) 1;
}

.site-wrapper.is-boot-glitch .rgb-split::before {
  background: rgba(255, 43, 43, 0.2);
  transform: translate(-3px, 0);
}

.site-wrapper.is-boot-glitch .rgb-split::after {
  background: rgba(0, 0, 0, 0.18);
  mix-blend-mode: multiply;
  transform: translate(3px, 0);
}

.rgb-split::before,
.rgb-split::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
}

.rgb-split::before {
  background: rgba(255, 0, 0, 0.22);
  transform: translate(-4px, 0);
}

.rgb-split::after {
  background: rgba(0, 120, 255, 0.2);
  transform: translate(4px, 0);
}

.fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.fx-grain,
.fx-scanlines,
.fx-glitch {
  position: absolute;
  inset: 0;
}

.fx-grain {
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.14) 0 0.8px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0 0.8px, transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.12) 0 0.7px, transparent 1px);
  background-size: 120px 120px, 110px 110px, 140px 140px;
  mix-blend-mode: screen;
}

.fx-scanlines {
  opacity: 0.12;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 3px,
    transparent 6px
  );
  mix-blend-mode: screen;
}

.fx-glitch {
  opacity: 0;
  background: rgba(255, 43, 43, 0.18);
  mix-blend-mode: screen;
}

/* Header and brand */
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 2rem 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 28%),
    linear-gradient(180deg, rgba(18, 8, 8, 0.96), rgba(0, 0, 0, 0.97));
  border-bottom: 3px solid var(--line-heavy);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(0, 0, 0, 0.58),
    0 14px 28px rgba(0, 0, 0, 0.34);
  backdrop-filter: none;
}

.nav-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.nav-brand-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  width: max-content;
  max-width: 100%;
}

.brand {
  font-size: 1.12rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: "Akira Expanded", "Neue Montreal", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

.brand-mark {
  display: inline-block;
  position: relative;
  text-shadow: 0 0 12px rgba(229, 229, 229, 0.24);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
  animation: textFlicker 9s infinite;
}

.brand-r {
  position: static;
  font-family: "Space Mono", "Courier New", monospace;
  display: inline-block;
  margin-left: 0.18rem;
  font-size: 0.42rem;
  line-height: 1;
  vertical-align: top;
  color: var(--text);
}

.nav-notice {
  position: absolute;
  top: calc(100% + 8px);
  left: 0.08rem;
  right: 0.62rem;
  display: inline-flex;
  align-items: center;
  min-height: 1.68rem;
  padding: 0.3rem 0.65rem 0.36rem;
  border: 2px solid var(--line);
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(255, 43, 43, 0.06), transparent 45%),
    var(--panel-recessed);
  color: var(--muted);
  font-size: 0.54rem;
  letter-spacing: 0.13em;
  line-height: 1.25;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.52),
    0 10px 18px rgba(0, 0, 0, 0.3);
}

.nav-notice-text {
  display: block;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.nav-notice.is-swapping .nav-notice-text {
  opacity: 0;
  transform: translateY(2px);
}

body.flatline-mode .nav-notice[data-notice-mode="flatline"] {
  color: rgba(222, 226, 232, 0.8);
  border-color: rgba(140, 149, 164, 0.55);
  border-top: 0;
  background: rgba(5, 5, 5, 0.98);
}

.brand-mark::before,
.brand-mark::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.brand-mark::before {
  color: rgba(229, 229, 229, 0.7);
  transform: translate(1px, -1px);
  filter: blur(0.6px);
  animation: brandGrain 11s steps(1) infinite;
}

.brand-mark::after {
  color: rgba(255, 43, 43, 0.45);
  transform: translate(-1px, 1px);
  clip-path: inset(35% 0 45% 0);
  animation: brandGlitch 13s steps(1) infinite;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 3.05rem;
  padding: 0.68rem 1rem 0.62rem;
  border: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 35%),
    var(--panel-raised);
  color: var(--text);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.76),
    0 0 0 1px rgba(0, 0, 0, 0.62);
}

.nav-toggle:hover,
.nav-toggle:focus-visible,
.nav-toggle.is-open {
  color: var(--accent);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 43, 43, 0.07), transparent 40%),
    var(--panel-raised);
}

.nav-links {
  display: flex;
  gap: 0.42rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.82rem;
  padding: 0.58rem 0.9rem 0.54rem;
  border: 2px solid rgba(255, 43, 43, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 34%),
    var(--panel-raised);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(0, 0, 0, 0.58);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  opacity: 1;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 43, 43, 0.08), transparent 40%),
    var(--panel-recessed);
}

/* Main layout */
main {
  position: relative;
  z-index: 2;
}

/* Hero and heartbeat */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 6.05rem 1.75rem 3.2rem;
  background:
    radial-gradient(circle at top, rgba(255, 43, 43, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.82));
}

.hero-inner {
  width: min(100%, 56rem);
  max-width: 56rem;
  padding: 1.85rem 1.8rem 1.58rem;
  border: 3px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    linear-gradient(180deg, rgba(255, 43, 43, 0.055), transparent 42%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(7, 1, 1, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.68),
    0 22px 46px rgba(0, 0, 0, 0.44);
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.28rem 0.58rem;
  border: 2px solid rgba(255, 43, 43, 0.24);
  background: var(--panel-recessed);
  color: var(--muted);
  font-size: 0.7rem;
  margin: 0 0 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.76);
}

.hero-title {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.55rem, 1.4vw, 1rem);
  font-size: clamp(2.8rem, 8vw, 6rem);
  margin: 0 0 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-shadow: 0 0 24px rgba(255, 43, 43, 0.18);
  font-family: "Akira Expanded", "Neue Montreal", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  white-space: nowrap;
}

.hero-title .brand-mark {
  color: var(--text);
  white-space: nowrap;
}

.hero-title .brand-mark::after {
  opacity: 0;
  animation: none;
}

.hero-brand-letter {
  display: inline-block;
  min-width: 0.72ch;
}

body.flatline-mode .hero-title .brand-mark.is-corrupt .hero-brand-letter.is-frozen {
  color: rgba(255, 255, 255, 0.55);
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.18),
    0 0 10px rgba(255, 255, 255, 0.08);
}

body.flatline-mode .hero-title .brand-mark.is-corrupt .hero-brand-letter.is-flicker {
  animation: heroLetterFlicker 0.16s steps(1) infinite;
}

body.flatline-mode .hero-title .brand-mark.is-corrupt .hero-brand-letter.is-ghost {
  text-shadow:
    -1px 0 rgba(255, 255, 255, 0.24),
    1px 0 rgba(184, 184, 184, 0.16),
    0 0 8px rgba(255, 255, 255, 0.08);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.28rem 0.7rem 0.3rem;
  border: 2px solid rgba(255, 43, 43, 0.24);
  background: var(--panel-recessed);
  font-size: 0.85rem;
  color: var(--accent);
  min-height: 1.3rem;
  margin: 0 0 1.25rem;
  position: relative;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.76);
}

.hero-status::after {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 1rem;
  background: var(--accent);
  margin-left: 0.4rem;
  animation: blink 1s steps(2, start) infinite;
  vertical-align: -0.2rem;
}

.hero-intro {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
  margin: 0 auto 1.75rem;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 43, 43, 0.12);
}

.heartbeat {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
}

.heartbeat-meta {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.7ch;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.16em;
}

.heartbeat-label {
  flex: 0 0 auto;
}

.heartbeat-meta.flatline-centered {
  justify-content: center;
}

.heartbeat-meta.flatline-centered .heartbeat-label {
  display: none;
}

.heartbeat-state {
  display: inline-flex;
  width: 8ch;
  flex: 0 0 8ch;
  justify-content: flex-start;
  text-align: left;
  white-space: nowrap;
}

.heartbeat-state.stable {
  color: var(--muted);
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.15),
    0 0 10px rgba(255, 255, 255, 0.12);
}

.heartbeat-state.unstable {
  color: var(--accent);
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.7),
    0 0 12px rgba(255, 43, 43, 0.75),
    0 0 22px rgba(255, 43, 43, 0.55);
}

.heartbeat-state.flatline {
  color: #b8b8b8;
  width: auto;
  flex: 0 0 auto;
  justify-content: center;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.5),
    0 0 10px rgba(255, 255, 255, 0.12);
}

.heartbeat-state .glitch-letter {
  display: inline-block;
}

.heartbeat-state.flatline .glitch-letter {
  animation: none;
}

.heartbeat-state.unstable .glitch-letter {
  animation: letterFlip 0.7s steps(1) infinite;
  animation-delay: calc(var(--flip-index, 0) * 60ms);
}

.pending-dots {
  display: inline-flex;
  margin-left: 0.05em;
}

.pending-dot {
  display: inline-block;
  opacity: 0.15;
  animation: pendingDot 1.1s steps(1) infinite;
  animation-delay: calc(var(--dot-index, 0) * 140ms);
}

.heartbeat-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    rgba(5, 5, 5, 0.82);
  border: 2px solid var(--line);
  padding: 0.7rem 1rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.76);
}

.heartbeat-display::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 6px);
  opacity: 0.25;
  pointer-events: none;
}

.heartbeat-display::after {
  content: "";
  position: absolute;
  inset: -20% 0 auto 0;
  height: 60%;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.25), transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.heartbeat-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(80, 255, 150, 0.25);
  box-shadow: 0 0 6px rgba(80, 255, 150, 0.25);
  transition: background 0.1s ease, box-shadow 0.1s ease;
}

.pulse-line {
  width: 200px;
  height: 36px;
  flex: 0 0 auto;
}

.pulse-line polyline {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(229, 229, 229, 0.2));
}

.pulse-line polyline.flatline {
  stroke: #111111;
  filter: none;
}

@keyframes pendingDot {
  0%,
  18% {
    opacity: 0.15;
  }
  19%,
  42% {
    opacity: 1;
  }
  43%,
  100% {
    opacity: 0.15;
  }
}

@keyframes heroLetterFlicker {
  0%,
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  25% {
    opacity: 0.22;
  }
  40% {
    opacity: 1;
    transform: translate3d(-0.02em, 0, 0);
  }
  58% {
    opacity: 0.35;
  }
  72% {
    opacity: 1;
    transform: translate3d(0.02em, 0, 0);
  }
}

@keyframes contactStatusVoltage {
  0% {
    opacity: 0.84;
    filter: brightness(0.9);
    transform: translate3d(0, 0, 0);
    text-shadow:
      0 0 4px rgba(80, 255, 150, 0.28),
      0 0 12px rgba(80, 255, 150, 0.14);
  }
  16% {
    opacity: 0.9;
    filter: brightness(0.98);
    text-shadow:
      0 0 5px rgba(80, 255, 150, 0.32),
      0 0 14px rgba(80, 255, 150, 0.16);
  }
  38% {
    opacity: 0.98;
    filter: brightness(1.08);
    text-shadow:
      0 0 6px rgba(80, 255, 150, 0.42),
      0 0 18px rgba(80, 255, 150, 0.22);
  }
  48% {
    opacity: 1;
    filter: brightness(1.14);
    text-shadow:
      0 0 7px rgba(80, 255, 150, 0.48),
      0 0 23px rgba(80, 255, 150, 0.28);
  }
  53% {
    opacity: 0.99;
    filter: brightness(1.12);
    text-shadow:
      0 0 7px rgba(80, 255, 150, 0.46),
      0 0 22px rgba(80, 255, 150, 0.27);
  }
  58.5% {
    opacity: 0.74;
    filter: brightness(0.76);
    text-shadow:
      0 0 3px rgba(80, 255, 150, 0.2),
      0 0 8px rgba(80, 255, 150, 0.09);
  }
  59.4% {
    opacity: 0.96;
    filter: brightness(1.06);
    text-shadow:
      0 0 6px rgba(80, 255, 150, 0.4),
      0 0 17px rgba(80, 255, 150, 0.2);
  }
  74% {
    opacity: 0.92;
    filter: brightness(1);
    text-shadow:
      0 0 5px rgba(80, 255, 150, 0.34),
      0 0 15px rgba(80, 255, 150, 0.17);
  }
  88% {
    opacity: 0.86;
    filter: brightness(0.93);
    text-shadow:
      0 0 4px rgba(80, 255, 150, 0.29),
      0 0 12px rgba(80, 255, 150, 0.14);
  }
  100% {
    opacity: 0.84;
    filter: brightness(0.9);
    transform: translate3d(0, 0, 0);
    text-shadow:
      0 0 4px rgba(80, 255, 150, 0.28),
      0 0 12px rgba(80, 255, 150, 0.14);
  }
}

/* Shared buttons and section scaffolding */
.btn {
  border: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 36%),
    var(--panel-raised);
  color: var(--text);
  padding: 0.82rem 1.5rem 0.76rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.68);
  transition: border-color 0.12s linear, box-shadow 0.12s linear, color 0.12s linear, background 0.12s linear;
}

.btn:hover,
.btn:focus-visible {
  color: var(--accent);
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.76),
    0 0 0 1px rgba(0, 0, 0, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 43, 43, 0.08), transparent 38%),
    var(--panel-recessed);
}

/* Content sections */
.section {
  position: relative;
  padding: 4.05rem 2rem;
  border-top: 3px solid rgba(255, 43, 43, 0.16);
  border-bottom: 3px solid rgba(0, 0, 0, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 12%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.46));
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 3px solid var(--line);
  padding-bottom: 0.9rem;
  margin-bottom: 1.35rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  margin: 0 0 0.45rem;
  padding: 0.2rem 0.48rem;
  border: 2px solid rgba(255, 43, 43, 0.18);
  background: var(--panel-recessed);
  font-size: 0.7rem;
  color: var(--muted);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.74);
}

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  margin: 0;
  padding: 0.2rem 0.52rem;
  border: 2px solid rgba(255, 43, 43, 0.18);
  background: var(--panel-recessed);
  color: var(--muted);
  font-size: 0.7rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.74);
}

#contact .status-online,
#music .status-live {
  color: rgba(80, 255, 150, 0.95);
  text-shadow:
    0 0 5px rgba(80, 255, 150, 0.38),
    0 0 14px rgba(80, 255, 150, 0.18);
  animation: contactStatusVoltage 11.5s cubic-bezier(0.42, 0, 0.22, 1) infinite;
}

.release-grid {
  display: grid;
  gap: 1.3rem;
}

.release-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 16%),
    linear-gradient(180deg, rgba(255, 43, 43, 0.04), transparent 40%),
    var(--panel-raised);
  border: 2px solid var(--line);
  padding: 1.18rem;
  display: grid;
  gap: 0.95rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 14px 26px rgba(0, 0, 0, 0.16);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.release-card:hover {
  border-color: var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.84),
    0 0 0 1px rgba(0, 0, 0, 0.72),
    0 16px 28px rgba(0, 0, 0, 0.18);
}

.release-cover {
  border: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.016), transparent 30%),
    #090404;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0.32rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.74),
    0 0 0 1px rgba(0, 0, 0, 0.58);
}

.release-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: contrast(1.1) saturate(0.8);
}

.release-cover.is-clickthrough,
.release-title.is-clickthrough {
  cursor: pointer;
}

.release-cover.is-clickthrough:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 3px;
}

.release-title.is-clickthrough {
  width: fit-content;
}

.release-title.is-clickthrough:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 4px;
}

.release-title {
  margin: 0 0 0.15rem;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.release-type {
  margin: 0 0 0.42rem;
  color: var(--accent);
  font-size: 0.7rem;
}

.release-date {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.release-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.release-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.62rem;
}

.release-links a {
  display: inline-flex;
  align-items: center;
  min-height: 1.86rem;
  padding: 0.2rem 0.56rem;
  border: 2px solid rgba(255, 43, 43, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 32%),
    rgba(16, 5, 5, 0.82);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.76);
}

.release-links a:hover,
.release-links a:focus-visible {
  color: var(--accent);
  border-color: var(--line-strong);
}

.release-card iframe {
  width: 100%;
  border: 2px solid var(--line);
  min-height: 240px;
  background: #050505;
}

.release-card--offline {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 14%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0 1px,
      transparent 1px 5px
    ),
    #060303;
  border-color: rgba(255, 43, 43, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    inset 0 -1px 0 rgba(0, 0, 0, 0.84),
    0 0 0 1px rgba(0, 0, 0, 0.72);
  opacity: 0.72;
  pointer-events: none;
}

.release-card--offline:hover {
  border-color: rgba(255, 43, 43, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    inset 0 -1px 0 rgba(0, 0, 0, 0.84),
    0 0 0 1px rgba(0, 0, 0, 0.72);
}

.release-card--offline::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 43, 43, 0.045), transparent),
    rgba(0, 0, 0, 0.18);
  mix-blend-mode: screen;
  pointer-events: none;
}

.release-card--offline .release-cover {
  position: relative;
  border-color: rgba(255, 43, 43, 0.14);
  background: #030303;
}

.release-card--offline .release-cover img {
  opacity: 0.16;
  filter: grayscale(1) brightness(0.32) contrast(1.35);
}

.release-offline-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%) rotate(-7deg);
  padding: 0.32rem 0.58rem 0.28rem;
  border: 2px solid rgba(255, 43, 43, 0.42);
  color: rgba(255, 43, 43, 0.72);
  background: rgba(3, 0, 0, 0.74);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  box-shadow: 0 0 12px rgba(255, 43, 43, 0.12);
}

.release-redacted {
  color: rgba(229, 229, 229, 0.22);
  text-shadow: none;
}

.redaction-bar {
  display: inline-block;
  height: 0.82em;
  margin: 0.08em 0.2em 0.08em 0;
  background: #000000;
  border: 1px solid rgba(255, 43, 43, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(0, 0, 0, 0.64);
  vertical-align: -0.08em;
}

.redaction-bar--wide {
  width: 8.6ch;
}

.redaction-bar--mid {
  width: 5.2ch;
}

.redaction-bar--short {
  width: 5.8ch;
}

.redaction-bar--tiny {
  width: 3.2ch;
}

.release-card--offline .release-type {
  color: rgba(255, 43, 43, 0.44);
}

.release-card--offline .release-desc {
  color: rgba(229, 229, 229, 0.32);
}

.release-player-offline {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 2px solid rgba(255, 43, 43, 0.12);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.02) 0 1px,
      transparent 1px 6px
    ),
    #030303;
  color: rgba(229, 229, 229, 0.18);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.about-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1.28fr);
  align-items: center;
}

.about-portrait {
  border: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    #0b0b0b;
  padding: 0.78rem;
  max-width: 360px;
  justify-self: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.76),
    0 0 0 1px rgba(0, 0, 0, 0.58);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.05);
}

.about-text {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    linear-gradient(180deg, rgba(255, 43, 43, 0.035), transparent 38%),
    var(--panel-raised);
  border: 2px solid var(--line);
  padding: 1.35rem 1.4rem;
  line-height: 1.62;
  color: var(--muted);
  font-weight: 500;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.76),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

#about-body {
  display: grid;
  gap: 0.78rem;
}

.cia-file {
  display: grid;
  gap: 1.2rem;
}

.about-field-grid {
  display: grid;
  gap: 0.55rem;
  padding: 0.88rem 0.95rem;
  border: 2px solid rgba(255, 43, 43, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 34%),
    rgba(18, 8, 8, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.7);
}

.field-key {
  color: rgba(229, 229, 229, 0.56);
}

.field-value {
  color: var(--text);
}

.field-alert {
  color: #ff8a8a;
}

.redacted-section {
  display: grid;
  gap: 0.65rem;
  padding-left: 0.95rem;
  border-left: 3px solid rgba(255, 255, 255, 0.12);
}

.redacted-section .subhead {
  margin: 0;
  color: rgba(229, 229, 229, 0.78);
}

.redacted-word {
  display: inline-block;
  padding: 0.08rem 0.44rem;
  background: rgba(255, 255, 255, 0.82);
  color: #000000;
  letter-spacing: 0.12em;
}

.about-text .label {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  color: var(--accent);
}

/* Contact and footer */
.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  padding: 1rem 1.15rem;
  border: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 18%),
    #080202;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.82);
}

.contact-card {
  min-height: 4rem;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  background: rgba(19, 5, 5, 0.88);
  border: 2px solid rgba(255, 43, 43, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.82);
}

.contact-card-links {
  justify-self: end;
  justify-content: flex-end;
  text-align: right;
}

.contact-grid > .contact-card:first-child,
.contact-card-links {
  width: min(100%, 26rem);
}

.contact-card a {
  color: var(--text);
  min-height: auto;
  padding: 0;
  display: inline-block;
  width: fit-content;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--accent);
  border-color: var(--line-strong);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card-links {
    justify-self: start;
    justify-content: flex-start;
    text-align: left;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

.footer {
  padding: 1.45rem 2rem 2.1rem;
  border-top: 3px solid rgba(255, 43, 43, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent 20%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.64));
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Hidden terminal */
.terminal-modal {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 43, 43, 0.08), transparent 28%),
    rgba(0, 0, 0, 0.74);
  backdrop-filter: none;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

.terminal-modal.is-open {
  display: flex;
}

.terminal-modal.is-closing {
  display: flex;
  animation: terminalModalClose 0.18s ease-in forwards;
}

.terminal-modal.is-opening {
  animation: terminalModalOpen 0.34s ease-out forwards;
}

.terminal-modal.is-opening .terminal-header,
.terminal-modal.is-opening .terminal-output,
.terminal-modal.is-opening .terminal-input {
  animation: terminalOpenContent 0.24s ease-out forwards;
}

.terminal-modal.is-opening .terminal-shell {
  animation: terminalShellFadeIn 0.3s ease-out forwards;
}

.terminal-modal.is-closing .terminal-shell {
  animation: terminalShellFadeOut 0.18s ease-in forwards;
}

.terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-shell {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.82),
    0 0 0 4px rgba(255, 43, 43, 0.05),
    0 22px 42px rgba(0, 0, 0, 0.74),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.82);
}

.terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-shell::before {
  opacity: 0.18;
}

.terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-shell::after {
  opacity: 0.16;
  animation: terminalHudSweep 6.4s linear infinite;
}

.terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-header {
  background:
    linear-gradient(90deg, rgba(255, 43, 43, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    var(--panel-recessed);
  text-shadow: none;
}

.terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-header::before,
.terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-header::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(255, 43, 43, 0.42);
  pointer-events: none;
}

.terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-header::before {
  left: 0.55rem;
  border-left: 1px solid rgba(255, 43, 43, 0.42);
}

.terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-header::after {
  right: 0.55rem;
  border-right: 1px solid rgba(255, 43, 43, 0.42);
}

.terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-output {
  background:
    linear-gradient(180deg, rgba(255, 43, 43, 0.022), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 100%),
    repeating-linear-gradient(
      to right,
      transparent 0 39px,
      rgba(255, 43, 43, 0.035) 39px 40px
    );
}

.terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-input {
  background:
    linear-gradient(90deg, rgba(255, 43, 43, 0.05), transparent 26%),
    #0a0404;
}

.terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-input::after {
  content: "LINK STABLE // NODE ACTIVE";
  margin-left: auto;
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  color: rgba(229, 229, 229, 0.34);
  pointer-events: none;
}

body.flatline-mode .terminal-modal.is-restore-attempt.is-open:not(.is-crashing) .terminal-shell {
  animation: restoreAttemptTerminal 0.24s steps(1) 1;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing) .terminal-shell {
  animation: terminalFlatlineShell 0.3s steps(1) infinite;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing) .terminal-shell::before {
  opacity: 0.24;
  animation: terminalFlatlineOverlay 0.22s steps(1) infinite;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-shell::after {
  opacity: 0.22;
  animation:
    terminalHudSweep 5.2s linear infinite,
    terminalHudFlash 2.8s steps(1) infinite;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-header {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 43, 43, 0.03) 24%, transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-header::before,
body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-header::after {
  animation: terminalHudCornerJitter 0.42s steps(1) infinite;
  border-top-color: rgba(255, 255, 255, 0.38);
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-header::before {
  border-left-color: rgba(255, 255, 255, 0.38);
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-header::after {
  border-right-color: rgba(255, 255, 255, 0.38);
  animation-delay: 0.09s;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-output {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
    repeating-linear-gradient(
      to right,
      transparent 0 39px,
      rgba(255, 255, 255, 0.04) 39px 40px
    );
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-input::after {
  content: "LINK ERRATIC // WAITING";
  color: rgba(229, 229, 229, 0.42);
  animation: terminalHudReadoutBreak 0.64s steps(1) infinite;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing) .terminal-header,
body.flatline-mode .terminal-modal.is-open:not(.is-crashing) .terminal-output,
body.flatline-mode .terminal-modal.is-open:not(.is-crashing) .terminal-input {
  animation: terminalFlatlineText 0.22s steps(1) infinite;
}

body.flatline-mode .terminal-modal[data-restore-pressure="1"].is-open:not(.is-crashing) .terminal-shell {
  animation-duration: 0.24s;
  filter: contrast(1.08);
  box-shadow:
    0 0 0 1px rgba(255, 72, 72, 0.12),
    0 0 18px rgba(255, 48, 48, 0.14),
    0 0 42px rgba(255, 32, 32, 0.08);
}

body.flatline-mode .terminal-modal[data-restore-pressure="1"].is-open:not(.is-crashing) .terminal-shell::before {
  opacity: 0.3;
}

body.flatline-mode .terminal-modal[data-restore-pressure="1"].is-open:not(.is-crashing) .terminal-shell::after {
  opacity: 0.16;
  mix-blend-mode: screen;
}

body.flatline-mode .terminal-modal[data-restore-pressure="1"].is-open:not(.is-crashing) .terminal-header,
body.flatline-mode .terminal-modal[data-restore-pressure="1"].is-open:not(.is-crashing) .terminal-output,
body.flatline-mode .terminal-modal[data-restore-pressure="1"].is-open:not(.is-crashing) .terminal-input {
  animation-duration: 0.18s;
}

body.flatline-mode .terminal-modal[data-restore-pressure="2"].is-open:not(.is-crashing) .terminal-shell {
  animation-duration: 0.18s;
  filter: contrast(1.18) brightness(1.01);
  box-shadow:
    0 0 0 1px rgba(255, 86, 86, 0.18),
    0 0 26px rgba(255, 44, 44, 0.18),
    0 0 60px rgba(255, 28, 28, 0.12),
    -8px 0 0 rgba(255, 255, 255, 0.05),
    8px 0 0 rgba(255, 255, 255, 0.04);
}

body.flatline-mode .terminal-modal[data-restore-pressure="2"].is-open:not(.is-crashing) .terminal-shell::before {
  opacity: 0.38;
  animation-duration: 0.16s;
}

body.flatline-mode .terminal-modal[data-restore-pressure="2"].is-open:not(.is-crashing) .terminal-shell::after {
  opacity: 0.24;
  mix-blend-mode: screen;
}

body.flatline-mode .terminal-modal[data-restore-pressure="2"].is-open:not(.is-crashing) .terminal-header,
body.flatline-mode .terminal-modal[data-restore-pressure="2"].is-open:not(.is-crashing) .terminal-output,
body.flatline-mode .terminal-modal[data-restore-pressure="2"].is-open:not(.is-crashing) .terminal-input {
  animation-duration: 0.14s;
  text-shadow:
    -1px 0 rgba(255, 255, 255, 0.16),
    1px 0 rgba(184, 184, 184, 0.12);
  letter-spacing: 0.03em;
}

body.flatline-mode .terminal-modal[data-restore-pressure="2"].is-open:not(.is-crashing) .terminal-output .terminal-line:nth-child(odd) {
  opacity: 0.72;
  transform: translateX(-0.18rem);
}

body.flatline-mode .terminal-modal[data-restore-pressure="2"].is-open:not(.is-crashing) .terminal-output .terminal-line:nth-child(even) {
  transform: translateX(0.14rem);
}

body.flatline-mode .terminal-modal[data-restore-pressure="3"].is-open:not(.is-crashing) .terminal-shell {
  animation-duration: 0.12s;
  filter: contrast(1.28) brightness(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 112, 112, 0.26),
    0 0 34px rgba(255, 54, 54, 0.28),
    0 0 84px rgba(255, 20, 20, 0.18),
    -14px 0 0 rgba(255, 255, 255, 0.08),
    14px 0 0 rgba(255, 255, 255, 0.06);
}

body.flatline-mode .terminal-modal[data-restore-pressure="3"].is-open:not(.is-crashing) .terminal-shell::before {
  opacity: 0.48;
  animation-duration: 0.11s;
}

body.flatline-mode .terminal-modal[data-restore-pressure="3"].is-open:not(.is-crashing) .terminal-shell::after {
  opacity: 0.34;
  mix-blend-mode: screen;
}

body.flatline-mode .terminal-modal[data-restore-pressure="3"].is-open:not(.is-crashing) .terminal-header,
body.flatline-mode .terminal-modal[data-restore-pressure="3"].is-open:not(.is-crashing) .terminal-output,
body.flatline-mode .terminal-modal[data-restore-pressure="3"].is-open:not(.is-crashing) .terminal-input {
  animation-duration: 0.1s;
  text-shadow:
    -1px 0 rgba(255, 255, 255, 0.24),
    1px 0 rgba(184, 184, 184, 0.18),
    0 0 8px rgba(255, 255, 255, 0.12);
  letter-spacing: 0.05em;
}

body.flatline-mode .terminal-modal[data-restore-pressure="3"].is-open:not(.is-crashing) .terminal-output .terminal-line:nth-child(3n + 1) {
  opacity: 0.58;
  transform: translateX(-0.32rem);
}

body.flatline-mode .terminal-modal[data-restore-pressure="3"].is-open:not(.is-crashing) .terminal-output .terminal-line:nth-child(3n + 2) {
  opacity: 0.78;
  transform: translateX(0.22rem);
}

body.flatline-mode .terminal-modal[data-restore-pressure="3"].is-open:not(.is-crashing) .terminal-output .terminal-line:nth-child(3n) {
  opacity: 0.44;
  transform: translateX(-0.14rem);
}

.terminal-modal.is-restoring .terminal-shell {
  animation: terminalRestoreShell 1.25s steps(1) forwards;
}

.terminal-modal.is-restoring .terminal-shell::before {
  animation: terminalRestoreOverlay 1.25s steps(1) forwards;
}

.terminal-modal.is-restoring .terminal-header,
.terminal-modal.is-restoring .terminal-input {
  animation: terminalRestoreText 0.9s steps(1) forwards;
}

.terminal-modal.is-restoring .terminal-line {
  animation: terminalLineWipe 0.86s steps(1) forwards;
  animation-delay: var(--wipe-delay, 0ms);
}

.terminal-modal.is-restoring .terminal-input input,
.terminal-modal.is-restoring .terminal-close {
  opacity: 0.2;
  pointer-events: none;
}

.terminal-modal.is-reset-flood .terminal-shell {
  animation: terminalResetFloodShell 0.18s steps(1) infinite;
}

.terminal-modal.is-reset-flood .terminal-shell::before,
.terminal-modal.is-reset-flood .terminal-shell::after {
  opacity: 0.16;
  animation: terminalResetFloodOverlay 0.14s steps(1) infinite;
}

.terminal-modal.is-reset-flood .terminal-header,
.terminal-modal.is-reset-flood .terminal-output,
.terminal-modal.is-reset-flood .terminal-input {
  animation: terminalResetFloodText 0.12s steps(1) infinite;
}

.terminal-modal.is-reset-flood .terminal-line:nth-child(odd) {
  transform: translateX(-0.24rem);
}

.terminal-modal.is-reset-flood .terminal-line:nth-child(even) {
  transform: translateX(0.18rem);
}

.terminal-modal.is-crashing {
  display: flex;
  animation: bootCloseGlitch 0.78s steps(1) forwards;
}

.terminal-modal.is-crashing::before,
.terminal-modal.is-crashing::after {
  content: "";
  position: absolute;
  width: min(820px, 94vw);
  height: min(560px, 90vh);
  background:
    linear-gradient(180deg, rgba(44, 78, 124, 0.42) 0 32px, rgba(7, 13, 22, 0.88) 32px 100%),
    linear-gradient(180deg, rgba(18, 22, 32, 0.95), rgba(0, 0, 0, 0.92));
  border: 1px solid rgba(214, 228, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(40, 86, 168, 0.22),
    0 14px 28px rgba(0, 0, 0, 0.38),
    -18px -10px 0 rgba(56, 104, 188, 0.18),
    20px 12px 0 rgba(26, 52, 108, 0.14);
  filter: saturate(1.15) brightness(1.08);
  pointer-events: none;
  opacity: 0;
}

.terminal-modal.is-crashing::before {
  transform: translate(-18px, -12px);
  animation: xpWindowEchoA 0.78s steps(1) forwards;
}

.terminal-modal.is-crashing::after {
  transform: translate(16px, 10px);
  animation: xpWindowEchoB 0.78s steps(1) forwards;
}

.terminal-shell {
  width: min(820px, 94vw);
  height: min(560px, 90vh);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.016), transparent 18%),
    linear-gradient(180deg, rgba(255, 43, 43, 0.05), transparent 38%),
    #020101;
  border: 3px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  color: var(--text);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.78),
    0 22px 40px rgba(0, 0, 0, 0.68);
  position: relative;
  overflow: hidden;
}

.vm-auth {
  position: absolute;
  inset: 2.9rem 0.85rem 3.15rem 0.85rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.vm-auth.is-open {
  display: flex;
}

.vm-auth-panel {
  width: min(360px, 100%);
  padding: 1.05rem;
  border: 3px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 43, 43, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent 100%),
    var(--plate);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.76),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.78),
    0 20px 34px rgba(0, 0, 0, 0.5);
}

.vm-auth-title {
  margin: 0 0 0.95rem;
  padding-bottom: 0.72rem;
  border-bottom: 2px solid rgba(255, 43, 43, 0.14);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text);
}

.vm-auth-form {
  display: grid;
  gap: 0.75rem;
}

.vm-auth-form label {
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  color: rgba(229, 229, 229, 0.56);
}

.vm-auth-input {
  width: 100%;
  padding: 0.7rem 0.78rem 0.66rem;
  border: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.016), transparent 34%),
    #060202;
  color: var(--text);
  font: inherit;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 -1px 0 rgba(0, 0, 0, 0.76);
}

.vm-auth-input:focus-visible {
  border-color: var(--line-strong);
}

.vm-auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.15rem;
  padding-top: 0.72rem;
  border-top: 2px solid rgba(255, 43, 43, 0.12);
}

.vm-auth-button {
  min-height: 2.1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 36%),
    var(--panel-raised);
  border: 2px solid var(--line);
  color: var(--text);
  padding: 0.44rem 0.82rem 0.38rem;
  cursor: pointer;
  letter-spacing: 0.14em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.76),
    0 0 0 1px rgba(0, 0, 0, 0.68);
}

.vm-auth-button:hover,
.vm-auth-button:focus-visible {
  color: var(--accent);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 43, 43, 0.08), transparent 38%),
    var(--panel-recessed);
}

/* Hidden workstation shell */
.vm-container {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  background: rgba(2, 6, 12, 0.22);
  backdrop-filter: blur(2px);
  z-index: 70;
}

.vm-container.is-open {
  display: flex;
}

.vm-screen {
  position: relative;
  width: clamp(1040px, 86vw, 1340px);
  max-width: calc(100vw - 18px);
  height: clamp(840px, 94vh, 1060px);
  max-height: calc(100vh - 12px);
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid rgba(178, 199, 230, 0.2);
  transition: filter 0.18s ease;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 12%),
    linear-gradient(180deg, #16283b 0%, #13243a 38%, #102137 74%, #0d1a2b 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 28px 68px rgba(0, 0, 0, 0.46);
}

.vm-screen.is-busy,
.vm-screen.is-busy * {
  cursor: progress !important;
}

.vm-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(174, 204, 255, 0.08), transparent 18%),
    radial-gradient(circle at 76% 14%, rgba(255, 255, 255, 0.05), transparent 12%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
  pointer-events: none;
  opacity: 0.26;
  z-index: 0;
}

.vm-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 52%, rgba(4, 11, 20, 0.16) 82%, rgba(2, 6, 14, 0.38) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
  z-index: 0;
}

.vm-flicker {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.12s ease;
}

.vm-container.is-flicker .vm-flicker {
  opacity: 0.12;
}

.vm-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.vm-effects-grain,
.vm-effects-ghost {
  position: absolute;
  inset: -4px;
  pointer-events: none;
}

.vm-effects-grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.72'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
  opacity: 0.082;
  animation: vm-grain-shift 11s steps(8) infinite;
}

.vm-effects-ghost {
  inset: 0;
  opacity: 0;
  background: rgba(255, 255, 255, 0.036);
  mix-blend-mode: screen;
  backdrop-filter: blur(0.6px) saturate(0.88) brightness(1.025);
  -webkit-backdrop-filter: blur(0.6px) saturate(0.88) brightness(1.025);
  transform: translate(0, 0);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.vm-screen.is-desaturated {
  filter: saturate(0.78) brightness(0.992) contrast(0.98);
}

.vm-screen.is-ghosting .vm-effects-ghost {
  opacity: 0.21;
  transform: translate(3px, 1px);
}

@keyframes vm-grain-shift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  22% {
    transform: translate3d(-0.8%, 0.5%, 0);
  }
  47% {
    transform: translate3d(0.6%, -0.7%, 0);
  }
  71% {
    transform: translate3d(-0.5%, 0.8%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.vm-boot,
.vm-desktop {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.vm-boot {
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(113, 147, 198, 0.1), transparent 28%),
    linear-gradient(180deg, #07101b, #04070d);
}

.vm-container.is-booting .vm-boot {
  display: grid;
}

.vm-boot-frame {
  width: min(640px, calc(100% - 48px));
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(162, 187, 224, 0.18);
  background: rgba(5, 12, 22, 0.92);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.35);
}

.vm-boot-title {
  margin: 0 0 1rem;
  color: #dceaff;
  letter-spacing: 0.14em;
  font-size: 0.86rem;
}

.vm-boot-lines {
  display: grid;
  gap: 0.55rem;
}

.vm-boot-line {
  margin: 0;
  color: rgba(220, 234, 255, 0.76);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vm-boot-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vm-desktop {
  display: none;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.06), transparent 17%),
    linear-gradient(180deg, #2e5376 0%, #294c70 26%, #264565 56%, #203850 100%);
}

.vm-container.is-open:not(.is-booting) .vm-desktop {
  display: block;
}

.vm-desktop::before,
.vm-desktop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.vm-desktop::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.05), transparent 20%),
    radial-gradient(circle at 78% 78%, rgba(8, 15, 26, 0.16), transparent 24%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 4px);
  opacity: 0.78;
}

.vm-desktop::after {
  inset: auto 1.8rem 3.9rem auto;
  width: 290px;
  height: 110px;
  background: none;
  color: rgba(229, 237, 255, 0.055);
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-align: right;
  content: "MTL-04 // ARCHIVE NODE";
}

.vm-mark {
  position: absolute;
  top: 0.95rem;
  right: 1.2rem;
  margin: 0;
  display: grid;
  gap: 0.12rem;
  justify-items: end;
  font-size: 0.49rem;
  letter-spacing: 0.18em;
  line-height: 1.3;
  color: rgba(227, 236, 255, 0.5);
  z-index: 2;
}

.vm-labels {
  position: absolute;
  top: 3rem;
  right: 1.2rem;
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
  max-width: 34rem;
  font-size: 0.44rem;
  letter-spacing: 0.16em;
  color: rgba(227, 236, 255, 0.34);
  z-index: 2;
}

.vm-labels span {
  padding: 0.14rem 0.32rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.vm-icons {
  position: absolute;
  inset: 0 0 44px 0;
  z-index: 2;
}

.vm-desktop-selection {
  position: absolute;
  display: none;
  border: 1px dotted rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.vm-desktop-selection.is-visible {
  display: block;
}

.vm-desktop-selection-fill {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
}

.vm-context-menu {
  position: absolute;
  display: none;
  min-width: 186px;
  padding: 0.14rem 0;
  pointer-events: auto;
  z-index: 46;
}

.vm-context-menu.is-open {
  display: block;
}

.vm-context-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 22px;
  padding: 0 0.6rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: default;
}

.vm-context-menu-separator {
  height: 1px;
  margin: 0.14rem 0.24rem;
}

.vm-icon {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 0.18rem;
  width: 94px;
  padding: 0.28rem 0.26rem;
  border: 1px solid transparent;
  background: transparent;
  color: #eef4ff;
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}

.vm-icon:hover,
.vm-icon:focus-visible {
  border-color: rgba(197, 221, 255, 0.22);
  background: rgba(17, 36, 59, 0.32);
}

.vm-icon.is-selected {
  border-color: rgba(201, 223, 255, 0.3);
  background: rgba(19, 45, 72, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.vm-icon-glyph {
  position: relative;
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 5px;
  border: 1px solid rgba(172, 194, 229, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 32%, transparent 34%),
    linear-gradient(180deg, #cad6ea, #93a8c9 58%, #607698);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 1px 3px rgba(0, 0, 0, 0.28);
}

.vm-icon-glyph::before,
.vm-icon-glyph::after,
.vm-button-icon::before,
.vm-button-icon::after {
  content: "";
  position: absolute;
}

.vm-icon-glyph--archive::before,
.vm-icon-glyph--system-status::before {
  left: 6px;
  right: 6px;
  bottom: 7px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f0d176, #b88a2c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 -8px 0 -3px rgba(236, 201, 96, 0.95);
}

.vm-icon-glyph--archive::after {
  left: 9px;
  top: 10px;
  width: 20px;
  height: 10px;
  border: 1px solid rgba(76, 58, 19, 0.34);
  background: rgba(54, 93, 156, 0.55);
}

.vm-icon-glyph--signal-monitor::before {
  left: 5px;
  right: 5px;
  top: 7px;
  bottom: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, #223651, #0f1c2d);
  border: 1px solid rgba(203, 224, 255, 0.28);
}

.vm-icon-glyph--signal-monitor::after {
  left: 8px;
  right: 8px;
  top: 18px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #79d9e9 18%, #d7faff 35%, #79d9e9 52%, transparent);
  box-shadow:
    6px -4px 0 -0.5px rgba(121, 217, 233, 0.82),
    13px 5px 0 -0.5px rgba(121, 217, 233, 0.72),
    19px -2px 0 -0.5px rgba(121, 217, 233, 0.84);
}

.vm-icon-glyph--media-recovery::before {
  left: 7px;
  top: 8px;
  width: 24px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #6b7889, #2f3845);
  border: 1px solid rgba(230, 236, 246, 0.22);
}

.vm-icon-glyph--media-recovery::after {
  left: 10px;
  top: 12px;
  width: 18px;
  height: 10px;
  background:
    radial-gradient(circle at 4px 5px, rgba(26, 28, 32, 0.94) 0 2px, transparent 2.2px),
    radial-gradient(circle at 14px 5px, rgba(26, 28, 32, 0.94) 0 2px, transparent 2.2px),
    linear-gradient(90deg, transparent 0 3px, rgba(215, 187, 110, 0.84) 3px 15px, transparent 15px 100%);
}

.vm-icon-glyph--internal-mail::before {
  left: 7px;
  right: 7px;
  top: 10px;
  bottom: 10px;
  background: linear-gradient(180deg, #efe8db, #c8c2b7);
  border: 1px solid rgba(91, 102, 124, 0.3);
}

.vm-icon-glyph--internal-mail::after {
  left: 8px;
  right: 8px;
  top: 11px;
  height: 12px;
  background:
    linear-gradient(145deg, transparent 49%, rgba(114, 126, 149, 0.54) 50%, transparent 51%),
    linear-gradient(215deg, transparent 49%, rgba(114, 126, 149, 0.54) 50%, transparent 51%);
}

.vm-icon-glyph--deleted-records::before {
  left: 10px;
  right: 10px;
  top: 9px;
  bottom: 8px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, #d9dde4, #8d98a7);
  border: 1px solid rgba(86, 98, 122, 0.34);
}

.vm-icon-glyph--deleted-records::after {
  left: 12px;
  right: 12px;
  top: 7px;
  height: 4px;
  border-radius: 3px 3px 0 0;
  background: #b7c2d0;
  box-shadow:
    0 0 0 1px rgba(78, 93, 116, 0.26),
    0 7px 0 -5px rgba(90, 102, 118, 0.6);
}

.vm-icon-glyph--system-status::after {
  left: 11px;
  bottom: 10px;
  width: 3px;
  height: 10px;
  background: #7ad77d;
  box-shadow:
    6px -4px 0 0 #c8d768,
    12px -8px 0 0 #d78d68;
}

.vm-icon-label {
  max-width: 100%;
  font-size: 0.46rem;
  line-height: 1.18;
  letter-spacing: 0.11em;
  text-align: center;
  overflow-wrap: anywhere;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.vm-icon-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 12px;
  padding: 0 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 18, 31, 0.16);
  color: rgba(234, 241, 255, 0.58);
  font-size: 0.35rem;
  letter-spacing: 0.18em;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.vm-icon *,
.vm-file-button,
.vm-folder-button,
.vm-button-icon {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
}

.vm-icon::selection,
.vm-icon-label::selection,
.vm-icon-note::selection,
.vm-file-button::selection,
.vm-folder-button::selection {
  background: transparent;
  color: inherit;
}

.vm-icon.is-locked .vm-icon-note {
  color: rgba(255, 227, 164, 0.72);
}

.vm-icon--deleted-records { left: 1.4%; top: 2%; }
.vm-icon--archive { left: 2.6%; top: 18%; }
.vm-icon--internal-mail { left: 12.5%; top: 6%; }
.vm-icon--signal-monitor { left: 13.2%; top: 24%; }
.vm-icon--media-recovery { left: 24.8%; top: 12.5%; }
.vm-icon--system-status { left: 26%; top: 31.5%; }
.vm-icon--transfer-queue { left: 38.5%; top: 8.5%; }
.vm-icon--sealed-material { left: 39.2%; top: 27.5%; }
.vm-icon--mtl-node { left: 53.5%; top: 16.5%; }
.vm-icon--oversight { left: 67%; top: 8%; }

.vm-snap-preview {
  position: absolute;
  inset: 12px 12px 56px 12px;
  border: 1px solid rgba(224, 236, 255, 0.22);
  background: rgba(214, 228, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 2;
}

.vm-snap-preview.is-visible {
  opacity: 1;
}

.vm-snap-preview.is-left {
  inset: 12px calc(50% + 6px) 56px 12px;
}

.vm-snap-preview.is-right {
  inset: 12px 12px 56px calc(50% + 6px);
}

.vm-snap-preview.is-max {
  inset: 12px 12px 56px 12px;
}

.vm-window-layer {
  position: absolute;
  inset: 0;
  padding: 0 0 44px;
  z-index: 3;
  pointer-events: none;
}

/* Workstation windows and controls */
.vm-window {
  --vm-control-hit-safe: 62px;
  --vm-titlebar-hit-safe: 28px;
  position: absolute;
  min-width: 340px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  background: #edf3ff;
  border: 1px solid #5d7ca8;
  border-top-color: #f2f2f2;
  border-left-color: #f2f2f2;
  border-right-color: #111111;
  border-bottom-color: #111111;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.55),
    inset -1px -1px 0 #111111,
    1px 1px 0 #111111;
  overflow: hidden;
  pointer-events: auto;
  overscroll-behavior: contain;
}

.vm-window.is-active {
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.55),
    inset -1px -1px 0 #111111,
    1px 1px 0 #111111;
}

.vm-window.is-minimized {
  display: none;
}

.vm-window.is-minimizing-source {
  visibility: hidden;
  pointer-events: none;
}

.vm-window-proxy {
  position: fixed !important;
  margin: 0;
  pointer-events: none;
  transform-origin: top left;
  transition:
    transform 190ms steps(6, end),
    opacity 190ms steps(6, end);
  will-change: transform, opacity;
}

.vm-window-proxy .vm-resize-handle {
  display: none;
}

.vm-window-proxy .vm-body {
  overflow: hidden;
}

.vm-window[data-vm-snap="max"] {
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.55),
    inset -1px -1px 0 #111111,
    1px 1px 0 #111111;
}

.vm-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 30px;
  padding: 0 0.28rem 0 0;
  background: linear-gradient(180deg, #4276c9 0%, #2556a4 50%, #1c4487 100%);
  border-bottom: 1px solid #35568d;
  color: #ffffff;
  cursor: default;
  user-select: none;
}

.vm-titlebar-drag {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0.42rem 0.36rem 0.42rem 0.62rem;
  cursor: move;
  touch-action: none;
}

.vm-resize-handle {
  position: absolute;
  z-index: 2;
  touch-action: none;
}

.vm-resize-handle.is-n {
  left: 8px;
  right: calc(8px + var(--vm-control-hit-safe));
  height: 8px;
}

.vm-resize-handle.is-s {
  left: 8px;
  right: 8px;
  height: 8px;
}

.vm-resize-handle.is-n {
  top: 0;
  cursor: ns-resize;
}

.vm-resize-handle.is-s {
  bottom: 0;
  cursor: ns-resize;
}

.vm-resize-handle.is-e,
.vm-resize-handle.is-w {
  top: 8px;
  bottom: 8px;
  width: 8px;
}

.vm-resize-handle.is-e {
  right: 0;
  top: var(--vm-titlebar-hit-safe);
  cursor: ew-resize;
}

.vm-resize-handle.is-w {
  left: 0;
  cursor: ew-resize;
}

.vm-resize-handle.is-ne,
.vm-resize-handle.is-se,
.vm-resize-handle.is-sw,
.vm-resize-handle.is-nw {
  width: 12px;
  height: 12px;
}

.vm-resize-handle.is-ne {
  top: 0;
  right: var(--vm-control-hit-safe);
  cursor: nesw-resize;
}

.vm-resize-handle.is-se {
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
}

.vm-resize-handle.is-sw {
  left: 0;
  bottom: 0;
  cursor: nesw-resize;
}

.vm-resize-handle.is-nw {
  top: 0;
  left: 0;
  cursor: nwse-resize;
}

.vm-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.vm-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.vm-control {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: linear-gradient(180deg, #f5faff, #dce7f8);
  color: #0d2042;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
}

.vm-control.is-close {
  background: linear-gradient(180deg, #ffab8f, #dd6b4b);
  color: #ffffff;
}

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

.vm-control.is-minimize::before {
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
}

.vm-control.is-maximize::before {
  inset: 4px;
  border: 1px solid currentColor;
}

.vm-control.is-maximize.is-restoring::before {
  top: 4px;
  left: 7px;
  width: 7px;
  height: 5px;
}

.vm-control.is-maximize.is-restoring::after {
  top: 6px;
  left: 4px;
  width: 7px;
  height: 5px;
  border: 1px solid currentColor;
  background: inherit;
}

.vm-control.is-close::before,
.vm-control.is-close::after {
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1px;
  background: currentColor;
  transform-origin: center;
}

.vm-control.is-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.vm-control.is-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.vm-control:hover,
.vm-control:focus-visible {
  filter: brightness(1.04);
}

.vm-body {
  flex: 1;
  min-height: 0;
  padding: 0.9rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(220, 231, 247, 0.7)),
    #edf3ff;
  color: #11243f;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.vm-app-split,
.vm-status-grid,
.vm-mail-layout,
.vm-media-layout {
  display: grid;
  gap: 0.85rem;
}

.vm-app-split,
.vm-media-layout {
  grid-template-columns: 190px minmax(0, 1fr);
}

.vm-mail-layout {
  grid-template-columns: 220px minmax(0, 1fr);
}

.vm-pane,
.vm-preview,
.vm-status-card,
.vm-monitor-meta,
.vm-mail-preview {
  border: 1px solid #aeb8c9;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.vm-pane {
  padding: 0.45rem;
  display: grid;
  align-content: start;
  gap: 0.35rem;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.vm-file-button,
.vm-folder-button,
.vm-task-button,
.vm-tray-button {
  font: inherit;
}

.vm-file-button,
.vm-folder-button,
.vm-list-item {
  border: 1px solid #b2bccd;
  background: linear-gradient(180deg, #ffffff, #dde6f5);
  color: #10213a;
  cursor: pointer;
}

.vm-file-button,
.vm-folder-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.55rem 0.7rem;
  text-align: left;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.vm-list-item {
  position: relative;
  align-items: center;
}

.vm-list-item-main {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
}

.vm-button-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: inline-block;
}

.vm-folder-button .vm-button-icon::before {
  left: 0;
  top: 3px;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #efd37b, #c59233);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.vm-folder-button .vm-button-icon::after {
  left: 2px;
  top: 0;
  width: 8px;
  height: 5px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #f4de95, #d0a349);
}

.vm-folder-button--subjects .vm-button-icon::before {
  background: linear-gradient(180deg, #d6c279, #9f7b34);
}

.vm-folder-button--subjects .vm-button-icon::after {
  box-shadow: 9px 7px 0 -4px rgba(56, 73, 108, 0.7);
}

.vm-folder-button--surveillance .vm-button-icon::before {
  background: linear-gradient(180deg, #c8d1df, #74839d);
}

.vm-folder-button--surveillance .vm-button-icon::after {
  left: 9px;
  top: 6px;
  width: 6px;
  height: 4px;
  border-radius: 1px;
  background: #1f334d;
}

.vm-folder-button--reports .vm-button-icon::before {
  background: linear-gradient(180deg, #e4d0aa, #b68c56);
}

.vm-folder-button--reports .vm-button-icon::after {
  left: 11px;
  top: 8px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid #c88436;
}

.vm-folder-button--box .vm-button-icon::before {
  background: linear-gradient(180deg, #c7b5b2, #7d5752);
}

.vm-folder-button--box .vm-button-icon::after {
  left: 7px;
  top: 6px;
  width: 4px;
  height: 8px;
  background: rgba(25, 18, 18, 0.78);
  box-shadow: -5px 2px 0 -1px rgba(25, 18, 18, 0.78), 5px -2px 0 -1px rgba(25, 18, 18, 0.78);
}

.vm-folder-button--media .vm-button-icon::before {
  background: linear-gradient(180deg, #d6d6d8, #7d838b);
}

.vm-folder-button--media .vm-button-icon::after {
  left: 6px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(35, 40, 46, 0.85);
  box-shadow: 0 0 0 2px rgba(192, 201, 213, 0.58);
}

.vm-folder-button.is-restricted .vm-button-icon::after,
.vm-list-item.is-restricted .vm-button-icon::after,
.vm-file-button.is-restricted .vm-button-icon::after {
  content: "";
  right: -1px;
  top: -1px;
  width: 7px;
  height: 8px;
  border: 1px solid rgba(35, 38, 45, 0.7);
  border-radius: 1px;
  background: linear-gradient(180deg, #d0b871, #8c6a2c);
  box-shadow: inset 0 4px 0 -2px rgba(29, 24, 16, 0.72);
}

.vm-list-item .vm-button-icon::before,
.vm-file-button .vm-button-icon::before {
  left: 2px;
  top: 1px;
  width: 13px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f5f6f8, #c8d0dc);
  border: 1px solid rgba(103, 114, 132, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.vm-list-item .vm-button-icon::after,
.vm-file-button .vm-button-icon::after {
  right: 1px;
  top: 1px;
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 50%, rgba(167, 178, 198, 0.95) 50%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.vm-list-item--document .vm-button-icon::before {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 4px 0 -3px rgba(86, 99, 118, 0.45),
    0 8px 0 -7px rgba(86, 99, 118, 0.45);
}

.vm-list-item--profile .vm-button-icon::before {
  background:
    radial-gradient(circle at 50% 32%, rgba(87, 108, 139, 0.7) 0 2px, transparent 2.2px),
    linear-gradient(180deg, transparent 0 7px, rgba(98, 112, 135, 0.52) 7px 8px, transparent 8px 100%),
    linear-gradient(180deg, #f5f6f8, #c8d0dc);
}

.vm-list-item--report .vm-button-icon::before {
  background:
    linear-gradient(180deg, transparent 0 8px, rgba(168, 123, 54, 0.85) 8px 9px, transparent 9px 100%),
    linear-gradient(180deg, #f5f6f8, #c8d0dc);
}

.vm-list-item--report .vm-button-icon::after {
  right: -1px;
  top: 7px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid #cc934c;
  clip-path: none;
}

.vm-list-item--log .vm-button-icon::before,
.vm-list-item--chat .vm-button-icon::before {
  background:
    linear-gradient(180deg, transparent 0 4px, rgba(88, 103, 126, 0.46) 4px 5px, transparent 5px 7px, rgba(88, 103, 126, 0.46) 7px 8px, transparent 8px 10px, rgba(88, 103, 126, 0.46) 10px 11px, transparent 11px 100%),
    linear-gradient(180deg, #f5f6f8, #c8d0dc);
}

.vm-list-item--chat .vm-button-icon::after {
  right: -1px;
  top: 9px;
  width: 6px;
  height: 5px;
  border-radius: 2px;
  background: rgba(76, 95, 128, 0.7);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 100%, 30% 125%, 28% 100%, 0 100%);
}

.vm-list-item--redacted .vm-button-icon::before {
  background:
    linear-gradient(180deg, transparent 0 4px, rgba(20, 20, 20, 0.86) 4px 6px, transparent 6px 8px, rgba(20, 20, 20, 0.86) 8px 10px, transparent 10px 12px, rgba(20, 20, 20, 0.86) 12px 14px, transparent 14px 100%),
    linear-gradient(180deg, #f5f6f8, #c8d0dc);
}

.vm-list-item--corrupt .vm-button-icon::before,
.vm-file-button--corrupt .vm-button-icon::before {
  background:
    linear-gradient(140deg, transparent 0 30%, rgba(58, 23, 23, 0.92) 30% 36%, transparent 36% 100%),
    linear-gradient(180deg, #f5f6f8, #c8d0dc);
}

.vm-file-button--media .vm-button-icon::before {
  background:
    radial-gradient(circle at 30% 50%, rgba(37, 41, 47, 0.88) 0 1.9px, transparent 2px),
    radial-gradient(circle at 70% 50%, rgba(37, 41, 47, 0.88) 0 1.9px, transparent 2px),
    linear-gradient(90deg, transparent 0 3px, rgba(193, 158, 85, 0.9) 3px 10px, transparent 10px 100%),
    linear-gradient(180deg, #8b96a7, #525c6b);
}

.vm-file-button--signal .vm-button-icon::before {
  background:
    linear-gradient(180deg, #e8eef7, #c7cfdb);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    2px 8px 0 -6px rgba(84, 197, 217, 0.95),
    5px 6px 0 -6px rgba(84, 197, 217, 0.95),
    8px 10px 0 -6px rgba(84, 197, 217, 0.95);
}

.vm-file-button:hover,
.vm-file-button:focus-visible,
.vm-file-button.is-active,
.vm-folder-button:hover,
.vm-folder-button:focus-visible,
.vm-folder-button.is-active,
.vm-list-item:hover,
.vm-list-item:focus-visible,
.vm-list-item.is-active {
  background: linear-gradient(180deg, #eef5ff, #c8dbf7);
  border-color: #7f9fcc;
}

.vm-file-button,
.vm-folder-button,
.vm-list-item,
.vm-icon,
.vm-task-button,
.vm-tray-button {
  transition: background-color 0.12s ease, border-color 0.12s ease, filter 0.12s ease;
}

.vm-file-button:hover,
.vm-folder-button:hover,
.vm-list-item:hover,
.vm-icon:hover {
  filter: brightness(1.03);
}

/* Workstation explorer */
.vm-explorer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.55rem;
  height: 100%;
  min-height: 0;
}

.vm-explorer-path {
  padding: 0.38rem 0.55rem;
  border: 1px solid #b2bccd;
  background: linear-gradient(180deg, #f8fbff, #dce7f6);
  color: #1f3859;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.vm-explorer-table {
  min-height: 0;
  border: 1px solid #aeb8c9;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  overflow: hidden;
}

.vm-explorer-head,
.vm-explorer-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1.55fr) minmax(96px, 0.9fr) minmax(110px, 0.9fr) 90px;
  align-items: center;
}

.vm-explorer-head {
  min-height: 28px;
  padding: 0 0.55rem;
  border-bottom: 1px solid #bcc6d8;
  background: linear-gradient(180deg, #f7fbff, #d8e3f3);
  color: #284567;
  font-size: 0.54rem;
  letter-spacing: 0.12em;
}

.vm-explorer-body {
  height: 100%;
  overflow-y: auto;
}

.vm-explorer-row {
  width: 100%;
  min-height: 30px;
  padding: 0 0.55rem;
  border: 0;
  border-bottom: 1px solid rgba(178, 188, 205, 0.72);
  background: transparent;
  color: #10213a;
  text-align: left;
  cursor: pointer;
}

.vm-explorer-row:hover,
.vm-explorer-row:focus-visible {
  background: rgba(200, 219, 247, 0.46);
}

.vm-explorer-row.is-selected {
  background: linear-gradient(180deg, #eef5ff, #c8dbf7);
}

.vm-explorer-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.vm-explorer-cell--icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-explorer-cell--name {
  padding-right: 0.75rem;
}

.vm-explorer-row--parent .vm-explorer-cell--name {
  letter-spacing: 0.16em;
}

.vm-doc-view {
  display: grid;
  gap: 0.65rem;
}

/* Workstation mail client */
.vm-mail-client,
.vm-mail-view {
  display: grid;
  gap: 0.65rem;
  height: 100%;
  min-height: 0;
}

.vm-mail-client {
  grid-template-columns: 190px minmax(0, 1fr);
}

.vm-mail-sidebar,
.vm-mail-browser {
  min-height: 0;
}

.vm-mail-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.55rem;
}

.vm-mail-browser {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.55rem;
}

.vm-mail-sidebar-title,
.vm-mail-browser-head {
  margin: 0;
  padding: 0.38rem 0.55rem;
  border: 1px solid #b2bccd;
  background: linear-gradient(180deg, #f8fbff, #dce7f6);
  color: #1f3859;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.vm-mail-folder-list {
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.vm-mail-folder-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.48rem 0.58rem;
  border: 1px solid #b2bccd;
  background: linear-gradient(180deg, #ffffff, #dde6f5);
  color: #10213a;
  cursor: pointer;
  text-align: left;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.vm-mail-folder-button:hover,
.vm-mail-folder-button:focus-visible,
.vm-mail-folder-button.is-active {
  background: linear-gradient(180deg, #eef5ff, #c8dbf7);
  border-color: #7f9fcc;
}

.vm-mail-table {
  min-height: 0;
  border: 1px solid #aeb8c9;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  overflow: hidden;
}

.vm-mail-table-head,
.vm-mail-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.15fr) minmax(190px, 1.55fr) 110px 70px 120px;
  align-items: center;
}

.vm-mail-table-head {
  min-height: 28px;
  padding: 0 0.55rem;
  border-bottom: 1px solid #bcc6d8;
  background: linear-gradient(180deg, #f7fbff, #d8e3f3);
  color: #284567;
  font-size: 0.54rem;
  letter-spacing: 0.12em;
}

.vm-mail-table-body {
  height: 100%;
  overflow-y: auto;
}

.vm-mail-row {
  width: 100%;
  min-height: 30px;
  padding: 0 0.55rem;
  border: 0;
  border-bottom: 1px solid rgba(178, 188, 205, 0.72);
  background: transparent;
  color: #10213a;
  text-align: left;
  cursor: pointer;
}

.vm-mail-row:hover,
.vm-mail-row:focus-visible {
  background: rgba(200, 219, 247, 0.46);
}

.vm-mail-row.is-selected {
  background: linear-gradient(180deg, #eef5ff, #c8dbf7);
}

.vm-mail-row-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.vm-mail-empty {
  padding: 0.8rem;
  color: rgba(16, 33, 58, 0.58);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.vm-mail-header,
.vm-mail-metadata,
.vm-mail-body {
  border: 1px solid #aeb8c9;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.vm-mail-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.9rem;
  padding: 0.75rem;
}

.vm-mail-header div {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.4rem;
  align-items: start;
}

.vm-mail-header .mono {
  color: rgba(16, 33, 58, 0.62);
  font-size: 0.56rem;
  letter-spacing: 0.11em;
}

.vm-mail-header strong {
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  word-break: break-word;
}

.vm-mail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 0.38rem;
  border: 1px solid rgba(98, 119, 150, 0.38);
  background: rgba(29, 47, 76, 0.08);
  color: #243d5f;
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.vm-mail-body,
.vm-mail-metadata {
  padding: 0.8rem;
}

.vm-mail-body {
  align-content: start;
  gap: 0.55rem;
}

.vm-mail-body p {
  margin: 0;
  line-height: 1.62;
  font-size: 0.76rem;
}

.vm-mail-notices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.vm-mail-notices span {
  padding: 0.12rem 0.34rem;
  border: 1px solid rgba(139, 91, 74, 0.3);
  background: rgba(103, 30, 20, 0.06);
  color: #70402f;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
}

.vm-mail-metadata > .mono {
  display: block;
  margin: 0 0 0.55rem;
  color: rgba(16, 33, 58, 0.62);
  font-size: 0.56rem;
  letter-spacing: 0.11em;
}

.vm-mail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.85rem;
}

.vm-mail-meta-grid div {
  display: grid;
  gap: 0.22rem;
}

.vm-mail-meta-grid .mono {
  color: rgba(16, 33, 58, 0.62);
  font-size: 0.54rem;
  letter-spacing: 0.11em;
}

.vm-mail-meta-grid strong {
  font-size: 0.72rem;
  font-weight: 600;
  word-break: break-word;
}

.vm-preview,
.vm-mail-preview,
.vm-body {
  cursor: text;
}

.vm-list-item.is-restricted,
.vm-file-button.is-restricted {
  cursor: not-allowed;
}

.vm-preview,
.vm-mail-preview {
  padding: 0.8rem;
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.vm-doc-title,
.vm-doc-stamp,
.vm-panel-title {
  margin: 0;
}

.vm-doc-title,
.vm-panel-title {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

.vm-doc-stamp {
  font-size: 0.56rem;
  color: rgba(16, 33, 58, 0.65);
  letter-spacing: 0.12em;
}

.vm-preview p,
.vm-mail-preview p,
.vm-status-card p,
.vm-media-meta p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.78rem;
}

.vm-monitor {
  display: grid;
  gap: 0.85rem;
}

.vm-monitor-canvas {
  width: 100%;
  border: 1px solid #7e97bc;
  background: #09111e;
}

.vm-monitor-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.75rem;
}

.vm-monitor-meta span,
.vm-status-card .mono,
.vm-bar-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(16, 33, 58, 0.62);
}

.vm-monitor-meta strong,
.vm-status-figure {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.vm-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vm-status-card {
  padding: 0.8rem;
}

.vm-bar-track {
  height: 12px;
  border: 1px solid #89a2c7;
  background: rgba(16, 33, 58, 0.08);
  overflow: hidden;
}

.vm-bar-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3f79d0, #7bb2ff);
}

.vm-list-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  text-align: left;
  font-size: 0.6rem;
}

.vm-list-item span:last-child {
  color: rgba(16, 33, 58, 0.55);
  font-family: "Space Mono", "Courier New", monospace;
}

.vm-media-surface {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid #7e97bc;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #08111d, #0f1d30 60%, #09111d);
}

.vm-media-surface::before,
.vm-media-surface::after {
  content: "";
  position: absolute;
  inset: 0;
}

.vm-media-surface::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 24%, rgba(255, 255, 255, 0.04) 48%, transparent 72%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.18;
}

.vm-media-surface.is-wave::after {
  inset: 50% 8% auto 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(126, 222, 255, 0.8), transparent);
  box-shadow:
    70px -26px 0 0 rgba(126, 222, 255, 0.56),
    104px 16px 0 0 rgba(126, 222, 255, 0.32),
    140px -8px 0 0 rgba(126, 222, 255, 0.62),
    196px 12px 0 0 rgba(126, 222, 255, 0.24);
}

.vm-media-surface.is-stills::after {
  background:
    radial-gradient(circle at 52% 38%, rgba(255, 255, 255, 0.16), transparent 14%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.08) 52%, transparent 100%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 49%, transparent 100%);
}

.vm-media-surface.is-corrupt::after {
  background:
    linear-gradient(0deg, transparent 0 18%, rgba(255, 255, 255, 0.06) 18% 20%, transparent 20% 38%, rgba(255, 255, 255, 0.08) 38% 42%, transparent 42% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 26%, rgba(255, 255, 255, 0.05) 54%, transparent 100%);
}

/* Workstation taskbar and status bar */
.vm-taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.62rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #315c93, #21456f 52%, #173250 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 7;
}

.vm-statusbar {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
}

.vm-statusbar > span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 0.48rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.065);
  white-space: nowrap;
}

.vm-disk-indicator {
  gap: 0.38rem;
}

.vm-disk-led {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 190, 90, 0.24);
  box-shadow: 0 0 5px rgba(255, 190, 90, 0.14);
  transition: background-color 0.08s ease, box-shadow 0.08s ease;
}

.vm-disk-indicator.is-active .vm-disk-led {
  background: rgba(255, 190, 90, 0.95);
  box-shadow: 0 0 10px rgba(255, 190, 90, 0.88);
}

.vm-toast {
  position: absolute;
  right: 1rem;
  bottom: 3rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 18, 34, 0.84);
  color: rgba(235, 242, 255, 0.84);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
  z-index: 8;
}

.vm-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.flatline-mode .vm-toast[data-vm-notice-mode="flatline"] {
  background: rgba(6, 8, 11, 0.9);
  color: rgba(214, 218, 224, 0.88);
  border-top-color: #b8bec8;
  border-left-color: #b8bec8;
  border-right-color: #121212;
  border-bottom-color: #121212;
}

.vm-statusbar.is-flicker > span:not(.vm-disk-indicator) {
  color: rgba(255, 255, 255, 0.64);
}

.vm-task-button,
.vm-tray-button,
.vm-clock {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 0.74rem;
  color: #ffffff;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
}

.vm-task-button,
.vm-tray-button,
.vm-control,
.vm-context-menu-item {
  touch-action: manipulation;
}

.vm-taskbar-apps {
  flex: 1;
  display: flex;
  gap: 0.35rem;
  min-width: 0;
}

.vm-task-button {
  flex: 0 1 240px;
  min-width: 0;
  max-width: 260px;
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vm-task-button.is-active {
  background: rgba(255, 255, 255, 0.22);
}

.vm-tray {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.vm-tray-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.vm-clock {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
}

/* Workstation enterprise OS reskin */
.vm-container {
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
}

.vm-screen {
  --vm-desktop-main: #2f8c87;
  --vm-desktop-dark: #236a66;
  --vm-window-body: #c9c9c9;
  --vm-panel-light: #d4d4d4;
  --vm-panel-mid: #b8b8b8;
  --vm-panel-recessed: #afafaf;
  --vm-title-blue: #0046d5;
  --vm-title-blue-dark: #0037aa;
  --vm-title-blue-light: #2b6cff;
  --vm-title-inactive: #7a7a7a;
  --vm-title-inactive-edge: #5f5f5f;
  --vm-outline-dark: #3a3a3a;
  --vm-outline-mid: #6a6a6a;
  --vm-bevel-light: #f2f2f2;
  --vm-bevel-shadow: #8a8a8a;
  --vm-bevel-shadow-deep: #111111;
  --vm-text: #111111;
  --vm-text-muted: #2d2d2d;
  --vm-disabled: #6c6c6c;
  --vm-button-face: #c8c8c8;
  --vm-button-pressed: #b6b6b6;
  --vm-toolbar: #cecece;
  --vm-input: #f7f7f7;
  --vm-input-border: #6c6c6c;
  --vm-taskbar: #d3d3d3;
  --vm-taskbar-active: #c6c6c6;
  --vm-taskbar-inactive: #d8d8d8;
  --vm-success: #28b532;
  --vm-warning: #d6a000;
  --vm-alert: #c84a4a;
  border: 1px solid var(--vm-outline-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 12%),
    linear-gradient(180deg, var(--vm-desktop-main), var(--vm-desktop-dark));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.45),
    inset -1px -1px 0 rgba(0, 0, 0, 0.22),
    0 14px 32px rgba(0, 0, 0, 0.2);
}

.vm-screen::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.05), transparent 12%),
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.2px);
  background-size: auto, auto, 8px 8px;
  opacity: 0.5;
}

.vm-screen::after {
  background:
    radial-gradient(circle at center, transparent 52%, rgba(0, 0, 0, 0.08) 86%, rgba(0, 0, 0, 0.14) 100%);
}

.vm-desktop {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    linear-gradient(180deg, var(--vm-desktop-main), var(--vm-desktop-dark));
}

.vm-desktop::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 16%),
    radial-gradient(circle, rgba(255, 255, 255, 0.055) 0 1px, transparent 1.2px);
  background-size: auto, 8px 8px;
  opacity: 0.56;
}

.vm-desktop::after {
  color: rgba(16, 55, 66, 0.18);
}

.vm-boot {
  background:
    linear-gradient(180deg, #2d7f7a, #1f5e5a);
}

.vm-boot-frame {
  border: 1px solid var(--vm-outline-dark);
  background: var(--vm-window-body);
  box-shadow:
    inset 1px 1px 0 var(--vm-bevel-light),
    inset -1px -1px 0 var(--vm-bevel-shadow);
}

.vm-boot-title {
  color: var(--vm-text);
}

.vm-boot-line {
  color: var(--vm-text-muted);
}

.vm-mark {
  color: rgba(17, 17, 17, 0.68);
  text-shadow: none;
  top: 0.8rem;
  right: 0.95rem;
  display: block;
  font-size: 0.44rem;
  letter-spacing: 0.14em;
  line-height: 1;
}

.vm-labels {
  display: none;
}

.vm-labels span {
  border-color: rgba(58, 58, 58, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.vm-icon {
  color: var(--vm-text);
  border-radius: 0;
}

.vm-desktop-selection {
  border: 1px dotted rgba(58, 58, 58, 0.72);
  background: rgba(255, 255, 255, 0.04);
}

.vm-desktop-selection-fill {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.62), rgba(0, 0, 0, 0.74));
}

.vm-context-menu {
  border: 1px solid var(--vm-outline-dark);
  border-top-color: var(--vm-bevel-light);
  border-left-color: var(--vm-bevel-light);
  border-right-color: var(--vm-bevel-shadow-deep);
  border-bottom-color: var(--vm-bevel-shadow-deep);
  background: var(--vm-window-body);
  box-shadow:
    inset 1px 1px 0 var(--vm-bevel-light),
    inset -1px -1px 0 var(--vm-bevel-shadow-deep);
}

.vm-context-menu-item {
  color: var(--vm-text);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
}

.vm-context-menu-item:hover,
.vm-context-menu-item:focus-visible {
  background: var(--vm-title-blue);
  color: #ffffff;
  outline: none;
}

.vm-context-menu-separator {
  background: var(--vm-bevel-shadow);
  box-shadow: 0 1px 0 var(--vm-bevel-light);
}

.vm-icon:hover,
.vm-icon:focus-visible {
  border-color: rgba(58, 58, 58, 0.3);
  background: rgba(255, 255, 255, 0.1);
  filter: none;
}

.vm-icon.is-selected {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(58, 58, 58, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  outline: 1px dotted rgba(58, 58, 58, 0.48);
  outline-offset: -4px;
}

.vm-icon-glyph {
  width: 42px;
  height: 42px;
  image-rendering: crisp-edges;
}

.vm-icon-label {
  padding: 0.08rem 0.22rem;
  color: var(--vm-text);
  font-size: 0.47rem;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

.vm-icon.is-selected .vm-icon-label {
  background: transparent;
  color: var(--vm-text);
}

.vm-icon-note {
  border: 1px solid var(--vm-outline-mid);
  background: rgba(201, 201, 201, 0.72);
  color: var(--vm-text-muted);
  border-top-color: var(--vm-bevel-light);
  border-left-color: var(--vm-bevel-light);
  border-right-color: var(--vm-bevel-shadow);
  border-bottom-color: var(--vm-bevel-shadow);
}

.vm-icon.is-locked .vm-icon-note {
  color: #5a4200;
  background: rgba(214, 160, 0, 0.18);
}

.vm-snap-preview {
  border: 1px solid rgba(0, 70, 213, 0.65);
  background: rgba(43, 108, 255, 0.08);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.24);
}

.vm-window {
  border: 1px solid var(--vm-outline-dark);
  border-top-color: var(--vm-bevel-light);
  border-left-color: var(--vm-bevel-light);
  border-right-color: var(--vm-bevel-shadow-deep);
  border-bottom-color: var(--vm-bevel-shadow-deep);
  background: var(--vm-window-body);
  box-shadow:
    inset 1px 1px 0 var(--vm-bevel-light),
    inset -1px -1px 0 var(--vm-bevel-shadow-deep),
    1px 1px 0 var(--vm-bevel-shadow-deep);
}

.vm-window.is-active {
  box-shadow:
    inset 1px 1px 0 var(--vm-bevel-light),
    inset -1px -1px 0 var(--vm-bevel-shadow-deep),
    1px 1px 0 var(--vm-bevel-shadow-deep);
}

.vm-window[data-vm-snap="max"] {
  box-shadow:
    inset 1px 1px 0 var(--vm-bevel-light),
    inset -1px -1px 0 var(--vm-bevel-shadow-deep),
    1px 1px 0 var(--vm-bevel-shadow-deep);
}

.vm-titlebar {
  min-height: 26px;
  padding-right: 0.18rem;
  background: linear-gradient(90deg, var(--vm-title-inactive), #9a9a9a);
  border-bottom: 1px solid var(--vm-outline-mid);
  color: #ffffff;
}

.vm-window.is-active .vm-titlebar {
  background: linear-gradient(90deg, var(--vm-title-blue-dark), var(--vm-title-blue) 48%, var(--vm-title-blue-light));
}

.vm-titlebar-drag {
  padding: 0.26rem 0.3rem 0.24rem 0.44rem;
}

.vm-title {
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.vm-controls {
  gap: 0.08rem;
  padding: 0 0.06rem 0 0.1rem;
}

.vm-control {
  width: 17px;
  height: 16px;
  border: 1px solid var(--vm-outline-dark);
  background: var(--vm-button-face);
  color: var(--vm-text);
  border-top-color: var(--vm-bevel-light);
  border-left-color: var(--vm-bevel-light);
  border-right-color: var(--vm-bevel-shadow-deep);
  border-bottom-color: var(--vm-bevel-shadow-deep);
  box-shadow:
    inset 1px 1px 0 var(--vm-bevel-light),
    inset -1px -1px 0 var(--vm-bevel-shadow-deep);
  font-size: 0.48rem;
}

.vm-control.is-close {
  background: var(--vm-button-face);
  color: var(--vm-text);
}

.vm-control.is-minimize::before {
  left: 4px;
  right: 4px;
  bottom: 4px;
}

.vm-control.is-maximize::before {
  inset: 4px;
}

.vm-control.is-maximize.is-restoring::before {
  top: 3px;
  left: 7px;
  width: 6px;
  height: 5px;
}

.vm-control.is-maximize.is-restoring::after {
  top: 5px;
  left: 4px;
  width: 6px;
  height: 5px;
}

.vm-control.is-close::before,
.vm-control.is-close::after {
  width: 8px;
}

.vm-control:hover,
.vm-control:focus-visible {
  filter: none;
}

.vm-control:active {
  background: var(--vm-button-pressed);
  box-shadow:
    inset -1px -1px 0 var(--vm-bevel-light),
    inset 1px 1px 0 var(--vm-bevel-shadow-deep);
}

.vm-body {
  padding: 0.5rem;
  background: var(--vm-window-body);
  color: var(--vm-text);
}

.vm-pane,
.vm-preview,
.vm-status-card,
.vm-monitor-meta,
.vm-mail-preview,
.vm-mail-header,
.vm-mail-body,
.vm-mail-metadata,
.vm-explorer-table,
.vm-mail-table,
.vm-explorer-path,
.vm-mail-sidebar-title,
.vm-mail-browser-head,
.vm-file-button,
.vm-folder-button,
.vm-mail-folder-button,
.vm-task-button,
.vm-tray-button,
.vm-clock,
.vm-statusbar > span,
.vm-toast {
  border: 1px solid var(--vm-outline-mid);
  border-top-color: var(--vm-bevel-light);
  border-left-color: var(--vm-bevel-light);
  border-right-color: var(--vm-bevel-shadow);
  border-bottom-color: var(--vm-bevel-shadow);
  box-shadow: none;
}

.vm-pane,
.vm-preview,
.vm-status-card,
.vm-monitor-meta,
.vm-mail-preview,
.vm-mail-header,
.vm-mail-body,
.vm-mail-metadata,
.vm-explorer-table,
.vm-mail-table {
  background: var(--vm-panel-light);
}

.vm-explorer-path,
.vm-mail-sidebar-title,
.vm-mail-browser-head {
  background: var(--vm-toolbar);
  color: var(--vm-text-muted);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.vm-pane {
  padding: 0.3rem;
  gap: 0.24rem;
}

.vm-file-button,
.vm-folder-button,
.vm-mail-folder-button,
.vm-task-button,
.vm-tray-button {
  background: var(--vm-button-face);
  color: var(--vm-text);
  border-top-color: var(--vm-bevel-light);
  border-left-color: var(--vm-bevel-light);
  border-right-color: var(--vm-bevel-shadow-deep);
  border-bottom-color: var(--vm-bevel-shadow-deep);
  box-shadow:
    inset 1px 1px 0 var(--vm-bevel-light),
    inset -1px -1px 0 var(--vm-bevel-shadow-deep),
    1px 1px 0 rgba(0, 0, 0, 0.08);
}

.vm-file-button:hover,
.vm-file-button:focus-visible,
.vm-folder-button:hover,
.vm-folder-button:focus-visible,
.vm-mail-folder-button:hover,
.vm-mail-folder-button:focus-visible,
.vm-task-button:hover,
.vm-task-button:focus-visible,
.vm-tray-button:hover,
.vm-tray-button:focus-visible {
  background: var(--vm-button-face);
  border-top-color: var(--vm-bevel-light);
  border-left-color: var(--vm-bevel-light);
  border-right-color: var(--vm-bevel-shadow-deep);
  border-bottom-color: var(--vm-bevel-shadow-deep);
  box-shadow:
    inset 1px 1px 0 var(--vm-bevel-light),
    inset -1px -1px 0 var(--vm-bevel-shadow-deep),
    1px 1px 0 rgba(0, 0, 0, 0.08);
  filter: none;
}

.vm-file-button.is-active,
.vm-folder-button.is-active,
.vm-mail-folder-button.is-active,
.vm-task-button.is-active,
.vm-file-button:active,
.vm-folder-button:active,
.vm-mail-folder-button:active,
.vm-task-button:active,
.vm-tray-button:active {
  background: var(--vm-button-pressed);
  border-top-color: var(--vm-bevel-shadow-deep);
  border-left-color: var(--vm-bevel-shadow-deep);
  border-right-color: var(--vm-bevel-light);
  border-bottom-color: var(--vm-bevel-light);
  box-shadow:
    inset -1px -1px 0 var(--vm-bevel-light),
    inset 1px 1px 0 var(--vm-bevel-shadow-deep);
}

.vm-file-button,
.vm-folder-button {
  padding: 0.34rem 0.46rem;
  font-size: 0.54rem;
}

.vm-explorer-head,
.vm-mail-table-head {
  min-height: 24px;
  background: var(--vm-toolbar);
  color: var(--vm-text-muted);
  border-bottom: 1px solid var(--vm-outline-mid);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
}

.vm-explorer-row,
.vm-mail-row {
  min-height: 24px;
  color: var(--vm-text);
}

.vm-explorer-row:hover,
.vm-explorer-row:focus-visible,
.vm-mail-row:hover,
.vm-mail-row:focus-visible {
  background: rgba(0, 70, 213, 0.08);
}

.vm-explorer-row.is-selected,
.vm-mail-row.is-selected {
  background: var(--vm-title-blue);
  color: #ffffff;
}

.vm-explorer-row.is-selected .vm-explorer-cell,
.vm-mail-row.is-selected .vm-mail-row-cell {
  color: #ffffff;
}

.vm-mail-row.is-selected .vm-mail-tag {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.vm-explorer-cell,
.vm-mail-row-cell {
  font-size: 0.55rem;
  letter-spacing: 0.02em;
}

.vm-mail-header {
  gap: 0.3rem 0.65rem;
  padding: 0.5rem;
}

.vm-mail-header div {
  grid-template-columns: 88px minmax(0, 1fr);
}

.vm-mail-header .mono,
.vm-mail-metadata > .mono,
.vm-mail-meta-grid .mono {
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  color: var(--vm-text-muted);
}

.vm-mail-header strong,
.vm-mail-meta-grid strong {
  font-size: 0.66rem;
  font-weight: 600;
}

.vm-mail-body,
.vm-mail-metadata,
.vm-preview,
.vm-mail-preview {
  padding: 0.55rem;
}

.vm-mail-body p,
.vm-preview p,
.vm-mail-preview p,
.vm-status-card p,
.vm-media-meta p {
  font-size: 0.72rem;
  line-height: 1.5;
}

.vm-mail-tag {
  min-height: 16px;
  padding: 0 0.28rem;
  background: var(--vm-panel-mid);
  color: var(--vm-text);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
}

.vm-doc-title,
.vm-panel-title {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.vm-doc-stamp {
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: var(--vm-text-muted);
}

.vm-monitor-canvas,
.vm-media-surface {
  border: 1px solid var(--vm-input-border);
  background:
    linear-gradient(180deg, #000000, #0c0c0c);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.08),
    inset -1px -1px 0 rgba(0, 0, 0, 0.45);
}

.vm-media-surface.is-wave::after {
  background: linear-gradient(90deg, transparent, rgba(173, 255, 173, 0.88), transparent);
  box-shadow:
    70px -26px 0 0 rgba(173, 255, 173, 0.48),
    104px 16px 0 0 rgba(173, 255, 173, 0.24),
    140px -8px 0 0 rgba(173, 255, 173, 0.52),
    196px 12px 0 0 rgba(173, 255, 173, 0.2);
}

.vm-media-surface.is-stills::after {
  background:
    radial-gradient(circle at 52% 38%, rgba(255, 255, 255, 0.12), transparent 14%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.06) 52%, transparent 100%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.06) 49%, transparent 100%);
}

.vm-media-surface.is-corrupt::after {
  background:
    linear-gradient(0deg, transparent 0 18%, rgba(255, 255, 255, 0.04) 18% 20%, transparent 20% 38%, rgba(255, 255, 255, 0.06) 38% 42%, transparent 42% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 26%, rgba(255, 255, 255, 0.04) 54%, transparent 100%);
}

.vm-monitor-meta {
  padding: 0.5rem;
}

.vm-monitor-meta span,
.vm-status-card .mono,
.vm-bar-label {
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: var(--vm-text-muted);
}

.vm-monitor-meta strong,
.vm-status-figure {
  font-size: 0.8rem;
  color: var(--vm-text);
}

.vm-status-card {
  padding: 0.52rem;
}

.vm-bar-track {
  height: 10px;
  border: 1px solid var(--vm-input-border);
  background: var(--vm-panel-recessed);
  box-shadow:
    inset 1px 1px 0 var(--vm-bevel-shadow),
    inset -1px -1px 0 var(--vm-bevel-light);
}

.vm-bar-track span {
  background: linear-gradient(90deg, #0f5bdf, #4a8dff);
}

.vm-list-item span:last-child {
  color: var(--vm-text-muted);
}

.vm-list-item.is-restricted,
.vm-file-button.is-restricted {
  cursor: not-allowed;
}

.vm-taskbar {
  gap: 0.3rem;
  background: var(--vm-taskbar);
  border-top: 1px solid var(--vm-bevel-light);
  box-shadow: inset 0 1px 0 var(--vm-bevel-light);
}

.vm-taskbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--vm-bevel-shadow);
}

.vm-taskbar-apps {
  gap: 0.24rem;
}

.vm-task-button,
.vm-tray-button,
.vm-clock {
  height: 26px;
  color: var(--vm-text);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
}

.vm-task-button {
  background: var(--vm-taskbar-inactive);
}

.vm-task-button.is-active {
  background: var(--vm-taskbar-active);
}

.vm-task-button.is-minimized {
  background: var(--vm-taskbar-inactive);
  color: var(--vm-text-muted);
}

.vm-statusbar {
  color: var(--vm-text);
  gap: 0.24rem;
}

.vm-statusbar > span {
  height: 22px;
  background: var(--vm-taskbar-inactive);
  padding: 0 0.42rem;
}

.vm-disk-led {
  background: rgba(214, 160, 0, 0.32);
  box-shadow: none;
}

.vm-disk-indicator.is-active .vm-disk-led {
  background: var(--vm-warning);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.vm-toast {
  background: var(--vm-toolbar);
  color: var(--vm-text);
  box-shadow:
    inset 1px 1px 0 var(--vm-bevel-light),
    inset -1px -1px 0 var(--vm-bevel-shadow);
}

.vm-statusbar.is-flicker > span:not(.vm-disk-indicator) {
  color: var(--vm-disabled);
}

.vm-resize-handle {
  background: transparent;
}

.vm-file-button,
.vm-folder-button,
.vm-list-item,
.vm-icon,
.vm-task-button,
.vm-tray-button,
.vm-control {
  transition: background-color 0.04s linear, border-color 0.04s linear;
}
.terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem 0.84rem;
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 32%),
    var(--panel-recessed);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  position: relative;
}

.terminal-close {
  min-height: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 36%),
    var(--panel-raised);
  border: 2px solid var(--line);
  color: var(--text);
  padding: 0.36rem 0.82rem 0.32rem;
  cursor: pointer;
  letter-spacing: 0.15em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.76),
    0 0 0 1px rgba(0, 0, 0, 0.72);
}

.terminal-close:hover,
.terminal-close:focus-visible {
  color: var(--accent);
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 43, 43, 0.08), transparent 38%),
    var(--panel-recessed);
}

.terminal-output {
  flex: 1;
  overflow-y: auto;
  padding: 0.95rem 1rem;
  background: #050202;
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.terminal-line {
  line-height: 1.52;
  text-shadow: 0 0 4px rgba(255, 43, 43, 0.24);
  white-space: pre-wrap;
}

.terminal-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.82rem 1rem 0.78rem;
  border-top: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 42%),
    #080303;
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

#terminal-command {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
}

.terminal-caret {
  width: 0.64rem;
  height: 1.02rem;
  background: var(--accent);
  display: inline-block;
  animation: blink 1s steps(2, start) infinite;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) {
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: none;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-shell {
  background: #c8c8c8;
  color: #cfcfcf;
  border: 1px solid #3a3a3a;
  box-shadow:
    inset 1px 1px 0 #f2f2f2,
    inset -1px -1px 0 #7f7f7f,
    2px 2px 0 rgba(0, 0, 0, 0.2) !important;
  animation: none !important;
  filter: none !important;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-shell::before,
body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-shell::after {
  content: none !important;
  animation: none !important;
  opacity: 0 !important;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-header,
body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-output,
body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-input {
  animation: none !important;
  transform: none !important;
  filter: none !important;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-header {
  padding: 0.3rem 0.42rem;
  border-bottom: 1px solid #4d4d4d;
  background: linear-gradient(180deg, #1f56d9, #0037aa);
  color: #ffffff;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-shadow: none;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-header::before,
body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-header::after {
  content: none !important;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-close {
  min-width: 52px;
  padding: 0.1rem 0.4rem;
  background: #c8c8c8;
  border: 1px solid #3a3a3a;
  border-top-color: #f2f2f2;
  border-left-color: #f2f2f2;
  border-right-color: #111111;
  border-bottom-color: #111111;
  color: #111111;
  box-shadow:
    inset 1px 1px 0 #f3f3f3,
    inset -1px -1px 0 #111111,
    1px 1px 0 #111111;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 0.54rem;
  letter-spacing: 0.04em;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-close:hover,
body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-close:focus-visible {
  color: #111111;
  border-color: #3a3a3a;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-close:active {
  background: #b6b6b6;
  border-top-color: #111111;
  border-left-color: #111111;
  border-right-color: #f2f2f2;
  border-bottom-color: #f2f2f2;
  box-shadow:
    inset -1px -1px 0 #f3f3f3,
    inset 1px 1px 0 #111111;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-output {
  background: #000000;
  color: #cfcfcf;
  padding: 0.45rem 0.55rem;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-line {
  color: #cfcfcf;
  line-height: 1.34;
  text-shadow: none;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-input {
  gap: 0.42rem;
  padding: 0.36rem 0.55rem;
  border-top: 1px solid #4d4d4d;
  background: #000000;
  color: #cfcfcf;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-input::after {
  content: none !important;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) #terminal-command {
  color: #d8d8d8;
  caret-color: transparent;
}

body.flatline-mode .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-caret {
  width: 0.56rem;
  height: 0.86rem;
  background: #d8d8d8;
  animation: blink 1.05s steps(2, start) infinite;
}

body.flatline-mode .terminal-modal.is-reset-flood .terminal-shell,
body.flatline-mode .terminal-modal.is-restoring .terminal-shell {
  background: #c8c8c8;
  color: #cfcfcf;
  border: 1px solid #1b4691 !important;
  box-shadow:
    0 0 0 1px #1b4691,
    inset 1px 1px 0 #f2f2f2,
    inset -1px -1px 0 #7f7f7f,
    2px 2px 0 rgba(0, 0, 0, 0.2) !important;
}

body.flatline-mode .terminal-modal.is-reset-flood .terminal-header,
body.flatline-mode .terminal-modal.is-restoring .terminal-header {
  background: #1b4691;
  color: #ffffff;
  border-bottom: 1px solid #153875;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-shadow: none;
}

body.flatline-mode .terminal-modal.is-reset-flood .terminal-close,
body.flatline-mode .terminal-modal.is-restoring .terminal-close {
  background: #c8c8c8;
  border: 1px solid #3a3a3a;
  border-top-color: #f2f2f2;
  border-left-color: #f2f2f2;
  border-right-color: #111111;
  border-bottom-color: #111111;
  color: #111111;
  box-shadow:
    inset 1px 1px 0 #f3f3f3,
    inset -1px -1px 0 #111111,
    1px 1px 0 #111111;
  font-family: "Tahoma", "MS Sans Serif", sans-serif;
  font-size: 0.54rem;
  letter-spacing: 0.04em;
}

body.flatline-mode .terminal-modal.is-reset-flood .terminal-output,
body.flatline-mode .terminal-modal.is-restoring .terminal-output,
body.flatline-mode .terminal-modal.is-reset-flood .terminal-input,
body.flatline-mode .terminal-modal.is-restoring .terminal-input {
  background: #000000;
  color: #cfcfcf;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

body.flatline-mode .terminal-modal.is-reset-flood .terminal-line,
body.flatline-mode .terminal-modal.is-restoring .terminal-line,
body.flatline-mode .terminal-modal.is-reset-flood #terminal-command,
body.flatline-mode .terminal-modal.is-restoring #terminal-command {
  color: #d8d8d8;
  text-shadow: none;
}

body.flatline-mode .terminal-modal.is-reset-flood .terminal-input::after,
body.flatline-mode .terminal-modal.is-restoring .terminal-input::after {
  content: none !important;
}

body.flatline-mode .terminal-modal.is-reset-flood .terminal-caret,
body.flatline-mode .terminal-modal.is-restoring .terminal-caret {
  width: 0.56rem;
  height: 0.86rem;
  background: #d8d8d8;
}

/* Responsive adjustments */
@media (min-width: 900px) {
  .release-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 1024px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 6.5rem 1.5rem 3.5rem;
  }

  .section {
    padding: 4.5rem 1.5rem;
  }

  .section-header {
    align-items: flex-start;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card-links {
    justify-self: start;
    justify-items: start;
    text-align: left;
  }

  .contact-links {
    justify-content: flex-start;
  }

  .terminal-modal {
    padding: 0.75rem;
  }

  .terminal-shell {
    width: min(100%, 42rem);
    height: min(84dvh, 38rem);
  }

  .vm-container {
    padding: 0.35rem;
  }

  .vm-screen {
    width: min(calc(100vw - 0.7rem), 1180px);
    height: min(calc(100dvh - 0.7rem), 980px);
    max-width: calc(100vw - 0.7rem);
    max-height: calc(100dvh - 0.7rem);
  }

  .vm-taskbar-apps {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }
}

@media (max-width: 820px) {
  .nav {
    padding: 0.9rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-head {
    width: 100%;
  }

  .nav-brand-stack {
    max-width: min(100%, 18rem);
  }

  .nav-notice {
    left: 0;
    right: 0.58rem;
    font-size: 0.5rem;
    letter-spacing: 0.11em;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 0.75rem;
    border-top: 2px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.8rem 0.85rem;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding: 7rem 1rem 3rem;
  }

  .hero-inner {
    width: min(100%, 38rem);
  }

  .hero-intro {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .heartbeat {
    width: min(100%, 24rem);
    margin-inline: auto;
  }

  .heartbeat-display {
    width: 100%;
    justify-content: center;
  }

  .pulse-line {
    width: min(100%, 260px);
    min-width: 0;
    flex: 1 1 auto;
  }

  .section {
    padding: 4rem 1rem;
  }

  .section-header {
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .section-status {
    font-size: 0.66rem;
  }

  .release-grid {
    gap: 1.25rem;
  }

  .release-card {
    padding: 1.1rem;
  }

  .release-card iframe {
    min-height: 190px;
  }

  .about-portrait {
    width: 100%;
    max-width: 320px;
  }

  .footer {
    padding: 1.5rem 1rem 2rem;
  }

  .terminal-modal {
    padding: 0.55rem;
  }

  .terminal-shell {
    width: min(100%, 42rem);
    height: min(84dvh, 38rem);
  }

  .vm-auth {
    inset: 2.45rem 0.6rem 3rem 0.6rem;
  }

  .vm-container {
    padding:
      max(0.35rem, env(safe-area-inset-top))
      max(0.35rem, env(safe-area-inset-right))
      max(0.35rem, env(safe-area-inset-bottom))
      max(0.35rem, env(safe-area-inset-left));
  }

  .vm-screen {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .vm-mark {
    top: 0.55rem;
    right: 0.75rem;
    font-size: 0.42rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.38);
  }

  .vm-icons {
    inset: 1.7rem 0.45rem 48px 0.45rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(86px, auto);
    gap: 0.45rem 0.35rem;
    padding: 0;
    align-content: start;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
  }

  .vm-icon {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    min-height: 84px;
    padding: 0.36rem 0.18rem;
    touch-action: manipulation;
  }

  .vm-icon-glyph {
    width: 40px;
    height: 40px;
  }

  .vm-icon-label {
    font-size: 0.48rem;
  }

  .vm-window-layer {
    inset: 0 0 44px 0;
    padding: 0;
  }

  .vm-window {
    min-width: 0;
    width: calc(100% - 12px) !important;
    max-width: calc(100% - 12px);
    height: calc(100% - 60px) !important;
    max-height: calc(100% - 60px);
    left: 6px !important;
    top: 8px !important;
  }

  .vm-titlebar {
    min-height: 34px;
  }

  .vm-titlebar-drag {
    padding: 0.5rem 0.28rem 0.5rem 0.52rem;
    cursor: default;
    touch-action: manipulation;
  }

  .vm-title {
    font-size: 0.58rem;
  }

  .vm-controls {
    gap: 0.2rem;
  }

  .vm-control {
    width: 24px;
    height: 22px;
  }

  .vm-body {
    padding: 0.55rem;
  }

  .vm-resize-handle {
    display: none;
  }

  .vm-context-menu {
    min-width: 204px;
    max-width: calc(100% - 12px);
  }

  .vm-context-menu-item {
    min-height: 28px;
    padding: 0 0.7rem;
  }

  .vm-app-split,
  .vm-media-layout,
  .vm-status-grid,
  .vm-mail-layout,
  .vm-monitor-meta {
    grid-template-columns: 1fr;
  }

  .vm-explorer,
  .vm-mail-browser {
    min-width: 0;
  }

  .vm-explorer-table,
  .vm-mail-table {
    overflow: auto;
  }

  .vm-explorer-head,
  .vm-explorer-row {
    grid-template-columns: 30px minmax(140px, 2fr) minmax(92px, 1.2fr) minmax(96px, 1.1fr) minmax(68px, 0.8fr);
  }

  .vm-mail-table-head,
  .vm-mail-row {
    grid-template-columns: minmax(120px, 1.25fr) minmax(150px, 1.6fr) minmax(92px, 0.9fr) minmax(88px, 0.8fr);
  }

  .vm-taskbar {
    gap: 0.24rem;
    padding: 0 0.35rem;
  }

  .vm-taskbar-apps {
    gap: 0.2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  .vm-task-button {
    flex: 0 0 auto;
    min-width: 120px;
    max-width: none;
  }

  .vm-tray {
    gap: 0.2rem;
  }

  .vm-tray-button,
  .vm-clock {
    padding: 0 0.5rem;
  }

  .vm-toast {
    right: 0.5rem;
    bottom: 3rem;
    max-width: calc(100% - 1rem);
  }

  .vm-statusbar {
    display: none;
  }

  .vm-snap-preview {
    display: none;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 6.5rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 12vw, 3.1rem);
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .hero-tag,
  .hero-status {
    font-size: 0.68rem;
  }

  .hero-intro {
    font-size: 0.9rem;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 16rem);
    min-height: 48px;
  }

  .heartbeat-meta {
    flex-wrap: wrap;
    gap: 0.3rem 0.7ch;
  }

  .heartbeat-display {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.7rem 0.75rem;
  }

  .heartbeat-led {
    align-self: flex-start;
  }

  .pulse-line {
    width: 100%;
    height: 34px;
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .section-title {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .release-card {
    padding: 0.9rem;
  }

  .release-card iframe {
    min-height: 160px;
  }

  .about-text {
    padding: 1rem;
  }

  .contact-card a {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    overflow-wrap: anywhere;
  }

  .contact-links {
    display: grid;
    gap: 0.65rem;
  }

  .footer {
    font-size: 0.64rem;
  }

  .terminal-modal {
    padding: 0.35rem;
  }

  .terminal-shell {
    width: 100%;
    height: min(86dvh, calc(100dvh - 0.7rem));
    min-height: 0;
  }

  .terminal-header {
    padding: 0.65rem 0.75rem;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .terminal-output {
    padding: 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
  }

  .terminal-input {
    padding: 0.65rem 0.75rem;
    gap: 0.45rem;
  }

  .terminal-modal.is-open:not(.is-crashing):not(.is-restoring):not(.is-reset-flood) .terminal-input::after {
    display: none;
  }

  .terminal-caret {
    width: 0.48rem;
    height: 0.9rem;
  }

  .vm-auth-panel {
    padding: 0.85rem;
  }

  .vm-boot-frame {
    width: calc(100% - 20px);
    padding: 1rem;
  }

  .vm-boot-title {
    font-size: 0.74rem;
  }

  .vm-boot-line {
    font-size: 0.62rem;
  }

  .vm-mark {
    display: none;
  }

  .vm-icons {
    inset: 0.8rem 0.35rem 48px 0.35rem;
    padding-top: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(88px, auto);
  }

  .vm-icon {
    min-height: 88px;
  }

  .vm-icon-glyph {
    width: 38px;
    height: 38px;
  }

  .vm-window {
    width: calc(100% - 8px) !important;
    max-width: calc(100% - 8px);
    height: calc(100% - 54px) !important;
    max-height: calc(100% - 54px);
    left: 4px !important;
    top: 4px !important;
  }

  .vm-titlebar {
    min-height: 36px;
  }

  .vm-titlebar-drag {
    padding: 0.58rem 0.24rem 0.58rem 0.46rem;
  }

  .vm-title {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .vm-controls {
    gap: 0.16rem;
  }

  .vm-control {
    width: 26px;
    height: 24px;
  }

  .vm-body {
    padding: 0.45rem;
  }

  .vm-file-button,
  .vm-folder-button {
    padding: 0.45rem 0.52rem;
    font-size: 0.56rem;
  }

  .vm-mail-header div {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .vm-taskbar {
    height: 46px;
    padding: 0 0.25rem;
  }

  .vm-taskbar-apps {
    gap: 0.15rem;
  }

  .vm-task-button,
  .vm-tray-button,
  .vm-clock {
    height: 28px;
    font-size: 0.46rem;
  }

  .vm-task-button {
    min-width: 108px;
  }

  .vm-tray-button {
    min-width: 64px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0.8rem 0.75rem;
  }

  .brand {
    font-size: 0.94rem;
  }

  .nav-brand-stack {
    max-width: min(100%, 15rem);
  }

  .nav-notice {
    left: 0;
    right: 0.5rem;
    min-height: 1.45rem;
    padding: 0.24rem 0.46rem 0.28rem;
    font-size: 0.46rem;
  }

  .hero {
    padding: 6.25rem 0.75rem 2.75rem;
  }

  .hero-title {
    font-size: clamp(1.55rem, 12vw, 2.6rem);
  }

  .section {
    padding: 3rem 0.75rem;
  }

  .section-header {
    margin-bottom: 1.4rem;
  }

  .release-grid {
    gap: 1rem;
  }

  .about-portrait {
    padding: 0.7rem;
  }

  .terminal-header {
    padding: 0.55rem 0.65rem;
  }

  .terminal-output,
  .terminal-input {
    padding: 0.65rem;
  }

  .vm-screen {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }

  .vm-icons {
    gap: 0.35rem 0.28rem;
  }

  .vm-taskbar {
    padding: 0 0.18rem;
  }
}
/* Reduced-motion overrides */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keyframes */
@keyframes grain {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-1%, 1%, 0);
  }
  100% {
    transform: translate3d(1%, -1%, 0);
  }
}

@keyframes scan {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-12%);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes siteGlitch {
  0% {
    opacity: 1;
    filter: none;
    transform: translate(0, 0);
  }
  10% {
    opacity: 0.65;
    filter: contrast(1.4) saturate(1.2);
    transform: translate(-4px, 0);
  }
  20% {
    opacity: 0.9;
    filter: contrast(1.1);
    transform: translate(3px, -1px);
  }
  30% {
    opacity: 0.55;
    filter: invert(1) hue-rotate(180deg) saturate(1.3);
    transform: translate(-2px, 1px);
  }
  40% {
    opacity: 0.95;
    filter: none;
    transform: translate(1px, 0);
  }
  55% {
    opacity: 0.5;
    filter: contrast(1.5) saturate(1.4);
    transform: translate(-3px, 0);
  }
  70% {
    opacity: 0.85;
    filter: none;
    transform: translate(2px, -1px);
  }
  100% {
    opacity: 1;
    filter: none;
    transform: translate(0, 0);
  }
}

@keyframes rgbFlicker {
  0% {
    opacity: 1;
  }
  15% {
    opacity: 0.4;
  }
  30% {
    opacity: 0.9;
  }
  40% {
    opacity: 0.2;
  }
  55% {
    opacity: 0.95;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes letterFlip {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
  45% {
    transform: scaleY(-1);
    opacity: 0.9;
  }
  55% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes terminalBreak {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 1;
    filter: none;
  }
  25% {
    transform: translate(-6px, 1px);
    opacity: 0.75;
    filter: contrast(1.3);
  }
  50% {
    transform: translate(4px, -2px);
    opacity: 0.55;
    filter: invert(1);
  }
  75% {
    transform: translate(-3px, 2px);
    opacity: 0.9;
    filter: contrast(1.15);
  }
}

@keyframes terminalModalOpen {
  0% {
    background: rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(0px) brightness(1);
  }
  100% {
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(6px) brightness(0.84);
  }
}

@keyframes terminalShellFadeIn {
  0% {
    opacity: 0;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    filter: none;
  }
}

@keyframes terminalModalClose {
  0% {
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(6px) brightness(0.84);
  }
  100% {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px) brightness(1);
  }
}

@keyframes terminalShellFadeOut {
  0% {
    opacity: 1;
    filter: none;
  }
  100% {
    opacity: 0;
    filter: blur(2px);
  }
}

@keyframes terminalHudSweep {
  0% {
    background-position: -140% 0, 0 0;
  }
  100% {
    background-position: 140% 0, 0 0;
  }
}

@keyframes terminalHudFlash {
  0%,
  38%,
  100% {
    opacity: 0.18;
    filter: brightness(1);
  }
  8% {
    opacity: 0.26;
    filter: brightness(1.04);
  }
  10% {
    opacity: 0.19;
    filter: brightness(1);
  }
  66% {
    opacity: 0.24;
    filter: brightness(1.03);
  }
  68% {
    opacity: 0.2;
    filter: brightness(1);
  }
}

@keyframes terminalHudCornerJitter {
  0%,
  100% {
    top: 0.55rem;
    width: 14px;
    height: 14px;
    transform: translate3d(0, 0, 0);
  }
  18% {
    top: 0.52rem;
    width: 10px;
    height: 16px;
    transform: translate3d(-1px, 0, 0);
  }
  32% {
    top: 0.6rem;
    width: 16px;
    height: 9px;
    transform: translate3d(1px, -1px, 0);
  }
  56% {
    top: 0.5rem;
    width: 12px;
    height: 13px;
    transform: translate3d(0, 1px, 0);
  }
  78% {
    top: 0.57rem;
    width: 15px;
    height: 11px;
    transform: translate3d(-1px, 0, 0);
  }
}

@keyframes terminalHudReadoutBreak {
  0%,
  100% {
    opacity: 0.42;
    letter-spacing: 0.16em;
    transform: translate3d(0, 0, 0);
  }
  22% {
    opacity: 0.28;
    letter-spacing: 0.14em;
    transform: translate3d(-1px, 0, 0);
  }
  24% {
    opacity: 0.46;
    letter-spacing: 0.18em;
    transform: translate3d(1px, 0, 0);
  }
  61% {
    opacity: 0.24;
    letter-spacing: 0.12em;
    transform: translate3d(0, 1px, 0);
  }
  64% {
    opacity: 0.4;
    letter-spacing: 0.17em;
    transform: translate3d(0, 0, 0);
  }
}


@keyframes terminalOpenContent {
  0%,
  48% {
    opacity: 0;
    filter: blur(1.2px);
  }
  100% {
    opacity: 1;
    filter: none;
  }
}

@keyframes xpWindowEchoA {
  0% {
    opacity: 0;
    transform: translate(-8px, -4px);
  }
  16% {
    opacity: 0.62;
    transform: translate(-16px, -10px);
  }
  34% {
    opacity: 0.48;
    transform: translate(-30px, -18px);
  }
  52% {
    opacity: 0.34;
    transform: translate(-48px, -28px);
  }
  70% {
    opacity: 0.2;
    transform: translate(-64px, -36px);
  }
  84% {
    opacity: 0.1;
    transform: translate(-78px, -42px);
  }
  100% {
    opacity: 0;
    transform: translate(-92px, -50px);
  }
}

@keyframes xpWindowEchoB {
  0% {
    opacity: 0;
    transform: translate(6px, 4px);
  }
  14% {
    opacity: 0.58;
    transform: translate(14px, 8px);
  }
  32% {
    opacity: 0.44;
    transform: translate(28px, 16px);
  }
  50% {
    opacity: 0.3;
    transform: translate(44px, 24px);
  }
  68% {
    opacity: 0.18;
    transform: translate(58px, 32px);
  }
  84% {
    opacity: 0.08;
    transform: translate(70px, 38px);
  }
  100% {
    opacity: 0;
    transform: translate(84px, 46px);
  }
}

@keyframes terminalFlatlineShell {
  0%,
  100% {
    transform: none;
    filter: none;
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  14% {
    opacity: 0.78;
    filter: contrast(1.12) brightness(0.94);
    clip-path: inset(0 0 0 0);
  }
  18% {
    opacity: 1;
    filter: none;
  }
  32% {
    opacity: 0.42;
    filter: brightness(1.18) contrast(1.2) saturate(0.82);
    clip-path: inset(18% 0 42% 0);
  }
  36% {
    opacity: 0.96;
    filter: none;
    clip-path: inset(0 0 0 0);
  }
  58% {
    opacity: 0.6;
    filter: contrast(1.18) brightness(1.08);
    clip-path: inset(56% 0 8% 0);
  }
  62% {
    opacity: 1;
    filter: none;
    clip-path: inset(0 0 0 0);
  }
  82% {
    opacity: 0.7;
    filter: contrast(1.08);
  }
}

@keyframes terminalFlatlineOverlay {
  0%,
  100% {
    opacity: 0.18;
    transform: none;
  }
  16% {
    opacity: 0.34;
    clip-path: inset(0 0 72% 0);
  }
  34% {
    opacity: 0.12;
    clip-path: inset(28% 0 30% 0);
  }
  52% {
    opacity: 0.28;
    clip-path: inset(72% 0 6% 0);
  }
  76% {
    opacity: 0.14;
    clip-path: inset(12% 0 56% 0);
  }
}

@keyframes terminalFlatlineText {
  0%,
  100% {
    transform: none;
    opacity: 1;
    filter: none;
  }
  14% {
    opacity: 0.38;
    filter: contrast(1.2) blur(0.3px);
  }
  18% {
    opacity: 1;
    filter: none;
  }
  40% {
    opacity: 0.18;
    filter: brightness(1.22);
  }
  44% {
    opacity: 0.96;
    filter: none;
  }
  68% {
    opacity: 0.52;
    filter: contrast(1.1);
  }
  72% {
    opacity: 1;
    filter: none;
  }
}

@keyframes terminalRestoreShell {
  0% {
    opacity: 1;
    filter: contrast(1.28) brightness(1.02);
  }
  18% {
    opacity: 0.94;
    filter: contrast(1.42) brightness(0.94);
  }
  42% {
    opacity: 0.76;
    filter: contrast(1.54) brightness(1);
  }
  68% {
    opacity: 0.42;
    filter: contrast(1.62) brightness(1.06);
  }
  100% {
    opacity: 0;
    filter: contrast(1.76) brightness(1.12);
  }
}

@keyframes terminalRestoreOverlay {
  0% {
    opacity: 0.08;
  }
  40% {
    opacity: 0.18;
    clip-path: inset(18% 0 26% 0);
  }
  100% {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
  }
}

@keyframes terminalRestoreText {
  0% {
    opacity: 1;
    filter: none;
  }
  40% {
    opacity: 0.78;
    filter: contrast(1.3);
  }
  100% {
    opacity: 0;
    filter: blur(1px);
  }
}

@keyframes terminalLineWipe {
  0% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: none;
  }
  18% {
    opacity: 0.86;
    clip-path: inset(0 0 12% 0);
    filter: contrast(1.4);
  }
  38% {
    opacity: 0.62;
    clip-path: inset(18% 0 26% 0);
    filter: brightness(1.22) contrast(1.2);
  }
  58% {
    opacity: 0.32;
    clip-path: inset(52% 0 14% 0);
    filter: brightness(1.28) blur(0.3px);
  }
  78% {
    opacity: 0.2;
    clip-path: inset(76% 0 4% 0);
    filter: blur(0.8px);
  }
  100% {
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    filter: blur(1.2px);
  }
}

@keyframes terminalResetFloodShell {
  0%,
  100% {
    filter: contrast(1.14) brightness(1);
    clip-path: inset(0 0 0 0);
  }
  16% {
    filter: contrast(1.32) brightness(0.95);
    clip-path: inset(0 0 64% 0);
  }
  32% {
    filter: contrast(1.42) brightness(1.01);
    clip-path: inset(22% 0 18% 0);
  }
  48% {
    filter: contrast(1.24) brightness(1);
    clip-path: inset(64% 0 0 0);
  }
  66% {
    filter: contrast(1.5) brightness(0.97);
    clip-path: inset(10% 0 46% 0);
  }
  82% {
    filter: contrast(1.28) brightness(1.01);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes terminalResetFloodOverlay {
  0%,
  100% {
    opacity: 0.06;
    clip-path: inset(0 0 0 0);
  }
  18% {
    opacity: 0.14;
    clip-path: inset(0 0 72% 0);
  }
  44% {
    opacity: 0.1;
    clip-path: inset(36% 0 24% 0);
  }
  68% {
    opacity: 0.16;
    clip-path: inset(78% 0 4% 0);
  }
}

@keyframes terminalResetFloodText {
  0%,
  100% {
    opacity: 1;
    filter: none;
  }
  14% {
    opacity: 0.34;
    filter: contrast(1.2);
  }
  28% {
    opacity: 0.9;
    filter: brightness(1.02);
  }
  52% {
    opacity: 0.2;
    filter: contrast(1.42) blur(0.34px);
  }
  74% {
    opacity: 0.72;
    filter: brightness(1.03);
  }
}

@keyframes restoreAttemptPulse {
  0% {
    transform: translate3d(0, 0, 0);
    filter: brightness(1) contrast(1);
  }
  18% {
    transform: translate3d(-0.18rem, 0.04rem, 0);
    filter: brightness(1.04) contrast(1.04);
  }
  42% {
    transform: translate3d(0.14rem, -0.03rem, 0);
    filter: brightness(1.02) contrast(1.05);
  }
  68% {
    transform: translate3d(-0.08rem, 0.02rem, 0);
    filter: brightness(1.01) contrast(1.02);
  }
  100% {
    transform: translate3d(0, 0, 0);
    filter: brightness(1) contrast(1);
  }
}

@keyframes restoreAttemptVeil {
  0% {
    opacity: 0;
  }
  26% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes restoreAttemptTerminal {
  0% {
    transform: translate3d(0, 0, 0);
    filter: none;
  }
  20% {
    transform: translate3d(-2px, 1px, 0);
    filter: brightness(1.06) contrast(1.08);
  }
  46% {
    transform: translate3d(2px, -1px, 0);
    filter: brightness(1.03) contrast(1.06);
  }
  72% {
    transform: translate3d(-1px, 0, 0);
    filter: brightness(1.01) contrast(1.03);
  }
  100% {
    transform: translate3d(0, 0, 0);
    filter: none;
  }
}

@keyframes bootPowerOnMask {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes crtPowerOnLine {
  0% {
    opacity: 0.98;
    transform: scaleX(0.01);
  }
  28% {
    opacity: 1;
    transform: scaleX(1);
  }
  72% {
    opacity: 0.9;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1.04);
  }
}

@keyframes crtPowerOnScreen {
  0% {
    transform: scaleY(0.02) scaleX(0.96);
    filter: sepia(0.18) hue-rotate(-16deg) saturate(0.2) brightness(2.2) contrast(1.45);
    opacity: 0.72;
  }
  44% {
    transform: scaleY(0.02) scaleX(0.965);
    filter: sepia(0.18) hue-rotate(-14deg) saturate(0.28) brightness(2) contrast(1.38);
    opacity: 0.8;
  }
  72% {
    transform: scaleY(0.12) scaleX(0.985);
    filter: sepia(0.22) hue-rotate(-10deg) saturate(0.45) brightness(1.7) contrast(1.3);
    opacity: 0.9;
  }
  88% {
    transform: scaleY(0.88) scaleX(1.005);
    filter: sepia(0.12) hue-rotate(-4deg) saturate(0.82) brightness(1.15) contrast(1.12);
    opacity: 1;
  }
  100% {
    transform: scaleY(1) scaleX(1);
    filter: sepia(0) hue-rotate(0deg) saturate(1) brightness(1) contrast(1);
    opacity: 1;
  }
}

@keyframes crtClose {
  0% {
    transform: scaleY(1);
    opacity: 1;
  }
  55% {
    transform: scaleY(0.02);
    opacity: 0.75;
  }
  100% {
    transform: scaleY(0);
    opacity: 0;
  }
}

@keyframes crtLine {
  0% {
    opacity: 0;
    transform: scaleX(0.2);
  }
  25% {
    opacity: 1;
    transform: scaleX(1);
  }
  55% {
    opacity: 0.2;
    transform: scaleX(0.45);
  }
  100% {
    opacity: 0;
    transform: scaleX(0.1);
  }
}

@keyframes bootCloseGlitch {
  0% {
    filter: none;
    opacity: 1;
    transform: translate(0, 0);
  }
  30% {
    filter: contrast(1.6) saturate(1.4);
    opacity: 0.7;
    transform: translate(-6px, 0);
  }
  55% {
    filter: invert(1) hue-rotate(180deg) saturate(1.6);
    opacity: 0.5;
    transform: translate(4px, -2px);
  }
  80% {
    filter: contrast(1.3);
    opacity: 0.85;
    transform: translate(-2px, 1px);
  }
  100% {
    filter: none;
    opacity: 0;
    transform: translate(0, 0);
  }
}

@keyframes bootCloseGlitchOverlay {
  0% {
    opacity: 0.18;
  }
  35% {
    opacity: 0.45;
  }
  60% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
  }
}


@keyframes textFlicker {
  0%,
  100% {
    opacity: 1;
  }
  43% {
    opacity: 0.94;
  }
  44% {
    opacity: 0.98;
  }
  78% {
    opacity: 0.96;
  }
  79% {
    opacity: 1;
  }
}

@keyframes brandGrain {
  0%,
  100% {
    opacity: 0;
  }
  48% {
    opacity: 0.18;
  }
  49% {
    opacity: 0.05;
  }
  50% {
    opacity: 0.2;
  }
}

@keyframes brandGlitch {
  0%,
  100% {
    opacity: 0;
  }
  72% {
    opacity: 0.12;
    transform: translate(-2px, 0);
    clip-path: inset(20% 0 55% 0);
  }
  73% {
    opacity: 0.05;
    transform: translate(1px, 0);
    clip-path: inset(55% 0 20% 0);
  }
  74% {
    opacity: 0.16;
    transform: translate(-1px, 0);
    clip-path: inset(35% 0 35% 0);
  }
}

/* Workstation SVG icon overrides */
.vm-icon-glyph,
.vm-button-icon {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.vm-icon-glyph {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

.vm-button-icon {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.vm-icon-glyph::before,
.vm-icon-glyph::after,
.vm-button-icon::before,
.vm-button-icon::after {
  content: none;
}

.vm-icon-glyph--archive {
  background-image: url("images/Workstation_icons/folder.svg");
}

.vm-icon-glyph--signal-monitor {
  background-image: url("images/Workstation_icons/monitor.svg");
}

.vm-icon-glyph--media-recovery {
  background-image: url("images/Workstation_icons/corrupted.svg");
}

.vm-icon-glyph--internal-mail {
  background-image: url("images/Workstation_icons/chat.svg");
}

.vm-icon-glyph--deleted-records {
  background-image: url("images/Workstation_icons/redacted.svg");
}

.vm-icon-glyph--system-status {
  background-image: url("images/Workstation_icons/terminal.svg");
}

.vm-folder-button .vm-button-icon {
  background-image: url("images/Workstation_icons/folder.svg");
}

.vm-folder-button--subjects .vm-button-icon {
  background-image: url("images/Workstation_icons/subjects.svg");
}

.vm-folder-button--surveillance .vm-button-icon {
  background-image: url("images/Workstation_icons/monitor.svg");
}

.vm-folder-button--reports .vm-button-icon {
  background-image: url("images/Workstation_icons/flagged.svg");
}

.vm-folder-button--box .vm-button-icon {
  background-image: url("images/Workstation_icons/locked-folder.svg");
}

.vm-folder-button--media .vm-button-icon {
  background-image: url("images/Workstation_icons/folder.svg");
}

.vm-explorer-row.vm-folder-button--subjects .vm-button-icon {
  background-image: url("images/Workstation_icons/subjects.svg");
}

.vm-explorer-row.vm-folder-button--surveillance .vm-button-icon {
  background-image: url("images/Workstation_icons/monitor.svg");
}

.vm-explorer-row.vm-folder-button--reports .vm-button-icon {
  background-image: url("images/Workstation_icons/flagged.svg");
}

.vm-explorer-row.vm-folder-button--box .vm-button-icon {
  background-image: url("images/Workstation_icons/locked-folder.svg");
}

.vm-explorer-row.vm-folder-button--media .vm-button-icon,
.vm-explorer-row.vm-folder-button--parent .vm-button-icon {
  background-image: url("images/Workstation_icons/folder.svg");
}

.vm-list-item--document .vm-button-icon,
.vm-file-button--media .vm-button-icon {
  background-image: url("images/Workstation_icons/document.svg");
}

.vm-explorer-row.vm-list-item--document .vm-button-icon {
  background-image: url("images/Workstation_icons/document.svg");
}

.vm-list-item--profile .vm-button-icon {
  background-image: url("images/Workstation_icons/subjects.svg");
}

.vm-explorer-row.vm-list-item--profile .vm-button-icon {
  background-image: url("images/Workstation_icons/subjects.svg");
}

.vm-list-item--report .vm-button-icon,
.vm-list-item--log .vm-button-icon,
.vm-file-button--signal .vm-button-icon {
  background-image: url("images/Workstation_icons/flagged.svg");
}

.vm-explorer-row.vm-list-item--report .vm-button-icon,
.vm-explorer-row.vm-list-item--log .vm-button-icon {
  background-image: url("images/Workstation_icons/flagged.svg");
}

.vm-list-item--chat .vm-button-icon {
  background-image: url("images/Workstation_icons/chat.svg");
}

.vm-explorer-row.vm-list-item--chat .vm-button-icon {
  background-image: url("images/Workstation_icons/chat.svg");
}

.vm-list-item--redacted .vm-button-icon {
  background-image: url("images/Workstation_icons/redacted.svg");
}

.vm-explorer-row.vm-list-item--redacted .vm-button-icon {
  background-image: url("images/Workstation_icons/redacted.svg");
}

.vm-list-item--corrupt .vm-button-icon,
.vm-file-button--corrupt .vm-button-icon {
  background-image: url("images/Workstation_icons/corrupted.svg");
}

.vm-explorer-row.vm-list-item--corrupt .vm-button-icon {
  background-image: url("images/Workstation_icons/corrupted.svg");
}







