:root {
  --bg: #f5f4f7;
  --paper: #ffffff;
  --ink: #1b1b1f;
  --muted: #5a5966;
  --dim: #8b8a96;
  --line: #e6e4ec;
  --line-strong: #d4d1dc;
  --lilac: #d8cff0;
  --lilac-deep: #c4b6e6;
  --lilac-ink: #3d3456;
  --lilac-soft: #f4f0fb;
  --online: #2f7d55;
  --offline: #c25648;
  --r: 12px;
  --rs: 8px;
  --shadow: 0 1px 2px rgba(30, 24, 50, 0.04), 0 10px 30px rgba(30, 24, 50, 0.05);
  --font: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(1200px 480px at 50% -120px, rgba(196, 182, 230, 0.28), transparent 60%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
main { flex: 1; }

.wrap { width: min(1280px, calc(100% - 56px)); margin: 0 auto; }

header.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 244, 247, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(160deg, #eee8fa 0 46%, var(--lilac-deep) 46% 100%);
  border: 1px solid var(--lilac-deep);
}
.brand b {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand small {
  display: block;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.2em;
  margin-top: -1px;
}
nav.links { display: flex; gap: 4px; }
nav.links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--rs);
}
nav.links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
nav.links a.on { color: var(--lilac-ink); background: var(--paper); box-shadow: var(--shadow); }

.btn {
  border: 1px solid var(--lilac-deep);
  background: var(--lilac);
  color: var(--lilac-ink);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--rs);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--lilac-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.btn-ghost {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--rs);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-ghost:hover { background: #fafafc; }
.menu-btn {
  display: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--rs);
  padding: 7px 12px;
  cursor: pointer;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rs);
  padding: 4px 12px 4px 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--lilac-ink);
  background: var(--lilac);
  flex-shrink: 0;
}
.avatar.lg { width: 42px; height: 42px; font-size: 16px; border-radius: 10px; }

.hero { padding: 64px 0 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  letter-spacing: 0.16em;
  font-size: 12px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 4px rgba(47, 125, 85, 0.14);
}
.dot.off { background: var(--offline); box-shadow: 0 0 0 4px rgba(194, 86, 72, 0.14); }
h1 {
  font-weight: 700;
  font-size: clamp(48px, 5.6vw, 76px);
  line-height: 1;
  margin: 14px 0 18px;
  letter-spacing: -0.045em;
}
.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 26px;
}

.ip-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(460px, 100%);
  margin-bottom: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow);
}
.ip-box code {
  flex: 1;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--rs);
  padding: 6px 12px;
  color: var(--dim);
  font-size: 13px;
}
.chip strong { color: var(--ink); font-weight: 600; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
}
.status-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.status-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.pill {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  background: #f4f3f7;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}
.pill.pin { background: var(--lilac-soft); color: var(--lilac-ink); border-color: #e0d8f2; }
.bar {
  margin: 16px 0 8px;
  height: 6px;
  background: #efeef3;
  border-radius: 99px;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lilac), var(--lilac-deep));
  transition: width 0.6s ease;
}
.nums { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.nums b { color: var(--ink); font-weight: 600; }
.motd {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  min-height: 1.6em;
}
.stat-list { display: grid; gap: 0; }
.stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.stat-list div:last-child { border-bottom: none; padding-bottom: 0; }
.stat-list div:first-child { padding-top: 0; }
.stat-list span { color: var(--dim); }
.stat-list b { font-weight: 600; }
.live-card .stat-list.compact { margin-top: 14px; }
.live-card .stat-list.compact div:first-child { padding-top: 12px; border-top: 1px solid var(--line); }

section { padding: 18px 0 4px; }
.sec-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 16px;
}
h2 {
  font-weight: 700;
  font-size: 26px;
  margin: 0;
  letter-spacing: -0.03em;
}
.sec-title p { margin: 0; color: var(--dim); font-size: 13px; }
.sec-title a { color: var(--lilac-ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.sec-title.tight { margin-top: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.card .mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--rs);
  background: var(--lilac-soft);
  color: var(--lilac-ink);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.split {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.page-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.panel-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}
.callout p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.callout .hint { color: var(--dim); font-size: 13px; margin-bottom: 16px; }
.flash {
  margin: 16px auto 0;
  background: var(--lilac-soft);
  border: 1px solid #e0d8f2;
  color: var(--lilac-ink);
  border-radius: var(--rs);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}
.form-error {
  background: #fdecea;
  color: #8a2f24;
  border-radius: var(--rs);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}
.ticket {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.ticket-top { display: flex; gap: 6px; margin-bottom: 8px; }
.ticket h3 { margin: 0 0 6px; font-size: 15px; }
.ticket p { margin: 0; color: var(--muted); font-size: 14px; white-space: pre-wrap; }
.ticket .who { margin-top: 8px; color: var(--dim); font-size: 12px; }
.status-form { margin-top: 10px; }
.status-form select {
  border: 1px solid var(--line-strong);
  background: #fafafc;
  border-radius: var(--rs);
  padding: 6px 10px;
  font-size: 13px;
}
.pill.kind-bug { background: #fdecea; color: #8a2f24; border-color: #f3cfc8; }
.pill.kind-suggest { background: var(--lilac-soft); color: var(--lilac-ink); border-color: #e0d8f2; }
.pill.kind-lag { background: #fff4e5; color: #8a5a18; border-color: #f3dfbc; }
.pill.status-open { background: #fff4e5; color: #8a5a18; }
.pill.status-looking { background: #eaf2ff; color: #2d4f8a; }
.pill.status-done { background: #e8f6ee; color: #246b45; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.step em {
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #9a88cc;
}
.step h3 { margin: 8px 0 6px; font-size: 16px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; }
.rules li {
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14px;
  box-shadow: var(--shadow);
}
.rules b { color: var(--ink); font-weight: 600; }

.preview-list { display: grid; gap: 10px; }
.preview-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.preview-item:hover { border-color: var(--lilac-deep); }
.preview-item h4 { margin: 0; font-size: 15px; font-weight: 600; }
.preview-item p { margin: 2px 0 0; color: var(--dim); font-size: 12px; }
.preview-item .count { color: var(--dim); font-size: 12px; font-weight: 600; }

.page-head { padding: 40px 0 8px; }
.page-head h1 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 0 0 8px;
}
.page-head .lede { margin-bottom: 0; font-size: 15px; }
.forum-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 16px;
}
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  border-radius: var(--rs);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.cat:hover { color: var(--ink); }
.cat.on {
  background: var(--lilac);
  border-color: var(--lilac-deep);
  color: var(--lilac-ink);
}

.composer {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 16px;
}
.composer.open { display: block; }
.composer h3 { margin: 0 0 16px; font-size: 16px; }

.thread-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 18px;
  text-decoration: none;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.thread-row:hover { border-color: var(--lilac-deep); }
.thread-row h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.thread-row .meta { margin-top: 4px; color: var(--dim); font-size: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.thread-row .stat {
  text-align: right;
  color: var(--dim);
  font-size: 12px;
  min-width: 60px;
}
.thread-row .stat b { display: block; color: var(--ink); font-size: 16px; font-weight: 700; }

.post {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 12px;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.post-head .who { font-weight: 700; font-size: 14px; }
.post-head .when { color: var(--dim); font-size: 12px; }
.post-body {
  color: var(--ink);
  font-size: 15px;
  white-space: pre-wrap;
  word-break: break-word;
}
.post.op h2 {
  font-size: 26px;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.crumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 13px;
  margin: 28px 0 16px;
}
.crumb a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumb a:hover { color: var(--ink); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fafafc;
  border-radius: var(--rs);
  padding: 11px 13px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--lilac-deep);
  background: var(--paper);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { margin: 12px 0 0; color: var(--dim); font-size: 12px; }
.empty {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  padding: 36px 20px;
  text-align: center;
  color: var(--dim);
}
.empty b { color: var(--ink); display: block; margin-bottom: 4px; }

.auth-card {
  width: min(440px, 100%);
  margin: 56px auto 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 30px 28px 26px;
}
.auth-card h1 { font-size: 28px; margin: 0 0 6px; }
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #f1f0f5;
  border-radius: var(--rs);
  padding: 4px;
  margin: 18px 0 20px;
}
.tabs a, .tabs button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 8px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.tabs a.on, .tabs button.on { background: var(--paper); color: var(--ink); box-shadow: 0 2px 8px rgba(30, 24, 50, 0.06); }
.profile-row { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; }

.console-out {
  background: #1b1b1f;
  color: #e7e4f0;
  border-radius: var(--rs);
  padding: 14px 16px;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 16px;
}
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.row-actions { display: flex; gap: 6px; }
.btn-ghost.danger-btn:hover { background: #fdecea; color: #8a2f24; border-color: #f3cfc8; }
.danger {
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
}
.danger:hover { color: var(--offline); }

.locked {
  background: var(--lilac-soft);
  border: 1px solid #e0d8f2;
  border-radius: var(--rs);
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
}
.locked a { color: var(--lilac-ink); font-weight: 600; text-decoration: none; }

footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  color: var(--dim);
  font-size: 12px;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #f7f6f8;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--rs);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 40;
}
body.c550 {
  --c-bg: #070b14;
  --c-panel: rgba(14, 24, 42, 0.72);
  --c-line: rgba(120, 170, 220, 0.22);
  --c-ink: #d7e6f5;
  --c-dim: #7f97b3;
  --c-cyan: #7fd3ff;
  --c-amber: #e7b15a;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(80, 140, 210, 0.16), transparent 60%),
    linear-gradient(180deg, #0b1322, var(--c-bg));
  color: var(--c-ink);
}
body.c550 header.nav {
  background: rgba(7, 11, 20, 0.85);
  border-bottom-color: var(--c-line);
}
body.c550 .brand b,
body.c550 nav.links a,
body.c550 h1, body.c550 h2, body.c550 h3 { color: var(--c-ink); }
body.c550 nav.links a { color: var(--c-dim); }
body.c550 nav.links a:hover { color: var(--c-ink); background: rgba(127, 211, 255, 0.06); }
body.c550 nav.links a.on { color: var(--c-cyan); background: rgba(127, 211, 255, 0.08); box-shadow: none; }
body.c550 .brand small, body.c550 .lede, body.c550 .sec-title p { color: var(--c-dim); }
body.c550 .btn {
  background: transparent;
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  letter-spacing: 0.08em;
}
body.c550 .btn:hover { background: rgba(127, 211, 255, 0.12); }
body.c550 .btn-ghost {
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-ink);
}
body.c550 .btn-ghost:hover { background: rgba(127, 211, 255, 0.08); }
body.c550 .user-chip { background: transparent; border-color: var(--c-line); color: var(--c-ink); }
body.c550 footer { border-top-color: var(--c-line); }
body.c550 .foot, body.c550 .foot a { color: var(--c-dim); }

.c550-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 32px 0 18px;
  border-bottom: 1px solid var(--c-line);
}
.c550-head h1 {
  font-size: 22px;
  letter-spacing: 0.28em;
  font-weight: 600;
  margin: 0;
}
.c550-head .tag {
  color: var(--c-amber);
  letter-spacing: 0.32em;
  font-size: 12px;
}
.c550-head .sub { color: var(--c-dim); font-size: 13px; margin: 6px 0 0; letter-spacing: 0.04em; }
.c550-alert {
  margin-top: 16px;
  border: 1px solid rgba(231, 177, 90, 0.5);
  color: var(--c-amber);
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.c550-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 18px;
  margin-top: 18px;
}
.c550-panel {
  border: 1px solid var(--c-line);
  background: var(--c-panel);
  border-radius: 4px;
  padding: 18px;
  position: relative;
}
.c550-panel::before {
  content: "";
  position: absolute;
  top: -1px; left: 14px;
  width: 42px; height: 2px;
  background: var(--c-cyan);
}
.c550-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--c-dim);
  letter-spacing: 0.22em;
  font-size: 12px;
  margin: 0 0 14px;
}
.c550-label b { color: var(--c-ink); font-weight: 600; letter-spacing: 0.16em; }

body.c550 .console-out {
  background: rgba(4, 8, 16, 0.8);
  border: 1px solid var(--c-line);
  border-radius: 2px;
  color: var(--c-cyan);
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  margin: 0 0 14px;
}
body.c550 .console-out .dim { color: var(--c-dim); }
body.c550 .field input, body.c550 .field select {
  background: rgba(4, 8, 16, 0.6);
  border-color: var(--c-line);
  color: var(--c-ink);
  border-radius: 2px;
}
body.c550 .field input:focus { border-color: var(--c-cyan); background: rgba(4, 8, 16, 0.8); }
body.c550 .field label { color: var(--c-dim); letter-spacing: 0.12em; font-size: 11px; }
body.c550 .quick { gap: 6px; }
body.c550 .quick .btn-ghost { font-size: 12px; letter-spacing: 0.04em; padding: 6px 10px; }

.c550-cmd { display: flex; gap: 8px; }
.c550-cmd .field { flex: 1; margin: 0; }
.c550-prompt {
  display: flex;
  align-items: center;
  color: var(--c-amber);
  font-family: "Cascadia Code", "Consolas", monospace;
  padding-right: 2px;
}

.c550-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
  font-size: 13px;
}
.c550-row:last-child { border-bottom: 0; padding-bottom: 0; }
.c550-row .meta { color: var(--c-dim); font-size: 12px; }
.c550-row a { color: var(--c-ink); text-decoration: none; }
.c550-row a:hover { color: var(--c-cyan); }
.c550-actions { display: flex; gap: 6px; }
.c550-actions button {
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-dim);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 2px;
  cursor: pointer;
}
.c550-actions button:hover { color: var(--c-cyan); border-color: var(--c-cyan); }
.c550-actions .del:hover { color: #ff8d7d; border-color: #ff8d7d; }

body.c550 .form-note { color: var(--c-dim); }
body.c550 .empty { background: transparent; border-color: var(--c-line); color: var(--c-dim); border-radius: 2px; }
body.c550 .empty b { color: var(--c-ink); }
body.c550 .pill { background: transparent; border-color: var(--c-line); color: var(--c-amber); border-radius: 2px; }

.c550-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.c550-stat div {
  border: 1px solid var(--c-line);
  padding: 12px;
  border-radius: 2px;
}
.c550-stat span { display: block; color: var(--c-dim); font-size: 11px; letter-spacing: 0.16em; }
.c550-stat b { font-size: 20px; font-weight: 600; letter-spacing: 0.04em; }

@media (max-width: 980px) {
  .c550-grid { grid-template-columns: 1fr; }
  .c550-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .page-head-row { align-items: flex-start; flex-direction: column; }
  nav.links { display: none; }
  nav.links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(245, 244, 247, 0.98);
    padding: 8px 24px 18px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
  }
  body.c550 nav.links.open { background: rgba(7, 11, 20, 0.98); border-bottom-color: var(--c-line); }
  .menu-btn { display: block; }
  .nav-actions .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .cards, .steps, .rules, .row2, .split { grid-template-columns: 1fr; }
  .wrap { width: min(1280px, calc(100% - 32px)); }
  h1 { font-size: 44px; }
  .thread-row, .preview-item { grid-template-columns: 36px 1fr; }
  .thread-row .stat { display: none; }
}
