:root {
  color-scheme: dark;
  --bg: #0c1419;
  --bg-2: #101c22;
  --surface: #142229;
  --surface-solid: #142229;
  --surface-deep: #0f1a20;
  --surface-raised: #1a2b33;
  --surface-soft: rgba(225, 247, 249, 0.06);
  --surface-overlay: rgba(12, 20, 25, 0.96);
  --line: rgba(188, 230, 235, 0.12);
  --line-strong: rgba(188, 230, 235, 0.21);
  --text: #f3f7f8;
  --text-soft: #c4cfd4;
  --muted: #909da5;
  --primary: #19d9ee;
  --secondary: #f07a16;
  --cyan: #19d9ee;
  --cyan-hover: #52e7f5;
  --orange: #f07a16;
  --orange-hover: #ff9235;
  --success: #42c978;
  --danger: #ea5c68;
  --warning: #efa63c;
  --gradient: linear-gradient(135deg, #19d9ee 0%, #52e7f5 72%, #f07a16 100%);
  --gradient-soft: linear-gradient(135deg, rgba(25, 217, 238, 0.11), rgba(240, 122, 22, 0.045));
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --shadow-sm: 0 12px 32px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.28);
  --page: min(1200px, calc(100% - 36px));
  --ease: 180ms ease;
  --prison-background-image: image-set(
    url("/assets/brand/prison-background-1600.webp") type("image/webp") 1x,
    url("/assets/brand/prison-background.png") type("image/png") 1x
  );
}

/* Public atmosphere and managed content */
body:not(.admin-route) {
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-2) 78%, transparent),
      color-mix(in srgb, var(--bg) 88%, transparent)
    ),
    var(--prison-background-image) center top / cover fixed;
}

[data-theme="light"] body:not(.admin-route) {
  background:
    linear-gradient(180deg, rgba(238, 245, 244, 0.88), rgba(238, 245, 244, 0.97)),
    var(--prison-background-image) center top / cover fixed;
}

body:not(.admin-route)::before {
  opacity: 0.58;
}

.staff-page-hero,
.content-page-hero {
  overflow: hidden;
  min-height: 270px;
  padding: clamp(34px, 6vw, 74px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--surface-deep) 93%, transparent) 20%, color-mix(in srgb, var(--surface-deep) 58%, transparent)),
    var(--prison-background-image) center 42% / cover;
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .staff-page-hero,
[data-theme="dark"] .content-page-hero {
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--surface-deep) 84%, transparent) 20%, color-mix(in srgb, var(--surface-deep) 48%, transparent)),
    var(--prison-background-image) center 42% / cover;
}

.staff-grid {
  display: grid;
  gap: 52px;
  margin-top: 54px;
}

.staff-group {
  display: grid;
  gap: 22px;
}

.staff-group-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  border: 0;
}

.staff-group-header::after {
  height: 1px;
  flex: 1;
  content: "";
  background: linear-gradient(90deg, color-mix(in srgb, var(--role-color) 65%, transparent), transparent);
}

.staff-group-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.staff-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.staff-card,
.staff-card:last-child {
  display: flex;
  min-height: 292px;
  padding: 32px 24px 27px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--role-color) 16%, transparent), transparent 44%),
    color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-sm);
}

.staff-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--role-color) 55%, var(--line));
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--role-color) 24%, transparent), transparent 48%),
    color-mix(in srgb, var(--surface-raised) 92%, transparent);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.staff-card .avatar-image,
.staff-card .staff-avatar {
  width: 112px;
  height: 112px;
  border: 3px solid color-mix(in srgb, var(--role-color) 72%, white 10%);
  border-radius: 22px;
  image-rendering: pixelated;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.staff-card h3 {
  font-size: 1.25rem;
}

.staff-rank-badge {
  padding: 6px 11px;
  border: 1px solid color-mix(in srgb, var(--role-color) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--role-color) 11%, transparent);
}

.profile-account-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-sm);
}

.profile-sidebar > p {
  padding: 7px 10px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.profile-sidebar button {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  text-align: left;
  background: transparent;
}

.profile-sidebar button:hover,
.profile-sidebar button.active {
  color: var(--text);
  background: color-mix(in srgb, var(--cyan) 11%, transparent);
}

.profile-workspace,
.profile-workspace > section {
  min-width: 0;
}

.profile-hero,
.profile-settings-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-sm);
}

.profile-settings-panel {
  display: grid;
  gap: 12px;
  padding: clamp(26px, 5vw, 48px);
}

.profile-settings-panel > p:not(.eyebrow) {
  max-width: 640px;
  color: var(--text-soft);
}

.profile-settings-form {
  display: grid;
  max-width: 600px;
  gap: 17px;
  margin-top: 18px;
}

.profile-settings-form button {
  justify-self: start;
}

.form-message {
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
}

.form-message.error { color: var(--danger); }
.form-message.success { color: var(--success); }

.faq-list {
  display: grid;
  max-width: 900px;
  gap: 12px;
  margin: 42px auto 0;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-sm);
}

.faq-item h2 { font-size: inherit; }

.faq-item h2 button {
  display: flex;
  width: 100%;
  padding: 22px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  color: var(--text);
  text-align: left;
  background: transparent;
}

.faq-item h2 button:hover,
.faq-item h2 button[aria-expanded="true"] {
  background: color-mix(in srgb, var(--cyan) 7%, transparent);
}

.faq-toggle-icon {
  color: var(--cyan);
  font-size: 24px;
  transition: transform var(--ease);
}

.faq-item button[aria-expanded="true"] .faq-toggle-icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 24px 23px;
  color: var(--text-soft);
  line-height: 1.75;
}

.legal-content {
  max-width: 900px;
  min-height: 240px;
  margin: 42px auto 0;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  box-shadow: var(--shadow-md);
  color: var(--text-soft);
  line-height: 1.75;
}

.legal-content h1,
.legal-content h2,
.legal-content h3 {
  max-width: none;
  margin: 1.4em 0 0.5em;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.legal-content > :first-child { margin-top: 0; }
.legal-content p,
.legal-content ul,
.legal-content ol { margin: 0 0 1.1em; }
.legal-content a { color: var(--cyan); text-decoration: underline; }
.content-updated { color: var(--text-soft); }

.content-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 20px;
}

.content-editor-panel,
.content-preview-panel { min-width: 0; }
.content-preview-panel { align-self: start; position: sticky; top: 32px; }
.compact-legal { min-height: 420px; margin: 18px 0 0; padding: 28px; box-shadow: none; }
.form-grid-wide { grid-column: 1 / -1; }
.content-faq-admin { margin-top: 28px; }
.faq-admin-row > div:first-child { min-width: 0; }
.faq-admin-row p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted-copy { color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .profile-account-shell,
  .content-editor-grid {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
  }

  .profile-sidebar > p { display: none; }
  .profile-sidebar button { width: auto; white-space: nowrap; }
  .content-preview-panel { position: static; }
}

@media (max-width: 560px) {
  .staff-page-hero,
  .content-page-hero { min-height: 220px; padding: 28px 22px; }
  .staff-members { grid-template-columns: 1fr; }
  .staff-card,
  .staff-card:last-child { min-height: 250px; border: 1px solid var(--line); }
  .profile-sidebar { padding: 10px; }
  .profile-settings-panel { padding: 24px 20px; }
  .faq-item h2 button { padding: 19px; }
  .faq-answer { padding: 0 19px 19px; }
  .legal-content { padding: 25px 20px; }
}

/* Compact team and community profiles */
.page-intro.staff-page-hero,
.page-intro.settings-page-hero {
  min-height: 190px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--surface-deep) 96%, transparent) 18%, color-mix(in srgb, var(--surface-deep) 70%, transparent)),
    var(--prison-background-image) center 42% / cover;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .page-intro.staff-page-hero,
[data-theme="dark"] .page-intro.settings-page-hero {
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--surface-deep) 88%, transparent) 18%, color-mix(in srgb, var(--surface-deep) 58%, transparent)),
    var(--prison-background-image) center 42% / cover;
}

.staff-grid {
  gap: 38px;
  margin-top: 38px;
}

.staff-group {
  gap: 16px;
}

.staff-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 11px;
  border-bottom: 1px solid var(--line);
}

.staff-group-header::after {
  display: none;
}

.staff-group-header h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.staff-group-header span {
  color: var(--text-muted);
  font-size: .76rem;
  letter-spacing: .04em;
}

.staff-members {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.staff-card,
.staff-card:last-child {
  display: flex;
  min-height: 154px;
  padding: 18px 14px 16px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--role-color) 8%, var(--surface-raised)), var(--surface));
  box-shadow: none;
}

.staff-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--role-color) 48%, var(--line));
  background: linear-gradient(155deg, color-mix(in srgb, var(--role-color) 14%, var(--surface-raised)), var(--surface));
}

.staff-card .avatar-image,
.staff-card .staff-avatar {
  width: 64px;
  height: 64px;
  border: 2px solid color-mix(in srgb, var(--role-color) 65%, var(--line));
  border-radius: 13px;
  image-rendering: pixelated;
}

.staff-card h3 {
  margin: 1px 0 0;
  font-size: 1rem;
  line-height: 1.15;
}

.staff-card .staff-rank-badge {
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-panel,
.public-profile-shell {
  width: 100%;
}

.public-profile-shell {
  display: grid;
  max-width: 940px;
  margin: 0 auto;
  gap: 22px;
}

.profile-hero.profile-hero-compact {
  display: grid;
  min-height: 0;
  padding: clamp(24px, 4vw, 34px);
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--surface) 97%, transparent), color-mix(in srgb, var(--surface) 84%, transparent)),
    var(--prison-background-image) center / cover;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .profile-hero.profile-hero-compact {
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--surface) 89%, transparent), color-mix(in srgb, var(--surface) 72%, transparent)),
    var(--prison-background-image) center / cover;
}

.profile-hero.profile-hero-compact > .avatar-image,
.profile-hero.profile-hero-compact > .staff-avatar {
  width: 88px;
  height: 88px;
  border: 2px solid color-mix(in srgb, var(--role-color) 65%, var(--line));
  border-radius: 18px;
  image-rendering: pixelated;
}

.profile-identity {
  min-width: 0;
}

.profile-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.profile-title-row h1 {
  margin: 2px 0 0;
  color: var(--role-color);
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  line-height: 1;
}

.profile-heading {
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 7px;
}

.profile-heading h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.name-role-fieldset {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  border: 0;
}

.name-role-fieldset legend {
  padding: 0;
  color: var(--text);
  font-weight: 800;
}

.name-role-fieldset > p {
  color: var(--text-muted);
  font-size: .78rem;
}

.name-role-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.name-role-choice {
  display: grid;
  min-width: 0;
  padding: 12px 13px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  cursor: pointer;
}

.name-role-choice:has(input:checked) {
  border-color: color-mix(in srgb, var(--role-color, var(--accent)) 72%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--role-color, var(--accent)) 12%, transparent);
}

.name-role-choice input {
  width: auto;
  margin: 0;
  accent-color: var(--role-color, var(--accent));
}

.name-role-choice > span {
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 2px;
}

.name-role-choice strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.name-role-choice small {
  color: var(--text-muted);
  font-size: .7rem;
}

.article-author-line {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.article-author-line .role-badges {
  margin: 0;
  gap: 5px;
}

.article-author-line .role-badge {
  padding: 3px 6px;
  font-size: .65rem;
}

.profile-role-line,
.profile-facts {
  display: flex;
  margin-top: 12px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--text-muted);
  font-size: .82rem;
}

.profile-bio {
  max-width: 680px;
  margin: 17px 0 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.profile-stat-grid article {
  display: grid;
  padding: 18px 20px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.profile-stat-grid span {
  color: var(--text-muted);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-stat-grid strong {
  color: var(--text-primary);
  font-size: 1.08rem;
}

.profile-link-hint {
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.profile-link-hint p {
  margin: 5px 0 0;
  color: var(--text-muted);
}

.guestbook-section {
  padding-top: 6px;
}

.guestbook-form {
  display: grid;
  margin: 15px 0 18px;
  padding: 18px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.guestbook-form label,
.guestbook-form textarea {
  width: 100%;
}

.guestbook-form-footer,
.guestbook-entry-head,
.guestbook-entry-head > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guestbook-form-footer .form-message {
  margin: 0;
}

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

.guestbook-entry {
  display: grid;
  padding: 16px 18px;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.guestbook-entry .avatar-image,
.guestbook-entry .comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  image-rendering: pixelated;
}

.guestbook-entry-head > div {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.guestbook-entry-head span {
  color: var(--text-muted);
  font-size: .72rem;
}

.guestbook-entry p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.guestbook-more {
  margin-top: 14px;
}

.settings-page-hero {
  margin-bottom: 24px;
}

.settings-shell {
  max-width: 1020px;
  margin: 0 auto;
}

.settings-toggle {
  display: flex !important;
  padding: 14px;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.settings-toggle input {
  width: auto;
  margin-top: 3px;
}

.settings-toggle span,
.settings-toggle small {
  display: block;
}

.settings-toggle small,
.field-hint {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: .75rem;
}

@media (max-width: 900px) {
  .staff-members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .staff-members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-stat-grid { grid-template-columns: 1fr; }
  .profile-hero.profile-hero-compact { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .profile-hero.profile-hero-compact > .avatar-image,
  .profile-hero.profile-hero-compact > .staff-avatar { width: 72px; height: 72px; }
  .profile-title-row { align-items: flex-start; flex-direction: column; }
  .name-role-options { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .staff-members { grid-template-columns: 1fr; }
  .staff-card,
  .staff-card:last-child { min-height: 142px; border: 1px solid var(--line); }
  .profile-hero.profile-hero-compact { grid-template-columns: 1fr; }
  .guestbook-entry { grid-template-columns: 1fr; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    radial-gradient(circle at 12% -8%, rgba(25, 217, 238, 0.13), transparent 34rem),
    radial-gradient(circle at 88% 10%, rgba(240, 122, 22, 0.07), transparent 30rem),
    linear-gradient(180deg, #0f1a20 0%, #0c1419 46%, #0a1115 100%);
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(188, 230, 235, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 230, 235, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1 {
  max-width: 780px;
  font-size: 76px;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: 0;
}

p,
label {
  color: var(--muted);
  line-height: 1.65;
}

button,
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-deep);
  color: var(--text);
  font: inherit;
}

button,
input,
select {
  min-height: 46px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  transition: border-color var(--ease), background-color var(--ease), box-shadow var(--ease);
}

input[type="color"] {
  min-height: 46px;
  padding: 6px;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

button {
  padding: 0 18px;
  cursor: pointer;
  font-weight: 850;
  transition: transform var(--ease), border-color var(--ease), background-color var(--ease), color var(--ease), box-shadow var(--ease);
}

button:hover {
  transform: translateY(-1px);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--cyan);
  outline: 3px solid rgba(25, 217, 238, 0.2);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: var(--page);
  min-height: 70px;
  margin: 0 auto;
  padding: 9px 0;
}

.brand,
.main-nav,
.account-menu,
.account-toggle,
.hero-actions,
.button-row,
.meta-row,
.section-heading,
.staff-group-header,
.management-header,
.cta-actions,
.news-topline,
.comment-head,
.password-field {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding: 4px 0;
  font-weight: 950;
}

.brand-copy {
  display: grid;
  gap: 0;
  line-height: 1;
}

.brand-text {
  font-size: 18px;
  letter-spacing: 0;
}

.brand-network {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(25, 217, 238, 0.34);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(25, 217, 238, 0.13), var(--surface-raised));
  box-shadow: 0 8px 22px rgba(25, 217, 238, 0.10);
}

.brand-mark span,
.mini-cube {
  width: 16px;
  height: 20px;
  border: 3px solid var(--cyan);
  border-right-color: transparent;
  border-radius: 7px 3px 3px 7px;
  background: transparent;
  box-shadow: 0 0 14px rgba(25, 217, 238, 0.30);
  transform: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 10px;
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--text-soft);
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: currentColor;
}

.main-nav {
  justify-content: flex-start;
  gap: 3px;
}

.main-nav a {
  position: relative;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 700;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}

.main-nav a::after {
  display: none;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface-soft);
}

.account-menu {
  position: relative;
  justify-content: flex-end;
}

.header-utilities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.server-pill,
.header-discord {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text-soft);
  padding: 6px 10px;
  transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}

.server-pill {
  text-align: left;
}

.server-pill:hover,
.header-discord:hover {
  border-color: rgba(25, 217, 238, 0.28);
  background: rgba(25, 217, 238, 0.07);
  color: var(--text);
  transform: none;
}

.server-pill .status-dot {
  flex: 0 0 auto;
  margin: 0;
}

.server-pill-copy {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.server-pill-copy strong {
  color: var(--text);
  font-size: 12px;
}

.server-pill-copy > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.server-copy-label {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 850;
}

.header-discord {
  min-width: 40px;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.header-discord svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text-soft);
}

.theme-toggle:hover {
  border-color: rgba(25, 217, 238, 0.32);
  background: rgba(25, 217, 238, 0.08);
  color: var(--cyan);
  transform: none;
}

.theme-icon {
  position: absolute;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  transition: opacity var(--ease), transform var(--ease);
}

.theme-icon-moon,
[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(-30deg) scale(0.72);
}

[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.header-discord.disabled,
[data-discord-link].disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary-action,
.button-link,
.auth-card button[type="submit"],
.editor-panel > button[type="submit"],
.comment-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan), #27bfd0);
  color: #041013;
  box-shadow: 0 10px 28px rgba(25, 217, 238, 0.15);
}

.primary-action:hover,
.button-link:hover,
.auth-card button[type="submit"]:hover,
.editor-panel > button[type="submit"]:hover,
.comment-form button[type="submit"]:hover {
  box-shadow: 0 14px 34px rgba(25, 217, 238, 0.22);
}

.secondary-action,
.secondary-link {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-soft);
}

.secondary-action:hover,
.secondary-link:hover {
  border-color: rgba(25, 217, 238, 0.35);
  background: rgba(255, 255, 255, 0.09);
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 850;
}

.account-toggle {
  gap: 9px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-overlay);
  box-shadow: var(--shadow-md);
  padding: 10px;
}

.dropdown a,
.dropdown button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  padding: 10px 11px;
  text-align: left;
}

.dropdown a:hover,
.dropdown button:hover {
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  transform: none;
}

main {
  width: var(--page);
  margin: 0 auto;
  padding: 38px 0 84px;
}

.page {
  display: grid;
  gap: 32px;
}

.public-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 10%, rgba(25, 217, 238, 0.10), transparent 25rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.public-hero::after {
  position: absolute;
  right: -90px;
  top: -120px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(25, 217, 238, 0.09);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.public-hero > * {
  position: relative;
  z-index: 1;
}

.public-hero-copy {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.public-hero-copy > p:not(.eyebrow),
.page-hero > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--text-soft);
  font-size: 16px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
  align-items: center;
  min-height: 390px;
  padding: 48px 52px;
}

.home-hero h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.home-hero .public-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  font-size: 17px;
}

.home-hero-art {
  position: relative;
  display: grid;
  min-height: 310px;
  place-items: center;
}

.home-hero-art span {
  position: absolute;
  width: min(33vw, 390px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 217, 238, 0.13), transparent 68%);
  filter: blur(4px);
}

.home-hero-art img {
  width: min(35vw, 390px);
  max-height: 330px;
  object-fit: contain;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.48));
}

.page-hero {
  display: grid;
  align-content: center;
  gap: 11px;
  min-height: 178px;
  padding: 32px 36px;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 4.5vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

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

.page-heading p,
.section-heading p,
.community-cta p {
  max-width: 650px;
  color: var(--text-soft);
  font-size: 16px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  letter-spacing: -0.02em;
}

.page-heading h1,
.article-shell h1 {
  font-size: clamp(2.5rem, 4.8vw, 3.9rem);
}

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

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

.info-card {
  position: relative;
  overflow: hidden;
  min-height: 146px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 22px;
}

.info-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at top right, var(--card-accent, rgba(25, 217, 238, 0.16)), transparent 68%);
  opacity: 0.7;
  pointer-events: none;
}

.info-card > * {
  position: relative;
}

.accent-blue {
  --card-accent: rgba(25, 217, 238, 0.18);
}

.accent-orange {
  --card-accent: rgba(240, 122, 22, 0.18);
}

.accent-cyan {
  --card-accent: rgba(82, 231, 245, 0.16);
}

.accent-green {
  --card-accent: rgba(66, 201, 120, 0.14);
}

.info-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
}

.info-card h3 {
  margin-top: 20px;
}

.info-card p {
  margin-top: 9px;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.7);
}

.status-dot.offline {
  background: var(--danger);
  box-shadow: 0 0 16px rgba(251, 113, 133, 0.6);
}

.status-dot.unknown {
  background: var(--muted);
  box-shadow: none;
}

.section-block,
.comments-section {
  display: grid;
  gap: 14px;
}

.feature-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.85fr);
  gap: 32px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature-panel::before {
  display: none;
}

.feature-copy,
.feature-panel img {
  position: relative;
  z-index: 1;
}

.feature-copy {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 850;
}

.feature-panel img {
  width: min(100%, 450px);
  justify-self: end;
  align-self: end;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.40));
  border-radius: 12px;
  object-fit: cover;
}

.section-heading {
  justify-content: space-between;
  gap: 24px;
}

.section-heading.compact {
  justify-content: flex-start;
}

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

.news-layout-featured,
.news-layout-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-layout-featured {
  grid-template-columns: 1fr;
}

.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 850;
}

.filter-pill.active {
  border-color: rgba(25, 217, 238, 0.34);
  background: rgba(25, 217, 238, 0.12);
  color: var(--text);
}

.news-count {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 850;
}

.news-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.17);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.news-card.compact {
  min-height: 300px;
}

.news-card.featured.home-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
  grid-template-rows: auto;
  min-height: clamp(330px, 34vw, 390px);
}

.news-card.featured.feed-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.56fr) minmax(0, 0.44fr);
  grid-template-rows: auto;
  min-height: clamp(300px, 28vw, 350px);
}

.news-card.featured .news-cover {
  min-height: 100%;
}

.news-card.compact .news-cover {
  aspect-ratio: 16 / 9;
}

.news-card.featured .news-body {
  align-content: center;
  padding: 22px;
}

.news-card.compact .news-body {
  padding: 18px;
}

.news-card:hover {
  border-color: rgba(25, 217, 238, 0.24);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

.news-cover,
.article-cover {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-deep);
}

.news-cover img,
.article-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.45));
}

.prison-news .news-cover,
.prison-article .article-cover {
  background:
    radial-gradient(circle at 50% 38%, rgba(240, 122, 22, 0.20), transparent 42%),
    linear-gradient(135deg, rgba(25, 217, 238, 0.20), rgba(13, 17, 22, 0.88)),
    var(--surface-deep);
}

.news-cover::before,
.article-cover::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(7, 9, 12, 0.08), rgba(7, 9, 12, 0.62));
  pointer-events: none;
}

.news-body {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.news-topline,
.meta-row {
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
}

.news-card h3,
.article-shell h1 + .meta-row + .article-summary,
.article-shell h1 {
  max-width: 60ch;
}

.news-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.12;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card.compact p {
  -webkit-line-clamp: 2;
}

.news-card.featured.home-featured p,
.news-card.featured.feed-featured p {
  -webkit-line-clamp: 3;
}

.article-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(25, 217, 238, 0.18);
  border-radius: 6px;
  background: rgba(25, 217, 238, 0.08);
  color: var(--text-soft);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
}

.read-more {
  font-size: 14px;
}

.state-pill,
.profile-facts span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(25, 217, 238, 0.18);
  border-radius: 999px;
  background: rgba(25, 217, 238, 0.08);
  color: var(--text-soft);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.colored-name {
  display: inline-block;
  color: var(--role-color, var(--text-soft)) !important;
}

.effect-bold {
  font-weight: 950;
}

.effect-glow {
  text-shadow:
    0 0 12px color-mix(in srgb, var(--role-color, var(--primary)) 58%, transparent),
    0 0 28px color-mix(in srgb, var(--role-color, var(--primary)) 34%, transparent);
}

.effect-bold-glow {
  font-weight: 950;
  text-shadow:
    0 0 12px color-mix(in srgb, var(--effect-color-a, var(--role-color, var(--primary))) 62%, transparent),
    0 0 28px color-mix(in srgb, var(--effect-color-b, var(--effect-color-a, var(--role-color, var(--primary)))) 40%, transparent);
}

.effect-gradient {
  display: inline-block;
  background: linear-gradient(100deg, var(--effect-color-a, var(--role-color, var(--primary))), var(--effect-color-b, #f07a16), var(--effect-color-a, var(--role-color, var(--primary))));
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 260% 100%;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px color-mix(in srgb, var(--effect-color-a, var(--role-color, var(--primary))) 22%, transparent);
  animation: roleGradient var(--effect-speed, 3.8s) linear infinite;
}

.effect-bold-gradient {
  display: inline-block;
  font-weight: 950;
  background: linear-gradient(100deg, var(--effect-color-a, var(--role-color, var(--primary))), var(--effect-color-b, #f07a16), var(--effect-color-a, var(--role-color, var(--primary))));
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 260% 100%;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px color-mix(in srgb, var(--effect-color-a, var(--role-color, var(--primary))) 20%, transparent);
  animation: roleGradient var(--effect-speed, 3.8s) linear infinite;
}

.effect-italic {
  font-style: italic;
}

.effect-underline {
  text-decoration-line: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.14em;
  text-decoration-color: var(--effect-color-a, var(--role-color, var(--primary)));
}

.effect-strike {
  text-decoration-line: line-through;
  text-decoration-thickness: 0.12em;
  text-decoration-color: var(--effect-color-b, var(--effect-color-a, var(--role-color, var(--primary))));
}

.effect-rainbow {
  display: inline-block;
  background: linear-gradient(90deg, var(--effect-color-a, var(--role-color, var(--primary))), var(--cyan), var(--effect-color-b, var(--orange)), #a855f7, var(--effect-color-a, var(--role-color, var(--primary))));
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 300% 100%;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 18px color-mix(in srgb, var(--effect-color-a, var(--role-color, var(--primary))) 18%, transparent);
  animation: roleGradient var(--effect-speed, 4.4s) linear infinite;
}

.effect-pulse {
  animation: namePulse var(--effect-speed, 2.4s) ease-in-out infinite;
}

.person-link {
  border-radius: 8px;
  font-weight: 900;
  transition: filter var(--ease), text-shadow var(--ease);
}

.person-link:hover {
  filter: brightness(1.18);
  text-shadow: 0 0 18px color-mix(in srgb, var(--role-color, var(--primary)) 45%, transparent);
}

.read-more,
.back-link {
  display: inline-flex;
  width: fit-content;
  color: var(--cyan);
  font-weight: 950;
}

.quiet-link {
  color: var(--text-soft);
  font-size: 14px;
}

.quiet-link:hover {
  color: var(--cyan);
}

.community-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(25, 217, 238, 0.13);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 20%, rgba(25, 217, 238, 0.10), transparent 22rem),
    var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
}

.community-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.community-cta > * {
  position: relative;
}

.cta-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.page-heading {
  position: relative;
  display: grid;
  gap: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  min-height: 160px;
  align-content: center;
  padding: 30px 34px;
}

.news-heading {
  min-height: 178px;
}

.page-heading.decorated::after {
  position: absolute;
  right: -54px;
  top: -78px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(25, 217, 238, 0.10);
  border-radius: 50%;
  content: "";
  background: rgba(25, 217, 238, 0.035);
}

.article-shell {
  display: grid;
  gap: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}

.article-cover {
  min-height: 240px;
  border-radius: 14px;
}

.article-summary {
  max-width: 840px;
  color: var(--text-soft);
  font-size: 17px;
}

.article-content {
  display: grid;
  gap: 17px;
  max-width: 860px;
}

.article-content p {
  color: var(--text-soft);
  font-size: 17px;
}

.comment-form,
.comment-card,
.empty-state,
.profile-hero,
.editor-panel,
.admin-row,
.auth-card,
.staff-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.comment-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.comment-form button {
  width: fit-content;
}

.comments-list,
.staff-grid,
.staff-members,
.admin-list {
  display: grid;
  gap: 16px;
}

.comment-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 15px;
  padding: 18px;
}

.comment-head {
  justify-content: space-between;
  gap: 12px;
}

.avatar-image,
.comment-avatar,
.staff-avatar {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--gradient-soft);
  color: var(--text);
  font-weight: 950;
  object-fit: cover;
}

.avatar-image,
.comment-avatar {
  width: 52px;
  height: 52px;
}

.staff-group {
  position: relative;
  display: grid;
  gap: 14px;
}

.staff-grid {
  gap: 34px;
}

.staff-group-header {
  position: relative;
  min-height: 30px;
}

.staff-group-header h2 {
  font-size: 21px;
  line-height: 1.2;
}

.staff-group-skeleton {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.staff-members {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.staff-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 0;
  min-height: 170px;
  border-color: color-mix(in srgb, var(--role-color, var(--primary)) 20%, var(--line));
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--role-color, var(--primary)) 12%, transparent), transparent 54%),
    var(--surface);
  padding: 20px 16px;
  text-align: center;
  transition: transform var(--ease), border-color var(--ease), background-color var(--ease), box-shadow var(--ease);
}

.staff-card:hover {
  border-color: color-mix(in srgb, var(--role-color, var(--primary)) 48%, transparent);
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--role-color, var(--primary)) 19%, transparent), transparent 58%),
    color-mix(in srgb, var(--surface) 94%, white);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  transform: translateY(-4px);
}

.staff-card h3 {
  overflow: hidden;
  width: 100%;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-card .avatar-image,
.staff-card .staff-avatar {
  width: 76px;
  height: 76px;
  border-color: color-mix(in srgb, var(--role-color, var(--primary)) 34%, var(--line-strong));
  border-radius: 16px;
  font-size: 28px;
  image-rendering: pixelated;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.staff-rank-badge {
  display: inline-flex;
  overflow: hidden;
  max-width: 100%;
  width: fit-content;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--role-color, var(--primary)) 38%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--role-color, var(--primary)) 13%, transparent);
  color: var(--role-color, var(--text-soft));
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-page-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  min-height: 152px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 18%, rgba(25, 217, 238, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(25, 217, 238, 0.06), rgba(240, 122, 22, 0.04)),
    var(--surface);
  padding: 30px 34px;
  box-shadow: var(--shadow-sm);
}

.staff-page-hero::after {
  position: absolute;
  right: -38px;
  top: -58px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(25, 217, 238, 0.12);
  border-radius: 50%;
  content: "";
  background: rgba(25, 217, 238, 0.035);
}

.staff-page-hero > * {
  position: relative;
  z-index: 1;
}

.staff-page-hero > div {
  min-width: 0;
}

.staff-page-hero-icon {
  display: grid;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(25, 217, 238, 0.26);
  border-radius: 15px;
  background: rgba(25, 217, 238, 0.11);
  color: var(--cyan);
  box-shadow: 0 14px 34px rgba(25, 217, 238, 0.1);
}

.staff-page-hero-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.staff-page-hero h1 {
  margin-top: 5px;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
}

.staff-page-hero p:last-child {
  margin-top: 8px;
  color: var(--text-soft);
}

.profile-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border-color: color-mix(in srgb, var(--role-color, var(--primary)) 24%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--role-color, var(--primary)) 12%, var(--surface)), var(--surface));
  padding: 28px;
}

.profile-hero .avatar-image,
.profile-hero .staff-avatar {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  font-size: 40px;
}

.profile-hero h2 {
  color: var(--role-color, var(--text));
}

.profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0;
}

.role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.role-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: var(--role-color, var(--cyan));
  color: #050608;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--role-color, var(--primary)) 20%, transparent);
}

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

.management-header {
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  padding: 28px;
}

.management-header p {
  max-width: 720px;
}

.editor-panel {
  display: grid;
  gap: 17px;
  padding: 24px;
}

.management-note {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(25, 217, 238, 0.10), rgba(240, 122, 22, 0.045));
  padding: 22px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
}

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

.toggle-grid label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.toggle-grid input {
  position: relative;
  width: 38px;
  min-width: 38px;
  height: 22px;
  min-height: 22px;
  appearance: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.toggle-grid input::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  content: "";
  background: var(--muted);
  transition: transform var(--ease), background-color var(--ease);
}

.toggle-grid input:checked {
  background: rgba(25, 217, 238, 0.34);
}

.toggle-grid input:checked::after {
  background: var(--cyan);
  transform: translateX(16px);
}

.toggle-grid label:has(input:disabled) {
  opacity: 0.62;
}

.permission-groups {
  display: grid;
  gap: 14px;
}

.permission-group {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.032);
  padding: 18px;
}

.permission-group legend {
  padding: 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.embed-editor {
  gap: 20px;
}

.embed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: 18px;
  align-items: start;
}

.embed-fields {
  display: grid;
  gap: 15px;
}

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

.embed-preview-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0%, rgba(25, 217, 238, 0.10), transparent 12rem),
    rgba(13, 17, 22, 0.74);
  padding: 18px;
}

.discord-embed-preview {
  display: grid;
  gap: 10px;
  border-left: 4px solid var(--embed-color, var(--cyan));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: color-mix(in srgb, var(--surface-deep) 82%, transparent);
  padding: 16px;
}

.discord-embed-preview h3 {
  color: var(--text);
  font-size: 20px;
}

.discord-embed-preview p,
.discord-embed-preview span {
  color: var(--text-soft);
  line-height: 1.55;
}

.embed-preview-author,
.embed-preview-footer,
.muted-preview {
  color: var(--muted) !important;
  font-size: 13px;
}

.embed-preview-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.embed-preview-fields div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.embed-preview-fields div:not(.inline) {
  grid-column: 1 / -1;
}

.embed-preview-fields strong {
  color: var(--text);
}

.embed-preview-image {
  overflow: hidden;
  border: 1px dashed rgba(25, 217, 238, 0.24);
  border-radius: var(--radius-sm);
  color: var(--muted);
  padding: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed-admin-row h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.embed-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--embed-color, var(--cyan));
  box-shadow: 0 0 18px color-mix(in srgb, var(--embed-color, var(--cyan)) 54%, transparent);
}

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

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

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
}

.report-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.report-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--report-accent, var(--cyan)) 22%, var(--line));
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.report-tab span {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-tab strong {
  color: var(--report-accent, var(--cyan));
  font-size: 14px;
  font-weight: 950;
}

.report-tab.active {
  border-color: var(--report-accent, var(--cyan));
  background: color-mix(in srgb, var(--report-accent, var(--cyan)) 14%, rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--report-accent, var(--cyan)) 28%, transparent);
}

.report-page {
  display: grid;
  gap: 14px;
}

.report-list {
  display: grid;
  gap: 12px;
}

.report-summary-card {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--report-accent, var(--cyan)) 18%, var(--line));
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--report-accent, var(--cyan)) 10%, transparent), transparent 60%),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.report-summary-card:hover {
  border-color: color-mix(in srgb, var(--report-accent, var(--cyan)) 42%, var(--line));
}

.report-summary-card.active {
  border-color: var(--report-accent, var(--cyan));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--report-accent, var(--cyan)) 34%, transparent);
}

.report-summary-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.report-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.report-summary-head h3 {
  font-size: 18px;
  line-height: 1.22;
}

.report-summary-id {
  color: var(--report-accent, var(--cyan));
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.report-summary-category {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.report-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-summary-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.report-summary-open {
  color: var(--report-accent, var(--cyan));
  font-weight: 850;
}

.report-detail-content {
  display: grid;
}

.report-detail-card {
  display: grid;
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--report-accent, var(--cyan)) 24%, var(--line));
  border-top: 3px solid var(--report-accent, var(--cyan));
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--report-accent, var(--cyan)) 10%, transparent), transparent 34%),
    rgba(13, 17, 22, 0.82);
  padding: 18px;
}

.report-detail-headline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.report-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.028);
  padding: 16px;
}

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

.report-field-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.report-action-row.secondary {
  justify-content: space-between;
}

.report-priority-control {
  display: grid;
  gap: 8px;
  min-width: 180px;
  flex: 1 1 180px;
}

.report-priority-control span,
.report-note-composer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.report-note-composer {
  display: grid;
  gap: 8px;
}

.report-note-composer textarea {
  min-height: 120px;
}

.report-notes,
.report-audit {
  display: grid;
  gap: 10px;
}

.report-note,
.report-audit-entry {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

.report-note-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.report-note p,
.report-audit-entry p {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.reports-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.reports-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.report-column {
  display: grid;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--report-accent, var(--cyan)) 26%, var(--line));
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--report-accent, var(--cyan)) 10%, transparent), transparent 42%),
    rgba(13, 17, 22, 0.78);
  padding: 16px;
}

.report-column-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.report-column-list {
  display: grid;
  gap: 12px;
}

.report-column .empty-state {
  min-height: 138px;
  align-content: center;
}

.report-summary-card {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--report-accent, var(--cyan)) 18%, var(--line));
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--report-accent, var(--cyan)) 12%, transparent), transparent 60%),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.report-summary-card:hover {
  border-color: color-mix(in srgb, var(--report-accent, var(--cyan)) 42%, var(--line));
}

.report-summary-card.active {
  border-color: var(--report-accent, var(--cyan));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--report-accent, var(--cyan)) 34%, transparent);
}

.report-summary-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.report-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.report-summary-head h4 {
  font-size: 16px;
  line-height: 1.24;
}

.report-summary-id {
  color: var(--report-accent, var(--cyan));
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.report-summary-category {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.report-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-summary-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.report-summary-open {
  color: var(--report-accent, var(--cyan));
  font-weight: 850;
}

.report-detail-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  align-self: start;
}

.report-detail-shell {
  display: grid;
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--report-accent, var(--cyan)) 26%, var(--line));
  border-top: 3px solid var(--report-accent, var(--cyan));
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--report-accent, var(--cyan)) 10%, transparent), transparent 34%),
    rgba(13, 17, 22, 0.82);
  padding: 18px;
}

.report-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.report-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

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

.report-detail-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.028);
  padding: 16px;
}

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

.report-context-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-context-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

.report-context-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.report-context-item strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.report-notes,
.report-audit {
  display: grid;
  gap: 10px;
}

.report-note,
.report-audit-entry {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}

.report-note-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.report-note p,
.report-audit-entry p {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.report-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.report-detail-actions.secondary {
  justify-content: space-between;
}

.report-priority-control {
  display: grid;
  gap: 8px;
  min-width: 180px;
  flex: 1 1 180px;
}

.report-priority-control span,
.report-note-composer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.report-note-composer {
  display: grid;
  gap: 8px;
}

.report-note-composer textarea {
  min-height: 120px;
}

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

.user-admin-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--role-color, var(--primary)) 13%, transparent), transparent 48%),
    var(--surface);
  padding: 18px;
}

.user-admin-row .avatar-image,
.user-admin-row .staff-avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.user-admin-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.user-meta-grid,
.permission-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-summary {
  margin-top: 12px;
}

.permission-pill {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  padding: 6px 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.permission-pill strong {
  color: var(--cyan);
}

.permission-pill em {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--muted);
  font-style: normal;
  padding: 3px 7px;
}

.user-actions {
  display: grid;
  gap: 8px;
  min-width: 160px;
}

.user-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.danger-badge {
  border-color: rgba(251, 113, 133, 0.24);
  background: rgba(251, 113, 133, 0.08);
  color: var(--danger);
}

.password-result {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.role-admin-row h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.resourcepack-file-list {
  grid-template-columns: 1fr;
}

.resourcepack-toolbar {
  gap: 20px;
}

.resourcepack-toolbar form,
.resourcepack-editor,
.resourcepack-bedrock-panel,
.resourcepack-bedrock-panel form {
  display: grid;
  gap: 14px;
}

.resourcepack-bedrock-items {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.resourcepack-bedrock-panel textarea {
  min-height: 240px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
  overflow: auto;
}

.resourcepack-conversion-messages {
  display: grid;
  gap: 5px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--warning);
  font-size: 14px;
}

.resourcepack-conversion-messages.error-list,
.warning-badge {
  color: var(--warning);
}

.warning-badge {
  border-color: rgba(239, 166, 60, 0.25);
  background: rgba(239, 166, 60, 0.08);
}

.resourcepack-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resourcepack-upload-progress {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.resourcepack-upload-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 14px;
}

.resourcepack-upload-progress progress {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.resourcepack-upload-progress progress::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.06);
}

.resourcepack-upload-progress progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.resourcepack-upload-progress progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.resourcepack-browser-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.resourcepack-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-muted);
}

.resourcepack-breadcrumbs button {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.resourcepack-editor textarea {
  min-height: 360px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre;
  overflow: auto;
}

.compact-management-header {
  align-items: flex-start;
}

.compact-management-header h2 {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 18px;
}

.resourcepack-file-row h3 {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
}

.role-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--role-color, var(--primary));
  box-shadow: 0 0 18px color-mix(in srgb, var(--role-color, var(--primary)) 52%, transparent);
}

.ghost-danger {
  min-height: 34px;
  border-color: rgba(251, 113, 133, 0.24);
  background: rgba(251, 113, 133, 0.08);
  color: var(--danger);
  padding: 0 11px;
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 24px;
}

.error {
  color: var(--danger);
}

.success {
  color: var(--success);
}

.warning {
  color: var(--warning);
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  width: min(980px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-overlay);
  box-shadow: var(--shadow-md);
}

.modal-aside {
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: 520px;
  background:
    radial-gradient(circle at 40% 20%, rgba(25, 217, 238, 0.18), transparent 14rem),
    var(--gradient-soft);
  padding: 30px;
}

.mini-cube {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.modal-content {
  padding: 26px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.auth-grid {
  display: grid;
  gap: 16px;
}

.auth-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.auth-card label {
  display: grid;
  gap: 8px;
}

.auth-card input[aria-invalid="true"] {
  border-color: rgba(234, 92, 104, 0.8);
  box-shadow: 0 0 0 3px rgba(234, 92, 104, 0.14);
}

.password-field {
  gap: 8px;
}

.password-field input {
  min-width: 0;
}

.password-field button {
  min-width: 72px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

.icon-button {
  width: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 20px;
}

.form-message {
  min-height: 24px;
  margin-top: 12px;
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-deep) 88%, transparent);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(130px, 0.55fr));
  gap: 42px;
  width: var(--page);
  margin: 0 auto;
  padding: 44px 0 48px;
}

.footer-intro {
  max-width: 420px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-column > strong {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 13px;
}

.footer-column button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  text-align: left;
}

.footer-column button:hover,
.footer-column a:hover {
  color: var(--cyan);
  transform: none;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.footer-brand {
  padding: 0 0 16px;
}

.footer-address {
  color: var(--text) !important;
  font-size: 15px;
  font-weight: 900;
}

.skeleton-card {
  min-height: 150px;
  padding: 22px;
}

.skeleton-card span {
  display: block;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  animation: shimmer 1.6s ease-in-out infinite;
}

.skeleton-card span + span {
  width: 72%;
  margin-top: 14px;
}

.skeleton-card span + span + span {
  width: 48%;
}

@keyframes shimmer {
  0% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.45;
  }
}

@keyframes roleGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 260% 50%;
  }
}

@keyframes namePulse {
  0%,
  100% {
    opacity: 0.9;
    text-shadow: 0 0 10px color-mix(in srgb, var(--effect-color-a, var(--role-color, var(--primary))) 20%, transparent);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 14px color-mix(in srgb, var(--effect-color-a, var(--role-color, var(--primary))) 55%, transparent),
      0 0 30px color-mix(in srgb, var(--effect-color-b, var(--effect-color-a, var(--role-color, var(--primary)))) 24%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Editorial interface — authoritative visual layer
   -------------------------------------------------------------------------- */

:root {
  color-scheme: dark;
  --bg: #0d1519;
  --bg-2: #111c21;
  --surface: #162229;
  --surface-solid: #162229;
  --surface-deep: #10191e;
  --surface-raised: #1c2a31;
  --surface-soft: rgba(229, 244, 245, 0.055);
  --surface-overlay: rgba(13, 21, 25, 0.97);
  --line: rgba(220, 239, 240, 0.14);
  --line-strong: rgba(220, 239, 240, 0.24);
  --text: #f2f6f6;
  --text-soft: #bbc6ca;
  --muted: #7f8c92;
  --primary: #27d4df;
  --secondary: #f2802d;
  --cyan: #27d4df;
  --cyan-hover: #58e0e8;
  --orange: #f2802d;
  --orange-hover: #ff9a50;
  --success: #56cd87;
  --danger: #ee6873;
  --warning: #e9ae4b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 12px 34px rgba(0, 0, 0, 0.16);
  --shadow-md: 0 26px 70px rgba(0, 0, 0, 0.28);
  --page: min(1180px, calc(100% - 48px));
  --ease: 160ms ease;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f5;
  --bg-2: #eef2f1;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-deep: #f0f3f2;
  --surface-raised: #e8eeec;
  --surface-soft: rgba(19, 44, 49, 0.04);
  --surface-overlay: rgba(255, 255, 255, 0.98);
  --line: rgba(19, 44, 49, 0.12);
  --line-strong: rgba(19, 44, 49, 0.22);
  --text: #122125;
  --text-soft: #45565c;
  --muted: #6d7c81;
  --shadow-sm: 0 12px 34px rgba(19, 44, 49, 0.07);
  --shadow-md: 0 26px 70px rgba(19, 44, 49, 0.13);
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.008em;
}

body::before {
  display: block;
  background: linear-gradient(180deg, var(--bg-2), var(--bg) 42rem);
}

body::after {
  display: none;
}

h1,
h2,
h3,
strong {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: rgba(39, 212, 223, 0.26);
  color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.eyebrow::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.7;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

[data-theme="light"] .site-header {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}

.site-header-inner {
  min-height: 72px;
  gap: 30px;
  padding: 8px 0;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(39, 212, 223, 0.34);
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.brand-mark span,
.mini-cube {
  width: 14px;
  height: 18px;
  border-width: 2px;
  box-shadow: none;
}

.brand-text {
  font-size: 18px;
  letter-spacing: -0.04em;
}

.brand-network {
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.main-nav {
  gap: 4px;
}

.main-nav a {
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.main-nav a.active,
.main-nav a:hover {
  border-color: transparent;
  background: var(--surface-soft);
  color: var(--text);
}

.header-utilities {
  gap: 7px;
}

.header-ip,
.theme-toggle,
.account-toggle,
.nav-toggle {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
}

.header-ip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  font-size: 12px;
}

.header-ip svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.header-ip:hover,
.theme-toggle:hover,
.account-toggle:hover,
.nav-toggle:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--text);
  transform: none;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  min-height: 38px;
}

.account-toggle {
  gap: 8px;
  padding: 0 13px;
}

.dropdown {
  min-width: 240px;
  padding: 7px;
  border-color: var(--line);
  border-radius: 12px;
  background: var(--surface-overlay);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
}

.dropdown a,
.dropdown button {
  min-height: 38px;
  border-radius: 7px;
  font-size: 13px;
}

button,
input,
select,
textarea {
  border-color: var(--line);
  background: var(--surface-deep);
  color: var(--text);
}

input,
select,
textarea {
  padding: 12px 13px;
  border-radius: 8px;
  box-shadow: none;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(39, 212, 223, 0.55);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(39, 212, 223, 0.08);
}

.primary-action,
.button-link,
.auth-card button[type="submit"],
.editor-panel > button[type="submit"],
.comment-form button[type="submit"] {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--cyan);
  border-radius: 8px;
  background: var(--cyan);
  color: #051214;
  box-shadow: none;
}

.primary-action:hover,
.button-link:hover,
.auth-card button[type="submit"]:hover,
.editor-panel > button[type="submit"]:hover,
.comment-form button[type="submit"]:hover {
  border-color: var(--cyan-hover);
  background: var(--cyan-hover);
  box-shadow: none;
}

.secondary-action,
.secondary-link {
  border-color: var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
}

.secondary-action:hover,
.secondary-link:hover {
  border-color: var(--text-soft);
  background: var(--surface-soft);
  color: var(--text);
}

.text-link,
.read-more,
.back-link,
.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.text-link span,
.read-more {
  color: var(--cyan);
}

.text-link:hover,
.read-more:hover,
.back-link:hover,
.quiet-link:hover {
  color: var(--cyan);
}

main {
  padding: 0 0 108px;
}

.page {
  gap: 72px;
}

.page:not(.page-home) {
  padding-top: 70px;
}

.page-heading,
.page-intro {
  display: grid;
  gap: 12px;
  padding: 0 0 38px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-heading::after,
.page-intro::after,
.page-heading.decorated::after {
  display: none;
}

.page-heading h1,
.page-intro h1 {
  max-width: 850px;
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.page-heading p:not(.eyebrow),
.page-intro p:not(.eyebrow) {
  max-width: 650px;
  color: var(--text-soft);
  font-size: 16px;
}

.section-heading {
  align-items: end;
  gap: 24px;
}

.section-heading h2,
.community-cta h2 {
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-block,
.comments-section {
  gap: 22px;
}

/* Home */
.page-home {
  gap: 0;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(390px, 0.76fr);
  align-items: center;
  min-height: 660px;
  overflow: visible;
  padding: 72px 0 50px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-hero::before,
.home-hero::after {
  display: none;
}

.home-hero .public-hero-copy {
  z-index: 2;
  gap: 22px;
}

.home-hero h1 {
  max-width: 720px;
  font-size: clamp(4rem, 7.5vw, 6.7rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.home-hero .public-hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  gap: 18px;
}

.home-hero-art {
  position: relative;
  display: grid;
  min-height: 510px;
  place-items: center;
}

.home-hero-art::before {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 212, 223, 0.095), transparent 67%);
  content: "";
}

.home-hero-art::after {
  display: none;
}

.home-hero-art img {
  position: relative;
  width: min(44vw, 520px);
  max-height: 510px;
  object-fit: contain;
  filter: drop-shadow(0 30px 42px rgba(0, 0, 0, 0.38));
}

.home-network-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-network-bar > p {
  text-align: center;
}

.home-network-bar > a {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.home-network-bar > a:hover {
  color: var(--cyan);
}

.network-state {
  display: flex;
  align-items: center;
  gap: 10px;
}

.network-state > div {
  display: grid;
  gap: 1px;
}

.network-state span:not(.status-dot) {
  color: var(--muted);
  font-size: 10px;
}

.network-state strong {
  font-size: 13px;
}

.home-news-section {
  display: grid;
  gap: 28px;
  padding: 108px 0;
  border-top: 1px solid var(--line);
}

.community-cta {
  min-height: 220px;
  margin-top: 8px;
  padding: 44px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.community-cta::before {
  display: none;
}

.community-cta p {
  color: var(--text-soft);
}

/* Editorial news */
.news-layout {
  gap: 0;
}

.news-card {
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: border-color var(--ease), opacity var(--ease);
}

.news-card:hover {
  border-color: var(--line-strong);
  box-shadow: none;
  transform: none;
}

.news-card.compact {
  min-height: 0;
}

.news-card.featured.home-featured,
.news-card.featured.feed-featured {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.7fr);
  min-height: 390px;
  border-bottom: 1px solid var(--line);
}

.news-cover,
.article-cover {
  overflow: hidden;
  border-radius: 0;
  background: var(--surface-raised);
}

.placeholder-cover {
  display: grid;
  place-items: center;
  background: var(--surface-soft);
}

.placeholder-cover span {
  color: var(--line-strong);
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 950;
  letter-spacing: -0.08em;
}

.prison-cover {
  background: #111719;
}

.news-cover::before,
.article-cover::before {
  background: linear-gradient(180deg, transparent 66%, rgba(5, 9, 11, 0.25));
}

.news-card .news-cover img {
  transition: transform 420ms ease;
}

.news-card:hover .news-cover img {
  transform: scale(1.018);
}

.news-body {
  padding: 24px 0;
}

.news-card.featured .news-body,
.news-card.featured.home-featured .news-body,
.news-card.featured.feed-featured .news-body {
  align-content: center;
  padding: 36px 0 36px 42px;
}

.news-card h3 {
  font-size: 22px;
  letter-spacing: -0.035em;
}

.news-card.featured h3 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.news-card p {
  color: var(--muted);
}

.news-layout-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-layout-compact .news-card {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 24px 24px 0;
  border-right: 1px solid var(--line);
}

.news-layout-compact .news-card:first-child {
  padding-left: 0;
}

.news-layout-compact .news-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.news-layout-compact .news-cover {
  aspect-ratio: 16 / 9;
}

.news-layout-compact .news-body {
  padding-inline: 0;
}

.news-toolbar {
  position: sticky;
  top: 82px;
  z-index: 8;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 91%, transparent);
  backdrop-filter: blur(16px);
}

.news-filters {
  gap: 4px;
}

.filter-pill {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.filter-pill.active {
  border: 0;
  background: var(--surface-soft);
  color: var(--text);
}

.page-news > .news-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.page-news > .news-layout .news-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 24px 24px 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.page-news > .news-layout .news-card:nth-child(even) {
  padding-right: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.page-news > .news-layout .news-cover {
  aspect-ratio: 4 / 3;
}

.page-news > .news-layout .news-body {
  align-content: start;
  padding: 0;
}

.article-view {
  max-width: 920px;
  margin: 0 auto;
}

.article-shell {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.article-shell .back-link {
  margin-bottom: 24px;
}

.article-cover {
  max-height: 500px;
  margin-bottom: 34px;
}

.article-shell h1 {
  max-width: 800px;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.article-summary,
.article-content {
  max-width: 720px;
}

.article-summary {
  margin-top: 32px;
  padding: 0 0 24px;
  border-left: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 20px;
}

.article-content {
  gap: 20px;
  padding-top: 28px;
}

.article-content p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
}

.comments-section {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.comment-form,
.comment-card,
.empty-state,
.profile-hero,
.auth-card,
.staff-card {
  border-color: var(--line);
  background: transparent;
  box-shadow: none;
}

.comment-form {
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.comment-card {
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

/* Prison */
.page-prison {
  gap: 0;
}

.prison-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.3fr);
  align-items: center;
  gap: 56px;
  min-height: 480px;
  overflow: hidden;
  padding: 62px 64px;
  border: 0;
  background:
    linear-gradient(105deg, rgba(6, 10, 12, 0.99) 10%, rgba(6, 10, 12, 0.93) 58%, rgba(6, 10, 12, 0.72)),
    var(--prison-background-image) center 45% / cover;
  color: #f2f6f6;
}

.prison-intro::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(39, 212, 223, 0.1), transparent 20rem),
    linear-gradient(180deg, transparent 72%, rgba(6, 10, 12, 0.32));
  content: "";
  pointer-events: none;
}

.prison-intro::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(39, 212, 223, 0.72), transparent 80%);
  content: "";
}

.prison-intro > * {
  position: relative;
  z-index: 2;
}

.prison-intro-copy {
  display: grid;
  gap: 20px;
  max-width: 850px;
}

.prison-intro h1 {
  max-width: 830px;
  color: #f4f7f7;
  font-size: clamp(3.7rem, 7.5vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.prison-intro h1 span {
  color: var(--orange);
}

.prison-intro-copy > p:not(.eyebrow) {
  max-width: 640px;
  color: #bbc7ca;
  font-size: 17px;
  line-height: 1.7;
}

.prison-intro .secondary-link {
  border-color: rgba(255, 255, 255, 0.24);
  color: #d7e1e4;
}

.prison-intro .secondary-link:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.prison-intro-note {
  display: grid;
  align-self: end;
  gap: 8px;
  max-width: 230px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.prison-intro-note > span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.prison-intro-note p {
  color: #d5dfe1;
  font-size: 14px;
  line-height: 1.6;
}

.prison-loop,
.prison-pickaxe {
  display: grid;
  gap: 38px;
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}

.prison-loop {
  scroll-margin-top: 94px;
}

.prison-loop .section-heading > p {
  max-width: 520px;
}

.prison-loop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.prison-loop-step {
  position: relative;
  min-height: 205px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.prison-loop-step:first-child {
  padding-left: 0;
}

.prison-loop-step:last-child {
  padding-right: 0;
  border-right: 0;
}

.prison-loop-step::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.prison-loop-step > span {
  display: block;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.prison-loop-step > span {
  margin-bottom: 38px;
}

.prison-loop-step h3 {
  margin-bottom: 9px;
  font-size: 24px;
}

.prison-loop-step p {
  max-width: 230px;
  font-size: 14px;
  line-height: 1.65;
}

.prison-pickaxe {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(430px, 1fr);
  align-items: center;
  gap: 84px;
}

.prison-pickaxe-copy {
  display: grid;
  gap: 16px;
}

.prison-pickaxe-copy h2 {
  max-width: 560px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.prison-pickaxe-copy > p:not(.eyebrow) {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.75;
}

.prison-pickaxe-points {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.prison-pickaxe-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 14px;
}

.prison-pickaxe-points li::before {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  content: "";
}

.prison-level-panel {
  padding: 36px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 82% 8%, rgba(39, 212, 223, 0.1), transparent 16rem),
    linear-gradient(130deg, rgba(240, 122, 22, 0.06), transparent 44%),
    var(--surface);
}

.prison-level-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.prison-level-panel-head > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prison-level-panel-head strong {
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.prison-level-panel-head strong span {
  color: var(--orange);
}

.prison-level-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 34px 0;
}

.prison-level-track span {
  height: 6px;
  background: var(--line-strong);
}

.prison-level-track span:nth-child(1) {
  background: var(--orange);
}

.prison-level-track span:nth-child(2) {
  background: linear-gradient(90deg, var(--orange), var(--cyan));
}

.prison-level-track span:nth-child(3) {
  background: var(--cyan);
}

.prison-level-milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.prison-level-milestones article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 24px 20px 0;
  border-right: 1px solid var(--line);
}

.prison-level-milestones article:first-child {
  padding-left: 0;
}

.prison-level-milestones article:last-child {
  padding-right: 0;
  border-right: 0;
}

.prison-level-milestones article > span {
  margin-bottom: 13px;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.prison-level-milestones strong {
  font-size: 15px;
}

.prison-level-milestones p {
  font-size: 12px;
  line-height: 1.55;
}

.prison-final-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  overflow: hidden;
  min-height: 250px;
  margin-top: 96px;
  padding: 54px 58px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 86% 16%, rgba(39, 212, 223, 0.1), transparent 19rem),
    linear-gradient(120deg, rgba(240, 122, 22, 0.07), transparent 42%),
    var(--surface);
}

.prison-final-cta::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(var(--orange), var(--cyan));
  content: "";
}

.prison-final-cta > * {
  position: relative;
}

.prison-final-cta h2 {
  margin: 7px 0 12px;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.prison-final-cta p:not(.eyebrow) {
  color: var(--text-soft);
}

.prison-final-cta .cta-actions {
  display: flex;
  align-items: center;
}

/* Staff and profile */
.staff-page-hero {
  min-height: auto;
}

.page-intro.staff-page-hero,
.page-intro.content-page-hero {
  display: grid;
  gap: 12px;
  min-height: auto;
  padding: 0 0 38px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-intro.staff-page-hero::after {
  display: none;
}

.staff-grid {
  gap: 62px;
}

.staff-group {
  gap: 20px;
}

.staff-group-header {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.staff-group-header h2 {
  font-size: 18px;
}

.staff-members {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.staff-card {
  min-height: 210px;
  padding: 26px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.staff-card:last-child {
  border-right: 0;
}

.staff-card:hover {
  border-color: var(--line);
  background: var(--surface-soft);
  box-shadow: none;
  transform: none;
}

.staff-card .avatar-image,
.staff-card .staff-avatar {
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

.staff-rank-badge {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--role-color, var(--muted));
}

.profile-panel {
  max-width: 820px;
}

.profile-hero {
  padding: 0 0 34px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.profile-hero .avatar-image,
.profile-hero .staff-avatar {
  border-radius: 14px;
  box-shadow: none;
}

.profile-facts span,
.state-pill,
.badge {
  border-color: var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  box-shadow: none;
}

/* Admin shell — retained as the deliberate app-like workspace. */
body.admin-route main {
  width: min(1500px, calc(100% - 36px));
  padding: 24px 0 36px;
}

body.admin-route .site-footer {
  display: none;
}

.admin-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.admin-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 24px;
  min-height: calc(100vh - 124px);
  padding: 20px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-sidebar-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 5px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(39, 212, 223, 0.28);
  border-radius: 10px;
  background: rgba(39, 212, 223, 0.07);
  color: var(--cyan);
  font-weight: 950;
}

.admin-sidebar-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-sidebar-head strong {
  font-size: 14px;
}

.admin-sidebar-head div span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-navigation {
  display: grid;
  align-content: start;
  gap: 5px;
}

.admin-navigation > p {
  margin: 0 9px 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-navigation a,
.admin-sidebar-back {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  transition: var(--ease);
}

.admin-navigation a svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.admin-navigation a:hover,
.admin-navigation a.active {
  border-color: rgba(39, 212, 223, 0.14);
  background: rgba(39, 212, 223, 0.07);
  color: var(--text);
}

.admin-navigation a.active {
  box-shadow: inset 3px 0 var(--cyan);
}

.admin-sidebar-back {
  align-self: end;
  border-color: var(--line);
  color: var(--text-soft);
}

.admin-sidebar-back:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.admin-workspace {
  min-width: 0;
}

.admin-workspace > .page {
  gap: 22px;
  padding-top: 0;
}

.management-header {
  min-height: 104px;
  padding: 23px 27px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: none;
}

.management-header h1 {
  margin-top: 4px;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  letter-spacing: -0.045em;
}

.management-header > div > p:last-child {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.compact-management-header {
  min-height: auto;
  padding: 0 0 17px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.editor-panel,
.management-note,
.admin-page .section-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: none;
}

.editor-panel label {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 780;
}

.permission-group,
.embed-preview-panel,
.resourcepack-toolbar form {
  border-color: var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.admin-row,
.user-admin-row {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
}

.admin-row:hover,
.user-admin-row:hover {
  border-color: var(--line-strong);
}

.report-tabs {
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.report-tab {
  border-color: transparent;
  border-radius: 7px;
  background: transparent;
}

.report-tab.active {
  border-color: rgba(39, 212, 223, 0.15);
  background: rgba(39, 212, 223, 0.08);
  box-shadow: none;
}

.report-summary-card,
.report-detail-card,
.report-detail-shell,
.report-section,
.report-detail-section,
.report-note,
.report-audit-entry,
.report-context-item {
  border-color: var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  box-shadow: none;
}

.report-summary-card {
  box-shadow: inset 3px 0 var(--report-accent, var(--cyan));
}

.report-summary-card:hover,
.report-summary-card.active {
  border-color: color-mix(in srgb, var(--report-accent, var(--cyan)) 34%, var(--line));
  background: color-mix(in srgb, var(--surface) 94%, var(--report-accent, var(--cyan)) 6%);
}

.resourcepack-browser-head {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.resourcepack-editor textarea,
.resourcepack-bedrock-panel textarea {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
}

/* Modal and footer */
.modal-backdrop {
  background: rgba(3, 7, 9, 0.76);
}

.modal-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.modal-aside {
  background: #0b1114;
}

[data-theme="dark"] .modal-aside {
  background: var(--surface-deep);
}

.auth-card {
  border-radius: 10px;
  background: var(--surface-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

[data-theme="light"] .site-footer {
  background: #0a0f12;
}

.site-footer-inner {
  gap: 58px;
  padding: 52px 0;
}

.site-footer p,
.site-footer a,
.site-footer button {
  color: #829097;
}

.site-footer .footer-address {
  color: #9aabb0;
}

.footer-column > strong {
  color: #edf4f4;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.site-toast {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-overlay);
  box-shadow: var(--shadow-md);
}

@media (max-width: 1100px) {
  :root {
    --page: min(100% - 36px, 1180px);
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.65fr);
  }

  .home-hero h1 {
    font-size: clamp(3.8rem, 8vw, 5.8rem);
  }

  .admin-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .home-hero {
    min-height: 590px;
  }

  .page-news > .news-layout {
    grid-template-columns: 1fr;
  }

  .page-news > .news-layout .news-card:nth-child(even) {
    padding-right: 24px;
    padding-left: 0;
    border-left: 0;
  }

  body.admin-route main {
    width: min(100% - 28px, 900px);
    padding-top: 15px;
  }

  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .admin-sidebar {
    top: 78px;
    z-index: 12;
    display: block;
    min-height: auto;
    overflow: hidden;
    padding: 6px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--bg) 91%, transparent);
    backdrop-filter: blur(16px);
  }

  .admin-sidebar-head,
  .admin-sidebar-back,
  .admin-navigation > p {
    display: none;
  }

  .admin-navigation {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .admin-navigation::-webkit-scrollbar {
    display: none;
  }

  .admin-navigation a {
    flex: 0 0 auto;
    min-height: 38px;
    white-space: nowrap;
  }

  .admin-navigation a.active {
    box-shadow: inset 0 -2px var(--cyan);
  }
}

@media (max-width: 768px) {
  :root {
    --page: calc(100% - 28px);
  }

  .site-header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 66px;
    gap: 8px 12px;
    padding: 8px 0;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    width: 100%;
    padding-top: 7px;
    border-top: 1px solid var(--line);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    width: 100%;
  }

  .header-utilities {
    grid-column: 2;
    grid-row: 1;
  }

  .header-ip {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .header-ip > span {
    display: none;
  }

  .page:not(.page-home) {
    padding-top: 48px;
  }

  .page {
    gap: 48px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 68px 0 34px;
  }

  .home-hero .public-hero-copy {
    z-index: 3;
  }

  .home-hero h1 {
    font-size: clamp(3.6rem, 14vw, 5rem);
  }

  .home-hero-art {
    position: relative;
    right: auto;
    bottom: auto;
    z-index: 1;
    min-height: 350px;
    margin-top: 16px;
    opacity: 1;
  }

  .home-hero-art img {
    width: min(88vw, 440px);
  }

  .home-network-bar {
    grid-template-columns: 1fr auto;
  }

  .home-network-bar > p {
    display: none;
  }

  .home-news-section {
    padding: 82px 0;
  }

  .news-card.featured.home-featured,
  .news-card.featured.feed-featured {
    grid-template-columns: 1fr;
  }

  .news-card.featured .news-cover {
    min-height: 280px;
  }

  .news-card.featured .news-body,
  .news-card.featured.home-featured .news-body,
  .news-card.featured.feed-featured .news-body {
    padding: 28px 0;
  }

  .news-layout-compact {
    grid-template-columns: 1fr;
  }

  .news-layout-compact .news-card,
  .news-layout-compact .news-card:first-child,
  .news-layout-compact .news-card:last-child {
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 18px;
    padding: 20px 0;
    border-right: 0;
  }

  .news-layout-compact .news-cover {
    aspect-ratio: 4 / 3;
  }

  .news-layout-compact .news-body {
    padding: 0;
  }

  .prison-intro {
    grid-template-columns: 1fr;
    min-height: 480px;
    padding: 48px 34px;
  }

  .prison-intro-copy {
    max-width: 700px;
  }

  .prison-intro-note {
    justify-self: start;
    max-width: 360px;
  }

  .prison-loop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prison-loop-step:nth-child(2),
  .prison-loop-step:nth-child(4) {
    padding-right: 0;
    border-right: 0;
  }

  .prison-loop-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .prison-loop-step:nth-child(3) {
    padding-left: 0;
  }

  .prison-pickaxe {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .prison-level-panel {
    width: 100%;
  }

  .prison-final-cta {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .prison-final-cta .cta-actions {
    justify-content: flex-start;
  }

  .staff-members {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .management-header,
  .editor-panel,
  .management-note,
  .admin-page .section-block {
    padding: 19px;
  }
}

@media (max-width: 520px) {
  :root {
    --page: calc(100% - 22px);
  }

  .site-header .brand-copy {
    display: none;
  }

  .site-header-inner,
  .header-utilities,
  .account-menu {
    min-width: 0;
  }

  .header-utilities {
    justify-content: flex-end;
  }

  .header-utilities .primary-action,
  .header-utilities .account-toggle {
    width: 108px;
    max-width: 108px;
    min-width: 0;
    min-height: 38px;
    overflow: hidden;
    padding: 0 10px;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #account-name {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
  }

  .home-hero {
    min-height: auto;
    padding-top: 55px;
  }

  .home-hero h1 {
    font-size: clamp(3.15rem, 15vw, 4rem);
  }

  .home-hero .public-hero-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
  }

  .hero-actions > *,
  .cta-actions > * {
    width: 100%;
    justify-content: center;
  }

  .home-hero-art {
    right: auto;
    bottom: auto;
    min-height: 280px;
    opacity: 1;
  }

  .home-hero-art img {
    width: min(100%, 340px);
  }

  .home-network-bar {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .home-network-bar > a {
    font-size: 11px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .news-layout-compact .news-card,
  .news-layout-compact .news-card:first-child,
  .news-layout-compact .news-card:last-child,
  .page-news > .news-layout .news-card,
  .page-news > .news-layout .news-card:nth-child(even) {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }

  .news-layout-compact .news-body > p,
  .news-layout-compact .meta-row,
  .news-layout-compact .read-more,
  .page-news > .news-layout .news-body > p,
  .page-news > .news-layout .meta-row {
    display: none;
  }

  .news-layout-compact .news-card h3,
  .page-news > .news-layout .news-card h3 {
    font-size: 16px;
  }

  .prison-intro {
    min-height: auto;
    gap: 36px;
    padding: 42px 22px;
  }

  .prison-intro h1 {
    font-size: clamp(3.1rem, 14vw, 4.2rem);
  }

  .prison-intro-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .prison-loop,
  .prison-pickaxe {
    gap: 30px;
    padding: 68px 0;
  }

  .prison-loop .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .prison-loop-grid {
    grid-template-columns: 1fr;
  }

  .prison-loop-step,
  .prison-loop-step:first-child,
  .prison-loop-step:last-child,
  .prison-loop-step:nth-child(2),
  .prison-loop-step:nth-child(3),
  .prison-loop-step:nth-child(4) {
    min-height: 0;
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .prison-loop-step > span {
    margin-bottom: 24px;
  }

  .prison-pickaxe-copy h2 {
    font-size: 2.8rem;
  }

  .prison-level-panel {
    padding: 26px 22px;
  }

  .prison-level-panel-head {
    align-items: start;
    flex-direction: column;
  }

  .prison-level-milestones {
    grid-template-columns: 1fr;
  }

  .prison-level-milestones article,
  .prison-level-milestones article:first-child,
  .prison-level-milestones article:last-child {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 4px 10px;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .prison-level-milestones article:last-child {
    border-bottom: 0;
  }

  .prison-level-milestones article > span {
    grid-row: 1 / span 2;
    margin: 4px 0 0;
  }

  .prison-final-cta {
    min-height: 0;
    margin-top: 68px;
    padding: 38px 24px;
  }

  .prison-final-cta .cta-actions {
    display: grid;
    width: 100%;
  }

  .prison-final-cta .cta-actions > * {
    width: 100%;
  }

  .staff-members {
    grid-template-columns: 1fr;
  }

  .staff-card {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-hero {
    grid-template-columns: 1fr;
  }

  .admin-navigation a span {
    font-size: 11px;
  }

  .site-footer-inner {
    gap: 30px;
    padding: 40px 0;
  }
}

/* Definitive website polish and responsive layer. */

/* Rich content editor and public rich text */
.rich-editor { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.rich-editor:focus-within { border-color: color-mix(in srgb, var(--accent) 68%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
.rich-editor-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface-strong) 82%, transparent); }
.rich-editor-toolbar button, .rich-editor-toolbar select { min-height: 34px; width: auto; margin: 0; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: .78rem; }
.rich-editor-toolbar button:hover, .rich-editor-toolbar select:hover { border-color: var(--accent); }
.rich-editor-surface { min-height: 190px; padding: 18px; outline: 0; color: var(--text); line-height: 1.75; }
.rich-editor-tall .rich-editor-surface { min-height: 420px; }
.rich-editor-surface:empty::before { content: "Start writing..."; color: var(--muted); pointer-events: none; }
.rich-content h2, .rich-editor-surface h2 { margin: 1.8em 0 .55em; font-size: 1.55rem; }
.rich-content h3, .rich-editor-surface h3 { margin: 1.5em 0 .5em; font-size: 1.25rem; }
.rich-content p, .rich-editor-surface p { margin: 0 0 1em; }
.rich-content p.rte-spacer, .rich-editor-surface p.rte-spacer { min-height: 1em; margin: 0 0 1em; }
.rich-content > br { display: block; margin-bottom: 1em; content: ""; }
.rich-content blockquote, .rich-editor-surface blockquote { margin: 1.25em 0; padding: 10px 0 10px 18px; border-left: 3px solid var(--accent); color: var(--muted); }
.rich-content a, .rich-editor-surface a { color: var(--accent); text-decoration: underline; }
.rte-color-cyan { color: #19d9ee; } .rte-color-orange { color: #f07a16; } .rte-color-green { color: #49d17d; }
.rte-color-gold { color: #f2c14e; } .rte-color-red { color: #ee6574; } .rte-color-purple { color: #b388ff; } .rte-color-muted { color: var(--muted); }
.rte-size-small { font-size: .84em; } .rte-size-large { font-size: 1.22em; }
.rte-align-center { text-align: center; } .rte-align-right { text-align: right; }

/* Staff category spacing and management */
.staff-grid { overflow: visible; }
.staff-group { gap: 16px; padding-bottom: 34px; border-bottom: 1px solid var(--line); overflow: visible; }
.staff-group + .staff-group { margin-top: 14px; }
.staff-group-header { overflow: visible; }
.staff-members { padding-bottom: 2px; border-bottom: 0; overflow: visible; }
.staff-category-management { margin-top: 42px; }
.compact-editor { max-width: 760px; }

/* Profile composition */
.profile-panel { max-width: none; margin-inline: auto; }
.profile-page-grid { width: 100%; margin-inline: auto; }
.profile-page-grid.public-profile { max-width: 1100px; }
.profile-page-grid.own-profile { display: grid; grid-template-columns: minmax(0, 940px) 220px; justify-content: center; align-items: start; gap: 30px; max-width: 1200px; }
.profile-main-view { min-width: 0; }
.profile-main-view.profile-view-enter > * { animation: profile-view-enter 180ms ease-out both; }
@keyframes profile-view-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.profile-page-grid .public-profile-shell { min-width: 0; width: 100%; max-width: none; }
.profile-page-grid.public-profile .profile-hero { padding: 44px; }
.profile-page-grid.public-profile .profile-hero .avatar-image, .profile-page-grid.public-profile .profile-hero .staff-avatar { width: 112px; height: 112px; }
.profile-hero.profile-hero-compact { align-items: start; }
.profile-identity { display: grid; min-width: 0; align-content: start; }
.profile-title-row h1 { margin-top: 2px; font-size: clamp(1.8rem, 4vw, 2.55rem); line-height: 1.14; }
.profile-role-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.profile-role-line .role-badges { margin: 0; }
.profile-bio { min-height: 3.3em; overflow-wrap: anywhere; }
.profile-bio-empty { color: var(--muted); font-style: italic; }
.own-profile-settings.profile-sidebar { position: sticky; top: 98px; display: grid; width: 220px; min-width: 0; }
.profile-main-view .profile-settings-panel { min-height: 420px; }

/* Article reading column and compact reactions */
.article-summary, .article-content, .comments-section { width: min(100%, 760px); margin-inline: auto; }
.comments-list { width: 100%; }
.comment-card { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 22px; align-items: start; }
.comment-author { display: grid; justify-items: center; gap: 8px; min-width: 0; padding: 14px; border: 1px solid #000; border-radius: 14px; background: rgba(3, 6, 8, .78); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); text-align: center; }
[data-theme="dark"] .comment-author { border-color: var(--line); background: var(--surface-deep); }
.comment-author .avatar-image, .comment-author .comment-avatar { width: 64px; height: 64px; }
.comment-author .person-link { width: 100%; max-width: 100%; text-align: center; }
.comment-author .role-badges { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 4px; }
.comment-author .role-badge { padding: 3px 7px; font-size: .68rem; }
.comment-body { min-width: 0; }
.comment-head { min-height: 30px; }

/* Prevent filters and animated player names from being visually cropped. */
.news-toolbar { padding: 12px 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 91%, transparent); }
.news-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; overflow: visible; }
.news-filters .filter-pill { flex: 0 0 auto; margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: visible; }
.news-count { flex: 0 0 auto; margin: 0; padding-inline: 4px; }
.person-link { display: inline-block; padding: 2px 1px; border-radius: 0; line-height: 1.35; overflow: visible; vertical-align: middle; }
.colored-name { overflow: visible; }

/* Public FAQ and legal layouts */
.faq-page-shell {
  width: min(100%, 980px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-md);
}

.faq-page-shell .faq-page-hero {
  min-height: 0;
  padding: clamp(32px, 6vw, 64px);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--surface-deep) 96%, transparent), color-mix(in srgb, var(--surface-deep) 68%, transparent)),
    var(--prison-background-image) center 42% / cover;
  box-shadow: none;
}

[data-theme="dark"] .faq-page-shell .faq-page-hero {
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--surface-deep) 88%, transparent), color-mix(in srgb, var(--surface-deep) 56%, transparent)),
    var(--prison-background-image) center 42% / cover;
}

.faq-list {
  display: grid;
  max-width: none;
  gap: 0;
  margin: 0;
  padding: clamp(10px, 2.5vw, 24px) clamp(20px, 5vw, 54px) clamp(24px, 5vw, 52px);
}

.faq-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: grid;
  min-height: 86px;
  padding: 22px 0;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 16px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; border-radius: 6px; }
.faq-index { color: var(--cyan); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.faq-question { font-size: clamp(1rem, 2vw, 1.18rem); font-weight: 850; line-height: 1.35; }
.faq-toggle-icon { position: relative; width: 22px; height: 22px; color: var(--cyan); transition: transform var(--ease); }
.faq-toggle-icon::before,
.faq-toggle-icon::after { position: absolute; top: 10px; left: 3px; width: 16px; height: 2px; content: ""; border-radius: 2px; background: currentColor; }
.faq-toggle-icon::after { transform: rotate(90deg); transition: transform var(--ease); }
.faq-item[open] .faq-toggle-icon::after { transform: rotate(0); }
.faq-answer { padding: 0 44px 26px 58px; color: var(--text-soft); line-height: 1.75; }
.faq-answer > :last-child { margin-bottom: 0; }

.legal-document {
  width: min(100%, 920px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-md);
}
.legal-document-header { padding: clamp(38px, 7vw, 72px) clamp(24px, 6vw, 64px) clamp(30px, 5vw, 50px); border-bottom: 1px solid var(--line); text-align: center; }
.legal-document-header h1,
.legal-document-header h2 { max-width: none; margin: 8px 0 12px; font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: 1; letter-spacing: -.055em; }
.legal-document .content-updated { margin: 0; color: var(--muted); font-size: .82rem; }
.legal-document .legal-content { max-width: none; min-height: 240px; margin: 0; padding: clamp(30px, 6vw, 64px); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.compact-legal { min-height: 0; margin-top: 18px; box-shadow: none; }
.compact-legal .legal-document-header { padding: 28px 24px 24px; }
.compact-legal .legal-document-header h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.compact-legal .legal-content { min-height: 320px; padding: 28px; }

/* Seamless animated names: the first and last painted frames are identical. */
.effect-gradient,
.effect-bold-gradient {
  background-image: linear-gradient(
    90deg,
    var(--effect-color-a, var(--role-color, var(--primary))) 0%,
    var(--effect-color-b, #f07a16) 25%,
    var(--effect-color-a, var(--role-color, var(--primary))) 50%,
    var(--effect-color-b, #f07a16) 75%,
    var(--effect-color-a, var(--role-color, var(--primary))) 100%
  );
  background-size: 200% 100%;
  animation-name: roleGradientSeamless;
}

.effect-rainbow {
  background-image: linear-gradient(
    90deg,
    var(--effect-color-a, var(--role-color, var(--primary))) 0%,
    var(--cyan) 12.5%,
    var(--effect-color-b, var(--orange)) 25%,
    #a855f7 37.5%,
    var(--effect-color-a, var(--role-color, var(--primary))) 50%,
    var(--cyan) 62.5%,
    var(--effect-color-b, var(--orange)) 75%,
    #a855f7 87.5%,
    var(--effect-color-a, var(--role-color, var(--primary))) 100%
  );
  background-size: 200% 100%;
  animation-name: roleGradientSeamless;
}

@keyframes roleGradientSeamless {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

/* Compact staff cards, declared once after all legacy theme rules. */
.page-intro.staff-page-hero {
  min-height: 190px;
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--surface-deep) 96%, transparent), color-mix(in srgb, var(--surface-deep) 70%, transparent)),
    var(--prison-background-image) center 42% / cover;
  box-shadow: var(--shadow-sm);
}
.staff-grid { display: grid; gap: 38px; margin-top: 38px; overflow: visible; }
.staff-group { display: grid; gap: 16px; padding-bottom: 34px; overflow: visible; border-bottom: 1px solid var(--line); }
.staff-group + .staff-group { margin-top: 14px; }
.staff-group-header { display: flex; padding: 0 2px 11px; align-items: baseline; justify-content: space-between; gap: 18px; overflow: visible; border-bottom: 1px solid var(--line); }
.staff-group-header::after { display: none; }
.staff-members { display: grid; padding-bottom: 2px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; overflow: visible; border-bottom: 0; }
.staff-card,
.staff-card:last-child { display: flex; min-height: 154px; padding: 18px 14px 16px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(155deg, color-mix(in srgb, var(--role-color) 8%, var(--surface-raised)), var(--surface)); box-shadow: none; text-align: center; }
.staff-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--role-color) 48%, var(--line)); background: linear-gradient(155deg, color-mix(in srgb, var(--role-color) 14%, var(--surface-raised)), var(--surface)); }
.staff-card .avatar-image,
.staff-card .staff-avatar { width: 64px; height: 64px; border: 2px solid color-mix(in srgb, var(--role-color) 65%, var(--line)); border-radius: 13px; image-rendering: pixelated; }
.staff-card h3 { margin: 1px 0 0; font-size: 1rem; line-height: 1.15; }
.staff-card .staff-rank-badge { max-width: 100%; padding: 4px 8px; overflow: hidden; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }

/* Shared safeguards for every responsive layout. */
.page > *,
.admin-workspace,
.admin-workspace > *,
.management-header > *,
.editor-panel > *,
.form-grid > *,
.embed-grid > *,
.content-editor-grid > *,
.report-detail-grid > *,
.report-context-grid > *,
.user-admin-row > * { min-width: 0; }

.rich-content,
.admin-row,
.management-note,
.permission-summary,
.resourcepack-browser-head { overflow-wrap: anywhere; }

img { max-width: 100%; }

/* Keep responsive picture wrappers neutral so the existing artwork layout stays intact. */
.responsive-prison-art { display: contents; }

/* Skip paint/layout work for repeated public content until it nears the viewport. */
.news-card,
.staff-group,
.faq-item,
.comment-card,
.guestbook-entry {
  content-visibility: auto;
  contain-intrinsic-size: auto 240px;
}

@media (max-width: 980px) {
  .profile-page-grid.own-profile { grid-template-columns: 1fr; }
  .own-profile-settings.profile-sidebar { position: static; display: flex; width: 100%; order: -1; overflow-x: auto; overscroll-behavior-inline: contain; }
  .own-profile-settings.profile-sidebar { scrollbar-width: none; }
  .own-profile-settings.profile-sidebar::-webkit-scrollbar { display: none; }
  .own-profile-settings.profile-sidebar > p { display: none; }
  .own-profile-settings.profile-sidebar button { width: auto; min-height: 44px; flex: 0 0 auto; white-space: nowrap; }
  .content-editor-grid,
  .embed-grid { grid-template-columns: 1fr; }
  .content-preview-panel,
  .embed-preview-panel { position: static; }
  .staff-members { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  :root {
    --prison-background-image: image-set(
      url("/assets/brand/prison-background-960.webp") type("image/webp") 1x,
      url("/assets/brand/prison-background.png") type("image/png") 1x
    );
  }

  body:not(.admin-route) { background-attachment: scroll; }

  .site-header,
  .news-toolbar,
  .admin-sidebar {
    background-color: var(--bg);
    backdrop-filter: none;
  }

  .dropdown {
    background: var(--surface-overlay);
    backdrop-filter: none;
  }

  button,
  .button-link,
  .primary-action,
  .secondary-action,
  input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
  select { min-height: 44px; }

  input,
  select,
  textarea { font-size: 16px; }

  .form-grid,
  .compact-form-grid,
  .toggle-grid,
  .report-field-grid,
  .report-detail-grid,
  .report-context-grid,
  .report-context-wide,
  .resourcepack-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .admin-list { grid-template-columns: 1fr; }
  .admin-row { align-items: flex-start; }
  .admin-row > .button-row { justify-content: flex-end; }
  .user-admin-row { grid-template-columns: 64px minmax(0, 1fr); align-items: start; }
  .user-admin-row .avatar-image,
  .user-admin-row .staff-avatar { width: 64px; height: 64px; }
  .user-actions { display: flex; grid-column: 1 / -1; min-width: 0; flex-wrap: wrap; }
  .user-actions button { flex: 1 1 150px; }
  .report-tabs { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .report-tab { min-width: 150px; flex: 1 0 150px; }
  .report-detail-head { flex-direction: column; }
  .report-detail-meta { justify-content: flex-start; }
  .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-intro { grid-column: 1 / -1; }
  .staff-members { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .comment-card { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .comment-author { padding: 9px; }
  .comment-author .avatar-image,
  .comment-author .comment-avatar { width: 48px; height: 48px; }
  .comment-author .role-badges { display: none; }
  .comment-head { align-items: flex-start; flex-direction: column; }
  .news-toolbar { padding: 10px; }
  .rich-editor-toolbar { max-height: 150px; overflow-y: auto; }

  .profile-hero.profile-hero-compact,
  .profile-page-grid.public-profile .profile-hero { padding: 24px 20px; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .profile-page-grid.public-profile .profile-hero .avatar-image,
  .profile-page-grid.public-profile .profile-hero .staff-avatar { width: 72px; height: 72px; }
  .profile-bio { min-height: 0; }

  .faq-page-shell .faq-page-hero { padding: 32px 24px; }
  .faq-list { padding: 8px 22px 24px; }
  .faq-item summary { min-height: 74px; padding: 18px 0; grid-template-columns: 30px minmax(0, 1fr) 24px; gap: 10px; }
  .faq-answer { padding: 0 0 22px 40px; }
  .legal-document-header { padding: 38px 22px 30px; }
  .legal-document .legal-content { padding: 28px 22px; }

  .modal { padding: 10px; }
  .modal-panel { width: 100%; max-height: calc(100dvh - 20px); grid-template-columns: 1fr; overflow-y: auto; }
  .modal-aside { display: none; }
  .modal-content { padding: 20px 16px; }
}

@media (max-width: 520px) {
  .form-grid,
  .compact-form-grid,
  .toggle-grid,
  .report-field-grid,
  .report-detail-grid,
  .report-context-grid,
  .report-context-wide,
  .resourcepack-action-grid,
  .embed-preview-fields { grid-template-columns: 1fr; }

  body.admin-route main { width: calc(100% - 16px); }
  .admin-sidebar { top: 70px; }
  .admin-navigation a { min-height: 44px; padding-inline: 10px; }
  .management-header { min-height: 0; align-items: flex-start; flex-direction: column; gap: 12px; }
  .management-header .state-pill { align-self: flex-start; }
  .editor-panel,
  .management-note,
  .admin-page .section-block { padding: 16px; }
  .permission-group { padding: 14px; }
  .admin-row { flex-direction: column; padding: 16px; }
  .admin-row > .button-row { width: 100%; justify-content: stretch; }
  .admin-row > .button-row > button { flex: 1 1 130px; }
  .button-row { width: 100%; }
  .button-row > button,
  .button-row > .button-link { flex: 1 1 140px; justify-content: center; }
  .resourcepack-browser-head { align-items: flex-start; flex-direction: column; }
  .resourcepack-breadcrumbs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .resourcepack-editor textarea,
  .resourcepack-bedrock-panel textarea { min-height: 300px; }
  .site-toast { right: 11px; bottom: 11px; left: 11px; max-width: none; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .footer-intro { grid-column: auto; }
}

@media (max-width: 390px) {
  .profile-hero.profile-hero-compact,
  .profile-page-grid.public-profile .profile-hero { grid-template-columns: 1fr; }
  .staff-members { grid-template-columns: 1fr; }
  .staff-card,
  .staff-card:last-child { min-height: 142px; }
  .comment-card { grid-template-columns: 1fr; }
  .comment-author { grid-template-columns: 48px minmax(0, 1fr); justify-items: start; text-align: left; }
  .comment-author .person-link { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .profile-main-view.profile-view-enter > * { animation: none; }
}
