@font-face {
  font-family: "wowvain-nerd";
  src: url("./fonts/IosevkaTermNerdFont-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "wowvain-nerd";
  src: url("./fonts/IosevkaTermNerdFont-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "wowvain-nerd";
  src: url("./fonts/IosevkaTermNerdFont-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "wowvain-nerd-mono";
  src: url("./fonts/IosevkaTermNerdFontMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "wowvain-nerd-mono";
  src: url("./fonts/IosevkaTermNerdFontMono-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #081018;
  --panel: #111d2a;
  --grid: rgba(153, 196, 110, 0.08);
  --border: #2b4359;
  --text: #d8e5f0;
  --muted: #97abc0;
  --link: #a8d279;
  --error: #ff9d9d;
  --ls-dir: #7ec9ff;
  --ls-src: #ffbf66;
  --ls-doc: #7ec97c;
  --ls-config: #f2cf7d;
  --ls-img: #df9eff;
  --ls-bin: #ff8a8a;
  --ls-file: #d8e5f0;
  --ls-private: #ff7676;
  --scroll-track: rgba(8, 16, 24, 0.9);
  --scroll-thumb: rgba(117, 152, 181, 0.52);
  --scroll-thumb-hover: rgba(160, 198, 230, 0.68);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 86% 8%, rgba(35, 62, 80, 0.75), rgba(35, 62, 80, 0) 34%),
    repeating-linear-gradient(
      to bottom,
      var(--grid) 0,
      var(--grid) 1px,
      transparent 1px,
      transparent 25px
    ),
    var(--bg);
  color: var(--text);
  font:
    15px/1.52 "wowvain-nerd-mono",
    "wowvain-nerd",
    "IosevkaTerm Nerd Font",
    "JetBrainsMono Nerd Font",
    "CaskaydiaCove Nerd Font",
    "Iosevka",
    "JetBrains Mono",
    "Fira Code",
    monospace;
}

.frame {
  position: relative;
  width: min(1220px, calc(100vw - 1.4rem));
  height: min(58svh, 900px);
  zoom: 1.5;
  margin: auto;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 29, 42, 0.97), rgba(17, 29, 42, 0.92));
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  background: rgba(2, 6, 10, 0.78);
  transition: opacity 260ms ease;
}

.frame.is-spotlight::after {
  opacity: 1;
}

.font-loader {
  position: absolute;
  inset: 0;
  z-index: 22;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: rgba(8, 16, 24, 0.9);
}

.font-loader-spinner {
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid rgba(129, 167, 198, 0.35);
  border-top-color: #a8d279;
  border-radius: 999px;
  animation: font-loader-spin 0.85s linear infinite;
}

.font-loader-text {
  color: var(--muted);
  font-size: 0.9em;
}

@keyframes font-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.frame,
.terminal-output,
.completion-panel,
.editor-tree-list,
.editor-highlight,
.editor-area {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

.frame ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.frame ::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

.frame ::-webkit-scrollbar-thumb {
  border: 2px solid var(--scroll-track);
  border-radius: 999px;
  background: var(--scroll-thumb);
}

.frame ::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover);
}

.boot-header {
  min-height: 2.2rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px dashed var(--border);
  color: var(--muted);
}

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

.cursor {
  display: inline-block;
  width: 0.8ch;
}

.terminal-output {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.05rem;
  text-align: center;
  scroll-behavior: smooth;
}

.line {
  margin: 0.18rem 0;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}

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

.line-output {
  color: var(--text);
}

.line-social-output {
  display: inline-flex;
  margin: 0.18rem 0.65rem;
}

.line-output-link {
  color: var(--link);
  text-decoration: none;
}

.line-output-link:hover,
.line-output-link:focus-visible {
  color: #f2ffb0;
  text-decoration: underline;
}

.line-output-link.social-link-github {
  color: #c9d1d9;
}

.line-output-link.social-link-github:hover,
.line-output-link.social-link-github:focus-visible {
  color: #f0f6fc;
}

.line-output-link.social-link-gitlab {
  color: #fc6d26;
}

.line-output-link.social-link-gitlab:hover,
.line-output-link.social-link-gitlab:focus-visible {
  color: #ff9f6d;
}

.line-output-link.social-link-twitter {
  color: #1d9bf0;
}

.line-output-link.social-link-twitter:hover,
.line-output-link.social-link-twitter:focus-visible {
  color: #7cc7ff;
}

.line-output-link.social-link-instagram {
  color: #e4405f;
}

.line-output-link.social-link-instagram:hover,
.line-output-link.social-link-instagram:focus-visible {
  color: #ff7f95;
}

.line-output-link.social-link-youtube {
  color: #ff3b30;
}

.line-output-link.social-link-youtube:hover,
.line-output-link.social-link-youtube:focus-visible {
  color: #ff7b73;
}

.line-output-link.social-link-twitch {
  color: #9146ff;
}

.line-output-link.social-link-twitch:hover,
.line-output-link.social-link-twitch:focus-visible {
  color: #b18cff;
}

.line-identity {
  --identity-label-color: rgba(139, 172, 206, 0.95);
  --identity-value-color: rgba(205, 222, 241, 0.88);
  color: var(--identity-value-color);
}

.identity-label {
  color: var(--identity-label-color);
}

.identity-value {
  color: var(--identity-value-color);
}

.line-identity.identity-tone-1 {
  --identity-label-color: rgba(126, 183, 238, 0.96);
  --identity-value-color: rgba(196, 225, 251, 0.9);
}

.line-identity.identity-tone-2 {
  --identity-label-color: rgba(123, 201, 224, 0.96);
  --identity-value-color: rgba(192, 230, 243, 0.9);
}

.line-identity.identity-tone-3 {
  --identity-label-color: rgba(157, 173, 235, 0.96);
  --identity-value-color: rgba(214, 221, 252, 0.9);
}

.line-identity.identity-tone-4 {
  --identity-label-color: rgba(124, 191, 185, 0.96);
  --identity-value-color: rgba(196, 231, 227, 0.9);
}

.line-identity.identity-tone-5 {
  --identity-label-color: rgba(199, 180, 125, 0.95);
  --identity-value-color: rgba(228, 215, 179, 0.9);
}

.line-identity.identity-tone-6 {
  --identity-label-color: rgba(149, 198, 149, 0.95);
  --identity-value-color: rgba(211, 236, 211, 0.9);
}

.line-identity.identity-tone-default {
  --identity-label-color: rgba(139, 172, 206, 0.95);
  --identity-value-color: rgba(205, 222, 241, 0.88);
}

.line-error {
  color: var(--error);
}

.line-section {
  margin-top: 0.9rem;
  color: var(--link);
}

.line-section-divider {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.85rem 0 0.6rem;
  color: rgba(151, 171, 192, 0.7);
}

.line-section-divider::before,
.line-section-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid rgba(151, 171, 192, 0.24);
}

.line-section-divider > span {
  font-size: 0.9em;
  letter-spacing: 0.02em;
}

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

.line-project {
  margin: 0.45rem 0 0.7rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(43, 67, 89, 0.7);
  background: rgba(11, 21, 31, 0.45);
  border-radius: 4px;
}

.project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.22rem;
}

.project-name {
  color: #cde6ff;
  font-weight: 600;
  text-decoration: none;
}

a.project-name:hover,
a.project-name:focus-visible {
  color: #f2ffb0;
  text-decoration: underline;
}

.project-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.project-badge {
  display: inline-block;
  padding: 0.06rem 0.35rem;
  border: 1px solid rgba(124, 157, 180, 0.42);
  border-radius: 999px;
  color: #b3cde0;
  font-size: 0.82em;
  line-height: 1.2;
}

.badge-team-solo {
  color: #d0e89f;
}

.badge-team-team {
  color: #cbb1ff;
}

.badge-context-personal {
  color: #8ddf9e;
}

.badge-context-uni {
  color: #9ad3ff;
}

.badge-context-professional {
  color: #ffd08b;
}

.badge-era-legacy {
  color: #ffb58d;
}

.line-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.16rem 0;
}

.legend-label {
  color: var(--muted);
  min-width: 10ch;
}

.line-filter-row {
  margin: 0.2rem 0 0.45rem;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.filters-label {
  color: var(--muted);
  margin-right: 0.1rem;
}

.filter-group {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0 0.1rem;
}

.filter-sep {
  width: 1px;
  height: 1.05rem;
  margin: 0 0.1rem;
  background: rgba(151, 171, 192, 0.22);
}

.filter-chip {
  padding: 0.08rem 0.45rem;
  border: 1px solid rgba(124, 157, 180, 0.34);
  border-radius: 999px;
  background: rgba(11, 21, 31, 0.56);
  color: var(--muted);
  font: inherit;
  font-size: 0.82em;
  line-height: 1.25;
  cursor: pointer;
}

.filter-chip.badge-team-solo {
  color: #d0e89f;
}

.filter-chip.badge-team-team {
  color: #cbb1ff;
}

.filter-chip.badge-context-personal {
  color: #8ddf9e;
}

.filter-chip.badge-context-uni {
  color: #9ad3ff;
}

.filter-chip.badge-context-professional {
  color: #ffd08b;
}

.filter-chip.badge-era-legacy {
  color: #ffb58d;
}

.filter-chip:hover {
  border-color: rgba(160, 198, 230, 0.6);
}

.filter-chip.is-active {
  border-color: rgba(160, 198, 230, 0.74);
  background: rgba(28, 48, 66, 0.7);
}

.project-stack {
  color: #a8d279;
  margin-bottom: 0.12rem;
}

.project-description {
  color: var(--text);
}

.line-ls-list {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.line-ls-row {
  display: flex;
  align-items: center;
  min-height: 1.2em;
}

.ls-entry {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55ch;
  color: var(--ls-file);
}

.ls-icon {
  width: 2ch;
  text-align: center;
  font-family:
    "wowvain-nerd-mono",
    "wowvain-nerd",
    "Symbols Nerd Font Mono",
    "JetBrainsMono Nerd Font",
    "IosevkaTerm Nerd Font",
    monospace;
}

.ls-name {
  white-space: nowrap;
}

.ls-dir {
  color: var(--ls-dir);
  font-weight: 600;
}

.ls-src {
  color: var(--ls-src);
}

.ls-doc {
  color: var(--ls-doc);
}

.ls-config {
  color: var(--ls-config);
}

.ls-img {
  color: var(--ls-img);
}

.ls-bin {
  color: var(--ls-bin);
}

.ls-file {
  color: var(--ls-file);
}

.ls-private-repo {
  color: var(--ls-private);
  font-weight: 600;
}

.prompt-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-top: 1px dashed var(--border);
  position: relative;
  z-index: 11;
  transition: box-shadow 240ms ease, border-color 240ms ease, background-color 240ms ease;
}

.prompt-focus {
  position: relative;
}

.prompt-focus.is-active {
  z-index: 10;
}

.prompt-focus.is-active .prompt-row {
  border-top-color: rgba(146, 217, 255, 0.68);
  background: rgba(10, 22, 33, 0.96);
  box-shadow: 0 0 0 1px rgba(146, 217, 255, 0.44), 0 0 0 4px rgba(146, 217, 255, 0.14),
    0 14px 28px rgba(0, 0, 0, 0.48);
  animation: prompt-spotlight-pulse 1.45s ease-in-out infinite;
}

@keyframes prompt-spotlight-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(146, 217, 255, 0.44), 0 0 0 4px rgba(146, 217, 255, 0.14),
      0 14px 28px rgba(0, 0, 0, 0.48);
  }

  50% {
    box-shadow: 0 0 0 1px rgba(146, 217, 255, 0.64), 0 0 0 6px rgba(146, 217, 255, 0.2),
      0 16px 30px rgba(0, 0, 0, 0.52);
  }
}

.prompt-spotlight-msg {
  position: absolute;
  right: 1rem;
  bottom: calc(100% + 0.45rem);
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: min(40ch, calc(100% - 1.5rem));
  padding: 0.38rem 0.5rem 0.38rem 0.68rem;
  border: 1px solid rgba(146, 217, 255, 0.72);
  background: rgba(8, 16, 24, 0.98);
  color: #dcecff;
  border-radius: 0;
  box-shadow: 0 0 0 1px rgba(146, 217, 255, 0.28), 0 12px 24px rgba(0, 0, 0, 0.42);
  font-size: 0.94em;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 250ms ease 90ms, transform 250ms ease 90ms;
}

.prompt-spotlight-close {
  width: 1.35rem;
  height: 1.35rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(146, 217, 255, 0.55);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(13, 25, 37, 0.98), rgba(9, 18, 28, 0.98));
  color: #dcecff;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  padding: 0;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease,
    transform 160ms ease;
}

.prompt-spotlight-close::before,
.prompt-spotlight-close::after {
  content: "";
  position: absolute;
  width: 0.62rem;
  height: 1px;
  background: #dcecff;
}

.prompt-spotlight-close::before {
  transform: rotate(45deg);
}

.prompt-spotlight-close::after {
  transform: rotate(-45deg);
}

.prompt-spotlight-close:hover {
  border-color: rgba(182, 232, 255, 0.85);
  background: linear-gradient(180deg, rgba(17, 32, 46, 0.98), rgba(11, 22, 33, 0.98));
  box-shadow: 0 0 0 1px rgba(182, 232, 255, 0.26);
  transform: translateY(-1px);
}

.prompt-spotlight-close:focus-visible {
  outline: none;
  border-color: rgba(182, 232, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(182, 232, 255, 0.34), 0 0 0 3px rgba(126, 201, 255, 0.2);
}

.prompt-focus.is-active .prompt-spotlight-msg {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.prompt-label {
  color: var(--muted);
  white-space: nowrap;
}

.prompt-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.prompt-input:disabled {
  opacity: 0.65;
}

.editor-screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.editor-header {
  padding: 0.65rem 1rem;
  border-bottom: 1px dashed var(--border);
  color: var(--muted);
}

.editor-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.editor-main.tree-open {
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
}

.editor-main.browse-only {
  grid-template-columns: minmax(0, 1fr);
}

.editor-buffer {
  position: relative;
  min-width: 0;
  min-height: 0;
  --editor-gutter-width: 4ch;
  --editor-gutter-gap: 0.75rem;
}

.editor-gutter {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--editor-gutter-width) + var(--editor-gutter-gap));
  margin: 0;
  padding: 1rem var(--editor-gutter-gap) 1rem 0.3rem;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  text-align: right;
  color: var(--muted);
  opacity: 0.85;
  font: inherit;
  white-space: pre;
  line-height: 1.48;
}

.editor-highlight {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 1rem 1rem 1rem calc(1rem + var(--editor-gutter-width) + var(--editor-gutter-gap));
  overflow: auto;
  pointer-events: none;
  white-space: pre;
  font: inherit;
  line-height: 1.48;
  tab-size: 4;
}

.hl-line {
  min-height: 1.48em;
}

.editor-area {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(216, 229, 240, 0.01);
  caret-color: #cde6ff;
  font: inherit;
  line-height: 1.48;
  padding: 1rem 1rem 1rem calc(1rem + var(--editor-gutter-width) + var(--editor-gutter-gap));
  tab-size: 4;
  overflow: auto;
}

.editor-status {
  display: grid;
  grid-template-columns: auto auto auto auto auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.45rem 1rem;
  border-top: 1px dashed var(--border);
  color: var(--muted);
}

.editor-cmd-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-top: 1px dashed var(--border);
}

.editor-cmd-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.editor-tree {
  border-right: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(11, 21, 31, 0.55);
}

.editor-tree.is-full {
  border-right: 0;
}

.editor-tree.is-focused {
  box-shadow: inset 0 0 0 1px rgba(129, 196, 255, 0.35);
}

.editor-tree-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px dashed var(--border);
  color: var(--muted);
}

.editor-tree-path-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-tree-help-trigger {
  border: 1px dashed rgba(129, 196, 255, 0.38);
  background: rgba(10, 20, 30, 0.74);
  color: var(--muted);
  font: inherit;
  font-size: 0.83em;
  padding: 0.1rem 0.36rem;
  cursor: pointer;
  white-space: nowrap;
}

.editor-tree-help-trigger:hover {
  border-color: rgba(146, 217, 255, 0.68);
  color: #cde6ff;
}

.editor-tree-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 0.35rem 0.5rem;
}

.editor-tree-list:focus {
  outline: none;
}

.tree-entry {
  display: grid;
  grid-template-columns: 1ch 1ch 2ch 1fr;
  gap: 0.35ch;
  align-items: baseline;
  padding: 0.11rem 0.2rem;
  border-radius: 2px;
  white-space: nowrap;
  cursor: pointer;
}

.tree-fold {
  color: var(--muted);
}

.tree-entry.is-selected {
  background: rgba(129, 196, 255, 0.2);
}

.tree-cursor {
  color: var(--muted);
}

.tree-icon {
  text-align: center;
  font-family:
    "wowvain-nerd-mono",
    "wowvain-nerd",
    "Symbols Nerd Font Mono",
    "JetBrainsMono Nerd Font",
    "IosevkaTerm Nerd Font",
    monospace;
}

.tree-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-private-repo .tree-name,
.tree-private-repo .tree-icon {
  color: var(--ls-private);
}

.completion-panel {
  max-height: 11rem;
  overflow: auto;
  padding: 0.3rem 1rem 0.7rem;
  background: linear-gradient(180deg, rgba(17, 29, 42, 0.88), rgba(17, 29, 42, 0.96));
}

.center-popup-overlay {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  background: rgba(3, 8, 13, 0.64);
  transition: opacity 260ms ease;
}

.center-popup-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.center-popup-card {
  position: relative;
  width: min(560px, calc(100% - 1rem));
  border: 1px solid rgba(146, 217, 255, 0.62);
  background: rgba(8, 16, 24, 0.98);
  box-shadow: 0 0 0 1px rgba(146, 217, 255, 0.25), 0 18px 34px rgba(0, 0, 0, 0.48);
  padding: 0.8rem 0.9rem;
  transform: translateY(10px) scale(0.98);
  transition: transform 260ms ease;
}

.center-popup-overlay.is-active .center-popup-card {
  transform: translateY(0) scale(1);
}

.center-popup-title {
  color: #dcecff;
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.center-popup-body {
  color: var(--muted);
  line-height: 1.45;
}

.center-popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid rgba(146, 217, 255, 0.6);
  background: linear-gradient(180deg, rgba(13, 25, 37, 0.98), rgba(9, 18, 28, 0.98));
  cursor: pointer;
}

.center-popup-close::before,
.center-popup-close::after {
  content: "";
  position: absolute;
  width: 0.65rem;
  height: 1px;
  left: 50%;
  top: 50%;
  background: #dcecff;
}

.center-popup-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.center-popup-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.center-popup-close:hover {
  border-color: rgba(182, 232, 255, 0.88);
  box-shadow: 0 0 0 1px rgba(182, 232, 255, 0.26);
}

.keybind-groups {
  display: grid;
  gap: 0.6rem;
}

.keybind-group {
  border-top: 1px dashed rgba(151, 171, 192, 0.28);
  padding-top: 0.45rem;
  color: var(--text);
}

.keybind-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.keybind-group-label {
  color: var(--link);
  margin-bottom: 0.25rem;
}

.completion-panel .line {
  margin: 0.12rem 0;
}

.tok-comment {
  color: #5f7990;
}

.tok-string {
  color: #8ddf9e;
}

.tok-number {
  color: #f3c76e;
}

.tok-keyword {
  color: #ff9da0;
}

.tok-type {
  color: #89c1ff;
}

.tok-key {
  color: #c9dd8f;
}

.tok-tag {
  color: #ffb47a;
}

.tok-attr {
  color: #8bc5d6;
}

.tok-heading {
  color: #a8d279;
  font-weight: 600;
}

.tok-punct {
  color: #8fb0c7;
}

.tok-plain {
  color: #d8e5f0;
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
    padding: 0.35rem;
  }

  .frame {
    width: calc(100vw - 0.3rem);
    height: 58svh;
    margin: 0;
  }

  .boot-header,
  .terminal-output,
  .prompt-row,
  .completion-panel {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .editor-header,
  .editor-status,
  .editor-cmd-row {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .editor-buffer {
    --editor-gutter-gap: 0.6rem;
  }

  .editor-highlight,
  .editor-area,
  .editor-gutter {
    padding-left: calc(0.75rem + var(--editor-gutter-width) + var(--editor-gutter-gap));
    padding-right: 0.75rem;
  }

  .editor-gutter {
    padding-left: 0.25rem;
    padding-right: var(--editor-gutter-gap);
  }

  .editor-main {
    display: block;
  }

  .prompt-spotlight-msg {
    right: 0.75rem;
    bottom: calc(100% + 0.35rem);
  }

  .editor-tree {
    max-height: 34vh;
    border-right: 0;
    border-bottom: 1px dashed var(--border);
  }

  .editor-status {
    grid-template-columns: auto auto auto;
    gap: 0.35rem 0.8rem;
  }
}
