:root {
  --bg: #070b08;
  --bg-raised: rgba(12, 20, 13, .9);
  --bg-card: rgba(16, 27, 17, .9);
  --border: rgba(177, 255, 64, .2);
  --text: #f1f9e9;
  --muted: #a5b49f;
  --accent: #b9ff3f;
  --accent-hover: #d0ff78;
  --accent-deep: #77c92e;
  --danger: #da373c;
  --success: #23a559;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  font-family: "gg sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 8% -10%, rgba(185, 255, 63, .17), transparent 30rem),
    radial-gradient(circle at 94% 8%, rgba(74, 140, 33, .13), transparent 24rem),
    linear-gradient(135deg, #111d12 0%, var(--bg) 48%, #020402 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: linear-gradient(110deg, rgba(21, 38, 20, .94), rgba(5, 10, 6, .96));
  border-bottom: 1px solid rgba(185, 255, 63, .2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  font-size: 17px;
}
.brand-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 22px rgba(185, 255, 63, .65);
}

.brand-guild {
  color: var(--muted);
  font-weight: 400;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.userbox { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; }

.dashboard-shell {
  min-height: calc(100vh - 61px);
}

.dashboard-shell.has-sidebar {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  align-items: start;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 24px 16px;
  background: linear-gradient(180deg, rgba(8, 17, 9, .94), rgba(3, 8, 4, .78));
  border-right: 1px solid rgba(185, 255, 63, .13);
  min-height: calc(100vh - 61px);
  position: sticky;
  top: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
  width: 100%;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-link:hover { background: rgba(185, 255, 63, .12); color: var(--text); transform: translateY(-1px); }
.nav-link.active {
  background: linear-gradient(135deg, var(--accent), #72c832);
  color: #071006;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(155, 235, 55, .24);
}

.container { max-width: 960px; margin: 0 auto; padding: 28px 24px 64px; }
.has-sidebar .container {
  max-width: 1120px;
  width: 100%;
  margin: 0;
  padding: 34px clamp(24px, 4vw, 58px) 72px;
}

.hero { text-align: center; padding: 80px 12px; }
.hero h1 {
  font-size: 34px;
  margin-bottom: 12px;
  background: linear-gradient(110deg, #f4ffdf 12%, var(--accent) 58%, #72c832 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: var(--muted); max-width: 480px; margin: 0 auto 12px; }
.hero .btn-lg { margin-top: 18px; }

h1 { font-size: 26px; letter-spacing: -.02em; }
h2 { font-size: 18px; margin: 0 0 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 20px 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card-grid .card { margin-bottom: 0; }

.card {
  background:
    linear-gradient(145deg, rgba(29, 48, 24, .76), rgba(9, 16, 10, .92)),
    var(--bg-card);
  border: 1px solid rgba(185, 255, 63, .17);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(235, 255, 211, .04);
}

.stat-value { font-size: 30px; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); }
td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }

.pill {
  display: inline-block;
  background: rgba(185, 255, 63, .08);
  border: 1px solid rgba(185, 255, 63, .2);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  margin: 2px 4px 2px 0;
}

.pill-role { color: #c9cdfb; border-color: #4752c4; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  color: #071006;
  background: linear-gradient(135deg, var(--accent), #78cc31);
  font-family: inherit;
  box-shadow: 0 6px 16px rgba(101, 163, 40, .2);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  background: linear-gradient(135deg, var(--accent-hover), #96e84a);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(101, 163, 40, .3);
}
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #78cc31); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a12d31; }
.btn-ghost { background: rgba(185, 255, 63, .04); border: 1px solid rgba(185, 255, 63, .28); color: var(--muted); box-shadow: none; }
.btn-ghost:hover { background: rgba(185, 255, 63, .12); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 13px; }

.poll-options-details { margin-top: 12px; }
.poll-options-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.poll-options-toggle::-webkit-details-marker { display: none; }
.poll-options-toggle::after {
  content: '+';
  font-size: 18px;
  line-height: 1;
}
.poll-options-details[open] .poll-options-toggle::after { content: '−'; }

.reaction-role-extra-details { margin-top: 12px; }
.reaction-role-extra-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.reaction-role-extra-toggle::-webkit-details-marker { display: none; }
.reaction-role-extra-toggle::after {
  content: '+';
  font-size: 18px;
  line-height: 1;
}
.reaction-role-extra-details[open] .reaction-role-extra-toggle::after { content: '−'; }

form.inline { display: inline; }

select,
input[type="text"],
input[type="url"],
input[type="number"],
input[type="time"] {
  background: rgba(3, 8, 4, .84);
  color: var(--text);
  border: 1px solid rgba(185, 255, 63, .2);
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
}

.searchable-select {
  position: relative;
  display: inline-block;
  min-width: 220px;
  max-width: 100%;
  vertical-align: middle;
}
.searchable-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.searchable-select-input {
  width: 100%;
  background: rgba(3, 8, 4, .84);
  color: var(--text);
  border: 1px solid rgba(185, 255, 63, .2);
  border-radius: 14px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
}
.searchable-select-input:focus {
  border-color: var(--accent);
}
.searchable-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
  background: rgba(8, 16, 9, .98);
  border: 1px solid rgba(185, 255, 63, .28);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .38);
}
.searchable-select-option {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.searchable-select-option:hover,
.searchable-select-option.is-active {
  background: rgba(185, 255, 63, .14);
}
.searchable-select-empty {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 13px;
}

textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  background: rgba(3, 8, 4, .84);
  color: var(--text);
  border: 1px solid rgba(185, 255, 63, .2);
  border-radius: 14px;
  padding: 10px;
  font-size: 14px;
  font-family: inherit;
}

.rules-table textarea { min-height: 92px; }
.rules-table td:nth-child(2) { min-width: 300px; }

/* ── Rule renumbering ─────────────────────────────────────────── */
.eyebrow {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rule-reorder-card {
  padding: 22px;
  border-color: rgba(185, 255, 63, .26);
  background:
    linear-gradient(145deg, rgba(31, 52, 25, .84), rgba(8, 15, 9, .96)),
    var(--bg-card);
}
.rule-reorder-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.rule-reorder-header h2 { margin-bottom: 6px; }
.rule-reorder-header p { margin: 0; max-width: 620px; }
.rule-reorder-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 70px;
  border: 1px solid rgba(185, 255, 63, .28);
  border-radius: 18px;
  background: rgba(185, 255, 63, .08);
  color: var(--accent);
}
.rule-reorder-count strong { font-size: 25px; line-height: 1; }
.rule-reorder-count span { margin-top: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.rule-reorder-tip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 255, 63, .14);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}
.rule-reorder-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(185, 255, 63, .12);
  color: var(--accent);
  font-size: 17px;
}
.rule-reorder-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rule-reorder-row {
  display: grid;
  grid-template-columns: 34px 22px 66px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid rgba(185, 255, 63, .11);
  border-radius: 14px;
  background: rgba(3, 8, 4, .4);
  cursor: text;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.rule-reorder-row:hover,
.rule-reorder-row:focus-within {
  border-color: rgba(185, 255, 63, .35);
  background: rgba(185, 255, 63, .055);
}
.rule-reorder-row.is-changed { border-color: rgba(185, 255, 63, .3); }
.rule-reorder-row.is-invalid {
  border-color: rgba(218, 55, 60, .78);
  background: rgba(218, 55, 60, .08);
}
.rule-reorder-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(165, 180, 159, .13);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.rule-reorder-arrow { color: rgba(165, 180, 159, .55); text-align: center; }
.rule-reorder-input-wrap { position: relative; }
.rule-reorder-input {
  width: 66px;
  height: 40px;
  padding: 7px 8px;
  border: 1px solid rgba(185, 255, 63, .38);
  border-radius: 11px;
  background: rgba(185, 255, 63, .1);
  color: var(--accent);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}
.rule-reorder-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 255, 63, .14);
}
.rule-reorder-row.is-invalid .rule-reorder-input {
  border-color: var(--danger);
  color: #ff9296;
  background: rgba(218, 55, 60, .12);
}
.rule-reorder-content {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
}
.rule-reorder-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(185, 255, 63, .12);
}
.rule-reorder-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
}
.rule-reorder-status.is-invalid { color: #ff9296; }
.rule-status-icon { font-size: 15px; font-weight: 800; }
.rule-reorder-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rule-reorder-actions .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.patch-preview {
  border-left: 4px solid var(--accent);
  background: linear-gradient(135deg, rgba(185, 255, 63, .1), rgba(3, 8, 4, .55));
  border-radius: 16px;
  padding: 14px 16px;
}

/* ── Owner patch notes ───────────────────────────────────────── */
.patch-notes-page { max-width: 900px; margin: 0 auto; }
.patch-notes-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 22px;
  margin: 0 0 22px; padding: 4px 0 20px; border-bottom: 1px solid rgba(185, 255, 63, .2);
}
.patch-notes-header h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.035em; }
.patch-notes-header p:last-child { max-width: 600px; margin: 0; color: var(--muted); line-height: 1.55; }
.patch-notes-header > .btn { flex: 0 0 auto; }
.patch-compose-form { padding: clamp(18px, 3vw, 30px); }
.patch-form-heading, .patch-review-section-heading {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  margin-bottom: 22px;
}
.patch-form-heading h2, .patch-review-section-heading h2 { margin: 0; font-size: 21px; }
.patch-limit, .patch-destination-count {
  border: 1px solid rgba(185, 255, 63, .2); border-radius: 999px; padding: 6px 10px;
  color: var(--muted); font-size: 12px; white-space: nowrap;
}
.patch-title-field { margin-bottom: 20px; }
.patch-title-field input, .patch-message-field textarea { width: 100%; }
.patch-message-field textarea { min-height: 190px; line-height: 1.55; }
.patch-destinations { min-width: 0; margin: 30px 0 0; padding: 22px 0 0; border: 0; border-top: 1px solid rgba(185, 255, 63, .15); }
.patch-destinations legend { float: left; width: 100%; margin-bottom: 2px; padding: 0; }
.patch-destinations legend strong { display: block; font-size: 20px; }
.patch-destinations > p { clear: both; padding-top: 6px; margin: 0 0 14px; font-size: 13px; }
.patch-server-list { display: grid; gap: 9px; }
.patch-server-row {
  display: grid; grid-template-columns: minmax(170px, .8fr) minmax(220px, 1.2fr); align-items: center;
  gap: 12px 20px; padding: 14px 16px; border: 1px solid rgba(185, 255, 63, .14);
  border-radius: 14px; background: rgba(3, 8, 4, .34);
}
.patch-server-row:has(input:checked) { border-color: rgba(185, 255, 63, .48); background: rgba(185, 255, 63, .07); }
.patch-server-row.is-unavailable { opacity: .65; }
.patch-server-choice { display: flex; align-items: center; gap: 11px; min-width: 0; cursor: pointer; }
.patch-server-choice input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--accent); }
.patch-server-name { overflow-wrap: anywhere; font-weight: 650; }
.patch-channel-field { gap: 5px; font-size: 12px; }
.patch-channel-field select { width: 100%; }
.patch-server-unavailable, .patch-server-error { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.patch-server-unavailable { color: var(--muted); }
.patch-server-error { color: #ffaaa6; }
.patch-form-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(185, 255, 63, .12);
}
.patch-form-footer .muted { font-size: 13px; }
.patch-form-footer button:disabled, .patch-confirm-form button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.patch-notes-error {
  display: flex; flex-direction: column; gap: 4px; margin: 18px 0; padding: 14px 16px;
  border: 1px solid rgba(218, 55, 60, .55); border-radius: 12px; background: rgba(218, 55, 60, .12);
}
.patch-review-content { padding: clamp(20px, 4vw, 34px); }
.patch-review-content h2 { margin: 0 0 18px; font-size: clamp(22px, 3vw, 30px); }
.patch-message-preview { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); line-height: 1.7; }
.patch-review-destinations { margin: 26px 0; }
.patch-destination-list, .patch-result-list { list-style: none; margin: 0; padding: 0; }
.patch-destination-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.patch-destination-list li {
  display: flex; flex-direction: column; gap: 4px; padding: 13px 15px;
  border: 1px solid rgba(185, 255, 63, .15); border-radius: 12px; background: rgba(185, 255, 63, .035);
}
.patch-destination-name { font-weight: 650; overflow-wrap: anywhere; }
.patch-destination-channel { color: var(--muted); font-size: 13px; }
.patch-state-panel {
  padding: clamp(20px, 3vw, 28px); border: 1px solid rgba(185, 255, 63, .23);
  border-radius: 18px; background: linear-gradient(145deg, rgba(29, 48, 24, .62), rgba(9, 16, 10, .82));
}
.patch-state-panel h2 { margin-bottom: 8px; font-size: 22px; }
.patch-state-panel > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.patch-state-panel.is-pending { border-color: rgba(228, 190, 104, .42); }
.patch-uncertain-note { padding-left: 12px; border-left: 2px solid #d8b65d; }
.patch-confirm-form { margin-top: 20px; }
.patch-result-list { display: grid; gap: 8px; margin-top: 18px; }
.patch-result-row {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px;
  border: 1px solid rgba(185, 255, 63, .14); border-radius: 12px; background: rgba(3, 8, 4, .34);
}
.patch-result-row.is-failed { border-color: rgba(218, 55, 60, .34); }
.patch-result-main, .patch-result-outcome { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.patch-result-main span, .patch-result-error { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.patch-result-status { color: var(--accent); font-size: 13px; font-weight: 700; }
.patch-result-row.is-failed .patch-result-status, .patch-result-error { color: #ffaaa6; }
.patch-result-outcome a, .patch-page-links a { color: var(--accent); font-size: 13px; }
.patch-page-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; }
.patch-empty {
  display: flex; flex-direction: column; gap: 5px; padding: 18px;
  border: 1px dashed rgba(185, 255, 63, .24); border-radius: 14px; color: var(--muted);
}
.patch-empty strong { color: var(--text); }
.owner-patch-cta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0 22px;
}
.owner-patch-cta span { color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
  .patch-notes-header { align-items: flex-start; flex-direction: column; }
  .patch-server-row { grid-template-columns: minmax(0, 1fr); }
  .patch-server-unavailable, .patch-server-error { grid-column: auto; }
  .patch-form-footer, .patch-result-row { align-items: stretch; flex-direction: column; }
  .patch-form-footer button { width: 100%; }
  .patch-result-outcome { align-items: flex-start; }
}

.automation-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}

/* ── Collapsible nav groups ──────────────────────────────────── */
.nav-group {
  display: block;
}

.nav-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(165, 180, 159, .55);
  padding: 10px 15px 6px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  border-radius: 10px;
  transition: color .18s ease, background .18s ease;
}

.nav-section::-webkit-details-marker {
  display: none;
}

.nav-section:hover {
  color: var(--text);
  background: rgba(185, 255, 63, .06);
}

.nav-section-chevron {
  font-size: 14px;
  line-height: 1;
  transition: transform .18s ease, color .18s ease;
}

.nav-group[open] .nav-section {
  color: var(--muted);
}

.nav-group[open] .nav-section-chevron {
  transform: rotate(90deg);
  color: var(--accent);
}

.nav-group-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 1px;
}

/* ── Setup area cards ────────────────────────────────────────── */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 14px 42px;
  border: 1px solid rgba(185, 255, 63, .16);
  border-radius: 16px;
  background: rgba(185, 255, 63, .03);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.area-card:hover {
  background: rgba(185, 255, 63, .08);
  border-color: rgba(185, 255, 63, .35);
}

.area-card:has(input:checked) {
  background: rgba(185, 255, 63, .1);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(185, 255, 63, .18), 0 4px 18px rgba(0,0,0,.18);
}

.area-card input[type="checkbox"] {
  position: absolute;
  top: 16px;
  left: 14px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.area-card-icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 2px;
}

.area-card-title {
  font-weight: 700;
  font-size: 15px;
}

.area-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* ── Toggle-style checkbox labels ────────────────────────────── */
.toggle-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 260px;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.toggle-field input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── Advanced setup disclosure ───────────────────────────────── */
.setup-advanced summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.setup-advanced summary::-webkit-details-marker { display: none; }

.setup-advanced summary::before {
  content: '▸';
  font-size: 12px;
  color: var(--muted);
  transition: transform .18s ease;
}

.setup-advanced[open] summary::before {
  transform: rotate(90deg);
}

/* ── Form layout ─────────────────────────────────────────────── */
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.form-row > * { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 7px; flex: 1 1 240px; min-width: 0; }
.field small { line-height: 1.4; }
.role-picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
select[multiple] { min-height: 150px; }

/* ── Grant list ──────────────────────────────────────────────── */
.grant-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.grant-card {
  background:
    linear-gradient(145deg, rgba(29, 48, 24, .76), rgba(9, 16, 10, .92)),
    var(--bg-card);
  border: 1px solid rgba(185, 255, 63, .17);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(235, 255, 211, .04);
}

.grant-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(185, 255, 63, .1);
}

.grant-scope {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.grant-scope-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(185, 255, 63, .12);
  border: 1px solid rgba(185, 255, 63, .35);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
}

.grant-cmd {
  display: inline-block;
  background: rgba(185, 255, 63, .06);
  border: 1px solid rgba(185, 255, 63, .18);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  color: var(--accent);
}

.grant-scope-more {
  font-size: 12px;
  color: var(--muted);
}

.grant-edit-form {
  min-width: 0;
}

.grant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* ── Grant empty state ───────────────────────────────────────── */
.grant-empty {
  text-align: center;
  padding: 44px 24px 36px;
  margin-bottom: 28px;
  background:
    linear-gradient(145deg, rgba(29, 48, 24, .5), rgba(9, 16, 10, .6)),
    var(--bg-card);
  border: 1px dashed rgba(185, 255, 63, .2);
  border-radius: 20px;
  color: var(--muted);
}

.grant-empty-icon {
  font-size: 38px;
  margin-bottom: 10px;
  line-height: 1;
}

.grant-empty p { margin: 0 0 6px; max-width: 440px; margin-left: auto; margin-right: auto; }
.grant-empty strong { color: var(--text); }

/* ── Command picker ──────────────────────────────────────────── */
.command-picker {
  border: 0;
  padding: 0;
  margin: 16px 0 8px;
}

.command-picker legend {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0;
}

/* "All commands" banner toggle */
.command-all-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(185, 255, 63, .2);
  border-radius: 14px;
  background: rgba(185, 255, 63, .04);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
  margin-bottom: 10px;
  width: 100%;
}

.command-all-banner:hover {
  background: rgba(185, 255, 63, .09);
  border-color: rgba(185, 255, 63, .4);
}

.command-all-banner--on {
  background: rgba(185, 255, 63, .13);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(185, 255, 63, .15), 0 4px 18px rgba(0, 0, 0, .18);
}

.command-all-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.command-all-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.command-all-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.command-all-check {
  font-size: 16px;
  color: var(--accent);
  font-weight: 700;
}

/* Specific command chips grid */
.command-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 7px;
  transition: opacity .2s ease;
}

.command-chips--dimmed {
  opacity: .35;
  pointer-events: none;
}

.command-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid rgba(185, 255, 63, .14);
  border-radius: 11px;
  background: rgba(185, 255, 63, .03);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.command-option:hover {
  background: rgba(185, 255, 63, .09);
  border-color: rgba(185, 255, 63, .32);
  color: var(--text);
}

.command-option--on,
.command-option:has(input:checked) {
  background: rgba(185, 255, 63, .12);
  border-color: var(--accent);
  color: var(--text);
}

.command-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.command-slash {
  color: rgba(185, 255, 63, .55);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.command-picker-compact {
  margin: 0 0 10px;
}

.access-edit-form {
  min-width: 0;
}

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

button, select, input, textarea { touch-action: manipulation; }
button:focus-visible, a:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(88, 101, 242, .55);
  outline-offset: 2px;
}

.flash {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 14px;
}

.flash-success { background: rgba(35, 165, 89, .15); border: 1px solid var(--success); }
.flash-error { background: rgba(218, 55, 60, .15); border: 1px solid var(--danger); }

.muted { color: var(--muted); }
code { background: rgba(185, 255, 63, .09); color: #d9ffad; padding: 2px 6px; border-radius: 7px; font-size: 13px; }

@media (max-width: 860px) {
  .dashboard-shell.has-sidebar {
    display: block;
  }

  .dashboard-shell.has-sidebar .nav {
    min-height: 0;
    position: static;
    flex-direction: row;
    gap: 6px;
    padding: 8px 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(185, 255, 63, .13);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-shell.has-sidebar .nav-link {
    width: auto;
    flex: 0 0 auto;
  }

  .has-sidebar .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 24px 64px;
  }
}

/* Multi-server picker */
.guild-list { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 16px auto 0; }
.guild-list .btn-block { width: 100%; text-align: left; }
.guild-item { margin: 0; }
.guild-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 14px; text-align: left; cursor: pointer;
   background: linear-gradient(135deg, rgba(29, 48, 24, .8), rgba(9, 16, 10, .92)); color: inherit; border: 1px solid rgba(185, 255, 63, .16); border-radius: 18px;
  font: inherit;
}
.guild-card:hover { background: linear-gradient(135deg, rgba(49, 78, 35, .86), rgba(9, 16, 10, .94)); border-color: var(--accent); }
.guild-card-last { border-color: var(--accent); box-shadow: 0 0 20px rgba(185, 255, 63, .12); }
.guild-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover;
}
.guild-icon-fallback {
  display: inline-flex; align-items: center; justify-content: center;
   background: linear-gradient(135deg, var(--accent), #4d9e29); color: #071006; font-weight: 700; font-size: 14px;
}
.guild-card-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guild-card-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guild-search {
  display: block; width: 100%; max-width: 420px; margin: 16px auto 0;
   padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(185, 255, 63, .2);
   background: rgba(3, 8, 4, .84); color: inherit; font: inherit;
}
.guild-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(185, 255, 63, .1); }
.guild-search-empty { margin-top: 12px; }
.guild-switch { color: var(--muted, #949ba4); text-decoration: none; margin-left: 6px; }
.guild-switch:hover { color: #fff; }

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    padding: 12px 14px;
  }

  .brand {
    flex: 1 1 100%;
    font-size: 16px;
  }

  .userbox {
    width: 100%;
    justify-content: flex-end;
    font-size: 13px;
  }

  .nav {
    gap: 6px;
    padding: 8px 12px;
    scroll-padding-inline: 12px;
  }

  .nav-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
  }

  .container {
    padding: 22px 14px 42px;
  }

  .has-sidebar .container {
    padding: 22px 14px 42px;
  }

  h1 {
    margin-top: 0;
    font-size: 24px;
    line-height: 1.2;
  }

  h2 { font-size: 17px; }

  .hero {
    padding: 52px 6px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .grid,
  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 15px;
    margin-bottom: 14px;
    border-radius: 9px;
  }

  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }

  .form-row > *,
  .form-row label,
  .form-row .btn,
  .form-row select,
  .form-row input {
    width: 100%;
  }

  .role-picker-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .command-chips {
    grid-template-columns: 1fr 1fr;
  }

  .grant-card {
    padding: 16px;
    border-radius: 16px;
  }

  .grant-header {
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .command-all-banner {
    padding: 11px 13px;
  }

  .command-all-sub {
    display: none;
  }

  select,
  input[type="search"],
  input[type="text"],
  input[type="url"],
  input[type="number"],
  input[type="time"],
  textarea,
  .btn {
    font-size: 16px;
  }

  select,
  input[type="search"],
  input[type="text"],
  input[type="url"],
  input[type="number"],
  input[type="time"],
  .btn {
    min-height: 44px;
  }

  textarea {
    min-height: 110px;
  }

  .rules-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rules-table th,
  .rules-table td {
    padding: 9px 8px;
  }

  .rules-table td:nth-child(2) {
    min-width: 250px;
  }

  .rules-table .btn {
    min-height: 40px;
  }

  .rule-reorder-card {
    padding: 15px;
  }

  .rule-reorder-header {
    gap: 12px;
  }

  .rule-reorder-count {
    min-width: 58px;
    min-height: 58px;
    border-radius: 14px;
  }

  .rule-reorder-count strong {
    font-size: 21px;
  }

  .rule-reorder-row {
    grid-template-columns: 30px 16px 58px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }

  .rule-reorder-input {
    width: 58px;
  }

  .rule-reorder-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .rule-reorder-actions {
    width: 100%;
  }

  .rule-reorder-actions .btn {
    flex: 1;
  }

  .area-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .area-card {
    padding: 12px 12px 12px 38px;
    border-radius: 13px;
  }

  .area-card-icon { font-size: 18px; }
  .area-card-title { font-size: 14px; }

  .toggle-field {
    flex: 1 1 100%;
  }

  .automation-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .guild-list {
    max-width: none;
  }

  .guild-card {
    min-height: 62px;
    padding: 10px 12px;
  }

  .guild-search {
    max-width: none;
    min-height: 44px;
    font-size: 16px;
  }
}

/* ── Member support routes ─────────────────────────────────────── */
.support-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 4px 0 24px;
  padding: 0 0 21px;
  border-bottom: 1px solid rgba(185, 255, 63, .16);
}
.support-page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(27px, 4vw, 36px);
  letter-spacing: -.035em;
  background: linear-gradient(110deg, #f4ffdf 12%, var(--accent) 72%, #72c832 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.support-page-header > div:first-child > p:last-child {
  margin: 0;
  max-width: 580px;
  color: var(--muted);
}
.support-route-count {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 80px;
  padding: 10px;
  border: 1px solid rgba(185, 255, 63, .24);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(185, 255, 63, .12), rgba(185, 255, 63, .025));
}
.support-route-count strong { color: var(--accent); font-size: 27px; line-height: 1; }
.support-route-count span { margin-top: 6px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.support-privacy {
  margin-bottom: 32px;
  padding: 20px 22px 17px;
  border: 1px solid rgba(185, 255, 63, .2);
  border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(185, 255, 63, .07), transparent 58%),
    rgba(8, 16, 9, .72);
}
.support-privacy-lead { display: flex; align-items: center; gap: 14px; }
.support-privacy-rule { align-self: stretch; width: 3px; border-radius: 5px; background: var(--accent); }
.support-privacy-lead .eyebrow { margin-bottom: 3px; }
.support-privacy-lead h2 { margin: 0; }
.support-privacy-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
  margin: 20px 0 14px;
  padding: 0;
  list-style: none;
}
.support-privacy-points li {
  position: relative;
  padding-left: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.support-privacy-points li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.support-privacy-points strong { color: var(--text); font-weight: 650; }
.support-privacy-footnote {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(185, 255, 63, .12);
  color: var(--muted);
  font-size: 12px;
}
.support-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 14px;
}
.support-section-heading h2 { margin: 0; font-size: 20px; }
.support-section-heading p { max-width: 430px; margin: 0; font-size: 13px; text-align: right; }
.support-route {
  padding: 20px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.support-route:hover { border-color: rgba(185, 255, 63, .32); transform: translateY(-1px); }
.support-route-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.support-route-heading .eyebrow { margin: 0 0 4px; }
.support-route-heading h2 { margin: 0; font-size: 19px; }
.support-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(185, 255, 63, .23);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}
.support-status > span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.support-status-warning { color: #e5b7a0; border-color: rgba(218, 129, 91, .3); }
.support-status-warning > span { background: #e5b7a0; }
.support-route-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
  padding: 13px 14px;
  border: 1px solid rgba(185, 255, 63, .1);
  border-radius: 13px;
  background: rgba(3, 8, 4, .36);
}
.support-route-details dt { margin-bottom: 5px; color: var(--muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.support-route-details dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.support-route-details dd small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.support-channel { color: var(--text); }
.support-missing { color: #ffb0a7; }
.support-missing code { margin-left: 3px; color: #ffc3bc; background: rgba(218, 55, 60, .14); }
.support-warning {
  margin: 0 0 13px;
  padding: 10px 12px;
  border: 1px solid rgba(218, 129, 91, .3);
  border-radius: 11px;
  background: rgba(218, 129, 91, .075);
  color: #e5b7a0;
  font-size: 13px;
  line-height: 1.45;
}
.support-edit-form { padding: 15px; border: 1px solid rgba(185, 255, 63, .12); border-radius: 14px; background: rgba(3, 8, 4, .26); }
.support-fields { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(220px, 1.2fr); gap: 13px; }
.support-fields .field input, .support-fields .field select,
.support-create-option .field input, .support-create-option .field select { width: 100%; }
.support-fields .searchable-select { width: 100%; min-width: 0; }
.support-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
}
.support-form-footer small { font-size: 11px; }
.support-disable-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 3px 0;
  border-top: 1px solid rgba(185, 255, 63, .1);
}
.support-disable-form > div { display: flex; flex-direction: column; gap: 3px; }
.support-disable-form strong { font-size: 13px; font-weight: 600; }
.support-disable-form small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.support-create { margin-top: 28px; padding: 22px; }
.support-create .support-section-heading { margin-top: 0; }
.support-create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.support-create-option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(185, 255, 63, .14);
  border-radius: 15px;
  background: rgba(3, 8, 4, .3);
  transition: border-color .18s ease, background .18s ease;
}
.support-create-option:hover { border-color: rgba(185, 255, 63, .3); background: rgba(185, 255, 63, .025); }
.support-option-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 2px; }
.support-option-index {
  display: inline-flex;
  flex: 0 0 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(185, 255, 63, .26);
  border-radius: 10px;
  background: rgba(185, 255, 63, .08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}
.support-option-heading h3 { margin: 0 0 3px; font-size: 15px; }
.support-option-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.support-create-option .field { flex: initial; gap: 6px; font-size: 13px; }
.support-create-option .field > span { font-size: 12px; font-weight: 600; }
.support-create-option .searchable-select { width: 100%; min-width: 0; }
.support-create-option > .btn { align-self: flex-start; margin-top: 2px; }
.support-empty {
  padding: 36px 20px;
  text-align: center;
  border: 1px dashed rgba(185, 255, 63, .2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(29, 48, 24, .4), rgba(9, 16, 10, .55));
}
.support-empty-mark {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 13px;
  border: 1px solid rgba(185, 255, 63, .4);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(185, 255, 63, .18), rgba(185, 255, 63, .025));
  transform: rotate(45deg);
}
.support-empty h2 { margin: 0 0 7px; font-size: 18px; }
.support-empty p:last-child { max-width: 480px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.5; }
.support-route .btn:disabled,
.support-create-option .btn:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }

@media (max-width: 760px) {
  .support-privacy-points { grid-template-columns: 1fr; gap: 9px; }
  .support-create-grid { grid-template-columns: 1fr; }
  .support-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .support-section-heading p { text-align: left; }
}
@media (max-width: 560px) {
  .support-page-header { align-items: flex-start; }
  .support-route-count { min-width: 75px; min-height: 68px; }
  .support-route-details { grid-template-columns: 1fr; gap: 10px; }
  .support-fields { grid-template-columns: 1fr; }
  .support-form-footer { align-items: flex-start; flex-direction: column; }
  .support-disable-form { align-items: flex-start; flex-direction: column; }
  .support-create, .support-route { padding: 15px; }
  .support-create-option { padding: 14px; }
}

/* Shared page introductions: the Support page's editorial header and guidance panel,
   carried through the rest of the server-rendered dashboard. */
.dashboard-page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 4px 0 18px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(185, 255, 63, .16);
}
.dashboard-page-intro h1 {
  margin: 0 0 8px;
  font-size: clamp(27px, 4vw, 36px);
  letter-spacing: -.035em;
  background: linear-gradient(110deg, #f4ffdf 12%, var(--accent) 72%, #72c832 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dashboard-page-intro > div:first-child > p:last-child {
  margin: 0;
  max-width: 610px;
  color: var(--muted);
}
.dashboard-page-intro-count {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(185, 255, 63, .24);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(185, 255, 63, .12), rgba(185, 255, 63, .025));
  color: var(--accent);
}
.dashboard-page-intro-count strong { font-size: 22px; line-height: 1.1; }
.dashboard-page-intro-count span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.dashboard-page-guidance {
  position: relative;
  margin: 0 0 28px;
  padding: 18px 21px 17px 23px;
  border: 1px solid rgba(185, 255, 63, .2);
  border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(185, 255, 63, .07), transparent 58%),
    rgba(8, 16, 9, .72);
}
.dashboard-page-guidance::before {
  content: "";
  position: absolute;
  inset: 18px auto 18px 0;
  width: 3px;
  border-radius: 5px;
  background: var(--accent);
}
.dashboard-page-guidance .eyebrow { margin: 0 0 4px; }
.dashboard-page-guidance h2 { margin: 0 0 7px; font-size: 17px; }
.dashboard-page-guidance p { margin: 0; max-width: 850px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.dashboard-page-guidance ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 25px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}
.dashboard-page-guidance li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.dashboard-page-guidance li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.dashboard-page-guidance strong { color: var(--text); font-weight: 650; }
.dashboard-page-content > h1:first-child { display: none; }
.dashboard-page-content > h1:first-child + p { margin: 0 0 20px; }
.dashboard-page-content > .card > h2,
.dashboard-page-content > .grid .card > h2 { letter-spacing: -.02em; }
.guild-picker-intro { margin-bottom: 24px; }
.guild-picker-intro .dashboard-page-intro { justify-content: center; }
.guild-picker-intro .dashboard-page-intro > div { text-align: center; }
.guild-picker-intro .dashboard-page-intro > div:first-child > p:last-child { margin-inline: auto; }
.guild-picker-intro .dashboard-page-guidance { max-width: 680px; margin-inline: auto; text-align: left; }
.owner-page-intro { margin-bottom: 24px; }
.owner-page-intro .dashboard-page-intro { justify-content: flex-start; }
.danger-guidance { border-color: rgba(218, 129, 91, .32); }
.danger-guidance::before { background: #e5b7a0; }
.owner-server-table { overflow-x: auto; }
.owner-server-table table { min-width: 720px; }

@media (max-width: 760px) {
  .dashboard-page-guidance ul { grid-template-columns: 1fr; gap: 7px; }
}
@media (max-width: 560px) {
  .dashboard-page-intro { align-items: flex-start; gap: 13px; }
  .dashboard-page-intro > div:first-child { min-width: 0; }
  .dashboard-page-intro-count { min-width: 76px; max-width: 108px; min-height: 68px; }
  .dashboard-page-intro-count strong { font-size: 16px; }
  .dashboard-page-intro-count span { overflow-wrap: anywhere; }
  .dashboard-page-guidance { padding: 16px 15px 15px 19px; }
  .owner-page-intro .dashboard-page-intro { flex-direction: column; }
}
