:root {
  color-scheme: dark;
  --black: #000000;
  --white: #d8e7d8;
  --muted: #78927b;
  --line: #1d3421;
  --line-bright: #36553a;
  --signal: #9bd876;
  --account-accent: #d6ad45;
  --header-search-width: 190px;
  --forum-button-width: 62px;
  --top-tools-gap: 8px;
  --ai-search-width: calc(var(--forum-button-width) + var(--header-search-width) + var(--top-tools-gap));
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --typewriter: "Courier Prime", "Courier New", monospace;
}

#music-download-notice { display: block; color: var(--signal); font: 10px var(--mono); }
#music-download-notice[hidden] { display: none; }
.download-notice-active .download-arrow { display: inline-block; animation: download-arrow-drop 0.8s ease-in-out 2; }
@keyframes download-arrow-drop { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .download-notice-active .download-arrow { animation: none; } }

* {
  box-sizing: border-box;
}

.site-header-frame {
  overflow: hidden;
  background: transparent;
  color-scheme: normal;
}

.site-header-frame body {
  overflow: visible;
  background: transparent;
  color-scheme: dark;
}

html.site-header-frame.site-constrained-header {
  overflow-y: auto;
}

.site-header-frame.site-constrained-header body {
  overflow: visible;
}

.site-header-frame body > main,
.site-header-frame body > .footer,
.site-header-frame body > .skip-link {
  display: none;
}

.site-content-frame body > .topbar,
.site-content-frame body > .topbar-tools,
.site-content-frame body > .gathered-row,
.site-content-frame body > .collection-nav {
  display: none;
}

.site-content-frame {
  scroll-padding-top: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

html.home-page {
  scroll-padding-top: 250px;
}

html.site-content-frame,
html.home-page.site-content-frame {
  scroll-padding-top: 0;
}

.site-header-frame .topbar,
.site-header-frame .collection-nav {
  position: relative;
  top: auto;
}

.site-header-frame .topbar {
  margin-top: 0;
  transition: margin-top 280ms ease, visibility 0s;
}

.site-header-frame.site-topbar-hidden .topbar {
  margin-top: calc(0px - var(--site-topbar-height, 0px));
  visibility: hidden;
  transition: margin-top 280ms ease, visibility 0s linear 280ms;
}

.site-header-frame.site-media-viewing .collection-nav {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header-frame .topbar,
  .site-header-frame.site-topbar-hidden .topbar {
    transition: none;
  }
}

.site-header-frame.site-media-viewing .gathered-row {
  margin-bottom: 0;
}

.site-header-frame.site-compact-header .gathered-section {
  display: none;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
input:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--black);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 5.2%;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.96);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.wordmark,
.topbar-right,
.topbar-meta,
.topbar-tools,
.gathered-tools,
.header-search,
.system-status {
  display: flex;
  align-items: center;
}

.wordmark {
  gap: 11px;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-bright);
  color: var(--signal);
  font-size: 15px;
}

.wordmark-divider,
.footer-mark span {
  color: var(--muted);
}

.gathered-stack {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.gathered-section {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 12px 18px 16px;
  border: 2px solid #6b9e70;
  background: #020702;
  cursor: text;
  -webkit-user-select: text;
  user-select: text;
}

.gathered-section ::selection {
  background: var(--signal);
  color: var(--black);
}

.gathered-label {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.gathered-label span {
  padding: 0 5px;
  color: var(--signal);
}

.gathered-section h2 {
  display: inline-block;
  margin: 0;
  padding: 2px 5px;
  margin-left: -5px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.25;
  cursor: text;
  transition: background-color 140ms ease, color 140ms ease;
}

.gathered-section h2 em {
  font-style: italic;
}

@media (hover: hover) {
  .gathered-section h2:hover {
    background: var(--signal);
    color: var(--black);
  }

  .gathered-section h2:hover .gathered-pixel {
    color: var(--black);
  }
}

.gathered-pixel {
  color: var(--signal);
  font-family: "Silkscreen", var(--mono);
  font-size: 0.78em;
  font-style: normal;
  letter-spacing: -0.07em;
  vertical-align: 0.02em;
}

.quick-note-form {
  position: relative;
  overflow: hidden;
  border: 1px solid #6b9e70;
  background: #020702;
}

.quick-note-form label {
  color: var(--signal);
  font: 9px var(--mono);
  letter-spacing: .08em;
}

.quick-note-form textarea {
  min-width: 0;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  background: #030904;
  color: var(--white);
  font: 11px/1.4 var(--typewriter);
}

.quick-note-form button {
  position: relative;
  padding: 5px 8px;
  border: 1px solid var(--line-bright);
  background: #112416;
  color: var(--signal);
  font: 9px var(--mono);
  cursor: pointer;
}

.quick-note-form button:disabled {
  opacity: .5;
  cursor: default;
}

.quick-note-form button[type="submit"]::before {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 32px;
  background: url("assets/quick-note-rocket.svg") center / contain no-repeat;
  content: "";
  image-rendering: pixelated;
  opacity: 0;
  pointer-events: none;
}

.quick-note-form.is-launching button[type="submit"]::before {
  animation: quick-note-rocket 850ms steps(16, end);
}

.quick-note-workspace {
  --rocket-start-x: -50%;
  --rocket-start-y: -85px;
  --rocket-angle: 90deg;
}

@keyframes quick-note-rocket {
  0% {
    opacity: 1;
    transform: translate(var(--rocket-start-x, -120px), var(--rocket-start-y, -50%)) rotate(var(--rocket-angle, 0deg));
  }
  75% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--rocket-angle, 0deg)) scale(.5);
  }
}

.quick-note-form .quick-note-signup {
  color: var(--signal);
  font: 8px var(--mono);
}

.quick-note-form .quick-note-signup[hidden] {
  display: none;
}

.quick-note-header {
  padding: 5px 7px;
}

.quick-note-heading,
.quick-note-input-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quick-note-heading {
  justify-content: space-between;
  margin-bottom: 4px;
}

.quick-note-header textarea {
  flex: 1;
  width: 0;
  height: 28px;
  padding: 5px;
  resize: none;
}

.quick-note-header button {
  min-height: 28px;
}

.quick-note-status {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font: 9px/1.35 var(--mono);
}

.quick-note-target {
  display: block;
  margin-top: 3px;
  color: var(--signal);
  font: 9px/1.35 var(--mono);
  overflow-wrap: anywhere;
}

.quick-note-target[hidden] {
  display: none;
}

.quick-note-status:empty {
  display: none;
}

.quick-note-status[data-state="success"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.quick-note-form textarea[data-saved-confirmation]::placeholder {
  color: var(--signal);
  opacity: 1;
}

.quick-note-status[data-state="error"],
#quick-notes-list-status[data-state="error"] {
  color: #e6a184;
}

.quick-note-form::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid transparent;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.quick-note-form.is-saved::after {
  animation: quick-note-transmit 900ms ease-out;
}

@keyframes quick-note-transmit {
  0% { opacity: 0; transform: scaleX(.15); border-color: #c9ffd3; box-shadow: inset 0 0 20px #83ffb3; }
  28% { opacity: 1; transform: scaleX(1); border-color: #c9ffd3; box-shadow: inset 0 0 20px #83ffb3, 0 0 18px #65e9ad; }
  100% { opacity: 0; transform: scaleX(1); border-color: #74d9bd; box-shadow: inset 0 0 2px #74d9bd; }
}

@media (prefers-reduced-motion: reduce) {
  .quick-note-form.is-saved::after,
  .quick-note-form.is-launching button[type="submit"]::before {
    animation: none;
  }
}

.topbar-meta {
  gap: 29px;
  justify-content: flex-end;
  color: #b3c9b2;
}

.topbar-right {
  display: flex;
  justify-content: flex-end;
}

.topbar-tools {
  display: flex;
  min-height: 44px;
  align-items: flex-end;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 7px 5.2%;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.96);
}

.gathered-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: start;
  gap: 20px;
  margin: 14px 5.2%;
}

.matrix-stack {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  min-width: 0;
}

.matrix-panel {
  --matrix-border-gradient: linear-gradient(110deg, #805aab, #477eab, #4a9aac, #4c9a91, #6c9c60, #a5ae59, #c8b75b, #b45b58);
  position: relative;
  min-width: 0;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: linear-gradient(145deg, #1d2c20, #081109 48%, #121e14) padding-box,
    var(--matrix-border-gradient) border-box;
}

.matrix-panel::before {
  position: absolute;
  inset: -1px;
  padding: 1.05px;
  border-radius: inherit;
  background: var(--matrix-border-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  content: "";
  pointer-events: none;
}

.matrix-screen-shell {
  position: relative;
  overflow: hidden;
  margin-bottom: 6px;
  border-radius: 3px;
}

#matrix-notifications {
  position: absolute;
  right: 7px;
  bottom: 4px;
  left: 7px;
  overflow: hidden;
  color: #a4c99d;
  font: 8px/1.2 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matrix-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
}

.music-personal-actions {
  display: flex;
  flex: 1;
  gap: 4px;
  margin-top: 3px;
}

.matrix-transport {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
}

#music-volume {
  width: clamp(32px, 12vw, 64px);
  height: 18px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

#music-volume::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: #52754d;
}

#music-volume::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-radius: 50%;
  appearance: none;
  background: var(--signal);
}

#music-volume::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: #52754d;
}

#music-volume::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--signal);
}

#music-volume:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 2px;
}

.matrix-controls {
  display: flex;
  flex: none;
  gap: 3px;
}

.matrix-panel button,
.music-personal-actions button {
  display: grid;
  min-width: 22px;
  min-height: 20px;
  place-items: center;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(#1b2c1e, #0b130d);
  color: var(--muted);
  font: 8px var(--mono);
  cursor: pointer;
}

.matrix-transport .matrix-controls button {
  border-color: #83aa78;
}

#music-favorite {
  color: #b6ceb8;
  font-size: 12px;
}

#music-favorite[aria-pressed="true"] {
  color: var(--signal);
}

.matrix-panel button:disabled,
.music-personal-actions button:disabled {
  cursor: default;
  opacity: .5;
}

.matrix-panel button:hover,
.matrix-panel button:focus-visible,
.music-personal-actions button:focus-visible {
  border-color: var(--signal);
  color: var(--signal);
}

.matrix-panel button:focus-visible,
.music-personal-actions button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.music-personal-actions button {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 26px;
  border: 2px solid #6b9e70;
  border-radius: 0;
  background: #020702;
  color: #e8eee8;
  font: 10px var(--mono);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.music-personal-actions button::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(220, 255, 202, .32), transparent);
  content: "";
  pointer-events: none;
  transform: translateX(-120%) skewX(-20deg);
}

.music-personal-actions button:hover::after {
  animation: music-button-shine 1.2s ease-in-out infinite;
}

.music-personal-actions button:active {
  transform: translateY(1px) scale(.98);
  box-shadow: inset 0 0 12px rgba(155, 216, 118, .2);
}

@keyframes music-button-shine {
  0% { transform: translateX(-120%) skewX(-20deg); }
  60%, 100% { transform: translateX(450%) skewX(-20deg); }
}

@media (prefers-reduced-motion: reduce) {
  .music-personal-actions button {
    transition: none;
  }

  .music-personal-actions button:active {
    transform: none;
  }

  .music-personal-actions button::after {
    display: none;
  }
}

.music-personal-actions button canvas {
  position: absolute;
  left: 5px;
  width: calc(100% - 10px);
  height: 14px;
  image-rendering: pixelated;
  pointer-events: none;
}

.music-personal-actions button.music-pixel-ready span {
  opacity: 0;
}

#matrix-screen {
  display: block;
  width: 100%;
  height: 72px;
  margin: 0;
  border: 2px solid #52754d;
  background: #061108;
  image-rendering: pixelated;
}

.matrix-current-box {
  position: relative;
  flex: 1;
  min-width: 0;
  border: 1px solid #52754d;
  border-radius: 3px;
  background: #061108;
}

#matrix-current {
  display: block;
  overflow: hidden;
  height: 18px;
  padding: 2px 4px;
  color: #b6ceb8;
  font: 9px/1.4 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#matrix-current.matrix-pixel-ready {
  color: transparent;
}

#matrix-current-screen {
  position: absolute;
  top: 2px;
  left: 4px;
  display: none;
  width: calc(100% - 8px);
  height: 14px;
  image-rendering: pixelated;
  pointer-events: none;
}

#matrix-current.matrix-pixel-ready + #matrix-current-screen {
  display: block;
}

#music-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#music-status.music-status-message {
  inset: 0;
  width: auto;
  height: auto;
  padding: 2px 4px;
  background: #0b1c0d;
  color: #b6ceb8;
  clip-path: none;
  font: 9px/1.4 var(--mono);
  pointer-events: none;
  text-overflow: ellipsis;
}

#music-start {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  min-height: 0;
  padding: 1px 4px;
  border: 0;
  border-radius: 0;
  background: #0b1c0d;
  color: #d7edc7;
  font: 9px var(--mono);
}

#music-start[hidden] {
  display: none;
}

#music-details,
.music-personal-dialog {
  max-width: min(420px, 90vw);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid #52754d;
  border-radius: 4px;
  background: #081109;
  color: #b6ceb8;
  font: 11px/1.5 var(--mono);
}

#music-details::backdrop,
.music-personal-dialog::backdrop {
  background: rgba(0, 0, 0, .75);
}

#music-details h2,
.music-personal-dialog h2 {
  font: 12px var(--mono);
}

#music-details a,
.music-personal-dialog a {
  margin-right: 12px;
  text-decoration: underline;
}

.music-personal-dialog input {
  display: block;
  width: 100%;
  margin: 6px 0;
  color: #b6ceb8;
  background: #061108;
  border: 1px solid #52754d;
  font: inherit;
}

.music-personal-dialog button {
  margin: 4px 4px 4px 0;
}

.music-library {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid #52754d;
}

.music-library-search {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid #36553a;
  background: #0b160d;
  color: #d6ecd8;
  font: 11px/1.4 var(--mono);
}

.music-library-search:focus {
  border-color: var(--signal);
  outline: none;
}

.music-library-tracks [hidden] {
  display: none;
}

.music-library-tracks {
  max-height: min(38vh, 260px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #36553a;
}

.music-library-tracks h3 {
  margin: 0;
  padding: 8px;
  color: var(--signal);
  font: 10px/1.4 var(--mono);
}

.music-library-tracks button {
  display: block;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-top: 1px solid #1d3421;
  background: transparent;
  color: #b6ceb8;
  cursor: pointer;
  font: 10px/1.4 var(--mono);
  text-align: left;
}

.music-library-tracks button:hover,
.music-library-tracks button:focus-visible {
  background: #19321c;
}

#music-library-retry[hidden] {
  display: none;
}

.gathered-tools {
  align-items: flex-end;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  max-width: 100%;
}

.top-tools-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: var(--top-tools-gap);
}

.forum-button {
  display: inline-flex;
  min-width: var(--forum-button-width);
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line-bright);
  color: var(--signal);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.header-search {
  width: var(--header-search-width);
  height: 28px;
  border: 1px solid var(--line-bright);
}

.header-search:focus-within {
  border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
}

.header-search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: 8px var(--mono);
  letter-spacing: 0.05em;
}

.header-search input::placeholder {
  color: var(--muted);
}

.header-search input:focus-visible {
  outline: 0;
}

.header-search button {
  display: grid;
  width: 30px;
  height: 100%;
  flex: 0 0 30px;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--signal);
  cursor: pointer;
  font: 16px var(--mono);
}

.ai-search {
  display: flex;
  width: var(--ai-search-width);
  max-width: 100%;
  height: 44px;
  align-items: center;
  border: 1px solid var(--line-bright);
  background: #020702;
}

.ai-search:focus-within {
  border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
}

.ai-search-label {
  display: flex;
  height: 100%;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 9px;
  border-right: 1px solid var(--line);
  color: var(--signal);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.ai-search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: 8px var(--mono);
}

.ai-search input::placeholder {
  color: var(--muted);
}

.ai-search input:focus-visible {
  outline: 0;
}

.ai-search button {
  display: grid;
  width: 30px;
  height: 100%;
  flex: 0 0 30px;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--signal);
  cursor: pointer;
  font: 14px var(--mono);
}

.ai-search-response {
  margin: 0 5.2% 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-bright);
  background: #020702;
}

.ai-search-response-status {
  margin: 0;
  color: var(--signal);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.ai-search-response[data-state="error"] .ai-search-response-status {
  color: #d3a077;
}

.ai-search-response-status a {
  color: var(--signal);
  text-decoration: underline;
}

.ai-search-response-answer {
  margin: 8px 0 0;
  color: var(--white);
  font-family: var(--typewriter);
  font-size: 12px;
  white-space: pre-wrap;
}

.ai-search-result-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ai-search-result {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.ai-search-result a {
  width: fit-content;
  color: var(--signal);
  font-size: 10px;
}

.ai-search-result a:hover {
  text-decoration: underline;
}

.ai-search-result p {
  margin: 0;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 11px;
}

.ai-search-response-note {
  margin: 12px 0 0;
  color: #58705b;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.account-links {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--account-accent);
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.account-action {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.account-menu {
  position: relative;
}

.account-profile-toggle,
.account-notification-toggle {
  display: grid;
  min-width: 32px;
  min-height: 32px;
  place-items: center;
  cursor: pointer;
  list-style: none;
}

.account-profile-toggle::-webkit-details-marker,
.account-notification-toggle::-webkit-details-marker {
  display: none;
}

.account-profile-toggle::marker,
.account-notification-toggle::marker {
  content: "";
}

.account-notification-toggle {
  position: relative;
}

.account-notification-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.5;
}

.account-settings-icon {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
  min-width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  line-height: 1;
  text-decoration: none;
}

.account-notification-toggle:hover,
.account-notification-toggle:focus-visible,
.account-profile-toggle:hover,
.account-profile-toggle:focus-visible {
  color: #f4d781;
}

.account-menu-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: 200px;
  padding: 8px;
  border: 1px solid var(--line-bright);
  background: #080e08;
  box-shadow: 0 8px 20px #000b;
  white-space: normal;
}

.account-menu-panel a,
.notification-item {
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--white);
  font: 10px var(--mono);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu-panel a:hover,
.account-menu-panel a:focus-visible,
.notification-item:hover,
.notification-item:focus-visible {
  background: #192419;
  color: var(--signal);
}

.notification-panel {
  width: min(320px, 85vw);
}

.notification-list {
  max-height: 320px;
  overflow-y: auto;
}

.notification-status {
  margin: 4px 10px 8px;
  color: var(--muted);
  font-size: 8px;
}

.notification-item {
  line-height: 1.5;
}

.notification-item.is-unread {
  border-left: 2px solid var(--signal);
}

.notification-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  padding: 2px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--black);
  font: 8px var(--mono);
  text-align: center;
}

#profile-heading,
#favorites-heading,
#saved-list-heading {
  scroll-margin-top: 105px;
}

.account-header-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  overflow: hidden;
  place-items: center;
  border: 1px solid currentColor;
  background: #192419;
  text-decoration: none;
}

.account-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-action:hover,
.account-action:focus-visible {
  color: #f4d781;
  text-shadow:
    0 0 4px rgba(214, 173, 69, 0.85),
    0 0 12px rgba(214, 173, 69, 0.65),
    0 0 20px rgba(214, 173, 69, 0.35);
}

.account-divider {
  color: var(--account-accent);
}

.system-status {
  gap: 8px;
}

.archive-document-count {
  color: #d3b779;
  font-size: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.archive-document-count[data-state="error"],
.archive-document-count[data-state="partial"] {
  color: #e7a19a;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 9px rgba(215, 255, 66, 0.45);
}

.utc-clock {
  min-width: 90px;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 5.2%;
}

#main-content {
  margin-top: -99px;
}

.home-page #main-content {
  max-width: none;
  margin-top: 0;
  padding-right: 0;
  padding-left: 0;
}

.intro {
  position: relative;
  display: grid;
  zoom: 0.8;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.65fr) minmax(260px, 0.9fr);
  min-height: 415px;
  align-items: center;
  gap: 18px;
  padding: 36px 16px 86px;
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  min-width: 0;
}

.intro-illustration {
  display: block;
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(9px);
  cursor: pointer;
}

.live-news-tv {
  min-width: 0;
  padding: 12px;
  border: 2.5px solid var(--line-bright);
  background: #080d09;
}

.live-news-header,
.live-news-controls { position: relative; }
.live-news-visitor { position: absolute; right: 6px; bottom: 2px; width: 44px; height: 44px; pointer-events: none; image-rendering: -moz-crisp-edges; image-rendering: pixelated; opacity: 0; -webkit-transform: translateX(150%); transform: translateX(150%); -webkit-transition: transform 1.6s ease-in-out, opacity .4s; transition: transform 1.6s ease-in-out, opacity .4s; }
.matrix-bottom { position: relative; }
.live-news-visitor.is-music { right: 2px; bottom: auto; top: -30px; width: 36px; height: 36px; }
.live-news-visitor.is-here { opacity: 1; -webkit-transform: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .live-news-visitor { transition: none; } }
.live-news-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.live-news-header {
  margin-bottom: 10px;
  color: var(--muted);
  font: 9px var(--mono);
}

.live-news-header h2 {
  margin: 0;
  color: var(--white);
  font: 600 11px var(--mono);
}

.live-news-screen {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  background: #020503;
}

.live-news-screen iframe,
.live-news-screen video {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.live-news-placeholder {
  padding: 12px;
  color: var(--signal);
  font: 11px var(--mono);
  text-align: center;
}

.live-news-controls {
  margin-top: 10px;
  color: var(--muted);
  font: 9px var(--mono);
}

.live-news-controls select {
  min-width: 0;
  padding: 6px;
  border: 1px solid var(--line-bright);
  background: #080d09;
  color: var(--white);
  font: 10px var(--mono);
}

.live-news-tv p {
  margin: 9px 0 0;
  color: var(--muted);
  font: 9px/1.5 var(--mono);
}

.live-news-tv a { color: var(--signal); }

.intro-illustration:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.intro-illustration img,
.elephant-wink {
  display: block;
  width: 100%;
  height: 100%;
}

.elephant-wink {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.intro-illustration.is-winking .elephant-wink {
  animation: elephant-wink 850ms ease-in-out;
}

@keyframes elephant-wink {
  0%, 100% { opacity: 0; }
  20%, 75% { opacity: 1; }
}

.eyebrow {
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.intro .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--signal);
}

.eyebrow-rule {
  width: 28px;
  height: 1px;
  background: var(--line-bright);
}

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

h1 {
  margin-bottom: 19px;
  font-family: var(--typewriter);
  font-size: clamp(52px, 8.3vw, 104px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.91;
}

h1 span {
  color: var(--signal);
}

.intro .intro-title {
  font-size: clamp(36px, 4.3vw, 60px);
  line-height: 1;
}

.intro-title > span {
  display: block;
  margin-top: 0.16em;
  font-size: 0.48em;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.intro-description {
  max-width: 620px;
  margin-bottom: 0;
  color: #a6c0a7;
  font-family: var(--typewriter);
  font-size: 12.5px;
  line-height: 1.6;
}

.intro-description + .intro-description {
  margin-top: 12px;
}

.intro-disclaimer {
  color: #879d89;
  font-size: 11.5px;
}

.access-stamp {
  display: flex;
  width: 190px;
  min-height: 116px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line-bright);
  transform: rotate(2deg);
  text-align: center;
}

.stamp-top,
.stamp-bottom {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.stamp-value {
  color: var(--signal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.intro-index {
  position: absolute;
  right: 0;
  bottom: 17px;
  color: #58705b;
  font-size: 8px;
  line-height: 1.8;
  text-align: right;
}

.collection-nav {
  position: sticky;
  z-index: 2;
  top: 88px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 0 5.2%;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: rgba(0, 0, 0, 0.96);
}

.collection-dropdown {
  position: relative;
  min-width: 0;
  z-index: 1;
}

.collection-dropdown:hover,
.collection-dropdown:focus-within {
  z-index: 4;
}

.collection-dropdown[open] {
  z-index: 6;
}

.collection-link {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 66px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px 14px;
  border-right: 1px solid var(--line);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.collection-dropdown > summary {
  cursor: pointer;
  list-style: none;
}

.collection-dropdown > summary::-webkit-details-marker,
.collection-submenu > summary::-webkit-details-marker {
  display: none;
}

.collection-dropdown > summary::marker,
.collection-submenu > summary::marker {
  content: "";
}

.collection-dropdown > .collection-link {
  border-left: 1px solid var(--line);
}

.collection-link:hover,
.collection-link:focus-visible,
.collection-dropdown[open] > .collection-link {
  background: #061007;
  box-shadow: 0 0 10px rgba(215, 255, 66, 0.35), 0 0 22px rgba(215, 255, 66, 0.16);
}

.collection-disclosure {
  position: absolute;
  top: 8px;
  right: 9px;
  color: var(--signal);
  font-size: 12px;
}

.collection-title {
  position: relative;
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  overflow: hidden;
  color: var(--signal);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.collection-dropdown:hover > .collection-link .collection-title,
.collection-dropdown:focus-within > .collection-link .collection-title,
.collection-dropdown[open] > .collection-link .collection-title,
.collection-videos-link:hover .collection-title,
.collection-videos-link:focus-visible .collection-title {
  background-color: var(--signal);
  color: var(--black);
}

.collection-title::after {
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -70%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(134, 184, 42, 0.85), rgba(235, 255, 155, 0.9), rgba(134, 184, 42, 0.85), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-22deg);
  opacity: 0;
}

.collection-dropdown:hover > .collection-link .collection-title::after,
.collection-dropdown:focus-within > .collection-link .collection-title::after,
.collection-dropdown[open] > .collection-link .collection-title::after,
.collection-videos-link:hover .collection-title::after,
.collection-videos-link:focus-visible .collection-title::after {
  animation: button-shine-sweep 650ms ease-out forwards;
  opacity: 1;
}

.collection-description {
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.025em;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.collection-link:hover .collection-description {
  color: var(--white);
}

.document-submit-section {
  display: flex;
  justify-content: flex-end;
}

.document-submit-button {
  position: relative;
  overflow: hidden;
  zoom: 0.7;
  width: min(100%, 161px);
  min-height: 42px;
  padding: 6px 12px;
  border: 4px solid #c7a134;
  background: linear-gradient(110deg, #9b791b 0%, #c49b2b 18%, #e7cd60 36%, #b78a20 55%, #f0d978 77%, #a67d1b 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 0 1px rgba(238, 210, 112, 0.45), 0 0 16px rgba(195, 153, 38, 0.22);
  color: #080700;
  cursor: pointer;
  font: 700 10px var(--mono);
  letter-spacing: 0.07em;
  transition: background-position 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.document-submit-button::after,
.donate-button::after {
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -70%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-22deg);
  opacity: 0;
}

.document-submit-button:hover::after,
.document-submit-button:focus-visible::after,
.donate-button:hover::after {
  animation: button-shine-sweep 650ms ease-out forwards;
  opacity: 1;
}

.document-submit-button:hover {
  background-position: 100% 50%;
  box-shadow: 0 0 0 2px rgba(238, 210, 112, 0.55), 0 0 22px rgba(195, 153, 38, 0.35);
  filter: brightness(1.08);
}

@keyframes button-shine-sweep {
  to {
    left: 130%;
  }
}

.document-submit-button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.collection-menu-panel {
  position: absolute;
  z-index: 5;
  top: 100%;
  left: 0;
  width: min(560px, calc(100vw - 10.4%));
  max-height: min(72vh, 650px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px 14px;
  border: 1px solid var(--line-bright);
  background: #000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.collection-journalism-dropdown > .collection-menu-panel,
.collection-industry-dropdown > .collection-menu-panel {
  right: 0;
  left: auto;
}

.collection-panel-label {
  margin: 3px 0 7px;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.collection-submenu {
  border-bottom: 1px solid var(--line);
}

.collection-submenu > summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  color: var(--signal);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.collection-submenu > summary::after {
  content: "+";
  color: var(--muted);
  font-size: 13px;
}

.collection-submenu[open] > summary::after {
  content: "−";
}

.collection-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
  padding: 4px 0 10px;
}

.agency-options {
  grid-template-columns: 1fr;
  max-height: min(40vh, 300px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-bright) var(--black);
  scrollbar-width: thin;
}

.collection-menu-panel,
.agency-options {
  scrollbar-gutter: stable;
}

.collection-menu-panel::-webkit-scrollbar,
.agency-options::-webkit-scrollbar {
  width: 8px;
  transition: width 180ms ease;
}

.collection-menu-panel::-webkit-scrollbar-thumb,
.agency-options::-webkit-scrollbar-thumb {
  background: var(--line-bright);
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color 180ms ease, box-shadow 180ms ease, border-width 180ms ease;
}

.collection-menu-panel.scroll-edge-top,
.collection-menu-panel.scroll-edge-bottom,
.agency-options.scroll-edge-top,
.agency-options.scroll-edge-bottom {
  scrollbar-color: var(--signal) var(--black);
}

.collection-menu-panel.scroll-edge-top::-webkit-scrollbar,
.collection-menu-panel.scroll-edge-bottom::-webkit-scrollbar,
.agency-options.scroll-edge-top::-webkit-scrollbar,
.agency-options.scroll-edge-bottom::-webkit-scrollbar {
  width: 12px;
}

.collection-menu-panel.scroll-edge-top::-webkit-scrollbar-thumb,
.collection-menu-panel.scroll-edge-bottom::-webkit-scrollbar-thumb,
.agency-options.scroll-edge-top::-webkit-scrollbar-thumb,
.agency-options.scroll-edge-bottom::-webkit-scrollbar-thumb {
  background: var(--signal);
  border-width: 1px;
  box-shadow: 0 0 8px var(--signal);
}

.collection-option {
  display: block;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  line-height: 1.45;
  transition: background-color 120ms ease, color 120ms ease;
}

.collection-option:hover,
.collection-option:focus-visible {
  background: var(--signal);
  color: var(--black);
}

.interesting-topics {
  padding: 73px clamp(16px, 2vw, 28px) 78px;
  border-bottom: 1px solid var(--line);
}

.interesting-topics .eyebrow,
.records-header .eyebrow,
.protocol-section .eyebrow {
  margin-bottom: 23px;
}

.breaking-news {
  padding: 66px clamp(16px, 2vw, 28px) 70px;
  border-bottom: 1px solid var(--line);
}

.breaking-news-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.breaking-news-heading .eyebrow {
  margin-bottom: 18px;
}

.breaking-news-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: #e6a95b;
}

.breaking-news-refresh {
  padding: 10px 14px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--signal);
  cursor: pointer;
  font: 10px var(--mono);
}

.breaking-news-refresh:hover,
.breaking-news-refresh:focus-visible {
  border-color: var(--signal);
  outline-color: var(--signal);
}

.breaking-news-refresh:disabled {
  cursor: wait;
  opacity: .6;
}

.breaking-news-intro {
  max-width: 860px;
  color: #b6ceb8;
  font: 13px/1.6 var(--typewriter);
}

.breaking-news-intro {
  margin: 15px 0 0;
}

.breaking-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 12px;
}

.breaking-news-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  background: #080d09;
}

.breaking-news-meta {
  margin: 0 0 12px;
  color: var(--signal);
  font: 10px/1.5 var(--mono);
  text-transform: uppercase;
}

.breaking-news-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
  font-size: 10px;
}

.breaking-news-sources a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.additional-news-heading {
  margin: 32px 0 0;
  color: var(--white);
}

.additional-news-grid {
  margin-top: 16px;
}

.additional-news-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.additional-news-list a {
  color: var(--white);
  overflow-wrap: anywhere;
}

.additional-news-byline {
  margin: 5px 0 0;
  color: var(--muted);
  font: 10px/1.5 var(--mono);
}

.topics-intro {
  margin: 12px 0 0;
  color: #b6ceb8;
  font: 13px var(--typewriter);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.topics-marquee {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.topics-row {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-color: var(--line-bright) var(--black);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.topics-row::-webkit-scrollbar { height: 8px; }
.topics-row::-webkit-scrollbar-track { background: var(--black); }
.topics-row::-webkit-scrollbar-thumb { background: var(--line-bright); }

.topics-track {
  display: flex;
  gap: 14px;
  width: max-content;
}

.topics-track .topic-card {
  flex: 0 0 clamp(138px, 13vw, 190px);
}

.topic-art-world-maps {
  background-image: url("assets/document-covers/maps-ortelius-world-map-1572.png");
  background-size: cover;
  background-position: center;
}

.topic-card {
  display: block;
  min-width: 0;
  border: 1px solid var(--line);
  background: #080d09;
  color: var(--white);
  text-decoration: none;
}

.topic-card:hover,
.topic-card:focus-visible {
  border-color: var(--signal);
  outline-color: var(--signal);
}

.topic-art {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-image: url("assets/interesting-topics-anime.jpg");
  background-size: 500% auto;
  background-position: var(--topic-x) var(--topic-y);
  background-repeat: no-repeat;
  filter: grayscale(1) sepia(1) saturate(1.7) hue-rotate(var(--topic-hue, 75deg));
}

.topic-art::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%);
  transform: translateX(-120%);
}

.topic-art:hover::after {
  transform: translateX(120%);
  transition: transform .6s ease;
}

@media (prefers-reduced-motion: reduce) {
  .topic-art::after { display: none; }
}

.topic-card:nth-child(3n + 1) .topic-art {
  --topic-hue: 65deg;
}

.topic-card:nth-child(3n + 2) .topic-art {
  --topic-hue: 80deg;
}

.topic-art-jfk {
  background-image: url("assets/topic-jfk.jpg");
  background-size: cover;
  background-position: center;
}

.topic-art-moors {
  background-image: url("assets/topic-moors-anime.jpg");
  background-size: cover;
  background-position: center;
  filter: none;
}

.topic-art-newspapers {
  background-image: url("assets/document-covers/newspapers-new-york-tribune-titanic-1912.png");
  background-size: cover;
  background-position: top center;
}

.topic-art-freemasonry {
  background-image: url("assets/document-covers/freemasonry-mackey-symbolism-1869.png");
  background-size: cover;
  background-position: top center;
}

.topic-art-egregores {
  background-image: url("assets/document-covers/egregore-levi-grand-arcane-1898.png");
  background-size: cover;
  background-position: top center;
}

.topic-art-spacex {
  background-image: url("assets/document-covers/spacex-nasa-commercial-crew-oig-2026.png");
  background-size: cover;
  background-position: top center;
}

.topic-art-space-force {
  background-image: url("assets/document-covers/space-force-spacepower-2020.png");
  background-size: cover;
  background-position: top center;
}

.topic-art-nasa {
  background-image: url("assets/document-covers/nasa-artemis-i-press-kit-2022.png");
  background-size: cover;
  background-position: top center;
}

.topic-art-officials {
  background-image: url("assets/document-covers/officials-blagojevich-2010-juror-names-opinion.png");
  background-size: cover;
  background-position: top center;
}

.topic-art-epstein {
  background-image: url("assets/topic-epstein.png");
  background-size: cover;
  background-position: center;
  filter: none;
}

.topic-art-jim-crow,
.topic-art-black-panthers,
.topic-art-goats,
.topic-art-alchemy,
.topic-art-antarctic,
.topic-art-ocean,
.topic-art-parks,
.topic-art-weather,
.topic-art-tesla,
.topic-art-watchmaking,
.topic-art-music {
  background-size: cover;
  background-position: center;
}

.topic-art-jim-crow {
  background-image: url("assets/document-covers/jim-crow-civil-rights-act-1964.png");
}

.topic-art-black-panthers {
  background-image: url("assets/topic-black-panthers-anime.jpg");
}

.topic-art-goats {
  background-image: url("assets/document-covers/goats-center-lane-briefing.png");
}

.topic-art-alchemy {
  background-image: url("https://archive.org/services/img/AlchemyAncientAndModern");
}

.topic-art-antarctic {
  background-image: url("https://archive.org/services/img/twoyearsinantarc00armi");
}

.topic-art-ocean {
  background-image: url("https://archive.org/services/img/gov.dod.dimoc.25026");
}

.topic-art-parks {
  background-image: url("https://archive.org/services/img/gov.ntis.ava04043vnb1");
}

.topic-art-weather {
  background-image: url("https://archive.org/services/img/gov.ntis.ava01530vnb1");
}

.topic-art-tesla {
  background-image: url("assets/document-covers/tesla-fbi-part-01.png");
}

.topic-art-watchmaking {
  background-image: url("assets/topic-watchmaking-anime.jpg");
}

.topic-art-music {
  background-image: url("assets/document-covers/music-copyright-marketplace-2015.png");
}

.topic-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  overflow-wrap: anywhere;
  font: 13px/1.35 var(--typewriter);
}

.topic-title span {
  color: var(--signal);
}

h2 {
  margin-bottom: 0;
  font-family: var(--typewriter);
  font-size: clamp(27px, 3.2vw, 41px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.text-link span {
  font-size: 14px;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.records-section {
  padding: 70px 0 0;
}

.home-page .records-section {
  padding-inline: clamp(16px, 2vw, 28px);
}

.home-page .support-section {
  margin-inline: clamp(16px, 2vw, 28px);
}

.scripture-carousel {
  padding-top: 0;
}

.scripture-carousel-viewport {
  scrollbar-color: var(--line-bright) var(--black);
  scrollbar-width: thin;
}

.scripture-carousel-viewport::-webkit-scrollbar { height: 8px; }
.scripture-carousel-viewport::-webkit-scrollbar-track { background: var(--black); }
.scripture-carousel-viewport::-webkit-scrollbar-thumb { background: var(--line-bright); }

.scripture-carousel-link {
  display: block;
  color: var(--signal);
  font: 9px var(--mono);
  text-align: right;
}

.scripture-carousel-status {
  color: var(--muted);
  font: 9px var(--mono);
}

.scripture-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  overflow-anchor: none;
  padding-bottom: 10px;
}

.scripture-carousel-viewport:focus-visible {
  outline: 2px solid #b6d59c;
  outline-offset: 3px;
}

.scripture-carousel-track {
  display: flex;
  gap: 9.8px;
}

.scripture-carousel-track > document-card {
  flex: 0 0 clamp(137.275px, 14.45vw, 173.4px);
  --document-cover-ratio: 1;
  --document-pdf-cover-ratio: 1;
}

.records-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.records-header .eyebrow {
  margin-bottom: 13px;
}

.records-header h2 {
  font-size: clamp(31px, 4vw, 48px);
}

.accent {
  color: var(--signal);
}

.record {
  display: grid;
  min-height: 105px;
  grid-template-columns: 85px minmax(0, 1fr) 100px 54px;
  gap: 22px;
  align-items: center;
  border-top: 1px solid var(--line);
  transition: background-color 150ms ease, padding 150ms ease;
}

.record[hidden] {
  display: none;
}

.record:last-of-type {
  border-bottom: 1px solid var(--line);
}

.record:hover {
  padding-right: 10px;
  padding-left: 10px;
  background: #061007;
}

.record-number,
.record-meta span,
.record-type {
  color: #77917a;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.record-number {
  align-self: start;
  padding-top: 28px;
}

.record-type {
  margin: 0 0 6px;
  color: var(--signal);
}

.record-type span {
  padding: 0 5px;
  color: #58705b;
}

.record-info h3 {
  margin: 0;
  font-family: var(--typewriter);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.record-summary {
  margin: 5px 0 0;
  color: #78927b;
  font-family: var(--typewriter);
  font-size: 11px;
}

.record-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
}

.record-meta time {
  color: #bed6bf;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.record-arrow {
  color: #78927b;
  font-size: 14px;
  text-align: right;
}

.record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.record-save {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 15px var(--mono);
}

.record-save:hover,
.record-save[aria-pressed="true"] {
  border-color: var(--signal);
  color: var(--signal);
}

.record:hover .record-arrow {
  color: var(--signal);
}

.empty-state {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--typewriter);
}

.records-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 69px;
  color: #58705b;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.support-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 56px;
  padding: 20px 24px;
  border: 1px solid var(--line-bright);
  background: linear-gradient(110deg, rgba(75, 135, 255, 0.09), rgba(45, 205, 190, 0.08) 52%, rgba(139, 215, 106, 0.08));
}

.donation-section {
  margin-bottom: 16px;
}

.request-section {
  margin-bottom: 16px;
  border-color: #d6bd69;
  background: linear-gradient(110deg, rgba(167, 130, 35, 0.18), rgba(214, 189, 105, 0.07));
}

.request-section .eyebrow,
.request-section .eyebrow .accent,
.request-section .support-title,
.request-section .support-description {
  color: #e8d590;
}

.request-section .donate-button {
  border-color: #d6bd69;
  background: linear-gradient(105deg, #ae8a31, #e1c768);
  color: #191405;
}

.request-section .donate-button:hover {
  box-shadow: 0 0 18px rgba(214, 189, 105, 0.35);
}

.issue-section {
  border-color: #e97171;
  background: linear-gradient(110deg, rgba(158, 35, 45, 0.15), rgba(211, 63, 66, 0.06));
}

.issue-section .eyebrow,
.issue-section .eyebrow .accent,
.issue-section .support-title,
.issue-section .support-description,
.issue-section .donate-status {
  color: #efaaaa;
}

.support-copy .eyebrow {
  margin: 0 0 8px;
}

.support-title {
  margin: 0;
  color: var(--white);
  font-family: var(--typewriter);
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 400;
}

.support-description {
  max-width: 600px;
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 11px;
}

.donate-action {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.donate-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-width: 150px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px;
  border: 1px solid #65cdb8;
  background: linear-gradient(105deg, #5b8cff, #2fc8bd 55%, #91d96c);
  background-size: 200% 100%;
  color: #06120d;
  cursor: pointer;
  font: 700 10px var(--mono);
  letter-spacing: 0.1em;
  transition: background-position 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.donate-button:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.donate-button:hover {
  background-position: 100% 50%;
  box-shadow: 0 0 18px rgba(101, 205, 184, 0.35);
  filter: brightness(1.06);
}

.issue-section .donate-button {
  border-color: #e97171;
  background: linear-gradient(105deg, #9e232d, #d33f42 55%, #ef7770);
  color: #fff5f2;
}

.issue-section .donate-button:hover {
  box-shadow: 0 0 18px rgba(211, 63, 66, 0.35);
}

.donate-status {
  margin: 0;
  color: #789b92;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-align: center;
}

.protocol-section {
  display: grid;
  grid-template-columns: 55px 1fr 0.8fr;
  gap: 30px;
  align-items: start;
  padding: 38px 0 49px;
  border-top: 1px solid var(--line);
}

.protocol-index {
  color: var(--signal);
  font-size: 10px;
}

.protocol-section .eyebrow {
  margin: 0 0 14px;
}

.protocol-section h2 {
  font-size: clamp(25px, 3vw, 36px);
}

.protocol-copy {
  max-width: 400px;
  margin: 25px 0 0;
  color: #8ca68e;
  font-family: var(--typewriter);
  font-size: 12px;
}

.notes-page {
  max-width: 1600px;
  min-height: calc(100vh - 116px);
  padding-top: 52px;
  padding-bottom: 70px;
}

.notes-page[hidden],
#notes-gate-actions[hidden] {
  display: none;
}

#notes-gate-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

#notes-gate-actions p {
  flex-basis: 100%;
}

#notes-gate-actions .account-submit {
  width: auto;
  margin: 0;
  text-decoration: none;
}

.note-back-link {
  display: inline-block;
  margin-bottom: 37px;
  color: var(--signal);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.note-back-link:hover {
  color: var(--white);
}

.notes-heading .eyebrow {
  margin-bottom: 16px;
}

.notes-heading .eyebrow span {
  color: var(--signal);
}

.notes-title {
  margin: 0 0 13px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.notes-description {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 13px;
}

.note-panel {
  margin-top: 35px;
  border: 1px solid var(--line-bright);
  background: #020702;
}

.note-toolbar,
.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}

.note-toolbar {
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.note-toolbar label {
  color: var(--signal);
}

#note-status[data-state="error"] {
  color: var(--signal);
}

#note-content {
  display: block;
  width: 100%;
  min-height: min(58vh, 560px);
  padding: 22px 16px;
  resize: vertical;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font: 13px/1.8 var(--typewriter);
}

#note-content::placeholder {
  color: #526e55;
}

#note-content:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: -4px;
}

.note-footer {
  min-height: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.footer {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 5.2%;
  border-top: 1px solid var(--line);
  color: #67816a;
  font-size: 8px;
  letter-spacing: 0.07em;
}

.footer-mark {
  color: #bed6bf;
  font-weight: 600;
}

.back-to-top {
  color: var(--signal);
}

@media (min-width: 1500px) {
  main {
    padding-right: 7%;
    padding-left: 7%;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .intro {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
  .live-news-tv {
    grid-column: 1 / -1;
    width: min(100%, 480px);
  }
  .topics-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .gathered-row {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .gathered-tools {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  html.home-page {
    scroll-padding-top: 96px;
  }

  :root {
    --header-search-width: min(200px, 44vw);
    --forum-button-width: 56px;
    --top-tools-gap: 6px;
    --ai-search-width: calc(var(--forum-button-width) + var(--header-search-width) + var(--top-tools-gap));
  }

  .topbar {
    min-height: 88px;
    padding: 8px 20px;
    font-size: 8px;
  }

  .gathered-section {
    width: 100%;
    padding: 10px 12px 13px;
  }

  .gathered-row {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin: 12px 20px;
  }

  .gathered-tools {
    align-self: flex-end;
    gap: 6px;
  }

  .gathered-section h2 {
    font-size: clamp(17px, 4.5vw, 20px);
  }

  .wordmark {
    gap: 8px;
  }

  .wordmark-mark {
    width: 31px;
    height: 31px;
  }

  .topbar-meta {
    gap: 8px;
  }

  .topbar-tools {
    gap: 6px;
  }

  .top-tools-row {
    gap: var(--top-tools-gap);
  }

  .account-links {
    gap: 4px;
    font-size: 7px;
  }

  .system-status {
    font-size: 0;
  }

  .archive-document-count {
    font-size: 6px;
    letter-spacing: 0.02em;
  }

  .system-status .status-dot {
    width: 7px;
    height: 7px;
  }

  main {
    padding: 0 20px;
  }

  .notes-page {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .note-back-link {
    margin-bottom: 28px;
  }

  .note-panel {
    margin-top: 27px;
  }

  #note-content {
    min-height: 48vh;
  }

  .intro {
    min-height: 390px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 18px;
    padding: 32px 0 68px;
  }

  .intro h1 {
    font-size: clamp(36px, 8vw, 58px);
  }

  .intro .intro-title {
    font-size: clamp(32px, 6vw, 44px);
  }

  .intro-illustration {
    width: min(80%, 340px);
  }

  .live-news-tv {
    grid-column: 1 / -1;
    width: min(100%, 480px);
  }

  .intro-description {
    max-width: 400px;
    font-size: 12px;
  }

  .intro-disclaimer {
    font-size: 11.5px;
  }

  .access-stamp {
    position: absolute;
    right: 3px;
    bottom: 63px;
    width: 142px;
    min-height: 84px;
    padding: 9px;
  }

  .stamp-top,
  .stamp-bottom {
    font-size: 6px;
  }

  .stamp-value {
    font-size: 9px;
  }

  .collection-nav {
    position: relative;
    top: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 0 20px;
  }

  .collection-link {
    min-height: 60px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .collection-menu-panel {
    width: calc(100vw - 40px);
    max-height: 65vh;
  }

  #collection-natural-science > .collection-menu-panel,
  #collection-scriptures > .collection-menu-panel,
  #collection-industry > .collection-menu-panel {
    right: auto;
    left: -100%;
  }

  #collection-journalism > .collection-menu-panel {
    right: auto;
    left: 0;
  }

  .agency-options {
    max-height: min(35vh, 250px);
  }

  .interesting-topics {
    padding-block: 54px;
  }

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

  .records-section {
    padding-top: 53px;
  }

  .record {
    grid-template-columns: 58px minmax(0, 1fr) 45px 54px;
    gap: 12px;
  }

  .record-info h3 {
    font-size: 15px;
  }

  .record-summary {
    max-width: 370px;
  }

  .support-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    padding: 17px;
  }

  .donate-action {
    justify-items: start;
  }

  .donate-status {
    text-align: left;
  }

  .protocol-section {
    grid-template-columns: 28px 1fr;
    gap: 16px;
  }

  .protocol-copy {
    grid-column: 2;
    margin-top: 0;
  }

  .footer {
    padding-right: 20px;
    padding-left: 20px;
    font-size: 7px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-search-width: min(180px, calc(100vw - 194px));
    --forum-button-width: 48px;
    --top-tools-gap: 4px;
    --ai-search-width: calc(var(--forum-button-width) + var(--header-search-width) + var(--top-tools-gap));
  }

  .topbar {
    gap: 6px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .wordmark {
    gap: 6px;
    font-size: 6px;
  }

  .wordmark-mark {
    width: 29px;
    height: 29px;
  }

  .topbar-meta {
    gap: 5px;
  }

  .topbar-tools {
    gap: 4px;
  }

  .top-tools-row {
    gap: var(--top-tools-gap);
  }

  .forum-button {
    padding: 0 6px;
    font-size: 6px;
  }

  .header-search input {
    padding: 0 5px;
    font-size: 6px;
  }

  .header-search button {
    width: 24px;
    flex-basis: 24px;
  }

  .ai-search {
    height: 42px;
  }

  .ai-search-label {
    padding: 0 7px;
    font-size: 6px;
  }

  .ai-search input {
    padding: 0 6px;
    font-size: 6px;
  }

  .ai-search button {
    width: 24px;
    flex-basis: 24px;
  }

  .system-status {
    display: none;
  }

  .account-links {
    gap: 3px;
    font-size: 6px;
  }

  .utc-clock {
    min-width: 68px;
    font-size: 7px;
  }

  .intro {
    min-height: 370px;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0 58px;
  }

  .intro-illustration {
    width: min(80%, 280px);
    justify-self: center;
  }

  .intro .eyebrow {
    gap: 7px;
    font-size: 7px;
  }

  h1 {
    font-size: 59px;
  }

  .intro .intro-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .access-stamp {
    right: 0;
    bottom: 51px;
  }

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

  .records-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .record {
    min-height: 115px;
    grid-template-columns: 44px minmax(0, 1fr) 45px;
    gap: 9px;
  }

  .record-number {
    font-size: 7px;
  }

  .record-info h3 {
    font-size: 14px;
  }

  .record-type {
    font-size: 7px;
  }

  .record-meta {
    display: none;
  }

  .record-summary {
    font-size: 10px;
  }

  .records-footer {
    font-size: 7px;
  }

  .footer > span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-illustration.is-winking .elephant-wink {
    animation-duration: 250ms;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.forum-button:hover,
.forum-button-active {
  border-color: var(--signal);
  background: #0c190d;
  color: var(--signal);
}

.forum-page {
  min-height: calc(100vh - 146px);
  padding-top: 40px;
  padding-bottom: 82px;
}

.forum-page .note-back-link {
  margin-bottom: 42px;
}

.forum-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.5fr);
  gap: 48px;
  align-items: end;
  padding: 0 0 43px;
  border-bottom: 1px solid var(--line-bright);
}

.forum-hero .eyebrow,
.forum-section-heading .eyebrow,
.forum-dialog-heading .eyebrow {
  margin-bottom: 16px;
}

.forum-hero .eyebrow span,
.forum-section-heading .eyebrow span,
.forum-dialog-heading .eyebrow span {
  color: var(--signal);
}

.forum-title {
  margin: 0;
  font-family: var(--typewriter);
  font-size: clamp(42px, 5.7vw, 76px);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.98;
}

.forum-title span,
.forum-section-heading h2 span {
  color: var(--signal);
}

.forum-intro {
  max-width: 570px;
  margin: 23px 0 0;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 13px;
}

.forum-hero-action {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 5px;
}

.forum-community-art {
  display: block;
  width: min(calc(100% - 12px), 328px);
  height: auto;
  object-fit: contain;
}

.forum-live {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.forum-live .status-dot {
  width: 6px;
  height: 6px;
}

.forum-compose-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 14px;
  border: 1px solid var(--signal);
  background: var(--signal);
  color: var(--black);
  cursor: pointer;
  font: 600 9px var(--mono);
  letter-spacing: 0.08em;
  transition: background-color 140ms ease, color 140ms ease;
}

.forum-compose-button:hover {
  background: transparent;
  color: var(--signal);
}

.forum-compose-button span {
  font-size: 15px;
}

.forum-local-notice {
  margin: 14px 0 0;
  color: #728c75;
  font-size: 8px;
  letter-spacing: 0.055em;
}

.forum-local-notice[data-state="error"] {
  color: var(--signal);
}

.forum-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 0.45fr)) minmax(180px, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 27px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.forum-overview > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.forum-overview > div span,
.forum-sort > span {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.forum-overview > div strong {
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.forum-overview > p {
  justify-self: end;
  margin: 0;
  color: #78927b;
  font-family: var(--typewriter);
  font-size: 11px;
}

.forum-overview > p span {
  padding: 0 5px;
  color: var(--signal);
}

.forum-discussions {
  padding-top: 54px;
  scroll-margin-top: 100px;
}

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

.forum-section-heading h2 {
  font-size: clamp(30px, 4vw, 45px);
}

.forum-sort {
  display: flex;
  min-width: 175px;
  flex-direction: column;
  gap: 7px;
}

.forum-search {
  display: flex;
  min-width: 180px;
  max-width: 300px;
  flex: 1;
  flex-direction: column;
  gap: 7px;
}

.forum-search > span {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.forum-search input {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  background: #020702;
  color: var(--white);
  font: 10px var(--mono);
}

.forum-search input:focus {
  border-color: var(--signal);
  outline: 1px solid var(--signal);
}

.forum-sort select,
.forum-dialog select,
.forum-dialog input,
.forum-dialog textarea,
.forum-reply-form input,
.forum-reply-form textarea {
  min-width: 0;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  background: #020702;
  color: var(--white);
  font: 10px var(--mono);
}

.forum-sort select {
  height: 34px;
  padding: 0 30px 0 9px;
  appearance: none;
  background-color: #020702;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--signal) 50%),
    linear-gradient(135deg, var(--signal) 50%, transparent 50%);
  background-position:
    calc(100% - 13px) 14px,
    calc(100% - 8px) 14px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  cursor: pointer;
}

.forum-sort select option {
  background: #020702;
  color: var(--white);
}

.forum-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.forum-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.forum-category,
.forum-saved-toggle {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 8px var(--mono);
  letter-spacing: 0.06em;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

.forum-category:hover,
.forum-category.is-active,
.forum-saved-toggle:hover,
.forum-saved-toggle[aria-pressed="true"] {
  border-color: var(--line-bright);
  background: #071008;
  color: var(--signal);
}

.forum-saved-toggle {
  flex: 0 0 auto;
  border-color: var(--line);
}

.forum-list {
  border-bottom: 1px solid var(--line);
}

.discussion-card {
  padding: 22px 0 20px;
  border-top: 1px solid var(--line);
}

.discussion-card:first-child {
  border-top: 0;
}

.discussion-card-top,
.discussion-card-footer,
.discussion-actions,
.discussion-reply-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.discussion-card-top {
  margin-bottom: 8px;
}

.discussion-category,
.discussion-time,
.discussion-byline,
.discussion-action,
.discussion-reply-meta,
.discussion-reply-form label {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.discussion-category {
  color: var(--signal);
}

.discussion-title {
  display: block;
  max-width: 900px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
  font: 700 clamp(17px, 2.2vw, 23px)/1.3 var(--typewriter);
  text-align: left;
  transition: color 140ms ease;
}

.discussion-title:hover {
  color: var(--signal);
}

.discussion-body {
  max-width: 760px;
  margin: 7px 0 18px;
  color: #8ca68e;
  font-family: var(--typewriter);
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.discussion-card-footer {
  flex-wrap: wrap;
}

.discussion-byline strong {
  color: #b3c9b2;
  font-weight: 500;
}

.discussion-actions {
  justify-content: flex-end;
  gap: 7px;
}

.discussion-action {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: #91a993;
  cursor: pointer;
  font-family: var(--mono);
  transition: border-color 140ms ease, color 140ms ease;
}

.discussion-action:hover,
.discussion-action[aria-pressed="true"] {
  border-color: var(--line-bright);
  color: var(--signal);
}

.discussion-expanded {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #030804;
}

.discussion-expanded[hidden],
.forum-empty[hidden] {
  display: none;
}

.discussion-replies {
  display: grid;
  gap: 12px;
  margin-bottom: 17px;
}

.discussion-reply {
  padding-left: 12px;
  border-left: 1px solid var(--line-bright);
}

.discussion-reply-meta {
  justify-content: flex-start;
  gap: 10px;
}

.discussion-reply-meta strong {
  color: #b3c9b2;
  font-weight: 500;
}

.discussion-reply p {
  margin: 4px 0 0;
  color: #8ca68e;
  font-family: var(--typewriter);
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.discussion-no-replies {
  margin: 0 0 15px;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 11px;
}

.discussion-reply-form {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.discussion-reply-form label {
  grid-column: 1 / -1;
}

.forum-reply-form input,
.forum-reply-form textarea {
  width: 100%;
  min-height: 34px;
  padding: 8px;
  resize: vertical;
  font-size: 9px;
}

.forum-reply-form textarea {
  min-height: 34px;
  max-height: 130px;
}

.forum-reply-form button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--signal);
  cursor: pointer;
  font: 8px var(--mono);
  letter-spacing: 0.06em;
}

.forum-reply-form button:hover {
  background: #0c190d;
}

.forum-empty {
  padding: 30px 0;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 12px;
}

.forum-dialog {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 25px;
  border: 1px solid var(--line-bright);
  background: #030804;
  color: var(--white);
}

.forum-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
}

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

.forum-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.forum-dialog-heading h2 {
  font-size: 27px;
}

.forum-dialog-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 22px var(--mono);
}

.forum-dialog-close:hover {
  border-color: var(--line-bright);
  color: var(--signal);
}

.forum-dialog form > label {
  margin-top: 7px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.forum-dialog input,
.forum-dialog select,
.forum-dialog textarea {
  width: 100%;
  padding: 10px;
  font-size: 11px;
}

.forum-dialog select[multiple] {
  min-height: 120px;
}

.forum-dialog textarea {
  resize: vertical;
}

.forum-dialog input:focus,
.forum-dialog select:focus,
.forum-dialog textarea:focus,
.forum-reply-form input:focus,
.forum-reply-form textarea:focus,
.forum-sort select:focus {
  border-color: var(--signal);
  outline: 1px solid var(--signal);
}

.forum-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.forum-dialog-footer > span {
  color: var(--muted);
  font-size: 8px;
}

.document-submission-dialog {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.submission-intro {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 11px;
  line-height: 1.6;
}

.document-submission-dialog .submission-file-note {
  margin: -3px 0 5px;
  color: #d6bd69;
  font-size: 8px;
  line-height: 1.5;
}

.document-submission-dialog .submission-consent {
  margin: 6px 0;
  color: var(--muted);
  font-size: 9px;
}

.submission-status {
  min-height: 1.6em;
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

.submission-status[data-state="error"] {
  color: #d3a077;
}

.submission-status[data-state="success"] {
  color: var(--signal);
}

.submission-status a {
  color: var(--signal);
  text-decoration: underline;
}

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

.submission-actions .forum-dialog-close {
  width: auto;
  min-width: 76px;
  padding: 0 10px;
  font-size: 8px;
}

@media (max-width: 760px) {
  .forum-page {
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .forum-page .note-back-link {
    margin-bottom: 32px;
  }

  .forum-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 30px;
  }

  .forum-hero-action {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
  }

  .forum-community-art {
    width: min(calc(100% - 12px), 368px);
  }

  .forum-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .forum-overview > p {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .forum-discussions {
    padding-top: 42px;
  }

  .forum-filter-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .forum-saved-toggle {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .forum-title {
    font-size: clamp(42px, 13vw, 60px);
  }

  .forum-hero-action {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .forum-sort {
    width: 100%;
  }

  .forum-search {
    width: 100%;
    max-width: none;
  }

  .discussion-card {
    padding: 18px 0;
  }

  .discussion-card-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .discussion-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .discussion-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .discussion-expanded {
    padding: 12px;
  }

  .discussion-reply-form {
    grid-template-columns: 1fr;
  }

  .discussion-reply-form label {
    grid-column: auto;
  }

  .discussion-reply-form button {
    justify-self: start;
  }

  .forum-dialog {
    padding: 17px;
  }

  .forum-dialog-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.about-page {
  padding-top: 40px;
  padding-bottom: 90px;
}

.about-page > .note-back-link {
  margin-bottom: 42px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 36px;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-bright);
}

.about-hero-copy {
  min-width: 0;
}

.about-hero-eye {
  display: block;
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  justify-self: end;
}

.about-hero-eye img,
.pyramid-eye-overlay {
  display: block;
  width: 100%;
  height: 100%;
}

.pyramid-eye-overlay {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.about-hero-eye.is-looking .pyramid-eye-overlay {
  visibility: visible;
}

.pyramid-eye-trigger {
  position: absolute;
  left: 29%;
  top: 40%;
  width: 37%;
  height: 20%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.pyramid-eye-trigger:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.about-hero-eye.is-looking .pyramid-iris-motion {
  animation: pyramid-look 2.4s ease-in-out;
}

@keyframes pyramid-look {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-32px, 0); }
  40% { transform: translate(32px, 0); }
  60% { transform: translate(0, -12px); }
  80% { transform: translate(0, 12px); }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero-eye.is-looking .pyramid-iris-motion {
    animation-name: pyramid-look-reduced;
    animation-duration: 400ms;
  }
}

@keyframes pyramid-look-reduced {
  from, to { transform: translate(0, 0); }
}

.about-hero .eyebrow,
.about-section-heading .eyebrow,
.about-sources .eyebrow {
  margin-bottom: 15px;
}

.about-hero .eyebrow span,
.about-section-heading .eyebrow span,
.about-sources .eyebrow span {
  color: var(--signal);
}

.about-title {
  margin: 0;
  font-family: var(--typewriter);
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 1;
}

.about-title span,
.about-section-heading h2 span {
  color: var(--signal);
}

.about-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 13px;
}

.about-notice {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 2px solid var(--signal);
  background: #061007;
}

.about-notice strong {
  color: var(--signal);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.about-notice p {
  margin: 6px 0 0;
  color: #9ab29c;
  font-family: var(--typewriter);
  font-size: 11px;
}

.about-section {
  margin-top: 58px;
  padding-top: 37px;
  border-top: 1px solid var(--line);
}

.about-section-heading {
  max-width: 850px;
  margin-bottom: 24px;
}

.about-section-heading h2,
.about-sources h2 {
  margin: 0;
  font-size: clamp(27px, 3.4vw, 42px);
}

.about-section-heading > p:last-child:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 12px;
}

.classification-levels,
.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.classification-card,
.access-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line-bright);
  background: #020702;
}

.classification-code {
  display: inline-flex;
  min-width: 34px;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--signal);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.classification-card h3,
.access-card h3 {
  margin: 15px 0 8px;
  color: var(--white);
  font-family: var(--typewriter);
  font-size: 19px;
  font-weight: 700;
}

.classification-card p,
.access-card p {
  margin: 0;
  color: #91a993;
  font-family: var(--typewriter);
  font-size: 11px;
}

.classification-card strong {
  color: var(--white);
}

.about-footnote {
  margin: 14px 0 0;
  color: #728c75;
  font-size: 8px;
  line-height: 1.7;
}

.about-two-column {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
}

.about-two-column .about-section-heading {
  margin-bottom: 0;
}

.about-copy {
  color: #9ab29c;
  font-family: var(--typewriter);
  font-size: 12px;
}

.about-copy > :last-child {
  margin-bottom: 0;
}

.about-copy p {
  margin-bottom: 15px;
}

.about-copy strong {
  color: var(--white);
}

.about-copy ul {
  display: grid;
  gap: 12px;
  margin: 0 0 17px;
  padding-left: 18px;
}

.about-copy li::marker {
  color: var(--signal);
}

.about-callout {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid var(--line);
}

.about-callout strong,
.access-tag {
  color: var(--signal);
  font: 600 8px var(--mono);
  letter-spacing: 0.1em;
}

.about-callout span {
  color: #91a993;
  font-size: 11px;
}

.access-tag {
  display: inline-block;
  padding: 5px 7px;
  border: 1px solid var(--line);
}

.access-card h3 {
  margin-top: 13px;
}

.foia-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 36px;
  align-items: start;
}

.foia-explanation {
  color: #9ab29c;
  font-family: var(--typewriter);
  font-size: 12px;
}

.foia-explanation h3 {
  margin: 0 0 11px;
  color: var(--white);
  font-size: 16px;
}

.foia-explanation p {
  margin-bottom: 13px;
}

.foia-explanation p:last-child {
  margin-bottom: 0;
}

.foia-explanation strong {
  color: var(--signal);
}

.foia-exemptions {
  margin-top: 20px;
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line);
}

.foia-exemptions > summary {
  min-height: 42px;
  padding: 12px 0;
  color: var(--signal);
  cursor: pointer;
  font: 600 8px var(--mono);
  letter-spacing: 0.08em;
  list-style: none;
}

.foia-exemptions > summary::-webkit-details-marker {
  display: none;
}

.foia-exemptions > summary::after {
  content: " +";
  color: var(--muted);
}

.foia-exemptions[open] > summary::after {
  content: " −";
}

.foia-exemptions ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 26px;
  margin: 0;
  padding: 0 0 16px 21px;
  color: #91a993;
  font-size: 10px;
}

.foia-exemptions li::marker {
  color: var(--signal);
}

.foia-steps {
  display: grid;
  border-top: 1px solid var(--line-bright);
}

.foia-steps span {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: #91a993;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.agency-policy-groups {
  border-bottom: 1px solid var(--line);
}

.agency-policy-group {
  border-top: 1px solid var(--line);
}

.agency-policy-group > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  color: var(--signal);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.agency-policy-group > summary::-webkit-details-marker {
  display: none;
}

.agency-policy-group > summary::after {
  content: "+";
  color: var(--muted);
  font-size: 15px;
}

.agency-policy-group[open] > summary::after {
  content: "−";
}

.agency-policy-group > summary span:last-child {
  color: var(--muted);
  font-size: 7px;
  font-weight: 400;
  text-align: right;
}

.agency-policy-group > div {
  max-width: 950px;
  padding: 0 24px 18px 0;
  color: #91a993;
  font-family: var(--typewriter);
  font-size: 11px;
}

.agency-policy-group > div p {
  margin: 0 0 10px;
}

.agency-policy-group > div p:last-child {
  margin-bottom: 0;
}

.agency-policy-group strong {
  color: var(--white);
  font-family: var(--mono);
  font-size: 9px;
}

.about-sources {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line-bright);
}

.about-sources h2 {
  margin-bottom: 22px;
}

.about-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.about-source-list a {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line);
  color: #9ab29c;
  font-size: 9px;
  transition: color 140ms ease;
}

.about-source-list a:nth-child(odd) {
  margin-right: 20px;
}

.about-source-list a:hover {
  color: var(--signal);
}

.about-source-list a span {
  color: var(--signal);
}

.about-inline-link {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-color: var(--line-bright);
  text-underline-offset: 3px;
}

.about-inline-link:hover {
  color: var(--white);
}

@media (max-width: 760px) {
  .about-page {
    padding-top: 36px;
    padding-bottom: 58px;
  }

  .about-page > .note-back-link {
    margin-bottom: 32px;
  }

  .about-section {
    margin-top: 44px;
    padding-top: 28px;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-hero-eye {
    width: min(100%, 260px);
    justify-self: center;
  }

  .about-two-column,
  .foia-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-two-column .about-section-heading {
    margin-bottom: 0;
  }

  .agency-policy-group > summary {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 18px 10px 0;
  }
}

@media (max-width: 480px) {
  .about-title {
    font-size: clamp(39px, 12vw, 56px);
  }

  .classification-levels,
  .access-grid,
  .about-source-list {
    grid-template-columns: 1fr;
  }

  .about-source-list a:nth-child(odd) {
    margin-right: 0;
  }

  .foia-exemptions ol {
    grid-template-columns: 1fr;
  }
}

.agency-page {
  min-height: calc(100vh - 146px);
  padding-top: 40px;
  padding-bottom: 90px;
}

.video-library .agency-index-section {
  margin-top: 28px;
}

.video-intro {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 16px;
  margin-top: 24px;
}

.video-card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.video-card:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.video-card-preview {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  place-items: center;
  border: 1px solid var(--line-bright);
  background: radial-gradient(ellipse at center, #1a2a1b, #080d09);
}

.video-card-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
}

.video-card:hover img {
  transform: scale(1.04);
}

.video-card-placeholder {
  padding: 12px;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

.video-card-play {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(205, 226, 182, 0.6);
  border-radius: 50%;
  background: rgba(3, 8, 4, 0.75);
  color: var(--signal);
  font-size: 13px;
}

.video-card-duration {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--white);
  font-size: 9px;
}

.video-card-details {
  display: grid;
  gap: 8px;
  padding-top: 12px;
}

.video-card-title {
  color: var(--white);
  font: 15px/1.45 var(--typewriter);
  overflow-wrap: anywhere;
}

.video-card:hover .video-card-title {
  color: var(--signal);
}

.video-card-source {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.video-watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  align-items: start;
  gap: 36px;
  margin-top: 24px;
}

.video-watch-layout[hidden] {
  display: none;
}

.video-watch-main {
  min-width: 0;
}

.video-watch-player {
  min-height: 80px;
  margin-bottom: 24px;
  color: var(--muted);
}

.video-watch-main h1 {
  margin: 12px 0;
  color: var(--white);
  font: 24px/1.35 var(--typewriter);
  overflow-wrap: anywhere;
}

.video-watch-description {
  color: var(--muted);
  line-height: 1.7;
}

.video-watch-related h2 {
  color: var(--white);
  font: 20px/1.3 var(--typewriter);
}

.video-related-grid {
  display: grid;
  gap: 20px;
}

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

@media (max-width: 760px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-watch-layout { grid-template-columns: minmax(0, 1fr); }
  .video-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .video-grid, .video-related-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .video-card-preview img { transition: none; }
}

.site-search-page .agency-index-section {
  max-width: 1000px;
}

.site-search-page .agency-intro {
  max-width: 820px;
  line-height: 1.7;
}

.site-search-status {
  margin: 22px 0 34px;
  color: var(--signal);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.site-search-status[data-state="warning"] {
  color: #d3b779;
}

.site-search-group {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line-bright);
}

.site-search-heading {
  margin-bottom: 18px;
}

.site-search-heading .eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.site-search-heading .eyebrow span {
  color: var(--signal);
}

.site-search-heading h2 {
  margin: 0;
  color: var(--white);
  font: 24px/1.3 var(--typewriter);
}

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

.site-search-more {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--signal);
  font: 9px var(--typewriter);
  letter-spacing: 0.06em;
  cursor: pointer;
}

.site-search-more:hover:not(:disabled) {
  border-color: var(--signal);
  background: rgba(126, 158, 130, 0.08);
}

.site-search-more:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.site-search-more:disabled {
  cursor: wait;
  opacity: 0.65;
}

.site-search-result {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 9, 0.55);
  color: inherit;
  text-decoration: none;
}

.site-search-result-record {
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
}

.site-search-result-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.site-search-result-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #121b13;
}

.site-search-result-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-search-result-placeholder {
  padding: 8px;
  color: var(--muted);
  font-size: 8px;
  text-align: center;
}

@media (max-width: 520px) {
  .site-search-result-record {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
  }
}

.site-search-result:hover,
.site-search-result:focus-visible {
  border-color: var(--signal);
  background: rgba(126, 158, 130, 0.08);
}

.site-search-result:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.site-search-result-category,
.site-search-result-source {
  color: var(--signal);
  font-size: 8px;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.site-search-result h3 {
  margin: 0;
  color: var(--white);
  font: 16px/1.4 var(--typewriter);
  overflow-wrap: anywhere;
}

.site-search-result p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.site-search-result-source {
  color: var(--muted);
  font-size: 7px;
}

.agency-page > .note-back-link {
  margin-bottom: 42px;
}

.agency-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px;
  gap: 42px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-bright);
}

.agency-hero-copy {
  min-width: 0;
}

.agency-hero .eyebrow,
.agency-source-section .eyebrow,
.agency-index-heading .eyebrow {
  margin-bottom: 14px;
}

.agency-hero .eyebrow span,
.agency-source-section .eyebrow span,
.agency-index-heading .eyebrow span {
  color: var(--signal);
}

.agency-title {
  max-width: 900px;
  margin: 0;
  font-family: var(--typewriter);
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 1.04;
}

.agency-title > span,
.agency-source-copy h2 > span,
.agency-index-heading h2 > span {
  color: var(--signal);
}

.agency-intro {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 13px;
}

.agency-marking {
  margin: 21px 0 0;
  color: var(--signal);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.agency-logo-frame {
  display: grid;
  width: 154px;
  height: 154px;
  place-items: center;
  border: 1px solid var(--line-bright);
  background: transparent;
}

.agency-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.agency-logo {
  display: block;
  width: 122px;
  height: 122px;
  object-fit: contain;
}

.agency-logo[hidden] {
  display: none;
}

.agency-logo-fallback {
  max-width: 132px;
  padding: 8px;
  color: var(--signal);
  font-size: clamp(11px, 2vw, 17px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.agency-logo-credit {
  color: var(--muted);
  font-size: 6px;
  letter-spacing: 0.04em;
  text-align: right;
}

.agency-logo-credit:hover {
  color: var(--signal);
}

.agency-logo-credit[hidden] {
  display: none;
}

.agency-logo-fallback[hidden] {
  display: none;
}

.agency-source-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 23px;
  border: 1px solid var(--line-bright);
  background: #020702;
}

.agency-source-section[hidden] {
  display: none;
}

.subject-source-section {
  align-items: stretch;
}

.subject-source-list {
  display: grid;
  flex: 1 1 560px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.subject-source-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: #000;
}

.subject-source-card .eyebrow {
  margin-bottom: 10px;
  color: var(--signal);
  font-size: 7px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.subject-source-card h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--typewriter);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.subject-source-card > p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 10px;
  line-height: 1.55;
}

.subject-source-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--signal);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.subject-source-card a:hover {
  color: var(--white);
}

.agency-source-copy {
  min-width: 0;
}

.agency-source-copy h2,
.agency-index-heading h2 {
  margin: 0;
  font-size: clamp(23px, 3vw, 34px);
}

.agency-source-copy > p:last-child {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 11px;
}

.agency-source-link {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 14px;
  border: 1px solid var(--signal);
  color: var(--signal);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  transition: background 140ms ease, color 140ms ease;
}

.agency-source-link:hover {
  background: var(--signal);
  color: var(--black);
}

.agency-source-link > span:last-child {
  font-size: 13px;
}

.agency-index-section {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.agency-index-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.agency-index-status {
  padding: 5px 8px;
  border: 1px solid var(--line-bright);
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.agency-record-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.agency-record-search,
.agency-record-type {
  display: flex;
  min-width: 150px;
  flex-direction: column;
  gap: 7px;
}

.agency-record-search {
  flex: 1;
}

.agency-record-search > span,
.agency-record-type > span {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.agency-record-search input,
.agency-record-type select {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  background: #020702;
  color: var(--white);
  font: 9px var(--mono);
}

.agency-record-type select {
  padding-right: 28px;
  cursor: pointer;
}

.agency-record-status {
  min-height: 1em;
  margin: 12px 0;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.agency-record-status[data-state="error"] {
  color: #e7a19a;
}

.agency-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 0 4px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.agency-pagination button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--signal);
  cursor: pointer;
  font: inherit;
}

.agency-pagination button:disabled {
  cursor: default;
  opacity: 0.45;
}

.agency-pagination[hidden] {
  display: none;
}

.agency-record-list {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.agency-empty {
  margin: 0;
  padding: 22px 14px;
  background: #020702;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 11px;
}

.agency-record {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.agency-record:last-child {
  border-bottom: 0;
}

.agency-record-number {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.agency-record h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--typewriter);
  font-size: 16px;
  font-weight: 400;
}

.agency-record p {
  margin: 5px 0 0;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 11px;
}

.agency-record a {
  color: var(--signal);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.agency-record a:hover {
  color: var(--white);
}

.agency-index-note {
  max-width: 850px;
  margin: 14px 0 0;
  color: #647d67;
  font-family: var(--typewriter);
  font-size: 10px;
}

@media (max-width: 760px) {
  .agency-page {
    padding-top: 36px;
    padding-bottom: 58px;
  }

  .agency-page > .note-back-link {
    margin-bottom: 32px;
  }

  .agency-hero {
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 20px;
  }

  .agency-logo-frame {
    width: 120px;
    height: 120px;
  }

  .agency-branding {
    width: 120px;
  }

  .agency-logo {
    width: 96px;
    height: 96px;
  }

  .agency-source-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .agency-record-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .subject-source-list {
    width: 100%;
    flex: 0 1 auto;
  }
}

@media (max-width: 480px) {
  .agency-hero {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 12px;
  }

  .agency-logo-frame {
    width: 78px;
    height: 78px;
  }

  .agency-branding {
    width: 78px;
  }

  .agency-logo {
    width: 62px;
    height: 62px;
  }

  .agency-logo-fallback {
    padding: 4px;
    font-size: 9px;
  }

  .agency-title {
    font-size: clamp(31px, 10vw, 44px);
  }

  .agency-source-section {
    padding: 16px;
  }

  .agency-source-link {
    width: 100%;
  }

  .subject-source-list {
    grid-template-columns: 1fr;
  }

  .agency-index-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .agency-record {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .agency-record a {
    justify-self: start;
  }
}

.auth-page,
.account-page {
  min-height: calc(100vh - 146px);
  padding-top: 40px;
  padding-bottom: 82px;
}

.auth-panel {
  width: min(100%, 620px);
  margin: 20px auto 0;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--line-bright);
  background: #020702;
}

.auth-panel > .eyebrow,
.account-section .eyebrow,
.account-page-heading .eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.auth-panel .eyebrow span,
.account-section .eyebrow span,
.account-page-heading .eyebrow span {
  color: var(--signal);
}

.auth-title,
.account-title {
  margin: 0;
  color: var(--white);
  font-family: var(--typewriter);
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 1.05;
}

.auth-title > span,
.account-title > span,
.account-section-heading h2 > span {
  color: var(--signal);
}

.auth-intro,
.auth-privacy-note {
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 11px;
}

.auth-intro {
  margin: 14px 0 19px;
}

.auth-privacy-note {
  margin: 24px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  line-height: 1.8;
}

.auth-setup-notice {
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid var(--line-bright);
  color: #b7c9b8;
  font-size: 10px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.auth-setup-notice[hidden],
.auth-form[hidden],
.avatar-frame [hidden] {
  display: none !important;
}

.auth-status,
.account-feedback {
  min-height: 1.6em;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.auth-status[data-state="error"],
.account-feedback[data-state="error"],
#note-sync-status[data-state="error"] {
  color: #d3a077;
}

.auth-status[data-state="success"],
.account-feedback[data-state="success"],
#note-sync-status[data-state="success"] {
  color: var(--signal);
}

.auth-form,
.account-add-form,
.profile-fields {
  display: grid;
  gap: 9px;
}

.auth-form {
  margin-top: 17px;
}

.auth-form > label,
.account-add-form > label,
.profile-fields > label,
.avatar-editor > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.auth-form > label span,
.profile-fields > label span,
.avatar-editor > label span {
  color: #657f68;
  font-size: 7px;
  text-align: right;
}

.auth-form input:not([type="checkbox"]),
.account-add-form input,
.profile-fields input,
.profile-fields textarea,
.account-add-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  background: #000;
  color: var(--white);
  font: 11px var(--mono);
}

.profile-fields textarea,
.account-add-form textarea {
  min-height: 110px;
  resize: vertical;
  font-family: var(--typewriter);
  line-height: 1.7;
}

.auth-form input:focus,
.account-add-form input:focus,
.profile-fields input:focus,
.profile-fields textarea:focus,
.account-add-form textarea:focus {
  border-color: var(--signal);
  outline: 1px solid var(--signal);
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0;
  color: #92a893;
  font-size: 9px;
  letter-spacing: 0;
  line-height: 1.6;
}

.auth-consent input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--signal);
}

.auth-submit,
.account-submit,
.account-signout {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 13px;
  border: 1px solid var(--signal);
  border-radius: 0;
  background: var(--signal);
  color: var(--black);
  cursor: pointer;
  font: 600 8px var(--mono);
  letter-spacing: 0.08em;
  transition: background-color 140ms ease, color 140ms ease;
}

.auth-submit {
  border-color: var(--account-accent);
  background: var(--account-accent);
}

.auth-submit,
.account-submit {
  width: 100%;
  margin-top: 9px;
}

.auth-submit span {
  font-size: 13px;
}

.auth-submit:hover,
.account-submit:hover,
.account-signout:hover {
  background: transparent;
  color: var(--signal);
}

.auth-submit:hover {
  color: var(--account-accent);
}

.auth-submit:disabled,
.account-submit:disabled,
.account-signout:disabled,
.account-row-actions button:disabled,
.note-sync-row button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-secondary-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 20px;
  color: var(--account-accent);
  font-size: 8px;
  letter-spacing: 0.07em;
}

.auth-secondary-links a:hover,
.text-link:hover {
  color: var(--white);
}

.account-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line-bright);
}

.account-page-heading .note-back-link {
  display: inline-block;
  margin: 0 0 37px;
}

.account-email {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.account-signout {
  min-width: 96px;
  background: transparent;
  color: var(--signal);
}

.account-section {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

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

.account-section-heading h2 {
  margin: 0;
  font-family: var(--typewriter);
  font-size: clamp(24px, 3.8vw, 38px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.1;
}

.account-profile-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  max-width: 900px;
}

.avatar-editor {
  display: grid;
  gap: 12px;
}

.avatar-frame {
  display: grid;
  width: min(100%, 164px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: #030804;
  color: var(--signal);
  font-size: 29px;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-editor > label {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.avatar-editor input[type="file"] {
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font: 8px var(--mono);
}

.avatar-editor input[type="file"]::file-selector-button {
  min-height: 29px;
  margin-right: 7px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--signal);
  font: 8px var(--mono);
  cursor: pointer;
}

.avatar-crop {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
}

.avatar-crop[hidden] {
  display: none;
}

.avatar-crop p,
.avatar-crop label {
  margin: 0;
  color: var(--muted);
  font: 8px/1.6 var(--mono);
}

.avatar-crop canvas {
  width: min(100%, 220px);
  aspect-ratio: 1;
  border: 1px solid var(--line-bright);
  cursor: grab;
  touch-action: none;
}

.avatar-crop canvas:active {
  cursor: grabbing;
}

.avatar-crop input[type="range"] {
  width: 100%;
  accent-color: var(--signal);
}

.avatar-crop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.account-form-actions .account-submit {
  width: auto;
  min-width: 140px;
  margin: 0;
}

.account-form-actions .account-feedback {
  margin: 0;
}

.agency-index-status {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.account-upload-notice {
  max-width: 690px;
  margin: -10px 0 17px;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 10px;
}

.account-add-form input[type="file"] {
  min-height: 0;
  padding: 8px;
  color: var(--muted);
  font-size: 9px;
}

.account-add-form input[type="file"]::file-selector-button {
  min-height: 28px;
  margin-right: 9px;
  padding: 0 8px;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  background: transparent;
  color: var(--signal);
  cursor: pointer;
  font: 8px var(--mono);
}

.account-upload-row .account-list-copy p {
  font-variant-numeric: tabular-nums;
}

.account-upload-row {
  scroll-margin-top: 100px;
}

.account-add-form {
  max-width: 690px;
  margin-bottom: 27px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #020702;
}

.account-add-form .auth-consent {
  margin: 2px 0;
}

.account-add-form .account-submit {
  width: auto;
  min-width: 140px;
  justify-self: end;
}

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

.account-library-grid > section:first-child {
  grid-column: 1 / -1;
}

.account-library-grid h3 {
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-bright);
  color: var(--signal);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.account-record-list {
  display: grid;
}

#favorites-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  --document-cover-width: min(144px, 80%);
  --document-cover-margin: 12px auto 0;
}

#favorites-list .account-empty {
  grid-column: 1 / -1;
}

.account-songs-heading {
  margin: 20px 0 0;
  color: var(--signal);
  font: 500 9px var(--mono);
  letter-spacing: .1em;
}

.account-song audio {
  display: block;
  width: min(100%, 360px);
  height: 32px;
  margin-top: 8px;
}

.account-song .account-list-copy {
  flex: 1;
}

.account-list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.account-list-copy {
  min-width: 0;
}

.account-list-copy h4 {
  margin: 0;
  color: var(--white);
  font-family: var(--typewriter);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.account-list-copy h4 a:hover {
  color: var(--signal);
}

.account-list-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
  overflow-wrap: anywhere;
}

.account-row-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.account-row-actions button,
.account-remove-button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 7px var(--mono);
  letter-spacing: 0.05em;
}

.account-row-actions button:hover,
.account-remove-button:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.account-row-actions button[aria-pressed="true"] {
  color: var(--signal);
}

.account-remove-button:hover {
  border-color: #9c7055;
  color: #d3a077;
}

.account-empty {
  margin: 0;
  padding: 14px 0;
  color: var(--muted);
  font-family: var(--typewriter);
  font-size: 10px;
}

.text-link {
  color: var(--signal);
  font-size: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

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

.account-note-card {
  padding: 15px;
  border: 1px solid var(--line);
  background: #020702;
}

.account-note-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.account-note-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
}

.account-note-heading h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--typewriter);
  font-size: 14px;
}

.account-edit-note {
  display: grid;
  gap: 9px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.account-edit-note[hidden] {
  display: none;
}

.account-edit-note label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.account-edit-note input,
.account-edit-note textarea {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  background: #000;
  color: var(--white);
  font: 10px var(--mono);
}

.account-edit-note textarea {
  min-height: 100px;
  resize: vertical;
  font-family: var(--typewriter);
  line-height: 1.7;
}

.account-edit-note .account-row-actions {
  justify-content: flex-end;
}

.account-note-card > p {
  margin: 10px 0 0;
  color: #9ab29c;
  font: 11px/1.8 var(--typewriter);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.account-data-note {
  max-width: 900px;
  margin: 36px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #718b74;
  font-size: 8px;
  line-height: 1.8;
}

.note-sync-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.note-sync-row p,
#note-sync-status {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.note-sync-row p {
  flex: 1 1 260px;
}

.note-sync-row .account-submit {
  width: auto;
  min-height: 32px;
  margin: 0;
  padding: 0 10px;
  font-size: 7px;
}

#note-sync-status {
  flex-basis: 100%;
}

button:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .auth-page,
  .account-page {
    padding-top: 34px;
    padding-bottom: 56px;
  }

  .account-page-heading {
    align-items: flex-start;
  }

  .account-profile-form {
    grid-template-columns: minmax(105px, 0.35fr) minmax(0, 1fr);
    gap: 20px;
  }

  .avatar-frame {
    width: min(100%, 130px);
  }

  .account-library-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

@media (max-width: 480px) {
  .auth-panel {
    margin-top: 12px;
    padding: 18px;
  }

  .auth-page > .note-back-link,
  .account-page-heading .note-back-link {
    margin-bottom: 26px;
  }

  .account-page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

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

  .account-profile-form {
    grid-template-columns: 1fr;
  }

  .avatar-editor {
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
  }

  .avatar-frame {
    grid-row: span 2;
    width: 86px;
    font-size: 20px;
  }

  .account-list-row,
  .account-form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-note-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-row-actions {
    justify-content: flex-start;
  }

  .account-form-actions .account-submit,
  .account-add-form .account-submit {
    width: 100%;
    justify-self: stretch;
  }

  .auth-secondary-links {
    flex-direction: column;
  }

  .note-sync-row {
    align-items: stretch;
    flex-direction: column;
  }

  .note-sync-row .account-submit {
    width: 100%;
  }
}

.note-sync-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 15px;
}

.note-sync-actions .account-submit {
  width: auto;
  min-height: 32px;
  margin: 0;
  font-size: 7px;
}

.note-conflict-panel {
  padding: 16px;
  border-top: 1px solid var(--line-bright);
  background: #030804;
}

.note-conflict-panel[hidden],
.note-correlation-controls[hidden] {
  display: none;
}

#notes-signin-link[hidden],
#correlation-signin-link[hidden] {
  display: none !important;
}

.note-conflict-panel h2 {
  margin: 0;
  color: var(--signal);
  font: 600 10px var(--mono);
}

.note-conflict-panel p,
.note-correlation-description {
  color: var(--muted);
  font: 10px/1.7 var(--typewriter);
}

.note-conflict-panel p {
  margin: 7px 0 12px;
}

.note-conflict-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.note-conflict-actions .account-submit {
  width: auto;
  min-height: 32px;
  margin: 0;
  font-size: 7px;
}

.research-board {
  margin-top: 18px;
}

.research-board .note-correlation-heading .eyebrow {
  margin-bottom: 4px;
}

.research-board .note-correlation-heading h2 {
  font-size: clamp(20px, 2.5vw, 26px);
}

.research-board > p {
  margin: 8px 0;
  color: var(--muted);
}

.research-board-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.research-board-controls label,
.research-board-controls button,
.research-board-card button,
.research-board-controls select {
  font: 10px var(--mono);
}

.research-board-controls [hidden] {
  display: none;
}

.research-board-controls select,
.research-board-controls button,
.research-board-card button {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line-bright);
  background: #020702;
  color: var(--white);
}

.research-board-controls select {
  flex: 1 1 200px;
  min-width: 0;
}

.research-board button:not(:disabled) {
  cursor: pointer;
}

.research-board button:disabled {
  opacity: .5;
}

.research-board-scroll {
  height: min(68vh, 750px);
  min-height: 320px;
  overflow: auto;
  border: 1px solid var(--line-bright);
  background: #030904;
}

.research-board-canvas {
  position: relative;
  min-width: 100%;
  min-height: 650px;
  background-image: radial-gradient(#28432b 1px, transparent 1px);
  background-size: 24px 24px;
}

.research-board-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.research-board-connections line {
  stroke: #8fe6ae;
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

.research-board-card {
  position: absolute;
  width: 340px;
  border: 1px solid #6b9e70;
  background: #070d08;
  box-shadow: 0 4px 16px #0009;
}

.research-board-card.is-selected {
  border-color: #b7ffc8;
  box-shadow: 0 0 0 1px #b7ffc8, 0 4px 16px #0009;
}

.research-board-card button[aria-pressed="true"] {
  border-color: #b7ffc8;
  background: #19321c;
  color: #b7ffc8;
}

.research-board-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: #142617;
  cursor: grab;
  touch-action: none;
}

.research-board-card-header:active {
  cursor: grabbing;
}

.research-board-card-header strong {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.research-board-card-body {
  padding: 10px;
}

.research-board-card input,
.research-board-card textarea {
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line-bright);
  background: #020702;
  color: var(--white);
  font: 12px/1.5 var(--typewriter);
}

.research-board-card input {
  margin-bottom: 8px;
}

.research-board-card textarea {
  min-height: 170px;
  resize: vertical;
}

.research-board-card iframe,
.research-board-card pre {
  width: 100%;
  height: 260px;
  margin: 8px 0 0;
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
}

.research-board-card canvas {
  display: block;
  max-width: 100%;
  margin: 8px auto 0;
  background: #fff;
}

.research-board-pdf-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
}

.research-board-card pre {
  overflow: auto;
  padding: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.research-board-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 10px 10px;
}

.research-board-card-actions button {
  min-height: 28px;
}

.research-board-help {
  font-size: 10px;
}

.site-content-frame:has(body.notes-body #main-content:not([hidden])),
.site-content-frame body.notes-body:has(#main-content:not([hidden])) {
  height: 100%;
  overflow: hidden;
}

.notes-body:has(#main-content:not([hidden])) > .footer {
  display: none;
}

#main-content.notes-page {
  display: flex;
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  padding: 6px clamp(8px, 1.5vw, 22px);
  flex-direction: column;
}

#main-content.notes-page[hidden] {
  display: none;
}

.notes-workspace-heading {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 12px;
}

.notes-workspace-heading .note-back-link,
.notes-workspace-heading .notes-title {
  margin: 0;
}

.notes-workspace-heading .notes-title {
  flex: 1;
}

.notes-sidebar-toggle,
.notes-sidebar-tabs button {
  padding: 7px 9px;
  border: 1px solid var(--line-bright);
  background: #020702;
  color: var(--white);
  font: 9px var(--mono);
  cursor: pointer;
}

.notes-sidebar-toggle:focus-visible,
.notes-sidebar-tabs button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: -2px;
}

.notes-workspace {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 8px;
}

.notes-workspace .research-board {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin: 0;
  flex-direction: column;
}

.notes-workspace .research-board .note-correlation-heading .eyebrow,
.notes-workspace .research-board > p:not(#board-status):not(#board-note-target) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.notes-workspace .research-board .note-correlation-heading h2 {
  margin: 2px 0 6px;
  font-size: 20px;
}

.notes-workspace #board-status,
.notes-workspace #board-note-target {
  margin: 3px 0;
  font-size: 10px;
}

.notes-workspace .research-board-scroll {
  flex: 1;
  height: auto;
  min-height: 0;
}

.notes-sidebar {
  display: flex;
  width: clamp(300px, 30vw, 400px);
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border: 1px solid var(--line-bright);
  background: #020702;
}

.notes-sidebar[hidden],
.notes-sidebar-content [role="tabpanel"][hidden] {
  display: none;
}

.notes-sidebar-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 6px;
  border-bottom: 1px solid var(--line-bright);
}

.notes-sidebar-tabs button {
  flex: 1 1 auto;
}

.notes-sidebar-tabs button[aria-selected="true"] {
  border-color: var(--signal);
  background: #19321c;
  color: var(--signal);
}

.notes-sidebar-content {
  flex: 1;
  min-height: 0;
  padding: 12px;
  overflow: auto;
}

.notes-sidebar-content > [role="tabpanel"] {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.notes-sidebar-content .account-section-heading h2,
.notes-sidebar-content .note-correlation-heading h2 {
  font-size: 25px;
}

.notes-sidebar-content .note-correlation-heading {
  flex-wrap: wrap;
}

.notes-sidebar-content #note-content {
  min-height: 180px;
}

.notes-sidebar-content .account-library-grid,
.notes-sidebar-content .notes-library-grid {
  grid-template-columns: minmax(0, 1fr);
}

.quick-note-workspace {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.quick-note-workspace textarea {
  width: 100%;
  padding: 8px;
  resize: vertical;
}

.quick-note-workspace button {
  justify-self: start;
}

#quick-notes-list-status {
  color: var(--muted);
  font: 10px var(--mono);
}

.quick-note-item {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #070d08;
}

.quick-note-item p {
  margin: 0 0 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.quick-note-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font: 9px var(--mono);
}

.quick-note-item-meta button {
  padding: 5px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--white);
  font: inherit;
  cursor: pointer;
}

@media (max-width: 760px) {
  .notes-workspace-heading {
    gap: 8px;
  }

  .notes-workspace-heading .notes-title {
    font-size: 17px;
  }

  .notes-sidebar {
    position: absolute;
    z-index: 4;
    inset: 0 0 0 auto;
    width: min(90%, 400px);
    box-shadow: -8px 0 22px #000b;
  }
}

@media (max-height: 300px) {
  .notes-workspace .research-board .note-correlation-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

.notes-library {
  margin-top: 39px;
  padding-top: 25px;
  border-top: 1px solid var(--line-bright);
}

.notes-library > p {
  color: var(--muted);
}

.notes-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.notes-library-grid > section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line-bright);
  background: #020702;
}

.notes-library-grid h3 {
  margin: 0 0 12px;
  color: var(--signal);
  font: 10px var(--mono);
}

.notes-library-item {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.notes-library-item a {
  color: var(--white);
}

.note-correlations {
  margin-top: 39px;
  padding-top: 25px;
  border-top: 1px solid var(--line-bright);
}

.note-correlation-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.note-correlation-heading .eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.note-correlation-heading .eyebrow span {
  color: var(--signal);
}

.note-correlation-heading h2 {
  margin: 0;
  font: 400 clamp(25px, 3.8vw, 36px)/1.15 var(--typewriter);
  letter-spacing: -0.06em;
}

.note-correlation-heading h2 span {
  color: var(--signal);
}

.note-correlation-description {
  max-width: 660px;
  margin: 12px 0 18px;
}

.note-correlation-controls {
  display: grid;
  gap: 8px;
  max-width: 690px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #020702;
}

.note-correlation-controls > label {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.note-correlation-controls > div {
  display: flex;
  gap: 8px;
}

.note-correlation-controls select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line-bright);
  border-radius: 0;
  background: #000;
  color: var(--white);
  font: 9px var(--mono);
}

.note-correlation-controls select:focus {
  border-color: var(--signal);
  outline: 1px solid var(--signal);
}

.note-correlation-controls option,
.note-correlation-controls optgroup {
  background: #020702;
  color: var(--white);
}

.note-correlation-controls .account-submit {
  width: auto;
  min-width: 118px;
  min-height: 38px;
  margin: 0;
  padding: 0 10px;
  font-size: 7px;
  white-space: nowrap;
}

#correlation-status {
  min-height: 1.6em;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 8px;
}

#correlation-status[data-state="error"] {
  color: #d3a077;
}

#correlation-status[data-state="success"] {
  color: var(--signal);
}

.note-correlated-list {
  display: grid;
}

.note-correlated-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.note-correlated-item h3 {
  margin: 0;
  font: 500 12px/1.5 var(--typewriter);
  overflow-wrap: anywhere;
}

.note-correlated-item h3 a:hover {
  color: var(--signal);
}

.note-correlated-item .account-list-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.08em;
}

@media (max-width: 600px) {
  .note-correlation-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .note-correlation-controls > div {
    flex-direction: column;
  }

  .note-correlation-controls .account-submit {
    width: 100%;
  }

  .note-sync-actions,
  .note-conflict-actions {
    width: 100%;
  }

  .note-sync-actions .account-submit,
  .note-conflict-actions .account-submit {
    width: 100%;
  }
}

.archive-grid-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 30px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.archive-grid-heading .eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 8px;
}

.archive-search-help {
  margin: -5px 0 16px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.035em;
}

.ia-search-section {
  margin-top: 30px;
  padding-top: 2px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}

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

#internet-archive-title {
  margin: 0;
  color: var(--white);
  font-family: var(--typewriter);
  font-size: 18px;
}

#internet-archive-status,
.ia-search-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.05em;
}

#internet-archive-status[data-state="error"] {
  color: #d3a077;
}

#internet-archive-grid {
  --document-cover-width: 86%;
  --document-cover-margin: 12px auto 0;
}

.ia-result {
  min-width: 0;
}

#archive-document-status {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .06em;
}

#archive-document-status[data-state="error"] {
  color: #d3a077;
}

#archive-document-status[data-state="warning"],
.agency-record-status[data-state="warning"] {
  color: #d3b779;
}

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

#records {
  --document-pdf-cover-ratio: 1;
  --document-pdf-cover-height: auto;
  --document-pdf-cover-min-height: 0;
}

#archive-document-grid {
  --document-cover-width: 86%;
  --document-cover-margin: 12px auto 0;
}

.archive-requested-document {
  margin-bottom: 14px;
}

.archive-requested-document[hidden] {
  display: none;
}

.recent-uploads-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

#recent-uploads-status {
  margin: 0 0 12px;
  color: #91a993;
  font: 9px var(--mono);
}

.agency-document-grid document-card[hidden] {
  display: none;
}

.account-record-list {
  gap: 12px;
}

@media (max-width: 1100px) {
  .archive-document-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .archive-document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .archive-document-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html.site-header-frame {
    --header-search-width: min(100px, 28vw);
    --forum-button-width: 48px;
  }

  .site-header-frame .topbar {
    min-height: 48px;
  }

  .site-header-frame .gathered-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 5px;
    margin: 6px 20px;
  }

  .site-header-frame .gathered-stack {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header-frame .gathered-section {
    padding: 5px 8px;
  }

  .site-header-frame .gathered-section h2 {
    font-size: clamp(12px, 3.4vw, 16px);
  }

  .site-header-frame .gathered-label {
    margin-bottom: 2px;
  }

  .site-header-frame .matrix-stack {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .site-header-frame .gathered-tools {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .site-header-frame .collection-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-header-frame .collection-link {
    min-height: 32px;
    padding: 4px 8px;
  }

  .site-header-frame #collection-natural-science > .collection-menu-panel,
  .site-header-frame #collection-journalism > .collection-menu-panel {
    right: auto;
    left: -100%;
  }

  .site-header-frame #collection-manuscripts > .collection-menu-panel,
  .site-header-frame #collection-industry > .collection-menu-panel {
    right: auto;
    left: -200%;
  }

  .site-header-frame #collection-scriptures > .collection-menu-panel {
    left: 0;
  }

  .site-header-frame .collection-description {
    display: none;
  }

}

.site-header-frame.site-short-viewport .topbar {
  min-height: 40px;
}

.site-header-frame.site-short-viewport .gathered-row {
  margin-top: 4px;
  margin-bottom: 4px;
}

.site-header-frame.site-short-viewport #matrix-screen {
  height: 48px;
}

.site-header-frame.site-short-viewport .collection-link {
  min-height: 32px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.site-header-frame.site-short-viewport .collection-description {
  display: none;
}

@media (min-width: 500px) and (max-width: 760px) {
  .site-header-frame.site-short-viewport .gathered-row {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 2fr) max-content;
  }

  .site-header-frame.site-short-viewport .matrix-stack {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header-frame.site-short-viewport .gathered-tools {
    grid-column: 3;
    grid-row: 1;
  }
}

.gathered-tools {
  align-self: stretch;
  justify-content: flex-start;
}

.ai-eyes-button {
  position: relative;
  display: block;
  width: var(--ai-search-width);
  max-width: 100%;
  min-height: 40px;
  flex: 1 1 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid #6b9e70;
  background: #3de06a;
  container-type: size;
  cursor: pointer;
  touch-action: manipulation;
}

.ai-eyes-button:focus-visible {
  border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
  outline: 0;
}

.ai-eyes-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 1;
  transform: translate(-50%, -50%);
  filter: saturate(0.75);
}

.ai-eyes-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
}

@supports (width: 1cqw) {
  .ai-eyes-art { width: max(100cqw, 400cqh); height: auto; }
}

.ai-eye {
  position: absolute;
  left: calc(var(--l) * 100%);
  top: calc(var(--t) * 100%);
  width: calc(var(--w) * 100%);
  height: calc(var(--h) * 100%);
}

.ai-eye-socket,
.ai-eye-iris {
  position: absolute;
  inset: 0;
  clip-path: ellipse(50% 50%);
}

.ai-eye-socket {
  background: var(--ai-eye-white, #cdf7cf);
}

.ai-eye-iris {
  background-image: url("assets/ai-eyes.jpg");
  background-repeat: no-repeat;
  background-size: calc(100% / var(--w)) calc(100% / var(--h));
  background-position: calc(var(--l) / (1 - var(--w)) * 100%) calc(var(--t) / (1 - var(--h)) * 100%);
  transform: translate(var(--dx, 0px), var(--dy, 0px));
  transition: transform 700ms cubic-bezier(0.3, 0, 0.2, 1);
}

.ai-eyes-button.is-tracking .ai-eye-iris {
  transition: transform 80ms linear;
}

.ai-eyes-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
}

.ai-eyes-button:hover .ai-eyes-shine,
.ai-eyes-button:focus-visible .ai-eyes-shine {
  animation: ai-eyes-shine 0.9s ease-out;
}

@keyframes ai-eyes-shine {
  to { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .ai-eyes-button:hover .ai-eyes-shine,
  .ai-eyes-button:focus-visible .ai-eyes-shine {
    animation: none;
  }
  .ai-eye-iris { transition: none; }
  .ai-eyes-caption:not(:empty)::after { animation: none; }
}

.ai-eyes-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 3px 4px;
  background: rgba(2, 7, 2, 0.72);
  color: var(--signal);
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  white-space: pre;
  pointer-events: none;
}

.ai-eyes-caption:empty {
  display: none;
}

.ai-eyes-caption:not(:empty)::after {
  content: "_";
  animation: ai-eyes-caret 0.8s steps(1) infinite;
}

@keyframes ai-eyes-caret {
  50% { opacity: 0; }
}

.ai-eyes-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.account-settings-icon::-webkit-details-marker { display: none; }
.account-settings-icon::marker { content: ""; }
.settings-menu { display: inline-block; }
.settings-panel { width: 210px; }
.settings-heading { margin: 8px 10px 4px; color: var(--signal); font: 9px var(--mono); letter-spacing: 0.1em; }
.settings-toggle { display: flex; gap: 8px; align-items: center; padding: 8px 10px; color: var(--white); font: 10px var(--mono); cursor: pointer; }
.settings-toggle:hover { background: #192419; }
.nb-quick-notes { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-bright); }
.nb-quick-notes h2 { font: 12px var(--mono); color: var(--signal); letter-spacing: 0.08em; margin: 0 0 6px; text-transform: uppercase; }
.nb-quick-notes [data-quick-notes-status] { font: 9px var(--mono); color: #9bb08f; margin: 0 0 8px; }
.nb-quick-notes [data-quick-notes-list] { max-height: 320px; overflow-y: auto; display: grid; gap: 8px; }
.ai-eyes-button.has-egregore { background: #061008; border-color: var(--signal); }
.ai-eyes-button.has-egregore .ai-eyes-art, .ai-eyes-button.has-egregore .ai-eyes-dots, .ai-eyes-button.has-egregore .ai-eyes-shine, .ai-eyes-button.has-egregore .ai-eyes-caption { display: none; }
.ai-house { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 4px 8px; text-align: left; }
.ai-house[hidden] { display: none; }
.ai-house-sprite { height: 100%; width: auto; max-height: 64px; aspect-ratio: 1; image-rendering: -moz-crisp-edges; image-rendering: pixelated; flex: none; }
.ai-house-info { display: grid; gap: 3px; min-width: 0; color: var(--white); font: 9px var(--mono); }
.ai-house-info strong { color: var(--signal); font: 700 10px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-house-line { color: #a9bfa0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-house.is-away .ai-house-sprite { visibility: hidden; }
.ai-house-bubble a { color: #d7e8cf; text-decoration: underline; }
.ai-house-bubble { position: absolute; bottom: calc(100% + 6px); left: 0; width: max-content; max-width: 220px; padding: 6px 9px; border: 1px solid #36553a; background: #020702; color: #9bd876; font: 11px var(--mono); white-space: normal; }
.ai-house-bubble[hidden] { display: none; }
.ai-house-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ai-house-bars i { display: block; height: 4px; border: 1px solid #2f4a2a; }
.ai-house-bars b { display: block; height: 100%; background: var(--signal); }
.ai-house-bars i.is-low b { background: #c25555; }

#egregore-talk { position: absolute; top: 4px; right: 5px; left: 5px; z-index: 2; padding: 3px 6px; background: rgba(2, 7, 2, .88); border: 1px solid #36553a; color: #9bd876; font: 9px/1.3 var(--mono); max-height: 3.9em; overflow: hidden; }
#egregore-talk[hidden] { display: none; }
#egregore-talk { cursor: pointer; }
#egregore-talk a { color: #d7e8cf; text-decoration: underline; }

.ai-search-topic { margin: 12px 0 4px; color: #9bd876; font: 10px var(--mono); letter-spacing: .08em; list-style: none; }

.ai-chat-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:18px}
.ai-chat-log{display:flex;flex-direction:column;gap:10px;max-height:60vh;overflow:auto;padding:10px;border:1px solid rgba(255,255,255,.2)}
.ai-chat-msg{max-width:92%;padding:8px 12px;border:1px solid rgba(255,255,255,.25)}
.ai-chat-user{align-self:flex-end;background:rgba(255,255,255,.08)}
.ai-chat-error{border-color:#ff6b6b}
.ai-chat-results{list-style:none;margin:8px 0;padding:0}
.ai-chat-form{display:flex;gap:8px;margin-top:10px}
.ai-chat-form textarea{flex:1;font:inherit;background:#000;color:inherit;border:1px solid rgba(255,255,255,.3);padding:8px}
.ai-chat-list{border:1px solid rgba(255,255,255,.2);padding:10px}
.ai-chat-list ol{padding-left:18px}
.ai-chat-list li{display:flex;gap:6px;justify-content:space-between}
@media(max-width:760px){.ai-chat-layout{grid-template-columns:1fr}}
.recent-uploads-nav{display:flex;align-items:center;justify-content:center;gap:16px;margin:14px 0}
