:root {
  color-scheme: dark;
  --bg: #070b0f;
  --panel: #101820;
  --panel-strong: #17232d;
  --text: #f4f8fb;
  --muted: #8fb0bd;
  --line: #243340;
  --accent: #4ee0b4;
  --accent-strong: #62f3c6;
  --accent-blue: #49b7ff;
  --accent-pink: #ff4fa3;
  --warning: #f4c95d;
  --danger: #ef6461;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #070b0f;
  color: var(--text);
  font-family: "Rajdhani", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 18, 0.96);
  backdrop-filter: blur(14px);
}

.topbar-inner,
.page {
  width: auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
  padding: 0 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(78, 224, 180, 0.45);
  background: #0d1c1c;
  color: var(--accent-strong);
}

.menu-button,
.modal-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.menu-button {
  font-size: 24px;
}

.top-search {
  flex: 1;
  max-width: 460px;
  margin: 0 auto;
}

.top-search input {
  min-height: 40px;
  border-color: transparent;
  border-radius: 8px;
  background: #14222d;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav-form button:hover {
  color: var(--text);
}

.nav-form {
  margin: 0;
}

.nav-form button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.page {
  min-height: calc(100vh - 72px);
  margin-left: 238px;
  padding: 104px 30px 48px;
  background: #101b23;
}

.side-nav {
  position: fixed;
  z-index: 20;
  top: 72px;
  bottom: 0;
  left: 0;
  width: 238px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #0b131a;
  padding: 16px;
}

.side-link,
.side-section a {
  display: flex;
  min-height: 38px;
  align-items: center;
  color: #9bc3d0;
  text-decoration: none;
}

.side-link {
  border-radius: 6px;
  margin-bottom: 6px;
  padding: 0 16px;
  font-weight: 700;
}

.side-link.active,
.side-link:hover {
  background: #12302f;
  color: var(--accent);
}

.side-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 18px 0;
  padding: 18px 0;
}

.side-panel p,
.side-section {
  color: #a8c4cf;
  line-height: 1.5;
}

.side-section {
  display: grid;
  gap: 8px;
}

.side-section strong {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  padding: 42px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 16px;
  font-size: 48px;
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 16px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  border-color: rgba(78, 224, 180, 0.72);
  background: var(--accent);
  color: #06110e;
}

.status-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
}

.status-panel h2 {
  margin-bottom: 18px;
  font-size: 18px;
}

.metric-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--muted);
}

.metric strong {
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.gaming-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 32px;
}

.gaming-hero h1 {
  margin-bottom: 12px;
}

.hero-status {
  border: 1px solid rgba(78, 224, 180, 0.28);
  border-radius: 8px;
  background: #0b151c;
  padding: 20px;
}

.hero-status span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-status strong {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 28px;
}

.home-section {
  margin-top: 36px;
}

.home-section .section-heading h2 {
  font-size: 22px;
}

.server-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.server-card,
.request-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid #263845;
  border-radius: 8px;
  background: #101922;
}

.server-art {
  min-height: 150px;
  background:
    radial-gradient(circle at 20% 20%, rgba(78, 224, 180, 0.28), transparent 28%),
    radial-gradient(circle at 80% 35%, rgba(73, 183, 255, 0.26), transparent 30%),
    linear-gradient(135deg, #1a2630, #0b1118 64%);
}

.server-card-2 .server-art {
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 79, 163, 0.24), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(78, 224, 180, 0.2), transparent 30%),
    linear-gradient(135deg, #172631, #0a1117 64%);
}

.server-card-3 .server-art {
  background:
    radial-gradient(circle at 30% 30%, rgba(244, 201, 93, 0.28), transparent 25%),
    radial-gradient(circle at 85% 75%, rgba(73, 183, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #1d2327, #090f14 64%);
}

.server-card-4 .server-art {
  background:
    radial-gradient(circle at 65% 30%, rgba(78, 224, 180, 0.24), transparent 25%),
    radial-gradient(circle at 20% 75%, rgba(255, 79, 163, 0.22), transparent 30%),
    linear-gradient(135deg, #16232b, #080f13 64%);
}

.server-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,0.08) 42% 43%, transparent 43%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 24px);
  opacity: 0.55;
}

.server-art span {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  border: 1px solid rgba(78, 224, 180, 0.5);
  border-radius: 999px;
  background: rgba(7, 11, 15, 0.72);
  padding: 5px 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.server-body {
  padding: 16px;
}

.server-body h3,
.request-tile h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.server-body p,
.request-tile p {
  color: var(--muted);
  line-height: 1.5;
}

.server-body strong {
  color: var(--accent-blue);
}

.request-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.request-tile {
  min-height: 230px;
  padding: 22px;
}

.request-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(78, 224, 180, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(73, 183, 255, 0.09), transparent 36%);
  pointer-events: none;
}

.request-tile > * {
  position: relative;
}

.tile-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(78, 224, 180, 0.55);
  border-radius: 8px;
  margin-bottom: 28px;
  color: var(--accent);
  font-weight: 700;
}

.request-tile .button {
  margin-top: 12px;
}

.request-modal[hidden] {
  display: none;
}

.request-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 9, 0.78);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow-y: auto;
  border: 1px solid rgba(78, 224, 180, 0.3);
  border-radius: 8px;
  background: #0e171f;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.modal-head h2 {
  margin: 0;
}

.modal-close {
  min-width: 36px;
  color: var(--text);
  font-size: 32px;
  line-height: 1;
}

.modal-fields {
  margin-top: 16px;
}

.modal-open {
  overflow: hidden;
}

.admin-body,
.installer-body {
  background: #0b1117;
}

.admin-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  border-right: 1px solid var(--line);
  background: #080f14;
  padding: 22px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.admin-menu {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}

.admin-menu section {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.admin-menu h2 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-menu a,
.admin-menu span,
.admin-logout button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a7c7d2;
  cursor: pointer;
  font: inherit;
  padding: 9px 10px;
  text-align: left;
  text-decoration: none;
}

.admin-menu span {
  cursor: default;
  color: #5f7b87;
}

.admin-menu a:hover,
.admin-logout button:hover {
  background: #12232c;
  color: var(--text);
}

.admin-logout {
  margin: 0;
}

.admin-main {
  min-width: 0;
  background: #101820;
}

.admin-topbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
  padding: 0 30px;
  background: #0d151c;
}

.admin-topbar span,
.admin-topbar strong {
  display: block;
  text-align: right;
}

.admin-topbar span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-content {
  padding: 34px 30px 54px;
}

.installer-shell {
  display: grid;
  min-height: 100vh;
  place-items: start center;
  padding: 42px 18px;
  background:
    radial-gradient(circle at 25% 0%, rgba(78, 224, 180, 0.18), transparent 32%),
    linear-gradient(180deg, #0b141b, #070b0f);
}

.installer-panel {
  width: min(1040px, 100%);
}

.requirement-card {
  min-height: 132px;
}

.requirement-card.passed {
  border-color: rgba(78, 224, 180, 0.35);
}

.requirement-card.failed {
  border-color: var(--danger);
}

.requirement-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.control-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.control-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.control-card h2 {
  margin: 0;
  font-size: 20px;
}

.clean-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.clean-list li {
  border-left: 2px solid rgba(78, 224, 180, 0.34);
  padding-left: 10px;
  line-height: 1.4;
}

.status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-pill.partial {
  border-color: rgba(78, 224, 180, 0.38);
  color: var(--accent);
}

.status-pill.planned {
  color: #86a1ad;
}

.button.disabled {
  cursor: default;
  opacity: 0.55;
}

.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin: 22px 0 24px;
}

.module-tabs a {
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 11px 14px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.module-tabs a.active {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.card p {
  color: var(--muted);
  line-height: 1.55;
}

.notice {
  border: 1px solid var(--line);
  margin: 24px 0;
  background: var(--panel);
  padding: 20px;
}

.notice h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.notice p,
.notice li {
  color: var(--muted);
  line-height: 1.6;
}

.notice.success {
  border-color: #548f5a;
}

.notice.danger {
  border-color: var(--danger);
}

.install-form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.auth-form {
  max-width: 520px;
}

.form-section {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
}

.form-section h2 {
  margin-bottom: 18px;
  font-size: 20px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #11151c;
  color: var(--text);
  font: inherit;
  padding: 0 12px;
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #11151c;
  color: var(--text);
  font: inherit;
  padding: 12px;
}

select {
  min-height: 44px;
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
}

button.button {
  cursor: pointer;
  font: inherit;
}

.button.danger {
  border-color: var(--danger);
  color: #ffd4d3;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  border: 1px solid var(--line);
  margin: 24px 0;
  background: var(--panel);
  padding: 16px;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.inline-actions form {
  margin: 0;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.danger-link {
  color: #ff8f8c;
}

.full-field {
  margin-top: 16px;
}

.field-list {
  display: grid;
  gap: 16px;
}

.field-row {
  border: 1px solid var(--line);
  background: #141922;
  padding: 16px;
}

.field-row[hidden] {
  display: none;
}

.field-options[hidden] {
  display: none;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.check-row label {
  display: inline-flex;
  align-items: center;
}

.check-row input {
  width: auto;
  min-height: 0;
}

.danger-zone {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.table-panel {
  overflow-x: auto;
  border: 1px solid var(--line);
  margin-top: 28px;
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-editor-shell {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 20px;
  margin-top: 28px;
  align-items: start;
}

.theme-editor-sidebar,
.theme-editor-main {
  min-width: 0;
}

.theme-editor-sidebar {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px;
}

.theme-editor-sidebar details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.theme-editor-sidebar details:last-child {
  border-bottom: 0;
}

.theme-editor-sidebar summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}

.theme-editor-sidebar nav {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.theme-editor-sidebar a {
  display: grid;
  gap: 3px;
  border: 1px solid transparent;
  color: var(--text);
  padding: 8px;
  text-decoration: none;
}

.theme-editor-sidebar a.active,
.theme-editor-sidebar a:hover {
  border-color: rgba(80, 227, 183, 0.45);
  background: rgba(80, 227, 183, 0.08);
}

.theme-editor-sidebar small {
  color: var(--muted);
}

.theme-editor-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.theme-editor-guide p {
  border: 1px solid var(--line);
  background: #11151c;
  color: var(--muted);
  margin: 0;
  padding: 12px;
}

.theme-editor-guide strong {
  color: var(--text);
}

.theme-widget-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.theme-widget-guide article {
  border: 1px solid var(--line);
  background: #11151c;
  padding: 12px;
}

.theme-widget-guide strong {
  color: var(--text);
}

.theme-widget-guide p {
  color: var(--muted);
  margin: 6px 0 10px;
}

.theme-widget-guide code {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #0b0f16;
  color: var(--accent);
  padding: 8px;
}

.theme-editor-main textarea {
  min-height: 620px;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 14px;
}

.row-actions form {
  margin: 0;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.inline-form select {
  min-width: 180px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 16px;
}

.permission-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.permission-grid input {
  width: auto;
  min-height: 0;
}

.role-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.role-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
}

.role-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.empty-state {
  margin: 0;
  padding: 20px;
  color: var(--muted);
}

.article-view {
  max-width: 820px;
}

.article-hero-image,
.card-image {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #0d1118;
}

.article-hero-image {
  max-height: 420px;
  margin: 24px 0;
}

.card-image {
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.article-content {
  color: #d8dde6;
  font-size: 17px;
  line-height: 1.8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.tag-list span,
.status-pill {
  border: 1px solid rgba(79, 224, 177, 0.28);
  background: rgba(79, 224, 177, 0.1);
  padding: 6px 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.tag-list.compact {
  margin: 12px 0;
}

.status-pill {
  display: inline-flex;
  margin-bottom: 12px;
}

.rich-editor-field > span {
  margin-bottom: 8px;
}

.tox.tox-tinymce {
  border-color: var(--line);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.article-content td,
.article-content th {
  border: 1px solid var(--line);
  padding: 10px;
}

.article-content img {
  max-width: 100%;
  height: auto;
}

.current-media {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.current-media img {
  max-width: 260px;
  border: 1px solid var(--line);
}

.profile-avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.user-card {
  color: inherit;
  text-decoration: none;
}

.avatar-placeholder {
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid var(--line);
  background: #101721;
  color: var(--accent);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 18px;
}

.muted-text {
  color: var(--muted);
  margin: 12px 0 0;
}

.compact-form {
  margin-bottom: 18px;
}

.danger-zone {
  border-color: rgba(255, 91, 91, 0.42);
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.checkbox-line input {
  width: auto;
}

.widget-band {
  margin-top: 36px;
}

.widget {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.widget-header h2 {
  margin: 0;
  font-size: 20px;
}

.widget-header a,
.card h3 a {
  color: inherit;
  text-decoration: none;
}

.widget-header a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.widget-list {
  display: grid;
  gap: 10px;
}

.widget-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: inherit;
  text-decoration: none;
}

.widget-item span {
  color: var(--muted);
  font-size: 14px;
}

.thread {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.message {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.message.staff {
  border-color: #6f8f54;
  background: #182119;
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.message-meta strong {
  color: var(--text);
}

.message p {
  margin: 0;
  color: #d8dde6;
  line-height: 1.7;
}

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.attachments a {
  border: 1px solid var(--line);
  background: #11151c;
  padding: 8px 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.footer {
  border-top: 1px solid var(--line);
  margin-left: 238px;
  padding: 44px 30px;
  background: #0b151c;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
}

.footer h3 {
  margin-bottom: 14px;
  color: var(--text);
}

.footer a {
  display: block;
  margin-bottom: 10px;
  color: #9cc8d4;
  text-decoration: none;
}

@media (max-width: 800px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .topbar {
    position: static;
  }

  .top-search {
    width: 100%;
    max-width: none;
  }

  .side-nav {
    position: static;
    width: auto;
    border-right: 0;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .page,
  .footer {
    margin-left: 0;
  }

  .page {
    padding: 28px 16px;
  }

  .hero,
  .grid,
  .control-grid,
  .filter-bar,
  .form-grid,
  .gaming-hero,
  .server-strip,
  .request-card-grid,
  .footer-grid,
  .permission-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 16px 0 0;
  }
}
