/* mcp.kituwa.com — Nightdesk
   Graphite console, lime signal, mono labels. Plain CSS, no build step.
   Structure and type scale follow the Nightdesk layout used by tools.kituwa.com. */

:root {
  --bg: #0b0d0e;
  --panel: #111314;
  --surface: #1a1d1f;
  --surface-2: #0d0f10;
  --line: #262b2d;
  --line-soft: #1c2022;
  --ink: #f1f4f5;
  --muted: #9aa4a7;
  --soft: #66716f;
  --lime: #c6f24e;
  --lime-dim: #9dc23c;
  --cyan: #6ee7ff;
  --amber: #ffb020;
  --red: #ff5c5c;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1220px;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: #0b0d0e; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: #0b0d0e; padding: 10px 16px;
  border-radius: 999px; font-weight: 650;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ nav */
.site-nav {
  display: flex; align-items: center; gap: 26px;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 34px;
  background: var(--lime); color: #0b0d0e;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: -.04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font-family: var(--font-display); font-size: 15px; letter-spacing: -.02em; }
.brand-text span {
  font-family: var(--font-mono); font-size: 9px; color: var(--soft);
  text-transform: uppercase; letter-spacing: .14em; margin-top: 3px;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-links a { font-size: 13px; color: var(--muted); white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-links a.on { color: var(--lime); }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 38px;
  padding: 0 14px; border-radius: 999px;
  border: 1px solid #2b3a28; background: #111a0e; color: var(--lime);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
}
.nav-toggle { display: none; }

/* -------------------------------------------------------------- typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 9px; line-height: 1;
  letter-spacing: .16em; text-transform: uppercase; color: var(--soft);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -.03em; }
h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; }
h1 em { font-style: normal; color: var(--lime); }
h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 650; letter-spacing: -.03em; }
h3 { font-size: 15px; font-weight: 650; letter-spacing: -.015em; }
h4 { font-size: 12px; font-weight: 650; }
p { margin: 0; }
.lede { color: var(--muted); font-size: 16px; max-width: 62ch; line-height: 1.6; }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.wrap-text { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- layout */
.section { padding: 44px 0; }
.section-sm { padding: 28px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 22px;
}
.section-head .meta { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line-soft); margin: 4px 0; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 54px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.16fr .84fr; gap: 44px; align-items: center; }
.hero h1 { max-width: 15ch; margin-top: 16px; }
.hero .lede { margin-top: 18px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero-panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #151819, #0f1112);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 30px 80px -60px rgba(198, 242, 78, .35);
}
.hero-panel .mono-head {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--soft);
}
.hero-list { display: flex; flex-direction: column; gap: 0; }
.hero-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px;
}
.hero-list a:last-child { border-bottom: 0; }
.hero-list a:hover b { color: var(--lime); }
.hero-list b { font-weight: 550; }
.hero-list span { font-family: var(--font-mono); font-size: 10px; color: var(--soft); }

/* ------------------------------------------------------------- stat strip */
.stats-band {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line); margin-top: 34px;
}
.stat { padding: 20px 22px; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: 32px; line-height: 1; letter-spacing: -.045em; }
.stat span {
  display: block; margin-top: 7px; font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft);
}

/* ------------------------------------------------------------------- kpi */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #151819, #101213);
  padding: 15px 16px 14px; min-width: 0;
}
.kpi-top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.kpi b { display: block; font-family: var(--font-display); font-size: 32px; line-height: 1; letter-spacing: -.045em; margin-top: 10px; }
.kpi .delta { margin-top: 7px; font-size: 11px; color: var(--muted); }
.kpi .delta.ok { color: var(--lime); }
.kpi .delta.warn { color: var(--amber); }
.kpi .delta.bad { color: var(--red); }

/* ----------------------------------------------------------------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--muted); font-size: 12px; white-space: nowrap; cursor: pointer;
}
.chip:hover { border-color: #3a4a35; color: var(--ink); }
.chip.on { border-color: #3a4a35; background: #151d17; color: var(--lime); }
.chip .n { font-family: var(--font-mono); font-size: 9.5px; color: var(--soft); }
.chip.on .n { color: var(--lime-dim); }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search {
  margin-left: auto; min-height: 38px; min-width: 220px; flex: 1 1 240px; max-width: 320px;
  padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; font-size: 12.5px;
}
.search::placeholder { color: #545d5f; }

/* ----------------------------------------------------------------- cards */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 14px; }
.mcp-card {
  display: flex; flex-direction: column; gap: 11px; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 16px 17px 14px;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.mcp-card:hover { border-color: #3a4a35; background: #141817; transform: translateY(-1px); }
.mcp-card.featured { border-color: #35452b; background: linear-gradient(180deg, #141a13, #111314); }
.mcp-card-head { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.glyph {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: #1a2021; border: 1px solid #2b3334;
  font-family: var(--font-mono); font-size: 10px; color: var(--lime);
  letter-spacing: .02em;
}
.mcp-card-head .titles { min-width: 0; }
.mcp-card-head h3 { font-size: 14.5px; line-height: 1.2; }
.mcp-card-head .sub {
  display: block; margin-top: 4px;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--soft);
}
.mcp-card .tagline { font-size: 12.5px; color: var(--muted); min-height: 36px; }
.mcp-card .footrow {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 10px;
}
.mcp-card .footrow .meta { font-family: var(--font-mono); font-size: 9.5px; color: var(--soft); }
.card-link { font-size: 12px; color: var(--lime); }
.card-link:hover { text-decoration: underline; }
.group-head {
  display: flex; align-items: baseline; gap: 10px; margin: 32px 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.group-head h2 { font-size: 17px; }
.group-head .count { font-family: var(--font-mono); font-size: 10px; color: var(--soft); }
.group-head .note { font-size: 12px; color: var(--soft); margin-left: auto; max-width: 46ch; text-align: right; }

/* ---------------------------------------------------------------- signals */
.st {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; border-radius: 999px; padding: 4px 8px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.ok { color: var(--lime); border-color: #2b3a28; background: #111a0e; }
.st.warn { color: var(--amber); border-color: #3d3320; background: #1a150c; }
.st.bad { color: var(--red); border-color: #3d2323; background: #1a0f0f; }
.st.unknown, .st.idle { color: var(--soft); }
.st.info { color: var(--cyan); border-color: #22343d; background: #0d171c; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); display: inline-block; }
.dot.ok { background: var(--lime); box-shadow: 0 0 8px rgba(198,242,78,.5); }
.dot.warn { background: var(--amber); }
.dot.bad { background: var(--red); }
.transport {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; color: var(--muted);
}
.transport.http { color: var(--cyan); border-color: #22343d; }

/* ---------------------------------------------------------------- panels */
.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; min-width: 0;
}
.panel.tight { padding: 14px 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head .meta { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr); gap: 16px; align-items: start; }
.kv { display: flex; flex-direction: column; }
.kv-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.kv-row:last-child { border-bottom: 0; }
.kv-row span { color: var(--soft); }
.kv-row b { color: var(--ink); font-weight: 550; font-family: var(--font-mono); font-size: 10.5px; text-align: right; overflow-wrap: anywhere; }

/* ----------------------------------------------------------------- table */
.tablewrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
table.data caption {
  caption-side: top; text-align: left; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--soft);
  padding: 9px 12px; border-bottom: 1px solid var(--line-soft);
}
table.data th {
  text-align: left; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--soft); font-weight: 500; padding: 9px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); color: var(--muted); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { color: var(--ink); font-weight: 550; }
table.data tbody tr:hover td { background: #121617; }
table.data td.num, table.data th.num { text-align: right; font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
table.data td .tname { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink); white-space: nowrap; }
table.data td.wrap { white-space: normal; overflow-wrap: anywhere; }
.empty {
  padding: 22px 16px; border: 1px dashed #2b313b; border-radius: var(--radius-sm);
  color: var(--soft); font-size: 12px; text-align: center;
}
.empty b { display: block; color: var(--muted); font-weight: 550; margin-bottom: 4px; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 9px 16px; border-radius: 999px; border: 1px solid transparent;
  font-size: 12.5px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--lime); color: #0b0d0e; }
.btn.primary:hover { background: #d7ff6b; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 11px; }
.btn.block { width: 100%; }
.copy-btn {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 4px 10px; font-size: 10px; cursor: pointer; min-height: 30px;
}
.copy-btn:hover { color: var(--lime); border-color: #3a4a35; }

/* ----------------------------------------------------------------- forms */
input[type=search], input[type=text] {
  min-height: 40px; padding: 8px 12px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-size: 13px;
}
input::placeholder { color: #545d5f; }
input:focus { border-color: #3a4a35; outline: 2px solid rgba(198,242,78,.3); outline-offset: 1px; }

/* ------------------------------------------------------------------- pre */
.pre {
  font-family: var(--font-mono); font-size: 11px; line-height: 1.65;
  background: #090b0c; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; overflow-x: auto; color: #cfd8d2; margin: 0; white-space: pre;
}

/* -------------------------------------------------------------- callouts */
.banner {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 13px; font-size: 12.5px; display: flex; gap: 9px; align-items: flex-start;
}
.banner.ok { border-color: #2b3a28; background: #101a0d; color: #d9ffb0; }
.banner.warn { border-color: #3d3320; background: #1a150c; color: #ffd88a; }
.banner.bad { border-color: #3d2323; background: #1a0f0f; color: #ffb3b3; }
.banner.info { border-color: #22343d; background: #0d171c; color: #b7f0ff; }
.banner code {
  font-family: var(--font-mono); font-size: 10.5px;
  background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px;
}

/* ------------------------------------------------------------------- doc */
.doc-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 30px; align-items: start; }
.doc-nav { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 20px; }
.doc-nav a { padding: 6px 9px; border-radius: 7px; font-size: 12px; color: var(--muted); }
.doc-nav a:hover { background: #151d17; color: var(--lime); }
.doc-body { display: flex; flex-direction: column; gap: 18px; max-width: 820px; min-width: 0; }
.doc-body h2 { font-size: 20px; }
.doc-body h3 { font-size: 14px; margin-top: 2px; }
.doc-body p, .doc-body li { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body ul, .doc-body ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc-body code {
  font-family: var(--font-mono); font-size: 11px; background: #0b0e10;
  border: 1px solid var(--line-soft); border-radius: 4px; padding: 1px 5px; color: #dbe5df;
}
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.legend-item { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 11px 12px; }
.legend-item b { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.legend-item span { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }

/* --------------------------------------------------------------- feature */
.feature-band {
  border: 1px solid #35452b; border-radius: 18px; padding: 24px;
  background: radial-gradient(700px 200px at 20% 0%, rgba(198,242,78,.10), transparent 70%), linear-gradient(180deg, #131715, #0e1011);
}
.feature-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: center; }
.motion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.motion {
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 13px;
  background: #0e1112; min-width: 0;
}
.motion b { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.motion p { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.demo {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #090b0c; overflow: hidden;
}
.demo-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid var(--line); background: #0d1011;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--soft); flex-wrap: wrap;
}
.demo-bar .right { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
#demo-canvas, #map-canvas, #replay-canvas { width: 100%; height: auto; display: block; background: #090b0c; }
.demo-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 9px; color: var(--soft); flex-wrap: wrap;
}

/* ---------------------------------------------------------------- console */
.shell-top {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.shell-top .crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--soft); min-width: 0; }
.shell-top .crumbs b { color: var(--ink); font-weight: 550; }
.shell-top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.operator { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px; color: var(--ink);
}
.logout { margin: 0; }
.logout button {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 7px 11px; font-size: 11px; cursor: pointer; min-height: 36px;
}
.logout button:hover { color: var(--ink); border-color: var(--muted); }
.console-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr); gap: 16px; align-items: start; }
.map-shell { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #090b0c; overflow: hidden; }
.map-foot {
  display: flex; gap: 14px; flex-wrap: wrap; padding: 8px 11px;
  border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 9px; color: var(--soft);
}
.readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.readout .cell { border: 1px solid var(--line-soft); border-radius: 9px; padding: 9px 11px; background: var(--surface-2); min-width: 0; }
.readout .cell span { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.readout .cell b { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 19px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.event-log { display: flex; flex-direction: column; gap: 0; max-height: 260px; overflow-y: auto; }
.event { display: grid; grid-template-columns: 74px 84px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; color: var(--muted); }
.event:last-child { border-bottom: 0; }
.event .t, .event .k { font-family: var(--font-mono); font-size: 9.5px; color: var(--soft); }
.event .k { color: var(--lime-dim); text-transform: uppercase; letter-spacing: .06em; }
.event .d { overflow-wrap: anywhere; }
.mini-list { display: flex; flex-direction: column; gap: 0; }
.mini-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.mini-list a:last-child { border-bottom: 0; }
.mini-list a:hover b { color: var(--lime); }
.mini-list b { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.mini-list span { font-family: var(--font-mono); font-size: 9.5px; color: var(--soft); white-space: nowrap; }

/* ---------------------------------------------------------------- watchdog */
.state-strip {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.state-strip > div { padding: 14px 16px; border-right: 1px solid var(--line); min-width: 0; background: var(--panel); }
.state-strip > div:last-child { border-right: 0; }
.state-strip b { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: -.03em; }
.state-strip span { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.wd-h { font-size: 16px; margin: 26px 0 10px; }
.wd-list { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 18px; margin: 0; }
.wd-list dt { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); padding-top: 3px; }
.wd-list dd { margin: 0; font-size: 13px; color: var(--muted); }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.week-tile {
  border: 1px solid var(--line-soft); border-radius: 9px; padding: 9px 8px;
  background: var(--surface-2); text-align: center; min-width: 0;
}
.week-tile b { display: block; font-family: var(--font-display); font-size: 16px; color: var(--soft); }
.week-tile span { display: block; font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-top: 2px; }
.week-tile em { display: block; font-style: normal; font-family: var(--font-mono); font-size: 7.5px; color: #4a5354; margin-top: 4px; }
.checks { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.check {
  display: grid; grid-template-columns: 10px 170px minmax(0, 1fr) 84px;
  gap: 10px; align-items: start; padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft); background: var(--panel); min-width: 0;
}
.check:last-child { border-bottom: 0; }
.check .dot { margin-top: 5px; }
.check b { font-size: 12.5px; font-weight: 600; }
.check .detail { font-size: 12px; color: var(--muted); min-width: 0; }
.check .evidence { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 9.5px; color: var(--soft); overflow-wrap: anywhere; }
.check em { font-style: normal; font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); text-align: right; border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px; justify-self: end; }
.check em.ok { color: var(--lime); }
.check em.warn, .check em.degraded, .check em.unknown { color: var(--amber); }
.check em.bad, .check em.down { color: var(--red); }
.check .lat { display: block; margin-top: 2px; font-size: 9px; }
.wd-note { font-size: 12.5px; color: var(--soft); line-height: 1.65; max-width: 78ch; }

/* ----------------------------------------------------------------- login */
.login-wrap {
  min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 48px 0; position: relative;
}
.login-card {
  width: min(430px, 100%); background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.login-card h1 { font-size: 26px; letter-spacing: -.035em; }
.login-card p { font-size: 13px; color: var(--muted); }
.login-brand { display: flex; align-items: center; gap: 11px; }
.login-card .meta { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.login-foot {
  display: flex; justify-content: space-between; gap: 10px; font-size: 10px;
  color: var(--soft); border-top: 1px solid var(--line-soft); padding-top: 13px; flex-wrap: wrap;
}

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 44px; padding: 30px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(2, .7fr); gap: 28px; }
.footer-brand p { max-width: 40ch; color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.footer-col h4 {
  margin: 0 0 10px; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--soft); font-weight: 500;
}
.footer-col a { display: block; margin: 6px 0; font-size: 12.5px; color: var(--muted); }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); margin-top: 28px; padding-top: 14px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--soft);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--lime); }
.wd-foot { display: inline-flex; align-items: center; gap: 7px; }
.wd-foot .dot { width: 6px; height: 6px; }
.wd-foot.ok { color: var(--lime); }
.wd-foot.warn, .wd-foot.degraded { color: var(--amber); }
.wd-foot.bad, .wd-foot.down { color: var(--red); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1040px) {
  .hero-grid, .panel-grid, .console-grid, .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .state-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .state-strip > div:nth-child(3) { border-right: 0; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links { gap: 10px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .hero { padding: 34px 0 18px; }
  h1 { font-size: clamp(30px, 9vw, 42px); }
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .state-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .state-strip > div { border-bottom: 1px solid var(--line); }
  .state-strip > div:nth-child(3) { border-right: 1px solid var(--line); }
  .state-strip > div:nth-child(2n) { border-right: 0; }
  .state-strip > div:last-child { border-bottom: 0; border-right: 1px solid var(--line); }
  .check { grid-template-columns: 10px minmax(0, 1fr) 70px; }
  .check .detail { grid-column: 2 / -1; }
  .motion-grid, .legend, .readout { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .group-head .note { display: none; }
  .search { margin-left: 0; max-width: none; }
  .wd-list { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .wd-list dt { padding-top: 8px; }
  .week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-text span { display: none; }
  .nav-links { margin-left: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 30px 0; }
  .feature-band { padding: 18px; }
  .login-card { padding: 22px 18px; }
}
@media (max-width: 420px) {
  .kpis, .stats-band { grid-template-columns: minmax(0, 1fr); }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .mcp-card:hover { transform: none; }
}
