:root {
  color-scheme: dark;
  --bg: #06110c;
  --bg-soft: #0b1912;
  --panel: rgba(9, 27, 18, 0.82);
  --panel-solid: #0c1f16;
  --line: rgba(138, 255, 178, 0.16);
  --text: #d9fbe8;
  --muted: #7fa991;
  --dim: #557061;
  --green: #7ee787;
  --green-deep: #14532d;
  --cyan: #81e6d9;
  --yellow: #f6e58d;
  --red: #ff8f8f;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  font-family: "JetBrains Mono", "CaskaydiaCove Nerd Font", "MesloLGS NF", "Fira Code", "DejaVu Sans Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #00160f;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  color: var(--text);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 10, 7, 0.78), rgba(0, 13, 8, 0.28) 48%, rgba(0, 10, 7, 0.72)),
    linear-gradient(180deg, rgba(0, 8, 5, 0.48), rgba(0, 13, 8, 0.22) 42%, rgba(0, 7, 5, 0.62));
}

.wallpaper-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 220ms ease;
}

.wallpaper-layer.is-ready {
  opacity: 1;
}

a {
  color: inherit;
}

.terminal-shell {
  width: min(1120px, calc(100vw - 32px));
  min-height: min(760px, calc(100vh - 32px));
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: visible;
  background: linear-gradient(180deg, rgba(2, 18, 11, 0.82), rgba(0, 11, 7, 0.86));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.terminal-topbar {
  height: 42px;
  display: grid;
  grid-template-columns: repeat(4, 32px) 1fr auto;
  gap: 7px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 12, 7, 0.88);
}

.workspace {
  appearance: none;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(126, 231, 135, 0.18);
  border-radius: 5px;
  color: var(--dim);
  background: rgba(126, 231, 135, 0.04);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.workspace.is-active {
  color: #03150b;
  border-color: rgba(126, 231, 135, 0.7);
  background: var(--green);
}

.workspace:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.bar-title,
.bar-right {
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.bar-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  justify-self: center;
}

.bar-right {
  justify-self: end;
}

.terminal-window {
  position: relative;
  min-width: 0;
  padding: clamp(18px, 3.8vw, 46px);
}

.workspace-panel[hidden] {
  display: none;
}

.workspace-panel {
  min-width: 0;
}

.prompt-line,
.system-line,
.site-link {
  margin: 0;
  font-size: clamp(0.86rem, 1.8vw, 1rem);
  line-height: 1.9;
}

.prompt-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 8px;
  min-height: 42px;
}

.p10k-os,
.p10k-user,
.p10k-host,
.p10k-path {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-weight: 700;
}

.p10k-os,
.p10k-user,
.p10k-host,
.p10k-path {
  gap: 7px;
}

.p10k-icon,
.command-icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  display: inline-block;
  object-fit: contain;
  opacity: 0;
  filter: brightness(0) saturate(100%) invert(94%) sepia(13%) saturate(1056%) hue-rotate(73deg) brightness(94%) contrast(91%);
  transition: opacity 140ms ease;
}

.service-icon {
  display: inline-block;
  max-width: 1.18em;
  max-height: 1.18em;
  width: 1.18em;
  height: 1.18em;
  margin-right: 0.45em;
  vertical-align: -0.2em;
  border-radius: 0.24em;
}

.p10k-os .p10k-icon {
  filter: brightness(0) saturate(100%) invert(7%) sepia(31%) saturate(1336%) hue-rotate(87deg) brightness(95%) contrast(98%);
}

.dark-icon {
  filter: brightness(0) saturate(100%) invert(7%) sepia(31%) saturate(1336%) hue-rotate(87deg) brightness(95%) contrast(98%);
}

.p10k-icon.is-ready,
.command-icon.is-ready {
  opacity: 0.9;
}

.command-icon {
  width: 17px;
  height: 17px;
  margin-right: 8px;
}

.p10k-os {
  color: #06240f;
  background: var(--green);
  border-radius: 5px 0 0 5px;
}

.p10k-user {
  color: #05170b;
  background: #a7f3d0;
}

.p10k-host {
  color: #d9fbe8;
  background: var(--green-deep);
}

.p10k-path {
  color: #06110c;
  background: var(--cyan);
}

.p10k-sep,
.p10k-tail {
  width: 0;
  height: 0;
  display: inline-block;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 11px solid #a7f3d0;
}

.host-sep {
  border-left-color: var(--green-deep);
}

.p10k-tail {
  border-left-color: var(--cyan);
  margin-right: 12px;
}

.typed-command {
  color: var(--text);
  min-width: 1ch;
}

.cursor {
  width: 0.72ch;
  height: 1.24em;
  display: inline-block;
  margin-left: 3px;
  translate: 0 0.22em;
  background: var(--green);
  animation: blink 1s steps(2, start) infinite;
}

.command-complete .cursor {
  opacity: 0.7;
}

.system-line {
  margin-top: 18px;
  color: var(--red);
}

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

.terminal-easter {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  border-top: 1px solid rgba(126, 231, 135, 0.14);
  padding-top: 18px;
}

.terminal-easter[hidden] {
  display: none;
}

.terminal-history {
  display: grid;
  gap: 10px;
}

.terminal-output {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  color: var(--muted);
  font: inherit;
  line-height: 1.55;
}

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

.warn-output {
  color: var(--red);
}

.neofetch-output,
.train-output {
  color: var(--green);
}

.achievement-output {
  width: fit-content;
  padding: 10px 12px;
  border: 1px solid rgba(126, 231, 135, 0.3);
  border-radius: 6px;
  color: #06110c;
  background: var(--green);
  font-weight: 800;
}

.command-prompt {
  margin-top: 0;
}

.live-command {
  min-width: 1ch;
  color: var(--text);
}

.matrix-rain,
.kernel-panic {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  white-space: pre;
  overflow: hidden;
  font-family: "JetBrains Mono", "CaskaydiaCove Nerd Font", "MesloLGS NF", "Fira Code", monospace;
}

.matrix-rain {
  padding: 22px;
  color: var(--green);
  background: rgba(0, 9, 5, 0.84);
  text-shadow: 0 0 12px rgba(126, 231, 135, 0.8);
  animation: matrix-fall 1.1s linear forwards;
}

.kernel-panic {
  display: grid;
  place-items: center;
  padding: 28px;
  color: #ffb4b4;
  background: #030000;
  font-size: clamp(0.82rem, 1.8vw, 1rem);
  line-height: 1.7;
}

.site-group {
  min-width: 0;
}

.site-group summary {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 140ms ease, background 140ms ease;
  min-height: 34px;
  display: grid;
  grid-template-columns: 14px minmax(0, auto) auto;
  gap: 10px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 2px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.site-group.is-visible summary {
  opacity: 1;
  transform: none;
}

.site-group summary::-webkit-details-marker {
  display: none;
}

.site-group summary:focus-visible,
.site-group summary:hover {
  border-color: rgba(126, 231, 135, 0.3);
  background: rgba(126, 231, 135, 0.07);
  outline: none;
}

.group-marker {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--green);
  transform-origin: 45% 50%;
  transition: transform 140ms ease;
}

.site-group[open] .group-marker {
  transform: rotate(90deg);
}

.group-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--green);
  font-weight: 700;
}

.group-count {
  min-width: 2ch;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border: 1px solid rgba(126, 231, 135, 0.16);
  border-radius: 5px;
  color: var(--muted);
  background: rgba(126, 231, 135, 0.06);
  font-size: 0.76rem;
}

.group-list {
  display: grid;
  gap: 5px;
  padding: 4px 0 0 24px;
  margin: 0;
  list-style: none;
}

.site-row {
  position: relative;
  z-index: 1;
  min-width: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-row.is-visible {
  opacity: 1;
  transform: none;
}

.site-row:hover,
.site-row:focus-within {
  z-index: 1000;
}

.site-link {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 11ch 8ch 13ch minmax(13ch, 1fr) auto minmax(18ch, 1.25fr);
  gap: 1.2ch;
  width: 100%;
  min-height: 34px;
  align-items: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 2px 9px;
  color: var(--muted);
  outline: none;
}

.site-link:focus-visible,
.site-row:hover .site-link {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent, var(--green)) 40%, transparent);
  background: color-mix(in srgb, var(--accent, var(--green)) 10%, transparent);
}

.site-link .name {
  color: var(--accent, var(--green));
  font-weight: 700;
}

.site-link .url {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--cyan);
}

.perm,
.owner,
.date,
.arrow {
  color: var(--dim);
}

.hover-card {
  --card-shift: 0px;
  position: absolute;
  z-index: 10000;
  top: 50%;
  left: min(53%, 580px);
  width: min(360px, calc(100vw - 42px));
  max-height: min(520px, calc(100vh - 64px));
  overflow: hidden;
  display: grid;
  border: 1px solid color-mix(in srgb, var(--accent, var(--green)) 34%, transparent);
  border-radius: 6px;
  background: #06150e;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translate(calc(18px - var(--card-shift)), -50%) scale(0.98);
  transition: opacity 150ms ease, transform 150ms ease;
}

.snake-panel,
.wiki-panel {
  min-height: min(620px, calc(100vh - 160px));
}

.snake-shell {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
}

.snake-hud {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.snake-hud strong {
  color: var(--green);
}

.snake-canvas {
  width: min(400px, 100%);
  aspect-ratio: 1;
  display: block;
  border: 1px solid rgba(126, 231, 135, 0.24);
  border-radius: 6px;
  background: #02110b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.snake-pad {
  width: min(178px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 48px);
  grid-template-areas:
    ". up ."
    "left down right";
  gap: 8px;
}

.snake-pad button {
  width: 48px;
  height: 40px;
  border: 1px solid rgba(126, 231, 135, 0.24);
  border-radius: 6px;
  color: var(--green);
  background: rgba(126, 231, 135, 0.07);
  font: 700 1rem/1 var(--font-mono, monospace);
  cursor: pointer;
}

.snake-pad button:hover,
.snake-pad button:focus-visible {
  color: #03150b;
  background: var(--green);
  outline: none;
}

.snake-pad [data-snake-dir="up"] {
  grid-area: up;
}

.snake-pad [data-snake-dir="left"] {
  grid-area: left;
}

.snake-pad [data-snake-dir="down"] {
  grid-area: down;
}

.snake-pad [data-snake-dir="right"] {
  grid-area: right;
}

.wiki-article {
  max-width: 900px;
  color: var(--text);
}

.wiki-kicker {
  width: fit-content;
  margin-bottom: 14px;
  padding: 3px 8px;
  border: 1px solid rgba(126, 231, 135, 0.2);
  border-radius: 6px;
  color: var(--green);
  background: rgba(126, 231, 135, 0.06);
  font-size: 0.78rem;
}

.wiki-article h1 {
  margin: 0 0 16px;
  color: var(--green);
  font-size: clamp(1.5rem, 3.8vw, 2.6rem);
  line-height: 1.12;
}

.wiki-lede {
  max-width: 74ch;
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.75;
}

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

.wiki-grid section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(126, 231, 135, 0.16);
  border-radius: 6px;
  background: rgba(0, 18, 11, 0.58);
}

.wiki-grid h2 {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.94rem;
}

.wiki-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.inline-code {
  color: var(--green);
}

.wiki-source {
  width: fit-content;
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(126, 231, 135, 0.22);
  border-radius: 6px;
  color: var(--green);
  background: rgba(126, 231, 135, 0.06);
  text-decoration: none;
}

.wiki-source:hover,
.wiki-source:focus-visible {
  color: #03150b;
  background: var(--green);
  outline: none;
}

.site-row:hover .hover-card,
.site-row:focus-within .hover-card {
  opacity: 1;
  pointer-events: auto;
  transform: translate(calc(0px - var(--card-shift)), -50%) scale(1);
}

.hover-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.hover-content {
  padding: 18px;
}

.hover-kicker {
  width: fit-content;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  color: #06110c;
  background: var(--accent, var(--green));
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hover-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
}

.hover-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(126, 231, 135, 0.07);
  font-size: 0.78rem;
}

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

@keyframes matrix-fall {
  0% {
    opacity: 0;
    transform: translateY(-12%);
  }

  12%,
  80% {
    opacity: 1;
  }

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

.storage-panel,
.activity-panel {
  min-height: min(620px, calc(100vh - 160px));
}

.dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.dashboard-head h1 {
  margin: 0;
  color: var(--cyan);
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.dashboard-refresh {
  padding: 7px 12px;
  border: 1px solid rgba(129, 230, 217, 0.42);
  border-radius: 6px;
  background: rgba(129, 230, 217, 0.06);
  color: var(--cyan);
  font: 700 0.78rem inherit;
  cursor: pointer;
}

.dashboard-refresh:hover,
.dashboard-refresh:focus-visible {
  outline: none;
  color: #03150b;
  background: var(--cyan);
}

.dashboard-meta,
.dashboard-note {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.dashboard-meta {
  margin: 7px 0 18px;
}

.dashboard-meta.is-error {
  color: var(--red);
}

.volume-grid,
.activity-grid {
  display: grid;
  gap: 14px;
}

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

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

.volume-card,
.breakdown-card,
.activity-service {
  border: 1px solid rgba(126, 231, 135, 0.16);
  border-radius: 7px;
  background: rgba(0, 18, 11, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.volume-card {
  padding: 16px;
}

.volume-heading,
.breakdown-head,
.breakdown-row-head,
.activity-item-head,
.activity-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.volume-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.volume-mount {
  color: var(--text);
  font-size: 0.94rem;
}

.volume-percent {
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 800;
}

.meter,
.activity-meter {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(126, 231, 135, 0.09);
}

.meter {
  margin-top: 15px;
}

.meter > span {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-deep), var(--green));
  transition: width 360ms ease;
}

.volume-card.is-warning .volume-percent {
  color: var(--yellow);
}

.volume-card.is-warning .meter > span {
  background: linear-gradient(90deg, #7c5d13, var(--yellow));
}

.volume-card.is-critical {
  border-color: rgba(255, 143, 143, 0.55);
  box-shadow: inset 3px 0 0 var(--red), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.volume-card.is-critical .volume-percent {
  color: var(--red);
}

.volume-card.is-critical .meter > span {
  background: linear-gradient(90deg, #8c2c39, var(--red));
}

.volume-detail {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.breakdown-card {
  margin-top: 14px;
  padding: 17px;
}

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

.du-card {
  min-width: 0;
}

.du-list {
  max-height: 520px;
  padding-right: 6px;
  overflow: auto;
  scrollbar-color: rgba(126, 231, 135, 0.32) transparent;
}

.du-row .breakdown-row-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 42%);
  align-items: flex-start;
}

.du-row .breakdown-name {
  min-width: 0;
}

.du-row .breakdown-name > div {
  min-width: 0;
}

.du-row .breakdown-name strong {
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.du-row .du-path {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.du-row .breakdown-value {
  max-width: none;
  line-height: 1.35;
  text-align: right;
  white-space: normal;
}

.du-note {
  margin-top: 10px;
}

.breakdown-head h2,
.activity-service h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.breakdown-total {
  color: var(--cyan);
  font-size: 0.78rem;
}

.breakdown-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.breakdown-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.breakdown-name strong,
.breakdown-name small {
  display: block;
}

.breakdown-name strong {
  color: var(--text);
  font-size: 0.82rem;
}

.breakdown-name small,
.activity-detail {
  margin-top: 3px;
  overflow: hidden;
  color: var(--dim);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breakdown-dot {
  width: 8px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--category-color, var(--green));
}

.breakdown-value {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
}

.breakdown-meter {
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(126, 231, 135, 0.07);
}

.breakdown-meter::after {
  display: block;
  width: var(--category-fill, 0%);
  height: 100%;
  border-radius: inherit;
  content: "";
  background: var(--category-color, var(--green));
  transition: width 360ms ease;
}

.dashboard-note {
  margin: 14px 0 0;
}

.dashboard-empty,
.idle-state {
  margin: 0;
  padding: 26px 16px;
  color: var(--dim);
  font-size: 0.78rem;
  text-align: center;
}

.idle-state {
  color: var(--green);
}

.activity-service {
  min-width: 0;
  overflow: hidden;
}

.activity-service > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(126, 231, 135, 0.12);
}

.activity-service > header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.service-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #02110b;
  font-size: 0.8rem;
  font-weight: 900;
}

.sonarr-mark {
  background: #35c5f4;
}

.radarr-mark {
  background: #fbc14a;
}

.service-state,
.activity-status {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(126, 231, 135, 0.16);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(126, 231, 135, 0.04);
  font-size: 0.66rem;
  text-transform: lowercase;
}

.service-state.is-active {
  border-color: rgba(246, 229, 141, 0.32);
  color: var(--yellow);
}

.service-state.is-idle {
  color: var(--green);
}

.service-state.is-error,
.activity-service.is-unavailable .service-state {
  color: var(--red);
}

.activity-list {
  max-height: min(470px, calc(100vh - 290px));
  overflow: auto;
  scrollbar-color: rgba(126, 231, 135, 0.3) transparent;
}

.activity-item {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(126, 231, 135, 0.08);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-item.is-command {
  border-left: 2px solid var(--cyan);
  background: rgba(129, 230, 217, 0.035);
}

.activity-item-head {
  align-items: flex-start;
}

.activity-item-head > div {
  min-width: 0;
}

.activity-title,
.activity-detail {
  display: block;
}

.activity-title {
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-meter {
  height: 5px;
  margin-top: 11px;
}

.activity-meter > span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #257492, #35c5f4);
}

.activity-meter.is-indeterminate > span {
  width: 35%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: activity-scan 1.4s linear infinite;
}

.activity-item.stage-queued {
  border-left: 2px solid rgba(246, 229, 141, 0.48);
}

.activity-item.stage-queued .activity-status {
  border-color: rgba(246, 229, 141, 0.35);
  color: var(--yellow);
}

.activity-item.stage-queued .activity-meter.is-indeterminate > span {
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
}

.activity-item.stage-searching,
.activity-item.stage-working {
  border-left: 2px solid rgba(129, 230, 217, 0.55);
}

.activity-item.stage-searching .activity-status,
.activity-item.stage-working .activity-status {
  border-color: rgba(129, 230, 217, 0.4);
  color: var(--cyan);
}

.activity-item.stage-downloading {
  border-left: 2px solid rgba(255, 255, 255, 0.48);
}

.activity-item.stage-downloading .activity-status {
  border-color: rgba(255, 255, 255, 0.26);
  color: hsl(0 0% var(--progress-lightness, 62%));
}

.activity-item.stage-downloading .activity-meter {
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.activity-item.stage-downloading .activity-meter > span {
  background: hsl(0 0% var(--progress-lightness, 62%));
  transition: width 360ms ease, background 360ms ease;
}

.activity-item.stage-importing {
  border-left: 2px solid rgba(126, 231, 135, 0.58);
}

.activity-item.stage-importing .activity-status {
  border-color: rgba(126, 231, 135, 0.4);
  color: var(--green);
}

.activity-item.stage-importing .activity-meter.is-indeterminate > span {
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.activity-item.stage-warning {
  border-left: 2px solid rgba(255, 143, 143, 0.62);
}

.activity-item.stage-warning .activity-status {
  border-color: rgba(255, 143, 143, 0.42);
  color: var(--red);
}

.activity-item.stage-warning .activity-meter.is-indeterminate > span {
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.activity-foot {
  margin-top: 6px;
  color: var(--dim);
  font-size: 0.65rem;
}

.activity-message {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

@keyframes activity-scan {
  from { transform: translateX(-110%); }
  to { transform: translateX(300%); }
}

@media (max-width: 840px) {
  body {
    place-items: stretch;
  }

  .terminal-shell {
    width: 100vw;
    min-height: 100vh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    overflow: hidden;
  }

  .terminal-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    grid-template-columns: repeat(4, 36px) 1fr;
    padding: 0 12px;
  }

  .bar-title {
    justify-self: end;
  }

  .bar-right {
    display: none;
  }

  .terminal-window {
    padding: 18px 14px 26px;
  }

  .prompt-line {
    align-items: flex-start;
  }

  .p10k-os,
  .p10k-user,
  .p10k-host,
  .p10k-path {
    min-height: 26px;
    padding: 0 8px;
  }

  .p10k-sep,
  .p10k-tail {
    border-top-width: 13px;
    border-bottom-width: 13px;
    border-left-width: 9px;
  }

  .site-list {
    gap: 12px;
    padding-top: 22px;
  }

  .terminal-easter {
    margin-top: 22px;
  }

  .terminal-output {
    font-size: 0.82rem;
  }

  .site-group summary {
    width: 100%;
  }

  .group-list {
    padding-left: 0;
  }

  .site-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 46px;
    padding: 7px 9px;
  }

  .perm,
  .owner,
  .date,
  .arrow {
    display: none;
  }

  .site-link .url {
    grid-column: auto;
    font-size: 0.82rem;
  }

  .site-link .name {
    overflow-wrap: anywhere;
  }

  .hover-card {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-row:hover .hover-card,
  .site-row:focus-within .hover-card {
    transform: none;
  }

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

  .wiki-article h1 {
    font-size: 1.55rem;
  }

  .wiki-lede {
    font-size: 0.94rem;
  }

  .snake-shell {
    place-items: stretch;
  }

  .snake-canvas {
    justify-self: center;
  }

  .snake-pad {
    justify-self: center;
    grid-template-columns: repeat(3, 44px);
  }

  .snake-pad button {
    width: 44px;
  }

  .dashboard-head {
    align-items: flex-start;
  }

  .volume-grid,
  .activity-grid,
  .du-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .activity-list {
    max-height: 390px;
  }
}

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