:root {
  --bg: #f3ede2;
  --paper: #fffdf8;
  --panel: rgba(255, 251, 243, 0.92);
  --ink: #163244;
  --muted: #667c89;
  --line: rgba(22, 50, 68, 0.14);
  --accent: #c35f27;
  --accent-deep: #9f4214;
  --forest: #2d6056;
  --danger: #9f2d2d;
  --shadow: 0 18px 45px rgba(31, 44, 51, 0.11);
}

:root[data-theme="dark"] {
  --bg: #10151a;
  --paper: #171d23;
  --panel: rgba(24, 30, 37, 0.94);
  --ink: #edf3f7;
  --muted: #a9bbc6;
  --line: rgba(224, 235, 241, 0.16);
  --accent: #f0a15d;
  --accent-deep: #ffbd82;
  --forest: #75c1b0;
  --danger: #ff8c8c;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(195, 95, 39, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(45, 96, 86, 0.14), transparent 24%),
    linear-gradient(180deg, #efe5d5 0%, #f6f1e8 32%, #f2ebdf 100%);
  color: var(--ink);
  font: 16px/1.5 "IBM Plex Sans", "Segoe UI", sans-serif;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(240, 161, 93, 0.13), transparent 28%),
    radial-gradient(circle at top right, rgba(117, 193, 176, 0.12), transparent 24%),
    linear-gradient(180deg, #0d1217 0%, #141b21 36%, #0f1419 100%);
}

a {
  color: inherit;
}

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

form {
  margin: 0;
}

.app-frame {
  width: min(1380px, calc(100vw - 28px));
  margin: 18px auto 36px;
  min-width: 0;
}

.app-header,
.surface-card,
.hero-card,
.public-panel,
.metric-card {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.app-header {
  border-radius: 28px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.brand-lockup {
  min-width: 0;
}

.brand-lockup h1,
.hero-card h2,
.surface-card h2,
.surface-card h3,
.public-panel h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

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

.brand-lockup h1 {
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

.session-tools,
.button-row,
.button-column,
.inline-form,
.main-nav,
.detail-grid,
.metric-grid,
.section-heading,
.record-heading {
  display: flex;
  gap: 12px;
}

.session-tools,
.section-heading,
.record-heading {
  align-items: center;
}

.session-tools {
  display: grid;
  grid-template-columns: repeat(2, 38px);
  grid-template-rows: repeat(2, 38px);
  align-self: start;
  justify-self: end;
  gap: 8px;
  position: relative;
  isolation: isolate;
}

.session-tool-theme {
  grid-column: 1;
  grid-row: 1;
}

.session-tool-profile {
  grid-column: 2;
  grid-row: 1;
}

.session-tool-logout {
  grid-column: 2;
  grid-row: 2;
}

.session-tools .ghost-button {
  white-space: nowrap;
  overflow-wrap: normal;
}

.session-tools form {
  display: grid;
  position: relative;
}

.theme-toggle,
.header-icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(22, 50, 68, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(22, 50, 68, 0.08);
  position: relative;
  z-index: 1;
  overflow: hidden;
  touch-action: manipulation;
}

.header-profile-avatar {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
}

.theme-toggle:hover,
.header-icon-button:hover {
  border-color: rgba(195, 95, 39, 0.32);
  background: rgba(255, 250, 240, 0.9);
}

.theme-toggle:focus-visible,
.header-icon-button:focus-visible {
  outline: 3px solid rgba(24, 119, 242, 0.28);
  outline-offset: 2px;
}

.theme-toggle-icon {
  grid-area: 1 / 1;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.header-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-sun {
  color: #a84a12;
}

.theme-toggle-moon {
  color: #f7d27c;
  opacity: 0;
  transform: scale(0.72) rotate(-18deg);
}

:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .header-icon-button {
  border-color: rgba(224, 235, 241, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .theme-toggle:hover,
:root[data-theme="dark"] .header-icon-button:hover {
  border-color: rgba(240, 161, 93, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .theme-toggle-sun {
  opacity: 0;
  transform: scale(0.72) rotate(18deg);
}

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

.main-nav {
  flex-wrap: wrap;
  margin: 14px 0 0;
}

.main-nav a,
.admin-menu summary,
.ghost-button,
.primary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.main-nav a,
.admin-menu summary,
.ghost-button {
  background: rgba(22, 50, 68, 0.06);
  border-color: rgba(22, 50, 68, 0.12);
  color: var(--ink);
}

.admin-menu {
  position: relative;
  min-width: 0;
}

.admin-menu summary {
  list-style: none;
}

.admin-menu summary::-webkit-details-marker {
  display: none;
}

.admin-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: grid;
  gap: 8px;
  min-width: 180px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.admin-menu:not([open]) .admin-menu-panel {
  display: none;
}

.primary-button {
  background: var(--accent);
  color: white;
}

.danger-button {
  background: rgba(159, 45, 45, 0.12);
  color: var(--danger);
  border-color: rgba(159, 45, 45, 0.18);
}

.page-shell {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  min-width: 0;
}

.surface-card,
.hero-card,
.public-panel,
.archive-hero > *,
.publication-grid,
.asset-grid {
  min-width: 0;
}

.hero-card,
.surface-card,
.public-panel {
  border-radius: 28px;
  padding: 24px;
}

.metric-grid {
  flex-wrap: wrap;
}

.metric-card {
  border-radius: 22px;
  padding: 18px 20px;
  min-width: 170px;
  flex: 1 1 180px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
}

.detail-grid {
  align-items: start;
}

.detail-grid > * {
  flex: 1 1 0;
}

.stack-form,
.stack-list,
.button-column {
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border-radius: 18px;
  border: 1px solid rgba(22, 50, 68, 0.16);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-row input[type="hidden"] {
  display: none;
}

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

.public-panel {
  max-width: 760px;
  margin: 8vh auto 0;
}

.public-panel-wide {
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.panel-copy p:last-child,
.surface-card p:last-child {
  margin-bottom: 0;
}

.banner {
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid transparent;
}

.banner-success {
  background: rgba(45, 96, 86, 0.1);
  border-color: rgba(45, 96, 86, 0.2);
}

.banner-error {
  background: rgba(159, 45, 45, 0.09);
  border-color: rgba(159, 45, 45, 0.18);
}

.archive-warning {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(159, 102, 28, 0.28);
  background: rgba(255, 248, 225, 0.9);
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.archive-warning small {
  color: var(--muted);
}

.banner-info {
  background: rgba(22, 50, 68, 0.08);
  border-color: rgba(22, 50, 68, 0.14);
  overflow-wrap: anywhere;
}

.record-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(22, 50, 68, 0.11);
  background: rgba(255, 255, 255, 0.62);
}

.record-link {
  text-decoration: none;
}

.record-heading {
  justify-content: space-between;
  align-items: baseline;
}

.plain-list {
  margin: 0;
  padding-left: 20px;
}

.archive-lede {
  max-width: 72rem;
  font-size: 1.05rem;
  line-height: 1.68;
}

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

.user-chip {
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(22, 50, 68, 0.05);
}

.log-block {
  margin: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: #102734;
  color: #e9f1f5;
  overflow-x: auto;
  white-space: pre-wrap;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 14px;
}

.status-card {
  align-content: start;
}

.project-status-card {
  gap: 12px;
}

.status-progress-row,
.status-process-heading,
.status-detail-list p,
.status-meta-grid p,
.remaining-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.status-progress-row {
  align-items: center;
}

.status-progress-row span,
.status-process-heading span,
.status-detail-list span,
.status-meta-grid span,
.remaining-list span {
  color: var(--muted);
}

.status-progress-row strong,
.status-detail-list strong,
.status-meta-grid strong,
.remaining-list strong,
.status-process-heading strong,
.status-process-heading span {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 50, 68, 0.1);
}

.progress-fill {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), var(--accent));
}

.status-meta-grid {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(22, 50, 68, 0.05);
}

.status-meta-grid p,
.status-detail-list p,
.remaining-list p {
  margin: 0;
}

.status-meta-grid p {
  align-items: baseline;
}

.status-meta-grid strong {
  max-width: 70%;
  font-size: 0.9rem;
}

.status-detail-list {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.project-summary-list {
  padding-top: 0;
}

.remaining-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(33, 101, 88, 0.08);
}

.remaining-list h4 {
  margin: 0 0 2px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}

.status-disclosure {
  margin-top: 4px;
}

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

.status-process {
  min-width: 0;
}

.status-process code {
  display: block;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(22, 50, 68, 0.08);
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.status-page {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.status-page-lede {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 4px 0 18px;
  border-bottom: 2px solid rgba(22, 50, 68, 0.18);
}

.status-page-lede h2,
.status-section-header h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  letter-spacing: 0;
  line-height: 1.18;
}

.status-page-lede h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.status-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(22, 50, 68, 0.16);
}

.status-todo-section {
  padding: 18px 0 20px;
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid rgba(195, 95, 39, 0.22);
  background:
    linear-gradient(90deg, rgba(195, 95, 39, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent);
}

.status-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.status-section-header h3 {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.status-section-note {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.status-brief-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  min-width: 0;
  border-top: 1px solid rgba(22, 50, 68, 0.14);
  border-bottom: 1px solid rgba(22, 50, 68, 0.14);
}

.status-brief-strip p {
  min-width: 0;
  margin: 0;
  padding: 12px 16px 12px 0;
  border-right: 1px solid rgba(22, 50, 68, 0.12);
}

.status-brief-strip p:last-child {
  border-right: 0;
}

.status-brief-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.status-brief-strip strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.status-newspaper-strip strong {
  font-size: clamp(0.98rem, 1.45vw, 1.2rem);
}

.status-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border-top: 1px solid rgba(22, 50, 68, 0.18);
}

.status-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.status-table th,
.status-table td {
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid rgba(22, 50, 68, 0.12);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.status-table th {
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-table td {
  font-size: 0.94rem;
}

.status-table td > span,
.status-table small,
.status-inline-list span {
  color: var(--muted);
}

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

.status-table code {
  display: inline-block;
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(22, 50, 68, 0.08);
  color: var(--ink);
  font-size: 0.82rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.status-table-todo {
  min-width: 860px;
}

.status-table-todo th:nth-child(1),
.status-table-todo td:nth-child(1) {
  width: 12%;
}

.status-table-todo th:nth-child(2),
.status-table-todo td:nth-child(2) {
  width: 27%;
}

.status-table-todo th:nth-child(3),
.status-table-todo td:nth-child(3) {
  width: 26%;
}

.status-project-table th:nth-child(1),
.status-project-table td:nth-child(1) {
  width: 15%;
}

.status-project-table th:nth-child(2),
.status-project-table td:nth-child(2) {
  width: 15%;
}

.status-project-table th:nth-child(3),
.status-project-table td:nth-child(3) {
  width: 18%;
}

.status-project-table th:nth-child(4),
.status-project-table td:nth-child(4) {
  width: 9%;
}

.status-newspaper-table {
  min-width: 780px;
}

.status-newspaper-table th:nth-child(1),
.status-newspaper-table td:nth-child(1) {
  width: 24%;
}

.status-newspaper-table th:nth-child(2),
.status-newspaper-table td:nth-child(2) {
  width: 16%;
}

.status-session-table th:nth-child(1),
.status-session-table td:nth-child(1) {
  width: 17%;
}

.status-session-table th:nth-child(2),
.status-session-table td:nth-child(2),
.status-session-table th:nth-child(3),
.status-session-table td:nth-child(3),
.status-session-table th:nth-child(5),
.status-session-table td:nth-child(5) {
  width: 9%;
}

.status-table-progress {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.status-table-progress small {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
}

.status-inline-list,
.status-note-list,
.status-process-mini {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-inline-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  align-items: baseline;
}

.status-inline-list strong {
  text-align: right;
  white-space: nowrap;
}

.status-note-list {
  list-style: disc;
  padding-left: 18px;
}

.status-process-mini li {
  min-width: 0;
}

.status-wide-disclosure {
  margin-top: 2px;
}

.status-empty-line {
  margin: 0;
  color: var(--muted);
}

.archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.archive-metrics .metric-card {
  min-width: 130px;
}

.archive-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  grid-column: 1 / -1;
}

.archive-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(160px, 0.9fr) minmax(160px, 0.9fr) minmax(150px, 0.7fr) auto;
  gap: 14px;
  align-items: end;
}

.archive-filters-compact {
  grid-template-columns: minmax(180px, 260px) auto;
  justify-content: start;
}

.archive-filters label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  min-width: 0;
}

.archive-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(22, 50, 68, 0.12);
  background: rgba(255, 255, 255, 0.52);
}

.archive-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.archive-table th,
.archive-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(22, 50, 68, 0.1);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.archive-table th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-table th:nth-child(1),
.archive-table td:nth-child(1) {
  width: 150px;
}

.archive-table th:nth-child(2),
.archive-table td:nth-child(2) {
  width: 170px;
}

.archive-table th:nth-child(3),
.archive-table td:nth-child(3) {
  width: 240px;
}

.archive-table th:nth-child(4),
.archive-table td:nth-child(4) {
  width: 180px;
}

.archive-table th:nth-child(5),
.archive-table td:nth-child(5) {
  width: 150px;
}

.summary-cell {
  font-size: 0.94rem;
}

.facebook-movie-hero {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: 1fr;
  align-items: center;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(72, 20, 24, 0.22), transparent 12%, transparent 88%, rgba(72, 20, 24, 0.22)),
    radial-gradient(ellipse at 50% 48%, rgba(255, 245, 205, 0.68), rgba(255, 245, 205, 0.24) 38%, rgba(23, 41, 54, 0.12) 72%),
    linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(248, 238, 217, 0.92));
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.facebook-movie-screen {
  --movie-curtain-width: min(124px, 15%);
  --movie-logo-optical-shift: 0px;
  position: relative;
  display: grid;
  width: min(1040px, 100%);
  min-height: 288px;
  place-items: center;
  justify-self: center;
  margin-top: 0;
  overflow: hidden;
  border: 5px solid rgba(46, 37, 32, 0.74);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(125, 31, 35, 0.82), transparent 13%, transparent 87%, rgba(125, 31, 35, 0.82)),
    radial-gradient(ellipse at 50% 48%, rgba(255, 255, 232, 0.96), rgba(255, 245, 201, 0.72) 38%, rgba(220, 206, 180, 0.42) 66%, rgba(56, 42, 40, 0.08)),
    linear-gradient(180deg, #fff9e9, #f4dfaf);
  box-shadow:
    inset 0 0 42px rgba(255, 255, 235, 0.86),
    inset 0 0 95px rgba(174, 133, 72, 0.24),
    0 22px 54px rgba(31, 44, 51, 0.18);
}

.facebook-movie-screen::before,
.facebook-movie-screen::after {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: min(520px, 64%);
  height: 12px;
  border-top: 1px solid rgba(83, 62, 42, 0.46);
  border-bottom: 1px solid rgba(195, 95, 39, 0.42);
  border-radius: 999px;
  content: "";
  transform: translateX(-50%);
}

.facebook-movie-screen::before {
  top: 24px;
  box-shadow:
    0 14px 0 -11px rgba(45, 96, 86, 0.42),
    0 28px 0 -12px rgba(126, 43, 35, 0.26);
}

.facebook-movie-screen::after {
  bottom: 24px;
  box-shadow:
    0 -14px 0 -11px rgba(45, 96, 86, 0.42),
    0 -28px 0 -12px rgba(126, 43, 35, 0.26);
}

.facebook-movie-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: var(--movie-curtain-width);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 160, 138, 0.18), transparent 58%),
    repeating-linear-gradient(90deg, rgba(62, 12, 20, 0.92) 0 9px, rgba(141, 29, 38, 0.96) 9px 18px, rgba(86, 14, 24, 0.94) 18px 29px, rgba(172, 45, 48, 0.9) 29px 38px);
  opacity: 0.96;
}

.facebook-movie-curtain-left {
  left: 0;
  border-right: 1px solid rgba(37, 22, 19, 0.5);
  box-shadow:
    inset -18px 0 20px rgba(42, 10, 16, 0.28),
    16px 0 30px rgba(73, 29, 24, 0.16);
}

.facebook-movie-curtain-right {
  right: 0;
  border-left: 1px solid rgba(37, 22, 19, 0.5);
  box-shadow:
    inset 18px 0 20px rgba(42, 10, 16, 0.28),
    -16px 0 30px rgba(73, 29, 24, 0.16);
}

.facebook-movie-projector-glow {
  position: absolute;
  inset: 7%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(255, 255, 240, 0.96), rgba(255, 236, 170, 0.43) 46%, transparent 74%),
    conic-gradient(from 244deg at 50% 50%, transparent 0deg, rgba(255, 248, 200, 0.3) 24deg, transparent 52deg),
    conic-gradient(from 64deg at 50% 50%, transparent 0deg, rgba(255, 248, 200, 0.22) 18deg, transparent 44deg);
  filter: blur(1px);
}

.facebook-movie-logo {
  position: absolute;
  inset: 42px calc(var(--movie-curtain-width) + 28px) 36px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: auto;
  max-width: none;
  padding: 0;
  color: #1e2d36;
  text-align: center;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.78), 0 16px 38px rgba(96, 54, 26, 0.22);
}

.facebook-movie-rule {
  --movie-rule-dot-size: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--movie-rule-dot-size) minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  width: min(460px, 72%);
  height: 18px;
}

.facebook-movie-rule-line {
  display: block;
  height: 100%;
  background:
    linear-gradient(180deg, transparent 0 calc(50% - 1px), rgba(28, 45, 53, 0.56) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(28, 45, 53, 0.62) 24px 27px, transparent 27px 40px);
}

.facebook-movie-rule-dot {
  display: block;
  width: var(--movie-rule-dot-size);
  height: var(--movie-rule-dot-size);
  border-radius: 999px;
  background: rgba(124, 50, 28, 0.82);
  box-shadow: 0 0 0 1px rgba(255, 245, 201, 0.4);
}

.facebook-movie-logo .eyebrow {
  margin: 0;
  color: #8b3719;
}

.facebook-movie-logo h2 {
  display: block;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  transform: translateX(var(--movie-logo-optical-shift, 0));
  font-family: "Bodoni 72 Smallcaps", "Bodoni 72", Didot, "Bookman Old Style", Georgia, serif;
  font-size: clamp(3.25rem, 6.25vw, 5.05rem);
  font-weight: 900;
  line-height: 0.82;
  text-align: center;
  text-transform: none;
}

.facebook-movie-logo h2 span {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.facebook-movie-logo h2 span + span {
  margin-top: 10px;
}

.facebook-movie-logo h2 span:last-child {
  font-size: 0.68em;
  letter-spacing: 0;
}

.facebook-movie-stats-footer {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.facebook-movie-grid-surface {
  margin-top: -10px;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
}

.movie-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: end;
  min-width: 0;
}

.movie-view-switch,
.movie-sort-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.movie-view-switch > span,
.movie-sort-strip > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.movie-view-button,
.movie-sort-link {
  display: inline-flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 50, 68, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  font-weight: 850;
  line-height: 1.1;
  text-decoration: none;
}

.movie-view-button {
  width: 40px;
  padding: 0;
}

.movie-view-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.movie-view-icon rect {
  fill: currentColor;
}

.movie-sort-link {
  padding: 7px 10px;
  font-size: 0.86rem;
  gap: 5px;
}

.movie-sort-link .popcornmeter-icon {
  width: 1.12rem;
  height: 1.12rem;
}

.movie-view-button.active,
.movie-sort-link.active {
  border-color: rgba(195, 95, 39, 0.55);
  background: rgba(195, 95, 39, 0.14);
  color: var(--accent-deep);
}

.movie-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 22px 18px;
  min-width: 0;
}

.facebook-movie-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.facebook-movie-list-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(7rem, auto) minmax(4rem, auto) minmax(4rem, auto) minmax(4rem, auto) minmax(5rem, auto);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(22, 50, 68, 0.12);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 780;
  text-decoration: none;
}

.facebook-movie-list-row:hover {
  border-color: rgba(195, 95, 39, 0.32);
  background: rgba(255, 247, 236, 0.72);
}

.facebook-movie-list-row > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facebook-movie-list-row strong {
  font-size: 0.96rem;
}

.facebook-movie-list-row .popcornmeter-icon,
.facebook-movie-list-row .pb-thumbs-down {
  vertical-align: -0.15em;
}

.movie-poster-card {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.movie-poster-frame {
  display: grid;
  aspect-ratio: 2 / 3;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(22, 50, 68, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8f3ea, #eee6da);
  box-shadow: 0 10px 22px rgba(22, 50, 68, 0.10);
}

.movie-poster-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.movie-poster-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.movie-poster-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
  text-align: center;
}

.movie-poster-copy h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.24;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.movie-poster-meta {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.movie-review-count {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
}

.movie-card-scores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 10px;
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
}

.rt-score,
.pb-score,
.movie-fact-icon-value {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.popcornmeter-icon {
  display: inline-flex;
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  vertical-align: -0.16em;
}

.popcornmeter-kernel {
  fill: #fff3b0;
  stroke: #8f5f18;
  stroke-width: 0.8;
}

.popcornmeter-bucket {
  fill: #d7342a;
  stroke: #8a211b;
  stroke-width: 1;
}

.popcornmeter-stripe {
  fill: #fff7d0;
}

.pb-thumbs-down {
  display: inline-flex;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: #1877f2;
  transform: translateY(0.12em);
}

.movie-group-hero {
  grid-template-columns: minmax(0, 1fr) minmax(110px, 170px);
}

.movie-group-poster-wrap {
  width: min(170px, 100%);
  justify-self: end;
}

.movie-group-poster-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #f8f3ea, #eee6da);
  box-shadow: 0 10px 22px rgba(22, 50, 68, 0.14);
}

.movie-group-facts,
.movie-review-choice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
  color: var(--muted);
  font-weight: 800;
}

.movie-review-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.movie-review-choice-list {
  display: grid;
  gap: 14px;
}

.movie-review-choice-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(22, 50, 68, 0.12);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.movie-review-choice-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.movie-review-choice-card .eyebrow {
  margin-bottom: 4px;
}

.movie-review-text-preview {
  max-height: 420px;
  overflow: auto;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.58;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.facebook-movie-table {
  min-width: 1760px;
}

.facebook-movie-table th:nth-child(1),
.facebook-movie-table td:nth-child(1) {
  width: 120px;
}

.facebook-movie-table th:nth-child(2),
.facebook-movie-table td:nth-child(2) {
  width: 230px;
}

.facebook-movie-table th:nth-child(3),
.facebook-movie-table td:nth-child(3) {
  width: 360px;
}

.facebook-movie-table th:nth-child(4),
.facebook-movie-table td:nth-child(4) {
  width: 260px;
}

.facebook-movie-table th:nth-child(5),
.facebook-movie-table td:nth-child(5) {
  width: 290px;
}

.facebook-movie-table th:nth-child(6),
.facebook-movie-table td:nth-child(6) {
  width: 180px;
}

.facebook-movie-table th:nth-child(7),
.facebook-movie-table td:nth-child(7) {
  width: 220px;
}

.facebook-movie-table th:nth-child(8),
.facebook-movie-table td:nth-child(8) {
  width: 90px;
}

.movie-title-form,
.movie-title-form label,
.movie-facts-form,
.movie-facts-form label,
.movie-source-label,
.movie-notes-label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.movie-verified-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.movie-facts-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.movie-review-form {
  grid-template-columns: 1fr;
}

.movie-facts-form span,
.movie-source-label span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.movie-facts-wide {
  grid-column: 1 / -1;
}

@media (max-width: 1120px) and (min-width: 981px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .session-tools {
    justify-self: end;
  }

  .brand-lockup {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .facebook-movie-hero {
    min-height: 0;
    padding: 14px;
  }

  .facebook-movie-screen {
    min-height: 260px;
  }

  .facebook-movie-logo {
    inset: 38px calc(var(--movie-curtain-width) + 24px) 34px;
    width: auto;
    padding: 0;
  }

  .fb-review-layout {
    grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  }

  .fb-review-right-rail {
    display: none;
  }

  .fb-movie-review-poster {
    width: min(100%, 150px);
  }
}

@media (max-width: 560px) {
  .facebook-movie-hero {
    padding: 12px;
  }

  .facebook-movie-screen {
    --movie-curtain-width: 13%;
    --movie-logo-optical-shift: 0px;
    min-height: 230px;
    margin-top: 6px;
    border-width: 4px;
    border-radius: 16px;
  }

  .facebook-movie-screen::before,
  .facebook-movie-screen::after {
    width: 54%;
  }

  .facebook-movie-logo {
    inset: 28px calc(var(--movie-curtain-width) + 4px) 24px;
    gap: 8px;
    width: auto;
    padding: 0;
  }

  .facebook-movie-rule {
    width: min(210px, 58vw);
  }

  .facebook-movie-logo h2 {
    font-size: clamp(1.02rem, 4.65vw, 1.16rem);
    justify-self: center;
    line-height: 0.86;
    width: max-content;
    max-width: none;
  }

  .facebook-movie-logo h2 span + span {
    margin-top: 7px;
  }

  .facebook-movie-logo .eyebrow {
    font-size: 0.68rem;
  }

  .movie-poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .movie-poster-copy h3 {
    font-size: 0.9rem;
  }

  .movie-card-scores {
    gap: 6px;
    font-size: 0.84rem;
  }

  .fb-review-layout {
    grid-template-columns: 1fr;
  }

  .fb-movie-review-poster {
    width: min(170px, 58vw);
  }
}

@media (max-width: 360px) {
  .facebook-movie-rule {
    width: min(190px, 54vw);
  }

  .facebook-movie-logo h2 {
    font-size: clamp(1rem, 4.65vw, 1.1rem);
    justify-self: center;
    width: max-content;
    max-width: none;
  }

  .facebook-movie-logo h2 span {
    width: auto;
  }
}

.date-cell {
  white-space: normal;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.archive-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(195, 95, 39, 0.11);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

a.archive-chip {
  text-decoration: none;
}

.archive-filter-chips {
  margin: 10px 0 16px;
}

.archive-chip-active {
  background: var(--ink);
  color: #fff;
}

.archive-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.archive-pagination-disabled {
  cursor: default;
  opacity: 0.55;
}

.archive-chip-muted {
  background: rgba(22, 50, 68, 0.08);
  color: var(--ink);
}

.archive-tree-shell {
  overflow-x: auto;
}

.archive-tree-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
  min-width: min(100%, 760px);
}

.archive-tree-list .archive-tree-list {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid rgba(29, 57, 78, 0.14);
}

.archive-tree-item + .archive-tree-item {
  margin-top: 8px;
}

.archive-tree-node {
  min-width: 0;
}

.archive-tree-node > summary {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 12px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(29, 57, 78, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.74);
  cursor: pointer;
}

.archive-tree-node > summary::-webkit-details-marker {
  display: none;
}

.archive-tree-node > summary::marker {
  content: "";
}

.archive-tree-disclosure {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(29, 57, 78, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #8b4a20;
  flex: 0 0 auto;
}

.archive-tree-disclosure::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
  transform: rotate(0deg);
  transform-origin: 45% 50%;
  transition: transform 0.16s ease;
}

.archive-tree-node[open] > summary .archive-tree-disclosure::before {
  transform: rotate(90deg);
}

.archive-tree-disclosure-empty {
  opacity: 0.38;
}

.archive-tree-disclosure-empty::before {
  width: 6px;
  height: 6px;
  margin-left: 0;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  transform: none;
}

.archive-tree-node[open] > summary .archive-tree-disclosure-empty::before {
  transform: none;
}

.archive-tree-summary-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
}

.archive-tree-kind {
  color: #8b4a20;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-tree-label {
  color: #102d42;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.archive-tree-summary-meta {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  color: #536b7d;
  font-size: 0.82rem;
  white-space: nowrap;
}

.archive-tree-summary-meta span {
  border: 1px solid rgba(29, 57, 78, 0.12);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.5);
}

.archive-tree-description {
  margin: 8px 10px 10px;
  color: #536b7d;
}

.archive-tree-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.archive-tree-metrics span {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(29, 57, 78, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 253, 248, 0.68);
}

.archive-tree-metrics em {
  color: #6d8190;
  font-size: 0.73rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.archive-tree-metrics strong {
  color: #102d42;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.archive-tree-status-groups {
  display: grid;
  gap: 10px;
  margin: 10px 0 12px;
}

.archive-tree-status-group {
  border: 1px solid rgba(29, 57, 78, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 253, 248, 0.48);
}

.archive-tree-status-group h4 {
  margin: 0 0 8px;
  color: #8b4a20;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-tree-status-list {
  display: grid;
  gap: 5px;
}

.archive-tree-status-list p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0;
  color: #42576a;
}

.archive-tree-status-list strong {
  color: #102d42;
}

.archive-chip-good {
  background: rgba(45, 96, 86, 0.12);
  color: #244f47;
}

.archive-chip-heading {
  background: rgba(22, 50, 68, 0.14);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.source-category-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(22, 50, 68, 0.1);
  color: var(--muted);
}

.source-category-details summary {
  cursor: pointer;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.source-category-details .chip-list {
  margin-top: 10px;
}

.fb-subcollection-filter {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(22, 50, 68, 0.12);
  min-width: 0;
}

.fb-subcollection-filter p {
  margin: 4px 0 0;
}

.fb-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 10px;
  min-width: 0;
}

.fb-check-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(22, 50, 68, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
}

.fb-check-card input {
  grid-row: span 2;
}

.fb-check-card span,
.fb-check-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fb-check-card span {
  font-weight: 800;
}

.fb-check-card small {
  color: var(--muted);
  line-height: 1.3;
}

.fb-check-card:has(input:checked) {
  border-color: rgba(24, 119, 242, 0.34);
  background: rgba(24, 119, 242, 0.09);
}

.publication-grid,
.author-grid,
.asset-grid,
.candidate-grid,
.archive-meta-grid {
  display: grid;
  gap: 14px;
}

.publication-grid,
.author-grid,
.candidate-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.publication-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  margin: 6px 0 2px;
}

.publication-inventory-grid span,
.publication-processing-group {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(22, 50, 68, 0.11);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.68);
}

.publication-processing-group {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.publication-processing-group p {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.publication-processing-group span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.publication-inventory-grid strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.15;
}

.publication-inventory-grid small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .publication-processing-group {
    grid-template-columns: 1fr;
  }
}

.publication-glossary {
  margin-top: 16px;
}

.publication-glossary dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

.publication-glossary dl > div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(22, 50, 68, 0.11);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.62);
}

.publication-glossary dt {
  margin: 0 0 5px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.publication-glossary dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.publication-report {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid rgba(22, 50, 68, 0.15);
  background:
    linear-gradient(90deg, rgba(22, 50, 68, 0.07) 0 1px, transparent 1px) left 32px top / 1px 100% no-repeat,
    var(--paper);
  box-shadow: 0 18px 55px rgba(31, 44, 51, 0.09);
  color: var(--ink);
}

.publication-report-header {
  max-width: 760px;
  margin: 0 0 clamp(30px, 5vw, 54px);
}

.publication-backlink {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.publication-report h2,
.publication-report h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  letter-spacing: 0;
}

.publication-report h2 {
  margin-top: 4px;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.98;
}

.publication-lede {
  margin: 22px 0 0;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.14rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.publication-report-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
}

.publication-register {
  display: grid;
  gap: clamp(30px, 5vw, 48px);
}

.publication-entry {
  padding-top: clamp(22px, 4vw, 34px);
  border-top: 2px solid rgba(22, 50, 68, 0.18);
}

.publication-entry-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.publication-entry-number {
  margin: 0;
  padding-top: 0.3em;
  border-top: 1px solid var(--accent);
  color: var(--accent);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.publication-entry h3 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.publication-entry h3 a {
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.13em;
}

.publication-entry-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.publication-prose {
  max-width: 760px;
  margin: 20px 0 0 70px;
}

.publication-prose p {
  margin: 0 0 0.78em;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.04rem;
  line-height: 1.66;
}

.publication-prose strong {
  color: var(--accent-deep);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.94em;
  letter-spacing: 0.01em;
}

.publication-facebook-groups {
  max-width: 900px;
  margin: 22px 0 0 70px;
  padding: 16px 0 2px;
  border-top: 1px solid rgba(22, 50, 68, 0.18);
}

.publication-facebook-groups-heading {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.publication-facebook-group-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 10px;
}

.publication-facebook-group-links a {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid rgba(22, 50, 68, 0.14);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  color: var(--ink);
  text-decoration: none;
}

.publication-facebook-group-links a:hover,
.publication-facebook-group-links a:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, var(--panel));
}

.publication-facebook-group-links strong {
  font-size: 0.94rem;
  line-height: 1.3;
}

.publication-facebook-group-links span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.publication-table-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 22px 0 0 70px;
}

.publication-mini-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid rgba(22, 50, 68, 0.34);
  border-bottom: 1px solid rgba(22, 50, 68, 0.18);
  font-size: 0.94rem;
  table-layout: fixed;
}

.publication-mini-table caption {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
}

.publication-mini-table th,
.publication-mini-table td {
  padding: 8px 0;
  border-top: 1px solid rgba(22, 50, 68, 0.11);
  text-align: left;
  vertical-align: top;
}

.publication-mini-table th {
  width: 74%;
  padding-right: 16px;
  color: var(--muted);
  font-weight: 650;
}

.publication-mini-table td {
  width: 26%;
  color: var(--ink);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
  text-align: right;
}

.publication-actions {
  margin: 18px 0 0 70px;
  color: var(--accent-deep);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.45;
}

.publication-actions a {
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.publication-report-glossary {
  margin-top: clamp(42px, 7vw, 78px);
  padding-top: clamp(22px, 4vw, 34px);
  border-top: 3px double rgba(22, 50, 68, 0.22);
}

.publication-report-glossary h3 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.publication-report-glossary dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 880px;
  margin: 18px 0 0;
}

.publication-report-glossary dl > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: 22px;
  padding: 14px 0;
  border-top: 1px solid rgba(22, 50, 68, 0.13);
}

.publication-report-glossary dt {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.32;
}

.publication-report-glossary dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.research-overview {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(22, 50, 68, 0.15);
  background:
    linear-gradient(90deg, rgba(22, 50, 68, 0.07) 0 1px, transparent 1px) left 32px top / 1px 100% no-repeat,
    var(--paper);
  box-shadow: 0 18px 55px rgba(31, 44, 51, 0.09);
  color: var(--ink);
}

.research-overview-header {
  max-width: 850px;
  padding-bottom: clamp(30px, 5vw, 52px);
  border-bottom: 3px double rgba(22, 50, 68, 0.24);
}

.research-overview h2,
.research-overview h3,
.research-overview h4 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  letter-spacing: 0;
}

.research-overview h2 {
  margin-top: 4px;
  font-size: clamp(2.35rem, 7vw, 5.2rem);
  line-height: 0.98;
}

.research-overview-lede {
  max-width: 78ch;
  margin: 24px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  line-height: 1.58;
}

.research-overview-note {
  max-width: 74ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.research-facts,
.research-publications,
.research-candidates {
  padding-top: clamp(28px, 5vw, 50px);
}

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

.research-section-heading .eyebrow {
  margin-bottom: 4px;
}

.research-section-heading h3 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.12;
}

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

.publication-register-link {
  color: var(--accent-deep);
  font-size: 0.94rem;
  font-weight: 750;
  text-underline-offset: 0.18em;
  white-space: nowrap;
}

.research-facts-table,
.research-publication-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.research-facts-table {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid rgba(22, 50, 68, 0.34);
}

.research-facts-table th,
.research-facts-table td {
  padding: 15px 14px 15px 0;
  border-top: 1px solid rgba(22, 50, 68, 0.14);
  text-align: left;
  vertical-align: baseline;
}

.research-facts-table tr:first-child > * {
  border-top: 0;
}

.research-facts-table th {
  width: 27%;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.research-facts-table td {
  width: 23%;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 700;
}

.research-publication-table {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.research-publication-table thead th {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid rgba(22, 50, 68, 0.4);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.research-publication-table thead th:first-child {
  width: 24%;
}

.research-publication-table thead th:last-child {
  width: 15%;
  text-align: right;
}

.research-publication-table tbody th,
.research-publication-table tbody td {
  padding: 18px 14px 18px 0;
  border-top: 1px solid rgba(22, 50, 68, 0.14);
  text-align: left;
  vertical-align: top;
}

.research-publication-table tbody th {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.14rem;
  line-height: 1.35;
}

.research-publication-table tbody td {
  color: var(--muted);
  line-height: 1.58;
}

.research-publication-table tbody td:last-child {
  color: var(--ink);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
  text-align: right;
}

.research-candidates {
  margin-top: clamp(34px, 6vw, 62px);
  border-top: 3px double rgba(22, 50, 68, 0.24);
}

.research-candidate-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  min-width: 0;
  cursor: pointer;
  list-style-position: outside;
}

.research-candidate-disclosure > summary strong {
  display: block;
  margin-top: 4px;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.research-candidate-count {
  color: var(--accent-deep);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.research-candidate-intro {
  max-width: 74ch;
  margin: 22px 0;
  color: var(--muted);
  line-height: 1.6;
}

.research-candidate-list {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.research-candidate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  min-width: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(22, 50, 68, 0.14);
}

.research-candidate-row:first-child {
  border-top: 0;
}

.research-candidate-row h4 {
  font-size: 1.15rem;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.research-candidate-meta,
.research-candidate-status,
.research-candidate-snippet,
.research-candidate-source {
  margin: 0;
}

.research-candidate-meta,
.research-candidate-status {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.research-candidate-status {
  font-weight: 750;
  text-align: right;
}

.research-candidate-snippet,
.research-candidate-source {
  grid-column: 1 / -1;
  max-width: 78ch;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.research-candidate-source {
  font-size: 0.9rem;
  font-weight: 750;
}

.research-overview-footer {
  margin-top: clamp(36px, 6vw, 64px);
  padding-top: 18px;
  border-top: 1px solid rgba(22, 50, 68, 0.18);
  color: var(--muted);
  font-size: 0.86rem;
}

.research-overview-footer summary {
  width: max-content;
  max-width: 100%;
  cursor: pointer;
  font-weight: 750;
}

.research-overview-footer code {
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 760px) {
  .research-overview {
    padding: 24px 20px 36px;
    background: var(--paper);
  }

  .research-section-heading-inline {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .publication-register-link {
    white-space: normal;
  }

  .research-facts-table,
  .research-facts-table tbody,
  .research-facts-table tr,
  .research-facts-table th,
  .research-facts-table td {
    display: block;
    width: 100%;
  }

  .research-facts-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px solid rgba(22, 50, 68, 0.14);
  }

  .research-facts-table tr:first-child {
    border-top: 0;
  }

  .research-facts-table th,
  .research-facts-table td {
    padding: 8px 0;
    border: 0;
  }

  .research-facts-table td {
    text-align: right;
  }

  .research-publication-table,
  .research-publication-table tbody,
  .research-publication-table tr,
  .research-publication-table th,
  .research-publication-table td {
    display: block;
    width: 100%;
  }

  .research-publication-table thead {
    display: none;
  }

  .research-publication-table tbody tr {
    padding: 18px 0;
    border-top: 1px solid rgba(22, 50, 68, 0.2);
  }

  .research-publication-table tbody tr:first-child {
    border-top: 0;
  }

  .research-publication-table tbody th,
  .research-publication-table tbody td {
    padding: 0;
    border: 0;
  }

  .research-publication-table tbody td:nth-child(2) {
    margin-top: 8px;
  }

  .research-publication-table tbody td:last-child {
    margin-top: 10px;
    text-align: left;
  }

  .research-publication-table tbody td:last-child::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    font-weight: 650;
  }

  .research-candidate-disclosure > summary,
  .research-candidate-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .research-candidate-count,
  .research-candidate-status {
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .publication-report {
    padding: 24px 20px 34px;
    background: var(--paper);
  }

  .publication-entry-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .publication-entry-number {
    width: max-content;
    padding-top: 0;
    padding-bottom: 5px;
    border-top: 0;
    border-bottom: 1px solid var(--accent);
  }

  .publication-prose,
  .publication-facebook-groups,
  .publication-table-pair,
  .publication-actions {
    margin-left: 0;
  }

  .publication-table-pair {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .publication-report-glossary dl > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.candidate-card {
  min-width: 0;
}

.archive-meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.archive-summary {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(22, 50, 68, 0.12);
}

.archive-original-title {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.work-quick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  line-height: 1.5;
  min-width: 0;
}

.work-quick-meta span,
.work-quick-meta a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.work-top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  min-width: 0;
}

.work-top-actions p {
  margin: 0;
  min-width: 0;
}

.movie-fact-strip {
  display: grid;
  grid-template-columns: minmax(160px, auto) minmax(0, 1fr);
  gap: 12px 18px;
  align-items: start;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(195, 95, 39, 0.22);
  border-radius: 14px;
  background: rgba(255, 247, 236, 0.72);
  min-width: 0;
}

.movie-fact-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.movie-fact-title span,
.movie-fact-list dt {
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.movie-fact-title strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.movie-fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0;
  min-width: 0;
}

.movie-fact-list div {
  min-width: 0;
}

.movie-fact-list dd {
  margin: 1px 0 0;
  color: var(--ink);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.movie-pb-verdict-icon {
  display: inline-flex;
  align-items: center;
  min-height: 1.1em;
  font-size: 1.08rem;
  vertical-align: -0.12em;
}

svg.movie-pb-verdict-icon {
  width: 1.08em;
  height: 1.08em;
}

.movie-fact-cast {
  flex-basis: 100%;
}

.movie-fact-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: start;
  justify-content: flex-start;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.movie-fact-link-section {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.movie-fact-link-section-watch {
  text-align: left;
}

.movie-fact-links-heading {
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.movie-fact-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  min-width: 0;
}

.movie-source-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  min-height: 1.7rem;
  color: var(--ink);
  text-decoration: none;
}

.movie-source-link:hover {
  text-decoration: underline;
}

.movie-source-icon {
  display: inline-grid;
  width: 1.55rem;
  min-width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
}

.movie-source-icon-imdb {
  background: #f5c518;
  color: #111;
}

.movie-source-icon-justwatch {
  background: #071d49;
  color: #fff;
  font-size: 0.72rem;
}

.movie-source-icon-wikipedia {
  border: 1px solid rgba(14, 24, 36, 0.24);
  background: #fff;
  color: #111;
  font-family: Georgia, serif;
  font-size: 0.84rem;
}

.movie-source-icon-rt {
  background: #f7efe5;
  color: #b52218;
  font-size: 0.88rem;
}

.movie-source-icon-watch {
  border: 1px solid rgba(195, 95, 39, 0.24);
  background: #fff6e5;
  color: var(--accent-deep);
}

.movie-source-logo-wrap {
  display: inline-flex;
  width: 1.85rem;
  height: 1.85rem;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(14, 24, 36, 0.12);
  border-radius: 8px;
  background: #fff;
}

.movie-source-logo {
  display: block;
  width: 100%;
  max-width: 1.85rem;
  height: 100%;
  max-height: 1.85rem;
  object-fit: contain;
}

.movie-about-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(14, 24, 36, 0.11);
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.movie-about-footer p {
  margin: 0;
}

.path-cell {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  color: var(--muted);
}

.article-assets-top {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(22, 50, 68, 0.12);
}

.article-assets-top h3 {
  margin-top: 0;
}

.archive-disclosure {
  display: block;
}

.archive-disclosure > summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  font-weight: 900;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.archive-disclosure > summary::marker {
  color: var(--accent);
}

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

.archive-disclosure > summary::before {
  content: "";
  width: 0.66em;
  height: 0.66em;
  flex: 0 0 auto;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform 0.16s ease;
}

.archive-disclosure[open] > summary::before {
  transform: rotate(45deg);
}

.archive-disclosure[open] > summary {
  margin-bottom: 16px;
}

.source-candidate-disclosure {
  display: block;
}

.source-candidate-disclosure > summary {
  justify-content: flex-start;
}

.source-candidate-disclosure > summary strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.source-candidate-note {
  margin: -2px 0 12px;
}

.surface-card p,
.surface-card a,
.archive-meta-grid p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.asset-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.asset-card {
  margin: 0;
  display: grid;
  gap: 10px;
}

.asset-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(22, 50, 68, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.asset-missing-image {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 180px;
  padding: 18px;
  border: 1px dashed rgba(22, 50, 68, 0.28);
  border-radius: 16px;
  background: rgba(241, 245, 249, 0.82);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.asset-missing-image span {
  font-weight: 750;
}

.asset-missing-image small {
  color: var(--muted);
  line-height: 1.35;
}

.asset-card figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.fb-post-photo-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fb-review-frame {
  width: min(100%, 1216px);
  margin: 18px auto 0;
}

.fb-review-layout {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 720px) minmax(150px, 220px);
  gap: 24px 28px;
  align-items: start;
  margin-top: 20px;
  min-width: 0;
}

.fb-review-left-rail,
.fb-review-right-rail,
.fb-review-main {
  min-width: 0;
}

.fb-review-left-rail {
  display: grid;
  justify-items: start;
  align-content: start;
}

.fb-review-main .fb-recreated-post {
  width: 100%;
  margin: 0;
}

.fb-movie-review-poster {
  display: grid;
  width: min(100%, 174px);
  gap: 10px;
  margin: 0;
  min-width: 0;
}

.fb-movie-review-poster .movie-poster-frame {
  width: 100%;
}

.fb-movie-review-poster .movie-poster-copy h3 {
  font-size: 0.95rem;
}

.fb-movie-poster-variants {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.fb-movie-review-poster-variant {
  padding-top: 14px;
  border-top: 1px solid rgba(14, 24, 36, 0.12);
}

@media (max-width: 760px) {
  .fb-review-layout {
    grid-template-columns: 1fr;
  }

  .fb-review-right-rail {
    display: none;
  }

  .fb-movie-review-poster {
    width: min(170px, 58vw);
  }
}

.fb-recreated-post {
  --fb-shell-bg: #fff;
  --fb-stage-bg: #f0f2f5;
  --fb-panel-bg: #fff;
  --fb-card-border: rgba(5, 5, 5, 0.1);
  --fb-primary-text: #050505;
  --fb-secondary-text: #65676b;
  --fb-comment-bg: #f0f2f5;
  --fb-preview-bg: #f0f2f5;
  --fb-preview-border: rgba(5, 5, 5, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: min(100%, 720px);
  min-width: 0;
  margin-top: 22px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(22, 50, 68, 0.2);
  border-radius: 14px;
  background: var(--fb-shell-bg);
}

.fb-recreated-post-no-media {
  border-radius: 14px;
}

.fb-recreated-post-no-media .fb-post-sidebar {
  max-height: none;
  border-left: 0;
}

:root[data-theme="dark"] .fb-recreated-post {
  --fb-shell-bg: #111315;
  --fb-stage-bg: #18191a;
  --fb-panel-bg: #242526;
  --fb-card-border: rgba(255, 255, 255, 0.1);
  --fb-primary-text: #e4e6eb;
  --fb-secondary-text: #b0b3b8;
  --fb-comment-bg: #3a3b3c;
  --fb-preview-bg: #3a3b3c;
  --fb-preview-border: rgba(255, 255, 255, 0.08);
}

:root[data-theme="dark"] .main-nav a,
:root[data-theme="dark"] .admin-menu summary,
:root[data-theme="dark"] .ghost-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(224, 235, 241, 0.16);
}

:root[data-theme="dark"] .primary-button {
  color: #10151a;
}

:root[data-theme="dark"] .user-chip,
:root[data-theme="dark"] .movie-fact-strip,
:root[data-theme="dark"] .admin-menu-panel,
:root[data-theme="dark"] .archive-disclosure,
:root[data-theme="dark"] .movie-review-choice-card,
:root[data-theme="dark"] .facebook-movie-list-row {
  border-color: rgba(224, 235, 241, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .archive-chip,
:root[data-theme="dark"] .movie-source-logo-wrap,
:root[data-theme="dark"] .movie-source-icon-wikipedia,
:root[data-theme="dark"] .movie-source-icon-watch,
:root[data-theme="dark"] .movie-source-icon-rt {
  border-color: rgba(224, 235, 241, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

:root[data-theme="dark"] .archive-tree-node > summary,
:root[data-theme="dark"] .archive-tree-metrics span,
:root[data-theme="dark"] .archive-tree-status-group,
:root[data-theme="dark"] .publication-inventory-grid span,
:root[data-theme="dark"] .publication-processing-group,
:root[data-theme="dark"] .publication-glossary dl > div {
  border-color: rgba(224, 235, 241, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .archive-tree-disclosure {
  border-color: rgba(224, 235, 241, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #e8a45f;
}

:root[data-theme="dark"] .record-card {
  border-color: rgba(224, 235, 241, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .archive-tree-list .archive-tree-list {
  border-color: rgba(224, 235, 241, 0.16);
}

:root[data-theme="dark"] .archive-tree-label,
:root[data-theme="dark"] .archive-tree-metrics strong,
:root[data-theme="dark"] .archive-tree-status-list strong {
  color: var(--ink);
}

:root[data-theme="dark"] .publication-report {
  border-color: rgba(224, 235, 241, 0.18);
  background:
    linear-gradient(90deg, rgba(224, 235, 241, 0.08) 0 1px, transparent 1px) left 32px top / 1px 100% no-repeat,
    var(--paper);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .publication-entry,
:root[data-theme="dark"] .publication-report-glossary,
:root[data-theme="dark"] .publication-mini-table,
:root[data-theme="dark"] .publication-mini-table th,
:root[data-theme="dark"] .publication-mini-table td,
:root[data-theme="dark"] .publication-report-glossary dl > div {
  border-color: rgba(224, 235, 241, 0.18);
}

:root[data-theme="dark"] .publication-prose strong,
:root[data-theme="dark"] .publication-facebook-groups-heading,
:root[data-theme="dark"] .publication-mini-table caption,
:root[data-theme="dark"] .publication-actions {
  color: var(--accent);
}

:root[data-theme="dark"] .archive-tree-kind,
:root[data-theme="dark"] .archive-tree-status-group h4 {
  color: #e8a45f;
}

:root[data-theme="dark"] .archive-tree-description,
:root[data-theme="dark"] .archive-tree-summary-meta,
:root[data-theme="dark"] .archive-tree-status-list p,
:root[data-theme="dark"] .archive-tree-metrics em {
  color: var(--muted);
}

:root[data-theme="dark"] .movie-source-icon-imdb {
  color: #111;
}

:root[data-theme="dark"] .facebook-movie-hero {
  background:
    linear-gradient(90deg, rgba(72, 20, 24, 0.35), transparent 12%, transparent 88%, rgba(72, 20, 24, 0.35)),
    radial-gradient(ellipse at 50% 48%, rgba(255, 216, 128, 0.14), rgba(255, 216, 128, 0.08) 38%, rgba(0, 0, 0, 0.22) 72%),
    linear-gradient(180deg, rgba(24, 30, 37, 0.98), rgba(18, 23, 29, 0.96));
}

:root[data-theme="dark"] .facebook-movie-screen {
  border-color: rgba(250, 217, 156, 0.35);
  background:
    linear-gradient(90deg, rgba(125, 31, 35, 0.82), transparent 13%, transparent 87%, rgba(125, 31, 35, 0.82)),
    radial-gradient(ellipse at 50% 48%, rgba(255, 232, 160, 0.35), rgba(88, 69, 42, 0.22) 38%, rgba(0, 0, 0, 0.32) 66%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, #2a221a, #171717);
}

.fb-media-stage {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-top: 1px solid var(--fb-card-border);
  background: var(--fb-stage-bg);
}

.fb-media-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.fb-media-count-1 {
  grid-template-columns: 1fr;
}

.fb-stage-photo {
  display: grid;
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.fb-stage-photo a {
  display: grid;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.fb-stage-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-stage-photo-primary {
  grid-column: 1 / -1;
}

.fb-stage-photo-primary img {
  height: auto;
  max-height: min(78vh, 820px);
  object-fit: contain;
  background: #050607;
}

.fb-stage-photo-secondary {
  aspect-ratio: 1.52 / 1;
}

.fb-stage-photo-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.fb-stage-photo-strip figure {
  display: grid;
  min-width: 0;
  margin: 0;
  aspect-ratio: 1.52 / 1;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
}

.fb-stage-photo-strip a {
  display: grid;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.fb-stage-photo-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-stage-empty {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.fb-post-sidebar {
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
  max-height: 82vh;
  overflow: auto;
  border-left: 1px solid var(--fb-card-border);
  background: var(--fb-panel-bg);
  color: var(--fb-primary-text);
}

.fb-original-post-card,
.fb-recreated-comments {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.fb-recreated-comments {
  border-top: 1px solid var(--fb-card-border);
  background: var(--fb-panel-bg);
  overflow-anchor: none;
}

.fb-recreated-comments[hidden] {
  display: none;
}

.fb-original-post-card {
  background: var(--fb-panel-bg);
}

.fb-post-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.fb-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #6d7782, #202326);
  color: #fff;
  font-weight: 850;
}

.fb-post-header strong {
  display: block;
  color: var(--fb-primary-text);
  font-weight: 800;
  line-height: 1.15;
}

.fb-post-header p {
  margin: 2px 0 0;
  color: var(--fb-secondary-text);
  font-size: 0.9rem;
  line-height: 1.25;
}

.fb-post-header a {
  color: var(--fb-secondary-text);
}

.fb-post-body {
  display: grid;
  gap: 6px;
  color: var(--fb-primary-text);
  font-size: 0.98rem;
  line-height: 1.38;
}

.fb-preserved-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.fb-post-body p,
.fb-comment-text {
  margin: 0;
  overflow-wrap: anywhere;
}

.fb-post-block {
  margin: 0;
}

.fb-post-block + .fb-post-block {
  margin-top: 0.14rem;
}

.fb-action-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--fb-card-border);
  background: var(--fb-panel-bg);
  color: var(--fb-secondary-text);
  font-size: 0.9rem;
}

.fb-reaction-badge,
.fb-comment-reaction {
  position: relative;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  line-height: 1.2;
}

.fb-reaction-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  font-size: 0.92rem;
  line-height: 1;
}

.fb-comment-reaction .fb-reaction-icon {
  width: 14px;
  height: 14px;
  font-size: 0.72rem;
}

.fb-reaction-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 5;
  display: none;
  min-width: 180px;
  max-width: min(260px, 80vw);
  transform: translateX(-50%);
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.92);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  font-size: 0.82rem;
  line-height: 1.35;
  white-space: normal;
}

.fb-reaction-tooltip span {
  display: block;
}

.fb-reaction-badge:hover .fb-reaction-tooltip,
.fb-reaction-badge:focus-within .fb-reaction-tooltip {
  display: grid;
  gap: 3px;
}

.fb-comments-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--fb-secondary-text);
}

.fb-comments-link:hover {
  text-decoration: underline;
}

.fb-comments-link[aria-expanded="true"] {
  color: #1877f2;
  font-weight: 800;
}

.fb-comment-sort {
  justify-self: start;
  color: var(--fb-secondary-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.fb-comment-thread-recreated {
  display: grid;
  gap: 10px;
}

.fb-comments-pending {
  max-width: 34rem;
  margin: 0;
  color: var(--fb-secondary-text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.42;
}

.fb-comment-thread-recreated .interaction-item {
  padding: 0;
  border: 0;
  background: transparent;
}

.fb-comment-thread-recreated .fb-comment-bubble {
  display: grid;
  gap: 4px;
  justify-self: start;
  max-width: min(100%, 34rem);
  padding: 9px 12px;
  border-radius: 18px;
  background: var(--fb-comment-bg);
  color: var(--fb-primary-text);
}

.fb-comment-thread-recreated .fb-comment-bubble .record-heading {
  gap: 6px;
}

.fb-comment-thread-recreated .fb-comment-bubble strong,
.fb-comment-thread-recreated .fb-comment-bubble a {
  color: var(--fb-primary-text);
}

.fb-comment-thread-recreated .archive-chip-muted {
  color: var(--fb-secondary-text);
  background: rgba(24, 119, 242, 0.08);
}

.fb-comment-thread-recreated .fb-comment-bubble p,
.fb-comment-thread-recreated .fb-comment-text {
  color: var(--fb-primary-text);
  line-height: 1.34;
}

.fb-comment-thread-recreated .fb-comment-actions {
  display: flex;
  gap: 10px;
  margin-left: 12px;
  color: var(--fb-secondary-text);
  font-size: 0.82rem;
  font-weight: 750;
}

.fb-comment-thread-recreated .fb-comment-actions a {
  color: var(--fb-secondary-text);
}

.fb-comment-thread-recreated .fb-comment-children {
  display: grid;
  gap: 8px;
  margin-left: 34px;
  padding-left: 10px;
  border-left: 2px solid rgba(176, 179, 184, 0.25);
}

.archive-reading {
  max-width: 70ch;
  margin-inline: auto;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.75;
  text-align: left;
  hyphens: auto;
}

.archive-reading p {
  margin: 0 0 1.15em;
  overflow-wrap: anywhere;
}

.component-list {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.component-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(22, 50, 68, 0.14);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.64);
  overflow-wrap: anywhere;
}

.component-quoted_post {
  margin-left: clamp(0px, 4vw, 28px);
  border-left-color: rgba(22, 50, 68, 0.32);
  background: rgba(247, 250, 252, 0.88);
}

.component-reading {
  max-width: 68ch;
  margin-inline: 0;
}

.newspaper-candidate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.newspaper-candidate-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 22px;
  align-items: start;
}

.newspaper-candidate-heading-copy {
  min-width: 0;
}

.source-page-thumbnail {
  display: grid;
  gap: 7px;
  width: 132px;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(22, 50, 68, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  cursor: zoom-in;
  box-shadow: 0 8px 22px rgba(22, 50, 68, 0.1);
}

.source-page-thumbnail:hover {
  border-color: var(--accent);
}

.source-page-thumbnail:focus-visible {
  outline: 3px solid rgba(24, 119, 242, 0.28);
  outline-offset: 2px;
}

.source-page-thumbnail img {
  display: block;
  width: 100%;
  height: 142px;
  object-fit: contain;
  object-position: top center;
  background: #161616;
}

.source-page-thumbnail span {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.source-page-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #111;
  color: #fff;
  overflow: hidden;
  overscroll-behavior: none;
}

html.source-page-viewer-open,
html.source-page-viewer-open body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.source-page-dialog[open] {
  display: grid;
  grid-template-rows: max-content max-content minmax(0, 1fr);
}

.source-page-dialog::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.source-page-dialog-toolbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 12, 12, 0.94);
}

.source-page-viewer-title {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.source-page-viewer-title strong,
.source-page-viewer-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-page-viewer-title span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
}

.source-page-toolbar-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

.source-page-dialog-toolbar .header-icon-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.source-page-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 36px;
  height: 36px;
  margin: 0;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.source-page-tool-button:hover,
.source-page-tool-button:focus-visible,
.source-page-tool-button[aria-pressed="true"] {
  border-color: rgba(240, 161, 93, 0.8);
  background: rgba(240, 161, 93, 0.18);
  color: #fff;
}

.source-page-tool-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.source-page-viewer-controls {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) minmax(170px, 1fr) minmax(170px, 1fr) max-content;
  gap: 7px 14px;
  align-items: center;
  padding: 8px 14px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #171717;
}

.source-page-viewer-slider {
  display: grid;
  grid-template-columns: max-content minmax(72px, 1fr) max-content;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 800;
}

.source-page-viewer-slider input[type="range"],
.source-page-image-adjustment-grid input[type="range"] {
  width: 100%;
  accent-color: #f0a15d;
  cursor: pointer;
}

.source-page-viewer-slider input:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.source-page-viewer-slider output {
  min-width: 40px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.source-page-image-adjustments {
  position: relative;
}

.source-page-image-adjustments > summary {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  list-style-position: inside;
  white-space: nowrap;
}

.source-page-image-adjustment-grid {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  width: min(320px, 88vw);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: #202020;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42);
}

.source-page-image-adjustment-grid > label:not(.source-page-check) {
  display: grid;
  grid-template-columns: 74px minmax(80px, 1fr) 42px;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  font-weight: 800;
}

.source-page-source-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.source-page-source-switch legend {
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.67rem;
  font-weight: 800;
}

.source-page-source-switch label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.source-page-source-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.source-page-source-switch span {
  display: block;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}

.source-page-source-switch label:first-of-type span {
  border-radius: 5px 0 0 5px;
}

.source-page-source-switch label:last-of-type span {
  margin-left: -1px;
  border-radius: 0 5px 5px 0;
}

.source-page-source-switch input:checked + span {
  position: relative;
  z-index: 1;
  border-color: rgba(240, 161, 93, 0.82);
  background: rgba(240, 161, 93, 0.18);
  color: #fff;
}

.source-page-source-switch input:focus-visible + span {
  outline: 2px solid rgba(240, 161, 93, 0.9);
  outline-offset: 2px;
}

.source-page-image-adjustment-grid output {
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.source-page-check {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
}

.source-page-image-adjustment-grid .ghost-button {
  justify-self: start;
  min-height: 32px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.source-page-viewer-status {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.66rem;
  line-height: 1.25;
}

.source-page-dialog-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #090909;
}

.source-page-dialog-image-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.48) rgba(255, 255, 255, 0.08);
  scrollbar-gutter: stable both-edges;
  touch-action: pan-x pan-y;
}

.source-page-dialog-image-wrap.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.source-page-viewer-canvas {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: max-content;
  min-width: 100%;
  min-height: 100%;
}

.source-page-dialog-image-wrap img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  background: #dedbd3;
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.56);
  cursor: grab;
  transform-origin: top center;
  -webkit-user-drag: none;
  user-select: none;
}

.source-page-ocr-panel {
  width: min(390px, 36vw);
  min-width: 300px;
  height: 100%;
  padding: 13px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  overflow: auto;
  background: #17191b;
  color: #f1f3f4;
}

.source-page-ocr-panel[hidden] {
  display: none;
}

.source-page-ocr-panel header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.source-page-ocr-panel header > div {
  display: grid;
  gap: 2px;
}

.source-page-ocr-panel header span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
}

.source-page-copy-ocr {
  min-height: 32px;
  margin-bottom: 10px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.source-page-ocr-panel pre {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: #0d1012;
  color: #f5f6f6;
  font: 0.86rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}

.source-page-context-menu {
  position: fixed;
  z-index: 30;
  display: grid;
  min-width: 190px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: #202326;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.52);
}

.source-page-context-menu[hidden] {
  display: none;
}

.source-page-context-menu :is(button, a) {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #f5f6f6;
  font: inherit;
  font-size: 0.76rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.source-page-context-menu :is(button, a):hover,
.source-page-context-menu :is(button, a):focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.source-page-context-menu button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .source-page-dialog-toolbar {
    grid-template-columns: minmax(0, 1fr) max-content;
    padding-inline: 9px;
  }

  .source-page-toolbar-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .source-page-dialog-toolbar > .header-icon-button {
    grid-column: 2;
    grid-row: 1;
  }

  .source-page-viewer-controls {
    grid-template-columns: 1fr 1fr;
    padding-inline: 9px;
  }

  .source-page-viewer-zoom,
  .source-page-viewer-status {
    grid-column: 1 / -1;
  }

  .source-page-image-adjustments {
    grid-column: 1 / -1;
  }

  .source-page-image-adjustments > summary {
    width: max-content;
  }

  .source-page-image-adjustment-grid {
    right: auto;
    left: 0;
  }

  .source-page-dialog-image-wrap {
    padding: 10px;
  }

  .source-page-ocr-panel {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 10;
    width: min(92vw, 390px);
    min-width: 0;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.44);
  }
}

@media (max-width: 430px) {
  .source-page-tool-button-labeled span {
    display: none;
  }

  .source-page-viewer-controls {
    grid-template-columns: 1fr;
  }

  .source-page-viewer-zoom,
  .source-page-viewer-status,
  .source-page-image-adjustments {
    grid-column: 1;
  }
}

.newspaper-transcript-panel,
.newspaper-image-panel {
  min-width: 0;
}

.newspaper-transcript-panel .section-heading,
.newspaper-image-panel .section-heading {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
}

.newspaper-transcript-panel .section-heading h3,
.newspaper-image-panel .section-heading h3 {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  line-height: 1.12;
}

.newspaper-continuation-warning {
  margin-top: 18px;
}

.newspaper-partial-notice {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.newspaper-partial-notice ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 4px;
}

.newspaper-raw-ocr-evidence {
  margin-top: 18px;
  border-top: 1px solid rgba(23, 48, 70, 0.14);
  padding-top: 14px;
}

.newspaper-raw-ocr-evidence summary {
  cursor: pointer;
  font-weight: 800;
  color: #173046;
}

.newspaper-raw-ocr-evidence .archive-reading {
  margin-top: 10px;
}

.newspaper-reading {
  max-width: 74ch;
  margin-inline: 0;
}

.newspaper-layout-render {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.newspaper-article-header {
  display: grid;
  gap: 6px;
  max-width: 78ch;
  min-width: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(22, 50, 68, 0.14);
}

.newspaper-kicker,
.newspaper-headline,
.newspaper-deck p,
.newspaper-byline-block p,
.newspaper-continuation-cue {
  margin: 0;
  overflow-wrap: anywhere;
}

.newspaper-kicker {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.18rem, 2.6vw, 1.7rem);
  font-style: italic;
  line-height: 1.12;
  color: var(--ink);
}

.newspaper-headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.95rem, 6vw, 3.35rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--ink);
}

.newspaper-deck {
  display: grid;
  gap: 4px;
  max-width: 66ch;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.newspaper-byline-block {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  width: min(100%, 28rem);
}

.newspaper-continuation-cue {
  justify-self: start;
  padding: 8px 10px;
  border: 1px solid rgba(22, 50, 68, 0.14);
  border-radius: 10px;
  background: rgba(236, 247, 255, 0.72);
  color: var(--ink);
  font-weight: 850;
}

.newspaper-asset-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.newspaper-asset-card {
  display: grid;
  gap: 10px;
  margin: 0;
  min-width: 0;
}

.newspaper-asset-card img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(22, 50, 68, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.newspaper-asset-issue_mast img {
  max-height: 180px;
}

.newspaper-asset-card figcaption {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.newspaper-page-context-panel {
  display: grid;
  gap: 18px;
}

.newspaper-page-context-heading {
  align-items: start;
  justify-content: space-between;
}

.frame-preferences {
  min-width: 0;
}

.frame-preferences fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.frame-preferences legend {
  width: 100%;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.frame-preferences label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(22, 50, 68, 0.14);
  border-radius: 999px;
  background: rgba(22, 50, 68, 0.05);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  white-space: nowrap;
}

.frame-preferences input {
  margin: 0;
}

.newspaper-page-stack {
  display: grid;
  gap: 16px;
}

.newspaper-page-thumbnail-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  align-items: start;
}

.newspaper-page-card img {
  width: auto;
  max-width: 100%;
  height: 320px;
  max-height: none;
  object-fit: contain;
  object-position: top left;
}

.newspaper-page-card figcaption {
  max-width: 38ch;
}

.photo-review-table {
  min-width: 1080px;
}

.archive-legal-page {
  max-width: 980px;
}

.archive-legal-page p,
.legal-list li {
  max-width: 86ch;
  line-height: 1.68;
}

.nested-disclosure {
  margin-top: 16px;
}

.ocr-raw-text {
  max-height: 70vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 14px;
  border: 1px solid rgba(22, 50, 68, 0.14);
  border-radius: 12px;
  background: rgba(247, 250, 252, 0.92);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

.interaction-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.interaction-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  border-left: 4px solid rgba(22, 50, 68, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  overflow-wrap: anywhere;
}

.interaction-item.author-response {
  border-left-color: var(--accent);
  background: rgba(236, 247, 255, 0.82);
}

.interaction-item p {
  margin: 0;
}

.fb-interaction-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.fb-visible-summary {
  margin: 0;
}

.fb-reaction-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.fb-reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(24, 119, 242, 0.1);
  color: #143c72;
  font-size: 0.9rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.fb-reaction-actors {
  min-width: 0;
  border: 1px solid rgba(22, 50, 68, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.58);
}

.fb-reaction-actors ul {
  columns: 2;
  column-gap: 24px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.fb-reaction-actors li {
  break-inside: avoid;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.fb-comment-thread {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.fb-comment-item {
  border: 0;
  padding: 0;
  background: transparent;
  gap: 4px;
}

.fb-comment-children {
  display: grid;
  gap: 10px;
  margin-left: clamp(16px, 6vw, 52px);
  padding-left: clamp(10px, 2vw, 16px);
  border-left: 2px solid rgba(24, 119, 242, 0.16);
}

.fb-comment-depth-1,
.fb-comment-depth-2,
.fb-comment-depth-3,
.fb-comment-depth-4 {
  margin-left: clamp(16px, 6vw, 52px);
}

.fb-comment-bubble {
  display: grid;
  gap: 6px;
  min-width: 0;
  width: fit-content;
  max-width: min(100%, 68ch);
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(241, 245, 249, 0.94);
  overflow-wrap: anywhere;
}

.fb-comment-bubble .record-heading {
  gap: 6px;
}

.fb-comment-item.author-response .fb-comment-bubble {
  background: rgba(236, 247, 255, 0.98);
  box-shadow: inset 3px 0 0 var(--accent);
}

.fb-comment-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 8px;
  margin-top: 4px;
}

.fb-comment-media {
  margin: 0;
  display: grid;
  gap: 6px;
}

.fb-comment-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(22, 50, 68, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

.fb-comment-media figcaption {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.fb-link-preview-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.fb-link-preview {
  display: grid;
  grid-template-columns: minmax(0, 92px) minmax(0, 1fr);
  gap: 10px;
  max-width: min(100%, 520px);
  padding: 8px;
  border: 1px solid rgba(22, 50, 68, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.fb-link-preview-text-only {
  grid-template-columns: 1fr;
}

.fb-link-preview img {
  display: block;
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(22, 50, 68, 0.08);
}

.fb-link-preview span {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}

.fb-link-preview strong,
.fb-link-preview small {
  overflow-wrap: break-word;
}

.fb-link-preview small {
  color: var(--muted);
  line-height: 1.35;
}

.fb-comment-thread-recreated .fb-link-preview {
  border-color: var(--fb-preview-border);
  background: var(--fb-preview-bg);
  color: var(--fb-primary-text);
}

.fb-comment-thread-recreated .fb-link-preview small {
  color: var(--fb-secondary-text);
}

.fb-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.fb-comment-actions a {
  font-weight: 650;
}

@media (max-width: 520px) {
  .movie-fact-strip,
  .movie-fact-list,
  .movie-fact-links {
    grid-template-columns: 1fr;
  }

  .work-top-actions {
    align-items: flex-start;
  }

  .movie-fact-strip {
    padding: 12px;
  }

  .movie-fact-links {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .facebook-movie-list-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .movie-fact-link-section-watch {
    justify-self: stretch;
    text-align: left;
  }

  .movie-fact-list {
    display: grid;
    gap: 8px;
  }

  .fb-reaction-actors ul {
    columns: 1;
  }

  .fb-comment-depth-1,
  .fb-comment-depth-2,
  .fb-comment-depth-3,
  .fb-comment-depth-4 {
    margin-left: 12px;
  }

  .fb-comment-children {
    margin-left: 10px;
    padding-left: 10px;
  }

  .fb-link-preview {
    grid-template-columns: 1fr;
  }

  .fb-link-preview img {
    width: 100%;
    height: auto;
    max-height: 180px;
  }
}

.related-strip {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(22, 50, 68, 0.12);
  min-width: 0;
}

.related-list,
.relation-group-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.related-list {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.relation-group-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}

.related-link-panel,
.relation-group-card,
.relation-banner {
  min-width: 0;
  border-radius: 18px;
  border: 1px solid rgba(22, 50, 68, 0.12);
  background: rgba(255, 255, 255, 0.56);
  overflow-wrap: anywhere;
}

.related-link-panel,
.relation-group-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.relation-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
}

.relation-banner .chip-list {
  grid-column: 1 / -1;
}

.compact-actions {
  flex-wrap: wrap;
}

.threshold-form,
.compare-select-form {
  min-width: 0;
}

.threshold-form {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) minmax(42px, auto) auto;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.threshold-form label,
.compare-select-grid label {
  font-weight: 700;
  min-width: 0;
}

.threshold-slider {
  width: 100%;
  min-width: 0;
  padding: 0;
}

.threshold-form output {
  justify-self: center;
  min-width: 42px;
  font-weight: 800;
  text-align: center;
}

.compare-select-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  min-width: 0;
}

.compare-select-grid label {
  display: grid;
  gap: 8px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.compare-pane {
  min-width: 0;
}

.compare-reading {
  max-width: 66ch;
  margin-inline: 0;
  font-size: 1rem;
  line-height: 1.68;
}

.compare-reading p {
  overflow-wrap: anywhere;
}

.relation-work-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.relation-work-list li {
  display: grid;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.relation-work-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.author-search-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 18px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
  min-width: 0;
}

.metric-list,
.release-change-list {
  margin: 0;
  padding-left: 20px;
}

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

.metric-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(22, 50, 68, 0.1);
}

.metric-list span,
.release-change-list li,
.compact-list li {
  overflow-wrap: anywhere;
}

.release-change-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.mention-table {
  min-width: 760px;
}

@media (max-width: 980px) {
  .public-panel-wide,
  .detail-grid,
  .archive-hero {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .app-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
  }

  .session-tools {
    align-self: start;
    justify-self: end;
  }

  .section-heading,
  .record-heading,
  .inline-form,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .archive-filters {
    grid-template-columns: 1fr;
  }

  .compare-select-grid,
  .compare-grid,
  .threshold-form {
    grid-template-columns: 1fr;
  }

  .threshold-form output {
    justify-self: start;
  }

  .admin-menu {
    width: 100%;
  }

  .admin-menu-panel {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }

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

  .archive-tree-node > summary {
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
  }

  .archive-tree-disclosure {
    margin-top: 1px;
  }

  .archive-tree-summary-meta {
    grid-column: 2;
    justify-content: flex-start;
    white-space: normal;
  }

  .archive-tree-list .archive-tree-list {
    margin-left: 8px;
    padding-left: 10px;
  }

  .newspaper-candidate-layout {
    grid-template-columns: 1fr;
  }

  .newspaper-candidate-heading {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 14px;
  }

  .source-page-thumbnail {
    width: 108px;
  }

  .source-page-thumbnail img {
    height: 116px;
  }

  .newspaper-transcript-panel .section-heading,
  .newspaper-image-panel .section-heading {
    grid-template-columns: 1fr;
  }

  .newspaper-asset-card img {
    max-height: none;
  }

  .archive-reading {
    max-width: 100%;
    font-size: 1.02rem;
    line-height: 1.72;
  }

  .fb-recreated-post {
    grid-template-columns: 1fr;
  }

  .fb-media-stage {
    min-height: auto;
    padding: 0;
  }

  .fb-stage-photo-primary img {
    max-height: none;
  }

  .fb-post-sidebar {
    max-height: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .fb-original-post-card,
  .fb-recreated-comments {
    padding: 14px;
  }

  .fb-comment-thread-recreated .fb-comment-children {
    margin-left: 18px;
  }
}

@media (max-width: 760px) {
  .status-page-lede,
  .status-section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .status-section-note {
    max-width: none;
    text-align: left;
  }

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

  .status-brief-strip p:nth-child(2n) {
    border-right: 0;
  }

  .status-table-wrap {
    overflow-x: visible;
    border-top: 0;
  }

  .status-table,
  .status-table-todo,
  .status-newspaper-table {
    min-width: 0;
  }

  .status-table thead {
    display: none;
  }

  .status-table,
  .status-table tbody,
  .status-table tr,
  .status-table td {
    display: block;
    width: 100% !important;
  }

  .status-table tr {
    padding: 12px 0;
    border-top: 1px solid rgba(22, 50, 68, 0.14);
  }

  .status-table td {
    display: grid;
    grid-template-columns: minmax(7.5rem, 36%) minmax(0, 1fr);
    gap: 12px;
    padding: 7px 0;
    border-bottom: 0;
  }

  .status-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .status-inline-list li {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .status-inline-list strong {
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .status-brief-strip {
    grid-template-columns: 1fr;
  }

  .status-brief-strip p {
    border-right: 0;
  }

  .status-table td {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Shared dark-theme surface normalization. Keep this last so every route,
   including admin, OCR, article, and comparison views, inherits it. */
:root[data-theme="dark"] {
  color-scheme: dark;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select {
  border-color: var(--line);
  background: #202932;
  color: var(--ink);
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #91a4b0;
  opacity: 1;
}

:root[data-theme="dark"] select option {
  background: #202932;
  color: var(--ink);
}

:root[data-theme="dark"] .archive-warning {
  border-color: rgba(240, 181, 91, 0.34);
  background: rgba(126, 88, 28, 0.22);
}

:root[data-theme="dark"] .archive-table-wrap,
:root[data-theme="dark"] .status-table-wrap,
:root[data-theme="dark"] .research-publication-table,
:root[data-theme="dark"] .research-facts-table,
:root[data-theme="dark"] .publication-mini-table,
:root[data-theme="dark"] .facebook-movie-table {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] :is(
  .archive-table,
  .status-table,
  .research-publication-table,
  .research-facts-table,
  .publication-mini-table,
  .facebook-movie-table
) :is(th, td) {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

:root[data-theme="dark"] :is(
  .archive-table,
  .status-table,
  .research-publication-table,
  .research-facts-table,
  .publication-mini-table,
  .facebook-movie-table
) th {
  color: var(--muted);
}

:root[data-theme="dark"] :is(
  .record-card,
  .candidate-card,
  .asset-card,
  .component-item,
  .component-quoted_post,
  .interaction-item,
  .fb-check-card,
  .movie-review-choice-card,
  .source-page-thumbnail,
  .newspaper-image-panel,
  .newspaper-layout-render,
  .newspaper-raw-ocr-evidence,
  .ocr-raw-text,
  .status-brief-strip,
  .status-process-row,
  .status-todo-row,
  .research-candidate-row
) {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
}

:root[data-theme="dark"] .component-quoted_post {
  background: rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] .asset-missing-image,
:root[data-theme="dark"] .movie-poster-frame,
:root[data-theme="dark"] .newspaper-continuation-cue {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

:root[data-theme="dark"] .newspaper-partial-notice,
:root[data-theme="dark"] .newspaper-continuation-warning {
  border-color: rgba(240, 181, 91, 0.34);
  background: rgba(126, 88, 28, 0.2);
  color: var(--ink);
}

:root[data-theme="dark"] .newspaper-raw-ocr-evidence summary,
:root[data-theme="dark"] .source-page-thumbnail span,
:root[data-theme="dark"] .research-candidate-row h4,
:root[data-theme="dark"] .status-section-header h2,
:root[data-theme="dark"] .status-page-lede h2 {
  color: var(--ink);
}

:root[data-theme="dark"] .source-page-dialog {
  border-color: var(--line);
  background: #11171c;
  color: var(--ink);
}

:root[data-theme="dark"] .source-page-dialog-toolbar {
  border-color: var(--line);
  background: #1a2229;
}

:root[data-theme="dark"] .source-page-dialog-image-wrap {
  background: #090d10;
}

:root[data-theme="dark"] .progress-track {
  background: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .facebook-movie-list-row:hover,
:root[data-theme="dark"] .movie-view-button,
:root[data-theme="dark"] .movie-sort-link {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.075);
  color: var(--ink);
}

:root[data-theme="dark"] .movie-view-button.active,
:root[data-theme="dark"] .movie-sort-link.active {
  border-color: rgba(240, 161, 93, 0.48);
  background: rgba(240, 161, 93, 0.14);
  color: var(--accent-deep);
}

:root[data-theme="dark"] .status-table tr,
:root[data-theme="dark"] .research-candidate-row,
:root[data-theme="dark"] .publication-entry,
:root[data-theme="dark"] .publication-glossary dl > div,
:root[data-theme="dark"] .publication-report-glossary dl > div {
  border-color: var(--line);
}
