@font-face {
  font-family: "Space Grotesk";
  src: url("space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --desktop: #090d0e;
  --desktop-glow: #172224;
  --shell: #111819;
  --shell-raised: #172022;
  --chrome: #0d1314;
  --panel: #141d1f;
  --panel-strong: #1a2527;
  --line: rgba(200, 216, 208, 0.16);
  --line-strong: rgba(224, 174, 106, 0.55);
  --text: #e7ece8;
  --muted: #98a59f;
  --faint: #84918b;
  --accent: #e0ae6a;
  --accent-bright: #f4c989;
  --accent-06: rgba(224, 174, 106, 0.06);
  --accent-07: rgba(224, 174, 106, 0.07);
  --accent-16: rgba(224, 174, 106, 0.16);
  --accent-25: rgba(224, 174, 106, 0.25);
  --accent-30: rgba(224, 174, 106, 0.3);
  --accent-32: rgba(224, 174, 106, 0.32);
  --accent-45: rgba(224, 174, 106, 0.45);
  --accent-50: rgba(224, 174, 106, 0.5);
  --green: #79c99c;
  --red: #e6786f;
  --yellow: #d7b15a;
  --blue: #7ea6b8;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --shell-radius: 14px;
  --window-radius: 10px;
  --shell-shadow: 0 32px 100px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(225, 237, 231, 0.05);
  --window-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

:root[data-theme="green"] {
  --line-strong: rgba(121, 201, 156, 0.55);
  --accent: #79c99c;
  --accent-bright: #a4e4bd;
  --accent-06: rgba(121, 201, 156, 0.06);
  --accent-07: rgba(121, 201, 156, 0.07);
  --accent-16: rgba(121, 201, 156, 0.16);
  --accent-25: rgba(121, 201, 156, 0.25);
  --accent-30: rgba(121, 201, 156, 0.3);
  --accent-32: rgba(121, 201, 156, 0.32);
  --accent-45: rgba(121, 201, 156, 0.45);
  --accent-50: rgba(121, 201, 156, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--desktop);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--desktop);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.js body {
  height: 100dvh;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

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

::selection {
  color: #111716;
  background: var(--accent);
}

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #111716;
  background: var(--accent);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.assistant-return {
  position: fixed;
  z-index: 80;
  top: 10px;
  right: 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(9, 13, 14, 0.82);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.assistant-return:hover,
.assistant-return:focus-visible {
  color: var(--text);
  border-color: var(--accent-45);
}

.environment {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 16%, rgba(56, 76, 71, 0.34), transparent 36%),
    radial-gradient(circle at 82% 72%, rgba(74, 53, 37, 0.22), transparent 42%),
    var(--desktop);
}

.environment__image {
  position: absolute;
  inset: -8%;
  background:
    linear-gradient(112deg, rgba(5, 9, 10, 0.38), rgba(4, 8, 9, 0.88)),
    url("terminal-backdrop-v2.webp") center / cover no-repeat;
  filter: blur(16px) saturate(0.48) brightness(0.31);
  opacity: 0.5;
  transform: scale(1.12);
  animation: environmentDrift 30s ease-in-out infinite alternate;
}

.environment__grid {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(213, 228, 219, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 228, 219, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 78%);
}

.environment__grain {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.52'/%3E%3C/svg%3E");
}

@keyframes environmentDrift {
  from {
    transform: scale(1.12) translate3d(-0.7%, -0.4%, 0);
  }
  to {
    transform: scale(1.16) translate3d(0.8%, 0.5%, 0);
  }
}

.desktop {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 36px 32px 76px;
}

.desktop-label {
  position: fixed;
  z-index: 2;
  top: 15px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  color: rgba(210, 222, 216, 0.42);
  font-size: 10px;
  letter-spacing: 0.14em;
  pointer-events: none;
}

.terminal-shell {
  position: relative;
  z-index: 10;
  width: min(1220px, calc(100vw - 64px));
  height: min(840px, calc(100dvh - 112px));
  min-height: 590px;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  overflow: hidden;
  background: rgba(17, 24, 25, 0.96);
  border: 1px solid rgba(207, 222, 214, 0.18);
  border-radius: var(--shell-radius);
  box-shadow: var(--shell-shadow);
  isolation: isolate;
  transform-origin: center bottom;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@supports (backdrop-filter: blur(18px)) {
  .terminal-shell,
  .app-window,
  .exit-window {
    backdrop-filter: blur(18px) saturate(1.06);
  }
}

.terminal-shell.is-maximized {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.desktop[data-shell-state="minimized"] .terminal-shell,
.desktop[data-shell-state="closed"] .terminal-shell {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(34px) scale(0.93);
}

.terminal-chrome {
  min-width: 0;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 140px;
  align-items: center;
  padding: 0 10px 0 8px;
  color: var(--muted);
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  user-select: none;
}

.window-controls {
  display: flex;
  align-items: center;
}

.window-control {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.window-control > span {
  width: 12px;
  height: 12px;
  display: block;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  transition: filter 120ms ease, transform 120ms ease;
}

.window-control--close > span {
  background: var(--red);
}

.window-control--minimize > span {
  background: var(--yellow);
}

.window-control--maximize > span {
  background: var(--green);
}

.window-control:hover > span {
  filter: brightness(1.15);
  transform: scale(1.08);
}

.window-control:active > span {
  transform: scale(0.88);
}

.terminal-title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-title span:first-child {
  color: var(--muted);
}

.terminal-title strong {
  color: var(--accent);
  font-weight: 500;
}

.terminal-state {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 8px 0 0;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal-state i {
  width: 7px;
  height: 7px;
  display: block;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(121, 201, 156, 0.4);
  animation: statusPulse 2.2s ease-out infinite;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(121, 201, 156, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(121, 201, 156, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(121, 201, 156, 0);
  }
}

.terminal-workspace {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
}

.command-rail {
  position: relative;
  z-index: 3;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 20px 12px 14px;
  background: #0e1516;
  border-right: 1px solid var(--line);
}

.command-rail__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 18px;
  border-bottom: 1px solid var(--line);
}

.monogram {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #101615;
  background: var(--accent);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.command-rail__identity div {
  min-width: 0;
}

.command-rail__identity strong,
.command-rail__identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-rail__identity strong {
  font-family: var(--display);
  font-size: 12px;
}

.command-rail__identity small {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.command-rail__commands {
  align-self: start;
  display: grid;
  gap: 3px;
  padding-top: 18px;
}

.command-rail__commands button {
  min-height: 44px;
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px;
  padding: 10px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.command-rail__commands button span {
  color: var(--faint);
  font-size: 10px;
}

.command-rail__commands button:hover,
.command-rail__commands button[aria-current="page"] {
  color: var(--text);
  background: var(--accent-07);
  border-left-color: var(--accent);
}

.command-rail__commands button[aria-current="page"] span {
  color: var(--accent);
}

.command-rail__foot {
  display: grid;
  gap: 5px;
  padding: 12px 7px 0;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.command-rail__foot span:first-child {
  color: var(--muted);
}

.terminal-pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 58px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, var(--accent-06), transparent 62%),
    linear-gradient(180deg, rgba(22, 31, 32, 0.98), var(--shell));
  isolation: isolate;
}

.terminal-pane::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 4px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018), transparent 4%, transparent 96%, rgba(0, 0, 0, 0.12));
  mix-blend-mode: screen;
  opacity: 0.44;
}

.terminal-transcript {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(24px, 3.2vw, 44px);
  overscroll-behavior: contain;
  scrollbar-width: none;
  text-shadow: 0 0 12px rgba(231, 236, 232, 0.035);
}

.terminal-transcript::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.app-window__body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.app-window__body::-webkit-scrollbar-thumb {
  background: var(--accent-25);
  border-radius: 99px;
}

.boot-log {
  margin-bottom: 26px;
  padding-bottom: 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.boot-log p {
  margin: 0 0 3px;
}

.js .boot-log p {
  opacity: 0;
  transform: translateY(3px);
}

.js.terminal-ready .boot-log p {
  animation: consoleLineIn 180ms ease forwards;
}

.js.terminal-ready .boot-log p:nth-child(2) {
  animation-delay: 45ms;
}

.js.terminal-ready .boot-log p:nth-child(3) {
  animation-delay: 90ms;
}

@keyframes consoleLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.output-muted {
  color: var(--faint);
}

.output-ok {
  color: var(--green);
  font-weight: 600;
}

.home-output {
  max-width: 880px;
  animation: outputIn 520ms 80ms both cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes outputIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.window-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.console-prompt {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 12px;
}

.identity-output {
  margin: 0 0 24px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

.identity-output h1 {
  margin: 0 0 5px;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-shadow: 0 0 20px rgba(231, 236, 232, 0.08);
}

.identity-output p {
  max-width: 76ch;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.directory-output {
  display: grid;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}

.directory-output button {
  min-height: 44px;
  display: grid;
  grid-template-columns: 108px 116px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.directory-output button:hover,
.directory-output button:focus-visible {
  color: var(--text);
  background: var(--accent-07);
}

.directory-output span {
  color: var(--faint);
  font-size: 10px;
}

.directory-output strong {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.directory-output small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.readme-output {
  display: grid;
  gap: 5px;
  margin-left: 18px;
  color: var(--muted);
  font-size: 11px;
}

.readme-output p {
  margin: 0;
}

.readme-output strong {
  display: inline-block;
  width: 72px;
  color: var(--accent);
  font-weight: 600;
}

.command-log {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.transcript-entry {
  padding-top: 4px;
  animation: transcriptIn 180ms ease both;
}

@keyframes transcriptIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.transcript-entry p {
  margin: 0 0 4px;
}

.transcript-entry__command {
  color: var(--text);
}

.transcript-entry__command .prompt-user {
  color: var(--green);
}

.transcript-entry__command .prompt-path {
  color: var(--blue);
}

.transcript-entry__response {
  color: var(--muted);
  font-size: 12px;
  white-space: pre-wrap;
}

.transcript-entry__response strong {
  color: var(--accent);
}

.transcript-entry--error .transcript-entry__response strong {
  color: var(--red);
}

.terminal-form-note {
  color: var(--faint);
  font-size: 10px;
}

.command-form {
  position: relative;
  z-index: 4;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(60px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background:
    linear-gradient(90deg, var(--accent-06), transparent 32%),
    #0d1415;
  border-top: 1px solid var(--line);
  box-shadow: 0 -16px 28px rgba(5, 9, 10, 0.16);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.terminal-shell.has-input-focus .command-form {
  border-top-color: var(--accent-45);
  box-shadow: 0 -14px 30px var(--accent-06);
}

.command-form label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.prompt-user {
  color: var(--green);
}

.prompt-path {
  color: var(--blue);
}

.command-form input {
  width: 100%;
  min-width: 0;
  padding: 10px 2px;
  color: var(--text);
  caret-color: var(--accent);
  caret-shape: block;
  background: transparent;
  border: 0;
  outline: 0;
  text-shadow: 0 0 12px var(--accent-16);
}

.command-form input::placeholder {
  color: transparent;
}

.command-form input:placeholder-shown {
  caret-color: transparent;
}

.terminal-shell.has-input-focus .command-form input:placeholder-shown {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 2px center;
  background-size: 8px 1.15em;
  animation: terminalCursor 1.05s steps(1, end) infinite;
}

@keyframes terminalCursor {
  0%,
  48% {
    background-image: linear-gradient(var(--accent), var(--accent));
  }
  49%,
  100% {
    background-image: linear-gradient(transparent, transparent);
  }
}

.command-form > button {
  min-width: 38px;
  min-height: 38px;
  padding: 6px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

.command-form > button:hover {
  color: #101615;
  background: var(--accent);
  border-color: var(--accent);
}

.command-form small {
  position: absolute;
  top: -20px;
  right: 16px;
  color: var(--faint);
  font-size: 9px;
  pointer-events: none;
}

@media (pointer: fine) and (min-width: 701px) {
  .command-form {
    grid-template-columns: auto minmax(60px, 1fr);
  }

  .command-form > button {
    display: none;
  }
}

.js .window-layer {
  position: absolute;
  z-index: 8;
  inset: 0 0 58px 168px;
  overflow: hidden;
  pointer-events: none;
}

.app-window {
  color: var(--text);
  background: rgba(20, 29, 31, 0.98);
  border: 1px solid rgba(207, 222, 214, 0.23);
  border-radius: var(--window-radius);
  box-shadow: var(--window-shadow);
}

.js .app-window {
  position: absolute;
  min-width: 320px;
  min-height: 170px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.975) translateY(8px);
}

.js .app-window.is-open {
  display: flex;
  animation: windowOpen 220ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.js .app-window.is-closing {
  display: flex;
  animation: windowClose 150ms ease forwards;
}

.js .app-window:not(.is-focused) {
  filter: saturate(0.7) brightness(0.88);
}

.js .app-window.is-focused {
  border-color: var(--accent-50);
}

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

@keyframes windowClose {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.985) translateY(5px);
  }
}

.app-window__bar {
  flex: 0 0 auto;
  min-width: 0;
  height: 38px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  padding: 0 7px;
  color: var(--faint);
  background: #0e1516;
  border-bottom: 1px solid var(--line);
  cursor: grab;
  user-select: none;
}

.app-window__bar:active {
  cursor: grabbing;
}

.app-window__bar h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-window__bar > span {
  justify-self: center;
  font-size: 9px;
}

.app-window__close {
  width: 36px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.app-window__close span,
.exit-window__dot {
  width: 11px;
  height: 11px;
  display: block;
  background: var(--red);
  border-radius: 50%;
}

.app-window__close:hover span {
  filter: brightness(1.18);
  transform: scale(1.08);
}

.app-window__body {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: clamp(20px, 3vw, 34px);
  scrollbar-color: var(--accent-30) transparent;
  scrollbar-width: thin;
}

.app-window__body h3 {
  margin: 0;
  font-family: var(--display);
}

.window-about {
  top: 5%;
  left: 5%;
  width: min(690px, 78%);
  height: min(530px, 88%);
}

.window-loadout {
  top: 12%;
  left: 13%;
  width: min(760px, 80%);
  height: min(520px, 82%);
}

.window-work {
  top: 4%;
  left: 7%;
  width: min(860px, 88%);
  height: min(600px, 92%);
}

.window-log {
  top: 8%;
  right: 4%;
  width: min(760px, 80%);
  height: min(560px, 88%);
}

.window-contact {
  top: 18%;
  right: 7%;
  width: min(610px, 70%);
  height: min(410px, 72%);
}

.window-themes {
  top: 16%;
  left: 18%;
  width: min(590px, 68%);
  height: min(430px, 74%);
}

.window-help {
  top: 7%;
  right: 5%;
  width: min(720px, 78%);
  height: min(520px, 86%);
}

.about-window__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.profile-copy h3 {
  color: var(--text);
  font-size: clamp(25px, 3.2vw, 42px);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.profile-copy > p:not(.window-kicker):not(.profile-command) {
  color: var(--muted);
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.5;
}

.profile-copy blockquote {
  margin: 18px 0;
  padding: 14px 0 14px 16px;
  color: var(--accent-bright);
  border-left: 2px solid var(--accent);
  font-size: 11px;
}

.compact-meta {
  margin: 0;
  border-top: 1px solid var(--line);
}

.compact-meta div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.compact-meta dt {
  color: var(--faint);
  font-size: 9px;
}

.compact-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 10px;
}

.loadout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.loadout-grid article {
  position: relative;
  min-height: 170px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.loadout-grid article > span {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--faint);
  font-size: 9px;
}

.loadout-grid h3 {
  color: var(--text);
  font-size: 21px;
  font-weight: 520;
}

.loadout-grid p {
  max-width: 34ch;
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 11px;
}

.loadout-grid strong {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.work-window__body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.project-tabs {
  overflow: auto;
  padding: 14px 10px;
  background: #101718;
  border-right: 1px solid var(--line);
}

.project-tab {
  width: 100%;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0 7px;
  padding: 12px 9px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
}

.project-tab span {
  grid-row: 1 / span 2;
  color: var(--faint);
  font-size: 9px;
}

.project-tab strong,
.project-tab small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-tab strong {
  font-size: 11px;
  font-weight: 500;
}

.project-tab small {
  color: var(--faint);
  font-size: 9px;
}

.project-tab:hover,
.project-tab.is-active {
  color: var(--text);
  background: var(--accent-07);
  border-color: var(--line-strong);
}

.project-tab.is-active span {
  color: var(--accent);
}

.project-panels {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.project-panel {
  min-height: 100%;
  display: none;
  grid-template-rows: minmax(220px, 1fr) auto;
}

.project-panel.is-active {
  display: grid;
}

.project-panel__image {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #0b1011;
}

.project-panel__image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(7, 11, 12, 0.75));
}

.project-panel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.7) contrast(1.04);
  transition: filter 260ms ease, transform 500ms ease;
}

.project-panel__image:hover img {
  filter: saturate(0.92) contrast(1.03);
  transform: scale(1.015);
}

.project-panel > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 22px;
  padding: 18px 22px 20px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.project-panel > div > p:first-child {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.project-panel h3 {
  font-size: 23px;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.project-panel > div > p:not(:first-child) {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.project-panel > div > a {
  grid-row: 2 / span 2;
  grid-column: 2;
  align-self: end;
  color: var(--accent-bright);
  font-size: 10px;
  text-decoration: none;
}

.project-panel > div > a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.experience-log {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.experience-log li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.experience-log time {
  color: var(--accent);
  font-size: 9px;
}

.experience-log h3 {
  color: var(--text);
  font-size: 16px;
  font-weight: 520;
}

.experience-log h3 span {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
}

.experience-log p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.contact-window__body {
  display: grid;
  align-content: center;
}

.contact-window__body > h3 {
  max-width: 12ch;
  color: var(--text);
  font-size: clamp(29px, 4.1vw, 46px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.contact-window__body > p:not(.window-kicker) {
  max-width: 62ch;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.contact-actions a {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 140ms ease;
}

.contact-actions a:hover {
  background: var(--accent-07);
}

.contact-actions span {
  color: var(--muted);
  font-size: 8px;
}

.contact-actions strong {
  color: var(--accent-bright);
  font-size: 11px;
}

.contact-actions i {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--accent);
  font-style: normal;
}

.themes-window__body {
  display: grid;
  align-content: center;
}

.themes-window__body > h3 {
  max-width: 13ch;
  color: var(--text);
  font-size: clamp(28px, 4vw, 43px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.themes-window__body > p:not(.window-kicker) {
  max-width: 58ch;
  margin: 14px 0 20px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 13px;
}

.theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.theme-options button {
  min-height: 112px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: center;
  gap: 3px 12px;
  padding: 18px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.theme-options button:hover,
.theme-options button[aria-pressed="true"] {
  color: var(--text);
  background: var(--accent-07);
}

.theme-options button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.theme-options strong,
.theme-options small {
  grid-column: 2;
}

.theme-options strong {
  font-size: 13px;
}

.theme-options small {
  color: var(--faint);
  font-size: 9px;
}

.theme-swatch {
  grid-row: 1 / span 2;
  align-self: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.theme-swatch--amber {
  background: #e0ae6a;
}

.theme-swatch--green {
  background: #79c99c;
}

.help-window__body {
  display: grid;
  grid-template-columns: 1fr 1fr 0.75fr;
  gap: 24px;
}

.help-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.help-list div {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.help-list dt {
  color: var(--accent);
  font-size: 10px;
}

.help-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.help-keys p:not(.window-kicker) {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 9px;
}

kbd {
  min-width: 24px;
  display: inline-block;
  padding: 3px 5px;
  color: var(--text);
  background: #0d1415;
  border: 1px solid var(--line);
  border-bottom-color: var(--accent-45);
  border-radius: 3px;
  font: inherit;
  text-align: center;
}

.exit-window {
  position: fixed;
  z-index: 50;
  top: 50%;
  left: 50%;
  width: min(460px, calc(100vw - 32px));
  overflow: hidden;
  background: rgba(20, 29, 31, 0.98);
  border: 1px solid rgba(207, 222, 214, 0.22);
  border-radius: var(--window-radius);
  box-shadow: var(--window-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.97);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 220ms;
}

.desktop[data-shell-state="closed"] .exit-window {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

.exit-window__dot {
  justify-self: center;
}

.exit-window__body {
  padding: 34px;
}

.exit-window__body p {
  margin: 0 0 10px;
  color: var(--muted);
}

.exit-window__body strong {
  color: var(--red);
}

.exit-window__body button {
  margin-top: 14px;
  padding: 10px 13px;
  color: #101615;
  background: var(--accent);
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.desktop-dock {
  position: fixed;
  z-index: 60;
  bottom: 14px;
  left: 50%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  color: var(--muted);
  background: rgba(16, 23, 24, 0.87);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  transform: translateX(-50%);
}

@supports (backdrop-filter: blur(16px)) {
  .desktop-dock {
    backdrop-filter: blur(16px);
  }
}

.dock-app {
  min-width: 72px;
  height: 34px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 3px;
  color: var(--text);
  background: var(--accent-06);
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}

.dock-app > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #101615;
  background: var(--accent);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
}

.dock-app small {
  font-size: 9px;
}

.dock-app.is-running {
  border-color: var(--line-strong);
}

.desktop[data-shell-state="minimized"] .dock-app,
.desktop[data-shell-state="closed"] .dock-app {
  background: var(--accent-16);
}

.dock-separator {
  width: 1px;
  height: 25px;
  background: var(--line);
}

.desktop-dock p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 5px 0 0;
  color: var(--faint);
  font-size: 9px;
}

.desktop-dock p i {
  width: 6px;
  height: 6px;
  display: block;
  background: var(--green);
  border-radius: 50%;
}

.noscript-note {
  position: relative;
  z-index: 100;
  max-width: 900px;
  margin: 20px auto;
  padding: 14px 18px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
}

html:not(.js) .desktop {
  display: block;
  padding: 24px;
}

html:not(.js) .desktop-label,
html:not(.js) .window-controls,
html:not(.js) .command-form,
html:not(.js) .desktop-dock,
html:not(.js) .exit-window,
html:not(.js) .command-rail {
  display: none;
}

html:not(.js) .terminal-shell {
  width: min(1100px, 100%);
  height: auto;
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
}

html:not(.js) .terminal-workspace,
html:not(.js) .terminal-pane {
  display: block;
}

html:not(.js) .terminal-transcript {
  overflow: visible;
}

html:not(.js) .window-layer {
  display: grid;
  gap: 24px;
  padding: 24px;
}

html:not(.js) .app-window {
  position: static;
  width: 100%;
  height: auto;
  min-width: 0;
  filter: none;
}

html:not(.js) .app-window__close {
  visibility: hidden;
}

html:not(.js) .project-panel {
  display: grid;
  min-height: 420px;
}

@media (max-width: 980px) {
  .desktop {
    padding: 28px 20px 70px;
  }

  .terminal-shell {
    width: calc(100vw - 40px);
    height: calc(100dvh - 98px);
    min-height: 560px;
  }

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

  .command-rail {
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .command-rail__identity {
    flex: 0 0 auto;
    padding: 0 12px 0 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .command-rail__identity div,
  .command-rail__foot {
    display: none;
  }

  .command-rail__commands {
    min-width: 0;
    display: flex;
    align-self: auto;
    flex: 1 1 auto;
    gap: 2px;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .command-rail__commands::-webkit-scrollbar {
    display: none;
  }

  .command-rail__commands button {
    width: auto;
    flex: 0 0 auto;
    grid-template-columns: 1fr;
    padding: 8px 9px;
  }

  .command-rail__commands button span {
    display: none;
  }

  .js .window-layer {
    inset: 54px 0 58px;
  }

  .js .app-window {
    top: 24px;
    left: 24px;
    right: auto;
    width: calc(100% - 48px);
    max-width: none;
    height: calc(100% - 48px);
    max-height: none;
  }

  .help-window__body {
    grid-template-columns: 1fr 1fr;
  }

  .help-keys {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .help-keys .window-kicker {
    flex: 0 0 100%;
  }
}

@media (max-width: 700px) {
  .assistant-return {
    top: 4px;
    right: 6px;
    min-width: 44px;
    min-height: 44px;
  }

  .desktop {
    display: block;
    padding: 0;
  }

  .desktop-label,
  .desktop-dock {
    display: none;
  }

  .terminal-shell,
  .terminal-shell.is-maximized {
    position: relative;
    inset: auto;
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .desktop[data-shell-state="minimized"] .terminal-shell {
    position: fixed;
    top: calc(50dvh - 52px);
    left: 0;
    width: 100vw;
    height: 104px;
    min-height: 0;
    grid-template-rows: 48px 56px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .desktop[data-shell-state="minimized"] .terminal-workspace {
    display: block;
  }

  .desktop[data-shell-state="minimized"] .command-rail,
  .desktop[data-shell-state="minimized"] .terminal-transcript,
  .desktop[data-shell-state="minimized"] .window-layer {
    display: none;
  }

  .desktop[data-shell-state="minimized"] .terminal-pane {
    height: 56px;
    display: block;
  }

  .desktop[data-shell-state="minimized"] .command-form {
    height: 56px;
  }

  .terminal-chrome {
    grid-template-columns: 128px minmax(0, 1fr) 62px;
    padding-right: 5px;
  }

  .window-control {
    width: 40px;
  }

  .window-control--maximize {
    opacity: 0.38;
    pointer-events: none;
  }

  .terminal-state {
    margin-right: 3px;
  }

  .terminal-state span {
    display: none;
  }

  .terminal-workspace {
    grid-template-rows: 49px minmax(0, 1fr);
  }

  .command-rail {
    padding: 5px 8px;
  }

  .command-rail__identity {
    display: none;
  }

  .command-rail__commands button {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .terminal-pane {
    grid-template-rows: minmax(0, 1fr) 56px;
  }

  .terminal-transcript {
    padding: 20px 16px 34px;
  }

  .boot-log {
    margin-bottom: 24px;
    font-size: 9px;
  }

  .identity-output {
    padding-left: 12px;
  }

  .identity-output h1 {
    font-size: clamp(24px, 8vw, 34px);
  }

  .directory-output button {
    grid-template-columns: 86px 98px minmax(0, 1fr);
    gap: 8px;
    padding-inline: 4px;
  }

  .readme-output {
    margin-left: 12px;
  }

  .command-form {
    grid-template-columns: auto minmax(40px, 1fr) auto;
    gap: 5px;
    padding: 0 10px;
  }

  .command-form label {
    font-size: 0;
  }

  .command-form label::after {
    content: "$";
    color: var(--accent);
    font-size: 16px;
  }

  .command-form > button {
    min-width: 44px;
    min-height: 44px;
    padding: 7px 9px;
  }

  .command-form input {
    min-height: 44px;
    font-size: 16px;
  }

  .command-form small {
    display: none;
  }

  .js .window-layer {
    inset: 49px 0 56px;
    background: rgba(8, 13, 14, 0.42);
  }

  .js .app-window {
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .app-window__bar {
    height: 42px;
    cursor: default;
  }

  .app-window__close {
    width: 40px;
    height: 40px;
  }

  .app-window__body {
    padding: 20px 16px 28px;
  }

  .about-window__body {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-copy h3 {
    font-size: 26px;
  }

  .profile-copy > p:not(.window-kicker):not(.profile-command) {
    grid-column: 1 / -1;
    font-size: 13px;
  }

  .profile-copy blockquote,
  .compact-meta {
    grid-column: 1 / -1;
  }

  .compact-meta div {
    grid-template-columns: 94px 1fr;
  }

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

  .loadout-grid article {
    min-height: 130px;
    padding: 18px;
  }

  .work-window__body {
    grid-template-columns: 1fr;
    grid-template-rows: 76px minmax(0, 1fr);
    padding: 0;
  }

  .project-tabs {
    display: flex;
    gap: 5px;
    padding: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }

  .project-tab {
    width: 146px;
    flex: 0 0 auto;
    padding: 9px 8px;
  }

  .project-panel {
    grid-template-rows: minmax(180px, 1fr) auto;
  }

  .project-panel > div {
    grid-template-columns: 1fr;
    padding: 15px 16px 18px;
  }

  .project-panel > div > a {
    grid-row: auto;
    grid-column: auto;
    margin-top: 5px;
  }

  .experience-log li {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
  }

  .contact-window__body > h3 {
    font-size: 36px;
  }

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

  .theme-options {
    grid-template-columns: 1fr;
  }

  .help-window__body {
    grid-template-columns: 1fr;
  }

  .help-keys {
    grid-column: auto;
    display: block;
  }

  .exit-window {
    width: calc(100vw - 24px);
  }

  .exit-window__body {
    padding: 26px 22px;
  }
}

@media (max-width: 440px) {
  body {
    font-size: 13px;
  }

  .terminal-title {
    font-size: 10px;
  }

  .terminal-transcript {
    padding-inline: 14px;
  }

  .directory-output button {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .directory-output small {
    display: none;
  }

  .readme-output {
    margin-left: 0;
  }

  .readme-output strong {
    width: 64px;
  }

  .about-window__body {
    display: block;
  }

  .profile-copy h3 {
    font-size: 25px;
  }

  .profile-copy > p:not(.window-kicker):not(.profile-command) {
    clear: both;
    padding-top: 6px;
  }

  .contact-actions strong {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .environment__image,
  .terminal-state i,
  .terminal-shell.has-input-focus .command-form input:placeholder-shown {
    animation: none;
  }

  .js .boot-log p {
    opacity: 1;
    transform: none;
  }
}

/* Integrated console cascade lock: this block intentionally follows legacy layers. */

.terminal-workspace {
  --command-strip-height: 42px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--command-strip-height) minmax(0, 1fr);
}

.tui-command-strip {
  grid-template-columns: minmax(0, 1fr) auto;
}

.tui-command-strip__label {
  display: none;
}

.terminal-pane {
  grid-column: 1;
  grid-row: 2;
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
}

.terminal-transcript {
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.js .window-layer,
.js .tui-view-stack {
  inset: var(--command-strip-height) 0 0;
}

@media (max-width: 980px) {
  .tui-command-strip {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 760px) {
  .terminal-chrome {
    grid-template-columns: 132px minmax(90px, 1fr) auto;
  }

  .terminal-actions .terminal-state,
  .terminal-actions .service-state p {
    display: none;
  }

  .terminal-action {
    min-height: 44px;
  }

  .terminal-actions .terminal-action[href] {
    display: inline-flex;
  }

  .terminal-workspace {
    --command-strip-height: 48px;
    grid-template-rows: var(--command-strip-height) minmax(0, 1fr);
  }

  .terminal-pane {
    height: 100%;
    grid-template-rows: minmax(0, 1fr);
  }

  .js .window-layer,
  .js .tui-view-stack {
    inset: var(--command-strip-height) 0 0;
  }
}

@media (max-width: 440px) {
  .terminal-chrome {
    grid-template-columns: 132px minmax(64px, 1fr) auto;
  }
}

@media (max-width: 360px) {
  .terminal-actions .service-state {
    display: none;
  }
}

/* Minimal integrated console assistant */

.environment {
  background:
    radial-gradient(circle at 78% 12%, rgba(224, 174, 106, 0.055), transparent 28%),
    #080c0d;
}

.environment__image {
  display: none;
}

.environment__grid {
  opacity: 0.045;
  background-size: 48px 48px;
}

.environment__grain {
  opacity: 0.035;
}

.desktop {
  min-height: 100dvh;
  place-items: stretch;
  padding: 12px;
}

.desktop-label,
.desktop-dock,
.assistant-return {
  display: none !important;
}

.terminal-shell,
.terminal-shell.is-maximized {
  position: relative;
  inset: auto;
  width: 100%;
  height: calc(100dvh - 24px);
  min-height: 540px;
  max-width: 1540px;
  margin: auto;
  grid-template-rows: 44px minmax(0, 1fr);
  border-color: rgba(200, 216, 208, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.34);
}

.terminal-chrome {
  grid-template-columns: 112px minmax(160px, 1fr) auto;
  min-height: 44px;
  padding: 0 7px;
}

.window-control {
  width: 34px;
  height: 34px;
}

.window-control > span {
  width: 10px;
  height: 10px;
}

.terminal-title {
  font-size: 11px;
}

.terminal-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.terminal-actions .terminal-state {
  margin: 0;
}

.terminal-actions .service-state {
  display: grid;
  grid-template-columns: 7px minmax(0, auto);
  gap: 7px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.terminal-actions .service-state > span {
  width: 6px;
  height: 6px;
}

.terminal-actions .service-state p {
  min-width: 0;
}

.terminal-actions .service-state strong {
  max-width: 150px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  text-transform: lowercase;
  white-space: nowrap;
}

.terminal-actions .service-state small {
  display: none;
}

.terminal-action {
  min-width: 44px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
  cursor: pointer;
}

.terminal-action:hover,
.terminal-action:focus-visible {
  color: var(--accent-bright);
  border-color: var(--line-strong);
}

.terminal-workspace {
  --command-strip-height: 42px;
}

.tui-command-strip {
  grid-template-columns: minmax(0, 1fr) auto;
  background: #0b1112;
}

.tui-command-strip__label {
  display: none;
}

.tui-command-strip__mode {
  padding-inline: 14px;
  font-size: 8px;
}

.tui-command-strip__commands button {
  min-width: 88px;
  min-height: 40px;
  flex-basis: 88px;
  grid-template-columns: 18px minmax(0, 1fr);
  padding-inline: 8px;
}

.terminal-pane {
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
  background:
    radial-gradient(circle at 70% 18%, var(--accent-06), transparent 42%),
    #0e1516;
}

.terminal-pane::after {
  opacity: 0.16;
}

.terminal-transcript {
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.boot-log {
  display: none;
}

.home-output.console-assistant {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}

.home-output.console-assistant[hidden] {
  display: none;
}

.console-assistant__frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background: transparent;
}

.console-assistant .conversation-stage {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--accent-25) transparent;
  scrollbar-width: thin;
}

.console-assistant .conversation-empty {
  width: min(900px, calc(100% - 64px));
  min-height: 100%;
  justify-content: center;
  padding: 32px 0;
}

.console-assistant__welcome {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.console-assistant .assistant-avatar--hero {
  width: 60px;
  height: 60px;
  border-radius: 10px;
}

.console-assistant .conversation-eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.console-assistant .conversation-empty .conversation-headline {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1;
}

.console-assistant .conversation-intro {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.console-assistant .prompt-field {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.console-assistant .prompt-field button {
  min-height: 52px;
  padding: 10px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--mono);
  font-size: 10px;
  text-align: left;
  cursor: pointer;
}

.console-assistant .prompt-field button:last-child {
  border-right: 0;
}

.console-assistant .prompt-field button::before {
  content: "> ";
  color: var(--accent);
}

.console-assistant .prompt-field button:hover,
.console-assistant .prompt-field button:focus-visible {
  color: var(--text);
  background: var(--accent-06);
  transform: none;
}

.console-assistant .avatar-showcase {
  min-height: 44px;
  width: fit-content;
  margin-top: 12px;
  padding: 0 8px;
  color: var(--faint);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 9px;
}

.console-assistant .avatar-showcase::before {
  content: "[";
}

.console-assistant .avatar-showcase::after {
  content: "]";
}

.console-assistant .conversation-log {
  width: min(900px, calc(100% - 64px));
  padding: 28px 0 42px;
}

html[data-chat-state="active"] .console-assistant .conversation-log {
  gap: 24px;
}

.console-assistant .message {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
}

.console-assistant .message__avatar {
  width: 28px;
  height: 28px;
  border-radius: 5px;
}

.console-assistant .message__body {
  padding-top: 1px;
}

.console-assistant .message__body > strong,
.console-assistant .thinking-caption,
.console-assistant .message__status {
  font-family: var(--mono);
  font-size: 9px;
}

.console-assistant .message__content {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
}

.console-assistant .composer-dock,
.console-composer-dock {
  width: 100%;
  margin: 0;
  padding: 9px 12px 10px;
  background: #0b1112;
  border-top: 1px solid var(--line);
}

.desktop[data-shell-state="minimized"] .terminal-shell {
  position: relative;
  inset: auto;
  width: 100%;
  height: 44px;
  min-height: 44px;
  grid-template-rows: 44px 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.desktop[data-shell-state="minimized"] .terminal-workspace {
  display: none;
}

.console-assistant .composer,
.console-composer-dock .composer {
  min-height: 48px;
  grid-template-columns: auto minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 4px 5px 4px 12px;
  background: #0e1516;
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: none;
}

.console-assistant__prompt {
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.console-assistant .composer textarea,
.console-composer-dock .composer textarea {
  min-height: 38px;
  max-height: 110px;
  padding: 9px 0 7px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
}

.console-assistant .composer button,
.console-composer-dock .composer button {
  width: 44px;
  height: 44px;
  color: #111716;
  background: var(--accent);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 15px;
}

.console-assistant__meta {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 5px 0;
}

.console-assistant .retention-choice,
.console-composer-dock .retention-choice {
  min-height: 24px;
  margin: 0;
  gap: 7px;
}

.console-assistant .retention-choice input,
.console-composer-dock .retention-choice input {
  width: 14px;
  height: 14px;
}

.console-assistant .retention-choice__signal,
.console-composer-dock .retention-choice__signal {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px color-mix(in srgb, var(--green) 62%, transparent);
}

.console-assistant .retention-choice strong,
.console-composer-dock .retention-choice strong {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
}

.console-assistant .retention-choice small,
.console-composer-dock .retention-choice small {
  display: none;
}

.console-assistant .retention-choice--automatic small,
.console-composer-dock .retention-choice--automatic small {
  display: inline;
  margin-left: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.console-assistant .composer-note,
.console-composer-dock .composer-note {
  margin: 0;
  overflow: hidden;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-assistant .scroll-latest {
  right: 18px;
  bottom: 92px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 9px;
}

.command-log:not(:empty) {
  width: min(900px, calc(100% - 64px));
  height: 100%;
  min-height: 0;
  display: grid;
  align-content: center;
  margin: 0 auto;
  padding: 32px 0;
}

.js .window-layer,
.js .tui-view-stack {
  inset: var(--command-strip-height) 0 0;
}

html:not(.js) .console-assistant__frame {
  height: auto;
  min-height: 360px;
}

html:not(.js) .console-assistant .prompt-field,
html:not(.js) .console-assistant .avatar-showcase,
html:not(.js) .console-assistant .composer-dock,
html:not(.js) .console-composer-dock {
  display: none;
}

@media (max-width: 760px) {
  .desktop {
    padding: 0;
  }

  .terminal-shell,
  .terminal-shell.is-maximized {
    width: 100vw;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .terminal-chrome {
    grid-template-columns: 104px minmax(90px, 1fr) auto;
  }

  .terminal-title span:last-child {
    display: none;
  }

  .terminal-actions .terminal-state,
  .terminal-actions .service-state p,
  .terminal-action[href] {
    display: none;
  }

  .terminal-actions .service-state {
    min-width: 28px;
    min-height: 32px;
    place-content: center;
    padding: 0;
    border: 0;
  }

  .terminal-action {
    min-width: 44px;
    min-height: 40px;
    padding: 0 8px;
  }

  .terminal-workspace {
    --command-strip-height: 48px;
  }

  .tui-command-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .tui-command-strip__mode {
    display: none;
  }

  .tui-command-strip__commands button {
    min-width: 90px;
    min-height: 46px;
    flex-basis: 90px;
  }

  .console-assistant .conversation-empty,
  .console-assistant .conversation-log {
    width: calc(100% - 28px);
  }

  .console-assistant .conversation-empty {
    justify-content: flex-start;
    padding: clamp(30px, 8vh, 64px) 0 24px;
  }

  .console-assistant__welcome {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 13px;
  }

  .console-assistant .assistant-avatar--hero {
    width: 50px;
    height: 50px;
  }

  .console-assistant .conversation-empty .conversation-headline {
    font-size: clamp(27px, 9vw, 40px);
  }

  .console-assistant .conversation-intro {
    font-size: 10px;
  }

  .console-assistant .prompt-field {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .console-assistant .prompt-field button {
    min-height: 46px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .console-assistant .prompt-field button:last-child {
    border-bottom: 0;
  }

  .console-assistant .conversation-log {
    padding-block: 20px 32px;
  }

  .console-assistant .composer-dock {
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }

  .console-assistant .composer {
    grid-template-columns: minmax(0, 1fr) 40px;
    padding-left: 10px;
  }

  .console-assistant__prompt {
    display: none;
  }

  .console-assistant .composer textarea {
    min-height: 40px;
    font-size: 16px;
  }

  .console-assistant__meta {
    gap: 8px;
  }

  .console-assistant .composer-note {
    max-width: 46%;
  }
}

@media (max-width: 440px) {
  .terminal-chrome {
    grid-template-columns: 102px minmax(64px, 1fr) auto;
  }

  .terminal-title {
    text-align: left;
  }

  .console-assistant .message {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
  }

  .console-assistant .message__avatar {
    width: 24px;
    height: 24px;
  }

  .console-assistant .message__content {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .console-assistant .prompt-field button:hover,
  .console-assistant .composer button:hover:not(:disabled) {
    transform: none;
  }
}

/* Chat-first portfolio gateway */

.chat-gateway {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(20px, 4vw, 48px) 20px;
}

.chat-gateway[hidden] {
  display: none;
}

.chat-stage {
  width: min(850px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
}

.chat-shell {
  width: 100%;
  overflow: hidden;
  color: var(--text);
  background: rgba(17, 24, 25, 0.97);
  border: 1px solid rgba(207, 222, 214, 0.2);
  border-radius: var(--shell-radius);
  box-shadow: var(--shell-shadow);
}

@supports (backdrop-filter: blur(18px)) {
  .chat-shell {
    background: rgba(17, 24, 25, 0.9);
    backdrop-filter: blur(18px) saturate(1.06);
  }
}

.chat-chrome {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 16px;
  color: var(--muted);
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}

.chat-chrome p {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.chat-chrome p:first-child > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #111716;
  background: var(--accent);
  border-radius: 5px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.chat-chrome strong {
  overflow: hidden;
  color: var(--text);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-status {
  flex: 0 0 auto;
  text-transform: uppercase;
}

.chat-status i {
  width: 7px;
  height: 7px;
  display: block;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(121, 201, 156, 0.1);
}

.chat-shell__body {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 38px);
}

.chat-intro {
  max-width: 680px;
}

.chat-kicker {
  margin: 0 0 8px;
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chat-intro h1 {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 580;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.chat-intro > p:last-child {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.5;
}

.chat-transcript {
  min-height: 122px;
  max-height: min(248px, 30dvh);
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 14px;
  background: rgba(8, 13, 14, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--window-radius);
  scrollbar-color: var(--accent-32) transparent;
  scrollbar-width: thin;
}

.chat-message {
  max-width: 90%;
  padding: 11px 13px;
  color: var(--text);
  background: var(--panel);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--window-radius) var(--window-radius) 0;
  animation: chatMessageIn 180ms ease both;
}

.chat-message--visitor {
  justify-self: end;
  color: var(--text);
  background: var(--panel-strong);
  border-right: 2px solid var(--line-strong);
  border-left: 0;
  border-radius: var(--window-radius) 0 0 var(--window-radius);
}

.chat-message p {
  margin: 0;
}

.chat-message p + p {
  margin-top: 7px;
}

.chat-message__author {
  color: var(--accent-bright);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chat-message--visitor .chat-message__author {
  color: var(--muted);
}

@keyframes chatMessageIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-suggestions button {
  min-height: 38px;
  padding: 8px 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.chat-suggestions button:hover,
.chat-suggestions button:focus-visible {
  color: var(--text);
  background: var(--accent-06);
  border-color: var(--line-strong);
}

.chat-form {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px;
  background: rgba(7, 11, 12, 0.82);
  border: 1px solid rgba(207, 222, 214, 0.24);
  border-radius: var(--window-radius);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.chat-form:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px var(--accent-07);
}

.chat-form__prompt {
  padding-left: 7px;
  color: var(--accent-bright);
  font-weight: 750;
}

.chat-form input {
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.chat-form input::placeholder {
  color: var(--faint);
  opacity: 1;
}

.chat-form button,
.portfolio-loader {
  min-height: 44px;
  padding: 10px 16px;
  color: #111716;
  background: var(--accent);
  border: 1px solid var(--accent-bright);
  border-radius: 6px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.chat-form button:hover,
.portfolio-loader:hover {
  background: var(--accent-bright);
}

.chat-form button:active,
.portfolio-loader:active {
  transform: translateY(1px);
}

.chat-privacy {
  margin: -7px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.portfolio-loader {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-inline: 20px;
  color: var(--text);
  background: rgba(17, 24, 25, 0.94);
  border-color: rgba(224, 174, 106, 0.56);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.portfolio-loader:hover {
  color: #111716;
}

.portfolio-loader i {
  font-style: normal;
  font-size: 17px;
}

.js .desktop:not(.is-loaded) {
  display: none;
}

html:not(.js) .chat-gateway {
  height: auto;
  min-height: 0;
  padding-bottom: 28px;
}

html:not(.js) .chat-suggestions,
html:not(.js) .chat-form,
html:not(.js) .portfolio-loader,
html:not(.js) .chat-privacy {
  display: none;
}

@media (max-width: 700px) {
  .chat-gateway {
    min-height: 100dvh;
    place-items: start center;
    padding: 14px 12px 24px;
  }

  .chat-stage {
    gap: 14px;
  }

  .chat-chrome {
    min-height: 44px;
    padding-inline: 12px;
  }

  .chat-status {
    font-size: 0;
  }

  .chat-status i {
    width: 8px;
    height: 8px;
  }

  .chat-shell__body {
    gap: 13px;
    padding: 20px 16px;
  }

  .chat-intro h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .chat-intro > p:last-child {
    margin-top: 12px;
    font-size: 15px;
  }

  .chat-transcript {
    min-height: 132px;
    max-height: 238px;
    padding: 10px;
  }

  .chat-message {
    max-width: 96%;
  }

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

  .chat-suggestions button {
    min-height: 44px;
    padding: 8px;
    text-align: left;
  }

  .chat-privacy {
    margin-top: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-message,
  .chat-form button,
  .portfolio-loader {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .terminal-shell,
  .app-window,
  .exit-window,
  .desktop-dock {
    backdrop-filter: none;
    background: var(--shell);
  }
}

/* Inline TUI route viewport */

.terminal-transcript {
  padding: clamp(18px, 2.2vw, 28px);
}

.boot-log {
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.home-output {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(250px, 0.76fr) minmax(440px, 1.24fr);
  grid-template-rows: auto auto auto auto;
  gap: 0 30px;
}

.home-output > .console-prompt:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1;
}

.home-output > .identity-output {
  grid-column: 1;
  grid-row: 2;
}

.home-output > .console-prompt:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1;
}

.home-output > .directory-output {
  grid-column: 2;
  grid-row: 2 / span 3;
  align-self: start;
}

.home-output > .console-prompt:nth-of-type(3) {
  grid-column: 1;
  grid-row: 3;
  margin-top: 18px;
}

.home-output > .readme-output {
  grid-column: 1;
  grid-row: 4;
}

.js .tui-view-stack {
  position: absolute;
  z-index: 8;
  inset: 0 0 58px 168px;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22, 31, 32, 0.985), rgba(14, 21, 22, 0.99)),
    var(--shell);
}

.js[data-route="home"] .tui-view-stack {
  display: none;
}

.js .tui-view {
  position: absolute;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  transform: none;
}

.js .tui-view.is-open,
.js .tui-view.is-closing {
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
}

.js .tui-view.is-open {
  opacity: 1;
  animation: none;
}

.js .tui-view.is-closing {
  animation: none;
}

.js .tui-view.is-focused,
.js .tui-view:not(.is-focused) {
  border-color: transparent;
  filter: none;
}

.tui-view__bar {
  height: 34px;
  grid-template-columns: 74px minmax(0, 1fr) 74px;
  padding: 0;
  color: var(--faint);
  background: #0d1415;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-strong);
  cursor: default;
}

.tui-view__bar:active {
  cursor: default;
}

.tui-view__bar h2 {
  color: var(--accent-bright);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
}

.tui-view__bar > span {
  justify-self: end;
  padding-right: 12px;
  color: var(--green);
  letter-spacing: 0.08em;
}

.tui-view__back {
  width: 74px;
  height: 32px;
  display: grid;
  grid-template-columns: 18px 1fr;
  place-items: center;
  padding: 0 9px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  border-radius: 0;
}

.tui-view__back::after {
  content: "home";
  justify-self: start;
  color: var(--faint);
  font-size: 9px;
}

.tui-view__back:hover {
  color: var(--accent-bright);
  background: var(--accent-07);
}

.tui-view__back span {
  width: auto;
  height: auto;
  color: var(--accent);
  background: transparent;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
}

.tui-view__back:hover span {
  filter: none;
  transform: none;
}

.tui-view__body {
  min-width: 0;
  min-height: 0;
  padding: 16px 18px 20px;
  overflow: auto;
  scrollbar-width: none;
}

.tui-view__body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.tui-view__body h3 {
  font-family: var(--mono);
}

.window-kicker {
  margin-bottom: 8px;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.profile-command,
.tui-section-title {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.profile-command span {
  color: var(--green);
}

.about-window__body {
  display: block;
  padding: 0;
  overflow: auto;
}

.profile-copy {
  min-width: 0;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: clamp(22px, 3vw, 40px);
  padding: clamp(22px, 3.6vw, 46px);
}

.profile-summary {
  align-self: center;
}

.profile-summary h3 {
  max-width: 20ch;
  margin: clamp(18px, 3vh, 34px) 0 0;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.profile-summary > p:not(.profile-command) {
  max-width: 66ch;
  margin: clamp(20px, 3vh, 30px) 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.65;
}

.profile-context {
  align-self: center;
  min-width: 0;
  padding-left: clamp(18px, 2.6vw, 34px);
  border-left: 1px solid var(--line);
}

.profile-context blockquote {
  margin: 0 0 clamp(22px, 3vh, 32px);
  padding: 0 0 0 14px;
  color: var(--accent-bright);
  border-left: 2px solid var(--accent);
  font-size: clamp(10px, 0.9vw, 12px);
  line-height: 1.65;
}

.compact-meta {
  display: block;
  border-top: 1px solid var(--line);
  border-left: 0;
}

.compact-meta div {
  display: grid;
  grid-template-columns: minmax(94px, 0.75fr) minmax(0, 1.25fr);
  gap: 12px;
  padding: 10px 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.compact-meta dd {
  margin-top: 0;
}

.loadout-grid {
  height: 100%;
}

.loadout-grid article {
  min-height: 0;
  padding: clamp(14px, 2vw, 20px);
}

.loadout-grid h3 {
  font-size: clamp(16px, 1.7vw, 21px);
}

.loadout-grid p {
  margin: 8px 0 12px;
}

.work-window__body {
  grid-template-columns: minmax(165px, 0.24fr) minmax(0, 1fr);
}

.project-tabs {
  padding: 8px 7px;
  scrollbar-width: none;
}

.project-tabs::-webkit-scrollbar,
.project-panels::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.project-tab {
  padding: 9px 7px;
  border-radius: 0;
}

.project-panel {
  grid-template-rows: minmax(180px, 1fr) auto;
}

.project-panel > div {
  padding: 13px 16px 15px;
}

.project-panel h3 {
  font-family: var(--mono);
  font-size: clamp(17px, 2vw, 22px);
}

.experience-log {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.experience-log li {
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.experience-log li:last-child {
  grid-column: 1 / -1;
}

.experience-log h3 {
  font-family: var(--mono);
  font-size: 12px;
}

.experience-log p {
  margin-top: 3px;
  font-size: 9px;
}

.contact-window__body,
.themes-window__body {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  grid-template-rows: auto 1fr;
  align-content: stretch;
  gap: 0 24px;
}

.contact-window__body > h3,
.themes-window__body > h3 {
  grid-column: 1;
  grid-row: 1;
  max-width: 16ch;
  font-family: var(--mono);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.04;
}

.contact-window__body > p:not(.window-kicker),
.themes-window__body > p:not(.window-kicker) {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 11px;
}

.contact-actions,
.theme-options {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: stretch;
  grid-template-columns: 1fr;
  margin: 0;
}

.contact-actions a {
  align-content: center;
  min-height: 92px;
}

.theme-options button {
  min-height: 92px;
}

.help-window__body {
  grid-template-columns: 0.92fr 1.15fr 0.72fr;
  gap: 0;
  padding: 0;
}

.help-window__body > div {
  min-width: 0;
  padding: 14px 16px 18px;
  border-right: 1px solid var(--line);
}

.help-window__body > div:last-child {
  border-right: 0;
}

.help-list div {
  padding: 6px 0;
}

.help-keys p {
  margin: 0 0 7px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .home-output {
    display: block;
  }

  .home-output > .console-prompt:nth-of-type(3) {
    margin-top: 22px;
  }

  .js .tui-view-stack {
    inset: 54px 0 58px;
  }

  .help-window__body {
    grid-template-columns: 1fr 1.15fr;
  }

  .help-keys {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    border-top: 1px solid var(--line);
  }

  .help-keys .tui-section-title {
    flex-basis: 100%;
  }
}

@media (max-width: 700px) {
  .terminal-workspace {
    grid-template-rows: 53px minmax(0, 1fr);
  }

  .command-rail__commands button {
    min-height: 44px;
  }

  .window-control {
    width: 44px;
    height: 44px;
  }

  .terminal-chrome {
    grid-template-columns: 136px minmax(0, 1fr) 54px;
  }

  .terminal-transcript {
    padding: 16px 14px 24px;
  }

  .js .tui-view-stack {
    inset: 53px 0 56px;
    background: #101718;
  }

  .js .tui-view.is-open,
  .js .tui-view.is-closing {
    grid-template-rows: 44px minmax(0, 1fr);
  }

  .tui-view__bar {
    height: 44px;
    grid-template-columns: 72px minmax(0, 1fr) 58px;
  }

  .tui-view__back {
    height: 44px;
  }

  .tui-view__bar > span {
    padding-right: 8px;
  }

  .tui-view__body {
    padding: 14px 12px 18px;
  }

  .command-form > button {
    min-width: 44px;
    min-height: 44px;
  }

  .about-window__body {
    display: block;
    padding: 0;
  }

  .profile-copy {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 18px 30px;
  }

  .profile-summary h3 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .profile-context {
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .compact-meta {
    border-bottom: 1px solid var(--line);
  }

  .compact-meta div {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 8px;
    padding: 6px 0;
    border-right: 0;
  }

  .compact-meta dd {
    margin-top: 0;
  }

  .work-window__body {
    grid-template-columns: 1fr;
    grid-template-rows: 68px minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
  }

  .project-tabs {
    padding: 6px;
  }

  .project-tab {
    width: 136px;
    padding: 7px;
  }

  .project-panel {
    grid-template-rows: minmax(150px, 1fr) auto;
  }

  .project-panel > div {
    padding: 11px 12px 13px;
  }

  .experience-log {
    grid-template-columns: 1fr;
  }

  .experience-log li,
  .experience-log li:last-child {
    grid-column: auto;
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 9px;
  }

  .contact-window__body,
  .themes-window__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
  }

  .contact-window__body > h3,
  .contact-window__body > p:not(.window-kicker),
  .themes-window__body > h3,
  .themes-window__body > p:not(.window-kicker),
  .contact-actions,
  .theme-options {
    grid-column: 1;
    grid-row: auto;
  }

  .contact-window__body > h3,
  .themes-window__body > h3 {
    font-size: clamp(23px, 8vw, 34px);
  }

  .contact-actions,
  .theme-options {
    margin-top: 14px;
  }

  .contact-actions a,
  .theme-options button {
    min-height: 76px;
  }

  .help-window__body {
    grid-template-columns: 1fr;
  }

  .help-window__body > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .help-keys {
    grid-column: auto;
    display: block;
    border-bottom: 0;
  }
}

@media (max-width: 440px) {
  .about-window__body {
    overflow: auto;
  }

  .profile-copy {
    padding-inline: 14px;
  }

  .profile-summary h3 {
    font-size: clamp(27px, 9vw, 34px);
  }
}

/* Command-only terminal */

.terminal-workspace {
  display: block;
}

.terminal-pane {
  width: 100%;
  height: 100%;
}

.home-output {
  min-height: calc(100% - 118px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 24px clamp(34px, 5vw, 76px);
}

.home-output[hidden] {
  display: none;
}

.home-profile,
.home-readme {
  min-width: 0;
}

.home-readme {
  padding-left: clamp(22px, 3vw, 40px);
  border-left: 1px solid var(--line);
}

.home-readme .readme-output {
  margin: 22px 0 0;
}

.home-prompt-hint {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 16px;
  padding-top: 14px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.home-prompt-hint span {
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-prompt-hint p {
  margin: 0;
}

.home-prompt-hint strong {
  color: var(--accent-bright);
  font-weight: 600;
}

.command-log:not(:empty) {
  min-height: calc(100% - 118px);
  align-content: center;
  margin-top: 0;
}

.command-log:not(:empty) .transcript-entry {
  max-width: 900px;
  padding: 18px 0 18px 18px;
  border-left: 1px solid var(--line-strong);
}

.js .window-layer,
.js .tui-view-stack {
  inset: 0 0 58px;
}

.tui-view__bar {
  grid-template-columns: minmax(0, 1fr) 74px;
  padding-left: 14px;
}

.theme-command-list {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  border-top: 1px solid var(--line);
}

.theme-command-list p {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.theme-command-list code {
  color: var(--accent-bright);
  font-family: var(--mono);
}

.theme-command-list span {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 980px) {
  .home-output {
    min-height: 0;
    display: block;
  }

  .home-output[hidden] {
    display: none;
  }

  .home-readme {
    margin-top: 30px;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .home-prompt-hint {
    margin-top: 26px;
  }

  .js .window-layer,
  .js .tui-view-stack {
    inset: 0 0 58px;
  }
}

@media (max-width: 700px) {
  .js .window-layer,
  .js .tui-view-stack {
    inset: 0 0 56px;
  }

  .tui-view__bar {
    grid-template-columns: minmax(0, 1fr) 58px;
    padding-left: 12px;
  }

  .theme-command-list {
    grid-column: 1;
    grid-row: auto;
    margin-top: 20px;
  }

  .theme-command-list p {
    grid-template-columns: 116px minmax(0, 1fr);
  }
}

/* Interactive TUI command layer and motion */

.terminal-workspace {
  --command-strip-height: 46px;
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--command-strip-height) minmax(0, 1fr);
}

.tui-command-strip {
  position: relative;
  z-index: 10;
  min-width: 0;
  height: var(--command-strip-height);
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 118px;
  align-items: stretch;
  overflow: hidden;
  color: var(--muted);
  background:
    linear-gradient(90deg, var(--accent-07), transparent 24%),
    #0b1213;
  border-bottom: 1px solid var(--line-strong);
  isolation: isolate;
  grid-column: 1;
  grid-row: 1;
}

.tui-command-strip::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 3px
    );
}

.tui-command-strip::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: -18%;
  width: 18%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent-25), transparent);
  transform: translate3d(0, 0, 0);
}

.terminal-shell.is-commanding .tui-command-strip::after {
  animation: tuiBusSweep 440ms ease-out both;
}

.tui-command-strip__label,
.tui-command-strip__mode {
  min-width: 0;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 12px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tui-command-strip__label {
  gap: 7px;
  border-right: 1px solid var(--line);
}

.tui-command-strip__label span {
  color: var(--accent);
}

.tui-command-strip__mode {
  justify-content: flex-end;
  gap: 7px;
  border-left: 1px solid var(--line);
}

.tui-command-strip__mode span {
  color: var(--green);
  font-size: 7px;
  text-shadow: 0 0 10px rgba(121, 201, 156, 0.46);
  transform: scale(0.84);
  animation: tuiModePulse 2.4s ease-in-out infinite;
}

.tui-command-strip__commands {
  min-width: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.tui-command-strip__commands::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html:not(.js) .tui-command-strip {
  display: none;
}

.tui-command-strip__commands button {
  position: relative;
  min-width: 94px;
  min-height: 44px;
  flex: 1 0 94px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  overflow: hidden;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  transform: translate3d(0, 0, 0);
  transition:
    color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.tui-command-strip__commands button::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.tui-command-strip__commands button span {
  color: var(--faint);
  font-size: 8px;
  letter-spacing: 0.06em;
  transition: color 140ms ease;
}

.tui-command-strip__commands button strong {
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tui-command-strip__commands button:hover {
  color: var(--text);
  background: var(--accent-07);
  transform: translate3d(0, -1px, 0);
}

.tui-command-strip__commands button:hover span {
  color: var(--accent);
}

.tui-command-strip__commands button:active {
  transform: translate3d(0, 1px, 0);
}

.tui-command-strip__commands button[aria-current="page"] {
  color: var(--accent-bright);
  background:
    linear-gradient(180deg, var(--accent-16), var(--accent-07)),
    transparent;
  box-shadow: inset 0 0 22px var(--accent-06);
}

.tui-command-strip__commands button[aria-current="page"]::before {
  transform: scaleX(1);
  animation: activeRoutePulse 3.2s ease-in-out infinite;
}

.tui-command-strip__commands button[aria-current="page"] span {
  color: var(--accent);
}

.tui-command-strip__commands button.is-running {
  animation: tuiCommandRun 440ms ease-out both;
}

.terminal-pane {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: auto;
  min-height: 0;
}

.terminal-pane::before,
.tui-view::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: -2px;
  right: 0;
  left: 0;
  height: 2px;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 4%, var(--accent-25) 25%, var(--accent-45) 50%, var(--accent-25) 75%, transparent 96%);
  box-shadow: 0 0 14px var(--accent-16);
  transform: translate3d(0, 0, 0);
  animation: phosphorSweep 8s linear infinite;
}

.terminal-chrome {
  position: relative;
  overflow: hidden;
}

.terminal-chrome::after {
  content: "";
  position: absolute;
  right: -24%;
  bottom: 0;
  width: 24%;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: chromeSignal 9s ease-in-out infinite;
}

.terminal-shell.is-commanding .terminal-state i {
  animation: commandStatePulse 440ms ease-out both;
}

.command-form::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
}

.terminal-shell.has-input-focus .command-form::before {
  animation: promptSignal 2.8s ease-in-out infinite;
}

.terminal-shell.has-input-focus .command-form label {
  color: var(--text);
  text-shadow: 0 0 12px var(--accent-16);
}

.terminal-shell.has-input-focus .command-form input {
  text-shadow: 0 0 14px var(--accent-25);
}

.js .window-layer,
.js .tui-view-stack {
  inset: var(--command-strip-height) 0 58px;
}

.js .tui-view.is-open {
  animation: tuiViewIn 300ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.tui-view__bar {
  position: relative;
  overflow: hidden;
}

.tui-view__bar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  opacity: 0.82;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.tui-view.is-open .tui-view__bar::after {
  animation: tuiRouteSignal 460ms 60ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.tui-view.is-open .tui-view__body > * {
  animation: tuiContentIn 360ms 90ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.tui-view.is-open .loadout-grid article,
.tui-view.is-open .help-window__body > div,
.tui-view.is-open .experience-log li {
  animation: tuiCellIn 300ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.tui-view.is-open .loadout-grid article:nth-child(2),
.tui-view.is-open .help-window__body > div:nth-child(2),
.tui-view.is-open .experience-log li:nth-child(2) {
  animation-delay: 40ms;
}

.tui-view.is-open .loadout-grid article:nth-child(3),
.tui-view.is-open .help-window__body > div:nth-child(3),
.tui-view.is-open .experience-log li:nth-child(3) {
  animation-delay: 80ms;
}

.tui-view.is-open .loadout-grid article:nth-child(4),
.tui-view.is-open .experience-log li:nth-child(4) {
  animation-delay: 120ms;
}

.tui-view.is-open .experience-log li:nth-child(5) {
  animation-delay: 160ms;
}

.tui-view.is-open .experience-log li:nth-child(6) {
  animation-delay: 200ms;
}

.tui-view.is-open .experience-log li:nth-child(7) {
  animation-delay: 240ms;
}

.js.terminal-ready .home-profile,
.js.terminal-ready .home-readme,
.js.terminal-ready .home-prompt-hint {
  animation: tuiContentIn 420ms cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.js.terminal-ready .home-profile {
  animation-delay: 110ms;
}

.js.terminal-ready .home-readme {
  animation-delay: 170ms;
}

.js.terminal-ready .home-prompt-hint {
  animation-delay: 230ms;
}

.theme-command-list {
  overflow: hidden;
}

.theme-command-list button {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    transform 140ms ease;
}

.theme-command-list button:hover {
  color: var(--text);
  background: var(--accent-07);
  transform: translate3d(2px, 0, 0);
}

.theme-command-list button[aria-pressed="true"] {
  color: var(--accent-bright);
  background:
    linear-gradient(90deg, var(--accent-16), transparent 72%),
    transparent;
  box-shadow: inset 2px 0 0 var(--accent);
}

.theme-command-list button code {
  color: inherit;
}

.theme-command-list button span {
  color: inherit;
  opacity: 0.78;
}

@keyframes tuiBusSweep {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
  22% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translate3d(650%, 0, 0);
  }
}

@keyframes tuiCommandRun {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  40% {
    opacity: 0.72;
    transform: translate3d(0, 1px, 0) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes tuiViewIn {
  from {
    opacity: 1;
    transform: translate3d(0, 7px, 0) scale(0.998);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes tuiContentIn {
  from {
    opacity: 1;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes tuiCellIn {
  from {
    opacity: 1;
    transform: translate3d(8px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes tuiRouteSignal {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  52% {
    opacity: 1;
  }
  100% {
    opacity: 0.35;
    transform: scaleX(1);
  }
}

@keyframes phosphorSweep {
  0%,
  74% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
  77% {
    opacity: 0.18;
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 74dvh, 0);
  }
}

@keyframes chromeSignal {
  0%,
  82% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
  87% {
    opacity: 0.58;
  }
  100% {
    opacity: 0;
    transform: translate3d(-520%, 0, 0);
  }
}

@keyframes promptSignal {
  0%,
  100% {
    opacity: 0.18;
    transform: scaleX(0.18);
  }
  50% {
    opacity: 0.7;
    transform: scaleX(1);
  }
}

@keyframes commandStatePulse {
  0% {
    opacity: 0.55;
    transform: scale(0.8);
  }
  55% {
    opacity: 1;
    transform: scale(1.18);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tuiModePulse {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(0.84);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes activeRoutePulse {
  0%,
  100% {
    opacity: 0.48;
    transform: scaleX(0.72);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 980px) {
  .tui-command-strip {
    grid-template-columns: minmax(0, 1fr) 108px;
  }

  .tui-command-strip__label {
    display: none;
  }

  .js .window-layer,
  .js .tui-view-stack {
    inset: var(--command-strip-height) 0 58px;
  }
}

@media (max-width: 700px) {
  .terminal-workspace {
    --command-strip-height: 52px;
  }

  .tui-command-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .tui-command-strip__mode {
    display: none;
  }

  .tui-command-strip__commands button {
    min-width: 100px;
    min-height: 50px;
    flex-basis: 100px;
    padding-inline: 10px;
  }

  .js .window-layer,
  .js .tui-view-stack {
    inset: var(--command-strip-height) 0 56px;
  }

  .theme-command-list button {
    min-height: 64px;
    grid-template-columns: 116px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-pane::before,
  .tui-view::after,
  .terminal-chrome::after,
  .terminal-shell.has-input-focus .command-form::before,
  .tui-command-strip__mode span {
    display: none;
  }

  .tui-command-strip__commands button[aria-current="page"]::before {
    animation: none !important;
    opacity: 1;
    transform: scaleX(1);
  }

  .js .tui-view.is-open,
  .tui-view.is-open .tui-view__body > *,
  .tui-view.is-open .loadout-grid article,
  .tui-view.is-open .help-window__body > div,
  .tui-view.is-open .experience-log li,
  .js.terminal-ready .home-profile,
  .js.terminal-ready .home-readme,
  .js.terminal-ready .home-prompt-hint {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Integrated console final cascade lock. */

.terminal-workspace {
  --command-strip-height: 42px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--command-strip-height) minmax(0, 1fr) auto;
}

.tui-command-strip {
  grid-template-columns: minmax(0, 1fr) auto;
}

.tui-command-strip__label {
  display: none;
}

.terminal-pane {
  grid-column: 1;
  grid-row: 2;
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
}

.console-composer-dock {
  position: relative;
  z-index: 10;
  grid-column: 1;
  grid-row: 3;
}

.terminal-transcript {
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.js .window-layer,
.js .tui-view-stack {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  inset: auto;
  width: 100%;
  height: 100%;
}

@media (max-width: 980px) {
  .tui-command-strip {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 760px) {
  .terminal-chrome {
    grid-template-columns: 136px minmax(90px, 1fr) auto;
  }

  .terminal-action {
    min-height: 44px;
  }

  .terminal-actions .terminal-action[href] {
    display: inline-flex;
  }

  .console-assistant .avatar-showcase,
  .console-assistant .retention-choice,
  .console-composer-dock .retention-choice {
    min-height: 44px;
  }

  .console-assistant .composer textarea,
  .console-composer-dock .composer textarea {
    font-size: 16px;
  }

  .terminal-workspace {
    --command-strip-height: 48px;
    grid-template-rows: var(--command-strip-height) minmax(0, 1fr) auto;
  }

  .terminal-pane {
    height: 100%;
    grid-template-rows: minmax(0, 1fr);
  }

  .js .window-layer,
  .js .tui-view-stack {
    inset: auto;
  }
}

@media (max-width: 440px) {
  .terminal-chrome {
    grid-template-columns: 136px minmax(64px, 1fr) auto;
  }
}
