:root {
  --bg: #07050d;
  --panel: rgba(13, 10, 24, 0.88);
  --panel-strong: rgba(18, 13, 34, 0.96);
  --border: rgba(187, 134, 252, 0.18);
  --border-strong: rgba(120, 220, 255, 0.42);
  --text: #eee9ff;
  --muted: #9b93b7;
  --purple: #b793ff;
  --violet: #8d63ff;
  --pink: #ff78c6;
  --cyan: #74e4ff;
  --green: #7fffd4;
  --gold: #ffd479;
  --danger: #ff7c9f;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 18%, rgba(124, 74, 255, 0.14), transparent 30%),
    radial-gradient(circle at 85% 78%, rgba(0, 210, 255, 0.08), transparent 28%),
    linear-gradient(145deg, #05030a, #0b0714 44%, #08050f);
  font-family: "Cascadia Code", "JetBrains Mono", "Fira Code", Consolas, monospace;
}

button,
input {
  font: inherit;
}

.nebula {
  position: fixed;
  z-index: 0;
  width: 42vw;
  aspect-ratio: 1;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  border-radius: 50%;
  animation: drift 14s ease-in-out infinite alternate;
}

.nebula--one {
  top: -16vw;
  left: -8vw;
  background: conic-gradient(from 60deg, var(--violet), transparent, var(--pink), transparent);
}

.nebula--two {
  right: -12vw;
  bottom: -20vw;
  background: conic-gradient(from 180deg, var(--cyan), transparent, var(--violet), transparent);
  animation-delay: -7s;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1500px, calc(100vw - 24px));
  height: min(960px, calc(100dvh - 24px));
  margin: 12px auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(20, 14, 38, 0.94), rgba(7, 5, 13, 0.94));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 8, 20, 0.86);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 18px currentColor;
}

.dot--pink {
  color: var(--pink);
  background: currentColor;
}

.dot--gold {
  color: var(--gold);
  background: currentColor;
}

.dot--cyan {
  color: var(--cyan);
  background: currentColor;
}

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

.topbar__title span {
  color: var(--cyan);
}

.topbar__status {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 16px currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}

.workspace {
  display: grid;
  grid-template-columns: clamp(230px, 18vw, 290px) minmax(0, 1fr);
  min-height: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(20px, 2.4vw, 28px) clamp(18px, 2vw, 22px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(28, 18, 52, 0.76), rgba(9, 7, 17, 0.92)),
    radial-gradient(circle at top left, rgba(255, 120, 198, 0.10), transparent 40%);
}

.sidebar__section {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(183, 147, 255, 0.10);
}

.sidebar__section--bottom {
  margin-top: auto;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.08em;
  text-shadow: 0 0 36px rgba(183, 147, 255, 0.35);
}

.cursor-mark {
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}

.muted {
  color: var(--muted);
  line-height: 1.65;
}

.path-card {
  padding: 12px 14px;
  overflow: hidden;
  color: var(--cyan);
  border: 1px solid rgba(116, 228, 255, 0.16);
  border-radius: 10px;
  background: rgba(116, 228, 255, 0.045);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-cheatsheet {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 8px 12px;
  align-items: baseline;
  font-size: 0.76rem;
}

.command-cheatsheet span {
  color: var(--cyan);
}

.command-cheatsheet small {
  color: var(--muted);
}

.session-line {
  display: flex;
  justify-content: space-between;
  margin: 7px 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.session-line strong {
  color: var(--green);
  font-weight: 600;
}

.terminal-panel {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(rgba(7, 5, 13, 0.40), rgba(7, 5, 13, 0.75)),
    repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.012),
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 4px);
}

.terminal-output {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  padding:
    clamp(22px, 3.4vw, 36px)
    clamp(18px, 4vw, 58px);
  overflow-y: auto;
  scroll-behavior: smooth;
}

.boot-sequence {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.boot-sequence p {
  margin: 2px 0;
}

.accent {
  color: var(--purple);
}

.success {
  color: var(--green);
}

.page-view {
  width: min(100%, 920px);
  min-width: 0;
  max-width: 920px;
  overflow-wrap: anywhere;
  animation: reveal 320ms ease-out;
}

.page-view h2,
.page-view h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.04em;
}

.page-view h2 {
  font-size: clamp(2rem, 4.7vw, 4.8rem);
  line-height: 0.98;
}

.page-view h3 {
  margin-top: 32px;
  font-size: 1.25rem;
  color: var(--cyan);
}

.page-view p,
.page-view li {
  color: #c7c0da;
  line-height: 1.8;
}

.page-view strong {
  color: var(--text);
}

.page-view :not(pre)>code,
.inline-command {
  padding: 0.15em 0.45em;
  border: 1px solid rgba(116, 228, 255, 0.16);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(116, 228, 255, 0.055);
}

.hero-kicker {
  margin: 0 0 16px !important;
  color: var(--pink) !important;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 760px;
  margin-top: 24px;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.hero-name {
  background: linear-gradient(90deg, var(--text), var(--purple) 48%, var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

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

.info-card {
  min-height: 120px;
  padding: 18px;
  border: 1px solid rgba(183, 147, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(183, 147, 255, 0.06), rgba(116, 228, 255, 0.025));
}

.info-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--pink);
  font-size: 0.67rem;
  letter-spacing: 0.18em;
}

.info-card strong {
  font-size: 1rem;
  line-height: 1.4;
}

.command-stack {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.command-stack div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 11px 13px;
  border-left: 2px solid var(--violet);
  background: rgba(141, 99, 255, 0.045);
}

.command-stack code {
  min-width: 132px;
  border: 0;
  background: transparent;
}

.command-stack span {
  color: var(--muted);
  font-size: 0.82rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.tag {
  padding: 7px 10px;
  border: 1px solid rgba(255, 120, 198, 0.18);
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 120, 198, 0.045);
  font-size: 0.72rem;
}

.command-log {
  display: grid;
  min-width: 0;
  gap: 12px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(183, 147, 255, 0.10);
}

.log-entry {
  min-width: 0;
  font-size: clamp(0.76rem, 1vw, 0.82rem);
}

.log-command {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.log-command .log-path {
  color: var(--cyan);
}

.log-result {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

.log-result--error {
  color: var(--danger);
}

.file-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.file-item {
  color: #c7c0da;
}

.file-item--dir {
  color: var(--purple);
}

.file-item--page {
  color: var(--cyan);
}

.command-line {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(58px, 7vh, 68px);
  padding:
    0
    clamp(18px, 4vw, 58px)
    max(0px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-strong);
  background: rgba(10, 7, 18, 0.98);
  box-shadow: 0 -18px 50px rgba(78, 41, 140, 0.12);
  font-size: 0.95rem;
}

.prompt-user {
  color: var(--pink);
  font-weight: 700;
}

.prompt-at {
  color: var(--muted);
}

.prompt-host {
  color: var(--purple);
  font-weight: 700;
}

.prompt-path {
  min-width: 0;
  max-width: min(38vw, 420px);
  margin-left: 9px;
  overflow: hidden;
  color: var(--cyan);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-symbol {
  margin: 0 11px;
  color: var(--green);
}

#command-input {
  width: 100%;
  min-width: 8ch;
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  color: var(--text);
  caret-color: var(--cyan);
  background: transparent;
}

#command-input::placeholder {
  color: #5e5871;
}

.command-hint {
  margin: 0;
  padding:
    7px
    clamp(18px, 4vw, 58px)
    max(10px, env(safe-area-inset-bottom));
  color: #625c77;
  background: rgba(10, 7, 18, 0.98);
  font-size: 0.65rem;
}

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

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

@keyframes pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

@keyframes drift {
  to {
    transform: translate3d(6vw, 4vh, 0) scale(1.12);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}


/* Runtime terminal document output */

.log-result--html,
.log-result--document {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

.log-result--document {
  margin-top: 1rem;
}

.log-result--document > .page-view {
  width: min(100%, 920px);
  max-width: 920px;
}

.log-entry--standalone .log-result {
  margin-top: 0;
}


/* Hyprland nebula scrollbars */

* {
  scrollbar-width: thin;
  scrollbar-color:
    rgba(183, 147, 255, 0.62)
    rgba(8, 6, 15, 0.58);
}

*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

*::-webkit-scrollbar-track {
  border: 1px solid rgba(183, 147, 255, 0.06);
  background: rgba(8, 6, 15, 0.68);
}

*::-webkit-scrollbar-thumb {
  min-height: 36px;
  border: 3px solid rgba(8, 6, 15, 0.82);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 120, 198, 0.78),
      rgba(141, 99, 255, 0.82) 52%,
      rgba(116, 228, 255, 0.76)
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 16px rgba(141, 99, 255, 0.22);
}

*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(
      180deg,
      rgba(255, 120, 198, 0.96),
      rgba(183, 147, 255, 0.96) 52%,
      rgba(116, 228, 255, 0.92)
    );
}

*::-webkit-scrollbar-corner {
  background: rgba(8, 6, 15, 0.82);
}



/* Nova Labs neofetch */

.neofetch {
  display: grid;
  grid-template-columns:
    minmax(31ch, max-content)
    minmax(0, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
  width: min(100%, 980px);
  padding: clamp(12px, 2vw, 22px) 0;
}

.neofetch__logo {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  color: #ff00b7;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: clamp(0.52rem, 0.72vw, 0.68rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow:
    0 0 8px rgba(255, 0, 183, 0.5),
    0 0 28px rgba(255, 0, 183, 0.18);
  white-space: pre;
}

.neofetch__info {
  min-width: 0;
  padding-top: 2px;
}

.neofetch__identity {
  color: var(--text);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 700;
}

.neofetch__identity span {
  color: var(--pink);
}

.neofetch__identity b {
  color: var(--muted);
  font-weight: 400;
}

.neofetch__identity strong {
  color: var(--purple);
}

.neofetch__rule {
  margin: 2px 0 11px;
  color: rgba(183, 147, 255, 0.62);
}

.neofetch__rows {
  display: grid;
  gap: 3px;
}

.neofetch__row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.7ch;
  min-width: 0;
}

.neofetch__label {
  color: var(--cyan);
  font-weight: 700;
}

.neofetch__label::after {
  content: ":";
  color: var(--muted);
}

.neofetch__value {
  min-width: 0;
  color: #c7c0da;
  overflow-wrap: anywhere;
}

.neofetch__palette {
  display: grid;
  grid-template-columns: repeat(8, 18px);
  gap: 3px;
  margin-top: 15px;
}

.neofetch__palette span {
  height: 11px;
  border-radius: 2px;
  box-shadow: 0 0 12px currentColor;
}

.neofetch__palette span:nth-child(1) {
  color: #120b20;
  background: currentColor;
}

.neofetch__palette span:nth-child(2) {
  color: #ff00b7;
  background: currentColor;
}

.neofetch__palette span:nth-child(3) {
  color: var(--pink);
  background: currentColor;
}

.neofetch__palette span:nth-child(4) {
  color: var(--purple);
  background: currentColor;
}

.neofetch__palette span:nth-child(5) {
  color: var(--violet);
  background: currentColor;
}

.neofetch__palette span:nth-child(6) {
  color: var(--cyan);
  background: currentColor;
}

.neofetch__palette span:nth-child(7) {
  color: var(--green);
  background: currentColor;
}

.neofetch__palette span:nth-child(8) {
  color: var(--gold);
  background: currentColor;
}

@media (max-width: 760px) {
  .neofetch {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .neofetch__logo {
    font-size: clamp(0.47rem, 1.65vw, 0.62rem);
  }
}

@media (max-width: 420px) {
  .neofetch {
    gap: 18px;
  }

  .neofetch__logo {
    max-width: none;
    font-size: 0.43rem;
  }

  .neofetch__palette {
    grid-template-columns: repeat(8, minmax(10px, 1fr));
  }
}



/* Nova Labs virtual system commands */

.terminal-table {
  width: max-content;
  min-width: min(100%, 42ch);
  max-width: 100%;
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid rgba(183, 147, 255, 0.14);
  border-radius: 10px;
  color: #c7c0da;
  background:
    linear-gradient(
      145deg,
      rgba(183, 147, 255, 0.045),
      rgba(116, 228, 255, 0.022)
    );
  font: inherit;
  line-height: 1.55;
  white-space: pre;
}

.service-status::first-line {
  color: var(--green);
}

.cowsay {
  color: var(--purple);
}

.sl-stage {
  position: relative;
  width: 100%;
  height: 14rem;
  overflow: hidden;
  border-block: 1px solid rgba(183, 147, 255, 0.10);
  background:
    linear-gradient(
      180deg,
      rgba(7, 5, 13, 0.12),
      rgba(7, 5, 13, 0.48)
    );
}

.sl-train {
  position: absolute;
  top: 1.6rem;
  left: 0;
  width: max-content;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 0.72rem;
  line-height: 1.05;
  white-space: pre;
  text-shadow:
    0 0 10px rgba(116, 228, 255, 0.42);
  animation:
    sl-crossing 7.5s linear both;
}

.matrix-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  cursor: none;
  background: #040209;
  animation: matrix-enter 180ms ease-out;
}

.matrix-overlay__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.matrix-overlay__hint {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  padding: 8px 11px;
  border: 1px solid rgba(255, 0, 183, 0.32);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(4, 2, 9, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.boot-sequence--replay {
  animation: boot-replay 820ms ease-out both;
}

@keyframes sl-crossing {
  from {
    transform: translateX(calc(100vw + 10%));
  }

  to {
    transform: translateX(calc(-100% - 10vw));
  }
}

@keyframes matrix-enter {
  from {
    opacity: 0;
  }
}

@keyframes boot-replay {
  from {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 620px) {
  .terminal-table {
    padding: 11px 12px;
    font-size: 0.68rem;
  }

  .sl-stage {
    height: 11rem;
  }

  .sl-train {
    font-size: 0.54rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sl-train {
    position: static;
    transform: none;
    animation: none;
  }

  .sl-stage {
    height: auto;
    overflow-x: auto;
    padding-block: 12px;
  }
}



/* Full-text grep results */

.grep-results {
  display: grid;
  gap: 7px;
  width: min(100%, 1100px);
}

.grep-results__summary {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.74rem;
}

.grep-results__summary code {
  color: var(--cyan);
}

.grep-result {
  display: grid;
  grid-template-columns:
    minmax(170px, 0.8fr)
    minmax(0, 1.6fr);
  gap: 8px 14px;
  min-width: 0;
  padding: 8px 10px;
  border-left: 2px solid rgba(141, 99, 255, 0.72);
  background: rgba(141, 99, 255, 0.035);
}

.grep-result--file {
  display: block;
}

.grep-result__path,
.grep-result--file code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--cyan);
  background: transparent;
}

.grep-result__kind {
  grid-column: 2;
  color: var(--pink);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grep-result__text {
  min-width: 0;
  color: #c7c0da;
  overflow-wrap: anywhere;
}

.grep-result mark {
  padding: 0 0.08em;
  border-radius: 2px;
  color: #09050f;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(255, 212, 121, 0.28);
}

@media (max-width: 700px) {
  .grep-result {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .grep-result__kind {
    grid-column: 1;
  }
}


/* Responsive shell */

@media (max-width: 1080px) {
  .shell {
    width: min(100% - 16px, 1024px);
    height: calc(100dvh - 16px);
    margin: 8px auto;
  }

  .workspace {
    grid-template-columns: clamp(210px, 24vw, 250px) minmax(0, 1fr);
  }

  .sidebar {
    padding: 20px 18px;
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    overflow: hidden;
  }

  .shell {
    width: 100%;
    height: 100dvh;
    margin: 0;
    border-inline: 0;
    border-radius: 0;
  }

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

  .sidebar {
    display: grid;
    grid-template-columns:
      minmax(0, 1.2fr)
      minmax(0, 1fr)
      minmax(0, 1.25fr);
    gap: 14px;
    padding: 14px 18px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .sidebar__section,
  .sidebar__section--bottom {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .sidebar__section--bottom {
    margin-top: 0;
  }

  .sidebar h1 {
    font-size: clamp(1.75rem, 6vw, 2.6rem);
  }

  .sidebar .muted {
    margin-bottom: 0;
    font-size: 0.72rem;
  }

  .command-cheatsheet {
    grid-template-columns: 44px 1fr;
    gap: 5px 9px;
    font-size: 0.69rem;
  }

  .session-line {
    font-size: 0.68rem;
  }

  .terminal-output {
    padding:
      clamp(18px, 3vw, 26px)
      clamp(16px, 4vw, 28px);
  }

  .command-line {
    padding-inline: clamp(14px, 4vw, 28px);
  }

  .command-hint {
    padding-inline: clamp(14px, 4vw, 28px);
  }

  .page-view h2 {
    font-size: clamp(1.8rem, 8vw, 3.8rem);
  }
}

@media (max-width: 620px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 46px;
    padding-inline: 14px;
  }

  .topbar__title {
    min-width: 0;
    justify-self: end;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar__status {
    display: none;
  }

  .sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 12px 14px;
  }

  .sidebar__section:nth-of-type(3),
  .sidebar__section--bottom {
    display: none;
  }

  .path-card {
    padding: 9px 11px;
    font-size: 0.72rem;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 0.61rem;
  }

  .sidebar h1 {
    font-size: clamp(1.65rem, 10vw, 2.25rem);
  }

  .sidebar .muted {
    font-size: 0.66rem;
    line-height: 1.4;
  }

  .boot-sequence {
    margin-bottom: 20px;
    font-size: 0.69rem;
  }

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

  .command-stack div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .command-stack code {
    min-width: 0;
  }

  .file-list {
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  }

  .prompt-at,
  .prompt-host {
    display: none;
  }

  .prompt-path {
    max-width: 34vw;
    margin-left: 0;
  }

  .prompt-symbol {
    margin-inline: 8px;
  }

  .command-line {
    min-height: 58px;
    font-size: 0.84rem;
  }

  .command-hint {
    overflow: hidden;
    font-size: 0.58rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-copy {
    font-size: 0.96rem;
  }
}

@media (max-width: 420px) {
  .sidebar {
    display: block;
  }

  .sidebar__section:nth-of-type(n + 2) {
    display: none;
  }

  .terminal-output {
    padding-inline: 13px;
  }

  .command-line,
  .command-hint {
    padding-inline: 12px;
  }

  .prompt-user {
    display: none;
  }

  .prompt-path {
    max-width: 30vw;
  }

  .page-view h2 {
    font-size: clamp(1.65rem, 10vw, 2.5rem);
  }

  .info-card {
    min-height: 0;
  }
}

@media (max-height: 680px) and (min-width: 821px) {
  .shell {
    height: calc(100dvh - 12px);
    margin-block: 6px;
  }

  .sidebar {
    padding-block: 18px;
  }

  .sidebar__section {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .boot-sequence {
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}