/* DonutSMP Wiki — styles */
:root {
  --bg: #120f16;
  --bg-2: #171320;
  --surface: #1c1824;
  --surface-2: #241f2e;
  --border: #2e2839;
  --border-strong: #3d3549;
  --text: #efeaf5;
  --text-2: #b9b0c6;
  --muted: #8d849b;
  --accent: #ff6fae;
  --accent-2: #ffb84d;
  --accent-ink: #1a0d14;
  --accent-soft: rgba(255, 111, 174, .13);
  --link: #ff8fc0;
  --ok: #58d19a;
  --ok-soft: rgba(88, 209, 154, .12);
  --warn: #ffb84d;
  --warn-soft: rgba(255, 184, 77, .12);
  --bad: #ff7a7a;
  --bad-soft: rgba(255, 122, 122, .12);
  --info: #7fb8ff;
  --info-soft: rgba(127, 184, 255, .12);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 14px;
  --topbar-h: 60px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Baloo 2", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
:root[data-theme="light"] {
  --bg: #fbf7f3;
  --bg-2: #f5efe9;
  --surface: #ffffff;
  --surface-2: #f6f0ea;
  --border: #e8dfd6;
  --border-strong: #d6cabe;
  --text: #1f1722;
  --text-2: #4d4354;
  --muted: #7a6f80;
  --accent: #d6336c;
  --accent-2: #c77a12;
  --accent-ink: #ffffff;
  --accent-soft: rgba(214, 51, 108, .09);
  --link: #c2255c;
  --ok: #18794e;
  --ok-soft: rgba(24, 121, 78, .1);
  --warn: #a15c00;
  --warn-soft: rgba(199, 122, 18, .12);
  --bad: #c92a2a;
  --bad-soft: rgba(201, 42, 42, .09);
  --info: #1c64c8;
  --info-soft: rgba(28, 100, 200, .09);
  --shadow: 0 10px 30px rgba(60, 40, 30, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 21px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--accent); font-weight: 800; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--border); border-radius: 10px; color: var(--text-2);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.menu-btn { display: none; }
:root[data-theme="dark"] .i-sun, :root[data-theme="light"] .i-moon { display: none; }

.search {
  position: relative; flex: 1; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--muted);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
kbd { font-family: var(--mono); font-size: 12px; padding: 1px 7px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; color: var(--text-2); background: var(--surface-2); }
.search-results {
  position: absolute; left: 0; right: 0; top: 46px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px; max-height: min(70vh, 520px); overflow: auto;
}
.sr-item { display: block; padding: 9px 11px; border-radius: 9px; color: var(--text); }
.sr-item:hover, .sr-item.active { background: var(--accent-soft); text-decoration: none; }
.sr-item strong { display: block; font-size: 14.5px; }
.sr-item small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.sr-item mark { background: none; color: var(--accent); font-weight: 600; }
.sr-cat { float: right; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sr-empty { padding: 14px; color: var(--muted); font-size: 14px; }

.topbar-right { display: flex; align-items: center; gap: 10px; }
.ip-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  font-family: var(--mono); font-size: 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text);
}
.ip-chip:hover { border-color: var(--accent); }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 268px minmax(0, 1fr) 230px; max-width: 1440px; margin: 0 auto; min-height: calc(100vh - var(--topbar-h)); }
.sidebar {
  position: sticky; top: var(--topbar-h); align-self: start;
  height: calc(100vh - var(--topbar-h)); overflow: auto;
  padding: 18px 12px 40px 18px; border-right: 1px solid var(--border);
}
.nav-group { margin-bottom: 18px; }
.nav-group h3 { margin: 0 0 6px; padding: 0 10px; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav-group a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.35; }
.nav-group a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-group a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

main { padding: 34px 44px 70px; min-width: 0; outline: none; }
.toc { position: sticky; top: var(--topbar-h); align-self: start; height: calc(100vh - var(--topbar-h)); overflow: auto; padding: 38px 18px 40px 6px; }
.toc h4 { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.toc a { display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--border); color: var(--text-2); font-size: 13.5px; line-height: 1.4; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }
.toc a.sub { padding-left: 24px; font-size: 13px; }
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 45; }

/* ---------- article ---------- */
.article { max-width: 820px; margin: 0 auto; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; }
.article h1 { font-size: clamp(32px, 4.4vw, 44px); margin: 0 0 8px; letter-spacing: -.01em; }
.lede { font-size: 18.5px; color: var(--text-2); margin: 0 0 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.active { color: var(--ok); background: var(--ok-soft); }
.badge.changed { color: var(--warn); background: var(--warn-soft); }
.badge.removed { color: var(--bad); background: var(--bad-soft); }
.badge.archive, .badge.community { color: var(--info); background: var(--info-soft); }

.prose h2 { font-size: 27px; margin: 38px 0 10px; padding-top: 4px; }
.prose h3 { font-size: 20px; margin: 26px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose code, .infobox code {
  font-family: var(--mono); font-size: .86em; padding: 2px 6px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-2); white-space: nowrap;
}
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 30px 0; }

.infobox {
  float: right; width: 290px; margin: 0 0 18px 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 14px;
}
.infobox h4 { margin: 0; padding: 11px 14px; font-family: var(--display); font-size: 16px; background: linear-gradient(90deg, var(--accent-soft), transparent); border-bottom: 1px solid var(--border); }
.infobox dl { margin: 0; }
.infobox div.row { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.infobox div.row:last-child { border-bottom: 0; }
.infobox dt { color: var(--muted); }
.infobox dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

.callout { display: flow-root; padding: 13px 16px; margin: 0 0 18px; border-radius: 12px; border: 1px solid var(--border); border-left: 4px solid var(--info); background: var(--info-soft); font-size: 15px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.callout.bad { border-left-color: var(--bad); background: var(--bad-soft); }
.callout.ok { border-left-color: var(--ok); background: var(--ok-soft); }
.callout b.t { display: block; margin-bottom: 3px; font-family: var(--display); font-size: 16.5px; }

.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }

ol.steps { list-style: none; padding: 0; counter-reset: s; }
ol.steps li { position: relative; padding: 2px 0 12px 44px; counter-increment: s; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; }

.filter { width: 100%; height: 42px; padding: 0 14px; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font: inherit; }
.filter:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.chips li { margin: 0; padding: 3px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 13.5px; font-family: var(--mono); }

.sources { margin-top: 40px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: 14px; }
.sources h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sources ul { margin: 0; padding-left: 20px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.pager a { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager small { display: block; color: var(--muted); font-size: 12px; }
.pager .next { text-align: right; grid-column: 2; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0 0 20px; padding: 0 0 0 8px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 20px 22px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.timeline time { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--accent-2); }
.timeline b { display: block; font-family: var(--display); font-size: 18px; }
.timeline p { margin: 2px 0 0; color: var(--text-2); font-size: 15px; }

/* ---------- home ---------- */
.home { max-width: 1020px; margin: 0 auto; }
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 54px 24px 44px; border: 1px solid var(--border); border-radius: 24px;
  background:
    radial-gradient(600px 260px at 15% -10%, var(--accent-soft), transparent 70%),
    radial-gradient(520px 260px at 90% 110%, var(--warn-soft), transparent 70%),
    var(--surface);
}
.hero img { width: 84px; height: 84px; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); margin: 8px 0 6px; }
.hero h1 b { color: var(--accent); }
.hero p { max-width: 620px; margin: 0 auto 22px; color: var(--text-2); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 15px; }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 0; }
.stat { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 42px 0 14px; }
.section-title h2 { margin: 0; font-size: 28px; }
.section-title a { font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card { display: block; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); transition: transform .15s, border-color .15s; }
.card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.card .ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); font-size: 20px; margin-bottom: 10px; }
.card h3 { margin: 0 0 4px; font-size: 20px; }
.card p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.card small { display: block; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.card.mini { padding: 14px 16px; }
.card.mini h3 { font-family: var(--font); font-size: 15.5px; font-weight: 600; }
.card.mini p { font-size: 13.5px; }
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; align-items: start; }
.panel { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.panel h3 { margin: 0 0 10px; font-size: 21px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 7px 0 7px 28px; border-bottom: 1px dashed var(--border); font-size: 15px; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: "✕"; position: absolute; left: 2px; top: 7px; color: var(--bad); font-weight: 700; }
.checklist li.yes::before { content: "✓"; color: var(--ok); }

.all-list { columns: 2; column-gap: 30px; padding: 0; list-style: none; }
.all-list li { break-inside: avoid; padding: 5px 0; }
.all-list small { color: var(--muted); }

/* ---------- tools ---------- */
.tool { padding: 18px; margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tool h3 { margin: 0 0 4px; }
.tool p.hint { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.tool .fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tool label { display: block; font-size: 13px; color: var(--text-2); }
.tool input, .tool select { width: 100%; height: 40px; margin-top: 4px; padding: 0 12px; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 9px; color: var(--text); font: inherit; }
.tool input:focus, .tool select:focus { outline: 0; border-color: var(--accent); }
.tool output { display: block; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 15.5px; }
.tool output b { font-family: var(--display); font-size: 20px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 80; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.footer { border-top: 1px solid var(--border); padding: 26px 24px 40px; text-align: center; color: var(--muted); font-size: 13.5px; }
.footer p { max-width: 760px; margin: 0 auto 8px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .shell { grid-template-columns: 250px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-grid; }
  .sidebar { position: fixed; z-index: 50; top: 0; left: 0; height: 100vh; width: 290px; background: var(--bg); transform: translateX(-100%); transition: transform .2s; padding-top: 22px; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  main { padding: 24px 16px 56px; }
  .brand span { display: none; }
  .live, .ip-chip span { display: none; }
  .ip-chip { padding: 0 11px; }
  .topbar { padding: 0 12px; gap: 10px; }
  .search kbd { display: none; }
  .infobox { float: none; width: 100%; margin: 0 0 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .all-list { columns: 1; }
  .hero { padding: 38px 16px 32px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
/* Refined wiki workspace */
:root {
  --bg: #101113; --bg-2: #141518; --surface: #18191d; --surface-2: #202126;
  --border: #2a2b31; --border-strong: #3a3b44; --text: #f1f0f3;
  --text-2: #b9b8c2; --muted: #9796a3; --accent: #f39fbe; --link: #f4a6c4;
  --accent-soft: rgba(243,159,190,.09); --accent-ink: #28131d;
  --display: 'Inter', system-ui, sans-serif; --topbar-h: 72px; --radius: 14px;
}
:root[data-theme="light"] {
  --bg: #f7f7f9; --bg-2: #eeeef2; --surface: #fff; --surface-2: #f0f0f5;
  --border: #e2e1e8; --border-strong: #cfced8; --text: #24222b; --text-2: #5c5968;
  --muted: #6c687b; --accent: #b8346c; --link: #ac2b60; --accent-ink: #fff;
  --accent-soft: rgba(184,52,108,.07);
}
[hidden] { display: none !important; }
.topbar { padding: 0 30px; gap: 24px; background: var(--bg); }
.brand { font-family: var(--font); font-size: 18px; letter-spacing: -.6px; }
.brand img { width: 34px; height: 34px; }
.search { max-width: 450px; height: 42px; border-radius: 9px; }
.search input { font-size: 13px; }
.workspace-tabs { position: sticky; top: var(--topbar-h); z-index: 35; display: flex; align-items: center; gap: 28px; min-height: 55px; padding: 0 30px; border-bottom: 1px solid var(--border); background: var(--bg); }
.workspace-tabs > a { display: flex; align-items: center; gap: 9px; align-self: stretch; padding: 16px 1px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.workspace-tabs > a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.workspace-tabs a span { font-size: 10px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border); color: var(--muted); }
.workspace-tabs p { margin: 0 0 0 auto; color: var(--muted); font-size: 12px; }
html { scroll-padding-top: 150px; }
.shell { max-width: 1640px; grid-template-columns: 236px minmax(0,1fr) 205px; }
.sidebar,.toc { top: 127px; height: calc(100vh - 127px); }
.sidebar { padding: 24px 16px 40px; }
.nav-overview { display: block; color: var(--text-2); font-size: 13px; padding: 10px 12px; margin-bottom: 24px; border: 1px solid var(--border); border-radius: 9px; }
.nav-overview.active { color: var(--accent); background: var(--accent-soft); }
.nav-group { margin-bottom: 25px; }
.nav-group h3 { font-size: 10px; letter-spacing: .12em; margin-bottom: 8px; }
.nav-group a { padding: 7px 10px; font-size: 12px; }
main { padding: 36px 36px 72px; }
.overview-mode .shell { grid-template-columns: 236px minmax(0,1fr); }
.overview-mode .toc { display: none; }
.home { max-width: 1160px; }
.hero { display: grid; grid-template-columns: 1.8fr 1fr; text-align: left; padding: 45px 38px; min-height: 370px; border-radius: 18px; background: radial-gradient(ellipse at 95% 60%,var(--accent-soft),transparent 65%),var(--surface); }
.eyebrow { display: block; font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--muted); }
.eyebrow i { display: inline-block; width: 6px; height: 6px; margin: 0 6px 1px 0; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(32px,3.7vw,54px); letter-spacing: -2.3px; line-height: 1.12; font-weight: 600; margin: 24px 0 18px; }
.hero h1 b { font-weight: 600; }
.hero p { font-size: 14px; line-height: 1.8; max-width: 470px; margin: 0 0 26px; }
.hero-actions { justify-content: flex-start; gap: 8px; }
.btn { font-size: 12px; border-radius: 8px; height: auto; min-height: 42px; padding: 10px 15px; }
.btn span { margin-left: 12px; }
.hero-note { display: block; font-size: 10px; color: var(--muted); margin-top: 22px; }
.hero-art { display: grid; place-items: center; position: relative; min-width: 0; }
.hero-art img { position: relative; width: min(75%,200px); height: auto; transform: rotate(-18deg); filter: drop-shadow(0 18px 22px #0003); z-index: 1; }
.orbit { position: absolute; width: 220px; height: 220px; max-width: 100%; border: 1px solid var(--border-strong); border-radius: 50%; opacity: .5; }
.orbit-two { width: 290px; height: 290px; opacity: .3; }
.art-label { position: absolute; bottom: 2px; font-size: 8px; letter-spacing: .2em; color: var(--muted); }
.stats { gap: 0; margin-top: 20px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.stat { border: 0; border-radius: 0; border-right: 1px solid var(--border); padding: 19px 20px; background: transparent; min-width: 0; }
.stat:last-child { border-right: 0; }
.stat > span { display: block; font-size: 8px; letter-spacing: .1em; margin-bottom: 9px; }
.stat b { font-family: var(--font); font-size: 16px; font-weight: 600; margin-bottom: 5px; line-height: 1.4; }
.stat small { display: block; font-size: 10px; color: var(--muted); }
.server-copy { border: 0; background: none; text-align: left; padding: 0; font-size: 14px; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.server-copy small { font-weight: 400; color: var(--accent); }
.section-title { margin: 36px 0 18px; gap: 14px; }
.section-title h2 { font-size: 23px; font-weight: 600; letter-spacing: -.8px; margin-top: 8px; }
.section-title a,.section-title > span { font-size: 11px; color: var(--muted); }
.cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.card { padding: 22px; border-radius: 12px; background: var(--surface); }
.card .ico { font-size: 19px; width: 38px; height: 38px; margin-bottom: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.card h3 { font-size: 15px; letter-spacing: -.3px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 12px; line-height: 1.75; color: var(--muted); }
.card small { font-size: 10px; color: var(--text-2); margin-top: 18px; line-height: 1.7; }
.essentials { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card.mini { padding: 18px; }
.card.mini h3 { font-size: 12px; line-height: 1.5; }
.card.mini p { font-size: 11px; }
.two-col { grid-template-columns: 1.2fr 1fr; gap: 16px; }
.panel { padding: 26px; }
.panel h3 { font-size: 16px; letter-spacing: -.4px; margin-bottom: 24px; }
.timeline { margin-bottom: 0; }
.timeline b { font-size: 13px; font-weight: 500; margin: 4px 0; }
.timeline time { font-size: 10px; color: var(--muted); }
.timeline p { font-size: 11px; }
.archive-invite { background: radial-gradient(ellipse at 100% 0,var(--accent-soft),transparent 75%),var(--surface); }
.archive-invite h3 { font-size: 26px; line-height: 1.3; margin: 28px 0 14px; }
.archive-invite p { font-size: 13px; color: var(--text-2); margin-bottom: 26px; }
.archive-invite small { display: block; font-size: 10px; color: var(--muted); margin-top: 24px; }
.article h1 { font-weight: 600; letter-spacing: -1.5px; }
.lede { font-size: 16px; line-height: 1.8; }
.prose { font-size: 14px; line-height: 1.9; display: flow-root; }
.prose h2 { font-size: 24px; font-weight: 600; letter-spacing: -.6px; }
.prose h3 { font-size: 18px; font-weight: 600; }
.toc a { font-size: 11px; }
.toc a.sub { font-size: 10px; }
.archive-header { padding: 22px 0 30px; max-width: 700px; }
.archive-header h1 { font-size: clamp(34px,4.3vw,58px); letter-spacing: -2px; font-weight: 600; margin: 25px 0; }
.archive-header h1 span { color: var(--muted); }
.archive-header p { font-size: 15px; color: var(--text-2); max-width: 580px; margin-bottom: 24px; }
.archive-notice { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--warn-soft); }
.archive-notice > span { font-size: 26px; color: var(--warn); }
.archive-notice strong { font-size: 13px; }
.archive-notice p { font-size: 12px; color: var(--text-2); margin: 5px 0 0; }
.archive-filter-label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.archive-kicker { display: block; font-size: 9px; letter-spacing: .08em; color: var(--warn); text-transform: uppercase; margin-bottom: 20px; }
.archive-cards .card h3 { line-height: 1.5; }
.archive-cards .card h3 span { float: right; color: var(--muted); }
.archive-cards { margin-top: 10px; }
.footer { text-align: left; padding: 30px max(24px,calc((100vw - 1110px)/2)); font-size: 11px; }
.footer p { max-width: 100%; }
.footer-links { justify-content: flex-start; margin-top: 20px !important; }
@media (max-width: 1200px) {
  .shell { grid-template-columns: 220px minmax(0,1fr); }
  .toc { display: none; }
  .overview-mode .shell { grid-template-columns: 220px minmax(0,1fr); }
  main { padding: 28px; }
  .hero { padding: 34px 28px; }
  .hero-art img { width: 85%; }
  .essentials { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat { padding: 16px 12px; }
  .live { display: none; }
}
@media (max-width: 860px) {
  :root { --topbar-h: 64px; }
  .topbar { padding: 0 16px; gap: 12px; }
  .workspace-tabs { padding: 0 20px; gap: 26px; min-height: 52px; }
  .workspace-tabs p { display: none; }
  .shell,.overview-mode .shell { grid-template-columns: minmax(0,1fr); }
  .sidebar { top: 116px; height: calc(100vh - 116px); }
  .scrim { top: 116px; }
  main { padding: 24px 20px 50px; }
  .hero { grid-template-columns: 1.8fr 1fr; }
  .hero h1 { font-size: 38px; letter-spacing: -1.7px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat { padding: 18px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .two-col { grid-template-columns: 1fr; }
  .icon-btn,.ip-chip { min-width: 38px; }
}
@media (max-width: 540px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .topbar-right { gap: 7px; }
  .topbar .ip-chip { display: none; }
  .search { padding: 0 9px; }
  .search input { font-size: 12px; }
  main { padding: 20px 16px 40px; }
  .hero { display: block; padding: 30px 24px; min-height: auto; }
  .hero h1 { font-size: 35px; }
  .hero-art { display: none; }
  .hero p { font-size: 13px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-note { font-size: 9px; }
  .cards,.essentials { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 21px; }
  .section-title { align-items: flex-end; }
  .section-title a { max-width: 100px; text-align: right; }
  .archive-header h1 { font-size: 37px; letter-spacing: -1.5px; }
  .archive-notice { padding: 16px; align-items: flex-start; }
  .article h1 { font-size: 32px; }
  .tool .fields { grid-template-columns: 1fr; }
}
