:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #86868b;
  --line: #d2d2d7;
  --line-strong: #aeaeb2;
  --control-line: #8e8e93;
  --control-line-strong: #636366;
  --surface: #ffffff;
  --surface-elevated: #fbfbfd;
  --surface-sunken: #f2f2f7;
  --band: #f5f5f7;
  --page: #f5f5f7;
  --accent: #0066cc;
  --accent-strong: #004f9e;
  --accent-soft: #eaf4ff;
  --accent-tint: #f5f9ff;
  --accent-contrast: #ffffff;
  --warn: #946200;
  --warm: #a65f00;
  --warm-soft: #fff7e6;
  --danger: #d70015;
  --danger-strong: #a50010;
  --danger-soft: #fff1f2;
  --danger-contrast: #ffffff;
  --focus: #0071e3;
  --score-accent: #1d1d1f;
  --avatar-fallback-start: #e8e8ed;
  --avatar-fallback-end: #dedee3;
  --avatar-fallback-ink: #6e6e73;
  --shadow: 0 18px 50px rgb(0 0 0 / 0.1);
  --shadow-soft: 0 2px 12px rgb(0 0 0 / 0.06);
  --radius: 18px;
  --radius-small: 12px;
  --radius-large: 28px;
  --portrait-aspect-ratio: 4 / 5;
  --portrait-object-position: 50% 24%;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --subtle: #8e8e93;
    --line: #38383a;
    --line-strong: #545458;
    --control-line: #6c6c70;
    --control-line-strong: #8e8e93;
    --surface: #1c1c1e;
    --surface-elevated: #242426;
    --surface-sunken: #121214;
    --band: #121214;
    --page: #000000;
    --accent: #0a84ff;
    --accent-strong: #409cff;
    --accent-soft: #102a43;
    --accent-tint: #111d2b;
    --accent-contrast: #00182d;
    --warn: #ffd60a;
    --warm: #ff9f0a;
    --warm-soft: #332509;
    --danger: #ff453a;
    --danger-strong: #ff6961;
    --danger-soft: #39181b;
    --danger-contrast: #260000;
    --focus: #64d2ff;
    --score-accent: #f5f5f7;
    --avatar-fallback-start: #2c2c2e;
    --avatar-fallback-end: #242426;
    --avatar-fallback-ink: #d1d1d6;
    --shadow: 0 18px 50px rgb(0 0 0 / 0.42);
    --shadow-soft: 0 2px 14px rgb(0 0 0 / 0.32);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --subtle: #8e8e93;
  --line: #38383a;
  --line-strong: #545458;
  --control-line: #6c6c70;
  --control-line-strong: #8e8e93;
  --surface: #1c1c1e;
  --surface-elevated: #242426;
  --surface-sunken: #121214;
  --band: #121214;
  --page: #000000;
  --accent: #0a84ff;
  --accent-strong: #409cff;
  --accent-soft: #102a43;
  --accent-tint: #111d2b;
  --accent-contrast: #00182d;
  --warn: #ffd60a;
  --warm: #ff9f0a;
  --warm-soft: #332509;
  --danger: #ff453a;
  --danger-strong: #ff6961;
  --danger-soft: #39181b;
  --danger-contrast: #260000;
  --focus: #64d2ff;
  --score-accent: #f5f5f7;
  --avatar-fallback-start: #2c2c2e;
  --avatar-fallback-end: #242426;
  --avatar-fallback-ink: #d1d1d6;
  --shadow: 0 18px 50px rgb(0 0 0 / 0.42);
  --shadow-soft: 0 2px 14px rgb(0 0 0 / 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

html[data-scroll-restoration-pending] body {
  visibility: hidden;
}

html[data-scroll-restoration-pending] {
  background: var(--page);
  scroll-behavior: auto !important;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--accent-contrast);
  background: var(--accent);
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

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

.inline-link {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
  font-weight: 700;
}

h1 {
  font-size: 2.65rem;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1rem;
}

p {
  margin: 0 0 12px;
}

figure {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 15%);
  background: color-mix(in srgb, var(--surface), transparent 16%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 12px 20px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link,
.nav-button,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-link:hover,
.nav-button:hover,
.theme-toggle:hover {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-elevated);
  text-decoration: none;
}

.nav-form {
  margin: 0;
}

.nav-button {
  cursor: pointer;
}

.theme-toggle {
  gap: 8px;
  cursor: pointer;
}

.theme-toggle__track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line);
}

.theme-toggle__dot {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 160ms ease;
}

.theme-toggle[data-active-theme="dark"] .theme-toggle__dot {
  transform: translateX(14px);
}

.site-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 38px 24px 80px;
}

.site-main.site-main--moderation {
  width: 100%;
  margin: 0;
  padding: 0;
}

.band,
.panel {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.band {
  padding: 22px;
}

.panel {
  padding: 18px;
  transition: border-color 160ms ease;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

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

.section-heading p {
  max-width: 680px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--muted);
  background: var(--surface-elevated);
}

.stat:hover {
  border-color: color-mix(in srgb, var(--accent), transparent 68%);
  color: var(--ink);
  background: var(--accent-soft);
  text-decoration: none;
}

.stat strong {
  color: var(--ink);
}

.stats--priority .stat {
  border-color: color-mix(in srgb, var(--accent), transparent 58%);
  background: var(--accent-tint);
}

.queue-age {
  margin: 12px 0 18px;
}

.queue-tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  scrollbar-width: thin;
}

.queue-tab {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 650;
}

.queue-tab:hover,
.queue-tab--active {
  border-color: color-mix(in srgb, var(--accent), transparent 68%);
  color: var(--accent-strong);
  background: var(--accent-soft);
  text-decoration: none;
}

.urgent-pill {
  border-color: color-mix(in srgb, var(--danger), transparent 48%);
  color: var(--danger);
  background: color-mix(in srgb, var(--danger), transparent 90%);
}

.case-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compact-pill {
  padding: 2px 7px;
  font-size: 0.75rem;
}

.case-summary__ownership:not(:empty) {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.case-summary__ownership form {
  margin-top: 10px;
}

.case-summary__ownership > :last-child,
.case-target > :last-child,
.case-alert > :last-child,
.case-history__group > :last-child {
  margin-bottom: 0;
}

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

.case-evidence-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.case-target {
  margin-bottom: 0;
  box-shadow: none;
}

.case-target h3,
.case-target h4 {
  margin-bottom: 8px;
}

.case-target__excerpt,
.case-target__fields p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.case-target__fields {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.case-target__fields p {
  margin: 6px 0;
}

.case-target__links {
  margin: 14px 0 0;
}

.case-comparison-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
}

.case-state--unchanged {
  color: var(--muted);
  background: var(--band);
}

.case-state--changed {
  border-color: color-mix(in srgb, var(--accent), transparent 56%);
  color: var(--accent-strong);
}

.case-alert {
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, var(--warm), var(--line) 55%);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: color-mix(in srgb, var(--warm), transparent 92%);
}

.case-history,
.case-special-handling {
  margin: 0 0 20px;
}

.case-history__body {
  display: grid;
  gap: 18px;
}

.case-history__group {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.case-history__group:first-child {
  border-top: 0;
  padding-top: 0;
}

.case-primary-action,
.case-source-notification {
  margin-top: 14px;
  margin-bottom: 0;
  box-shadow: none;
}

.case-decision {
  border-color: color-mix(in srgb, var(--accent), transparent 58%);
}

.case-decision__form {
  align-items: end;
}

.case-decision__note,
.case-decision__guidance,
.case-decision__actions {
  grid-column: 1 / -1;
}

.action-change-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.action-change-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--surface-elevated);
}

.action-change-table th,
.action-change-table td {
  border-top: 1px solid var(--line);
  padding: 11px 12px;
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
  white-space: pre-wrap;
}

.action-change-table thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.action-change-table tbody th {
  width: 24%;
}

.action-reversal--available {
  border-color: color-mix(in srgb, var(--danger), transparent 52%);
}

.action-state--reversible {
  border-color: color-mix(in srgb, var(--accent), transparent 56%);
  color: var(--accent-strong);
}

.action-state--reversed {
  color: var(--muted);
  background: var(--band);
}

.decision-guidance {
  margin: 12px 0 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 14px;
  background: var(--accent-tint);
}

.decision-guidance p:last-child {
  margin-bottom: 0;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
  margin-top: 4px;
}

.operations-grid .panel {
  align-content: start;
}

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

.case-summary .muted a:not(.button) {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.eyebrow::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--subtle);
  content: "";
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-sunken);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.muted-pill {
  border-color: var(--line);
  color: var(--muted);
  background: var(--surface-elevated);
}

label {
  display: block;
  margin: 10px 0 4px;
  color: var(--ink);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--control-line);
  border-radius: var(--radius-small);
  padding: 11px 12px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: color-mix(in srgb, var(--focus), var(--line) 25%);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus), transparent 84%);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-width: 1rem;
  padding: 0;
  accent-color: var(--accent);
  box-shadow: none;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 35%);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--accent-contrast);
  background: var(--accent);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}

button:hover,
.button:hover {
  border-color: var(--accent-strong);
  color: var(--accent-contrast);
  background: var(--accent-strong);
  text-decoration: none;
}

button.secondary,
.button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
}

button.secondary:hover,
.button.secondary:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface-sunken);
}

button.danger,
.button.danger {
  border-color: color-mix(in srgb, var(--danger), transparent 35%);
  color: var(--danger-contrast);
  background: var(--danger);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

button.danger:hover,
.button.danger:hover {
  background: var(--danger-strong);
}

button.compact,
.button.compact {
  min-height: 34px;
  padding: 5px 9px;
  font-size: 0.9rem;
  font-weight: 600;
}

.messages {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.messages li {
  margin-bottom: 8px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 70%);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  padding: 11px 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent-soft), var(--surface) 38%);
}

.error,
.errorlist {
  color: var(--danger-strong);
  font-weight: 600;
}

.errorlist {
  margin: 8px 0 14px;
  border: 1px solid color-mix(in srgb, var(--danger), transparent 68%);
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-small);
  padding: 10px 12px 10px 30px;
  background: var(--danger-soft);
}

.scorebar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-sunken);
}

.scorebar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.distribution {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  min-height: 124px;
  align-items: end;
  gap: 5px;
  border-radius: var(--radius);
  padding: 10px 8px 6px;
  background: var(--surface-sunken);
}

.bin {
  display: grid;
  align-items: end;
  gap: 5px;
  color: var(--muted);
  text-align: center;
  font-size: 0.74rem;
}

.bin-bar {
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent), var(--warm) 35%));
}

.attachment {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.invite-card {
  scroll-margin-top: 6rem;
}

.invite-card:target {
  position: relative;
  border-radius: var(--radius);
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  background: var(--accent-tint);
  box-shadow: 0 0 0 8px var(--accent-soft);
}

.invite-card:target::before {
  display: inline-block;
  margin-bottom: 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 4px 9px;
  content: "New invite link";
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.invite-share {
  margin-top: 12px;
}

.invite-share__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.invite-share__controls input {
  min-width: 0;
}

.invite-share__action {
  white-space: nowrap;
}

.invite-share__action[hidden],
.invite-share__status[hidden] {
  display: none;
}

.invite-share__help,
.invite-share__status {
  margin: 6px 0 0;
  font-size: 0.9rem;
}

.invite-share__status {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 640px) {
  .invite-share__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invite-share__controls input {
    grid-column: 1 / -1;
  }

  .invite-share__action {
    width: 100%;
  }
}

.report-queue-card {
  position: relative;
  width: min(100%, 1080px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 18px;
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-elevated), var(--accent-tint) 12%));
  box-shadow: var(--shadow-soft);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.report-queue-card:hover,
.report-queue-card:focus-within {
  border-color: color-mix(in srgb, var(--accent), var(--line) 42%);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
  transform: translateY(-1px);
}

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

.report-queue-card__summary {
  min-width: 0;
}

.report-queue-card__summary h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.3;
}

.report-queue-card__excerpt {
  max-width: 72ch;
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.report-queue-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.report-queue-card__fact {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--muted);
  background: var(--surface-elevated);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.25;
}

.report-queue-card__fact--status {
  border-color: color-mix(in srgb, var(--accent), var(--line) 62%);
  color: var(--accent-strong);
  background: var(--accent-tint);
}

.report-queue-card__meta {
  max-width: 82ch;
  margin: 10px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.report-queue-card__comment-panel {
  max-width: 72ch;
  margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--line), transparent 12%);
  border-radius: var(--radius-small);
  padding: 11px 13px;
  background: color-mix(in srgb, var(--surface-sunken), var(--surface) 28%);
}

.report-queue-card__comment-panel strong {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.report-queue-card__comment-panel .report-queue-card__comment {
  margin: 0;
  color: var(--ink);
}

.report-queue-card__comment-panel .report-queue-card__comment.muted {
  color: var(--muted);
}

.report-queue-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--line), transparent 22%);
  padding-top: 12px;
}

.report-queue-card__action {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--accent-strong);
  background: var(--accent-tint);
  font-size: 0.9rem;
  font-weight: 700;
}

.report-queue-card__action:hover {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.report-queue-card__action span {
  transition: transform 160ms ease;
}

.report-queue-card__action:hover span {
  transform: translateX(2px);
}

.report-queue-card__primary-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.report-queue-card__primary-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 35%);
  outline-offset: 2px;
}

.report-queue-card .muted a,
.report-queue-card__target-link {
  position: relative;
  z-index: 2;
}

.report-queue-card__comment {
  margin-bottom: 0;
}

@media (max-width: 620px) {
  .report-queue-card {
    padding: 17px;
  }

  .report-queue-card__header {
    flex-direction: column;
    gap: 10px;
  }

  .report-queue-card__facts {
    margin-top: 13px;
  }

  .report-queue-card__footer {
    justify-content: stretch;
  }

  .report-queue-card__action {
    justify-content: space-between;
    width: 100%;
  }
}

.profile-display-name {
  margin-bottom: 4px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.verification-card {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--surface-sunken);
}

.verification-card--verified {
  border-color: color-mix(in srgb, var(--accent), var(--line) 46%);
  background: color-mix(in srgb, var(--accent-tint), var(--surface) 58%);
}

.verification-card > :first-child {
  margin-top: 0;
}

.verification-card > :last-child {
  margin-bottom: 0;
}

.social-link-editor {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.social-link-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(220px, 1.25fr) minmax(160px, 0.8fr);
  align-items: end;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-sunken);
}

.social-link-row legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.social-link-row__actions {
  grid-column: 1 / -1;
  margin-top: 0;
}

@media (max-width: 760px) {
  .social-link-row {
    grid-template-columns: 1fr;
  }
}

.homepage-curation-form,
.homepage-curation-slots {
  display: grid;
  gap: 18px;
}

.homepage-curation-group {
  display: grid;
  gap: 14px;
}

.homepage-curation-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.homepage-curation-slot legend {
  padding: 0 6px;
  font-weight: 700;
}

.homepage-curation-slot .notice {
  grid-column: 1 / -1;
  margin: 0;
}

.homepage-curation-picker {
  width: 100%;
}

.homepage-curation-suggestion {
  width: 100%;
  border: 0;
  border-radius: 0;
  text-align: left;
}

@media (max-width: 620px) {
  .homepage-curation-slot {
    grid-template-columns: 1fr;
  }
}

.option-row {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.option-row p {
  margin: 6px 0;
}

.voted-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
}

.voted-card__content {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.voted-card__content > :first-child {
  margin-top: 0;
}

.voted-card__content > :last-child {
  margin-bottom: 0;
}

.markdown-body {
  color: var(--ink);
  line-height: 1.55;
}

.markdown-body > :first-child {
  margin-top: 0;
}

.markdown-body > :last-child {
  margin-bottom: 0;
}

.markdown-body h3,
.markdown-body h4,
.markdown-body h5 {
  margin: 14px 0 6px;
  color: var(--ink);
  line-height: 1.2;
}

.markdown-body h3 {
  font-size: 1.14rem;
  font-weight: 700;
}

.markdown-body h4 {
  font-size: 1rem;
  font-weight: 600;
}

.markdown-body h5 {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.markdown-body blockquote {
  margin: 10px 0;
  border: 1px solid color-mix(in srgb, var(--accent), var(--line) 55%);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent-tint), var(--surface-elevated) 30%);
}

.markdown-body blockquote > :first-child {
  margin-top: 0;
}

.markdown-body blockquote > :last-child {
  margin-bottom: 0;
}

.vote-rail {
  display: grid;
  width: 44px;
  justify-items: center;
  align-content: start;
  gap: 4px;
}

.vote-rail__form {
  margin: 0;
}

.vote-rail__button,
.vote-rail__arrow {
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--muted);
  background: var(--surface-elevated);
  font: inherit;
  font-weight: 700;
  line-height: 1;
}

.vote-rail__button {
  cursor: pointer;
}

.vote-rail__button:hover {
  border-color: color-mix(in srgb, var(--accent), var(--line) 45%);
  color: var(--accent-strong);
  background: var(--accent-tint);
}

.vote-rail__button--selected,
.vote-rail__button--selected:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-tint);
}

.vote-rail__score {
  display: grid;
  min-width: 36px;
  min-height: 34px;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-sunken);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

a.vote-rail__score {
  text-decoration: none;
}

a.vote-rail__score:hover,
a.vote-rail__score:focus-visible {
  color: var(--accent-strong);
  background: var(--accent-tint);
}

.vote-rail--readonly .vote-rail__arrow {
  border-color: transparent;
  color: var(--subtle);
  background: transparent;
}

.post-vote-target,
.post-vote-group {
  display: grid;
  gap: 8px;
}

.reply {
  margin-left: 18px;
  border-left: 3px solid var(--line);
  padding-left: 12px;
}

.highlight {
  border-color: color-mix(in srgb, var(--warm), var(--line) 35%);
  background: linear-gradient(180deg, var(--warm-soft), color-mix(in srgb, var(--surface), var(--warm-soft) 22%));
}

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

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.moderation-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: stretch;
  min-height: calc(100vh - 67px);
  gap: 0;
}

.moderation-content {
  min-width: 0;
  padding: 32px 24px 64px;
}

.moderation-sidebar {
  position: sticky;
  top: 67px;
  align-self: start;
  height: calc(100vh - 67px);
  overflow: auto;
  border-right: 1px solid var(--line);
  padding: 24px 18px 32px;
  background: color-mix(in srgb, var(--surface), var(--band) 42%);
}

.moderation-sidebar__nav {
  display: grid;
  gap: 6px;
}

.moderation-sidebar__menu-summary {
  display: none;
}

.moderation-sidebar__group {
  border-radius: var(--radius);
}

.moderation-sidebar__summary {
  display: list-item;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.25;
  list-style-position: inside;
}

.moderation-sidebar__link {
  display: flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.25;
}

.moderation-sidebar__items {
  display: grid;
  gap: 2px;
  margin: 2px 0 8px 12px;
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.moderation-sidebar__group:not([open]) > .moderation-sidebar__items {
  display: none;
}

.moderation-sidebar__link--nested {
  min-height: 36px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.moderation-sidebar__summary:hover,
.moderation-sidebar__link:hover,
.moderation-sidebar__link--active {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-elevated), transparent 8%);
  text-decoration: none;
}

.moderation-sidebar__group[open] > .moderation-sidebar__summary {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-elevated), transparent 26%);
}

.moderation-sidebar__link--active {
  border-color: color-mix(in srgb, var(--accent), transparent 68%);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.moderation-sidebar__link--nested.moderation-sidebar__link--active {
  background: var(--accent-tint);
}

.disclosure {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  background: var(--surface-elevated);
}

.disclosure > summary {
  cursor: pointer;
  list-style-position: inside;
  padding: 10px 12px;
  color: var(--accent-strong);
  font-weight: 600;
}

.disclosure-body {
  border-top: 1px solid var(--line);
  padding: 12px;
}

.compact-disclosure {
  display: inline-block;
  width: 100%;
  max-width: 360px;
}

.compact-disclosure > summary {
  padding: 6px 8px;
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stack,
.field-option-form,
.image-option-form,
.post-form,
.post-reply-form,
.official-response-form,
.claim-form,
.content-edit-form,
.content-report-form,
.content-moderation-form {
  display: grid;
  gap: 14px;
}

.stack > *,
.field-option-form > *,
.post-form > *,
.post-reply-form > *,
.official-response-form > *,
.claim-form > * {
  margin-block: 0;
}

.confirm-box form {
  display: grid;
  gap: 14px;
}

.confirm-box form > label {
  margin: 0;
}

.field-option-list,
.image-option-list,
.post-preview-list {
  display: grid;
  gap: 14px;
}

.field-option-section {
  display: grid;
  gap: 12px;
}

.field-option-section > * {
  margin-block: 0;
}

.field-option-card,
.image-option-card,
.post-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface-elevated);
  box-shadow: 0 5px 16px rgb(32 39 62 / 0.04);
}

.field-option-card h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.image-option-card .profile-image {
  max-width: 320px;
}

.post-preview-list > .muted,
.field-option-list > .muted,
.image-option-list > .muted {
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface-elevated);
  text-align: center;
}

.edit-history-list {
  display: grid;
  gap: 14px;
}

.edit-history-list > .edit-history-item {
  margin: 0;
  background: var(--surface-elevated);
}

.edit-history-item .profile-image {
  max-width: 320px;
}

.attachment .profile-image {
  max-width: 320px;
}

.moderation-status-help {
  margin: 10px 0 0;
  border-left: 3px solid var(--line-strong);
  padding: 8px 0 8px 24px;
  font-size: 0.9rem;
}

.meta-list {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.danger-zone {
  margin: 14px 0;
  border: 1px solid color-mix(in srgb, var(--danger), transparent 55%);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--danger-soft);
}

.confirm-box {
  max-width: 760px;
  margin: 0 auto;
}

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

.profile-image {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: var(--portrait-aspect-ratio);
  background: var(--surface-sunken);
  object-fit: cover;
  object-position: var(--portrait-object-position);
  box-shadow: var(--shadow-soft);
}

.image-credit {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-sunken);
  white-space: pre-wrap;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 28px;
  overflow: hidden;
  padding: 30px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface), var(--accent-tint) 45%), var(--surface));
}

.hero-copy {
  align-self: center;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 640px;
  margin-top: 22px;
}

.hero-search input {
  min-height: 48px;
}

.hero-search button {
  min-width: 108px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  background: var(--surface-elevated);
  font-size: 0.9rem;
  font-weight: 700;
}

.dimension-popovers {
  align-items: flex-start;
}

.dimension-popover {
  position: relative;
}

.dimension-popover > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--muted);
  background: var(--surface-elevated);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  list-style: none;
}

.dimension-popover > summary::-webkit-details-marker {
  display: none;
}

.dimension-popover > summary::after {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  content: "";
}

.dimension-popover[open] > summary,
.dimension-popover > summary:hover {
  border-color: color-mix(in srgb, var(--accent), var(--line) 45%);
  color: var(--ink);
  background: var(--accent-tint);
}

.dimension-popover__panel {
  position: absolute;
  left: 0;
  z-index: 8;
  width: min(300px, calc(100vw - 40px));
  margin: 8px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  font-weight: 650;
}

.hero-signal {
  display: grid;
  align-content: center;
  gap: 12px;
}

.signal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: color-mix(in srgb, var(--surface-elevated), var(--accent-tint) 30%);
  box-shadow: var(--shadow);
}

.signal-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.signal-line {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-sunken);
}

.signal-line span {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.signal-line--faith span {
  width: 78%;
}

.signal-line--accuracy span {
  width: 64%;
}

.signal-line--norms span {
  width: 72%;
}

.signal-line--reach span {
  width: 86%;
}

.profile-card {
  display: grid;
  gap: 8px;
  align-content: start;
}

.profile-card h2,
.profile-card h3 {
  margin-bottom: 0;
}

.profile-card__metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}

.profile-card__metric strong {
  font-size: 1.65rem;
  line-height: 1;
}

.category-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.search-panel {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface), var(--accent-tint) 40%), var(--surface));
}

.search-grid {
  align-items: end;
}

.search-actions {
  align-self: end;
}

.result-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-count {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--muted);
  background: var(--surface-elevated);
  font-weight: 600;
}

.profile-hero {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface), var(--accent-tint) 42%), var(--surface));
}

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

.profile-identity {
  display: grid;
  gap: 10px;
}

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

.score-filter-disclosure {
  border: 0;
  display: grid;
  justify-items: end;
  margin: 0;
  min-width: 0;
  background: transparent;
}

.score-filter-disclosure[open] {
  flex: 1;
  max-width: 760px;
}

.score-filter-disclosure > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--accent-strong);
  background: var(--surface-elevated);
  font-size: 0.95rem;
  line-height: 1;
  list-style: none;
}

.score-filter-disclosure > summary::-webkit-details-marker {
  display: none;
}

.score-filter-disclosure > summary::marker {
  content: "";
}

.score-filter-disclosure[open] > summary {
  border-color: color-mix(in srgb, var(--accent), transparent 58%);
  background: var(--accent-soft);
}

.score-filter-disclosure .disclosure-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  justify-self: stretch;
  margin-top: 8px;
  width: 100%;
  background: var(--surface-elevated);
}

.score-card {
  display: grid;
  gap: 12px;
}

.score-card h2 {
  margin-bottom: 0;
}

.score-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.score-value strong {
  font-size: 2rem;
  line-height: 1;
}

.response-highlight {
  position: relative;
}

.response-highlight h2 {
  max-width: 760px;
}

@media (max-width: 860px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-panel,
  .profile-header {
    grid-template-columns: 1fr;
  }

  .hero-signal {
    display: none;
  }

  .section-heading,
  .category-band,
  .result-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .moderation-shell {
    grid-template-columns: clamp(200px, 38vw, 240px) minmax(0, 1fr);
    min-height: calc(100vh - 67px);
  }

  .moderation-sidebar {
    position: sticky;
    top: 67px;
    height: calc(100vh - 67px);
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 18px 12px 28px;
  }

  .moderation-sidebar__summary,
  .moderation-sidebar__link {
    min-height: 42px;
    padding: 8px 9px;
    font-size: 0.95rem;
  }

  .moderation-sidebar__items {
    margin-left: 8px;
    padding-left: 8px;
  }

  .moderation-sidebar__link--nested {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.86rem;
  }

  .moderation-content {
    padding: 22px 14px 48px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.1rem;
  }

  .site-main {
    padding: 22px 14px 48px;
  }

  .site-nav {
    padding: 10px 14px;
  }

  .band,
  .panel {
    padding: 16px;
  }

  .hero-panel {
    padding: 20px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .nav-link,
  .nav-button,
  .theme-toggle {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.88rem;
  }

}

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

.site-header {
  background: color-mix(in srgb, var(--surface), transparent 16%);
}

.site-nav {
  width: min(1320px, 100%);
  gap: 16px;
  padding-inline: 24px;
}

.nav-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.nav-search {
  flex: 1 1 280px;
  max-width: 420px;
  margin: 0;
}

.search-autocomplete {
  position: relative;
  display: block;
}

.nav-search input {
  min-height: 44px;
  border-radius: 14px;
  padding-inline: 16px;
  background: color-mix(in srgb, var(--surface), var(--surface-sunken) 35%);
}

.search-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  gap: 2px;
  max-height: min(360px, 58vh);
  padding: 6px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestion {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  appearance: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}

.search-suggestion + .search-suggestion {
  border-top: 0;
}

.search-suggestion:hover,
.search-suggestion[aria-selected="true"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent-soft), var(--surface-elevated) 38%);
  text-decoration: none;
}

.search-suggestion__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion--wikipedia {
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
}

.search-suggestion--wikipedia[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.search-suggestions__source {
  margin: 4px 10px 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-suggestions__status {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.search-suggestion__detail {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.nav-link--primary {
  border-color: color-mix(in srgb, var(--accent), transparent 55%);
  border-radius: 999px;
  color: var(--accent-contrast);
  background: var(--accent);
}

.nav-link--primary:hover {
  color: var(--accent-contrast);
  background: var(--accent-strong);
}

.nav-link--invite {
  border-color: var(--line);
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--surface);
}

.nav-link--invite:hover {
  border-color: color-mix(in srgb, var(--accent), var(--line) 40%);
  color: var(--accent-strong);
  background: var(--accent-tint);
}

.account-menu {
  position: relative;
}

.account-menu__summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  color: var(--ink);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.account-menu__summary::-webkit-details-marker {
  display: none;
}

.account-menu__summary::after {
  color: var(--muted);
  content: "v";
  font-size: 0.72rem;
}

.account-menu[open] .account-menu__summary {
  border-color: color-mix(in srgb, var(--accent), var(--line) 40%);
}

.account-menu__avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: var(--surface);
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.account-menu__name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 4px;
  width: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: color-mix(in srgb, var(--surface), transparent 6%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(160%);
}

.account-menu__panel::before {
  position: absolute;
  top: -6px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
  content: "";
  transform: rotate(45deg);
}

.account-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  padding: 9px 10px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  text-align: left;
}

.account-menu__item:hover {
  color: var(--ink);
  background: var(--surface-elevated);
  text-decoration: none;
}

.account-menu__button {
  cursor: pointer;
}

.account-menu__form {
  margin: 0;
}

.account-menu .theme-toggle {
  gap: 10px;
  justify-content: flex-start;
  min-height: 40px;
  border-radius: 6px;
}

.menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 7px;
  color: var(--accent-contrast);
  background: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-main {
  width: min(1320px, 100%);
}

.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 22px;
  min-height: 32rem;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.editorial-hero .hero-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(24px, 3.6vw, 48px);
}

.editorial-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 4.8vw, 4.15rem);
  letter-spacing: -0.04em;
  line-height: 1;
  word-spacing: 0.02em;
}

.editorial-hero .lede {
  max-width: 60ch;
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-feature {
  position: relative;
  container-type: inline-size;
  display: grid;
  width: 100%;
  max-width: 460px;
  align-self: center;
  aspect-ratio: var(--portrait-aspect-ratio);
  height: auto;
  min-height: 0;
  justify-self: end;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line), transparent 20%);
  border-radius: calc(var(--radius-large) - 4px);
  background: var(--surface-sunken);
  color: #ffffff;
  box-shadow: var(--shadow);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.hero-feature:hover {
  color: #ffffff;
  box-shadow: 0 20px 46px rgb(0 0 0 / 0.24);
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-feature img,
.profile-card__media img,
.search-result-card__media img,
.profile-masthead__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portrait-object-position);
}

.hero-feature img,
.profile-card__media img,
.search-result-card__media img {
  transition: transform 240ms ease;
}

.hero-feature:hover img,
.profile-card--link:hover .profile-card__media img,
.media-card:hover .profile-card__media img,
.search-result-card:hover .search-result-card__media img {
  transform: scale(1.025);
}

.hero-feature::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.46), transparent 36%),
    linear-gradient(180deg, transparent 35%, rgb(0 0 0 / 0.78));
  content: "";
}

.hero-feature__score-panel {
  position: absolute;
  inset: 16px 16px auto;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 12px;
  padding: 6px;
  color: #ffffff;
  background: rgb(9 12 20 / 0.66);
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.22);
  backdrop-filter: blur(10px);
  gap: 2px;
}

.hero-feature__score-item {
  display: grid;
  min-width: 0;
  padding: 2px 2px 3px;
  gap: 1px;
  justify-items: center;
  text-align: center;
}

.hero-feature__score-label {
  color: rgb(255 255 255 / 0.86);
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.hero-feature__score-item strong {
  font-size: 0.94rem;
  line-height: 1;
}

@container (max-width: 420px) {
  .hero-feature__score-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-feature__score-item strong {
    font-size: 0.82rem;
  }
}

.hero-feature__overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 9px;
  padding: 26px;
}

.hero-feature__overlay strong {
  font-size: 2rem;
  line-height: 1.05;
}

.hero-feature__overlay .pill {
  width: fit-content;
  border-color: rgb(255 255 255 / 0.32);
  color: #ffffff;
  background: rgb(0 0 0 / 0.34);
}

.hero-feature--empty {
  align-content: center;
  justify-content: center;
}

.hero-search {
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 700px;
  box-shadow: none;
}

.hero-search input {
  min-height: 54px;
  border-radius: 16px;
  padding-inline: 18px;
  font-weight: 700;
}

.hero-search button {
  min-height: 54px;
  border-radius: 999px;
  padding-inline: 22px;
}

.hero-meta span,
.dimension-popover > summary {
  border-color: var(--line);
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.insight-strip article {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line), transparent 12%);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.insight-strip article::before {
  display: none;
  content: "";
}

.insight-strip strong {
  display: block;
  color: var(--ink);
  margin-bottom: 9px;
  font-size: 1.18rem;
  line-height: 1.12;
}

.insight-strip span {
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

.editorial-section,
.search-hero,
.result-summary {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  padding: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.editorial-section {
  border: 0;
  padding: clamp(24px, 3vw, 34px) 0;
  background: transparent;
  box-shadow: none;
}

.section-heading {
  margin-bottom: 18px;
}

.homepage-section-heading,
.homepage-category-heading {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.homepage-section-heading {
  margin-bottom: 22px;
}

.homepage-section-heading h2,
.homepage-category-heading h2 {
  margin-bottom: 0;
}

.homepage-section-heading > div,
.homepage-category-heading__title {
  display: grid;
  gap: 7px;
}

.homepage-section-heading p,
.homepage-category-heading p {
  max-width: 760px;
  line-height: 1.45;
}

.homepage-category-heading {
  margin-bottom: 16px;
}

.homepage-category-heading__meta {
  font-size: 0.9rem;
}

.public-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
  align-items: stretch;
  gap: 18px;
}

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
}

.public-card-grid > .muted {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 22px;
  background: color-mix(in srgb, var(--surface-elevated), var(--surface-sunken) 18%);
  text-align: center;
}

.category-section + .category-section {
  margin-top: 24px;
}

.category-section:first-child .homepage-category-heading {
  border-top: 0;
  padding-top: 0;
}

.category-band {
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.media-card,
.search-result-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.media-card {
  display: grid;
  align-content: start;
  height: 100%;
}

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

.profile-card--link:hover {
  color: inherit;
  text-decoration: none;
}

.profile-card--link:focus-visible {
  border-color: var(--focus);
  box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--focus), transparent 76%);
}

.profile-card--link:hover h3,
.profile-card--link:focus-visible h3 {
  color: var(--accent-strong);
}

.media-card:hover,
.search-result-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
  transform: translateY(-1px);
}

.profile-card__media {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: var(--portrait-aspect-ratio);
  overflow: hidden;
  background: var(--surface-sunken);
}

.compact-card .profile-card__media {
  min-height: 0;
}

.profile-image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
  place-items: center;
  color: var(--avatar-fallback-ink);
  background: var(--avatar-fallback-start);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-shadow: none;
}

.metric-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgb(255 255 255 / 0.36);
  border-radius: var(--radius-small);
  padding: 6px 10px;
  color: #ffffff;
  background: rgb(10 13 22 / 0.7);
  backdrop-filter: blur(10px);
  font-size: 0.86rem;
  font-weight: 600;
}

.profile-card__body {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 18px;
}

.profile-card__body h3 {
  min-width: 0;
  margin: 0;
  font-size: 1.18rem;
  overflow-wrap: anywhere;
}

.profile-card__body h3 a {
  overflow-wrap: anywhere;
}

.profile-card__body > .pill {
  position: relative;
  display: block;
  justify-self: start;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.42;
  white-space: normal;
  overflow-wrap: anywhere;
}

.profile-card__body > .pill::before {
  display: none;
  content: "";
}

.profile-tags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-tags .pill,
.profile-tags .subtle-pill {
  min-width: 0;
  border-radius: var(--radius-small);
  white-space: normal;
  overflow-wrap: anywhere;
}

.subtle-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 600;
}

.text-link {
  width: fit-content;
  color: var(--accent-strong);
  font-weight: 600;
}

.text-link::after {
  content: " ›";
}

.search-hero {
  background: var(--surface);
}

.search-hero h1 {
  font-size: 2.8rem;
}

.search-grid {
  margin-top: 18px;
}

.result-summary {
  padding-block: 18px;
}

.search-results-grid {
  display: grid;
  gap: 14px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: start;
}

.search-result-card__media {
  display: block;
  min-height: 0;
  aspect-ratio: var(--portrait-aspect-ratio);
  overflow: hidden;
  background: var(--surface-sunken);
}

.search-result-card__body {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.search-result-card__body h2 {
  margin: 0;
}

.score-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}

.score-inline strong {
  color: var(--score-accent);
  font-size: 1.9rem;
  line-height: 1;
}

.profile-masthead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  overflow: visible;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.profile-masthead::before {
  display: none;
  content: "";
}

.profile-masthead__media {
  position: relative;
  float: right;
  width: clamp(190px, 24vw, 304px);
  margin: 0 0 20px 30px;
}

.profile-masthead__content {
  min-width: 0;
  padding: 0;
}

.profile-masthead__details {
  display: flow-root;
}

.profile-status-pill {
  width: fit-content;
  justify-self: start;
  min-height: 28px;
  margin-bottom: clamp(14px, 1.6vw, 20px);
  border-color: color-mix(in srgb, var(--accent), transparent 58%);
  padding: 3px 11px;
  color: color-mix(in srgb, var(--accent-strong), var(--ink) 18%);
  background: color-mix(in srgb, var(--accent-soft), var(--surface) 18%);
  font-size: 0.82rem;
}

.profile-masthead__details h1 {
  margin-bottom: clamp(18px, 2vw, 24px);
  font-size: clamp(2.45rem, 4.7vw, 3.75rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.profile-masthead__details h1 a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.profile-masthead__details h1 a:hover,
.profile-masthead__details h1 a:focus-visible {
  color: inherit;
  text-decoration-line: underline;
}

.profile-field-label-link {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--ink), var(--muted) 10%);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.profile-field-label-link:hover,
.profile-field-label-link:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.profile-field-label-link:hover .profile-field-label,
.profile-field-label-link:focus-visible .profile-field-label {
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.profile-field-summary {
  display: block;
  max-width: 68ch;
  margin-top: 0;
}

.profile-field-summary > * + * {
  margin-top: clamp(16px, 1.6vw, 20px);
}

.profile-field-summary > .profile-field-chips {
  margin-top: clamp(24px, 2.4vw, 32px);
}

.profile-field-summary__lead,
.profile-field-summary__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.profile-field-summary__lead {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

.profile-field-summary__row {
  font-size: 1rem;
}

.profile-field-label {
  display: inline-block;
  color: color-mix(in srgb, var(--ink), var(--muted) 18%);
  font-weight: 600;
}

.profile-field-value {
  min-width: 0;
  color: var(--muted);
}

.profile-field-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 10px;
  align-items: center;
}

.profile-field-chip {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--line), var(--accent) 12%);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-elevated), var(--accent-tint) 20%);
  font-size: 0.94rem;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}

.profile-field-chip .profile-field-label {
  font-size: 0.88rem;
}

.profile-political-involvement {
  clear: right;
  padding-top: clamp(6px, 1vw, 12px);
}

.profile-social-links {
  align-items: center;
  margin-top: clamp(26px, 2.4vw, 34px);
}

.profile-social-link-list {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-social-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--accent), var(--line) 45%);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent-tint), var(--surface) 20%);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.profile-social-link:hover {
  border-color: color-mix(in srgb, var(--accent), var(--line) 18%);
  color: var(--accent-strong);
  background: var(--accent-soft);
  text-decoration: none;
}

.profile-masthead__media .profile-image {
  display: block;
  height: auto;
  aspect-ratio: var(--portrait-aspect-ratio);
}

.profile-masthead-image-fallback {
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: var(--portrait-aspect-ratio);
  box-shadow: var(--shadow-soft);
}

.profile-masthead-image-link {
  display: block;
  color: inherit;
}

.profile-masthead-image-link:hover {
  text-decoration: none;
}

.profile-masthead-image-link:hover .profile-image,
.profile-masthead-image-link:hover .profile-masthead-image-fallback,
.profile-masthead-image-link:focus-visible .profile-masthead-image-fallback {
  border-color: color-mix(in srgb, var(--accent), var(--line) 45%);
}

.profile-masthead-image-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.profile-masthead-image-action {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  color: #ffffff;
  background: rgb(15 23 42 / 0.78);
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgb(0 0 0 / 0.18);
}

.profile-masthead-image-action:hover {
  color: #ffffff;
  background: rgb(15 23 42 / 0.9);
  text-decoration: none;
}

.profile-score-rail {
  display: grid;
  align-content: start;
  gap: 14px;
}

.profile-score-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.profile-score-tile {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
}

.profile-score-tile:hover {
  border-color: color-mix(in srgb, var(--accent), var(--line) 45%);
}

.profile-score-tile__summary {
  display: grid;
  gap: 6px;
  color: var(--ink);
}

.profile-score-tile__summary:hover {
  text-decoration: none;
}

.profile-score-tile__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.profile-score-tile strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.profile-score-tile em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
}

.score-distribution {
  margin-top: 12px;
}

.post-category-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.post-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: var(--surface);
}

.post-category-card:hover,
.post-category-card:focus-within {
  border-color: color-mix(in srgb, var(--accent), var(--line) 42%);
}

.post-category-card__category-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.post-category-card__category-link:hover {
  text-decoration: none;
}

.post-category-card__category-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 35%);
  outline-offset: 2px;
}

.post-category-card--selected {
  border-color: color-mix(in srgb, var(--accent), var(--line) 20%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-soft), var(--surface-elevated) 34%), var(--surface-elevated));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent), transparent 55%),
    0 10px 24px color-mix(in srgb, var(--accent), transparent 86%);
}

.post-category-card__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.post-category-card strong {
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
}

.post-category-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
}

.post-category-card__rating-count {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.post-category-card__selected {
  align-self: flex-start;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 50%);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--accent-strong);
  background: color-mix(in srgb, var(--accent-soft), var(--surface) 25%);
  font-size: 0.72rem;
  font-weight: 600;
}

.post-category-distribution {
  min-height: 58px;
  gap: 3px;
  width: 100%;
  margin-top: auto;
  padding: 8px 6px 5px;
}

.post-category-distribution .bin {
  gap: 4px;
  font-size: 0.66rem;
}

.profile-score-tile__rating {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.profile-score-tile__rating span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.profile-score-tile__rating strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.profile-score-tile__rating small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.76rem;
}

.profile-rating-button {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
}

.score-detail-rating {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.score-detail-rating span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.score-detail-rating strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.score-detail-rating small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-rating-popover {
  width: min(380px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface), transparent 4%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(160%);
}

.profile-rating-popover::backdrop {
  background: color-mix(in srgb, var(--ink), transparent 82%);
}

.profile-rating-popover__form {
  display: grid;
  gap: 14px;
}

.profile-rating-stars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}

.profile-rating-stars legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
}

.profile-rating-star {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 5px;
  color: var(--muted);
  background: var(--surface-elevated);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}

.profile-rating-star input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-rating-star span {
  color: var(--score-accent);
  font-size: 1rem;
  line-height: 1;
}

.profile-rating-star strong {
  color: inherit;
  font-size: 0.86rem;
}

.profile-rating-star:has(input:checked) {
  border-color: color-mix(in srgb, var(--score-accent), var(--line) 30%);
  color: var(--ink);
  background: color-mix(in srgb, var(--score-accent), var(--surface) 88%);
}

.profile-rating-star:has(input:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--accent), transparent 55%);
  outline-offset: 2px;
}

.profile-rating-popover__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.profile-masthead__footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px 16px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.profile-masthead__hint {
  flex: 1 1 320px;
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.profile-masthead__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.content-report {
  display: inline-block;
}

.content-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.content-edit,
.content-moderation,
.markdown-formatting-help {
  display: inline-block;
}

.content-report-button,
.content-tool-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--muted);
  background: var(--surface-elevated);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: none;
}

.content-tool-button {
  text-decoration: none;
}

.content-tool-button:hover,
.content-tool-button:focus-visible {
  border-color: color-mix(in srgb, var(--accent), var(--line) 55%);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.content-report-button:hover,
.content-report-button:focus-visible,
.content-moderation .content-tool-button:hover,
.content-moderation .content-tool-button:focus-visible {
  border-color: color-mix(in srgb, var(--danger), var(--line) 55%);
  color: var(--danger);
  background: var(--danger-soft);
}

.content-tool-popover,
.content-report-popover {
  width: min(360px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface), transparent 4%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(160%);
}

.moderated-content {
  border: 2px solid color-mix(in srgb, var(--accent), var(--line) 45%);
  background: color-mix(in srgb, var(--accent-soft), var(--surface) 66%);
}

.moderated-content--hidden,
.moderated-content--quarantined {
  border-color: color-mix(in srgb, var(--danger), var(--line) 28%);
  background: color-mix(in srgb, var(--danger-soft), var(--surface) 62%);
}

.voted-card.voted-card--without-vote-rail {
  grid-template-columns: minmax(0, 1fr);
}

.moderation-notice {
  margin: 0 0 14px;
  padding: 0;
  color: var(--ink);
}

.moderation-notice__status {
  margin: 0;
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 800;
}

.moderation-notice--hidden .moderation-notice__status,
.moderation-notice--quarantined .moderation-notice__status {
  color: var(--danger-strong);
}

.moderation-notice__reason {
  margin: 7px 0 0;
}

.moderation-notice__case {
  margin: 7px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.content-edit-popover {
  width: min(640px, calc(100vw - 40px));
}

.content-tool-popover::backdrop,
.content-report-popover::backdrop {
  background: color-mix(in srgb, var(--ink), transparent 82%);
}

.content-tool-popover .content-edit-form,
.content-tool-popover .content-moderation-form,
.content-report-popover .content-report-form {
  display: grid;
  gap: 12px;
}

.content-moderation-links {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
}

.markdown-formatting-popover {
  width: min(520px, calc(100vw - 32px));
  padding: 14px;
}

.markdown-formatting-popover h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.markdown-formatting-cheatsheet {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.markdown-formatting-cheatsheet__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-elevated);
}

.markdown-formatting-cheatsheet dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.markdown-formatting-cheatsheet dd {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.markdown-formatting-cheatsheet code {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--accent), var(--line) 60%);
  border-radius: 7px;
  padding: 3px 6px;
  color: var(--accent-strong);
  background: var(--accent-tint);
  font: 0.86rem/1.35 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.content-tool-popover__actions,
.content-report-popover__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.detail-band {
  padding: 24px;
}

.image-option-card {
  display: grid;
  gap: 10px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.score-card {
  border-top: 4px solid var(--accent);
}

.score-value strong {
  color: var(--score-accent);
}

.response-highlight {
  background: var(--surface);
}

@media (max-width: 980px) {
  .site-nav {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .nav-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    justify-content: flex-end;
  }

  .moderation-shell {
    min-height: 0;
  }

  .moderation-sidebar {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
  }

  .editorial-hero,
  .profile-masthead {
    grid-template-columns: 1fr;
  }

  .profile-masthead__content {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 170px);
  }

  .hero-feature {
    width: min(100%, 460px);
    height: auto;
    aspect-ratio: var(--portrait-aspect-ratio);
    min-height: 0;
    justify-self: center;
  }

  .profile-score-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .case-evidence-grid {
    grid-template-columns: 1fr;
  }

  .case-target,
  .case-alert {
    padding: 14px;
  }

  .site-header {
    position: static;
  }

  .nav-link,
  .nav-button,
  .theme-toggle,
  .account-menu__summary {
    min-height: 44px;
  }

  .site-nav {
    grid-template-columns: 1fr;
    position: relative;
    padding-inline: 16px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-search {
    grid-column: 1;
    grid-row: 2;
  }

  .nav-actions {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

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

  .moderation-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }

  .moderation-sidebar__menu-summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    color: var(--ink);
    background: var(--surface-elevated);
    cursor: pointer;
    font-weight: 700;
  }

  .moderation-sidebar__menu[open] > .moderation-sidebar__menu-summary {
    border-color: color-mix(in srgb, var(--accent), transparent 68%);
    color: var(--accent-strong);
    background: var(--accent-soft);
  }

  .moderation-sidebar__menu:not([open]) > .moderation-sidebar__nav {
    display: none;
  }

  .moderation-sidebar__menu[open] > .moderation-sidebar__nav {
    margin-top: 10px;
  }

  .editorial-hero {
    min-height: auto;
    padding: 12px;
  }

  .editorial-hero .hero-copy {
    padding: 20px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search button {
    width: 100%;
  }

  .editorial-hero h1,
  .search-hero h1,
  .profile-masthead__details h1 {
    font-size: 2.4rem;
  }

  .profile-masthead {
    padding: 18px;
  }

  .profile-masthead::before {
    top: 18px;
    bottom: 18px;
  }

  .profile-masthead__media {
    float: none;
    width: min(100%, 320px);
    margin: 0 0 18px;
  }

  .profile-masthead__content,
  .profile-score-strip {
    grid-template-columns: 1fr;
  }

  .profile-rating-stars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-masthead__footer {
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
  }

  .profile-masthead__hint {
    flex-basis: auto;
  }

  .profile-masthead__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .content-action-row,
  .content-report,
  .content-edit,
  .content-moderation,
  .content-report-button,
  .content-tool-button {
    width: 100%;
  }

  .content-action-row {
    align-items: stretch;
  }

  .content-report-button,
  .content-tool-button {
    justify-content: center;
  }

  .markdown-formatting-cheatsheet__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-feature {
    height: auto;
    aspect-ratio: var(--portrait-aspect-ratio);
    min-height: 0;
  }

  .hero-feature__score-panel {
    inset: 12px 12px auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px;
    gap: 2px;
  }

  .hero-feature__score-item {
    padding: 2px;
  }

  .hero-feature__score-item strong {
    font-size: 0.82rem;
  }

  .insight-strip {
    grid-template-columns: 1fr;
  }

  .dimension-popovers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dimension-popover {
    width: auto;
  }

  .dimension-popover > summary {
    width: 100%;
    justify-content: space-between;
  }

  .dimension-popover__panel {
    position: static;
    width: 100%;
    max-width: none;
  }

  .public-card-grid,
  .compact-grid,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .search-result-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .voted-card {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 10px;
  }

  .vote-rail {
    width: 40px;
  }

  .vote-rail__button,
  .vote-rail__arrow {
    width: 40px;
    height: 40px;
  }

  .vote-rail__score {
    min-width: 40px;
    min-height: 40px;
  }

  .search-result-card__media {
    min-height: 0;
  }

  .account-menu__panel {
    right: auto;
    left: 14px;
    width: min(300px, calc(100vw - 28px));
  }

  .account-menu {
    position: static;
  }

  .account-menu__panel::before {
    right: auto;
    left: 26px;
  }

  .profile-score-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand {
    min-height: 38px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-link,
  .theme-toggle {
    padding-inline: 9px;
  }

  .search-result-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .search-result-card__body {
    gap: 8px;
    padding: 14px;
  }

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

  .editorial-hero h1,
  .search-hero h1,
  .profile-masthead__details h1 {
    font-size: 2.15rem;
  }

  .search-hero,
  .result-summary,
  .detail-band {
    padding: 18px;
  }

  .hero-feature__overlay {
    padding: 20px;
  }

  .hero-feature__overlay strong {
    font-size: 1.65rem;
  }

  .field-option-card,
  .image-option-card,
  .post-preview {
    padding: 14px;
  }
}

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

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

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

.site-footer__group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 0 28px;
}

.site-footer__group:first-child {
  padding-inline-start: 0;
}

.site-footer__group + .site-footer__group {
  border-inline-start: 1px solid var(--line);
}

.site-footer__group h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

@media (max-width: 620px) {
  .site-footer__groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__group,
  .site-footer__group:first-child {
    padding: 18px 0;
  }

  .site-footer__group:first-child {
    padding-top: 0;
  }

  .site-footer__group + .site-footer__group {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .site-footer__statement {
    margin-top: 0;
  }
}

.policy-page {
  max-width: 780px;
  margin-inline: auto;
}

.policy-page h2 {
  margin-top: 2rem;
}

.policy-page li + li {
  margin-top: 0.65rem;
}

.policy-page p a,
.policy-page li a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.policy-page__contact {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.profile-creator {
  max-width: 820px;
  margin-inline: auto;
}

.profile-creator__search-row {
  position: relative;
}

.profile-creator__search-row input {
  width: 100%;
  padding-right: 46px;
  font-size: 1.05rem;
}

.profile-creator__spinner {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: profile-creator-spin 0.8s linear infinite;
}

.profile-creator__status {
  min-height: 1.5em;
}

.profile-creator__results {
  display: grid;
  gap: 10px;
}

.wikipedia-profile-result {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: var(--surface-elevated);
}

.wikipedia-profile-result__image {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-sunken);
}

.wikipedia-profile-result__image--placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.wikipedia-profile-result__body h2,
.wikipedia-profile-result__body p {
  margin: 0;
}

.wikipedia-profile-result__body h2 {
  font-size: 1rem;
}

.wikipedia-profile-result__body p {
  margin-top: 4px;
}

.profile-creator__manual {
  max-width: 820px;
  margin-inline: auto;
}

.profile-creator__manual summary {
  cursor: pointer;
  font-weight: 650;
}

.profile-creator__manual form {
  margin-top: 18px;
}

@keyframes profile-creator-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 620px) {
  .wikipedia-profile-result {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .wikipedia-profile-result__image {
    width: 52px;
    height: 52px;
  }

  .wikipedia-profile-result__action {
    grid-column: 1 / -1;
  }

  .wikipedia-profile-result__action button {
    width: 100%;
  }
}

.focus-target {
  scroll-margin-top: 6rem;
}

.focus-target:target {
  position: relative;
  border-inline-start: 8px solid var(--focus);
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  background: var(--accent-tint);
  box-shadow: var(--shadow), 0 0 0 8px var(--accent-soft);
}

.focus-target:target::before {
  content: "Focused item";
  display: inline-block;
  grid-column: 1 / -1;
  justify-self: start;
  margin: 0 0 12px;
  padding: 4px 9px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.activity-timeline {
  display: grid;
  gap: 16px;
}

.timeline-entry {
  margin: 0;
}

.timeline-entry__headline {
  margin-top: 12px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.timeline-entry__headline a {
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.16em;
}

.timeline-entry__time {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.activity-category-filters {
  margin-bottom: 12px;
}

.active-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-elevated);
}

.unavailable-reference {
  font-style: italic;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.appeal-card h2,
.appeal-card h3 {
  margin-top: 0;
}

.appeal-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.appeal-timeline__step {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-elevated);
}

.appeal-timeline__step.complete {
  border-color: var(--accent);
}

.appeal-timeline__step[aria-current="step"] {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.appeal-outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.appeal-outcome-card {
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-elevated);
}

.appeal-outcome-card--grant {
  border-top: 4px solid var(--success, var(--accent));
}

.appeal-outcome-card--deny {
  border-top: 4px solid var(--muted);
}

@media (max-width: 760px) {
  .appeal-timeline,
  .appeal-outcome-grid {
    grid-template-columns: 1fr;
  }
}
