:root {
  color-scheme: dark;
  --background: #071226;
  --surface: #0d1b34;
  --surface-alt: #132544;
  --surface-raised: #10213d;
  --border: #223a63;
  --border-soft: rgba(182, 196, 218, 0.14);
  --primary: #4e8fea;
  --primary-hover: #5a9af0;
  --accent: #d96a1b;
  --accent-soft: #e07b34;
  --text: #f3f6fb;
  --text-secondary: #b6c4da;
  --text-muted: #8b9bb5;
  --table-text: #cad6e8;
  --table-header-text: #d7e1ef;
  --success: #3baa6b;
  --warning: #d9a441;
  --danger: #c45454;
  --info: #5a9af0;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(1, 7, 19, 0.34);
  --shadow-soft: 0 10px 28px rgba(1, 7, 19, 0.22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

body::selection {
  background: rgba(78, 143, 234, 0.35);
}

.site-header {
  background: rgba(7, 18, 38, 0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(1, 7, 19, 0.24);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 16px 28px;
}

.guild-name {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: 15px;
  font-weight: 750;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: #09162b;
  border: 2px solid rgba(243, 246, 251, 0.92);
  border-radius: var(--radius);
  box-shadow: 0 0 0 3px rgba(78, 143, 234, 0.12);
  color: #ffffff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 850;
  height: 38px;
  justify-content: center;
  line-height: 1;
  isolation: isolate;
  overflow: hidden;
  padding: 3px;
  position: relative;
  width: 38px;
}

.brand-logo {
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.brand-logo:not([hidden]) + .brand-mark-text {
  display: none;
}

.brand-mark-text {
  position: relative;
  text-shadow: 0 1px 8px rgba(7, 18, 38, 0.35);
  z-index: 1;
}

nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 650;
  padding: 8px 12px;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

nav a:hover,
nav a:focus-visible {
  background: rgba(78, 143, 234, 0.12);
  border-color: rgba(78, 143, 234, 0.28);
  color: var(--text);
  outline: none;
}

nav a.active {
  background: rgba(78, 143, 234, 0.18);
  border-color: rgba(78, 143, 234, 0.55);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(243, 246, 251, 0.03);
}

.page-shell {
  margin: 0 auto;
  max-width: 1240px;
  padding: 42px 28px 54px;
}

.page-heading {
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--text);
  letter-spacing: 0;
}

h1 {
  font-size: 42px;
  line-height: 1.08;
  margin: 0;
}

h2 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 16px;
}

p {
  color: var(--text-secondary);
}

.panel,
.stat-card,
.dashboard-actions,
.feedback-panel,
.table-panel,
.notice,
.admin-panel,
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.panel {
  padding: 24px;
}

.stats-grid,
.settings-grid,
.admin-link-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.tb-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 0;
}

.stat-card {
  min-height: 122px;
  padding: 20px;
  position: relative;
}

.stat-card::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 20px;
  opacity: 0.78;
  position: absolute;
  top: 18px;
  width: 34px;
}

.stat-card span,
.label,
.detail-list dt,
.settings-form label span {
  color: var(--text-muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-card span {
  padding-top: 12px;
}

.stat-card strong {
  color: var(--text);
  display: block;
  font-size: 28px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.stat-card small {
  color: var(--text-secondary);
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  margin-top: 8px;
}

.dashboard-actions {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px;
}

.feedback-panel {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(220px, 0.9fr) minmax(320px, 1.1fr);
  padding: 20px;
}

.feedback-intro {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.feedback-pond-image {
  background: #09162b;
  border: 2px solid rgba(243, 246, 251, 0.9);
  border-radius: var(--radius);
  display: block;
  flex: 0 0 auto;
  height: 96px;
  object-fit: contain;
  padding: 8px;
  width: 96px;
}

.feedback-bubble {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 650;
  margin: 0;
  min-width: 0;
  padding: 14px 16px;
  position: relative;
}

.feedback-bubble::before {
  border-bottom: 9px solid transparent;
  border-right: 12px solid var(--border);
  border-top: 9px solid transparent;
  content: "";
  left: -12px;
  position: absolute;
  top: 34px;
}

.feedback-bubble::after {
  border-bottom: 8px solid transparent;
  border-right: 11px solid var(--surface-alt);
  border-top: 8px solid transparent;
  content: "";
  left: -10px;
  position: absolute;
  top: 35px;
}

.feedback-form {
  display: grid;
  gap: 12px;
}

.feedback-form label:not(.feedback-honeypot) {
  display: grid;
  gap: 8px;
}

.feedback-form label span {
  color: var(--text-muted);
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.feedback-form input,
.feedback-form textarea {
  background: #09162b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  padding: 12px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
  width: 100%;
}

.feedback-form input {
  min-height: 42px;
}

.feedback-form textarea {
  min-height: 132px;
  resize: vertical;
}

.feedback-form input:hover,
.feedback-form textarea:hover {
  border-color: rgba(90, 154, 240, 0.55);
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  background: #0b1a32;
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px rgba(78, 143, 234, 0.22);
  outline: none;
}

.feedback-form .button {
  justify-self: start;
}

.feedback-honeypot {
  height: 1px;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
button.button {
  align-items: center;
  background: var(--primary);
  border: 1px solid rgba(90, 154, 240, 0.8);
  border-radius: var(--radius);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.button:hover,
button.button:hover,
.button:focus-visible,
button.button:focus-visible {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 10px 26px rgba(78, 143, 234, 0.22);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(78, 143, 234, 0.12);
  border-color: rgba(90, 154, 240, 0.62);
  color: var(--text);
}

.button.danger {
  background: var(--danger);
  border-color: rgba(196, 84, 84, 0.82);
}

.button.danger:hover,
.button.danger:focus-visible {
  background: #d46868;
  border-color: #d46868;
}

.notice {
  margin-bottom: 20px;
  padding: 16px;
}

.notice-error {
  background: rgba(196, 84, 84, 0.14);
  border-color: rgba(196, 84, 84, 0.65);
  color: #ffd7d7;
}

.notice-success {
  background: rgba(59, 170, 107, 0.14);
  border-color: rgba(59, 170, 107, 0.65);
  color: #c5f3d8;
}

.notice-warning {
  background: rgba(240, 200, 108, 0.12);
  border-color: rgba(240, 200, 108, 0.62);
  color: #ffe7a8;
}

.table-panel {
  margin-bottom: 20px;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap:focus-visible { border-radius: var(--radius); outline: 2px solid rgba(90, 154, 240, 0.75); outline-offset: -2px; }
.leaderboard-heading, .checkpoint-links { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 0 24px 18px; }
.leaderboard-heading p, .checkpoint-links { color: var(--text-muted); margin: 0; }
.checkpoint-links a[aria-current="page"] { color: var(--text); font-weight: 800; }
.section-help { color: var(--text-muted); padding: 0 24px; }
.compact-stats { padding: 0 24px 20px; }
.stat-card small { color: var(--text-muted); display: block; margin-top: 4px; }
.leaderboard-table-wrap th:first-child, .leaderboard-table-wrap td:first-child,
.leaderboard-table-wrap th:nth-child(2), .leaderboard-table-wrap td:nth-child(2) { white-space: nowrap; }

.table-subsection {
  border-top: 1px solid var(--border-soft);
}

.table-subsection:first-of-type {
  border-top: 0;
}

.table-subsection h3 {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 850;
  margin: 0;
  padding: 18px 24px;
}

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

th,
td {
  border-bottom: 1px solid var(--border-soft);
  padding: 13px 15px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: var(--surface-alt);
  color: var(--table-header-text);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  color: var(--table-text);
  font-size: 14px;
  font-weight: 520;
}

tbody tr {
  transition: background-color 120ms ease;
}

tbody tr:hover {
  background: rgba(78, 143, 234, 0.08);
}

tbody tr:last-child td {
  border-bottom: 0;
}

th button {
  all: unset;
  align-items: center;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 6px;
  min-height: 24px;
}

th button:hover {
  color: var(--text);
}

th button:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(90, 154, 240, 0.75);
  outline-offset: 3px;
}

th[aria-sort="ascending"],
th[aria-sort="descending"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--primary);
}

th[aria-sort="ascending"] button::after {
  color: var(--primary-hover);
  content: "^";
  font-size: 12px;
}

th[aria-sort="descending"] button::after {
  color: var(--primary-hover);
  content: "v";
  font-size: 12px;
}

a {
  color: var(--primary-hover);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--text);
}

.status {
  align-items: center;
  background: rgba(139, 155, 181, 0.12);
  border: 1px solid rgba(139, 155, 181, 0.42);
  border-radius: 999px;
  color: var(--text-secondary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 10px;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-success,
.status-completed,
.status-sent,
.status-awarded,
.status-supports-candidate {
  background: rgba(59, 170, 107, 0.14);
  border-color: rgba(59, 170, 107, 0.62);
  color: #c5f3d8;
}

.status-partial-success,
.status-pending,
.status-dry-run,
.status-info,
.status-warning,
.status-skipped,
.status-waived,
.status-no-logs-available,
.status-not-applicable,
.status-not-checked {
  background: rgba(217, 164, 65, 0.14);
  border-color: rgba(217, 164, 65, 0.62);
  color: #f6dfaa;
}

.status-failed,
.status-danger,
.status-confirmed,
.status-contradicts-candidate {
  background: rgba(196, 84, 84, 0.16);
  border-color: rgba(196, 84, 84, 0.68);
  color: #ffd0d0;
}

.status-running,
.status-voided {
  background: rgba(90, 154, 240, 0.14);
  border-color: rgba(90, 154, 240, 0.65);
  color: #d7e8ff;
}

.count-badge {
  align-items: center;
  background: rgba(59, 170, 107, 0.14);
  border: 1px solid rgba(59, 170, 107, 0.52);
  border-radius: 999px;
  color: #c5f3d8;
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  justify-content: center;
  min-width: 32px;
  padding: 5px 9px;
}

.count-badge-warning {
  background: rgba(196, 84, 84, 0.16);
  border-color: rgba(196, 84, 84, 0.62);
  color: #ffd0d0;
}

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

footer {
  color: var(--text-muted);
  font-size: 13px;
  padding: 28px;
  text-align: center;
}

.admin-panel {
  margin-bottom: 20px;
  padding: 20px;
}

.admin-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.admin-card {
  color: var(--text-secondary);
  display: block;
  min-height: 132px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.admin-card:hover,
.admin-card:focus-visible {
  border-color: rgba(90, 154, 240, 0.62);
  box-shadow: 0 12px 30px rgba(78, 143, 234, 0.18);
  color: var(--text-secondary);
  outline: none;
  transform: translateY(-1px);
}

.admin-card span {
  color: var(--text);
  display: block;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-card p {
  margin: 0;
}

.detail-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.detail-list div {
  background: rgba(19, 37, 68, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  min-width: 0;
  padding: 14px;
}

.detail-list dd {
  color: var(--text);
  margin: 0;
  overflow-wrap: anywhere;
}

.settings-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.officer-auth-panel {
  max-width: 36rem;
}

.officer-auth-help,
.officer-session-panel p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.officer-session-panel,
.officer-session-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.officer-session-actions form {
  margin: 0;
}

.settings-form label {
  display: grid;
  gap: 8px;
}

.settings-form input,
.settings-form select {
  background: #09162b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  min-height: 42px;
  padding: 9px 11px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.settings-form input:hover,
.settings-form select:hover {
  border-color: rgba(90, 154, 240, 0.55);
}

.settings-form input:focus,
.settings-form select:focus {
  background: #0b1a32;
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px rgba(78, 143, 234, 0.22);
  outline: none;
}

.settings-form input[type="checkbox"] {
  accent-color: var(--primary);
}

.check-row {
  align-items: center;
  display: flex !important;
  gap: 10px;
}

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

.check-row span {
  color: var(--text-secondary);
  margin: 0;
}

.settings-help {
  color: var(--text-muted);
  font-size: 13px;
  margin: -10px 0 2px 28px;
}

.officer-account-transition {
  background: rgba(78, 143, 234, 0.12);
  border-color: rgba(90, 154, 240, 0.52);
  color: var(--text-secondary);
}

.officer-account-transition strong {
  color: var(--text);
}

.officer-account-help {
  color: var(--text-muted);
  margin: 0 0 16px;
}

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

.officer-account-card {
  background: rgba(19, 37, 68, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  min-width: 0;
  padding: 18px;
}

.officer-account-card > header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.officer-account-card h3,
.officer-account-card h4,
.officer-account-card p {
  overflow-wrap: anywhere;
}

.officer-account-card h3,
.officer-account-card h4 {
  margin: 0;
}

.officer-account-card .eyebrow {
  margin-bottom: 4px;
}

.officer-account-form {
  border-top: 1px solid var(--border-soft);
  margin-top: 16px;
  max-width: none;
  padding-top: 16px;
}

.officer-account-form .officer-account-help {
  font-size: 13px;
  margin: -8px 0 0;
}

.officer-account-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.officer-account-details div {
  min-width: 0;
}

.officer-account-details dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.officer-account-details dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.officer-account-actions {
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
}

.officer-account-actions form,
.officer-account-actions .button {
  min-width: 0;
}

.status-muted {
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .officer-account-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .officer-account-card > header,
  .officer-account-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .officer-account-actions form,
  .officer-account-actions .button {
    width: 100%;
  }
}

.action-help {
  margin: 0 0 14px;
  max-width: 760px;
}

.notification-settings-form {
  max-width: 760px;
}

.notification-test-actions form {
  margin: 0;
}

.official-filter-form.notification-filter-form {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.current-notifications-table {
  min-width: 980px;
}

.current-notifications-table th,
.current-notifications-table td {
  vertical-align: top;
}

.current-notifications-table td {
  overflow-wrap: anywhere;
}

.muted-action {
  color: var(--text-muted);
  display: inline-block;
  font-size: 13px;
  padding: 8px 0;
}

.notification-template-form textarea {
  min-height: 300px;
  resize: vertical;
}

.placeholder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.placeholder-list code {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  padding: 6px 8px;
}

.notification-template-preview pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  overflow-x: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.notification-log-table {
  min-width: 0;
  table-layout: fixed;
}

.notification-log-table th,
.notification-log-table td {
  padding: 9px 11px;
  vertical-align: top;
}

.notification-log-table th:nth-child(1) {
  width: 13%;
}

.notification-log-table th:nth-child(2) {
  width: 15%;
}

.notification-log-table th:nth-child(3),
.notification-log-table th:nth-child(4) {
  width: 9%;
}

.notification-log-table th:nth-child(5) {
  width: 20%;
}

.notification-log-table th:nth-child(6) {
  width: 10%;
}

.notification-log-table th:nth-child(7) {
  width: 15%;
}

.notification-log-table th:nth-child(8) {
  width: 9%;
}

.notification-log-table td {
  overflow-wrap: anywhere;
}

.cell-stack {
  display: grid;
  gap: 2px;
}

.cell-stack span {
  color: var(--text-muted);
  font-size: 12px;
}

.candidate-key-text {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-panel[aria-label="Run sync now"] {
  background: var(--surface-raised);
  border-color: rgba(217, 106, 27, 0.52);
}

.admin-panel[aria-label="Run sync now"] .button {
  background: var(--accent);
  border-color: var(--accent-soft);
  box-shadow: 0 10px 26px rgba(217, 106, 27, 0.16);
}

.admin-panel[aria-label="Run sync now"] .button:hover,
.admin-panel[aria-label="Run sync now"] .button:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  box-shadow: 0 12px 30px rgba(217, 106, 27, 0.22);
}

.admin-table h2 {
  margin: 0;
  padding: 20px 20px 0;
}

.collapsible-section {
  background: var(--surface);
}

.section-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  padding: 18px 20px;
  text-align: left;
  width: 100%;
}

.section-toggle:hover,
.section-toggle:focus-visible {
  background: rgba(78, 143, 234, 0.08);
  outline: none;
}

.section-toggle:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(90, 154, 240, 0.78);
}

.section-caret {
  color: var(--primary-hover);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.section-title {
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
}

.section-body {
  border-top: 1px solid var(--border-soft);
}

.section-body.is-collapsed {
  display: none;
}

.collapsible-section .empty-state {
  margin: 0;
}

.admin-table .table-wrap {
  margin-top: 16px;
}

.collapsible-section .table-wrap {
  margin-top: 0;
}

.correction-summary {
  margin-bottom: 20px;
}

.compact-correction-table {
  min-width: 0;
  table-layout: fixed;
}

.compact-correction-table th,
.compact-correction-table td {
  overflow-wrap: anywhere;
  padding: 10px 12px;
  vertical-align: middle;
}

.compact-correction-table th:nth-child(1) {
  width: 22%;
}

.compact-correction-table th:nth-child(2),
.compact-correction-table th:nth-child(3) {
  width: 11%;
}

.compact-correction-table th:nth-child(4) {
  width: 13%;
}

.compact-correction-table th:nth-child(5) {
  width: 12%;
}

.compact-correction-table th:nth-child(6) {
  width: 17%;
}

.compact-correction-table th:nth-child(7) {
  width: 14%;
}

.record-player {
  display: grid;
  gap: 2px;
}

.record-player a,
.record-player strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.record-player a:hover,
.record-player a:focus-visible {
  color: var(--primary-hover);
  text-decoration: underline;
}

.record-player span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.record-edit-toggle {
  font-size: 12px;
  min-height: 34px !important;
  padding: 7px 11px !important;
  white-space: nowrap;
}

.record-edit-toggle[aria-expanded="true"] {
  background: var(--primary);
  border-color: var(--primary-hover);
  color: #ffffff;
}

.is-hidden {
  display: none !important;
}

.record-edit-row:not(.is-hidden) {
  display: table-row;
}

.record-edit-cell {
  background: rgba(7, 18, 38, 0.58);
  padding: 12px !important;
}

.record-edit-panel {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.record-edit-grid {
  display: grid;
  align-items: start;
  gap: 16px;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr) minmax(260px, 1fr);
}

.record-info-section,
.record-action-card {
  background: rgba(7, 18, 38, 0.38);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  min-width: 0;
  padding: 12px;
}

.record-info-section {
  align-self: start;
}

.record-action-card {
  border-color: rgba(90, 154, 240, 0.26);
}

.record-notes-card {
  border-color: rgba(139, 155, 181, 0.22);
}

.record-info-section h3,
.record-action-card h3 {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.record-detail-list {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin: 0;
}

.record-detail-list div {
  background: rgba(7, 18, 38, 0.42);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  min-width: 0;
  padding: 8px;
}

.record-detail-list .detail-wide {
  grid-column: 1 / -1;
}

.record-detail-list dt {
  font-size: 11px;
  margin-bottom: 4px;
}

.record-detail-list dd {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.form-stack {
  display: grid;
  gap: 9px;
}

.form-row {
  display: grid;
  gap: 5px;
}

.form-row span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.compact-textarea {
  background: #09162b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  max-width: 100%;
  min-height: 58px;
  min-width: 0;
  padding: 7px 9px;
  resize: vertical;
  width: 100%;
}

.compact-textarea:focus {
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px rgba(78, 143, 234, 0.22);
  outline: none;
}

.record-notes {
  color: var(--table-text);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  margin: 0 0 10px;
  max-height: 100px;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.muted-text {
  color: var(--text-muted);
}

.compact-button {
  min-height: 36px !important;
  padding: 7px 11px !important;
}

.empty-notes {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 10px;
}


.profile-panel {
  margin-bottom: 20px;
}

.profile-actions {
  margin-top: 18px;
}

.profile-raid-history {
  margin-bottom: 20px;
}

.profile-tb-history {
  margin-bottom: 20px;
}

.profile-official-records {
  margin-bottom: 20px;
}

.profile-analytics-section {
  margin-bottom: 24px;
}

.analytics-panel {
  display: grid;
  gap: 22px;
}

.analytics-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.analytics-summary-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 620px;
}

.analytics-summary-item,
.analytics-metric {
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  min-width: 0;
  padding: 14px 16px;
}

.analytics-summary-item dt,
.analytics-metric dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 5px;
}

.analytics-summary-item dd,
.analytics-metric dd {
  color: var(--text);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.15;
  margin: 0;
}

.analytics-score-item {
  border-color: rgba(217, 106, 27, 0.62);
}

.mod-analysis-groups {
  display: grid;
  gap: 18px;
}

.mod-analysis-group h3,
.analytics-subsection h3 {
  color: var(--text);
  font-size: 15px;
  margin: 0 0 10px;
}

.mod-metric-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  margin: 0;
}

.analytics-metric {
  padding: 11px 13px;
}

.analytics-metric dd {
  font-size: 19px;
}

.analytics-subsection {
  min-width: 0;
}

.datacron-level-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(8, minmax(72px, 1fr));
  margin: 0;
}

.datacron-set-table {
  min-width: 0;
  table-layout: fixed;
}

.datacron-set-table th,
.datacron-set-table td {
  padding: 11px 10px;
}

.datacron-set-table th {
  white-space: normal;
}

.datacron-set-table th:first-child {
  text-transform: none;
}

.analytics-help,
.analytics-observed-at {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

.analytics-observed-at {
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
}

.analytics-history-panel {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.analytics-history-heading {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.analytics-history-heading h3,
.weekly-change-section h4 {
  color: var(--text);
  margin: 0;
}

.analytics-history-filters {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.analytics-history-filters label {
  color: var(--text-muted);
  display: grid;
  font-size: 12px;
  font-weight: 750;
  gap: 4px;
}

.analytics-history-filters select {
  min-width: 128px;
}

.history-summary-grid,
.weekly-change-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.history-summary-grid > div,
.weekly-change-grid > div {
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  min-width: 0;
  padding: 12px 14px;
}

.history-summary-grid dt,
.weekly-change-grid dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}

.history-summary-grid dd,
.weekly-change-grid dd {
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
  margin: 4px 0 0;
}

.weekly-change-section {
  display: grid;
  gap: 9px;
}

.weekly-change-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.weekly-change-grid-single {
  grid-template-columns: minmax(160px, 240px);
}

.analytics-history-note {
  background: var(--surface-alt);
  border-left: 3px solid var(--warning);
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
  padding: 10px 12px;
}

.history-chart {
  margin: 0;
}

.history-chart svg {
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  display: block;
  height: auto;
  max-height: 330px;
  width: 100%;
}

.history-chart figcaption {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 6px;
}

.chart-axis {
  stroke: var(--border-strong);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.chart-point {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 3;
}

.chart-point:focus {
  outline: none;
  stroke: var(--text);
  stroke-width: 5;
}

.chart-label {
  fill: var(--text-muted);
  font-size: 11px;
}

.history-points-details summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 750;
}

.history-points-table {
  margin-top: 10px;
  min-width: 340px;
}

.history-points-table th,
.history-points-table td {
  padding: 9px 10px;
}

.profile-future-grid {
  grid-template-columns: minmax(0, 1fr);
}

.official-record-table {
  min-width: 1060px;
}

.official-violation-table {
  min-width: 1320px;
}

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

.panel-heading h2,
.panel-heading .eyebrow {
  margin-bottom: 0;
}

.compact-stats .stat-card {
  min-height: 106px;
  padding: 18px;
}

.compact-stats .stat-card::before {
  left: 18px;
  top: 16px;
}

.compact-stats .stat-card strong {
  font-size: 24px;
}

.ticket-matrix-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ticket-matrix-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.ticket-matrix-heading h3 {
  font-size: 15px;
  margin: 0;
}

.ticket-matrix-count {
  color: var(--text-muted);
  font-size: 12px;
  margin: 2px 0 0;
}

.ticket-matrix-legend {
  align-items: center;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 10px;
}

.ticket-matrix-legend span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.ticket-matrix {
  display: flex;
  gap: 4px;
  min-height: 108px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ticket-week {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
}

.ticket-day {
  background: #f8fafc;
  border: 1px solid rgba(248, 250, 252, 0.72);
  border-radius: 3px;
  display: inline-block;
  flex: 0 0 12px;
  height: 12px;
  min-height: 12px;
  min-width: 12px;
  width: 12px;
}

.ticket-day-full-600 {
  background: var(--success);
  border-color: rgba(59, 170, 107, 0.9);
}

.ticket-day-under-600 {
  background: var(--warning);
  border-color: rgba(217, 164, 65, 0.9);
}

.ticket-day-no-data {
  background: #f8fafc;
  border-color: rgba(248, 250, 252, 0.72);
}

.official-filter-panel {
  padding: 18px;
}

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

.official-filter-heading h2 {
  margin-bottom: 6px;
}

.official-filter-heading p {
  color: var(--text-secondary);
  margin: 0;
}

.official-filter-heading strong {
  color: var(--text);
}

.official-period-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.official-filter-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.official-filter-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.official-filter-form .checkbox-label {
  align-items: center;
  display: flex;
  gap: 9px;
  min-height: 38px;
  padding-top: 22px;
}

.official-filter-form .checkbox-label input {
  flex: 0 0 auto;
  min-height: 0;
  width: auto;
}

.official-filter-form .checkbox-label span {
  margin: 0;
}

.official-filter-form label span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.official-filter-form input,
.official-filter-form select {
  background: #09162b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  min-height: 38px;
  min-width: 0;
  padding: 8px 10px;
  width: 100%;
}

.official-filter-form input:focus,
.official-filter-form select:focus {
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px rgba(78, 143, 234, 0.22);
  outline: none;
}

.official-filter-actions {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tb-zone-filter-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 22px;
}

.member-search-form {
  grid-template-columns: minmax(220px, 420px) auto;
}

.admin-member-filter-form {
  align-items: end;
  grid-template-columns: repeat(3, minmax(140px, 0.8fr)) minmax(250px, 1.25fr);
}

.admin-member-phase-filter {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.admin-member-phase-filter legend {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.admin-member-phase-filter > div {
  align-items: center;
  background: #09162b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  min-height: 38px;
  padding: 5px 10px;
}

.admin-member-phase-filter .checkbox-label {
  gap: 5px;
  min-height: auto;
  padding: 0;
}

.admin-member-search-filter {
  grid-column: span 2;
}

.admin-member-filter-message {
  margin-bottom: 12px;
}

.admin-member-report-heading {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 20px 8px;
}

.admin-member-report-heading h2,
.admin-member-report-heading p {
  margin: 0;
}

.admin-member-report-heading > p {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-member-legend {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  margin: 0;
  padding: 0 20px 14px;
}

.admin-member-table-wrap {
  max-height: min(70vh, 760px);
  max-width: 100%;
  overscroll-behavior-inline: contain;
  overflow: auto;
  scrollbar-gutter: stable both-edges;
}

.admin-member-table-wrap:focus-visible {
  box-shadow: inset 0 0 0 2px var(--primary-hover);
  outline: none;
}

.admin-member-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 2540px;
}

.admin-member-table th,
.admin-member-table td {
  padding: 10px 11px;
}

.admin-member-table td {
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-member-table thead th {
  border-bottom: 1px solid var(--border);
  position: sticky;
  z-index: 3;
}

.admin-member-group-row th {
  background: #172d50;
  height: 46px;
  padding-bottom: 8px;
  padding-top: 8px;
  text-align: center;
  top: 0;
  z-index: 4;
}

.admin-member-table thead tr:nth-child(2) th {
  height: 48px;
  text-align: center;
  top: 46px;
  vertical-align: middle;
  white-space: normal;
}

.admin-member-table thead tr:nth-child(2) th button {
  justify-content: center;
  line-height: 1.2;
  text-align: center;
}

.admin-member-table thead tr:nth-child(2) th:nth-child(1),
.admin-member-table td:nth-child(1) {
  left: 0;
  min-width: 52px;
  position: sticky;
  text-align: center;
  width: 52px;
  z-index: 2;
}

.admin-member-table thead tr:nth-child(2) th:nth-child(2),
.admin-member-table td:nth-child(2) {
  box-shadow: 3px 0 0 rgba(78, 143, 234, 0.34), 8px 0 14px rgba(1, 7, 19, 0.18);
  left: 52px;
  min-width: 220px;
  position: sticky;
  width: 220px;
  z-index: 2;
}

.admin-member-table tbody td:nth-child(1),
.admin-member-table tbody td:nth-child(2) {
  background: var(--surface);
}

.admin-member-table tbody tr:hover td:nth-child(1),
.admin-member-table tbody tr:hover td:nth-child(2) {
  background: var(--surface-raised);
}

.admin-member-table thead tr:nth-child(2) th:nth-child(1),
.admin-member-table thead tr:nth-child(2) th:nth-child(2) {
  background: var(--surface-alt);
  z-index: 6;
}

.admin-member-table .admin-member-row-number-header {
  color: var(--table-header-text);
}

.admin-member-player-cell {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-member-player-cell a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-member-player-cell a:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--primary-hover);
  outline-offset: -2px;
}

.admin-member-metric {
  text-align: right;
}

.admin-member-metric-value {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  justify-content: flex-end;
  min-width: 100%;
}

.admin-member-metric--positive {
  background: rgba(59, 170, 107, 0.07);
  box-shadow: inset 0 -2px 0 rgba(59, 170, 107, 0.44);
}

.admin-member-metric--warning {
  background: rgba(217, 164, 65, 0.07);
  box-shadow: inset 0 -2px 0 rgba(217, 164, 65, 0.46);
}

.admin-member-metric--danger {
  background: rgba(196, 84, 84, 0.08);
  box-shadow: inset 0 -2px 0 rgba(196, 84, 84, 0.48);
}

.admin-member-metric-marker {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 9px;
  font-weight: 900;
  height: 15px;
  justify-content: center;
  line-height: 1;
  width: 15px;
}

.admin-member-metric--positive .admin-member-metric-marker {
  color: #75c994;
}

.admin-member-metric--warning .admin-member-metric-marker {
  color: #e3b85f;
}

.admin-member-metric--danger .admin-member-metric-marker {
  color: #df8585;
}

.admin-member-coming-soon-group span {
  color: #b9c7dc;
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.admin-member-coming-soon-group {
  background: #132640 !important;
  color: var(--text-muted);
}

.admin-member-placeholder-header,
.admin-member-placeholder {
  color: var(--text-muted);
}

.admin-member-placeholder {
  background: rgba(148, 163, 184, 0.025);
  text-align: center;
}

.admin-member-detail-button {
  min-height: 32px !important;
  padding: 5px 10px !important;
  white-space: nowrap;
}

.admin-member-detail-button[aria-expanded="true"] {
  background: var(--primary);
  border-color: var(--primary-hover);
  color: #ffffff;
}

.admin-member-detail-button:focus-visible {
  outline: 2px solid #8db9f5;
  outline-offset: 2px;
}

.admin-member-table .admin-member-detail-row > td {
  background: rgba(7, 18, 38, 0.58);
  box-shadow: inset 0 1px 0 var(--border), inset 0 -1px 0 var(--border);
  left: auto;
  padding: 14px 18px;
  position: static;
  text-align: left;
  width: auto;
}

.admin-member-table tbody .admin-member-detail-row:hover > td {
  background: rgba(7, 18, 38, 0.58);
}

.admin-member-detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  max-width: 1100px;
  min-width: 900px;
}

.admin-member-detail-grid section {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.admin-member-detail-grid h3 {
  font-size: 14px;
  margin: 0 0 8px;
}

.admin-member-detail-grid dl {
  margin: 0;
}

.admin-member-detail-grid dl div {
  align-items: baseline;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 4px 0;
}

.admin-member-detail-grid dt {
  color: var(--text-muted);
  font-size: 12px;
}

.admin-member-detail-grid dd {
  font-weight: 800;
  margin: 0;
}

.official-activity-table {
  min-width: 1180px;
}

.official-activity-table th,
.official-activity-table td {
  padding: 8px 12px;
  vertical-align: top;
}

.official-activity-table th:nth-child(1) {
  width: 11%;
}

.official-activity-table th:nth-child(2) {
  width: 7%;
}

.official-activity-table th:nth-child(3) {
  width: 13%;
}

.official-activity-table th:nth-child(4) {
  width: 13%;
}

.official-activity-table th:nth-child(5) {
  width: 13%;
}

.official-activity-table th:nth-child(6) {
  width: 13%;
}

.official-activity-table th:nth-child(7) {
  width: 12%;
}

.official-activity-table th:nth-child(8) {
  width: 18%;
}

.official-activity-table .record-player {
  gap: 1px;
}

.official-activity-table .status {
  padding: 6px 9px;
}

.player-summary-table {
  min-width: 860px;
}

.activity-cell-stack,
.activity-reason-notes {
  display: grid;
  gap: 2px;
}

.activity-cell-stack span,
.activity-cell-stack strong,
.activity-reason-notes span {
  display: block;
}

.activity-reason-notes {
  max-height: 58px;
  overflow: hidden;
}

.activity-reason-notes span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.raid-history-table {
  min-width: 780px;
}

.tb-history-table {
  min-width: 980px;
}

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

.future-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  min-height: 132px;
  padding: 20px;
}

.future-card h2 {
  margin-bottom: 8px;
}

.future-card p {
  margin: 0;
}
@media (max-width: 920px) {
  .header-inner,
  .dashboard-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .feedback-panel {
    grid-template-columns: 1fr;
  }

  .header-inner {
    gap: 14px;
    padding: 16px 20px;
  }

  .page-shell {
    padding: 30px 18px 44px;
  }

  h1 {
    font-size: 34px;
  }

  .stats-grid,
  .settings-grid,
  .admin-link-grid,
  .tb-summary-grid,
  .detail-list,
  .future-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .official-corrections {
    overflow: hidden;
  }

  .official-corrections .table-wrap {
    overflow-x: auto;
  }

  .official-filter-heading {
    flex-direction: column;
  }

  .official-period-links {
    justify-content: flex-start;
  }

  .official-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .official-filter-form.notification-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-member-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-member-detail-grid {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    min-width: min(700px, 75vw);
  }

  .compact-correction-table {
    min-width: 760px;
  }

  .datacron-level-grid {
    grid-template-columns: repeat(4, minmax(72px, 1fr));
  }

  .weekly-change-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .record-edit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .guild-name {
    white-space: normal;
  }

  .feedback-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .feedback-bubble::before,
  .feedback-bubble::after {
    display: none;
  }

  .feedback-pond-image {
    height: 82px;
    width: 82px;
  }

  nav {
    width: 100%;
  }

  nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .stats-grid,
  .settings-grid,
  .admin-link-grid,
  .tb-summary-grid,
  .detail-list,
  .future-grid {
    grid-template-columns: 1fr;
  }

  .official-filter-form {
    grid-template-columns: 1fr;
  }

  .official-filter-form.notification-filter-form {
    grid-template-columns: 1fr;
  }

  .admin-member-filter-form {
    grid-template-columns: 1fr;
  }

  .admin-member-search-filter {
    grid-column: auto;
  }

  .admin-member-report-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-member-detail-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .stat-card strong {
    font-size: 24px;
  }

  .analytics-summary-grid,
  .analytics-summary-grid-compact {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .analytics-history-heading,
  .analytics-history-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .analytics-history-filters {
    justify-content: flex-start;
  }

  .analytics-history-filters select {
    width: 100%;
  }

  .history-summary-grid,
  .weekly-change-grid,
  .weekly-change-grid-single {
    grid-template-columns: 1fr;
  }

  .datacron-level-grid {
    grid-template-columns: repeat(2, minmax(72px, 1fr));
  }

  .button,
  button.button {
    width: 100%;
  }

  .record-detail-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-member-report-panel .button,
  .admin-member-report-panel tbody tr {
    transition: none;
  }
}

/* Phase 6I.2: isolated Admin Mhann API live tester styles. */
.mhann-live-warning {
  background: rgba(217, 164, 65, 0.1);
  border-color: rgba(217, 164, 65, 0.48);
}

.mhann-live-warning h2,
.mhann-live-form-panel h2 {
  margin-top: 0;
}

.mhann-live-warning ul {
  color: var(--text-secondary);
  margin-bottom: 0;
  padding-left: 22px;
}

.mhann-live-form {
  max-width: 720px;
}

.mhann-live-form [data-parameter-group] {
  display: grid;
  gap: 12px;
}

.mhann-live-form [hidden] {
  display: none;
}

.mhann-auth-confirmation {
  background: rgba(196, 84, 84, 0.12);
  border: 1px solid rgba(196, 84, 84, 0.48);
  border-radius: var(--radius);
  padding: 14px;
}

.mhann-auth-confirmation p {
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.mhann-result-header {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.mhann-result-header h2 {
  margin: 0 0 6px;
}

.mhann-result-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  margin: 0;
}

.mhann-result-meta div {
  background: rgba(19, 37, 68, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  min-width: 0;
  padding: 12px;
}

.mhann-result-meta dt {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.mhann-result-meta dd {
  color: var(--text);
  margin: 0;
}

.mhann-status {
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.mhann-status--success {
  color: #77d49a;
}

.mhann-status--inactive {
  color: #f0c86c;
}

.mhann-status--failed {
  color: #ffaaaa;
}

.mhann-summary-panel {
  margin-bottom: 20px;
}

.mhann-summary-table {
  min-width: 560px;
  width: 100%;
}

.mhann-summary-table th[scope="row"] {
  color: var(--table-header-text);
  width: 34%;
}

.mhann-summary-table td {
  overflow-wrap: anywhere;
}

.mhann-json-panel details > summary {
  color: var(--text);
  cursor: pointer;
}

.mhann-json-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 12px;
}

.mhann-json-toolbar input {
  background: #09162b;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  min-height: 36px;
  padding: 7px 10px;
}

.mhann-match-count {
  color: var(--text-muted);
  min-width: 80px;
}

.mhann-json-scroll {
  background: #050d1c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: min(68vh, 760px);
  max-width: 100%;
  overflow: auto;
}

.mhann-json-scroll:focus-visible {
  box-shadow: 0 0 0 3px rgba(78, 143, 234, 0.22);
  outline: none;
}

.mhann-json-scroll pre {
  color: #d8e5f7;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  min-width: max-content;
  padding: 16px;
  tab-size: 2;
}

.analytics-source-warning {
  margin-bottom: 18px;
}

.analytics-source-warning strong {
  display: block;
  margin-bottom: 6px;
}

.analytics-source-warning p {
  margin: 4px 0 0;
}

@media (max-width: 760px) {
  .mhann-result-header {
    display: grid;
  }

  .mhann-result-meta {
    grid-template-columns: 1fr;
  }

  .mhann-json-toolbar > * {
    flex: 1 1 150px;
  }
}
