/* ============================================================
   cs.aigeb.cn — CloudShell Terminal (Mobile)
   Design: Terminal CLI / Retro-Future / OLED Dark
   ============================================================ */

:root {
  --bg: #050505;
  --fg-primary: #33FF00;
  --fg-amber: #FFB000;
  --fg-muted: #1A3D1A;
  --fg-dim: #9BE58A;
  --fg-error: #FF3333;
  --border: #33FF00;
  --radius: 0px;
  --blink-duration: 500ms;
  --scanline-opacity: .05;
  --font-mono: 'JetBrains Mono', 'Courier New', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --glow: 0 0 10px rgba(51, 255, 0, .45);
  --panel: #0A0F0A;
}

/* ---------- reset & base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: var(--radius);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #000;
  color: var(--fg-primary);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--fg-primary);
  color: var(--bg);
}

/* 触屏设备：禁用普通文本点按选中/长按弹出复制菜单，保留输入框与代码块可选 */
@media (hover: none) and (pointer: coarse) {
  body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  input, textarea, select, pre, code, [contenteditable] {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
  }
}

a {
  color: var(--fg-primary);
  text-decoration: none;
}

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

/* global focus ring — amber for keyboard nav */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--fg-amber);
  outline-offset: 2px;
}

/* ---------- CRT scanline overlay ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(51, 255, 0, var(--scanline-opacity)) 0 1px,
    transparent 1px 3px
  );
  z-index: 9990;
}

/* ---------- blinking cursor ---------- */
.cursor {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  background: var(--fg-primary);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink var(--blink-duration) step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================================
   Phone shell — max-width 430px centered device frame
   ============================================================ */
.stage {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(51, 255, 0, .06), transparent 70%),
    #000;
  padding: 0;
}

.phone {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(51, 255, 0, .10);
  position: relative;
}

/* ---------- sticky head: statusbar + appbar ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, .97);
  border-bottom: 1px solid var(--border);
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--fg-muted);
}

.statusbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.beijing-clock {
  font-size: 12px;
  color: var(--fg-primary);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: .02em;
}

.statusbar .status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.statusbar svg {
  width: 15px;
  height: 15px;
  stroke: var(--fg-dim);
}

.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
}

.appbar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-primary);
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}

.appbar-title .prompt-user {
  color: var(--fg-muted);
  font-weight: 400;
}

.appbar-title .path {
  color: var(--fg-amber);
}

.appbar-actions {
  display: flex;
  gap: 4px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--fg-primary);
  cursor: pointer;
  transition: background .12s, color .12s;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.icon-btn:hover {
  border-color: var(--border);
  box-shadow: var(--glow);
}

.icon-btn:active {
  background: var(--fg-primary);
  color: var(--bg);
}

/* ---------- main ---------- */
main {
  flex: 1;
  padding: 16px 16px 104px;
}

.section {
  padding: 24px 0;
  border-bottom: 1px dashed var(--fg-muted);
}

.section:last-child {
  border-bottom: none;
}

.section-head {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--fg-amber);
  margin-bottom: 4px;
}

.section-head::before {
  content: "## ";
  color: var(--fg-muted);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 28px 0 32px;
  border-bottom: 1px dashed var(--fg-muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  text-wrap: balance;
  text-shadow: 0 0 18px rgba(51, 255, 0, .35);
}

.hero h1 .accent {
  color: var(--fg-amber);
}

.hero-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 34em;
  margin-bottom: 20px;
}

.hero-prompt {
  font-size: 14px;
  color: var(--fg-dim);
  background: var(--panel);
  border: 1px solid var(--fg-muted);
  border-left: 3px solid var(--fg-primary);
  padding: 10px 12px;
  margin-bottom: 24px;
  min-height: 44px;
  display: flex;
  align-items: center;
  overflow-x: auto;
}

.hero-prompt .dollar {
  color: var(--fg-amber);
  margin-right: 8px;
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-primary);
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, color .12s, box-shadow .12s, transform .08s;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn:hover {
  box-shadow: var(--glow);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--fg-primary);
  color: var(--bg);
  box-shadow: var(--glow);
}

.btn-primary:hover {
  background: #5aff2b;
  box-shadow: 0 0 16px rgba(51, 255, 0, .7);
}

/* press = instant inversion (terminal style) */
.btn-primary:active {
  background: var(--bg);
  color: var(--fg-primary);
}

.btn-secondary:hover {
  background: rgba(51, 255, 0, .12);
}

.btn-secondary:active {
  background: var(--fg-primary);
  color: var(--bg);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--fg-dim);
  padding: 8px 12px;
}

.btn-ghost:hover {
  color: var(--fg-amber);
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

/* bracketed link — [ label ] with generous hit area */
.link-bracket {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--fg-amber);
  transition: color .12s;
}

.link-bracket::before { content: "[ "; }
.link-bracket::after  { content: " ]"; }

.link-bracket:hover {
  color: var(--fg-primary);
  text-shadow: var(--glow);
}

/* ============================================================
   Badges / chips
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
  border: 1px solid;
}

.badge-green {
  color: var(--fg-primary);
  border-color: var(--fg-primary);
  background: rgba(51, 255, 0, .08);
}

.badge-amber {
  color: var(--fg-amber);
  border-color: var(--fg-amber);
  background: rgba(255, 176, 0, .08);
}

.badge-error {
  color: var(--fg-error);
  border-color: var(--fg-error);
  background: rgba(255, 51, 51, .08);
}

.badge-dim {
  color: var(--fg-dim);
  border-color: var(--fg-muted);
  background: transparent;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: currentColor;
  animation: blink 1.2s step-end infinite;
}

/* ============================================================
   Cards — vertical stack
   ============================================================ */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  border: 1px solid var(--border);
  background: rgba(51, 255, 0, .03);
  padding: 16px;
  transition: background .15s, box-shadow .15s, transform .15s;
}

.card:hover {
  background: rgba(51, 255, 0, .07);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fg-primary);
  color: var(--fg-primary);
  background: var(--panel);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-left: auto;
  flex-shrink: 0;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin-bottom: 4px;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg-dim);
  border: 1px solid var(--fg-muted);
}

/* ============================================================
   Controls demo — switches, buttons, badges
   ============================================================ */
.term-window {
  border: 1px solid var(--border);
  background: var(--panel);
}

.term-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--fg-muted);
  font-size: 13px;
  color: var(--fg-dim);
}

.term-titlebar::before {
  content: "● ● ●";
  color: var(--fg-muted);
  letter-spacing: 2px;
  font-size: 9px;
}

.term-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.term-line {
  font-size: 13px;
  color: var(--fg-dim);
}

.term-line .dollar {
  color: var(--fg-amber);
  margin-right: 8px;
}

.ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  border-bottom: 1px dashed var(--fg-muted);
  padding-bottom: 12px;
}

.ctrl-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ctrl-label {
  font-size: 14px;
  color: var(--fg-primary);
}

.ctrl-label small {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* switch */
.switch {
  font-family: inherit;
  background: transparent;
  border: 1px solid var(--fg-muted);
  padding: 10px;
  cursor: pointer;
  transition: border-color .12s;
}

.switch:hover {
  border-color: var(--border);
}

.switch-track {
  width: 48px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  transition: background .15s;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--fg-muted);
  transition: left .15s, background .15s, box-shadow .15s;
}

.switch[aria-checked="true"] .switch-track {
  background: rgba(51, 255, 0, .15);
}

.switch[aria-checked="true"] .switch-thumb {
  left: 23px;
  background: var(--fg-primary);
  box-shadow: var(--glow);
}

/* ============================================================
   Form
   ============================================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

.field label .req {
  color: var(--fg-amber);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--fg-muted);
  color: var(--fg-primary);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .12s, box-shadow .12s;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-dim) 50%),
    linear-gradient(135deg, var(--fg-dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-muted);
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--fg-primary);
  box-shadow: 0 0 0 2px rgba(51, 255, 0, .3), var(--glow);
}

.field .hint {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 6px;
}

/* terminal output for form feedback */
.term-output {
  border: 1px solid var(--fg-muted);
  background: var(--panel);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-dim);
  min-height: 44px;
}

.term-output .ok   { color: var(--fg-primary); }
.term-output .err  { color: var(--fg-error); }
.term-output .warn { color: var(--fg-amber); }

/* ============================================================
   Code / spec blocks
   ============================================================ */
.code-block {
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-dim);
  overflow-x: auto;
  white-space: pre;
}

.code-block .c-prompt { color: var(--fg-amber); }
.code-block .c-ok     { color: var(--fg-primary); }
.code-block .c-cmd    { color: var(--fg-primary); }
.code-block .c-dim    { color: var(--fg-muted); }

.spec-list {
  border: 1px solid var(--fg-muted);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px dashed var(--fg-muted);
}

.spec-row:last-child { border-bottom: none; }

.spec-row dt {
  color: var(--fg-dim);
  flex-shrink: 0;
}

.spec-row dd {
  color: var(--fg-primary);
  text-align: right;
  font-weight: 500;
}

/* breadcrumb */
.crumbs {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: var(--fg-amber);
  letter-spacing: .06em;
}

.crumbs:hover {
  color: var(--fg-primary);
}

.crumbs::before { content: "< "; }

/* FAQ details */
.faq-item {
  border: 1px solid var(--fg-muted);
  border-left: 3px solid var(--fg-primary);
  background: var(--panel);
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-primary);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "[+]";
  margin-left: auto;
  color: var(--fg-amber);
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "[-]";
}

.faq-item .faq-body {
  padding: 0 14px 14px;
  font-size: 14px;
  color: var(--fg-dim);
}

/* version log */
.log-timeline {
  border-left: 1px solid var(--fg-muted);
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.log-item { position: relative; }

.log-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--fg-primary);
}

.log-item .log-ver {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-amber);
}

.log-item .log-date {
  font-size: 13px;
  color: var(--fg-muted);
}

.log-item ul {
  margin: 8px 0 0 16px;
  font-size: 14px;
  color: var(--fg-dim);
}

.log-item li { margin-bottom: 4px; }

/* ordered steps */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  border: 1px solid var(--fg-muted);
  background: var(--panel);
  padding: 16px;
  counter-increment: step;
}

.step::before {
  content: "[step " counter(step) "]";
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-amber);
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.step p {
  font-size: 14px;
  color: var(--fg-dim);
}

.step .code-inline {
  color: var(--fg-primary);
  background: rgba(51, 255, 0, .08);
  border: 1px solid var(--fg-muted);
  padding: 1px 6px;
  font-size: 13px;
}

/* command table */
.cmd-list {
  border: 1px solid var(--fg-muted);
}

.cmd-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px dashed var(--fg-muted);
}

.cmd-row:last-child { border-bottom: none; }

.cmd-row .cmd-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-primary);
}

.cmd-row .cmd-name::before { content: "$ "; color: var(--fg-amber); }

.cmd-row .cmd-desc {
  font-size: 13px;
  color: var(--fg-dim);
}

/* ============================================================
   Footer
   ============================================================ */
.site-foot {
  border-top: 1px solid var(--border);
  padding: 20px 16px 16px;
  background: var(--panel);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 12px;
}

.foot-links a {
  font-size: 13px;
  color: var(--fg-dim);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}

.foot-links a:hover { color: var(--fg-primary); }

.foot-links .sep {
  color: var(--fg-muted);
  align-self: center;
}

.foot-status {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.foot-copy {
  font-size: 13px;
  color: var(--fg-dim);
}

/* ============================================================
   Tab bar — fixed bottom nav (aligned to phone frame)
   ============================================================ */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 428px;
  display: flex;
  background: rgba(5, 5, 5, .97);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(51, 255, 0, .08);
  z-index: 200;
}

.tab {
  flex: 1;
  min-height: 56px;
  padding: 6px 2px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--fg-dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  transition: background .12s, color .12s;
}

.tab svg {
  width: 20px;
  height: 20px;
}

.tab:hover {
  color: var(--fg-primary);
}

.tab.active {
  background: var(--fg-primary);
  color: var(--bg);
  text-shadow: none;
}

/* home indicator strip */
.home-indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--fg-primary);
  pointer-events: none;
}

.tab.active ~ .home-indicator {
  background: var(--bg);
}

/* ============================================================
   Drawer nav (hamburger)
   ============================================================ */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  z-index: 290;
  opacity: 0;
  transition: opacity .2s;
}

.drawer-backdrop.show {
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -102%);
  width: 100%;
  max-width: 428px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(51, 255, 0, .15);
  z-index: 300;
  transition: transform .22s ease-out;
}

.drawer.open {
  transform: translate(-50%, 0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fg-muted);
  font-size: 13px;
  color: var(--fg-amber);
}

.drawer-head .dollar { color: var(--fg-muted); margin-right: 8px; }

.drawer-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.drawer-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--fg-primary);
  border-left: 3px solid transparent;
  transition: background .12s, border-color .12s;
}

.drawer-links a:hover,
.drawer-links a[aria-current="page"] {
  background: rgba(51, 255, 0, .1);
  border-left-color: var(--fg-primary);
}

.drawer-links a .arrow { color: var(--fg-amber); }

.drawer-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--fg-muted);
  font-size: 13px;
  color: var(--fg-muted);
}

/* ============================================================
   Boot splash
   ============================================================ */
.boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: opacity .4s;
}

.boot-inner {
  width: 100%;
  max-width: 430px;
  padding: 24px 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--fg-dim);
}

.boot-inner .ok { color: var(--fg-primary); }
.boot-inner .amber { color: var(--fg-amber); }

.boot.hide {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   Motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .cursor,
  .badge-dot { animation: none; }

  .card,
  .btn,
  .switch-thumb,
  .drawer,
  .boot,
  .drawer-backdrop {
    transition: none;
  }

  .card:hover { transform: none; }
}
