:root {
  --bg: #fbf9f6;
  --surface: #fff;
  --ink: #211f1d;
  --muted: #746f69;
  --line: #e9e1d8;
  --brand: #b44d05;
  --brand-soft: #fbf0e9;
  --success: #257250;
  --danger: #b3352d;
  --shadow: 0 2px 10px rgb(87 61 42 / 8%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px;
  min-height: 84px; padding: 14px max(24px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 94%); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; min-width: 250px; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: white; background: var(--brand); box-shadow: 0 4px 12px rgb(180 77 5 / 24%); font-size: 24px; }
.brand strong { display: block; font-size: 18px; }
.brand small { color: var(--muted); letter-spacing: .05em; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 11px 14px; border-radius: 10px; color: #665f59; font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--brand); background: var(--brand-soft); }

.page { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 44px 0 80px; }
.hero { display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 64px; margin-bottom: 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 700; }
.hero h1 { margin: 26px 0 12px; font-size: clamp(42px, 5vw, 64px); line-height: 1.08; font-weight: 500; letter-spacing: -.04em; }
.hero p { margin: 0; color: var(--muted); font-size: 20px; }
.quick-card, .panel, .server-card, .status-card { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.quick-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px; border-radius: 18px; }
.quick-card strong { display: block; margin-bottom: 6px; }
.quick-card span { color: var(--muted); font-size: 14px; }
.outline-button, .link-button { padding: 11px 16px; border: 1px solid #e7b895; border-radius: 12px; color: var(--brand); background: white; cursor: pointer; font-weight: 700; white-space: nowrap; }

.search { display: flex; align-items: center; gap: 14px; padding: 11px 12px 11px 22px; margin-bottom: 44px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.search span { color: var(--muted); font-size: 22px; }
.search input { flex: 1; min-width: 0; padding: 12px 4px; border: 0; outline: none; background: transparent; font-size: 18px; }
.primary-button { padding: 14px 26px; border: 0; border-radius: 12px; color: white; background: var(--brand); cursor: pointer; font-weight: 700; }
.primary-button:hover { background: #983f03; }
.primary-button:disabled { opacity: .5; cursor: wait; }
.danger-button { padding: 10px 16px; border: 1px solid #efb6b2; border-radius: 10px; color: var(--danger); background: #fff8f7; cursor: pointer; font-weight: 700; }

.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.section-head h2 { margin: 0 0 6px; font-size: 30px; font-weight: 500; }
.section-head p, .section-head span { margin: 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.server-card { padding: 28px; border-radius: 18px; transition: transform .16s ease, box-shadow .16s ease; }
.server-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgb(87 61 42 / 12%); }
.server-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 13px; color: var(--brand); background: var(--brand-soft); font-size: 26px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge { padding: 5px 9px; border-radius: 8px; color: #655d57; background: #f4f2ef; font-size: 13px; }
.badge.ok { color: var(--success); background: #edf7f2; }
.server-card h3 { margin: 0 0 8px; font-size: 23px; }
.slug { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.author { margin: 18px 0 10px; font-weight: 700; }
.description { min-height: 48px; color: var(--muted); line-height: 1.6; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; color: var(--brand); font-weight: 700; }
.capabilities { color: var(--muted); font-size: 13px; font-weight: 500; }

.panel { padding: 28px; border-radius: 18px; }
.panel + .panel { margin-top: 20px; }
.panel h1, .panel h2 { margin-top: 0; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 24px; }
.field { display: grid; gap: 8px; margin: 18px 0; }
.field label { font-weight: 700; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; outline: none; }
.field textarea { min-height: 360px; resize: vertical; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.field input:focus, .field textarea:focus { border-color: #d98c56; box-shadow: 0 0 0 3px rgb(217 140 86 / 14%); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.notice { padding: 14px 16px; border-left: 3px solid var(--brand); color: #694229; background: var(--brand-soft); line-height: 1.6; }
.notice.error { border-color: var(--danger); color: #8d2822; background: #fff2f1; }
.notice.success { border-color: var(--success); color: #1e6043; background: #edf7f2; }
.status-card { padding: 34px; border-radius: 16px; color: var(--muted); text-align: center; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--brand); font-weight: 700; }
pre { overflow: auto; padding: 18px; border-radius: 12px; color: #f7efe7; background: #27221f; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.definition-grid div { padding: 14px; border-radius: 10px; background: #f8f5f2; }
.definition-grid dt { color: var(--muted); font-size: 13px; }
.definition-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; font-weight: 700; }
.submission { margin-bottom: 18px; }
.submission-head { display: flex; justify-content: space-between; gap: 16px; }
.submission pre { max-height: 280px; }
.loading-screen { display: grid; min-height: 100vh; place-items: center; color: var(--muted); }
.muted { color: var(--muted); }

@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .brand { min-width: 0; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .hero, .two-column { grid-template-columns: 1fr; gap: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .page { width: min(100% - 28px, 720px); padding-top: 30px; }
  .hero h1 { font-size: 42px; }
}
