:root {
  --bg: #0c0c0b;
  --side: #10100e;
  --card: #161614;
  --line: #2a2823;
  --gold: #c6a15a;
  --gold-2: #e4d2a4;
  --ink: #f3f1ea;
  --muted: #9b978d;
  --active: #3c3424;
  --green: #3cba6e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 "Segoe UI", sans-serif;
}
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
img { display: block; max-width: 100%; }

.app[hidden], .gate[hidden] { display: none !important; }
.gate {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.gate-card {
  width: min(420px, 100%); padding: 36px 32px; text-align: center;
  background: #141412; border: 1px solid #2a2823; border-radius: 18px;
}
.gate-card .brand { width: auto; margin: 0 auto 22px; }
.gate-card h1 { margin: 0; font-size: 26px; font-weight: 650; }
.gate-card p { margin: 10px 0 0; color: var(--muted); }
.gate-go {
  margin-top: 22px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: #1c1408; font-weight: 650; text-decoration: none;
}
.gate-go:hover { background: var(--gold-2); }

.app {
  height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: 84px minmax(0, 1fr);
}

.top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px 0 36px;
  border-bottom: 1px solid #1c1b18;
  position: relative;
}
.brand {
  width: 210px; margin-left: -36px; margin-right: -18px;
  display: flex; flex-direction: column; align-items: center; line-height: 1;
}
.brand-mark { color: var(--gold); font-weight: 750; font-size: 36px; letter-spacing: 0.6px; margin-right: -0.6px; }
.brand-sub { color: var(--gold); font-size: 13px; letter-spacing: 3.2px; margin-top: 5px; margin-right: -3.2px; }
.crumb { margin: 0; color: #8d897f; padding-left: 16px; border-left: 1px solid #34322c; }
.search {
  margin-left: auto;
  width: min(420px, 36vw);
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #34322c;
  border-radius: 10px;
  background: #141412;
}
.search svg, .icon-btn svg, .nav-item svg, .row svg, .leave svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto;
}
.search { color: #8a867c; }
.search input {
  width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink);
}
.search input::placeholder { color: #7d7a72; }
.menu-btn, .side-backdrop { display: none; }
.menu-btn {
  width: 40px; height: 40px; border-radius: 10px; color: var(--gold-2);
  place-items: center; flex: 0 0 auto;
}
.menu-btn svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; color: var(--gold);
  display: grid; place-items: center; position: relative;
}
.icon-btn .dot {
  position: absolute; top: 8px; right: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold);
}
.top-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.pop {
  position: absolute; top: 56px; right: 64px; width: 320px; z-index: 5;
  background: #171714; border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.pop button {
  display: block; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--ink);
}
.pop button:hover { background: #241f18; }
.pop small { display: block; color: var(--gold); margin-top: 2px; }

.side {
  display: flex; flex-direction: column; padding: 18px 14px 14px;
  border-right: 1px solid #1c1b18; background: var(--side);
}
.who { display: flex; gap: 12px; align-items: center; padding: 0 8px 16px; }
.avatar-wrap { position: relative; width: 46px; height: 46px; flex: 0 0 auto; }
.avatar-wrap img, .top-avatar { background: #222; }
.avatar-wrap img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.online {
  position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%;
  background: #3b82f6; border: 2px solid var(--side);
}
.who strong { display: block; font-size: 14px; }
.who em {
  display: inline-block; margin-top: 3px; font-style: normal; color: var(--gold);
  font-size: 12px;
}
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-foot { margin-top: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px;
  border-radius: 10px; color: #ddd9d0; font-size: 15px;
}
.nav-foot .nav-item { font-size: 16px; height: 44px; }
.nav-foot .nav-item svg { width: 20px; height: 20px; }
.nav-item svg { color: #b7b2a6; }
.nav-item:hover { background: #1c1a16; }
.nav-item.is-on { background: var(--active); color: var(--gold-2); }
.nav-item.is-on svg { color: var(--gold); }
.leave {
  margin-top: 10px; height: 42px; border: 1px solid #3a3428; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--gold-2);
}
.leave:hover { background: #1c1914; }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas: "title ." "main rail";
  column-gap: 18px;
  row-gap: 14px;
  align-content: start;
  align-items: start;
  padding: 22px 22px 28px 22px;
  overflow: auto;
}
.workspace > h1 { grid-area: title; margin: 0; font-size: 28px; font-weight: 650; }
.workspace > main { grid-area: main; }
.workspace > .rail { grid-area: rail; }
.hero {
  position: relative; height: 252px; border-radius: 16px; overflow: hidden;
  border: 1px solid #322e26;
}
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 28%;
}
@media (min-width: 1800px) {
  .hero img { object-position: center 56%; }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,7,.92) 0%, rgba(8,8,7,.62) 38%, rgba(8,8,7,.12) 68%);
}
.hero-copy { position: absolute; z-index: 1; left: 28px; top: 50%; right: 42%; transform: translateY(-50%); }
.hero-copy h2 { margin: 0; font-size: 40px; font-weight: 700; letter-spacing: -0.4px; color: var(--gold-2); }
.hero-copy h2 span { color: #fff; margin-right: 8px; }
.hero-copy p { margin: 8px 0 0; color: #d9d4c8; font-size: 16px; }
.tags { display: flex; gap: 0; list-style: none; padding: 0; margin: 16px 0 18px; color: #c7c2b6; }
.tags li { padding: 0 12px; border-left: 1px solid #6d675c; line-height: 1; }
.tags li:first-child { padding-left: 0; border: 0; }
.ghost {
  height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--gold);
  color: var(--gold-2); background: rgba(12,10,8,.35);
}
.ghost:hover { background: rgba(198,161,90,.12); }

.news-block { margin-top: 26px; }
.section-head, .card h3 { display: flex; align-items: center; justify-content: space-between; }
.section-head h3, .card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 650; }
.text-link { color: var(--gold); }
.news-card {
  display: grid; grid-template-columns: 196px minmax(0, 1fr) auto; gap: 16px;
  align-items: center; padding: 14px; margin-bottom: 12px;
  background: var(--card); border: 1px solid #26241f; border-radius: 14px;
}
.news-card img { width: 196px; height: 118px; object-fit: cover; border-radius: 10px; }
.kicker { color: var(--gold); font-size: 12px; }
.news-card h4 { margin: 2px 0 4px; font-size: 16px; font-weight: 650; }
.news-card p { margin: 0; color: var(--muted); }
.when { margin-top: 10px; color: #8f8b82; font-size: 13px; display: flex; gap: 7px; align-items: center; }
.when svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ver {
  align-self: center; color: var(--gold); border: 1px solid #6d5a32; border-radius: 8px;
  padding: 4px 8px; font-size: 13px;
}
.empty { color: var(--muted); }
.view-news { display: flex; flex-direction: column; align-items: stretch; }
.view-news h1 { margin: 0 0 16px; font-size: 28px; font-weight: 650; }
.pager {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
}
.pager[hidden] { display: none !important; }
.pager-num {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid #3a3428; color: #d9d4c8; text-align: center;
}
.pager-num:hover { border-color: var(--gold); }
.pager-num.is-on { background: var(--gold); border-color: var(--gold); color: #1c1408; font-weight: 650; }

.rail { display: flex; flex-direction: column; gap: 14px; }
.card {
  background: #141412; border: 1px solid #2a2823; border-radius: 16px; padding: 14px;
}
.row {
  width: 100%; height: 42px; margin-top: 8px; padding: 0 10px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #343027; border-radius: 12px; color: #ece8df;
}
.row svg { color: var(--gold); }
.row span { flex: 1; }
.row i { color: #8d897f; font-style: normal; font-size: 18px; }
.row:hover { background: #1c1a16; }
.ok { display: flex; align-items: center; gap: 8px; margin: 4px 0 6px; color: #d7eee0; }
.ok i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.status-line { margin: 0; color: var(--muted); font-size: 13px; }

#view-home[hidden],
#view-mods[hidden],
#view-forum[hidden],
#view-profile[hidden],
#view-settings[hidden],
#view-support[hidden],
#view-install[hidden],
#view-faq[hidden],
#view-rules[hidden],
#view-configs[hidden],
#view-tools[hidden],
#view-news[hidden],
#view-admin[hidden],
#nav-admin[hidden],
#cfg-hub[hidden],
#cfg-mod[hidden],
#cfg-doc[hidden],
#cfg-params[hidden],
#cfg-json[hidden],
#cfg-mod-search-wrap[hidden],
#cfg-mod-note[hidden] { display: none !important; }

.view-configs { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.view-configs h1 { margin: 0; font-size: 28px; font-weight: 650; }
.cfg-lead { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.cfg-search {
  width: min(420px, 100%); height: 40px; margin-top: 16px;
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  border: 1px solid #34322c; border-radius: 10px; background: #141412;
}
.cfg-search svg {
  width: 18px; height: 18px; fill: none; stroke: #8d897f; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto;
}
.cfg-search input { width: 100%; border: 0; background: transparent; outline: none; }
.cfg-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px;
}
.cfg-card {
  display: flex; align-items: center; gap: 14px; min-height: 96px; width: 100%;
  padding: 16px 18px; border: 1px solid #2a2823; border-radius: 14px; background: #141412;
}
.cfg-card:hover { border-color: #6d5a32; background: #1a1814; }
.cfg-card strong { display: block; font-size: 16px; font-weight: 650; }
.cfg-card em {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  color: var(--muted); font-style: normal; font-size: 13px;
}
.cfg-card em svg {
  width: 14px; height: 14px; fill: none; stroke: var(--gold); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto;
}
.cfg-card small { display: block; margin-top: 8px; color: #7d796f; font-size: 12px; }
.cfg-go {
  margin-left: auto; color: var(--gold); display: flex; flex: 0 0 auto;
}
.cfg-go svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.cfg-back { display: inline-flex; align-items: center; margin-bottom: 14px; }
.cfg-note {
  margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; white-space: pre-line;
  background: #141412; border: 1px solid #2a2823; color: #d9d4c8; line-height: 1.55;
}
.nav-item[data-page="configs"],
.nav-item[data-page="tools"] { height: auto; min-height: 42px; padding-top: 8px; padding-bottom: 8px; line-height: 1.25; }
.view-tools { display: flex; flex-direction: column; align-items: stretch; }
#tools-hub[hidden],
#tools-oil[hidden],
#oil-pane-rig[hidden],
#oil-pane-ref[hidden],
#oil-raw-rig[hidden],
#oil-raw-ref[hidden],
#oil-side-rig[hidden],
#oil-side-ref[hidden],
#tools-mining[hidden],
#mine-pane-rig[hidden],
#mine-pane-x[hidden],
#mine-raw[hidden],
#mine-raw-x[hidden],
#mine-side-rig[hidden],
#mine-side-x[hidden],
#mine-hp-row[hidden],
#tools-mortar[hidden],
#mort-pane-impact[hidden],
#mort-pane-air[hidden],
#tools-grid .cfg-card[hidden] { display: none !important; }
.tool-class { display: block; margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.tool-side .tool-row span { width: auto; flex: 1 1 140px; }
.tool-tabs { display: flex; gap: 8px; margin-top: 16px; }
.tool-tabs button {
  height: 38px; padding: 0 16px; border-radius: 10px; background: #2c271f; color: #d9d4c8;
}
.tool-tabs button.is-on { background: var(--gold); color: #1c1408; font-weight: 650; }
.tool-work { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; margin-top: 16px; }
.tool-work h2 { margin: 18px 0 8px; color: var(--gold-2); font-size: 16px; font-weight: 650; }
.tool-work h2:first-child { margin-top: 0; }
.tool-note { margin: 0 0 10px; color: var(--muted); line-height: 1.45; }
.tool-row, .tool-check, .tool-pick {
  display: flex; align-items: center; gap: 8px; min-height: 36px; color: #d9d4c8;
}
.tool-row span { width: 460px; flex: 0 0 460px; }
.tool-group { margin-top: 14px; }
.tool-group h3 { margin: 0 0 2px; color: var(--ink); font-size: 15px; font-weight: 650; }
.tool-row input, .tool-table input, .tool-block textarea {
  height: 34px; width: 96px; padding: 0 8px; border: 1px solid #3a3428; border-radius: 8px;
  background: #10100e; color: var(--ink);
}
.tool-row input.is-bad, .tool-table input.is-bad { color: #d07a68; border-color: #d07a68; }
.tool-row em { color: var(--muted); font-style: normal; }
.tool-boost { margin-top: 10px; }
.tool-boost strong { display: block; color: var(--gold-2); margin-bottom: 2px; }
.tool-pair { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tool-pair .tool-row span { width: auto; min-width: 0; flex: 0 0 auto; }
.tool-raw-toggle {
  margin-top: 16px; height: 36px; padding: 0 12px; border-radius: 10px;
  background: #2c271f; color: #d9d4c8;
}
.tool-table { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.tool-table-head, .tool-table-row { display: grid; grid-template-columns: 140px 96px 96px 110px; gap: 8px; align-items: center; }
.tool-table-head { color: var(--muted); font-size: 13px; }
.tool-block { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 12px; color: #d9d4c8; }
.tool-block textarea { width: min(420px, 100%); height: 88px; padding: 8px; }
.tool-side {
  position: sticky; top: 0; max-height: calc(100vh - 120px); overflow: auto;
  padding: 16px; border: 1px solid #2a2823; border-radius: 16px; background: #141412;
}
.tool-side h2 { margin-top: 0; }
.tool-kicker { margin: 12px 0 4px; color: var(--muted); font-size: 13px; }
.tool-barrels { display: flex; gap: 12px; }
#oil-story, #mine-story, #mort-story { margin: 14px 0 0; white-space: pre-line; line-height: 1.5; color: #d9d4c8; }
#oil-story.is-bad, #oil-status.is-bad, #mine-story.is-bad, #mine-status.is-bad, #mort-story.is-bad, #mort-status.is-bad { color: #d07a68; }
.tool-foot { margin-top: 18px; padding: 14px 16px; border: 1px solid #2a2823; border-radius: 16px; background: #141412; }
.tool-foot p { margin: 0 0 10px; color: var(--muted); }
.tool-foot div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tool-foot .get-file { height: 38px; padding: 0 14px; }
#oil-status { color: #c5d39a; }
#cfg-doc h1 { color: var(--gold-2); }
.cfg-meta { margin: 8px 0 0; color: var(--muted); }
.cfg-meta b { color: var(--ink); font-weight: 650; }
.cfg-sheet {
  margin-top: 18px; background: #141412; border: 1px solid #2a2823; border-radius: 16px; overflow: hidden;
}
.cfg-tabs { display: flex; gap: 4px; padding: 0 8px; border-bottom: 1px solid #2a2823; }
.cfg-tabs button {
  display: flex; align-items: center; gap: 8px; padding: 14px 12px;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.cfg-tabs button svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.cfg-tabs button.is-on { color: var(--gold-2); border-bottom-color: var(--gold); }
.cfg-table { width: 100%; border-collapse: collapse; }
.cfg-table th {
  text-align: left; color: var(--muted); font-weight: 550; font-size: 13px; padding: 14px 16px;
}
.cfg-table td { padding: 14px 16px; border-top: 1px solid #26241f; vertical-align: top; }
.cfg-table tr:hover td { background: rgba(198, 161, 90, .05); }
.cfg-chip {
  display: inline-block; padding: 3px 8px; border-radius: 8px;
  background: #2a2418; color: var(--gold-2);
  font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px;
}
.cfg-type { background: #1c1a16; color: #d9d4c8; border: 1px solid #3a3428; font-family: "Segoe UI", sans-serif; }
.cfg-table p { margin: 0 0 8px; color: #d9d4c8; line-height: 1.5; }
.cfg-table p:last-child { margin-bottom: 0; }
.cfg-foot { margin: 0; padding: 14px 16px 16px; color: #d9d4c8; line-height: 1.5; border-top: 1px solid #26241f; }
.cfg-code { position: relative; margin: 0; }
.cfg-code pre {
  margin: 0; padding: 18px 18px 18px; overflow: auto;
  background: #1a1814; color: #d9d4c8;
  font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px; line-height: 1.55;
}
.cfg-code .jk { color: var(--gold-2); }
.cfg-code .js { color: #f3f1ea; }
.cfg-code .jn { color: #e7c98a; }
.cfg-code .jb { color: var(--green); }
.cfg-copy {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 8px; border: 1px solid #3a3428; color: var(--gold-2);
  background: #141412;
}
.cfg-copy:hover { border-color: var(--gold); }
.cfg-copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cfg-copy.is-done { color: var(--green); border-color: #2f6b45; }

.view-mods {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.tray {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 18px;
  background: #161614;
  border: 1px solid #2a2823;
  border-radius: 18px;
}
.view-install {
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  grid-template-areas: "main rail";
  align-items: start;
}
.guide { grid-area: main; width: 100%; }
.guide-rail {
  grid-area: rail;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 84px - 44px);
  overflow: auto;
}
.guide-card {
  background: #141412;
  border: 1px solid #8a7040;
  border-radius: 16px;
  padding: 16px;
}
.guide-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 16px;
  font-weight: 650;
}
.guide-card svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.guide-card h2 svg { color: var(--gold); }
.guide-card nav { display: flex; flex-direction: column; gap: 2px; }
.guide-card nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 6px;
  border-radius: 10px;
  color: #ece8df;
}
.guide-card nav button b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 650;
}
.guide-card nav button:hover,
.guide-card nav button.is-on { background: rgba(198, 161, 90, .12); color: var(--gold-2); }
.guide-points, .guide-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guide-points li, .guide-notes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #d9d4c8;
  line-height: 1.4;
}
.guide-points svg { color: var(--green); margin-top: 1px; }
.guide-notes li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}
.guide h1 { margin: 0 0 14px; font-size: 32px; font-weight: 700; }
.guide h2 { margin: 28px 0 10px; font-size: 22px; font-weight: 650; scroll-margin-top: 12px; }
.guide h3 { margin: 18px 0 8px; font-size: 17px; font-weight: 650; }
.guide p { margin: 0 0 12px; color: #d9d4c8; font-size: 15px; line-height: 1.55; }
.guide ul, .guide ol { margin: 0 0 14px; padding-left: 22px; color: #d9d4c8; font-size: 15px; line-height: 1.55; }
.guide li + li { margin-top: 6px; }
.guide strong { color: var(--ink); font-weight: 650; }
.guide a, .guide button {
  color: var(--gold-2); font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px;
}
.guide a:hover, .guide button:hover { color: #fff; }
.guide hr { border: 0; border-top: 1px solid #2a2823; margin: 28px 0; }
.guide .tree {
  margin: 0 0 14px; padding: 16px 18px; border-radius: 14px;
  background: #221f1a; border: 1px solid #3a3428; color: var(--gold-2);
  font-family: Consolas, "Cascadia Mono", monospace; font-size: 14px; line-height: 1.6;
  white-space: pre; overflow-x: auto;
}
.guide .sign { margin: 8px 0 0; }
.guide .sign span { display: block; margin-top: 4px; color: var(--muted); font-style: italic; }
.view-faq, .view-rules { display: flex; flex-direction: column; align-items: stretch; }
.rules section h2 { margin-top: 0; }
.rules .edition { margin: 0; color: var(--muted); font-style: italic; }
.rules-foot .sign { margin-bottom: 12px; }
.faq-group { display: flex; flex-direction: column; gap: 8px; }
.faq-group h2 { margin: 0 0 4px; }
.faq-item { border: 1px solid #2a2823; border-radius: 12px; background: #10100e; }
.faq-item > button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; color: var(--ink); font-size: 15px; font-weight: 650; text-decoration: none;
}
.faq-item > button:hover { background: rgba(198, 161, 90, .08); }
.faq-item > button i {
  width: 8px; height: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); margin-top: -4px; flex: 0 0 auto;
}
.faq-item > button.is-open i { transform: rotate(-135deg); margin-top: 4px; }
.faq-answer { padding: 0 16px 14px; }
.faq-answer[hidden] { display: none !important; }
.faq-answer p:last-child { margin-bottom: 0; }
.mods-head, .mod-grid { width: 100%; }
.mods-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mods-head h1 { margin: 0; font-size: 28px; font-weight: 650; }
.mods-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.mods-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.sort { position: relative; }
.sort-current {
  height: 40px; padding: 0 12px; display: flex; align-items: center; gap: 10px;
  border: 1px solid #3a3428; border-radius: 10px; background: #10100e; color: var(--ink);
  white-space: nowrap;
}
.sort-current svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.sort-list {
  position: absolute; z-index: 4; left: 0; top: calc(100% + 4px); min-width: 100%; padding: 4px;
  background: #171714; border: 1px solid #3a3428; border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.sort-list[hidden] { display: none !important; }
.sort-list button {
  display: block; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--ink); white-space: nowrap;
}
.sort-list button.is-on, .sort-list button:hover { background: var(--active); color: var(--gold-2); }
.layout-switch { display: flex; gap: 8px; flex: 0 0 auto; }
.layout-switch button {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid #3a3428; color: #8d897f;
  display: grid; place-items: center;
}
.layout-switch button.is-on { border-color: var(--gold); color: var(--gold); background: rgba(198,161,90,.08); }
.layout-switch svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mod-card {
  position: relative; background: #10100e; border: 1px solid #2a2823; border-radius: 16px; overflow: hidden;
}
.mod-shot { position: relative; height: 356px; }
.mod-shot img { width: 100%; height: 100%; object-fit: cover; }
.access {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(10,12,10,.72);
  border: 1px solid rgba(60,186,110,.45); color: #c6edd4; font-size: 12px;
}
.access i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.mod-body { padding: 14px 14px 16px; }
.mod-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mod-title h2 { margin: 0; font-size: 18px; font-weight: 650; }
.mod-title .ver { flex: 0 0 auto; }
.mod-card .text { margin: 8px 0 0; color: var(--muted); min-height: 2.9em; }
.mod-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; color: #8f8b82; font-size: 13px; }
.mod-meta span { display: inline-flex; align-items: center; gap: 6px; }
.mod-meta svg, .pick svg, .get-file svg, .ver-current svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto;
}
.pick {
  margin-top: 14px; width: 100%; height: 42px; padding: 0 12px;
  display: grid; grid-template-columns: 18px 1fr 18px; align-items: center;
  border: 1px solid #6d5a32; border-radius: 12px; color: var(--gold-2);
}
.pick span { text-align: center; }
.pick:hover, .fold:hover { background: rgba(198,161,90,.1); }

.mod-panel { margin-top: 12px; padding: 12px; border-radius: 12px; background: #0c0c0b; border: 1px solid #2a2823; }
.mod-panel[hidden] { display: none !important; }
.field-label { display: block; margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.ver-field + .field-label { margin-top: 12px; }
.ver-field { position: relative; }
.ver-current {
  width: 100%; height: 42px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid #3a3428; border-radius: 10px; background: #0c0c0b; color: var(--ink);
}
.ver-list {
  position: absolute; z-index: 3; left: 0; right: 0; top: calc(100% + 4px); padding: 4px;
  background: #171714; border: 1px solid #3a3428; border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.ver-list[hidden] { display: none !important; }
.ver-option { display: block; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.ver-option.is-on, .ver-option:hover { background: var(--active); color: var(--gold-2); }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kind {
  min-height: 42px; padding: 8px; border-radius: 10px; border: 1px solid #343027; color: #c7c2b6;
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 13px;
}
.mod-card:has(.ver-list:not([hidden])) { z-index: 2; }
.kind i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #6d675c; }
.kind.is-on { border-color: var(--gold); color: var(--gold-2); background: rgba(198,161,90,.08); }
.kind.is-on i { background: var(--gold); border-color: var(--gold); }
.license {
  margin-top: 14px; padding: 12px 14px; border: 1px solid #3a3428; border-radius: 12px; background: #141412;
}
.license h3 { margin: 0 0 10px; font-size: 14px; font-weight: 650; }
.license-check {
  display: flex; align-items: flex-start; gap: 10px; color: #d9d4c8; line-height: 1.45; cursor: pointer;
}
.license-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--gold); flex: 0 0 auto; }
.license-check button {
  display: inline; padding: 0; color: var(--gold-2); font: inherit; font-weight: 650;
  text-decoration: underline; text-underline-offset: 3px;
}
.license-check button:hover { color: #fff; }
.mod-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.get-file {
  height: 42px; border-radius: 10px; background: var(--gold); color: #1c1408; font-weight: 650;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.get-file svg { stroke: #1c1408; }
.get-file:hover { background: var(--gold-2); }
.get-file:disabled, .get-file:disabled:hover {
  background: #3a3428; color: #8d897f; cursor: not-allowed;
}
.get-file:disabled svg { stroke: #8d897f; }
.fold { height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid #3a3428; color: #d9d4c8; }
.mod-note { margin: 10px 0 0; color: var(--gold-2); font-size: 13px; }

.mod-grid.is-list { grid-template-columns: 1fr; }
.mod-grid.is-list .mod-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.mod-grid.is-list .mod-shot { height: 100%; min-height: 220px; }
.mod-grid.is-list .mod-card .text { min-height: 0; }

@media (max-width: 1280px) {
  .mod-grid:not(.is-list) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.view-forum {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas: "head rail" "main rail";
  align-items: start;
}
.forum-head { grid-area: head; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.forum-head h1 { margin: 0; font-size: 28px; font-weight: 650; }
.forum-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.forum-main { grid-area: main; min-width: 0; }
.forum-rail { grid-area: rail; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.create-topic {
  height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--gold); color: var(--gold-2);
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
}
.create-topic:hover { background: rgba(198,161,90,.1); }
.create-topic svg, .board-ico svg, .eye {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto;
}
.composer {
  margin-bottom: 16px; padding: 14px; border-radius: 16px; background: #141412; border: 1px solid #2a2823;
}
.composer[hidden] { display: none !important; }
.composer .field-label { margin-top: 10px; }
.composer .field-label:first-child { margin-top: 0; }
.composer select, .composer input, .composer textarea {
  width: 100%; border: 1px solid #3a3428; border-radius: 10px; background: #0c0c0b; color: var(--ink);
  padding: 10px 12px; outline: none;
}
.composer textarea { resize: vertical; min-height: 88px; }
.board-group { margin-top: 18px; }
.board-group:first-child { margin-top: 0; }
.board-group h2 { margin: 0 0 8px; font-size: 16px; font-weight: 650; }
.board-card { background: #141412; border: 1px solid #2a2823; border-radius: 16px; }
button.board, button.post, button.hot, button.topic-row { width: 100%; color: inherit; }
.board {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 64px 96px minmax(170px, 230px);
  gap: 12px; align-items: center; padding: 14px 16px;
}
.board + .board { border-top: 1px solid #26241f; }
.board:hover { background: #1c1a16; }
.board-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #2a2418; color: var(--gold);
}
.board h3 { margin: 0; font-size: 15px; font-weight: 650; }
.board .about { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 16px; font-weight: 650; }
.stat span { color: var(--muted); font-size: 12px; }
.last { display: flex; align-items: center; gap: 10px; min-width: 0; }
.last img, .post img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #222; flex: 0 0 auto; }
.last strong, .post strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.last em, .post em { display: block; margin-top: 2px; color: var(--muted); font-style: normal; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.last div, .post div { min-width: 0; }
.post { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.post + .post { border-top: 1px solid #26241f; }
.hot { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 0; color: var(--ink); }
.hot + .hot { border-top: 1px solid #26241f; }
.hot span { flex: 1; text-align: left; }
.flame { width: 16px; height: 16px; color: #e0924a; fill: currentColor; flex: 0 0 auto; }
.hot b { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 550; }
.eye { width: 15px; height: 15px; }
.topic-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: inherit;
}
.topic-row + .topic-row { border-top: 1px solid #26241f; }
.topic-row:hover { background: #1c1a16; }
.topic-row img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #222; flex: 0 0 auto; }
.topic-row span { flex: 1; min-width: 0; text-align: left; }
.topic-row strong, .topic-row em { display: block; }
.topic-row em { margin-top: 2px; color: var(--muted); font-style: normal; font-size: 12px; }
.topic-row b { color: var(--muted); font-weight: 550; font-size: 13px; white-space: nowrap; }
.speech {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px;
  margin-top: 10px; padding: 14px; background: #141412; border: 1px solid #2a2823; border-radius: 16px;
}
.speech img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #222; }
.speech-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.speech-head em { display: block; margin-top: 2px; color: var(--muted); font-style: normal; font-size: 12px; }
.speech p { margin: 8px 0 0; white-space: pre-wrap; }
.speech.is-target { outline: 1px solid #6d5a32; border-radius: 12px; }
.speech-actions { display: flex; align-items: center; gap: 8px; }
.speech-reply { color: var(--gold-2); font-size: 12px; }
.speech-reply:hover { color: #fff; }
.quote, .reply-target {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-top: 8px; padding: 8px 10px; border-left: 2px solid var(--gold); border-radius: 8px;
  background: #10100e; color: var(--muted); font-size: 13px; text-align: left;
}
.quote strong, .reply-target strong { display: block; color: var(--gold-2); font-weight: 650; }
.quote span, .reply-target span { display: block; margin-top: 4px; white-space: pre-wrap; }
.reply-target { margin: 0 0 10px; }
.reply-target button { color: var(--gold-2); flex: 0 0 auto; }
.mod-tools { position: relative; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.mod-tools > button { color: var(--muted); font-size: 13px; }
.mod-tools > button:hover { color: var(--gold-2); }
.sanction-menu {
  position: absolute; z-index: 4; right: 0; top: calc(100% + 4px); min-width: 180px; padding: 4px;
  background: #171714; border: 1px solid #3a3428; border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.sanction-menu[hidden] { display: none !important; }
.sanction-menu button { display: block; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.sanction-menu button:hover { background: var(--active); color: var(--gold-2); }
#forum-board[hidden], #forum-topic[hidden], #forum-back[hidden], #open-topic[hidden], #forum-mute[hidden], #forum-block[hidden] { display: none !important; }

.view-profile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  background: #141412;
  border: 1px solid #2a2823;
  border-radius: 16px;
}
.profile-person { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-avatar { width: 84px; height: 84px; }
.profile-avatar img { width: 84px; height: 84px; }
.profile-avatar .online { width: 16px; height: 16px; border-color: #141412; }
.profile-person strong { display: block; font-size: 26px; font-weight: 650; }
.profile-person em { display: inline-block; margin-top: 4px; font-style: normal; color: var(--gold); font-size: 14px; }
.profile-roles { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.profile-roles div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.role-chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid #6d5a32; color: var(--gold-2);
  background: rgba(198,161,90,.08); white-space: nowrap;
}
.profile-title { margin: 0; font-size: 18px; font-weight: 650; }
.profile-list, #profile-list { display: flex; flex-direction: column; gap: 10px; }
.profile-mod {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: #141412;
  border: 1px solid #2a2823;
  border-radius: 16px;
}
.profile-mod img { width: 168px; height: 96px; object-fit: cover; border-radius: 12px; }
.profile-mod h3 { margin: 0; font-size: 18px; font-weight: 650; }
.profile-mod p { margin: 6px 0 0; color: var(--muted); }

.view-support {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.support-card {
  width: min(760px, 100%);
  padding: 22px;
  background: #141412;
  border: 1px solid #2a2823;
  border-radius: 18px;
}
.support-card p { margin: 0 0 12px; color: #d9d4c8; font-size: 15px; }
.support-card a { color: var(--gold-2); }
.support-card a:hover { color: #fff; }
.support-card ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); }
.support-card li + li { margin-top: 6px; }
.support-card b { color: var(--ink); font-weight: 650; }
.support-card .support-go {
  height: 44px; padding: 0 16px; border-radius: 12px; background: var(--gold); color: #1c1408;
  display: inline-flex; align-items: center; font-weight: 650; text-decoration: none;
}
.support-card .support-go:hover { background: var(--gold-2); color: #1c1408; }

.view-settings {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.settings-card {
  width: min(760px, 100%);
  padding: 22px;
  background: #141412;
  border: 1px solid #2a2823;
  border-radius: 18px;
}
.settings-card h2 {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 18px; font-weight: 650;
}
.settings-card h2 svg {
  width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.settings-note { margin: 8px 0 4px; color: var(--muted); }
.settings-row {
  display: flex; flex-direction: column; gap: 4px; margin-top: 10px; padding: 12px 14px;
  border-radius: 12px; background: #10100e; border: 1px solid #2a2823;
}
.settings-row span { color: var(--muted); font-size: 13px; }
.settings-row strong { font-size: 16px; font-weight: 650; }
.settings-row .is-ok { color: var(--green); }
.settings-actions { display: flex; gap: 10px; margin-top: 16px; }
.settings-actions a, .settings-actions button {
  flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; text-decoration: none;
}
.settings-actions .fold { border: 1px solid #3a3428; color: var(--gold-2); }
.settings-actions .fold:hover { background: rgba(198,161,90,.1); }
.settings-actions .danger { height: 44px; border: 1px solid #6a3434; color: #e7b2b2; }

.view-admin { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.admin-tabs { display: flex; gap: 8px; flex: 0 0 auto; }
.admin-tabs button {
  height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #3a3428; color: #d9d4c8;
}
.admin-tabs button.is-on { border-color: var(--gold); color: var(--gold-2); background: rgba(198,161,90,.08); }
#admin-mods[hidden], #admin-news[hidden] { display: none !important; }
.view-admin > * { width: min(720px, 100%); }
.view-admin .composer { max-width: none; }
.view-admin .mod-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.view-admin .mod-actions .get-file,
.view-admin .mod-actions .danger { width: auto; flex: 0 0 auto; padding: 0 18px; }
.composer h2, .admin-card h3 { margin: 0 0 4px; font-size: 18px; }
.admin-card { margin-top: 8px; padding: 16px; border: 1px solid #2a2823; border-radius: 16px; background: #10100e; }
.admin-card .composer { margin: 0; padding: 0; border: 0; background: transparent; }
.admin-card .composer + .composer { margin-top: 18px; padding-top: 16px; border-top: 1px solid #26241f; }
.admin-mod .shot { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.pair .field-label { margin-top: 0; }
.file-field {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  margin-top: 12px; padding: 12px; border: 1px dashed #3a3428; border-radius: 12px;
}
.file-field span { color: var(--ink); }
.file-field em { color: var(--muted); font-style: normal; font-size: 13px; }
.file-field input { width: 100%; padding: 0; border: 0; background: transparent; }
.ver-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ver-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 12px; border: 1px solid #26241f; border-radius: 12px; background: #0c0c0b;
}
.ver-row b { font-weight: 650; }
.ver-row .mark { margin-left: 8px; color: var(--gold); font-weight: 550; font-size: 13px; }
.ver-facts { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 13px; }
.danger { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid #6a3434; color: #e7b2b2; }
.danger:hover { background: rgba(180, 60, 60, .12); }
.check { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--muted); line-height: 1.4; }
.check input { width: auto; margin-top: 3px; }
@media (max-width: 640px) {
  .pair { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .view-install {
    grid-template-columns: 1fr;
    grid-template-areas: "main" "rail";
  }
  .guide-rail { position: static; max-height: none; }
  .cfg-grid { grid-template-columns: 1fr 1fr; }
  .tool-work { grid-template-columns: 1fr; }
  .tool-side { position: static; max-height: none; }
  .workspace:not(.view-mods):not(.view-forum):not(.view-profile):not(.view-settings):not(.view-support):not(.view-install):not(.view-faq):not(.view-rules):not(.view-configs):not(.view-tools):not(.view-news):not(.view-admin) {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "main" "rail";
  }
  .view-forum {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "main" "rail";
  }
  .board { grid-template-columns: 44px minmax(0, 1fr); }
  .stat, .last { display: none; }
  .hero-copy { right: 8%; }
  .hero-copy h2 { font-size: 32px; }
  .mod-grid.is-list .mod-card { grid-template-columns: 1fr; }
  .mod-grid.is-list .mod-shot { height: 180px; min-height: 0; }
}
@media (max-width: 860px) {
  .mod-grid:not(.is-list), .cfg-grid { grid-template-columns: 1fr; }
  .tool-row { flex-wrap: wrap; }
  .tool-row span { width: 100%; flex: 1 1 100%; }
  .kinds { grid-template-columns: 1fr; }
  .profile-card { flex-direction: column; align-items: flex-start; }
  .profile-roles, .profile-roles div { align-items: flex-start; justify-content: flex-start; }
  .profile-mod { grid-template-columns: 1fr; }
  .profile-mod img { width: 100%; height: 140px; }
  .settings-actions { flex-direction: column; }
}
@media (max-width: 800px) {
  .menu-btn { display: grid; }
  .app { display: block; height: 100dvh; overflow: hidden; }
  .top { height: 64px; padding: 0 12px; gap: 10px; }
  .brand { width: auto; margin: 0; align-items: flex-start; }
  .brand-mark { font-size: 22px; }
  .brand-sub { font-size: 9px; letter-spacing: 1.8px; margin-top: 2px; }
  .crumb { display: none; }
  .search { width: auto; flex: 1 1 auto; min-width: 0; margin-left: 0; }
  .pop { right: 12px; width: min(320px, calc(100vw - 24px)); }
  .side {
    position: fixed; z-index: 30; top: 0; bottom: 0; left: 0;
    width: min(300px, 86vw);
    transform: translateX(-105%);
    transition: transform .18s ease;
  }
  .app.is-menu .side { transform: none; }
  .side-backdrop {
    display: block; position: fixed; inset: 0; z-index: 29;
    background: rgba(0, 0, 0, .55); border: 0; padding: 0;
  }
  .side-backdrop[hidden] { display: none !important; }
  .workspace {
    height: calc(100dvh - 64px);
    overflow: auto;
    padding: 16px 14px 28px;
  }
  .workspace > h1, .mods-head h1, .view-configs h1, .forum-head h1 { font-size: 24px; }
  .hero { height: auto; min-height: 220px; }
  .hero-copy {
    position: relative; z-index: 1; left: auto; right: auto; top: auto;
    transform: none; padding: 22px 16px;
  }
  .hero-copy h2 { font-size: 28px; }
  .tags { flex-wrap: wrap; gap: 8px 14px; }
  .tags li { border: 0; padding: 0; }
  .news-card { grid-template-columns: 1fr; }
  .news-card img { width: 100%; height: 160px; }
  .mods-head, .forum-head { flex-direction: column; align-items: stretch; }
  .mods-tools { flex-wrap: wrap; }
  .cfg-sheet { overflow-x: auto; }
  .cfg-table thead { display: none; }
  .cfg-table, .cfg-table tbody, .cfg-table tr, .cfg-table td { display: block; width: auto; }
  .cfg-table tr { padding: 14px 16px; border-top: 1px solid #26241f; }
  .cfg-table td { padding: 0; border: 0; }
  .cfg-table td + td { margin-top: 8px; }
  .cfg-chip { white-space: normal; overflow-wrap: anywhere; }
  .gate { padding: 16px; }
  .gate-card { padding: 28px 18px; }
  .gate-card h1 { font-size: 22px; }
}
