@import url("https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=JetBrains+Mono:wght@400;500;700&display=swap");

/* tokens — single source of truth */
:root {
  --bg: #0a0a0e;
  --surface: #111116;
  --raised: #181820;
  --border: #222230;
  --fg: #c0caf5;
  --muted: #565f89;
  --primary: #9ece6a;
  --info: #7aa2f7;
  --warn: #e0af68;
  --error: #f7768e;
  --font-display: "Silkscreen", monospace;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 3px;
  --dur: 120ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --hover: rgba(255, 255, 255, 0.05);
  --kind-flagship: #ff9e64;
  --kind-research: #bb9af7;
  --kind-systems: #7aa2f7;
  --kind-ml: #2ac3de;
  --kind-game: #f7768e;
  --border-focus: #3a445f;
  --sel-bg: #c9c9ec;
  --sel-fg: #0a0a0e;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  overflow: hidden;
}
#os {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.screen.active {
  display: flex;
}

/* ---------- bootloader (Omarchy/limine style: pure black, tree, corner hints) ---------- */
#bootloader {
  background: var(--bg);
  font-family: var(--font-mono);
}
.bl-title {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--primary);
  font-size: 20px;
  letter-spacing: 1px;
  font-family: var(--font-display);
}
.bl-hint-l {
  position: absolute;
  top: 52px;
  left: 26px;
  color: var(--fg);
  font-size: 14px;
}
.bl-hint-r {
  position: absolute;
  top: 52px;
  right: 26px;
  color: var(--fg);
  font-size: 14px;
}
.bl-hint-l .k,
.bl-hint-r .k {
  color: var(--primary);
  font-family: var(--font-display);
}
.bl-ver {
  position: absolute;
  bottom: 18px;
  left: 26px;
  color: var(--info);
  font-size: 14px;
  font-family: var(--font-display);
}
.bl-center {
  text-align: center;
}
.bl-tree {
  display: inline-grid;
  justify-items: start;
  gap: 2px 0;
  text-align: left;
  text-indent: 0;
  color: var(--fg);
  font-size: 18px;
}
.bl-ln {
  display: inline-block;
  width: fit-content;
  white-space: nowrap;
  cursor: pointer;
}
.bl-ln:not(.bl-boot) {
  padding-left: 0;
}
.bl-gut {
  display: inline-block;
  width: 5ch;
}
.bl-hl {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0 6px 0 0;
  border-radius: 2px;
}
.bl-boot.sel .bl-hl {
  background: var(--sel-bg);
  color: var(--sel-fg);
}
.bl-desc {
  color: var(--muted);
  font-size: 15px;
  margin-top: 22px;
}
.bl-cd {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

/* bootloader overlays (S = firmware setup, B = blank entry / grub) */
.bl-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--bg);
  z-index: 5;
}
.bl-overlay-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--primary);
  letter-spacing: 1px;
}
.bl-overlay-body {
  width: min(560px, 82vw);
}
.bl-overlay-hint {
  color: var(--muted);
  font-size: 13px;
}
.bl-overlay-hint .k {
  color: var(--primary);
  font-family: var(--font-display);
}

/* firmware setup table */
.bl-setup {
  border: 1px solid var(--border);
  font-size: 14px;
  text-align: left;
}
.bl-setup-head {
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--info);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
}
.bl-setup-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--border);
}
.bl-setup-row:last-child {
  border-bottom: none;
}
.bl-setup-row span {
  color: var(--muted);
}
.bl-setup-row b {
  color: var(--fg);
  font-weight: 500;
}

/* grub console (B = blank entry) — full-screen, prompt bottom-left */
.bl-overlay--console {
  justify-content: flex-end;
  align-items: stretch;
}
.bl-overlay--console .bl-overlay-body {
  width: min(860px, 94vw);
  padding: 0 20px 40px;
}
.bl-overlay--console .bl-overlay-hint {
  position: absolute;
  bottom: 14px;
  right: 24px;
}
.bl-grub {
  display: flex;
  flex-direction: column;
  height: 62vh;
  text-align: left;
}
.bl-grub-out {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  white-space: pre-wrap;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bl-grub-out::-webkit-scrollbar {
  display: none;
}
.bl-grub-in {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bl-grub-prompt {
  color: var(--info);
  font-family: var(--font-display);
  font-size: 14px;
}
.bl-grub-cursor {
  width: 0.55em;
  height: 1.05em;
  background: var(--primary);
  animation: bl-blink 1.1s steps(1) infinite;
}
@keyframes bl-blink {
  50% {
    opacity: 0;
  }
}
.bl-grub-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 14px;
  caret-color: var(--primary);
}

/* ---------- boot: BIG logo, fills bottom→top in pixel steps ---------- */
#boot {
  background: var(--bg);
}
.logo-boot {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(56px, 16vw, 150px);
  letter-spacing: 4px;
  line-height: 1;
}
.logo-boot .base {
  color: var(--border);
}
.logo-boot .fill {
  position: absolute;
  inset: 0;
  color: var(--primary);
  clip-path: inset(100% 0 0 0);
  animation: fillUp 1.9s steps(16) 0.2s forwards;
}
@keyframes fillUp {
  to {
    clip-path: inset(0 0 0 0);
  }
}
.bootlog {
  position: absolute;
  left: 32px;
  bottom: 38px;
  font-size: 12px;
  line-height: 1.85;
  text-align: left;
  width: auto;
  min-height: 0;
  max-width: 60vw;
}
.bootlog .ok {
  color: var(--primary);
}
.bootlog .warn {
  color: var(--warn);
}
.bootlog .dim {
  color: var(--muted);
}
.corner {
  position: absolute;
  right: 32px;
  bottom: 38px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
}

/* Snapshot terminal (installer / crash) */
.snap-terminal {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  padding: 18px 22px;
  font: 13px/1.6 var(--font-mono);
  color: var(--fg);
  white-space: pre-wrap;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.snap-terminal::-webkit-scrollbar {
  display: none;
}
.snap-terminal.crash {
  color: #e06c75;
}
.snap-terminal .ok {
  color: #9ece6a;
}
.snap-terminal .warn {
  color: #e0af68;
}
.snap-terminal .err {
  color: #e06c75;
}
.snap-terminal .trace {
  color: #565f89;
}
.snap-terminal .prompt {
  color: #7aa2f7;
}
.snap-terminal .dim {
  opacity: 0.5;
}

/* TUI Installer */
.snap-terminal .tui-label {
  color: #7aa2f7;
  font-weight: bold;
}

/* ASCII art flash (S3) */
.snap-terminal .ascii-flash {
  display: inline-block;
  color: #bb9af7;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin: 4px 0;
}

/* Windows boot — blue fill override */
.logo-boot.win .fill {
  color: #4488dd;
}

/* BSOD — Windows joke */
.bsod {
  position: absolute;
  inset: 0;
  background: #0000aa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.bsod-content {
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 900px;
  padding: 50px;
}
.bsod-left {
  flex: 1;
}
.bsod-right {
  flex-shrink: 0;
}
.bsod-face {
  font-size: 110px;
  margin-bottom: 24px;
}
.bsod-msg {
  font-size: 22px;
  margin-bottom: 20px;
  line-height: 1.4;
}
.bsod-qr {
  margin: 0;
}
.bsod-qr img {
  display: block;
  border: 2px solid #fff;
  border-radius: 4px;
}
.bsod-qr canvas {
  display: none;
}
.bsod-stop {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 8px;
  font-family: "Cascadia Code", "Fira Code", monospace;
}
.bsod-action {
  color: #ccc;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  margin-top: 40px;
  text-align: center;
}
.bsod-action .k {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #888;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
}

/* ---------- boot auth: verification inside the same screen ---------- */
.progress-line {
  margin-top: 10px;
  margin-bottom: 4px;
}
.tag-auth {
  color: var(--info);
  margin-right: 6px;
}
.progress-text {
  color: var(--muted);
  font-size: 12px;
}
.progress-bar {
  display: inline-block;
  width: min(200px, 40vw);
  height: 6px;
  background: rgba(61, 67, 84, 0.4);
  overflow: hidden;
  vertical-align: middle;
  margin-left: 8px;
}
.progress-bar > i {
  display: block;
  width: 0;
  height: 100%;
  background: #e8e8e8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transition: width 0.7s steps(16);
}

/* desktop */
.wallpaper {
  position: absolute;
  inset: 0;
  background: url("background/1-dark-waters.jpg") center / cover var(--bg);
}
.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.08;
}
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  background: rgba(10, 10, 14, 0.92);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  font-size: 12px;
  z-index: 9000;
}
.topbar .bar-group {
  display: flex;
  align-items: center;
  height: 100%;
}
.topbar .left {
  gap: 16px;
}
.topbar .center {
  flex: 1;
  justify-content: center;
  gap: 10px;
}
.topbar .right {
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.topbar .brand {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 13px;
}
.topbar .ws {
  color: var(--fg);
  letter-spacing: 3px;
}
.topbar .right i {
  line-height: 1;
}
.topbar .right i.warn {
  color: var(--warn);
}
.topbar #clock {
  color: var(--fg);
}
.topbar #date {
  color: var(--muted);
}

.folders {
  position: absolute;
  top: 56px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
}
.folder {
  width: 92px;
  text-align: center;
  cursor: pointer;
  color: var(--fg);
  opacity: 0.9;
  transition: opacity var(--dur);
}
.folder:hover {
  opacity: 1;
}
.folder .ic {
  width: 64px;
  height: 50px;
  margin: 0 auto 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.folder .ic i {
  font-size: 20px;
  color: var(--fg);
  margin-top: 4px;
}
.folder .ic:before {
  content: "";
  position: absolute;
  top: -6px;
  left: 8px;
  width: 22px;
  height: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}
.folder span {
  font-size: 12px;
}

/* windows container: overlay that lets clicks fall through empty areas */
#windows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* a window (created by the WindowManager) */
.window {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  min-width: 280px;
  transition: transform 0.25s cubic-bezier(0.19, 1, 0.22, 1);
}
.window.focused {
  border-color: var(--border-focus);
}
.window.dragging {
  opacity: 0.96;
  cursor: grabbing;
  transition: none;
}
.titlebar {
  background: var(--raised);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: grab;
  user-select: none;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red {
  background: var(--error);
  cursor: pointer;
}
.dot.amber {
  background: var(--warn);
}
.dot.green {
  background: var(--primary);
}
.titlebar .t {
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
}
.wbody {
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.7;
  max-height: 60vh;
  overflow: auto;
}

/* about — H 3D neofetch + narrative */
.wbody.about {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 75vh;
  padding: 12px;
  overflow: hidden;
  min-width: 500px;
  container-type: inline-size;
}
.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex-shrink: 0;
}
.about-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2px;
}
.about-sep {
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}
.h3d-pre {
  font-size: 10px;
  line-height: 1.15;
  color: var(--primary);
  white-space: pre;
  margin: 0;
  padding: 20px;
}
.about-neofetch {
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
}
.nf-title {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 2px;
}
.nf-sep {
  color: var(--muted);
  margin-bottom: 4px;
}
.nf-row {
  display: flex;
  gap: 6px;
}
.nf-k {
  color: var(--muted);
  min-width: 14ch;
}
.about-scroll {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 65vh;
  font-size: 12px;
  line-height: 1.7;
  padding: 6px 0 0;
  scrollbar-width: none;
  max-width: 700px;
  margin: 0 auto;
}
.about-scroll::-webkit-scrollbar {
  display: none;
}
.about-intro {
  margin-bottom: 14px;
  padding-left: 4px;
  color: var(--fg);
}
.about-h {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--primary);
  margin-top: 12px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.about-row {
  padding-left: 4px;
  margin-bottom: 4px;
  color: var(--fg);
}
.about-motto {
  color: var(--primary);
  font-style: italic;
  text-align: center;
  margin-top: 14px;
  padding: 10px 0 0;
  border-top: 1px solid var(--border);
}

.about-cols {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* contact — mini-REPL */
.wbody.contact {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg);
  width: 460px;
  max-width: 86vw;
}
.ct-info {
  flex-shrink: 0;
  margin-bottom: 10px;
}
.ct-info-line {
  white-space: pre-wrap;
}
.ct-info-line a {
  color: var(--info);
  text-decoration: none;
}
.ct-info-line a:hover {
  text-decoration: underline;
}
.ct-sep {
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
  margin-bottom: 10px;
}
.ct-out {
  flex: 1;
  white-space: pre-wrap;
  overflow-y: auto;
  margin-bottom: 6px;
}
.ct-line {
  display: flex;
  align-items: center;
}
.ct-prompt {
  color: var(--primary);
  white-space: nowrap;
}
.ct-in {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 0 0 0 6px;
  caret-color: var(--primary);
  resize: none;
  overflow: hidden;
  line-height: 1.5;
  max-height: 120px;
}
.ct-echo .ct-prompt {
  color: var(--primary);
}
.ct-cmd {
  color: var(--info);
}
.ct-ok {
  color: var(--primary);
}
.ct-status {
  flex-shrink: 0;
  padding-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* terminal app */
.wbody.term {
  width: 560px;
  max-width: 86vw;
  background: var(--bg);
  scrollbar-width: none;
}
.wbody.term::-webkit-scrollbar {
  display: none;
}
.term-out {
  white-space: pre-wrap;
  margin-bottom: 6px;
}
.term-out .prompt {
  color: var(--primary);
}
.err {
  color: var(--error);
}
.term-line {
  display: flex;
  align-items: center;
  gap: 0;
}
.term-line .prompt {
  color: var(--primary);
}
.term-line .cwd {
  color: var(--info);
}
.term-in {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
  padding-left: 6px;
  caret-color: var(--primary);
}
.term-out .dir {
  color: var(--info);
  font-weight: bold;
}
.term-out .ok {
  color: #9ece6a;
}
.term-out .dim {
  color: var(--muted);
}
.term-out .hd {
  color: var(--primary);
  font-weight: bold;
}
.term-out .acc {
  color: var(--info);
}

/* api explorer */
.wbody.api {
  display: flex;
  flex-direction: column;
  width: 860px;
  max-width: 94vw;
  padding: 0;
  overflow: hidden;
}
.api-tabs {
  display: flex;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.api-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur);
}
.api-tab:hover {
  color: var(--fg);
}
.api-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.api-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  display: none;
}
.api-panel::-webkit-scrollbar {
  display: none;
}
.api-panel.active {
  display: flex;
}

/* api center — dashboard */
.api-center {
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
}
.ac-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.ac-toolbar .api-h {
  margin: 0;
}
.api-h {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}
.ac-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  flex-shrink: 0;
}
.ac-tile {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--raised);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ac-tile-k {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.ac-tile-v {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.st-on {
  background: #9ece6a;
  box-shadow: 0 0 6px rgba(158, 206, 106, 0.8);
}
.st-off {
  background: var(--error);
  box-shadow: 0 0 6px rgba(224, 108, 117, 0.8);
}
.ac-data-strip {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
  padding: 0 2px;
}
.ac-data-strip b {
  font-family: var(--font-mono);
  color: var(--fg);
}
.ac-card {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}
.ac-card-h {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.ac-card-h .dim {
  letter-spacing: 0;
}
.ac-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
}
.ac-bar {
  width: 6px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
}
.ac-lat-stats {
  font-size: 11px;
  margin-top: 6px;
  text-align: right;
}
.ac-meta-paths {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 130px;
  overflow-y: auto;
  scrollbar-width: none;
}
.ac-meta-paths::-webkit-scrollbar {
  display: none;
}
.ac-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  padding: 3px 4px;
  border-radius: 4px;
}
.ac-row:hover {
  background: var(--raised);
}
.ac-row code {
  color: var(--info);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac-count {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  padding: 1px 6px;
  border-radius: 4px;
}
.ac-count-bar {
  position: absolute;
  inset: 0;
  background: rgba(158, 206, 106, 0.1);
  border-radius: 4px;
}
.ac-count b {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  color: var(--fg);
}
.api-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.api-ep {
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}
.api-ep:hover {
  background: var(--raised);
}
.api-ep.active {
  border-color: var(--border);
  background: var(--raised);
}
.api-ep-path {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
}
.api-ep-desc {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.m {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.m-get {
  color: #9ece6a;
  background: rgba(158, 206, 106, 0.12);
}
.m-post {
  color: var(--warn);
  background: rgba(224, 175, 104, 0.12);
}

/* api-ic — small icon action button */
.api-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition:
    color var(--dur),
    border-color var(--dur);
}
.api-ic:hover {
  color: var(--fg);
  border-color: var(--border);
}
.api-ic.ok {
  color: var(--primary);
  border-color: var(--primary);
}
.api-ic.err {
  color: var(--error);
}

/* consultas — request console */
.api-query {
  flex-direction: column;
  padding: 12px 16px 14px;
  gap: 10px;
}
.api-drawer {
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.api-drawer-h {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: none;
  border: none;
  padding: 9px 12px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.api-drawer-h:hover {
  color: var(--fg);
}
.api-drawer-chev {
  display: inline-flex;
  transition: transform var(--dur);
}
.api-drawer.open .api-drawer-chev {
  transform: rotate(180deg);
}
.api-drawer-body {
  display: none;
  border-top: 1px solid var(--border);
  max-height: 40vh;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 8px;
}
.api-drawer-body::-webkit-scrollbar {
  display: none;
}
.api-drawer.open .api-drawer-body {
  display: block;
}
.api-console {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.api-req {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  padding: 6px 8px;
}
.api-req .m {
  margin-right: 0;
}
.api-url {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.api-pt-wrap {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.api-pt-wrap[hidden] {
  display: none;
}
.api-pt {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.api-pt th {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: normal;
  text-align: left;
  color: var(--muted);
  background: var(--raised);
  border-bottom: 1px solid var(--border);
  padding: 6px 8px;
}
.api-pt th:first-child {
  width: 34%;
}
.api-pt th:nth-child(2) {
  width: auto;
}
.api-pt th:last-child {
  width: 30px;
}
.api-pt td {
  border-bottom: 1px solid var(--border);
  padding: 0 4px;
}
.api-pt td:last-child {
  width: 30px;
  text-align: center;
  padding: 0;
}
.api-pt tbody tr:last-child td {
  border-bottom: none;
}
.api-pt input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 6px;
}
.api-pt input:focus {
  background: rgba(158, 206, 106, 0.06);
}
.pt-del {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 3px;
}
.pt-del:hover {
  color: var(--error);
}
.api-pt-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
}
.api-add {
  background: none;
  border: 1px dashed var(--border);
  color: var(--muted);
  border-radius: 4px;
  font-size: 11px;
  padding: 3px 10px;
  cursor: pointer;
}
.api-add:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.api-pt-hint {
  font-size: 11px;
}
.api-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.api-lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}
.api-demo {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
  font-size: 11px;
  padding: 5px 12px;
  cursor: pointer;
}
.api-demo:hover {
  color: var(--fg);
  border-color: var(--muted);
}
.api-run {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(158, 206, 106, 0.12);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  transition:
    background var(--dur),
    transform var(--dur);
}
.api-run:hover:not(:disabled) {
  background: rgba(158, 206, 106, 0.2);
}
.api-run:disabled {
  background: var(--raised);
  border-color: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}
.api-res-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}
.api-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  padding: 1px 8px;
  border-radius: 10px;
}
.api-chip.ok {
  color: #9ece6a;
  background: rgba(158, 206, 106, 0.12);
}
.api-chip.err {
  color: var(--error);
  background: rgba(224, 108, 117, 0.12);
}
.api-chip.dim {
  color: var(--muted);
  background: var(--raised);
}
.api-res-meta {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.api-json {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg);
  white-space: pre;
  scrollbar-width: none;
}
.api-json::-webkit-scrollbar {
  display: none;
}
.j-key {
  color: #7aa2f7;
}
.j-str {
  color: #9ece6a;
}
.j-num {
  color: #ff9e64;
}
.j-bool {
  color: #bb9af7;
}
.j-null {
  color: #565f89;
  font-style: italic;
}

/* found — secret devtools window */
.wbody.found {
  width: 480px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  overflow-y: auto;
  scrollbar-width: none;
}
.wbody.found::-webkit-scrollbar {
  display: none;
}
.fd-art {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 8px rgba(98, 114, 164, 0.55);
}
.fd-quote {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--fg);
  text-align: center;
  letter-spacing: 0.3px;
}
.fd-hint {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}
.fd-hint code {
  font-family: var(--font-mono);
  color: var(--info);
}

/* projects — master-detail */
.wbody.projects {
  display: flex;
  width: 750px;
  padding: 0;
  overflow: hidden;
}
.proj-list {
  flex: 0 0 240px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.proj-list::-webkit-scrollbar {
  display: none;
}
.proj-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.proj-item:hover {
  background: var(--raised);
}
.proj-item.active {
  background: var(--raised);
  border-left: 2px solid var(--primary);
  padding-left: 10px;
}
.proj-item:last-child {
  border-bottom: none;
}
.proj-item .mark {
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.proj-item .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-item.wip .name {
  opacity: 0.45;
}
.proj-item .tag {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* kind marker colors */
.kind-flagship {
  color: var(--kind-flagship);
}
.kind-research {
  color: var(--kind-research);
}
.kind-systems {
  color: var(--kind-systems);
}
.kind-ml {
  color: var(--kind-ml);
}
.kind-game {
  color: var(--kind-game);
}

/* detail pane */
.proj-detail {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.proj-detail::-webkit-scrollbar {
  display: none;
}
.proj-detail-name {
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 10px;
}
.proj-hook {
  font-style: italic;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.6;
}
.proj-what {
  margin-bottom: 16px;
  color: var(--fg);
}
.proj-highlights {
  margin-bottom: 16px;
}
.proj-highlight {
  display: flex;
  gap: 8px;
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--border);
  font-size: 12px;
  line-height: 1.5;
}
.proj-hl-n {
  color: var(--muted);
  flex-shrink: 0;
}
.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.proj-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  border: 1px solid currentColor;
  opacity: 0.85;
}
.proj-links {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  color: var(--fg);
  text-decoration: none;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.proj-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.proj-link i {
  font-size: 13px;
}

/* experience — lateral scroll timeline */
.wbody.experience {
  --exp-purple: #bb9af7;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-width: 400px;
  max-height: 75vh;
  width: min(90vw, 520px);
  font-size: 12px;
  line-height: 1.7;
}

/* header */
.exp-header {
  flex-shrink: 0;
  padding: 14px 28px 10px;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 1;
}
.exp-company {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--exp-purple);
  margin-bottom: 2px;
}
.exp-meta {
  font-size: 11px;
  color: var(--muted);
}

/* chapters container — nowrap + inline-block for reliable overflow */
.exp-chapters {
  flex: 1;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.exp-chapters::-webkit-scrollbar {
  display: none;
}

/* each chapter — inline-block, full width, text wraps normally */
.exp-chapter {
  display: inline-block;
  width: 100%;
  vertical-align: top;
  white-space: normal;
  scroll-snap-align: start;
  padding: 20px 28px;
  overflow-y: auto;
}

.exp-chapter-title {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--exp-purple);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.exp-chapter-body {
  color: var(--fg);
  max-width: 520px;
}
.exp-chapter-body p {
  margin: 0 0 8px;
}
.exp-chapter-body p:last-child {
  margin-bottom: 0;
}

/* logros */
.exp-logros {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.exp-logro {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.exp-logro-n {
  color: var(--exp-purple);
  font-weight: 700;
  min-width: 16px;
}
.exp-logro-t {
  color: var(--exp-purple);
  font-weight: 500;
}
.exp-logro-d {
  color: var(--fg);
  flex: 1 1 100%;
  padding-left: 22px;
  font-size: 11px;
}

/* incident */
.exp-incident {
  border-left: 2px solid var(--exp-purple);
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.exp-incident p {
  margin-bottom: 6px;
}
.exp-incident p:last-child {
  margin-bottom: 0;
}

/* stack heading */
.exp-stack-heading {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--exp-purple);
  margin-top: 24px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* stack toggle + badges */
.exp-stack-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
}
.exp-toggle-btn {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color var(--dur),
    color var(--dur),
    background var(--dur);
}
.exp-toggle-btn:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
}
.exp-toggle-btn:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
  border-left: none;
}
.exp-toggle-btn.active {
  border-color: var(--exp-purple);
  color: var(--exp-purple);
  background: transparent;
  z-index: 1;
}

.exp-stack-badges {
  position: relative;
  min-height: 60px;
}
.exp-stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  transition: opacity 0.3s ease;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
}
.exp-stack-items.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}
.exp-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--exp-purple);
  border: 1px solid var(--exp-purple);
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

/* dots navigation */
.exp-dots {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 14px;
}
.exp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition:
    background var(--dur),
    box-shadow var(--dur);
}
.exp-dot.active {
  background: var(--exp-purple);
  box-shadow: 0 0 6px var(--exp-purple);
}

/* leader-key hint bar */
.leader-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  display: none;
  pointer-events: none;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 7px 14px;
  font-size: 12px;
  color: var(--fg);
  z-index: 9500;
  opacity: 0;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.leader-hint.show {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.leader-hint .lh-label {
  color: var(--primary);
  letter-spacing: 1px;
  font-size: 11px;
}
.leader-hint b {
  color: var(--primary);
}

/* desktop app icons (functions, unlike .folder which is data) */
.exe {
  width: 88px;
  text-align: center;
  cursor: pointer;
  color: var(--fg);
  opacity: 0.9;
  transition: opacity var(--dur);
  margin-top: 10px;
}
.exe:hover {
  opacity: 1;
}
.exe .icx {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color var(--dur),
    box-shadow var(--dur),
    transform var(--dur);
}
.exe:hover .icx {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(158, 206, 106, 0.25);
  transform: translateY(-2px);
}
.exe .icx-prompt {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--primary);
  line-height: 1;
}
.exe .icx-glyph {
  font-size: 20px;
  color: var(--primary);
  line-height: 1;
}
.exe[data-app="api"] .icx-glyph {
  color: var(--error);
}
.exe[data-app="api"]:hover .icx {
  border-color: var(--error);
  box-shadow: 0 0 10px rgba(224, 108, 117, 0.25);
}
.exe .icx-cur {
  animation: bl-blink 1s steps(1) infinite;
}
.exe > span {
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--muted);
  transition: color var(--dur);
}
.exe:hover > span {
  color: var(--fg);
}

/* toast */
.toast {
  position: absolute;
  top: 46px;
  right: 16px;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 12px 16px;
  width: 250px;
  z-index: 9000;
  transform: translateX(320px);
  transition: transform 0.35s var(--ease);
}
.toast.show {
  transform: translateX(0);
}
.toast .tt {
  font-size: 13px;
  color: var(--fg);
  margin-bottom: 3px;
}
.toast .td {
  font-size: 12px;
  color: var(--muted);
}
.toast .td b {
  color: var(--primary);
}

/* command menu — Omarchy dmenu/rofi style */
#command-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 9999;
  width: 480px;
  max-width: 90vw;
  max-height: 60vh;
  background: var(--bg);
  border: 1px solid var(--primary);
  box-shadow: 0 0 60px rgba(158, 206, 106, 0.08);
  display: none;
  flex-direction: column;
  opacity: 0;
  transition:
    opacity 100ms var(--ease),
    transform 100ms var(--ease);
}
#command-menu.show {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.cm-header-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.cm-prompt {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 14px;
}
.cm-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
}
.cm-input::placeholder {
  color: var(--muted);
}
.cm-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 4px 0;
}
.cm-body::-webkit-scrollbar {
  display: none;
}
.cm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--fg);
  cursor: default;
}
.cm-item.active {
  background: rgba(158, 206, 106, 0.12);
  color: var(--primary);
}
.cm-item:hover {
  background: rgba(158, 206, 106, 0.06);
}
.cm-header {
  padding: 8px 14px 2px;
  font-size: 10px;
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.cm-key {
  color: var(--info);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.5px;
  min-width: 5ch;
}
.cm-label {
  color: var(--fg);
}
.cm-item.active .cm-label {
  color: var(--primary);
}
.cm-footer {
  display: flex;
  gap: 14px;
  padding: 6px 14px;
  border-top: 1px solid var(--border);
}
.cm-nav-hint {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

/* sequential menu — group items */
.cm-group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  cursor: pointer;
}
.cm-group-item.active {
  background: var(--hover);
}
.cm-group-item.active .cm-group-label {
  color: var(--primary);
}
.cm-group-label {
  color: var(--fg);
  font-size: 13px;
}
.cm-group-arrow {
  color: var(--muted);
  font-size: 13px;
}

/* read-only keybindings reference window — flat, wide layout */
.wbody.keybindings {
  width: 670px;
  max-width: 94vw;
  padding: 10px 0 12px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.wbody.keybindings::-webkit-scrollbar {
  display: none;
}
.wbody.keybindings .kb-lead {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 18px 12px;
  font-size: 11px;
  color: var(--muted);
}
.wbody.keybindings .kb-kc {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 1px 6px;
  background: rgba(187, 154, 247, 0.06);
  border: 1px solid rgba(187, 154, 247, 0.35);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
}
.wbody.keybindings .kb-kc .kc-l {
  color: #bb9af7;
}
.wbody.keybindings .kb-kc .kc-k {
  color: #c8b8ee;
}
.wbody.keybindings .kb-lead .kb-kc {
  font-size: 12px;
}
.wbody.keybindings .kb-lead .kc-colon,
.wbody.keybindings .kb-plus,
.wbody.keybindings .kb-arrow {
  color: #bb9af7;
  font-family: var(--font-mono);
}
.wbody.keybindings .kb-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 18px;
  padding: 0 18px;
}
.wbody.keybindings .kb-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wbody.keybindings .kb-group-header {
  padding: 8px 0 3px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #bb9af7;
}
.wbody.keybindings .kb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}
.wbody.keybindings .kb-desc {
  color: var(--fg);
  font-size: 12px;
}
@media (max-width: 640px) {
  .wbody.keybindings .kb-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .folders {
    display: none;
  }
}

/* error states */
.proj-err,
.exp-err {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: var(--error);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* ─── Responsive ─── */
@media (max-width: 700px) {
  .wbody.projects {
    width: 100vw;
    flex-direction: column;
  }
  .proj-list {
    flex: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 40vh;
  }
  .proj-detail {
    padding: 14px 16px;
  }

  .wbody.contact {
    width: 100vw;
  }

  .wbody.term {
    width: 100vw;
  }

  .wbody.api {
    width: 100vw;
    flex-direction: column;
  }

  .wbody.about {
    min-width: 0;
    width: 100vw;
  }

  .wbody.experience {
    width: 100vw;
    min-width: 0;
  }

  .window {
    min-width: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .topbar {
    padding: 0 8px;
    font-size: 11px;
  }
  .topbar .brand {
    font-size: 11px;
  }

  .toast {
    width: 200px;
    right: 8px;
    top: 40px;
  }
}
