:root {
  --bg: #0b1020;
  --panel: #11182c;
  --panel-2: #0d1425;
  --line: #6f7ea8;
  --text: #dce7ff;
  --muted: #96a7d1;
  --accent: #66b3ff;
  --accent-2: #ffe27a;
  --ok: #95f2a7;
  --danger: #ff9b9b;
  --shadow: rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Mono", "Cascadia Mono", "Consolas", "Courier New", monospace;
  background: linear-gradient(180deg, #060b16 0%, #0b1020 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
}
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 999;
  background: var(--accent-2); color: #000; padding: .5rem .75rem;
}
.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px;
}
.topbar, .footerbar, .window, .menu-box, .status-box {
  border: 2px solid var(--line);
  box-shadow: 0 8px 24px var(--shadow);
}
.topbar {
  background: var(--panel);
  padding: .65rem .9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.brand {
  display: flex;
  gap: .8rem;
  align-items: baseline;
  flex-wrap: wrap;
}
.brand__title { color: var(--accent-2); font-weight: 700; }
.brand__meta { color: var(--muted); font-size: .92rem; }
.topnav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.key {
  display: inline-flex;
  gap: .45rem;
  padding: .28rem .55rem;
  border: 1px solid var(--line);
  background: var(--panel-2);
  white-space: nowrap;
}
.key b { color: var(--accent); }
.layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
}
.menu-box, .status-box, .window, .footerbar {
  background: var(--panel);
}
.menu-box {
  padding: .8rem;
}
.menu-title, .status-title, .window-title, .footer-title {
  color: var(--accent-2);
  margin-bottom: .7rem;
}
.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.file-list li + li { margin-top: .35rem; }
.file-list a {
  display: flex;
  gap: .5rem;
  align-items: center;
  padding: .38rem .45rem;
  border: 1px solid transparent;
}
.file-list a:hover,
.file-list a[aria-current="page"] {
  border-color: var(--accent);
  background: #15203a;
  color: var(--accent-2);
}
.tag {
  min-width: 44px;
  color: var(--ok);
}
.sidebar-stack {
  display: grid;
  gap: 14px;
}
.status-box {
  padding: .8rem;
  color: var(--muted);
  font-size: .93rem;
}
.status-box p { margin: .35rem 0; }
.status-box .v { color: var(--text); }
.window {
  min-width: 0;
}
.window-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .9rem;
  border-bottom: 2px solid var(--line);
  background: linear-gradient(180deg, #13203b 0%, #10192d 100%);
}
.window-head small { color: var(--muted); }
.window-body {
  padding: 1rem 1rem 1.2rem;
}
.prompt {
  color: var(--ok);
  margin-bottom: .8rem;
}
h1, h2, h3 {
  margin: 0 0 .8rem 0;
  line-height: 1.25;
}
h1 { font-size: 1.9rem; color: var(--accent-2); }
h2 { font-size: 1.2rem; color: var(--accent); margin-top: 1.3rem; }
h3 { font-size: 1rem; color: var(--ok); margin-top: 1rem; }
p, li { line-height: 1.65; }
p { margin: .7rem 0; }
ul, ol { padding-left: 1.25rem; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.card {
  border: 1px solid var(--line);
  padding: .85rem;
  background: #0e1628;
}
.card h3 { margin-top: 0; }
.stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 1rem 0;
}
.stat {
  border: 1px solid var(--line);
  padding: .75rem;
  background: #0e1628;
}
.stat b { display: block; color: var(--accent-2); margin-bottom: .25rem; }
.codeblock {
  border: 1px solid var(--line);
  background: #0a1020;
  padding: .9rem;
  overflow-x: auto;
  white-space: pre-wrap;
}
.table-like {
  border: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.cell {
  padding: .65rem .8rem;
}
.cell:first-child {
  color: var(--muted);
  border-right: 1px solid var(--line);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}
.btn {
  display: inline-block;
  border: 1px solid var(--accent);
  padding: .55rem .8rem;
  background: #13203b;
}
.btn:hover { background: #1a2b4c; color: var(--accent-2); }
.footerbar {
  margin-top: 14px;
  padding: .75rem .9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}
.footerbar strong { color: var(--text); }
.kicker { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.notice {
  border-left: 3px solid var(--accent);
  padding-left: .8rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .grid-2, .stat-list { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .cell:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .topbar, .window-head, .footerbar { flex-direction: column; align-items: flex-start; }
}
