:root {
  color-scheme: light;
  --canvas: #f6f8f4;
  --surface: #ffffff;
  --surface-alt: #eef4ee;
  --surface-strong: #fbfdfb;
  --ink: #17201c;
  --muted: #5c6a63;
  --muted-strong: #38443f;
  --line: #d8e1db;
  --line-strong: #bac8c0;
  --accent: #0f766e;
  --accent-strong: #064e49;
  --accent-soft: #d7f1ed;
  --warn: #b45309;
  --danger: #9f1239;
  --success: #166534;
  --shadow: 0 18px 42px rgba(22, 32, 28, 0.08);
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    linear-gradient(rgba(216, 225, 219, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 225, 219, 0.48) 1px, transparent 1px);
  background-size: 36px 36px;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.grain {
  display: none;
}

.page-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 12px 14px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(22, 32, 28, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-grid;
  gap: 2px;
  min-width: 180px;
}

.brand-kicker,
.eyebrow,
.section-kicker,
.metric-label,
.chip,
.status-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-kicker,
.eyebrow,
.section-kicker,
.metric-label {
  color: var(--accent);
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 850;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.site-nav a {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 6px;
  color: var(--muted-strong);
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent-strong);
  background: var(--surface);
}

.app-root > * {
  animation: rise 280ms ease both;
}

.hero,
.archive-hero,
.dashboard-hero,
.case-layout,
.login-shell,
.status-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px;
}

.hero-copy,
.archive-hero > div:first-child,
.dashboard-hero > div:first-child,
.login-intro {
  display: grid;
  align-content: center;
}

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

.hero-copy h1,
.archive-hero h1,
.dashboard-hero h1,
.case-header h1,
.status-panel h1,
.login-intro h1 {
  margin-bottom: 18px;
  font-size: 3.6rem;
  line-height: 1.02;
  font-weight: 850;
}

.section-heading h2,
.dashboard-section h2 {
  margin: 4px 0 0;
  font-size: 1.9rem;
  line-height: 1.12;
  font-weight: 820;
}

.panel h3,
.analysis-card h3,
.article-card h3,
.source-card h3,
.method-item h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.lede,
.section-text,
.metric-note,
.analysis-card p,
.article-card p,
.source-card p,
.field-help,
.empty-copy,
.article-text,
.meta-list dd,
.meta-list dt,
.technical-note,
.compact-row p,
.login-stats span,
.method-item p,
.analysis-prose p,
.excerpt-box p,
.verdict-box p {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 68ch;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.hero-actions,
.actions-row,
.inline-tags,
.filter-tags,
.dashboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 28px;
}

.button,
.button-secondary,
.button-ghost,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button,
.button-secondary,
.button-ghost {
  padding: 10px 14px;
  font-weight: 800;
}

.button {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

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

.button-ghost {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: #a9ddd6;
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover,
.chip--button:hover {
  transform: translateY(-1px);
}

.hero-panel,
.metric,
.analysis-card,
.article-card,
.source-card,
.login-card,
.tool-panel,
.dashboard-section,
.verdict-box,
.excerpt-box,
.meta-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: var(--surface-strong);
}

.hero-panel__header,
.card-topline,
.analysis-card__footer,
.compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 850;
  background: #dcfce7;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.featured-analysis {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-strong), #14532d);
}

.featured-analysis span,
.featured-analysis small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.featured-analysis strong {
  font-size: 1.22rem;
  line-height: 1.32;
}

.featured-analysis--empty {
  color: var(--ink);
  background: var(--surface-alt);
}

.featured-analysis--empty span,
.featured-analysis--empty small {
  color: var(--muted);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.hero-metrics div {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.hero-metrics dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 6px 0 0;
  font-size: 1.65rem;
  font-weight: 850;
}

.page-section {
  margin-top: 24px;
}

.metrics-strip,
.dashboard-stats,
.analysis-grid,
.article-grid,
.source-grid,
.method-list {
  display: grid;
  gap: 14px;
}

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

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

.metric,
.analysis-card,
.article-card,
.source-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.metric {
  min-height: 154px;
}

.metric-value {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 850;
}

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

.section-heading .section-text {
  max-width: 42ch;
  margin: 0;
}

.section-heading--compact {
  align-items: start;
  margin-bottom: 12px;
}

.method-section {
  padding-top: 4px;
}

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

.method-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  min-height: 172px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.method-item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--accent-strong);
  font-weight: 850;
  background: var(--accent-soft);
}

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

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

.analysis-card,
.article-card,
.source-card {
  min-width: 0;
}

.analysis-card__footer {
  align-items: flex-end;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.status-badge,
.chip {
  width: fit-content;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 999px;
  line-height: 1;
}

.status-badge {
  color: var(--warn);
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.status-badge--dismissed {
  color: var(--muted-strong);
  background: #f1f5f2;
  border-color: var(--line);
}

.status-badge--published {
  color: var(--success);
  background: #dcfce7;
  border-color: #bbf7d0;
}

.status-badge--warning {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fed7aa;
}

.chip {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: #a9ddd6;
}

.chip--quiet {
  color: var(--muted-strong);
  background: #f1f5f2;
  border-color: var(--line);
}

.chip--button {
  cursor: pointer;
}

.chip--button.is-active {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.field-help {
  margin: 0;
  font-size: 0.88rem;
}

.muted-link {
  color: var(--accent-strong);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.empty-copy {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.archive-hero,
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 30px;
}

.archive-count {
  display: grid;
  justify-items: center;
  min-width: 152px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.archive-count span {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 850;
}

.archive-count small {
  color: var(--muted);
  font-weight: 800;
}

.filter-bar {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}

.search-field {
  display: block;
}

.filter-tags {
  overflow-x: auto;
  padding-bottom: 2px;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  padding: 30px;
}

.case-header {
  grid-column: 1 / -1;
  max-width: 860px;
}

.case-content {
  min-width: 0;
  grid-column: 1;
  grid-row: 2;
}

.case-sidebar {
  align-self: start;
  grid-column: 2;
  grid-row: 2;
}

.meta-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
}

.meta-list dt {
  color: var(--ink);
  font-weight: 850;
}

.meta-list dd {
  margin: 4px 0 0;
}

.verdict-box,
.excerpt-box {
  padding: 18px;
  margin-bottom: 18px;
}

.verdict-box {
  border-left: 4px solid var(--accent);
  background: #eefcf9;
}

.analysis-prose {
  max-width: 74ch;
}

.analysis-prose p {
  margin-bottom: 18px;
  font-size: 1.03rem;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.login-intro,
.login-card {
  padding: 24px;
  border-radius: var(--radius);
}

.login-intro {
  color: #ffffff;
  background: linear-gradient(135deg, #123c36, #0f766e);
}

.login-intro .eyebrow,
.login-intro .lede {
  color: rgba(255, 255, 255, 0.78);
}

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

.login-stats div {
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.login-stats strong,
.login-stats span {
  display: block;
}

.login-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.form-grid,
.stack,
.field-group {
  display: grid;
  gap: 12px;
}

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

.field-label {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 850;
}

.field,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.field:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.textarea {
  min-height: 126px;
  resize: vertical;
}

.dashboard-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.dashboard-toolbar {
  justify-content: flex-end;
}

.message,
.error-box,
.success-box {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: var(--radius);
}

.message {
  color: var(--muted-strong);
  background: var(--surface-alt);
}

.error-box {
  color: var(--danger);
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.success-box {
  color: var(--success);
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

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

.queue-column,
.side-column {
  min-width: 0;
}

.article-list,
.side-column,
.compact-list {
  display: grid;
  gap: 12px;
}

.article-card {
  border-left: 4px solid var(--accent);
}

.article-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.editor-panel,
.tool-panel {
  overflow: hidden;
}

.editor-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.editor-panel summary,
.tool-panel summary {
  min-height: 44px;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 850;
  list-style-position: inside;
  cursor: pointer;
}

.editor-panel form,
.tool-panel form {
  padding: 0 14px 14px;
}

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

.triage-panel {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.triage-panel--empty {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.triage-score {
  display: grid;
  justify-items: start;
  gap: 4px;
}

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

.triage-score small {
  color: var(--muted);
  font-weight: 800;
}

.triage-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.evidence-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.evidence-list li {
  padding-left: 2px;
}

.evidence-list span,
.evidence-list small {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.evidence-list q {
  overflow-wrap: anywhere;
}

.error-inline {
  color: #991b1b;
  font-weight: 800;
}

.tool-panel {
  background: var(--surface);
}

.dashboard-section {
  padding: 14px;
}

.compact-row {
  align-items: flex-start;
  min-height: 68px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.compact-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.compact-row:last-child {
  padding-bottom: 0;
}

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

body[data-page="admin"] .page-shell {
  width: min(1440px, calc(100% - 28px));
}

.admin-sidebar,
.admin-topbar,
.admin-panel,
.admin-detail-hero,
.admin-analysis-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(22, 32, 28, 0.06);
}

.admin-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
  padding: 16px;
}

.admin-sidebar__brand {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar__brand strong {
  font-size: 1rem;
}

.admin-nav,
.admin-sidebar__actions,
.admin-side-stack,
.admin-list,
.admin-route-page {
  display: grid;
  gap: 12px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted-strong);
  font-weight: 850;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: #a9ddd6;
}

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

.admin-topbar {
  position: sticky;
  top: 108px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  backdrop-filter: blur(14px);
}

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

.admin-topbar__title h1 {
  margin: 2px 0 4px;
  font-size: 1.45rem;
  line-height: 1.12;
}

.admin-topbar__title p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-menu-button,
.admin-drawer-backdrop {
  display: none;
}

.admin-notices {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-fetch-report {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.button-small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.84rem;
}

.admin-content {
  margin-top: 14px;
}

.dashboard-stats--focused {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-two-column,
.admin-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

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

.admin-panel {
  min-width: 0;
  padding: 18px;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 220px) minmax(150px, 220px) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
}

.admin-result-count {
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
}

.admin-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-list-card[hidden],
.admin-analysis-card[hidden] {
  display: none;
}

.admin-list-card__main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-list-card h3,
.admin-analysis-card h3,
.admin-detail-hero h2 {
  margin: 0;
  line-height: 1.25;
}

.admin-list-card p,
.admin-analysis-card p,
.admin-summary,
.admin-article-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.admin-list-card__actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
  min-width: 132px;
}

.admin-card-topline {
  justify-content: flex-start;
}

.admin-detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
}

.admin-detail-hero > div:first-child {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-detail-hero p {
  margin: 0;
  color: var(--muted);
}

.admin-panel--article {
  display: grid;
  gap: 16px;
}

.admin-article-text {
  display: grid;
  gap: 14px;
  max-height: 640px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.admin-status-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.admin-status-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.admin-status-list dt {
  color: var(--muted);
  font-weight: 800;
}

.admin-status-list dd {
  margin: 0;
  font-weight: 850;
}

.admin-action-stack {
  margin-top: 14px;
}

.admin-form-page {
  max-width: 860px;
}

.textarea--large {
  min-height: 280px;
}

.admin-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-table__head,
.admin-table__row {
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) minmax(220px, 1.25fr) minmax(180px, 0.9fr) minmax(120px, 0.55fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.admin-table__head {
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  background: var(--surface-alt);
}

.admin-table__row {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.admin-table__row strong,
.admin-table__row span,
.admin-table__row small {
  display: block;
}

.admin-table__row small,
.admin-source-endpoints span {
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.admin-table__status {
  display: grid;
  gap: 8px;
  justify-items: start;
}

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

.admin-analysis-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

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

.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(23, 32, 28, 0.38);
}

.admin-modal__panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.admin-modal__header h2 {
  margin: 4px 0 0;
  line-height: 1.15;
}

.compact-row strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
}

.compact-row p {
  max-width: 44ch;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.compact-row--stacked {
  display: grid;
  justify-content: stretch;
}

.status-panel {
  padding: 34px;
}

.status-panel--loading {
  position: relative;
  overflow: hidden;
}

.status-panel--loading::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.08), transparent);
  animation: shimmer 1.25s linear infinite;
}

.status-panel--error {
  border-left: 4px solid var(--danger);
}

.technical-note {
  margin: 10px 0 0;
  font-size: 0.88rem;
}

.divider {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 6px 0;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1040px) {
  .hero,
  .archive-hero,
  .dashboard-hero,
  .case-layout,
  .login-shell,
  .workbench {
    grid-template-columns: 1fr;
  }

  .metrics-strip,
  .dashboard-stats,
  .method-list,
  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-toolbar {
    justify-content: flex-start;
  }

  .case-header {
    grid-column: auto;
  }

  .case-content,
  .case-sidebar {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, var(--max-width));
    padding-top: 10px;
  }

  .site-header {
    position: static;
    display: grid;
    align-items: start;
    min-height: auto;
  }

  .brand {
    min-width: 0;
  }

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

  .hero,
  .archive-hero,
  .dashboard-hero,
  .case-layout,
  .login-shell,
  .status-panel {
    padding: 20px;
  }

  .hero-copy h1,
  .archive-hero h1,
  .dashboard-hero h1,
  .case-header h1,
  .status-panel h1,
  .login-intro h1 {
    font-size: 2.35rem;
    line-height: 1.06;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .metrics-strip,
  .dashboard-stats,
  .analysis-grid,
  .source-grid,
  .method-list,
  .login-stats,
  .hero-metrics,
  .form-grid--two,
  .form-row,
  .triage-panel {
    grid-template-columns: 1fr;
  }

  .archive-count {
    justify-items: start;
    min-width: 0;
  }

  .analysis-card__footer,
  .compact-row,
  .card-topline {
    display: grid;
    justify-content: stretch;
  }

  .actions-row,
  .hero-actions,
  .dashboard-toolbar {
    width: 100%;
  }

  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }
}

/* Audience cards clarify the split between public readers and internal reviewers. */
.audience-section,
.trust-section {
  scroll-margin-top: 110px;
}

.audience-grid,
.reader-shortcuts,
.trust-points {
  display: grid;
  gap: 14px;
}

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

.audience-card,
.next-step-box {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(22, 32, 28, 0.06);
}

.audience-card--reader {
  background: linear-gradient(180deg, #ffffff, #eefcf9);
}

.audience-card--reviewer {
  background: linear-gradient(180deg, #ffffff, #f7faf7);
}

.audience-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--accent-strong);
  font-size: 1.2rem;
  font-weight: 900;
  background: var(--accent-soft);
}

.audience-card h3,
.next-step-box h2 {
  max-width: 22ch;
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.16;
}

.audience-card p,
.next-step-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted-strong);
  font-weight: 700;
  line-height: 1.5;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--success);
  font-weight: 900;
}

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

.reader-shortcuts article,
.trust-points div,
.workflow-hint,
.editor-checklist {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.reader-shortcuts article,
.trust-points div {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.reader-shortcuts strong,
.trust-points strong,
.editor-checklist strong {
  color: var(--ink);
  line-height: 1.35;
}

.reader-shortcuts span,
.trust-points span,
.editor-checklist span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #103f39, #0f766e);
  box-shadow: var(--shadow);
}

.trust-copy h2,
.trust-copy p {
  color: #ffffff;
}

.trust-copy .section-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.trust-copy p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

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

.trust-points div {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.trust-points strong {
  color: #ffffff;
}

.trust-points span {
  color: rgba(255, 255, 255, 0.76);
}

.next-step-box {
  margin-top: 18px;
  background: #f8fcfb;
}

.workflow-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  margin-top: 18px;
  padding: 8px;
  background: var(--surface-alt);
}

.workflow-hint span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  background: var(--surface);
}

.editor-checklist {
  display: grid;
  gap: 4px;
  margin: 0 14px 12px;
  padding: 12px;
  background: #fffdf5;
  border-color: #fde68a;
}

@media (max-width: 900px) {
  .audience-grid,
  .reader-shortcuts,
  .trust-section,
  .trust-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-menu-button {
    display: inline-flex;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    width: min(312px, calc(100vw - 48px));
    align-content: start;
    transform: translateX(-110%);
    transition: transform 180ms ease;
    border-radius: 0;
  }

  .admin-shell.is-nav-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 65;
    border: 0;
    background: rgba(23, 32, 28, 0.32);
  }

  .admin-shell.is-nav-open .admin-drawer-backdrop {
    display: block;
  }

  .admin-topbar {
    top: 12px;
  }

  .dashboard-stats--focused,
  .admin-two-column,
  .admin-detail-layout,
  .admin-two-column--balanced {
    grid-template-columns: 1fr;
  }

  .admin-filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 200px);
  }

  .admin-result-count {
    grid-column: 1 / -1;
  }

  .admin-table__head {
    display: none;
  }

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

@media (max-width: 760px) {
  body[data-page="admin"] .page-shell {
    width: min(100% - 20px, var(--max-width));
  }

  .admin-topbar {
    position: sticky;
    top: 8px;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-topbar__actions,
  .admin-list-card,
  .admin-detail-hero,
  .admin-filter-bar,
  .admin-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar__actions {
    display: grid;
    justify-content: stretch;
  }

  .admin-topbar__actions .button,
  .admin-topbar__actions .button-secondary,
  .admin-sidebar__actions .button,
  .admin-sidebar__actions .button-secondary,
  .admin-list-card__actions,
  .admin-detail-hero .actions-row {
    width: 100%;
  }

  .admin-list-card__actions {
    min-width: 0;
  }

  .admin-detail-hero {
    display: grid;
  }

  .admin-panel,
  .admin-detail-hero,
  .admin-analysis-card {
    padding: 14px;
  }

  .admin-card-topline {
    display: flex;
  }

  .admin-article-text {
    max-height: none;
  }

  .admin-modal {
    align-items: end;
    padding: 10px;
  }

  .admin-modal__panel {
    max-height: calc(100vh - 20px);
  }
}
